* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Corporate density pass: shorter journeys, calmer cards and cleaner mobile flow. */
.is-batch-hidden {
    display: none !important;
}

.progressive-list-actions {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.progressive-list-actions[hidden] {
    display: none !important;
}

.progressive-list-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-weight: 800;
}

.reference-pagination {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.reference-pagination > :first-child {
    justify-self: start;
}

.reference-pagination > :last-child {
    justify-self: end;
}

.reference-pagination strong {
    min-width: 72px;
    text-align: center;
    color: #0f172a;
}

.footer-eyebrow-secondary {
    display: block;
    margin-top: 1.25rem;
}

.home-corporate-depth .section-eyebrow,
.home-documents-highlight .section-eyebrow,
.home-field-projects .section-eyebrow,
.page-content .section-eyebrow,
.services-page .section-eyebrow,
.contact-intake-strip .section-eyebrow {
    color: #075985 !important;
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
}

.regional-authority-panel .section-eyebrow,
.home-proof-band .section-eyebrow,
.home-service-areas .section-eyebrow {
    color: #bae6fd !important;
    background: rgba(14, 165, 233, 0.12) !important;
    border-color: rgba(125, 211, 252, 0.38) !important;
}

.site-footer .btn-light {
    color: #0b3f82 !important;
}

.site-footer .btn-outline-light {
    color: #ffffff !important;
}

.reference-showcase-card .reference-showcase-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-showcase-card .reference-showcase-body {
    gap: 0.8rem;
}

.home-featured-document {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    border-radius: 8px !important;
}

.home-featured-document-media img {
    height: 280px !important;
}

.services-page > .container {
    display: flex;
    flex-direction: column;
}

.services-page .service-intake-strip {
    order: 0;
}

.services-page .services-grid {
    order: 1;
    margin-top: 2.5rem;
}

.services-page > .container > [data-progressive-actions] {
    order: 1;
}

.services-page .service-seo-depth {
    order: 2;
}

.services-page .customer-segment-depth {
    order: 3;
}

.services-page .regional-authority-panel {
    order: 4;
}

.service-seo-depth,
.customer-segment-depth,
.regional-authority-panel {
    margin-top: clamp(2.5rem, 5vw, 4.5rem) !important;
}

details.service-seo-card {
    padding: 0;
    overflow: hidden;
}

details.service-seo-card > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-height: 76px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

details.service-seo-card > summary::-webkit-details-marker {
    display: none;
}

.service-seo-card-title h3 {
    margin: 0;
}

.service-seo-card-toggle {
    color: #0b66b2;
    transition: transform 0.2s ease;
}

details.service-seo-card[open] .service-seo-card-toggle {
    transform: rotate(180deg);
}

details.service-seo-card > dl {
    margin: 0;
    padding: 0 1.15rem 1.15rem;
}

.regional-authority-panel {
    padding: clamp(1.35rem, 3vw, 2rem) !important;
}

.regional-signal-grid {
    margin-top: 1.25rem !important;
}

.page-content,
.services-scope {
    --section-space: clamp(2.5rem, 5vw, 4.5rem);
}

@media (max-width: 991.98px) {
    body {
        padding-top: 0 !important;
    }

    .site-header {
        position: relative !important;
        top: auto !important;
    }

    .site-header.is-scrolled .brand-row,
    .site-header.is-scrolled .brand-left,
    .site-header.is-scrolled .brand-right,
    .site-header.is-scrolled .brand-logo {
        transition: none !important;
    }

    #heroSection .carousel,
    #heroSection .carousel-inner,
    #heroSection .carousel-item {
        height: auto !important;
        min-height: 760px !important;
        max-height: none !important;
    }

    #heroSection .hero-overlay {
        position: relative !important;
        min-height: 760px !important;
        align-items: center !important;
        padding: 76px 0 30px !important;
    }

    #heroSection .hero-content {
        top: auto !important;
        bottom: auto !important;
        height: auto !important;
    }

    #heroSection .hero-kicker {
        display: none !important;
    }

    #heroSection .hero-title-large {
        margin-top: 0 !important;
        max-width: min(330px, calc(100vw - 36px)) !important;
        font-size: clamp(1.68rem, 7vw, 2rem) !important;
        line-height: 1.08 !important;
    }

    #heroSection .hero-region-line,
    #heroSection .hero-subtext {
        max-width: min(330px, calc(100vw - 36px)) !important;
    }

    #heroSection .hero-actions {
        gap: 0.7rem;
        margin-top: 1rem;
    }

    #heroSection .hero-trust-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        gap: 0.55rem;
        margin-top: 1rem;
    }

    #heroSection .hero-trust-strip span {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0.55rem 0.65rem;
        font-size: 0.74rem;
        line-height: 1.2;
    }

    #heroSection .hero-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        margin-top: 1rem;
    }

    #heroSection .hero-stat-card {
        min-width: 0;
        padding: 0.8rem 0.65rem;
    }

    #heroSection .hero-stat-card strong {
        font-size: 1.35rem;
    }

    #heroSection .hero-stat-card span {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .reference-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.45rem;
        scrollbar-width: thin;
    }

    .reference-filter-chip {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .reference-pagination {
        grid-template-columns: 1fr auto 1fr;
        gap: 0.55rem;
    }

    .reference-pagination .btn {
        min-height: 44px;
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }

    .footer-map-panel {
        grid-column: auto !important;
    }

    .home-featured-document {
        grid-template-columns: 1fr;
    }

    .home-featured-document-media,
    .home-featured-document-media img {
        min-height: 210px !important;
        height: 210px !important;
    }

    .home-documents-highlight .row > .col-md-4:nth-child(n + 3) {
        display: none;
    }

    .page-content.py-5,
    .services-scope.py-5,
    .services-page.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2.5rem !important;
    }

    .reference-showcase-grid,
    .service-seo-grid,
    .customer-segment-grid {
        gap: 1rem !important;
    }

    .progressive-list-actions {
        padding-top: 1.25rem;
    }

    .progressive-list-more {
        width: 100%;
    }
}

body {
    font-family: "Titillium Web", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #0b1220;
    color: #e5e7eb;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --brand-bg: #0b1220;
    --brand-panel: #0f172a;
    --brand-blue: #0b3f82;
    --brand-blue-2: #1e40af;
    --brand-accent: #38bdf8;
    --brand-line: rgba(148, 163, 184, 0.24);
    --brand-text: #e5e7eb;
    --brand-muted: #cbd5e1;
}

#page-preloader {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    /* CSS FAILSAFE ANIMATION: keep the first load brief. */
    animation: forceHideLoader 0.25s linear 0.45s forwards; 
}

@keyframes forceHideLoader {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* //FIX-LOADER-MOBILE: CSS Fail-safe */
/* If JS fails, CSS will hide it eventually if we add animation, 
   but since we rely on JS removal, let's just ensure it doesn't block clicks if invisible */
#page-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* //FIX-LOADER-MOBILE: Mobile Safeguard */
/* On very small screens, ensure content is never blocked permanently */
@media (max-width: 991.98px) {
    #page-preloader {
        /* Optional: You can disable it entirely on mobile if preferred, 
           but the JS fix should handle it. 
           Uncomment below to disable on mobile:
           display: none !important; 
        */
    }
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.preloader-logo img {
    height: 90px;
    filter: grayscale(100%) brightness(0.3);
    opacity: 0.3;
    animation: logoColorReveal 1.8s ease-out forwards;
}

@keyframes logoColorReveal {
    0% {
        filter: grayscale(100%) brightness(0.3);
        opacity: 0.2;
    }
    100% {
        filter: none;
        opacity: 1;
    }
}

#page-preloader.is-hidden .preloader-logo img {
    animation: logoFadeOut 0.5s ease-out forwards;
}

@keyframes logoFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* STICKY HEADER EFFECT */
.site-header {
    background-color: #0f172a;
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999; /* Increased z-index */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
    transition: all 0.3s ease;
}

.site-header.is-scrolled {
    background-color: rgba(11, 63, 130, 0.95); /* Corporate Blue with opacity */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Collapse Brand Row on Scroll */
.site-header.is-scrolled .brand-row {
    height: 0;
    padding: 0;
    overflow: visible; /* Allow content to hang out */
    opacity: 1; /* Keep container visible for children */
    transition: all 0.3s ease;
    background: transparent; /* Remove gradient background to blend */
}

/* Hide ONLY brand left content on scroll */
.site-header.is-scrolled .brand-left {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.2s ease;
}

/* Keep Brand Right (Language) Visible and Reposition */
.site-header.is-scrolled .brand-right {
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    right: 20px;
    top: 12px; /* Position inside the nav bar area */
    z-index: 60;
    transform: translateY(0);
}

/* Keep the logo readable on scroll */
.site-header.is-scrolled .brand-logo {
    transform: translateX(-50%) translateY(7px) !important;
    width: 156px;
    height: 54px;
    border-radius: 0 0 20px 20px;
    opacity: 1; /* Ensure visible */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 50;
    top: 0; /* Reset top to align with fixed header top */
    background: #fff; /* Ensure white background for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header.is-scrolled .brand-logo-shape {
    padding: 0;
    min-width: auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header.is-scrolled .brand-logo-img {
    width: 124px;
    max-width: 124px;
    height: auto;
    max-height: 38px;
}

/* Adjust nav row padding if needed */
.site-header.is-scrolled .nav-row {
    padding-top: 0;
    border-top: none;
    background-color: transparent; /* Merge with header bg */
}

.topbar {
    background-color: #0b3f82;
    color: #e5e7eb;
    font-size: 0.8rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0;
}

.topbar-content,
.brand-left,
.brand-right {
    display: flex;
    align-items: center;
}

.topbar-content {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.brand-left {
    gap: 12px;
    min-width: 0;
}

.brand-right {
    justify-content: flex-end;
    min-width: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; /* Push to right */
    justify-content: flex-end; /* Ensure right alignment */
    flex: 1; /* Take remaining space */
}

.topbar-link {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 18px;
    height: 43px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.75rem;
    color: #e5e7eb;
}

.topbar-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.75rem;
}

.topbar-pill-text {
    white-space: nowrap;
}

.topbar-social {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.topbar-lang-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    top: 10px; /* Slight offset to overlap border */
    margin-left: 10px;
}

.lang-pill {
    display: inline-flex;
    flex-direction: column; /* Stack text */
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid transparent; 
    background: #1e3a8a; /* Default Inactive Blue */
    color: #cbd5f5;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    opacity: 0.85;
    transform: scale(0.95);
    position: relative;
}

.lang-pill.is-active {
    background: #f97316; /* Active Orange */
    color: #fff;
    opacity: 1;
    transform: scale(1.1);
    z-index: 5;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.5); /* Glow */
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-pill:hover {
    transform: translateY(-3px) scale(1.05);
    background: #3b82f6; /* Lighter Blue */
    color: #fff;
    opacity: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lang-pill.is-active:hover {
    transform: translateY(-3px) scale(1.15);
    background: #fb923c; /* Lighter Orange */
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

.lang-flag-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.lang-text-bottom {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.topbar-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    color: #cbd5f5;
}

.topbar-circle {
    display: none;
}

.brand-row {
    background: linear-gradient(to bottom, #0b3f82, #1e3a8a);
    padding: 0 0 22px;
}

.brand-row-inner {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 40px; /* Space from edges */
    width: 100%;
}

.brand-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%); /* Original Position */
    width: 336px;
    height: 136px;
    z-index: 30;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #0f172a;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.45);
    pointer-events: none;
}

.brand-logo-shape {
    padding: 16px 22px 22px;
    text-align: center;
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-logo a,
.brand-logo-shape,
.brand-logo-img {
    pointer-events: auto;
}

.brand-logo-img {
    width: 268px;
    max-width: 268px;
    height: auto;
    max-height: 96px;
    object-fit: contain;
}

.brand-logo.is-visible {
    transform: translateX(-50%) translateY(0px);
}

.nav-row {
    background-color: #0b3f82;
    border-top: 1px solid rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(15, 23, 42, 0.7);
    padding-bottom: 4px;
}

.nav-row .container {
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Changed from space-between to center to let wrapper handle it */
    width: 100%;
}

/* NEW: Wrapper for Desktop Split Menu */
.nav-lists-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left,
.nav-right {
    display: flex;
    flex: 1 1 0;
    gap: clamp(10px, 1.4vw, 20px);
    min-width: 0;
}

/* Ortadaki logo alanının altına menü gelmemesi için boşluk bırak */
.nav-left {
    justify-content: flex-end;
    padding-left: 24px;
    padding-right: 104px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 104px;
    padding-right: 24px;
}

/* Vertical alignment fix for Desktop Menu Items */
.main-nav a {
    font-size: clamp(0.78rem, 0.88vw, 0.95rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    color: #e5e7eb;
    display: flex; /* Ensure flex behavior for alignment */
    align-items: center; /* Center vertically */
    height: 100%; /* Fill parent height if needed */
    line-height: 1.5; /* Consistent line-height */
    transition: all 0.2s ease; /* Smooth Transition */
}

/* Hover Effect Restoration */
.main-nav a:hover {
    color: #38bdf8; /* Light Blue */
    border-bottom-color: #38bdf8; /* Blue underline */
}

/* Specific fix for items with submenu arrow */
.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 8px; /* Increased gap slightly */
}

.has-submenu > a::after {
    content: '\f107'; /* FontAwesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem; /* Slightly smaller */
    transition: transform 0.3s ease;
    margin-left: 6px; /* Better spacing */
    margin-top: 1px;
    line-height: 1;
}

/* Remove default Bootstrap dropdown toggle styles if they exist */
.dropdown-toggle::after {
    display: none !important;
}

.has-submenu.is-active > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu Styles (DESKTOP ONLY) */
@media (min-width: 992px) {
    .nav-left > li, .nav-right > li {
        position: relative;
    }

    .submenu {
        visibility: hidden;
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff; /* White background */
        min-width: 240px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Softer shadow */
        z-index: 1000;
        padding: 12px 0;
        border-radius: 8px; /* Rounded all corners */
        flex-direction: column !important;
        gap: 2px !important;
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        border: none;
        margin-top: 12px; /* Space from navbar */
    }

    /* Little arrow on top of dropdown */
    .submenu::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 20px;
        width: 12px;
        height: 12px;
        background-color: #ffffff;
        transform: rotate(45deg);
        border-radius: 2px;
    }

    .submenu.is-visible {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .submenu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .submenu a {
        display: block;
        padding: 10px 24px;
        font-size: 0.85rem;
        color: #64748b; /* Muted text color */
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.05em;
        border-bottom: none;
        transition: all 0.2s ease;
    }

    .submenu a:last-child {
        border-bottom: none;
    }

    .submenu a:hover {
        background-color: #f1f5f9; /* Light gray hover */
        color: #0b3f82; /* Brand blue text */
        padding-left: 28px;
    }
}

.site-main {
    padding-bottom: 0;
    flex: 0 0 auto;
}

.hero {
    padding: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 72vh;
    min-height: 520px;
    max-height: 760px;
}

@media (max-width: 767.98px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        height: auto;
        min-height: 620px;
    }

    .hero-overlay {
        position: relative;
        min-height: 620px;
        align-items: flex-end;
        padding: 150px 0 34px;
    }

    .hero-content {
        text-align: left;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: 100%;
    }

    .hero-trust-strip span {
        flex: 1 1 100%;
    }

    .proof-grid,
    .signal-grid {
        grid-template-columns: 1fr;
    }

    .proof-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Final header override: keep brand compact after all legacy homepage rules. */
@media (min-width: 992px) {
    .site-header .brand-logo {
        left: 28px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: clamp(150px, 14vw, 218px) !important;
        height: 58px !important;
        border-radius: 8px !important;
    }

    .site-header .brand-logo-shape {
        padding: 7px 14px !important;
    }

    .site-header .brand-logo-img {
        width: clamp(122px, 12vw, 178px) !important;
        max-width: 178px !important;
        max-height: 44px !important;
    }

    .site-header .nav-left {
        padding-right: 0 !important;
    }

    .site-header .nav-right {
        padding-left: 0 !important;
    }

    .site-header .header-inner {
        padding-left: clamp(220px, 22vw, 310px) !important;
    }

    .site-header .header-survey-cta,
    .site-header .header-survey-cta span,
    .site-header .header-survey-cta i {
        color: #0b3f82 !important;
    }
}

/* Final mobile containment override for contact/header pages. */
@media (max-width: 767.98px) {
    .topbar .container,
    .topbar-inner {
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .topbar-content,
    .topbar-left {
        width: 100% !important;
        min-width: 0 !important;
        gap: 6px !important;
    }

    .topbar-left {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 66px !important;
        align-items: center !important;
    }

    .topbar-right {
        display: none !important;
    }

    .topbar-pill {
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
        padding: 0 7px !important;
        gap: 5px !important;
        font-size: 0.62rem !important;
        letter-spacing: 0.035em !important;
    }

    .topbar-pill-text {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .topbar-lang-wrapper {
        top: 0 !important;
        margin-left: 0 !important;
        gap: 4px !important;
    }

    .lang-pill {
        width: 29px !important;
        height: 29px !important;
        transform: none !important;
    }

    .lang-pill.is-active {
        transform: none !important;
    }

    .services-scope .wrap,
    .contact-intake-strip .container,
    .custom-page-header .container {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .custom-page-header .row,
    .services-scope .row,
    .contact-intake-strip .row {
        --bs-gutter-x: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .custom-page-header [class*="col-"],
    .services-scope [class*="col-"],
    .contact-intake-strip [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .contact-intake-shell,
    .services-scope .card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 1rem !important;
    }

    .contact-intake-heading h2 {
        font-size: clamp(1.25rem, 6vw, 1.55rem) !important;
        line-height: 1.22 !important;
        max-width: 100% !important;
    }

    .custom-page-header h1,
    .custom-page-header p,
    .custom-page-header .lead,
    .contact-intake-heading h2,
    .contact-intake-card h3,
    .contact-intake-card p,
    .contact-form-topline p,
    .contact-trust-item span,
    .contact-google-action span {
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }

    .contact-intake-card,
    .contact-scope-box,
    .contact-trust-item,
    .contact-google-action,
    #contact-form-sms,
    #contact-form-sms * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .mrl-page-hero__orb,
    .hero-motion-orb {
        display: none !important;
    }

    .brands-slider,
    .brands-strip,
    .home-brands-first-screen {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
}

/* Modern header pass: quieter corporate navigation, left-led brand, clear CTA. */
.header-survey-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.62rem 1rem;
    border-radius: 8px;
    background: #ffffff;
    color: #0b3f82 !important;
    font-weight: 850;
    font-size: 0.84rem;
    letter-spacing: 0;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.16);
}

.header-survey-cta:hover {
    background: #e0f2fe;
    color: #0a3470 !important;
}

@media (min-width: 992px) {
    .site-header {
        background: #0b3f82 !important;
    }

    .brand-row {
        min-height: 56px !important;
        padding: 6px 0 !important;
        background: linear-gradient(180deg, #0f4c91 0%, #0b3f82 100%) !important;
    }

    .brand-row-inner {
        min-height: 44px;
        align-items: center !important;
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .brand-left {
        margin-left: clamp(180px, 17vw, 250px);
        gap: 8px !important;
    }

    .brand-right {
        gap: 10px;
    }

    .brand-logo {
        left: 28px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: clamp(150px, 14vw, 218px) !important;
        height: 58px !important;
        border-radius: 8px !important;
        box-shadow: 0 12px 26px rgba(2, 6, 23, 0.20) !important;
        z-index: 42 !important;
    }

    .brand-logo-shape {
        padding: 7px 14px !important;
    }

    .brand-logo-img {
        width: clamp(122px, 12vw, 178px) !important;
        max-width: 178px !important;
        max-height: 44px !important;
    }

    .topbar-pill {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 12px !important;
        border-radius: 8px !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.045em !important;
        background: rgba(255, 255, 255, 0.075) !important;
        border-color: rgba(226, 232, 240, 0.22) !important;
    }

    .topbar-lang-wrapper {
        top: 0 !important;
        margin-left: 0 !important;
    }

    .lang-pill {
        width: 34px !important;
        height: 34px !important;
    }

    .nav-row {
        padding: 0 !important;
        background: #0a3470 !important;
        border-top: 1px solid rgba(226, 232, 240, 0.12) !important;
        border-bottom: 1px solid rgba(2, 6, 23, 0.32) !important;
    }

    .header-inner {
        min-height: 52px !important;
        padding: 0 28px 0 clamp(220px, 22vw, 310px) !important;
    }

    .nav-lists-wrapper {
        justify-content: flex-start !important;
        gap: clamp(18px, 2vw, 34px) !important;
    }

    .nav-left,
    .nav-right {
        flex: 0 1 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: clamp(14px, 1.35vw, 24px) !important;
    }

    .main-nav a {
        min-height: 52px !important;
        padding: 0 !important;
        border-bottom-width: 3px !important;
        font-size: clamp(0.76rem, 0.82vw, 0.86rem) !important;
        letter-spacing: 0.03em !important;
    }

    .site-header.is-scrolled .brand-row {
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    .site-header.is-scrolled .brand-logo {
        left: 28px !important;
        top: 26px !important;
        transform: translateY(-50%) !important;
        width: 142px !important;
        height: 46px !important;
        border-radius: 8px !important;
    }

    .site-header.is-scrolled .brand-logo-img {
        width: 112px !important;
        max-width: 112px !important;
        max-height: 32px !important;
    }

    .site-header.is-scrolled .brand-right {
        right: 18px !important;
        top: 5px !important;
    }
}

@media (max-width: 991.98px) {
    .brand-row {
        padding-bottom: 0 !important;
    }

    .brand-logo {
        width: min(210px, 52vw) !important;
        height: 74px !important;
        border-radius: 0 0 24px 24px !important;
    }

    .brand-logo-shape {
        padding: 8px 16px 12px !important;
    }

    .brand-logo-img {
        width: min(168px, 42vw) !important;
        max-height: 54px !important;
    }

    .mobile-menu-toggle {
        margin-left: 0.2rem;
    }
}

/* Mobile header/contact containment pass. */
@media (max-width: 767.98px) {
    .topbar .container,
    .topbar-inner {
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .topbar-content,
    .topbar-left {
        width: 100%;
        min-width: 0;
        gap: 6px !important;
    }

    .topbar-left {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 68px;
        align-items: center;
    }

    .topbar-right {
        display: none !important;
    }

    .topbar-pill {
        width: 100%;
        min-width: 0;
        height: 34px !important;
        padding: 0 8px !important;
        gap: 5px !important;
        font-size: 0.66rem !important;
        letter-spacing: 0.04em !important;
    }

    .topbar-pill-icon {
        flex: 0 0 20px;
    }

    .topbar-pill-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-lang-wrapper {
        top: 0 !important;
        margin-left: 0 !important;
        gap: 4px !important;
    }

    .lang-pill {
        width: 30px !important;
        height: 30px !important;
        transform: none !important;
    }

    .lang-flag-img {
        width: 17px !important;
        height: 12px !important;
    }

    .lang-text-bottom {
        font-size: 0.58rem !important;
    }

    .lang-pill.is-active {
        transform: none !important;
    }

    .services-scope {
        overflow: hidden;
    }

    .services-scope .wrap,
    .contact-intake-strip .container,
    .page-content .container {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden;
    }

    .custom-page-header .container,
    .custom-page-header .row,
    .custom-page-header [class*="col-"] {
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .custom-page-header .row,
    .services-scope .row,
    .contact-intake-strip .row {
        --bs-gutter-x: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .custom-page-header [class*="col-"],
    .services-scope [class*="col-"],
    .contact-intake-strip [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .custom-page-header h1,
    .custom-page-header p,
    .custom-page-header .lead,
    .breadcrumb,
    .breadcrumb-item {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }

    .contact-intake-strip {
        overflow: hidden;
    }

    .contact-intake-strip .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .contact-intake-shell,
    .services-scope .card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    .contact-intake-shell,
    .contact-intake-card,
    .contact-form-topline,
    .contact-scope-box,
    .contact-trust-item,
    .contact-google-action,
    .contact-map,
    #contact-form-sms,
    #contact-form-sms * {
        min-width: 0;
        max-width: 100%;
    }

    .contact-intake-heading h2,
    .contact-intake-card h3,
    .contact-intake-card p,
    .contact-form-topline p,
    .contact-scope-head span,
    .contact-scope-head small,
    .contact-trust-item span,
    .contact-google-action span {
        overflow-wrap: anywhere;
    }

    .contact-scope-head {
        display: grid;
        gap: 0.35rem;
    }

    .contact-scope-head small {
        max-width: none;
        text-align: left;
    }

    .contact-map,
    .contact-map iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 479.98px) {
    .hero-slider .carousel,
    .hero-slider .carousel-inner,
    .hero-slider .carousel-item {
        height: auto;
        min-height: 650px;
    }

    .hero-title-large {
        font-size: clamp(2.05rem, 12vw, 3rem);
    }

    .proof-stats {
        grid-template-columns: 1fr;
    }

    .proof-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .proof-stats div:last-child {
        border-bottom: 0;
    }
}

@keyframes logoDrop {
    0% {
        opacity: 0;
        transform: translate(-50%, -40px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: saturate(0.82) contrast(1.08) brightness(0.82);
}

.hero-video-fallback-btn {
    position: absolute;
    left: 50%;
    bottom: clamp(24px, 7vh, 56px);
    transform: translateX(-50%);
    z-index: 5;
    display: none;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.hero-video-fallback-btn.is-visible {
    display: inline-flex;
}

.hero-video-fallback-btn:hover,
.hero-video-fallback-btn:focus {
    color: #ffffff;
    background: rgba(11, 63, 130, 0.88);
}

.hero-video-fallback-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.18);
}

.hero-video-fallback-text {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-slide-1 {
    background-image:
            linear-gradient(to bottom, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.8)),
            url("https://images.pexels.com/photos/1409999/pexels-photo-1409999.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.hero-slide-2 {
    background-image:
            linear-gradient(to bottom, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.85)),
            url("https://images.pexels.com/photos/577514/pexels-photo-577514.jpeg?auto=compress&cs=tinysrgb&w=1600");
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(12px, 4vh, 42px);
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.82) 0%, rgba(11, 18, 32, 0.58) 48%, rgba(11, 63, 130, 0.34) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82) 0%, rgba(2, 6, 23, 0.12) 48%, rgba(2, 6, 23, 0.34) 100%);
}

.hero-content {
    max-width: 850px;
    width: min(100%, 850px);
    position: relative;
    z-index: 4;
    text-align: left;
    margin-left: 0;
}

@media (min-width: 1824px) {
    .hero-content {
        width: 85%;
    }
}

@media (max-width: 1199.98px) {
    .hero-content {
        width: 100%;
    }
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: #bae6fd;
    margin-bottom: 14px;
    font-weight: 700;
}

.hero-title-large {
    font-size: clamp(2.15rem, 4.35vw, 4.15rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.02;
    margin-bottom: 10px;
    max-width: 820px;
    color: #ffffff;
    text-shadow: 0 4px 26px rgba(2, 6, 23, 0.74);
}

.hero-region-line {
    color: #bae6fd;
    font-size: clamp(0.98rem, 1.35vw, 1.18rem);
    font-weight: 800;
    line-height: 1.45;
    margin: 0 auto 12px;
    max-width: 760px;
    text-shadow: 0 3px 18px rgba(2, 6, 23, 0.72);
}

.hero-subtext {
    color: #dbeafe;
    max-width: 650px;
    margin-bottom: 22px;
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hero-btn {
    margin-top: 0;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.42);
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.76);
    background: rgba(11, 63, 130, 0.62);
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    max-width: 760px;
}

.hero-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.42);
    color: #e0f2fe;
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-trust-strip i {
    color: #38bdf8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

.dynamic-content {
    background-color: #020617;
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.dynamic-content.is-collapsed {
    display: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(to right, #38bdf8, #0ea5e9);
    color: #020617;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: linear-gradient(to right, #0ea5e9, #38bdf8);
}

.home-shortcuts {
    padding: 0 0 10px;
    background-color: transparent;
    border-bottom: none;
    position: relative;
    margin-top: -70px;
    z-index: 5;
}

.home-shortcuts .container {
    background-color: transparent;
}

.brands-strip {
    width: 100%;
    padding: 16px 0;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #020617;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.brands-heading {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    color: #cbd5f5;
    margin-bottom: 10px;
}

.brands-slider {
    overflow: hidden;
    width: 100%;
}

.brands-track {
    display: flex;
    gap: 40px;
    padding: 0 40px;
    animation: brandsScroll 28s linear infinite;
    will-change: transform;
}

.brand-item {
    min-width: 130px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background-color: #f9fafb;
    color: #020617;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

@keyframes brandsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.shortcut-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.shortcut-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
    background: rgba(15, 23, 42, 0.6);
}

.shortcut-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.shortcut-text {
    font-size: 0.85rem;
    color: #cbd5f5;
}

.home-shortcuts .row > [class^="col-"],
.home-shortcuts .row > [class*=" col-"] {
    display: flex;
}

.home-proof-band {
    position: relative;
    padding: clamp(32px, 4vw, 58px) 0 clamp(34px, 4.8vw, 64px);
    background:
        linear-gradient(180deg, #020617 0%, #08111f 46%, #0b1220 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.proof-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: end;
    margin-bottom: 26px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    background: rgba(14, 165, 233, 0.10);
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.proof-intro h2 {
    color: #f8fafc;
    font-size: clamp(1.75rem, 3.5vw, 3.05rem);
    line-height: 1.05;
    max-width: 880px;
    margin: 0 0 14px;
}

.proof-intro p {
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 760px;
    margin: 0;
}

.proof-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.64);
    border-radius: 10px;
    overflow: hidden;
}

.proof-stats div {
    padding: 16px 14px;
    text-align: center;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}

.proof-stats div:last-child {
    border-right: 0;
}

.proof-stats strong,
.proof-stats span {
    display: block;
}

.proof-stats strong {
    color: #ffffff;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.15;
    font-weight: 850;
}

.proof-stats span {
    color: #93c5fd;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: none;
    line-height: 1.45;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.signal-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(15, 23, 42, 0.72);
    color: #e5e7eb;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.signal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.58);
    background: rgba(15, 34, 59, 0.82);
    color: #f8fafc;
}

.signal-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #0b3f82;
    color: #bae6fd;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.signal-title {
    display: block;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.signal-text {
    display: block;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.58;
}

.page-header {
    padding: 26px 0 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(11, 63, 130, 0.92));
}

.page-header h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.page-header p {
    color: #cbd5f5;
}

.page-content {
    padding-top: 20px;
    display: grid;
    gap: 16px;
}

.page-content h2 {
    font-size: 1.2rem;
}

.page-content p {
    color: #e5e7eb;
}

/* Light Theme Content Overrides */
.page-content.light-content {
    color: #0f172a;
}
.page-content.light-content p {
    color: #334155;
}
.page-content.light-content .text-muted {
    color: #64748b !important;
}
.page-content.light-content .bg-white {
    color: #0f172a;
}

/* iziModal Content Overrides (Force Dark Text) */
.iziModal {
    color: #334155 !important;
}
.iziModal p {
    color: #334155 !important;
}
.iziModal .text-muted {
    color: #64748b !important;
}
.iziModal h1, .iziModal h2, .iziModal h3, .iziModal h4, .iziModal h5, .iziModal h6 {
    color: #0f172a !important;
}
.iziModal .text-dark {
    color: #0f172a !important;
}

.services-grid {
    padding-top: 20px;
    display: grid;
    gap: 16px;
}

.service-card {
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.85));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.service-card h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.service-card p {
    color: #cbd5f5;
}

.contact-layout {
    padding-top: 20px;
    display: grid;
    gap: 24px;
}

.contact-form,
.contact-info {
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.85));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
}

.form-group {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

label {
    font-size: 0.9rem;
    color: #cbd5f5;
}

input,
textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 8px 10px;
    background-color: #020617;
    color: #e5e7eb;
    font-size: 0.95rem;
}

input:focus,
textarea:focus {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.alert-error {
    background-color: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.5);
}

.alert-success {
    background-color: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.5);
}

.site-footer {
    margin-top: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0 0 12px;
    background: #020617;
}

.footer-inner {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-grid {
    display: grid;
    gap: 18px;
    padding: 32px 0 12px;
    text-align: left;
}

.footer-panel {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
    padding: 20px;
    color: #cbd5e1;
}

.footer-panel h2 {
    color: #f8fafc;
    font-size: 1.05rem;
    margin: 8px 0 10px;
}

.footer-panel p {
    color: #cbd5e1;
    margin: 0;
}

.footer-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: #7dd3fc;
    font-weight: 700;
}

.footer-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-list li,
.footer-list a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-trust-list li {
    position: relative;
    padding-left: 18px;
}

.footer-trust-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #38bdf8;
}

.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background-color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.whatsapp-fab:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

@media (max-width: 479px) {
    .brand-logo {
        width: 96px;
        height: 66px;
        border-bottom-right-radius: 22px;
        border-bottom-left-radius: 22px;
    }
}

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: 2.2fr 1.8fr;
        align-items: center;
    }

    .home-sections {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1fr 0.8fr 1fr;
    }
}
.contact-social-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.csb-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-decoration: none;
}

.csb-item:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 10000;
}

.csb-label {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background-color: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.csb-label::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.csb-item:hover .csb-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.csb-phone { background-color: #2D9CDB; }
.csb-telegram { background-color: #2CA5E0; }
.csb-whatsapp { background-color: #25D366; }
.csb-instagram { background-color: #E1306C; }

@media (max-width: 767.98px) {
    .contact-social-bar {
        left: auto; /* Soldan kaldır */
        right: 10px; /* Sağa yasla */
        top: auto;
        bottom: 80px;
        transform: none;
        gap: 10px;
        align-items: flex-end; /* Sağdan hizala */
    }
    .csb-item {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .csb-label {
        display: none; 
    }
}

.brand-item img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
    display: block;
}



/* Desktop Hover for Submenus */
@media (min-width: 992px) {
    .has-submenu:hover > .submenu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}
.instagram-card {
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
}
.instagram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}
.instagram-card .card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background-color: #f3f4f6;
}
.instagram-card .card-img-wrapper img {
    transition: transform 0.5s ease;
}
.instagram-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}
.instagram-overlay {
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.instagram-card:hover .instagram-overlay {
    opacity: 1;
}
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.drop-shadow {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

/* iziModal Custom Size and Centering */
/* .iziModal {
    width: 500px !important;
    max-width: 500px !important;
    height: 500px !important;
    max-height: 500px !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
} */

/* iziModal Close Button Enhancements */
.iziModal-button-close {
    background: rgba(255, 255, 255, 0.2) !important; /* Hafif şeffaf beyaz arka plan */
    color: #fff !important; /* Beyaz ikon */
    border-radius: 50% !important; /* Tamamen yuvarlak */
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 15px !important; /* Üstten boşluk */
    right: 15px !important; /* Sağdan boşluk */
    transition: background-color 0.3s ease;
}

.iziModal-button-close:hover {
    background: rgba(255, 255, 255, 0.4) !important; /* Hover'da daha belirgin */
}

/* Service Page Redesign (Exact Match A.HTML - Scoped) */
.services-scope {
    --bg: #0b1220; /* Dark Navy Background */
    --card: #ffffff;
    --text: #f8fafc; /* Light Text for Page */
    --muted: #94a3b8; /* Lighter muted text for readability on dark */
    --primary: #0b5ea8;      /* buton rengi */
    --primary2: #0a4a84;
    --shadow: 0 10px 28px rgba(0, 0, 0, .3);
    --radius: 16px;
    
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: var(--bg);
    color: var(--text);
}

.services-scope * {
    box-sizing: border-box;
}

.services-scope .wrap {
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 16px;
}

.services-scope .head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.services-scope .head h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: .2px;
}

.services-scope .head p {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 14px;
}

.services-scope .grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1100px) {
    .services-scope .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
    .services-scope .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
    .services-scope .grid { grid-template-columns: 1fr; }
}

.services-scope .card {
    background: var(--card);
    color: #0f172a; /* Force dark text inside white cards */
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(2,6,23,.06);
    transition: transform .18s ease, box-shadow .18s ease;
    min-height: 250px;
    display: block; /* Bootstrap override */
}

.services-scope .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15,23,42,.14);
}

.services-scope .thumb {
    position: relative;
    height: 145px;
    overflow: hidden;
    background: #0b1b33;
}

.services-scope .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.services-scope .badge {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(11, 94, 168, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(11, 94, 168, .35);
    border: 2px solid rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    
    /* Bootstrap override */
    font-size: inherit;
    font-weight: normal;
    color: inherit;
    padding: 0;
    margin: 0;
}

.services-scope .badge svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.services-scope .body {
    padding: 28px 16px 14px 16px;
    text-align: center;
}

.services-scope .title {
    font-size: 14px;
    margin: 6px 0 0 0;
    font-weight: 700;
}

.services-scope .desc {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: var(--muted);
    min-height: 34px;
    line-height: 1.4;
}

.services-scope .actions {
    padding: 10px 16px 16px 16px;
    display: flex;
    justify-content: center;
}

.services-scope .btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transition: background .18s ease;
    
    /* Bootstrap override */
    padding: 0;
    font-size: inherit;
    font-weight: normal;
    line-height: normal;
    border: none;
}

.services-scope .btn:hover {
    background: var(--primary2);
    color: #fff;
}

.services-scope .btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* Modal Updates */
.modal-header-img {
    position: relative;
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.iziModal .lead {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Brands Visibility Fix */
.brands-strip { display: block !important; opacity: 1 !important; visibility: visible !important; }
.brand-item { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,0.1); }
@keyframes brandsScroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* Design polish layer */
.custom-page-header {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(11, 63, 130, 0.94) 100%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    margin-bottom: 0 !important;
    padding-top: clamp(34px, 6vw, 64px) !important;
    padding-bottom: clamp(28px, 5vw, 56px) !important;
}

.custom-page-header > div[style*="radial-gradient"] {
    display: none !important;
}

.custom-page-header .wrap {
    width: min(100% - 32px, 1200px);
}

.custom-page-header h1 {
    font-size: clamp(1.75rem, 4.6vw, 2.45rem) !important;
    line-height: 1.15;
    letter-spacing: 0 !important;
    max-width: 920px;
}

.custom-page-header .breadcrumb {
    row-gap: 6px;
}

#basket-widget {
    width: min(320px, calc(100vw - 24px)) !important;
    right: 12px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    margin: 0 !important;
    color: #0f172a;
    border-radius: 12px !important;
}

#basket-fab,
.basket-fab {
    width: 56px !important;
    height: 56px !important;
    right: 16px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
    margin: 0 !important;
}

.product-card,
.services-page .service-card {
    border-radius: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.product-card .card-title,
.services-page .service-body h5 {
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-img-wrap img {
    object-fit: contain !important;
    padding: 10px;
    background: #f8fafc;
}

.product-card .card-footer {
    flex-wrap: wrap;
}

.product-card .card-footer .btn {
    min-width: 128px;
    flex: 1 1 128px;
}

@media (max-width: 767.98px) {
    .custom-page-header {
        padding-top: 30px !important;
        padding-bottom: 28px !important;
    }

    .product-card .card-footer .btn {
        min-width: 100%;
    }
}

/* Final responsive homepage overrides */
@media (max-width: 991.98px) {
    .proof-grid {
        grid-template-columns: 1fr !important;
    }

    .signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 575.98px) {
    .signal-grid {
        grid-template-columns: 1fr !important;
    }

    .signal-card {
        min-height: auto;
    }

    .home-proof-band {
        padding-top: 34px;
        padding-bottom: 42px;
    }
}

/* Homepage final visual polish */
@media (min-width: 992px) {
    .brand-logo {
        width: 326px !important;
        height: 134px !important;
        border-radius: 0 0 30px 30px !important;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.4) !important;
    }

    .brand-logo-shape {
        padding: 14px 22px 20px !important;
    }

    .brand-logo-img {
        width: 258px !important;
        max-width: 258px !important;
        height: auto !important;
        max-height: 94px !important;
    }

    .site-header.is-scrolled .brand-logo {
        width: 156px !important;
        height: 54px !important;
        border-radius: 0 0 20px 20px !important;
        transform: translateX(-50%) translateY(7px) !important;
    }

    .site-header.is-scrolled .brand-logo-shape {
        padding: 6px 12px 8px !important;
    }

    .site-header.is-scrolled .brand-logo-img {
        width: 124px !important;
        max-width: 124px !important;
        height: auto !important;
        max-height: 38px !important;
    }

    .nav-left {
        padding-right: 188px !important;
    }

    .nav-right {
        padding-left: 188px !important;
    }

    .hero-content {
        margin-left: clamp(76px, 7vw, 132px) !important;
        padding-right: clamp(24px, 5vw, 80px);
    }

    .contact-social-bar {
        left: 18px !important;
        top: auto !important;
        bottom: 132px !important;
        transform: none !important;
        gap: 10px !important;
    }

    .csb-item {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }
}

@media (min-width: 1600px) {
    .hero-content {
        margin-left: clamp(96px, 8vw, 170px) !important;
    }
}

@media (max-width: 991.98px) {
    .hero-content {
        margin-left: 0 !important;
    }
}

/* Centered hero and first-screen brands */
.hero-content {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px;
    padding-right: 16px;
}

.hero-subtext {
    margin-left: auto;
    margin-right: auto;
}

.hero-title-large {
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-actions,
.hero-trust-strip {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.home-brands-first-screen {
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.home-brands-first-screen .brands-strip {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    border: 0 !important;
}

.home-brands-first-screen .brands-heading {
    margin-bottom: 12px !important;
}

@media (min-width: 992px) {
    .hero-content {
        max-width: 920px !important;
    }
}

/* Proof section readability polish */
.home-proof-band .container {
    max-width: 1180px;
}

.proof-grid {
    align-items: center !important;
    margin-bottom: 22px !important;
}

.section-eyebrow {
    letter-spacing: 0.08em !important;
}

.proof-intro h2 {
    font-size: clamp(1.85rem, 3vw, 2.75rem) !important;
    line-height: 1.12 !important;
    max-width: 780px !important;
}

.proof-intro p {
    max-width: 720px !important;
    font-size: 1rem !important;
}

.signal-grid {
    gap: 16px !important;
}

.signal-card {
    min-height: 208px !important;
    padding: 20px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.68)) !important;
}

.signal-title {
    font-size: 1.04rem !important;
}

.signal-text {
    font-size: 0.95rem !important;
    line-height: 1.62 !important;
}

@media (min-width: 992px) {
    .home-proof-band {
        padding-top: 58px !important;
        padding-bottom: 72px !important;
    }
}

/* Corporate submenu and inner-page polish */
@media (min-width: 992px) {
    .submenu {
        min-width: 260px !important;
        padding: 10px !important;
        border: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-top: 3px solid #38bdf8 !important;
        box-shadow: 0 24px 48px rgba(2, 6, 23, 0.22) !important;
    }

    .submenu a {
        border-radius: 6px !important;
        color: #334155 !important;
        letter-spacing: 0.02em !important;
        text-transform: none !important;
    }

    .submenu a:hover {
        background: #eff6ff !important;
        color: #0b3f82 !important;
        padding-left: 24px !important;
    }
}

.custom-page-header {
    min-height: clamp(172px, 18vw, 224px);
    display: flex;
    align-items: center;
}

.custom-page-header .py-4 {
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
}

.custom-page-header h1 {
    text-wrap: balance;
}

.custom-page-header .breadcrumb {
    font-weight: 700;
}

.page-content,
.services-scope,
section[style*="background-color: #f8fafc"],
section[style*="background:#f8fafc"] {
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
}

.services-scope .wrap,
.page-content .container,
section.py-5 > .container {
    max-width: 1180px;
}

.services-scope .card,
.page-content .card,
.program-card,
.document-card,
.contact-form,
.contact-info {
    border-radius: 10px !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
}

.services-scope .card {
    color: #0f172a !important;
}

.services-scope .content-body {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.78;
}

.services-scope .content-body h1,
.services-scope .content-body h2,
.services-scope .content-body h3,
.services-scope .content-body h4 {
    color: #0f172a;
    letter-spacing: 0;
}

.services-scope .content-body img {
    border-radius: 8px;
}

.program-card .icon-box,
.signal-icon {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.filter-wrapper,
.doc-filter-bar {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.accordion-button {
    font-weight: 700;
    color: #0f172a;
}

.accordion-button:not(.collapsed) {
    background: #eff6ff;
    color: #0b3f82;
}

@media (max-width: 767.98px) {
    .custom-page-header {
        min-height: 150px;
    }

    .custom-page-header .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    .services-scope .card,
    .page-content .card {
        padding: 1rem !important;
    }

    .custom-page-header .row.align-items-center {
        gap: 0.75rem !important;
    }

    .custom-page-header .col-lg-5 {
        display: none !important;
    }

    .custom-page-header .lead {
        font-size: 0.95rem !important;
        line-height: 1.55 !important;
    }
}

@media (max-width: 575.98px) {
    .custom-page-header h1 {
        font-size: clamp(1.55rem, 8vw, 2.2rem) !important;
        line-height: 1.12 !important;
    }
}

/* Executive corporate design system */
:root {
    --corp-ink: #0f172a;
    --corp-text: #263445;
    --corp-muted: #64748b;
    --corp-surface: #ffffff;
    --corp-soft: #f6f8fb;
    --corp-line: rgba(100, 116, 139, 0.22);
    --corp-blue: #0b3f82;
    --corp-blue-strong: #0a3470;
    --corp-cyan: #38bdf8;
    --corp-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    --corp-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.07);
}

html {
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    color: var(--corp-text);
    letter-spacing: 0;
    overflow-x: hidden;
}

.site-header {
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22) !important;
}

.topbar,
.brand-row,
.nav-row {
    background: linear-gradient(180deg, #123f83 0%, #0d3a78 100%) !important;
}

.main-nav a {
    font-size: clamp(0.8rem, 0.84vw, 0.9rem) !important;
    letter-spacing: 0.035em !important;
    font-weight: 800 !important;
}

.topbar-pill {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(226, 232, 240, 0.28) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lang-pill {
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
}

.custom-page-header {
    isolation: isolate;
    min-height: clamp(168px, 16vw, 210px) !important;
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.98) 0%, rgba(10, 52, 112, 0.97) 62%, rgba(14, 116, 144, 0.92) 100%) !important;
}

.custom-page-header::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 5px;
    background: linear-gradient(90deg, #38bdf8, #1d4ed8, #38bdf8);
    opacity: 0.9;
    z-index: 1;
}

.custom-page-header h1 {
    color: #ffffff !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 2px 18px rgba(2, 6, 23, 0.32);
}

.custom-page-header p,
.custom-page-header .lead {
    color: rgba(239, 246, 255, 0.86) !important;
}

.breadcrumb,
.breadcrumb a,
.breadcrumb-item.active {
    letter-spacing: 0.02em;
}

.page-content,
.services-scope,
.home-proof-band,
section[style*="background-color: #f8fafc"],
section[style*="background:#f8fafc"] {
    color: var(--corp-text);
}

.page-content h1,
.page-content h2,
.page-content h3,
.services-scope h1,
.services-scope h2,
.services-scope h3 {
    color: var(--corp-ink);
    font-weight: 820;
    letter-spacing: 0;
}

.page-content p,
.services-scope p,
.card p,
.program-desc p,
.service-body p,
.document-card p {
    color: #475569 !important;
    line-height: 1.72 !important;
}

.card,
.service-card,
.program-card,
.document-card,
.admin-card,
.contact-form,
.contact-info {
    border-radius: 10px !important;
    border: 1px solid var(--corp-line) !important;
    box-shadow: var(--corp-shadow-soft) !important;
}

.card:hover,
.service-card:hover,
.program-card:hover,
.document-card:hover {
    box-shadow: var(--corp-shadow) !important;
}

.service-card,
.product-card,
.program-card,
.document-card {
    background: #ffffff !important;
}

.service-body,
.product-card .card-body,
.program-card,
.document-card .card-body {
    color: var(--corp-text);
}

.service-body h5,
.product-card .card-title,
.program-card h5,
.document-card h4,
.document-card h3 {
    color: var(--corp-ink) !important;
    font-weight: 850 !important;
    letter-spacing: 0;
}

.services-page .service-image,
.product-img-wrap,
.document-card-media,
.doc-feature-media {
    background: linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%) !important;
}

.btn,
.btn-primary,
.btn-outline-primary,
.doc-filter-btn,
.filter-btn {
    border-radius: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.btn-primary,
.doc-filter-btn.is-active,
.filter-wrapper .filter-btn.active {
    background: linear-gradient(135deg, #0b3f82 0%, #0ea5e9 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

.btn-outline-primary {
    border-color: rgba(11, 63, 130, 0.36) !important;
    color: #0b3f82 !important;
}

.btn-outline-primary:hover {
    background: #0b3f82 !important;
    color: #ffffff !important;
}

.badge {
    letter-spacing: 0.01em;
    font-weight: 800;
}

.accordion-item {
    background: #ffffff;
}

.accordion-button {
    line-height: 1.35;
}

.contact-layout {
    align-items: start;
}

.contact-form input,
.contact-form textarea,
.form-control,
.form-select {
    border-radius: 8px !important;
    border-color: rgba(100, 116, 139, 0.28) !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18) !important;
}

.site-footer {
    background: #020617 !important;
}

@media (min-width: 992px) {
    .custom-page-header + section {
        padding-top: 3.2rem !important;
    }

    .services-grid,
    #programs-container,
    .row.g-4 {
        row-gap: 1.4rem !important;
    }
}

@media (max-width: 767.98px) {
    .main-nav a,
    .mobile-nav-list > li > a {
        font-size: 0.96rem !important;
    }

    .page-content p,
    .services-scope p,
    .card p {
        font-size: 0.96rem !important;
    }

    .custom-page-header {
        min-height: 144px !important;
    }

    .card,
    .service-card,
    .program-card,
    .document-card {
        border-radius: 9px !important;
    }
}

/* Document/archive pages are content-heavy; keep their hero compact. */
.custom-page-header .row.align-items-center {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.custom-page-header .lead {
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.65;
}

.custom-page-header .badge {
    border-radius: 8px !important;
}

.doc-stat-box,
.doc-cta-box {
    border-radius: 10px !important;
    padding: 0.95rem !important;
}

.doc-stat-number {
    font-size: clamp(1.45rem, 2.4vw, 2.2rem) !important;
}

.doc-stat-label {
    font-size: 0.78rem !important;
    font-weight: 700;
    text-transform: uppercase;
}

.home-corporate-depth {
    position: relative;
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f9fc 48%, #edf5fb 100%);
    color: var(--corp-text);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.corporate-depth-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: start;
}

.corporate-depth-copy {
    position: sticky;
    top: 110px;
}

.corporate-depth-copy h2 {
    max-width: 620px;
    margin: 0.9rem 0 1rem;
    color: var(--corp-ink);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: 0;
}

.corporate-depth-copy p {
    max-width: 620px;
    color: #475569;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.78;
}

.corporate-depth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-ghost-dark {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    color: #0f172a;
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.btn-ghost-dark:hover {
    color: #0b3f82;
    border-color: rgba(14, 165, 233, 0.42);
}

.home-corporate-assurance {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 46%, #eef5fb 100%);
}

.assurance-shell {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.assurance-heading {
    display: grid;
    gap: 0.85rem;
    max-width: 880px;
    margin-bottom: 1.5rem;
}

.assurance-heading h2 {
    margin: 0;
    color: var(--corp-ink);
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.08;
}

.assurance-heading p {
    margin: 0;
    color: #526173;
    font-size: 1.02rem;
    line-height: 1.76;
}

.assurance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.assurance-card {
    min-height: 100%;
    padding: 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.assurance-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: #e8f4ff;
    color: #0b3f82;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assurance-card h3 {
    margin: 0 0 0.65rem;
    color: var(--corp-ink);
    font-size: 1.12rem;
    line-height: 1.4;
}

.assurance-card p {
    margin: 0;
    color: #526173;
    font-size: 0.96rem;
    line-height: 1.72;
}

.assurance-cta {
    margin-top: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #0b3f82 100%);
    color: #ffffff;
    box-shadow: 0 20px 44px rgba(11, 63, 130, 0.22);
}

.assurance-cta-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(186, 230, 253, 0.14);
    color: #bae6fd;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assurance-cta h3 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.5;
    max-width: 760px;
}

.assurance-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.executive-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    gap: 1.25rem;
    align-items: start;
}

.executive-panel-copy,
.executive-panel-grid {
    min-width: 0;
}

.executive-panel-copy {
    padding: 1.5rem;
    border-radius: 22px;
    background: linear-gradient(145deg, #0f172a 0%, #0b3f82 100%);
    color: #ffffff;
    box-shadow: 0 24px 54px rgba(11, 63, 130, 0.2);
}

.executive-panel-copy h2 {
    margin: 0.85rem 0 0.9rem;
    color: #ffffff;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.18;
}

.executive-panel-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.78;
}

.executive-signal-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.executive-signal-item {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(186, 230, 253, 0.16);
}

.executive-signal-item strong,
.contact-trust-item strong {
    display: block;
    margin-bottom: 0.28rem;
    font-size: 0.94rem;
    line-height: 1.45;
}

.executive-signal-item span,
.contact-trust-item span {
    display: block;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.65;
}

.executive-panel-grid {
    display: grid;
    gap: 1rem;
}

.executive-card {
    padding: 1.3rem;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.executive-card-eyebrow,
.contact-form-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f4ff;
    color: #0b3f82;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.executive-card h3,
.contact-intake-card h3 {
    margin: 0.9rem 0 0.55rem;
    color: var(--corp-ink);
    font-size: 1.08rem;
    line-height: 1.45;
}

.executive-card p,
.contact-intake-card p {
    margin: 0;
    color: #526173;
    font-size: 0.95rem;
    line-height: 1.72;
}

.contact-intake-strip {
    padding: 0 0 1.2rem;
}

.contact-intake-shell {
    padding: 1.3rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.contact-intake-heading {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.contact-intake-heading h2 {
    margin: 0;
    color: var(--corp-ink);
    font-size: clamp(1.5rem, 2.7vw, 2.15rem);
    line-height: 1.18;
}

.contact-intake-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contact-intake-card {
    padding: 1.2rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.contact-form-topline {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.contact-form-topline p {
    margin: 0;
    color: #526173;
    line-height: 1.72;
}

.contact-scope-box {
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
    border: 1px solid rgba(14, 116, 144, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.contact-scope-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    color: #334155;
}

.contact-scope-head span {
    color: #0f172a;
    font-weight: 900;
}

.contact-scope-head small {
    max-width: 280px;
    color: #64748b;
    text-align: right;
    line-height: 1.45;
}

.contact-scope-box .form-label {
    color: #1f2a3d;
}

.contact-scope-box .form-control,
.contact-scope-box .form-select {
    min-height: 48px;
}

.contact-trust-stack {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.15rem;
}

.contact-trust-item {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #475569;
}

.contact-google-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

.contact-google-action {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    width: 100%;
    min-height: 52px;
    padding: 0.78rem 0.95rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    line-height: 1.24;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-google-action:hover,
.contact-google-action:focus {
    transform: translateY(-2px);
    color: #0f172a;
    border-color: rgba(14, 116, 144, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.contact-google-action i {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
}

.contact-google-action span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-google-action--maps i {
    background: linear-gradient(135deg, #0ea5e9, #0b5bb5);
}

.contact-google-action--profile i {
    background: linear-gradient(135deg, #334155, #0f172a);
}

.contact-google-action--review i {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.contact-submit-btn {
    display: inline-flex;
    min-width: 180px;
}

@media (max-width: 767.98px) {
    .contact-submit-btn {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-right: 14px !important;
        padding-left: 14px !important;
        white-space: normal !important;
        text-align: center;
        line-height: 1.2;
    }

    .contact-submit-btn span {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

.service-intake-strip,
.product-intake-strip {
    margin-bottom: 1.5rem;
    padding: 1.3rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.service-intake-heading,
.product-intake-copy {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.service-intake-heading h2,
.product-intake-copy h2 {
    margin: 0;
    color: var(--corp-ink);
    font-size: clamp(1.5rem, 2.7vw, 2.15rem);
    line-height: 1.18;
}

.product-intake-copy p {
    margin: 0;
    color: #526173;
    line-height: 1.72;
}

.service-intake-grid,
.product-intake-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-intake-card,
.product-intake-card {
    padding: 1.2rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.service-intake-card h3,
.product-intake-card h3 {
    margin: 0 0 0.55rem;
    color: var(--corp-ink);
    font-size: 1.04rem;
    line-height: 1.45;
}

.service-intake-card p,
.product-intake-card p {
    margin: 0;
    color: #526173;
    font-size: 0.95rem;
    line-height: 1.72;
}

.service-card-actions {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.regional-authority-panel {
    margin: 1.5rem 0;
    padding: clamp(1.25rem, 3vw, 2.2rem);
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.22), transparent 28%),
        linear-gradient(135deg, #0f2237 0%, #123f63 100%);
    color: #ffffff;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.regional-authority-copy {
    max-width: 1040px;
    margin-bottom: 1.2rem;
}

.regional-authority-copy .section-eyebrow {
    color: #93c5fd;
}

.regional-authority-copy h2 {
    margin: 0 0 0.8rem;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    line-height: 1.12;
}

.regional-authority-copy p {
    margin: 0;
    max-width: 980px;
    color: #dbeafe;
    line-height: 1.75;
}

.regional-signal-grid,
.ai-answer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.regional-signal-card,
.ai-answer-card {
    padding: 1.1rem;
    border-radius: 18px;
}

.regional-signal-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.regional-signal-card h3,
.ai-answer-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    line-height: 1.35;
}

.regional-signal-card h3 {
    color: #ffffff;
}

.regional-signal-card p {
    margin: 0;
    color: #cfe8ff;
    line-height: 1.62;
}

.ai-answer-grid {
    margin-top: 1rem;
}

.ai-answer-card {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.ai-answer-card h3 {
    color: #0f172a;
}

.ai-answer-card p {
    margin: 0;
    color: #526173;
    line-height: 1.62;
}

.ai-entity-statement {
    background: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 22px 0;
}

.ai-entity-statement.about-ai-entity {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 28px;
}

.ai-entity-statement-inner {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.ai-entity-statement-inner span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #0f4c81;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    min-width: 0;
}

.regional-partner-statement {
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.regional-partner-statement .ai-entity-statement-inner {
    border-color: rgba(11, 63, 130, 0.18);
    background: #ffffff;
}

.document-trust-grid,
.field-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.document-trust-card,
.field-project-card {
    border: 1px solid rgba(100, 116, 139, 0.18);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.document-trust-card {
    padding: 1.25rem;
}

.document-trust-card span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: #0b3f82;
    font-size: 1.25rem;
}

.document-trust-card h3,
.field-project-card h3 {
    margin: 0 0 0.55rem;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.35;
}

.document-trust-card p,
.field-project-card p {
    margin: 0;
    color: #475569;
    line-height: 1.68;
}

.home-field-projects {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    color: #0f172a;
}

.field-project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e2e8f0;
}

.field-project-card div {
    padding: 1.1rem;
}

.ai-entity-statement-inner p {
    margin: 0;
    color: #1e293b;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.75;
}

.ai-search-hub {
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 44%, #f1f5f9 100%);
}

.ai-search-lead,
.ai-search-cta {
    padding: clamp(1.4rem, 3vw, 2.3rem);
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
}

.ai-search-lead h2,
.ai-search-cta h2 {
    margin: 0 0 0.85rem;
    color: #0f172a;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.15;
}

.ai-search-lead p {
    margin: 0;
    max-width: 1060px;
    color: #334155;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.78;
}

.ai-search-signal-grid,
.ai-search-answer-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.3rem;
}

.ai-search-signal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-search-answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-search-signal-card,
.ai-search-answer-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.ai-search-signal-card {
    min-height: 190px;
    padding: 1.1rem;
}

.ai-search-answer-card {
    padding: 1.25rem;
}

.ai-search-signal-card h3,
.ai-search-answer-card h3 {
    margin: 0 0 0.65rem;
    color: #0f172a;
    font-size: 1.04rem;
    font-weight: 850;
    line-height: 1.35;
}

.ai-search-signal-card p,
.ai-search-answer-card p {
    margin: 0;
    color: #526173;
    line-height: 1.68;
}

.ai-search-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
    background: linear-gradient(135deg, #0f2237 0%, #123f63 100%);
}

.ai-search-cta span {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: #93c5fd;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ai-search-cta h2 {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
}

.ai-search-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.service-seo-depth,
.customer-segment-depth {
    margin: 1.5rem 0;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.customer-segment-depth {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.service-seo-head {
    max-width: 980px;
    margin-bottom: 1.2rem;
}

.service-seo-head h2 {
    margin: 0 0 0.7rem;
    color: var(--corp-ink);
    font-size: clamp(1.55rem, 2.8vw, 2.35rem);
    line-height: 1.15;
}

.service-seo-head p {
    margin: 0;
    color: #526173;
    line-height: 1.72;
}

.service-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-seo-card,
.customer-segment-card {
    padding: 1.15rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.service-seo-card-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.service-seo-card-title span {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: #075985;
}

.service-seo-card-title h3,
.customer-segment-card h3 {
    margin: 0;
    color: var(--corp-ink);
    font-size: 1.08rem;
    line-height: 1.35;
}

.service-seo-card dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.service-seo-card dl div {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.service-seo-card dt {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.35;
}

.service-seo-card dd {
    margin: 0.25rem 0 0;
    color: #526173;
    font-size: 0.94rem;
    line-height: 1.65;
}

.customer-segment-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.customer-segment-card p {
    margin: 0.8rem 0;
    color: #526173;
    line-height: 1.65;
}

.customer-segment-card ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding-left: 1.1rem;
    color: #334155;
    line-height: 1.55;
}

.reference-proof-strip,
.document-proof-strip {
    padding: 1.35rem;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.reference-proof-heading,
.document-proof-copy {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.reference-proof-heading h2,
.document-proof-copy h2 {
    margin: 0;
    color: var(--corp-ink);
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    line-height: 1.18;
}

.document-proof-copy p {
    margin: 0;
    color: #526173;
    line-height: 1.72;
}

.reference-proof-grid,
.document-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.reference-proof-card,
.document-proof-card {
    padding: 1.2rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.reference-proof-card h3,
.document-proof-card h3 {
    margin: 0 0 0.55rem;
    color: var(--corp-ink);
    font-size: 1.02rem;
    line-height: 1.45;
}

.reference-proof-card p,
.document-proof-card p {
    margin: 0;
    color: #526173;
    font-size: 0.95rem;
    line-height: 1.72;
}

.reference-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.reference-card-link {
    color: #0b3f82;
}

.reference-editorial {
    display: grid;
    gap: 1.15rem;
}

.reference-editorial-lead {
    margin: 0;
    color: var(--corp-ink);
    font-size: clamp(1.02rem, 1.7vw, 1.18rem);
    line-height: 1.85;
    font-weight: 600;
}

.reference-editorial-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.reference-editorial-item {
    padding: 1.15rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.reference-editorial-item h3 {
    margin: 0 0 0.45rem;
    color: var(--corp-ink);
    font-size: 1rem;
    line-height: 1.45;
}

.reference-editorial-item p {
    margin: 0;
    color: #526173;
    line-height: 1.72;
}

.reference-cta-band,
.document-archive-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a 0%, #0b3f82 100%);
    color: #ffffff;
    box-shadow: 0 20px 44px rgba(11, 63, 130, 0.22);
}

.reference-cta-band h3,
.document-archive-cta h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.08rem, 2vw, 1.5rem);
    line-height: 1.48;
    max-width: 780px;
}

.reference-cta-badge,
.document-archive-cta-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(186, 230, 253, 0.14);
    color: #bae6fd;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-scope .reference-badge {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    margin: 0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: none;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.process-list {
    display: grid;
    gap: 0.85rem;
}

.process-item {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.3rem);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.process-item strong {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #0b3f82 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
}

.process-item h3,
.sector-card h3 {
    margin: 0 0 0.35rem;
    color: var(--corp-ink);
    font-size: 1.02rem;
    font-weight: 850;
    letter-spacing: 0;
}

.process-item p,
.sector-card p {
    margin: 0;
    color: #526173;
    font-size: 0.95rem;
    line-height: 1.65;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: clamp(1.4rem, 4vw, 2.5rem);
}

.sector-card {
    min-height: 178px;
    padding: 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.sector-card span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    border-radius: 9px;
    color: #0b3f82;
    background: #e8f4ff;
}

@media (max-width: 991.98px) {
    .contact-scope-head {
        display: grid;
        gap: 0.35rem;
    }

    .contact-scope-head small {
        max-width: none;
        text-align: left;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .executive-panel,
    .ai-entity-statement-inner,
    .ai-search-signal-grid,
    .ai-search-answer-grid,
    .contact-intake-grid,
    .regional-signal-grid,
    .ai-answer-grid,
    .service-intake-grid,
    .service-seo-grid,
    .product-intake-grid,
    .customer-segment-grid,
    .reference-proof-grid,
    .document-proof-grid,
    .reference-editorial-list {
        grid-template-columns: 1fr;
    }

    .assurance-grid {
        grid-template-columns: 1fr;
    }

    .reference-cta-band,
    .document-archive-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .assurance-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .assurance-cta-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .corporate-depth-grid {
        grid-template-columns: 1fr;
    }

    .corporate-depth-copy {
        position: static;
    }

    .sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .proof-stats {
        grid-template-columns: 1fr;
    }

    .ai-entity-statement {
        padding: 14px 0;
    }

    .ai-entity-statement-inner {
        gap: 14px;
        padding: 18px;
    }

    .ai-search-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-search-cta-actions,
    .ai-search-cta-actions a {
        width: 100%;
    }

    .executive-panel-copy,
    .contact-intake-shell,
    .executive-card,
    .contact-intake-card,
    .contact-trust-item,
    .service-intake-strip,
    .product-intake-strip,
    .service-intake-card,
    .product-intake-card,
    .reference-proof-strip,
    .document-proof-strip,
    .reference-proof-card,
    .document-proof-card,
    .reference-cta-band,
    .document-archive-cta {
        padding: 1rem;
    }

    .proof-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .proof-stats div:last-child {
        border-bottom: 0;
    }

    .assurance-shell {
        padding: 1.1rem;
        border-radius: 20px;
    }

    .assurance-card,
    .assurance-cta {
        padding: 1.1rem;
    }

    .assurance-cta-actions > a {
        width: 100%;
    }

    .process-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 0.8rem;
    }

    .process-item strong {
        width: 44px;
        height: 44px;
    }

    .sector-grid {
        grid-template-columns: 1fr;
    }

    .service-seo-grid,
    .customer-segment-grid {
        grid-template-columns: 1fr;
    }

    .service-seo-depth,
    .regional-authority-panel,
    .customer-segment-depth {
        padding: 1rem;
        border-radius: 18px;
    }

    .corporate-depth-actions > a {
        width: 100%;
    }
}

/* Contrast hardening: keep inherited text colors readable on dark header and light cards. */
.site-header,
.site-header .brand-row,
.site-header .brand-row-inner,
.site-header .brand-left,
.site-header .brand-right,
.site-header .nav-row,
.site-header .header-inner,
.site-header .main-nav,
.site-header .nav-lists-wrapper,
.site-header .nav-left,
.site-header .nav-right,
.site-header .nav-item {
    color: #f8fafc !important;
}

.site-header a,
.site-header .nav-link,
.site-header .main-nav a,
.site-header .topbar-pill,
.site-header .topbar-pill span,
.site-header .topbar-pill i {
    color: #f8fafc !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    color: #ffffff !important;
}

.site-header .dropdown-menu,
.site-header .submenu {
    color: #0f172a !important;
}

.site-header .dropdown-menu a,
.site-header .submenu a,
.site-header .dropdown-item {
    color: #0f172a !important;
}

.lang-pill.is-active {
    background: #b45309 !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
}

.lang-pill.is-active .lang-text-top,
.lang-pill.is-active .lang-text-bottom {
    color: #ffffff !important;
}

.page-content,
.page-content.light-content,
.services-scope,
section.page-content[style*="f8fafc"],
section.page-content[style*="#f8fafc"] {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

.page-content .lead,
.page-content .text-muted,
.page-content p.text-muted,
.program-desc p,
.accordion-body.text-muted {
    color: #475569 !important;
}

.page-content .card,
.page-content .contact-form,
.page-content .contact-info,
.page-content .program-card,
.page-content .product-card,
.page-content .accordion-item,
.services-scope .card,
.services-scope .service-card {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.contact-form label,
.contact-form .form-label,
.page-content label,
.form-label {
    color: #172033 !important;
}

.btn-primary,
button.btn-primary,
a.btn-primary {
    background: linear-gradient(135deg, #0b3f82 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.btn-outline-primary,
button.btn-outline-primary,
a.btn-outline-primary {
    background: #ffffff !important;
    color: #0b3f82 !important;
}

.btn-outline-primary:hover,
button.btn-outline-primary:hover,
a.btn-outline-primary:hover {
    background: #0b3f82 !important;
    color: #ffffff !important;
}

/* Premium interaction layer */
.hero-slide {
    overflow: hidden;
}

.hero-motion-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-motion-orb,
.hero-motion-grid {
    position: absolute;
    display: block;
}

.hero-motion-orb {
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.5;
    animation: heroFloat 12s ease-in-out infinite;
}

.hero-motion-orb-1 {
    width: 240px;
    height: 240px;
    right: 8%;
    top: 18%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.42) 0%, rgba(56, 189, 248, 0) 72%);
}

.hero-motion-orb-2 {
    width: 320px;
    height: 320px;
    left: 6%;
    bottom: 4%;
    animation-delay: -4s;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0) 75%);
}

.hero-motion-grid {
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(186, 230, 253, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(186, 230, 253, 0.12) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 22%, rgba(0, 0, 0, 0.85) 100%);
}

@keyframes heroFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -18px, 0) scale(1.04);
    }
}

.hero-actions .btn-primary,
.hero-actions .btn-ghost {
    min-height: 50px;
    padding: 0.9rem 1.35rem;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
}

.hero-actions .btn-primary::after,
.hero-actions .btn-ghost::after {
    content: "";
    width: 0;
    height: 2px;
    background: currentColor;
    margin-left: 0;
    transition: width 0.22s ease, margin-left 0.22s ease;
}

.hero-actions .btn-primary:hover::after,
.hero-actions .btn-ghost:hover::after {
    width: 14px;
    margin-left: 8px;
}

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.35rem;
}

.hero-stat-card {
    padding: 1rem 1rem 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(15, 23, 42, 0.42) 100%);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.16);
}

.hero-stat-card strong,
.hero-stat-card span {
    display: block;
}

.hero-stat-card strong {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    color: #ffffff;
    line-height: 1.1;
    font-weight: 900;
}

.hero-stat-card span {
    margin-top: 0.35rem;
    color: #dbeafe;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 700;
}

.reference-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reference-filter-chip {
    appearance: none;
    cursor: pointer;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #ffffff;
    color: #334155;
    font-weight: 800;
    font-size: 0.92rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.reference-filter-chip:hover,
.reference-filter-chip.is-active {
    transform: translateY(-1px);
    border-color: rgba(14, 165, 233, 0.3);
    background: linear-gradient(135deg, #0b3f82 0%, #0ea5e9 100%);
    color: #ffffff;
}

.reference-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.reference-archive-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #06142d 0%, #0b3f82 58%, #0ea5e9 100%);
    color: #ffffff;
    box-shadow: 0 22px 54px rgba(11, 63, 130, 0.24);
}

.reference-archive-head h2 {
    margin: 0.45rem 0 0;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.reference-archive-head p {
    max-width: 720px;
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.84) !important;
}

.reference-archive-head .section-eyebrow {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.reference-archive-head strong {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.reference-showcase-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.reference-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.12);
}

.reference-showcase-card.is-hidden {
    display: none;
}

.reference-showcase-media {
    position: relative;
    min-height: 300px;
    background: linear-gradient(180deg, #eaf3ff 0%, #dbeafe 100%);
}

.reference-showcase-media > a,
.reference-showcase-media > span,
.reference-media-trigger {
    display: block;
    min-height: 300px;
}

.reference-media-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.reference-showcase-media img,
.reference-showcase-media video,
.reference-showcase-placeholder {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.reference-showcase-media video {
    display: block;
    background: #0f172a;
}

.reference-showcase-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b3f82;
    font-size: 3rem;
}

.reference-showcase-overlay {
    position: absolute;
    inset: auto 1rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.reference-showcase-pill {
    min-height: 32px;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.reference-video-mark {
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.76);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(10px);
}

.reference-showcase-body {
    padding: 1.35rem;
}

.reference-showcase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 700;
}

.reference-showcase-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.reference-showcase-body h3 {
    margin: 0 0 0.7rem;
    color: #0f172a;
    font-size: 1.28rem;
    line-height: 1.32;
}

.reference-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: -0.2rem 0 0.75rem;
}

.reference-project-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    background: #eef7ff;
    border: 1px solid rgba(14, 116, 144, 0.14);
    color: #0b5d8f;
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.15;
}

.reference-showcase-body p {
    margin: 0;
    color: #526173 !important;
}

.reference-empty-state {
    padding: 1.25rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(14, 116, 144, 0.16);
    color: #475569;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.reference-empty-state strong,
.reference-empty-state span {
    display: block;
}

.reference-empty-state strong {
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.reference-gallery-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.reference-gallery-thumb,
.reference-gallery-more {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef6ff;
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: #0b3f82;
    font-size: 0.9rem;
    font-weight: 900;
    cursor: pointer;
}

.reference-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

.reference-lightbox.is-open {
    display: flex;
}

.reference-lightbox-open {
    overflow: hidden;
}

.reference-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(12px);
}

.reference-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: min(92vh, 900px);
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(8, 18, 38, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

.reference-lightbox-stage {
    grid-column: 2;
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: #020617;
}

.reference-lightbox-stage img,
.reference-lightbox-stage video {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.reference-lightbox-stage video {
    width: 100%;
    background: #000000;
}

.reference-lightbox-close,
.reference-lightbox-nav {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reference-lightbox-close:hover,
.reference-lightbox-nav:hover {
    background: rgba(14, 165, 233, 0.85);
    transform: translateY(-1px);
}

.reference-lightbox-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    z-index: 2;
}

.reference-lightbox-nav {
    align-self: center;
    width: 54px;
    height: 70px;
    border-radius: 18px;
    font-size: 1.15rem;
}

.reference-lightbox-prev {
    grid-column: 1;
    grid-row: 1;
}

.reference-lightbox-next {
    grid-column: 3;
    grid-row: 1;
}

.reference-lightbox-caption {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #ffffff;
}

.reference-lightbox-caption strong {
    font-size: 1rem;
}

.reference-lightbox-caption span {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.reference-lightbox-thumbs {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem;
}

.reference-lightbox-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 54px;
    padding: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.reference-lightbox-thumb.is-active {
    border-color: #38bdf8;
}

.reference-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reference-showcase-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.reference-detail-box {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.reference-detail-box strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
}

.reference-detail-box span {
    display: block;
    color: #526173;
    font-size: 0.92rem;
    line-height: 1.62;
}

.reference-showcase-footer {
    margin-top: 1rem;
}

.reference-showcase-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0b3f82;
    font-weight: 800;
}

.blog-showcase-card .reference-showcase-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-highlight-list,
.blog-detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.blog-highlight-pill {
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid rgba(59, 130, 246, 0.16);
    color: #0b3f82;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.blog-article-cover {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
}

.blog-article-cover img {
    width: 100%;
    height: clamp(260px, 42vw, 420px);
    object-fit: cover;
    display: block;
}

.blog-ai-visual-caption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100% - 36px);
    padding: 0.58rem 0.78rem;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.76);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.26);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    backdrop-filter: blur(10px);
}

.blog-ai-visual-caption i {
    color: #38bdf8;
}

.turkiye-service-area {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: clamp(1.1rem, 3vw, 1.6rem);
}

.turkiye-service-area__eyebrow {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: #0b5bb5;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.turkiye-service-area h2 {
    margin: 0 0 0.55rem;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.turkiye-service-area__head p {
    max-width: 760px;
    color: #475569;
    margin-bottom: 1rem;
}

.turkiye-service-area__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.turkiye-service-area__stats span {
    display: inline-flex;
    align-items: center;
    padding: 0.46rem 0.72rem;
    border-radius: 999px;
    background: #eaf5ff;
    color: #0b3f82;
    border: 1px solid rgba(14, 116, 144, 0.14);
    font-weight: 900;
    font-size: 0.82rem;
}

.turkiye-service-area__details {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1rem;
}

.turkiye-service-area__details summary {
    cursor: pointer;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.45;
}

.turkiye-service-area__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
    max-height: 560px;
    overflow: auto;
    padding-right: 0.3rem;
}

.turkiye-service-area__province {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    padding: 0.95rem;
}

.turkiye-service-area__province h3 {
    margin: 0 0 0.45rem;
    color: #0b3f82;
    font-size: 1rem;
    font-weight: 900;
}

.turkiye-service-area__province p {
    margin: 0;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.55;
}

.footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-map-panel {
    grid-column: span 2;
}

.footer-map-embed {
    overflow: hidden;
    border-radius: 16px;
    min-height: 220px;
    margin-top: 12px;
}

.footer-map-embed iframe {
    width: 100%;
    min-height: 220px;
    border: 0;
}

.floating-action-dock {
    position: fixed;
    right: 16px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    z-index: 9998;
}

.floating-action-btn {
    min-width: 54px;
    min-height: 54px;
    padding: 0.8rem 0.95rem;
    border: 0;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.floating-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.26);
    color: #ffffff;
}

.floating-action-btn span {
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.floating-action-btn.action-phone {
    background: linear-gradient(135deg, #0284c7 0%, #0b3f82 100%);
}

.floating-action-btn.action-whatsapp {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.floating-action-btn.action-offer {
    background: linear-gradient(135deg, #0b3f82 0%, #0ea5e9 100%);
}

.floating-action-btn.action-top {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    opacity: 0;
    pointer-events: none;
}

.floating-action-btn.action-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .floating-action-btn.action-phone {
        display: none;
    }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .hero-stat-grid,
    .reference-showcase-grid,
    .reference-showcase-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .turkiye-service-area__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-map-panel {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .hero-stat-grid,
    .reference-showcase-grid,
    .reference-showcase-detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .reference-archive-head {
        align-items: stretch;
        flex-direction: column;
        padding: 1.1rem;
        border-radius: 20px;
    }

    .reference-archive-head strong {
        width: 100%;
        min-width: 0;
    }

    .reference-lightbox {
        padding: 0.5rem;
    }

    .reference-lightbox-dialog {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 0.55rem;
        padding: 0.65rem;
        border-radius: 18px;
    }

    .reference-lightbox-stage {
        grid-column: 1 / -1;
        min-height: 54vh;
        margin-top: 2.6rem;
    }

    .reference-lightbox-prev,
    .reference-lightbox-next {
        grid-row: 2;
    }

    .reference-lightbox-prev {
        grid-column: 1;
    }

    .reference-lightbox-next {
        grid-column: 3;
    }

    .reference-lightbox-nav {
        width: 44px;
        height: 48px;
        border-radius: 14px;
    }

    .reference-lightbox-caption {
        grid-column: 2;
        grid-row: 2;
        flex-direction: column;
        justify-content: center;
        gap: 0.15rem;
        text-align: center;
    }

    .reference-lightbox-thumbs {
        grid-row: 3;
    }

    .turkiye-service-area__grid {
        grid-template-columns: 1fr;
        max-height: 520px;
    }

    .turkiye-service-area__province {
        padding: 0.85rem;
    }

    .footer-map-panel {
        grid-column: auto;
    }

    .floating-action-dock {
        left: 12px;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        border: 1px solid rgba(226, 232, 240, 0.18);
        border-radius: 16px;
        background: rgba(2, 6, 23, 0.82);
        backdrop-filter: blur(16px);
        box-shadow: 0 20px 44px rgba(2, 6, 23, 0.32);
    }

    .floating-action-btn {
        min-width: 0;
        min-height: 48px;
        width: 100%;
        padding: 0.62rem 0.5rem;
        border-radius: 10px;
        flex-direction: column;
        gap: 0.22rem;
    }

    .floating-action-btn span {
        display: block;
        font-size: 0.72rem;
        line-height: 1;
    }

    .floating-action-btn.action-top {
        position: fixed;
        right: 14px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
        width: 48px;
        min-width: 48px;
        border-radius: 14px;
    }

    .floating-action-btn.action-top span {
        display: none;
    }
}

/* Corporate readability and speed polish */
.hero-motion-orb {
    display: none !important;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(7, 18, 38, 0.68) 48%, rgba(11, 63, 130, 0.42) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.14) 52%, rgba(2, 6, 23, 0.42) 100%) !important;
}

.hero-kicker,
.hero-title-large,
.hero-subtext,
.hero-trust-strip,
.hero-stat-card {
    text-shadow: 0 2px 18px rgba(2, 6, 23, 0.42);
}

.home-brands-first-screen .brands-strip {
    background: linear-gradient(180deg, #020817 0%, #071428 100%) !important;
}

.home-brands-first-screen .brand-item,
.brands-strip .brand-item {
    border-radius: 8px !important;
}

.home-why-mrlife,
.home-documents-highlight,
.home-corporate-depth,
.home-corporate-assurance,
.page-content,
.services-scope {
    color: #0f172a !important;
}

.home-why-mrlife h1,
.home-why-mrlife h2,
.home-why-mrlife h3,
.home-documents-highlight h1,
.home-documents-highlight h2,
.home-documents-highlight h3,
.home-corporate-depth h1,
.home-corporate-depth h2,
.home-corporate-depth h3,
.home-corporate-assurance h1,
.home-corporate-assurance h2,
.home-corporate-assurance h3,
.page-content h1,
.page-content h2,
.page-content h3,
.services-scope h1,
.services-scope h2,
.services-scope h3 {
    color: #0f172a !important;
}

.home-why-mrlife p,
.home-why-mrlife .text-muted,
.home-documents-highlight p,
.home-documents-highlight .text-muted,
.home-corporate-depth p,
.home-corporate-assurance p,
.page-content p,
.page-content .text-muted,
.services-scope p,
.services-scope .text-muted {
    color: #475569 !important;
}

.home-service-areas,
.site-footer,
.assurance-cta,
.reference-cta-band,
.document-archive-cta {
    color: #f8fafc !important;
}

.home-service-areas h1,
.home-service-areas h2,
.home-service-areas h3,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.assurance-cta h1,
.assurance-cta h2,
.assurance-cta h3 {
    color: #ffffff !important;
}

.home-service-areas p,
.home-service-areas .text-white-50,
.site-footer p,
.site-footer li,
.site-footer a {
    color: rgba(226, 232, 240, 0.88) !important;
}

.card,
.signal-card,
.sector-card,
.process-item,
.assurance-card,
.reference-showcase-card,
.reference-detail-box,
.reference-proof-card,
.document-proof-card,
.footer-panel {
    border-radius: 8px !important;
}

.btn,
.btn-primary,
.btn-ghost,
.btn-ghost-dark,
.btn-outline-primary,
.btn-outline-light,
.btn-light {
    border-radius: 8px !important;
    letter-spacing: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keep the brand marquee alive even when global motion hardening is active. */
.brands-track {
    width: max-content !important;
    min-width: max-content !important;
    animation-name: brandsScroll !important;
    animation-duration: 36s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
    will-change: transform !important;
}

@keyframes brandsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Homepage critique pass: clearer message, less empty space, better contrast. */
#heroSection .hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(7, 18, 38, 0.76) 46%, rgba(11, 63, 130, 0.50) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.24) 52%, rgba(2, 6, 23, 0.50) 100%) !important;
}

#heroSection .hero-title-large {
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3.9rem) !important;
    line-height: 1.04 !important;
}

#heroSection .hero-subtext {
    color: #eff6ff !important;
    font-weight: 650;
}

.home-proof-band,
.home-corporate-depth,
.home-corporate-assurance,
.home-documents-highlight,
.home-field-projects,
.home-service-areas {
    padding-top: clamp(2.2rem, 4.2vw, 4rem) !important;
    padding-bottom: clamp(2.2rem, 4.2vw, 4rem) !important;
}

.home-corporate-depth .sector-grid {
    margin-top: 1.4rem !important;
}

.corporate-depth-copy {
    position: static !important;
}

.corporate-depth-copy h2,
.assurance-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.45rem) !important;
}

.home-corporate-assurance .assurance-shell {
    border-radius: 8px !important;
    padding: clamp(1.15rem, 2.4vw, 1.65rem) !important;
}

.home-documents-highlight {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%) !important;
}

.home-documents-highlight h1,
.home-documents-highlight h2,
.home-documents-highlight h3,
.home-field-projects h1,
.home-field-projects h2,
.home-field-projects h3 {
    color: #0f172a !important;
}

.home-documents-highlight p,
.home-documents-highlight .text-muted,
.home-field-projects p,
.home-field-projects .text-muted {
    color: #475569 !important;
}

.home-service-areas h2,
.home-service-areas p {
    max-width: 680px;
}

@media (max-width: 991.98px) {
    .document-trust-grid,
    .field-project-grid,
    .assurance-grid {
        grid-template-columns: 1fr !important;
    }

    .ai-entity-statement-inner {
        grid-template-columns: 1fr !important;
        gap: 0.9rem;
    }

    .ai-entity-statement-inner span {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 82px);
    }

    #heroSection .hero-title-large {
        max-width: min(306px, calc(100vw - 64px)) !important;
        font-size: clamp(1.42rem, 5.4vw, 1.72rem) !important;
        margin-top: 58px !important;
        overflow-wrap: anywhere;
    }

    .hero-region-line {
        max-width: min(306px, calc(100vw - 64px)) !important;
        font-size: 0.98rem;
    }

    #heroSection .hero-subtext {
        max-width: min(306px, calc(100vw - 64px)) !important;
        font-size: 0.94rem !important;
    }

    .regional-partner-statement .ai-entity-statement-inner {
        max-width: calc(100vw - 32px);
        overflow: hidden;
        padding: 1rem !important;
    }

    .regional-partner-statement .ai-entity-statement-inner span {
        display: block;
        width: 100%;
        font-size: 0.62rem;
        line-height: 1.35;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word;
    }

    .hero-trust-strip span {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Final header override: keep brand compact after all legacy homepage rules. */
@media (min-width: 992px) {
    .site-header .brand-logo {
        left: 28px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: clamp(150px, 14vw, 218px) !important;
        height: 58px !important;
        border-radius: 8px !important;
    }

    .site-header .brand-logo-shape {
        padding: 7px 14px !important;
    }

    .site-header .brand-logo-img {
        width: clamp(122px, 12vw, 178px) !important;
        max-width: 178px !important;
        max-height: 44px !important;
    }

    .site-header .nav-left {
        padding-right: 0 !important;
    }

    .site-header .nav-right {
        padding-left: 0 !important;
    }

    .site-header .header-inner {
        padding-left: clamp(220px, 22vw, 310px) !important;
    }
}

/* Final mobile containment override for contact/header pages. */
@media (max-width: 767.98px) {
    .topbar .container,
    .topbar-inner {
        max-width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .topbar-content,
    .topbar-left {
        width: 100% !important;
        min-width: 0 !important;
        gap: 6px !important;
    }

    .topbar-left {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 66px !important;
        align-items: center !important;
    }

    .topbar-right {
        display: none !important;
    }

    .topbar-pill {
        width: 100% !important;
        min-width: 0 !important;
        height: 34px !important;
        padding: 0 7px !important;
        gap: 5px !important;
        font-size: 0.62rem !important;
        letter-spacing: 0.035em !important;
    }

    .topbar-pill-text {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .topbar-lang-wrapper {
        top: 0 !important;
        margin-left: 0 !important;
        gap: 4px !important;
    }

    .lang-pill {
        width: 29px !important;
        height: 29px !important;
        transform: none !important;
    }

    .lang-pill.is-active {
        transform: none !important;
    }

    .services-scope .wrap,
    .contact-intake-strip .container,
    .custom-page-header .container {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .custom-page-header .row,
    .services-scope .row,
    .contact-intake-strip .row {
        --bs-gutter-x: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .custom-page-header [class*="col-"],
    .services-scope [class*="col-"],
    .contact-intake-strip [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .contact-intake-shell,
    .services-scope .card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        padding: 1rem !important;
    }

    .contact-intake-heading h2 {
        font-size: clamp(1.25rem, 6vw, 1.55rem) !important;
        line-height: 1.22 !important;
        max-width: 100% !important;
    }

    .custom-page-header h1,
    .custom-page-header p,
    .custom-page-header .lead,
    .contact-intake-heading h2,
    .contact-intake-card h3,
    .contact-intake-card p,
    .contact-form-topline p,
    .contact-trust-item span,
    .contact-google-action span {
        overflow-wrap: anywhere !important;
        white-space: normal !important;
    }

    .contact-intake-card,
    .contact-scope-box,
    .contact-trust-item,
    .contact-google-action,
    #contact-form-sms,
    #contact-form-sms * {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .mrl-page-hero__orb,
    .hero-motion-orb {
        display: none !important;
    }

    .brands-slider,
    .brands-strip,
    .home-brands-first-screen {
        max-width: 100vw !important;
        overflow: hidden !important;
    }
}
