/* Custom styles - IT Company Homepage - Clean Design */
/* Brand colors - Teal palette to match consulting logos */
:root {
    /* Fixed header ≈ top bar + nav (desktop / legacy); mobile uses --header-sticky-nav-offset */
    --header-offset-mobile: max(10rem, calc(env(safe-area-inset-top, 0px) + 9.25rem));
    /* Sticky nav bar only (mobile): ~.header-inner height + safe area */
    --header-sticky-nav-offset: calc(env(safe-area-inset-top, 0px) + 76px);
    --brand-primary: #0d9488;        /* Teal - main brand */
    --brand-primary-light: #14b8a6;  /* Lighter teal for accents */
    --brand-primary-dark: #0f766e;   /* Darker teal */
    --brand-accent: #0891b2;         /* Cyan accent for CTAs */
    --brand-accent-light: #06b6d4;   /* Lighter cyan */
    --brand-bg: #0f172a;             /* Section backgrounds */
    --brand-bg-dark: #020617;        /* Dark backgrounds */
    /* Soft top edge between mint sections (avoid heavy dark bars) */
    --section-separator-edge: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.11), transparent);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    position: relative;
}

/* Scrollable page column only — NO overflow:hidden here: it breaks position:fixed
   descendants on mobile WebKit (narrow “column” + white strip on the right). */
.layout-root {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
}

main {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Tailwind utility: allow shrinking inside flex/grid on narrow phones */
.max-w-6xl {
    min-width: 0;
    box-sizing: border-box;
}

/* Header - Premium top bar + Nav */
.header-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    /* Ensure fixed bar paints edge-to-edge on iOS/Android */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.header-new.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/*
 * Mobile: top bar (phone, email, etc.) scrolls away; only the white nav row stays sticky.
 * Overrides Tailwind `fixed` on #mainHeader (index.html).
 */
@media (max-width: 899px) {
    #mainHeader.header-new {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        background: transparent;
        box-shadow: none;
    }

    #mainHeader.header-new.scrolled {
        box-shadow: none;
    }

    #mainHeader.header-new.scrolled .header-nav-bar:not(.nav-fixed-mobile) {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    /* In-flow nav; .nav-fixed-mobile is toggled by main.js after scrolling past the top bar */
    #mainHeader .header-nav-bar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 50 !important;
        background: #fff !important;
        width: 100%;
        max-width: 100%;
    }

    #mainHeader .header-nav-bar.nav-fixed-mobile {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: env(safe-area-inset-top, 0px) !important;
        z-index: 50 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

@keyframes header-gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-top-bar {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 50%, var(--brand-primary-light) 100%);
    background-size: 200% 200%;
    animation: header-gradient-flow 10s ease infinite;
    color: rgba(255, 255, 255, 0.96);
    padding: 0.45rem 0;
    font-size: 0.875rem;
}

.header-top-inner {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.header-top-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.header-top-cta {
    display: none;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.header-top-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
    .header-top-bar {
        padding: 0.55rem 0;
        font-size: 0.9375rem;
    }
    .header-top-inner {
        padding: 0 max(1.5rem, env(safe-area-inset-left)) 0 max(1.5rem, env(safe-area-inset-right));
        gap: 1rem;
    }
    .header-top-left {
        gap: 1.25rem 2rem;
    }
    .header-top-cta {
        display: inline-flex;
    }
}

.header-top-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
    overflow-wrap: anywhere;
    word-break: break-word;
}

a.header-top-item:hover {
    opacity: 0.9;
}

.header-top-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-top-hours,
.header-top-location {
    opacity: 0.92;
}

@media (max-width: 639px) {
    .header-top-bar {
        font-size: clamp(0.6875rem, 3.35vw, 0.8125rem);
        padding: 0.42rem 0;
    }

    .header-top-inner {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.45rem 0.5rem;
        padding-left: max(0.65rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.65rem, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .header-top-left {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 0.4rem 0.55rem;
    }

    /* Phone: compact; don’t steal half the row */
    .header-top-item[href^="tel:"] {
        flex: 0 1 auto;
        max-width: 48%;
        white-space: nowrap;
        overflow: visible;
    }

    /* Email: use remaining width and wrap so the full address is visible */
    .header-top-item[href^="mailto:"] {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        white-space: normal;
        overflow: visible;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.25;
        text-align: left;
        align-items: flex-start;
    }

    .header-top-item[href^="mailto:"] .header-top-icon {
        flex-shrink: 0;
        align-self: flex-start;
        margin-top: 0.08em;
    }

    .header-top-icon {
        width: clamp(12px, 3.5vw, 15px);
        height: clamp(12px, 3.5vw, 15px);
    }

    .header-top-hours,
    .header-top-location {
        display: none;
    }
}

/* position:relative is set on ≥900px only — a later rule was overriding mobile sticky */
.header-nav-bar {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 900px) {
    .header-nav-bar {
        position: relative;
    }
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .header-inner {
        padding: 0 max(1.5rem, env(safe-area-inset-left)) 0 max(1.5rem, env(safe-area-inset-right));
    }
}

.header-logo {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo-img {
    height: 48px;
    width: auto;
    max-width: min(200px, 100%);
    display: block;
    object-fit: contain;
}

.header-nav-links {
    align-items: center;
    gap: 0.35rem;
}

.header-link {
    position: relative;
    padding: 0.55rem 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #475569;
    border-radius: 0.375rem;
    transition: color 0.2s, background 0.2s;
}

.header-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--brand-primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 1px;
}

.header-link:hover::after,
.header-link-active::after {
    transform: scaleX(1);
}

.header-link:hover {
    color: var(--brand-primary);
}

.header-link-active {
    color: var(--brand-primary) !important;
    font-weight: 600;
}

.header-cta {
    padding: 0.6rem 1.5rem;
    background: var(--brand-primary);
    color: #fff !important;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background 0.2s, transform 0.2s;
}

.header-cta:hover {
    background: var(--brand-primary-dark);
    transform: scale(1.03);
}

.header-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.header-menu-btn span {
    width: 22px;
    height: 2px;
    background: #334155;
    border-radius: 1px;
    transition: transform 0.2s;
}

.header-mobile {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
    padding: 1rem max(1.5rem, env(safe-area-inset-right)) 1.5rem max(1.5rem, env(safe-area-inset-left));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header-mobile-top {
    display: none;
}

.header-mobile-backdrop {
    display: none;
}

.header-mobile-link {
    padding: 0.85rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

@media screen and (max-width: 1023px) {
    .header-mobile {
        position: fixed;
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        width: min(86vw, 340px);
        max-width: 340px;
        height: 100dvh;
        padding: calc(env(safe-area-inset-top, 0px) + 0.75rem) 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem) 1rem;
        background: #ffffff;
        border-right: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 20px 45px rgba(2, 6, 23, 0.2);
        overflow-y: auto;
        transform: translateX(-105%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.25s ease, visibility 0s linear 0.3s;
        z-index: 80;
    }

    .header-mobile.is-open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease, opacity 0.25s ease, visibility 0s linear 0s;
    }

    .header-mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.4rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .header-mobile-title {
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
    }

    .header-mobile-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border: 1px solid #cbd5e1;
        border-radius: 0.5rem;
        background: #fff;
        color: #334155;
        cursor: pointer;
    }

    .header-mobile-close svg {
        width: 1rem;
        height: 1rem;
    }

    .header-mobile-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
        z-index: 70;
    }

    .header-mobile-backdrop.is-open {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.25s ease, visibility 0s linear 0s;
    }
}

.header-mobile-link:hover {
    color: var(--brand-primary);
}

.header-cta-mobile {
    margin-top: 1rem;
    display: inline-flex;
    justify-content: center;
}

/* Header Services Dropdown - Animated */
.header-services-dropdown {
    position: relative;
}

.header-services-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.55rem 1rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: #475569;
    border-radius: 0.375rem;
    transition: color 0.2s;
}

.header-services-trigger:hover {
    color: var(--brand-primary);
}

.header-services-dropdown.open .header-services-trigger {
    color: var(--brand-primary);
}

.header-dropdown-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.header-services-dropdown.open .header-dropdown-chevron {
    transform: rotate(180deg);
}

.header-services-trigger::after {
    display: none;
}

.header-services-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px) scale(0.98);
    /* Smaller gap prevents “instant vanish” when moving mouse from trigger */
    margin-top: 0.15rem;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
}

.header-services-dropdown.open .header-services-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.header-services-panel {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    overflow: hidden;
}

.header-services-dropdown.open .header-services-panel {
    background: linear-gradient(135deg, #fff 0%, #f0fdfa 50%, #fff 100%);
    background-size: 200% 200%;
    animation: header-services-bg 4s ease-in-out infinite;
}

.header-services-dropdown.open .header-services-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 25%, rgba(13, 148, 136, 0.04) 50%, transparent 75%);
    background-size: 200% 100%;
    animation: header-services-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes header-services-bg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes header-services-shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.header-services-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.06));
}

.header-service-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.625rem;
    transition: all 0.25s ease;
    transform: translateX(-8px);
    opacity: 0;
}

.header-services-dropdown.open .header-service-item {
    animation: header-service-item-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.header-services-dropdown.open .header-service-item:nth-child(1) { animation-delay: 0.05s; }
.header-services-dropdown.open .header-service-item:nth-child(2) { animation-delay: 0.08s; }
.header-services-dropdown.open .header-service-item:nth-child(3) { animation-delay: 0.11s; }
.header-services-dropdown.open .header-service-item:nth-child(4) { animation-delay: 0.14s; }
.header-services-dropdown.open .header-service-item:nth-child(5) { animation-delay: 0.17s; }
.header-services-dropdown.open .header-service-item:nth-child(6) { animation-delay: 0.2s; }

@keyframes header-service-item-in {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-service-item:hover {
    background: rgba(13, 148, 136, 0.08);
    color: var(--brand-primary);
    transform: translateX(4px);
}

.header-services-dropdown.open .header-service-item:hover {
    transform: translateX(4px);
}

.header-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 0.5rem;
    color: var(--brand-primary);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.header-service-icon svg {
    width: 20px;
    height: 20px;
}

.header-service-item:hover .header-service-icon {
    background: var(--brand-primary);
    color: #fff;
    transform: scale(1.08);
}

.header-service-text {
    flex: 1;
}

.header-service-arrow {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s ease;
}

.header-service-item:hover .header-service-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--brand-primary);
}

/* Mobile Services submenu */
.header-mobile-services {
    border-bottom: 1px solid #f1f5f9;
}

.header-mobile-services-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-mobile-services-trigger::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #64748b;
    transition: transform 0.3s ease;
}

.header-mobile-services.open .header-mobile-services-trigger::after {
    transform: rotate(180deg);
}

.header-mobile-services-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-mobile-services.open .header-mobile-services-list {
    max-height: 320px;
}

.header-mobile-sublink {
    display: block;
    padding: 0.65rem 1.5rem 0.65rem 2.5rem;
    font-size: 0.9375rem;
    color: #64748b;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: color 0.2s, background 0.2s;
}

.header-mobile-sublink:hover {
    color: var(--brand-primary);
    background: rgba(13, 148, 136, 0.05);
}

/* When top bar visible, mobile menu top adjusts */
@media (min-width: 1024px) {
    .header-mobile {
        top: 76px;
    }
}

/* Hero - Desktop: visual left, copy right; Mobile: copy first, then visual */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #f0fdfa 100%);
    padding: 8rem max(1rem, env(safe-area-inset-right)) 4rem max(1rem, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    position: relative;
    /*
     * Do NOT use overflow-x: hidden here: per CSS, that forces overflow-y to compute
     * to "auto", which draws a scrollbar *inside* the hero (grey line on the right).
     * Horizontal overflow is clipped on html/body — avoid overflow-x: clip here because
     * it can still clip absolutely positioned children (e.g. .hero-scroll-indicator).
     */
    overflow: visible;
}

@media (min-width: 640px) {
    .hero-section {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
}

/* Narrow / single-column hero: hide animated visual block on phones & small tablets */
@media (max-width: 899px) {
    html {
        /* Anchor jumps: offset for sticky nav only (top bar scrolls off) */
        scroll-padding-top: var(--header-sticky-nav-offset);
    }

    .hero-section {
        justify-content: flex-start;
        align-items: stretch;
        /* Content-sized hero: avoids empty band below copy + clearer flow into next section */
        min-height: 0;
        padding-top: clamp(1.25rem, 4vw, 1.9rem);
        padding-bottom: max(2.75rem, env(safe-area-inset-bottom, 0px) + 2.25rem);
        padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
        background: linear-gradient(160deg, #ecfeff 0%, #d9f7f3 42%, #ecfdf5 100%);
        /*
         * overflow-x:hidden on a tall block breaks vertical page scroll on iOS/Safari
         * when the gesture starts on the hero — touches get trapped. Let the page scroll.
         */
        overflow-x: visible;
        overflow-y: visible;
        touch-action: pan-y;
    }

    .hero-section::after {
        width: min(240px, 70vw);
        height: min(240px, 70vw);
        opacity: 0.65;
        right: -8%;
    }

    /* Reduce busy motion/overlays on mobile */
    .hero-section::before {
        opacity: 0.35;
        animation: none;
    }

    .hero-section::after {
        animation: none;
    }

    .hero-wrapper {
        display: block;
        width: 100%;
        max-width: 24rem;
        margin: 0 auto;
        min-width: 0;
        touch-action: pan-y;
    }

    .hero-right {
        display: none !important;
    }

    .hero-left {
        min-width: 0;
        max-width: 100%;
        text-align: center;
        /* Match “glass cards” like stats-section */
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 1.25rem;
        box-shadow: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        /* Extra bottom room so rings / glow / icons aren’t clipped at the card edge */
        padding: 1.25rem 1.1rem 1.85rem;
        /* border-radius + backdrop-filter can clip overflowing children in WebKit; keep paint visible */
        overflow: visible;
    }

    .hero-mobile-shield-wrap {
        display: block;
        position: relative;
        width: min(9.5rem, 42vw);
        height: min(9.5rem, 42vw);
        aspect-ratio: 1;
        /* extra spacing so shield doesn't touch header area or bottom buttons */
        margin: 0.6rem auto 1rem;
    }

    .hero-mobile-shield-glow {
        position: absolute;
        /* Was -35%: glow spilled far past the shield and read as a clipped arc at the card edge */
        inset: -22%;
        background: radial-gradient(circle, rgba(13, 148, 136, 0.22) 0%, transparent 62%);
        pointer-events: none;
        animation: hero-glow-pulse 4s ease-in-out infinite;
    }

    .hero-mobile-shield-ring {
        position: absolute;
        inset: -4%;
        border: 1.5px dashed rgba(13, 148, 136, 0.38);
        border-radius: 50%;
        pointer-events: none;
        animation: hero-ring-rotate 20s linear infinite;
    }

    .hero-mobile-shield-ring--outer {
        inset: -12%;
        border-color: rgba(13, 148, 136, 0.22);
        border-width: 1px;
        animation-duration: 28s;
        animation-direction: reverse;
    }

    .hero-mobile-shield-svg {
        display: block;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        width: 50%;
        max-width: 5.5rem;
        height: auto;
        color: var(--brand-primary);
        filter: drop-shadow(0 4px 14px rgba(13, 148, 136, 0.35));
    }

    .hero-tagline {
        display: block;
        text-align: center;
        font-size: 0.7rem;
        letter-spacing: 0.09em;
        margin-bottom: 0.7rem;
    }

    .hero-headline {
        text-align: center;
        font-size: clamp(1.95rem, 8.2vw, 2.45rem);
        line-height: 1.08;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }

    .hero-text {
        text-align: center;
        font-size: 0.97rem;
        line-height: 1.58;
        margin-bottom: 1.2rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 20.5rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-consult-desktop {
        display: none !important;
    }

    /* Same visual language as .hero-visual-card on the shield (desktop) */
    .hero-call-icon.hero-call-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0.92rem 1rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: none;
        text-decoration: none;
        color: inherit;
        text-align: center;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        animation: none;
    }

    .hero-call-icon.hero-call-card:active {
        transform: scale(0.99);
    }

    .hero-call-icon.hero-call-card:focus-visible {
        outline: 2px solid var(--brand-primary);
        outline-offset: 3px;
    }

    .hero-call-card .hero-card-label {
        margin-bottom: 0.25rem;
    }

    .hero-call-card .hero-card-phone {
        font-size: clamp(1rem, 4.5vw, 1.125rem);
    }

    .hero-call-card .hero-card-note {
        display: block;
        margin-top: 0.25rem;
        margin-bottom: 0;
    }

    .hero-buttons {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .hero-buttons .hero-btn-outline {
        width: 100%;
    }

    .hero-btn.hero-btn-outline {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: center;
        padding: 0.9375rem 1.25rem;
    }

    .hero-trust {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .hero-trust-badge {
        width: 100%;
        justify-content: center;
        align-items: center;
        font-size: 0.75rem;
        line-height: 1.25;
        padding: 0.48rem 0.55rem;
        animation: none;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .hero-trust-badge:last-child {
        grid-column: 1 / -1;
    }

    .hero-trust-badge:hover {
        transform: none;
    }

    /*
     * Scroll-reveal uses opacity:0 until deferred main.js runs — blank hero on first paint.
     * Hero is above the fold; show all copy/CTAs immediately on mobile (no JS gate).
     */
    .hero-section .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(13, 148, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    animation: hero-grid-pulse 8s ease-in-out infinite;
}

@keyframes hero-grid-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 50% at 85% 15%, rgba(13, 148, 136, 0.15), transparent 50%),
        radial-gradient(ellipse 60% 40% at 15% 85%, rgba(6, 182, 212, 0.12), transparent 50%);
    pointer-events: none;
    animation: hero-bg-breathe 10s ease-in-out infinite;
}

@keyframes hero-bg-breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: 10%;
    right: 5%;
    border-radius: 50%;
    pointer-events: none;
    animation: hero-orb-float 12s ease-in-out infinite;
}

@keyframes hero-orb-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-20px, 15px); }
    66% { transform: translate(10px, -20px); }
}

.hero-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 900px) {
    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.hero-left {
    text-align: left;
    min-width: 0;
}

/* Shield mark above copy — mobile only (see max-width:899px rules) */
.hero-mobile-shield-wrap {
    display: none;
}

/* Keep this AFTER the default rule so mobile always wins */
@media (max-width: 899px) {
    .hero-mobile-shield-wrap {
        display: block !important;
    }
}

.hero-tagline {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    animation: hero-tagline-fade 1.2s ease-out;
}

@keyframes hero-tagline-fade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 1.25rem;
}

.hero-highlight {
    color: var(--brand-primary);
}

.hero-highlight-gradient {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 50%, var(--brand-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    animation: hero-gradient-shift 6s ease-in-out infinite;
}

@keyframes hero-gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.75rem;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    animation: hero-badge-float 4s ease-in-out infinite;
}

.hero-trust-badge:nth-child(1) { animation-delay: 0s; }
.hero-trust-badge:nth-child(2) { animation-delay: 0.5s; }
.hero-trust-badge:nth-child(3) { animation-delay: 1s; }

.hero-trust-badge:hover {
    color: var(--brand-primary);
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateY(-3px) scale(1.03);
    animation: none;
}

@keyframes hero-badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.hero-trust-icon {
    width: 14px;
    height: 14px;
    color: var(--brand-primary);
}

@media (max-width: 899px) {
    .hero-trust-icon {
        flex-shrink: 0;
        display: block;
        width: 16px;
        height: 16px;
        overflow: visible;
    }
}

.hero-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #475569;
    max-width: 28rem;
    margin-bottom: 1.75rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
}

.hero-btn-primary {
    background: var(--brand-primary);
    color: #fff !important;
    box-shadow: 0 4px 14px -2px rgba(13, 148, 136, 0.4);
    animation: hero-btn-pulse 3s ease-in-out infinite;
}

.hero-btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px -2px rgba(13, 148, 136, 0.5);
    animation: none;
}

@keyframes hero-btn-pulse {
    0%, 100% { box-shadow: 0 4px 14px -2px rgba(13, 148, 136, 0.4); }
    50% { box-shadow: 0 6px 20px -2px rgba(13, 148, 136, 0.5); }
}

.hero-btn-outline {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary) !important;
}

.hero-btn-outline:hover {
    background: var(--brand-primary);
    color: #fff !important;
}

/* Hidden on desktop; mobile uses .hero-call-card (matches hero-visual-card) */
.hero-call-icon {
    display: none;
}

/* Hero right - Animated visual */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    min-width: 0;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 60%);
    animation: hero-glow-pulse 4s ease-in-out infinite;
}

@keyframes hero-glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-visual-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ring {
    position: absolute;
    border: 2px solid rgba(13, 148, 136, 0.25);
    border-radius: 50%;
}

.hero-ring-1 {
    width: 60%;
    height: 60%;
    animation: hero-ring-rotate 12s linear infinite;
}

.hero-ring-2 {
    width: 80%;
    height: 80%;
    animation: hero-ring-rotate 16s linear infinite reverse;
}

.hero-ring-3 {
    width: 100%;
    height: 100%;
    animation: hero-ring-rotate 20s linear infinite;
}

@keyframes hero-ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-visual-shield {
    position: relative;
    z-index: 2;
    width: 42%;
    max-width: 140px;
    color: var(--brand-primary);
}

.shield-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(13, 148, 136, 0.25));
}

.shield-outline {
    animation: shield-pulse 2.5s ease-in-out infinite;
}

.shield-fill {
    fill: rgba(13, 148, 136, 0.15);
}

.shield-check {
    animation: shield-check-draw 1.5s ease-out 0.5s both;
}

@keyframes shield-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes shield-check-draw {
    from { stroke-dasharray: 30; stroke-dashoffset: 30; }
    to { stroke-dasharray: 30; stroke-dashoffset: 0; }
}

.hero-visual-nodes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--brand-primary);
    border-radius: 50%;
    opacity: 0.7;
    animation: hero-node-float 3s ease-in-out infinite;
}

.hero-node-1 { top: 15%; left: 25%; animation-delay: 0s; }
.hero-node-2 { top: 20%; right: 30%; animation-delay: 0.4s; }
.hero-node-3 { top: 45%; left: 15%; animation-delay: 0.8s; }
.hero-node-4 { top: 50%; right: 20%; animation-delay: 1.2s; }
.hero-node-5 { bottom: 30%; left: 30%; animation-delay: 1.6s; }
.hero-node-6 { bottom: 25%; right: 25%; animation-delay: 2s; }
.hero-node-7 { bottom: 15%; left: 50%; animation-delay: 2.4s; }

@keyframes hero-node-float {
    0%, 100% { transform: translate(0, 0); opacity: 0.7; }
    50% { transform: translate(0, -8px); opacity: 1; }
}

.hero-visual-lines {
    position: absolute;
    inset: 15%;
    width: 70%;
    height: 70%;
    margin: auto;
    animation: hero-lines-fade 2.5s ease-in-out infinite;
}

.hero-visual-lines line {
    stroke: rgba(13, 148, 136, 0.25);
    stroke-width: 1.5;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: hero-line-draw 3s ease-out infinite;
}

.hero-visual-lines .line-1 { animation-delay: 0.2s; }
.hero-visual-lines .line-2 { animation-delay: 0.4s; }
.hero-visual-lines .line-3 { animation-delay: 0.6s; }
.hero-visual-lines .line-4 { animation-delay: 0.8s; }
.hero-visual-lines .line-5 { animation-delay: 1s; }

@keyframes hero-line-draw {
    0% { stroke-dashoffset: 80; }
    50%, 100% { stroke-dashoffset: 0; }
}

.hero-visual-card {
    position: absolute;
    bottom: -5%;
    right: -5%;
    z-index: 3;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(13, 148, 136, 0.1);
    animation: hero-card-float 4s ease-in-out infinite;
}

@keyframes hero-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.hero-card-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: hero-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-card-phone {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-primary);
    transition: color 0.2s;
}

.hero-card-phone:hover {
    color: var(--brand-primary-dark);
}

.hero-card-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: max(2rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    opacity: 0.8;
    transition: opacity 0.2s;
    /* Above .hero-wrapper (z-index: 1) so the mouse scroll pill is never covered */
    z-index: 3;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-dot {
    width: 24px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 12px;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
    animation: hero-scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-dot::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    animation: hero-scroll-dot 2s ease-in-out infinite;
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes hero-scroll-dot {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateX(-50%) translateY(12px); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes hero-lines-fade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Legacy btn classes for other sections */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.75rem;
    background: var(--brand-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px -2px rgba(13, 148, 136, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 1.75rem;
    border: 2px solid rgba(13, 148, 136, 0.4);
    color: var(--brand-primary) !important;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    background: rgba(13, 148, 136, 0.08);
}

/* Stats section - By the numbers */
.stats-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 3rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .stats-section {
        padding: 4rem max(1.5rem, env(safe-area-inset-right)) 4rem max(1.5rem, env(safe-area-inset-left));
    }
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.stats-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 0;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.stats-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: #fff;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.2);
}

.stats-icon svg {
    width: 24px;
    height: 24px;
}

.stats-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .stats-num {
        font-size: 2.5rem;
    }
}

.stats-desc {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.35rem;
}

/* Hero background (legacy for other sections) */
.hero-bg {
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 50%, #0b1120 100%);
}

/* Glass morphism nav (legacy) */
.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(13, 148, 136, 0.2);
}

/* Services section - Teal theme */
.services-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-separator-edge);
    animation: services-shimmer 4s ease-in-out infinite;
}

@keyframes services-shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.services-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--brand-primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    animation: services-label-in 0.8s ease-out;
}

.services-label-icon {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
    animation: services-icon-pulse 2.5s ease-in-out infinite;
}

@keyframes services-icon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes services-label-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .services-heading {
        font-size: 2.5rem;
    }
}

.services-subtext {
    font-size: 1rem;
    color: #64748b;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.service-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card-inner {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.4s ease;
}

.service-card:hover .service-card-inner {
    box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(13, 148, 136, 0.08);
}

.service-card-icon-wrap {
    margin-bottom: 1.25rem;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    color: var(--brand-primary);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: service-icon-float 3s ease-in-out infinite;
}

.service-card:nth-child(1) .service-card-icon { animation-delay: 0s; }
.service-card:nth-child(2) .service-card-icon { animation-delay: 0.2s; }
.service-card:nth-child(3) .service-card-icon { animation-delay: 0.4s; }
.service-card:nth-child(4) .service-card-icon { animation-delay: 0.1s; }
.service-card:nth-child(5) .service-card-icon { animation-delay: 0.3s; }
.service-card:nth-child(6) .service-card-icon { animation-delay: 0.5s; }

@keyframes service-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.service-card:hover .service-card-icon {
    transform: scale(1.15) rotate(8deg);
    animation: none;
}

.service-card-icon svg {
    width: 100%;
    height: 100%;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-card-title {
    color: var(--brand-primary);
}

.service-card-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-card-link:hover {
    color: var(--brand-primary-dark);
    gap: 0.75rem;
}

.service-card-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card-link:hover .service-card-arrow {
    transform: translateX(4px);
}

/* Services detail (CMS section-by-section) */
.service-details-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .service-details-layout {
        display: grid;
        /* 3 + 9 = 12 grid columns (ratio 1:3) */
        grid-template-columns: 3fr 9fr;
        gap: 2rem;
    }
}

/* Make service detail area blend with index services section */
#service-details {
    width: 100%;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

#service-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-separator-edge);
    animation: services-shimmer 4s ease-in-out infinite;
}

#service-details .max-w-6xl {
    position: relative;
    z-index: 1;
}

body.theme-bw #service-details {
    background: #000 !important;
    color: #fff !important;
}

body.theme-bw #service-details::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent) !important;
    animation: none !important;
}

.service-side-nav {
    display: none;
}

.service-detail-right {
    min-width: 0;
}

@media (min-width: 1024px) {
    .service-side-nav {
        display: block;
    }
}

.service-side-nav {
    border-radius: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.service-side-nav-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.service-side-nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-side-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    border-radius: 1.15rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(2, 6, 23, 0.06);
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.service-side-item:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.35);
    background: rgba(13, 148, 136, 0.12);
}

.service-side-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    flex-shrink: 0;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.18);
    border-radius: 1rem;
}

.service-side-icon svg {
    width: 100%;
    height: 100%;
}

.service-side-title {
    display: block;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.service-detail-right {
    min-width: 0;
}

body.theme-bw .service-side-nav {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

body.theme-bw .service-side-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.theme-bw .service-side-item:hover {
    background: rgba(13, 148, 136, 0.12) !important;
    border-color: rgba(13, 148, 136, 0.45) !important;
}

body.theme-bw .service-side-title {
    color: #fff !important;
}

.services-details {
    margin-top: 3.25rem;
    display: grid;
    gap: 1.75rem;
}

.service-detail-card {
    border-radius: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.service-detail-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.service-detail-section {
    margin-top: 1.25rem;
}

.service-detail-section-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.service-detail-section-content {
    color: #334155;
    line-height: 1.75;
}

body.theme-bw .service-detail-section-heading {
    color: #fff !important;
}

body.theme-bw .service-detail-section-content {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* CKEditor bullet lists: ensure markers + indentation are visible */
.service-detail-section-content ul,
.service-detail-section-content ol {
    padding-left: 1.5rem !important;
    margin: 0.75rem 0 0.75rem 0 !important;
}

.service-detail-section-content li {
    list-style: disc;
    margin: 0.4rem 0;
}

.service-detail-section-content li::marker {
    color: var(--brand-primary) !important;
}

body.theme-bw .service-detail-section-content ul,
body.theme-bw .service-detail-section-content ol {
    color: #fff !important;
}

body.theme-bw .service-detail-section-content li {
    color: #fff !important;
}

body.theme-bw .service-detail-card {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

/* Shared section styles - Template aligned */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--brand-primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-label-icon {
    width: 18px;
    height: 18px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-heading {
        font-size: 2.5rem;
    }
}

.section-subtext {
    font-size: 1rem;
    color: #64748b;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.6;
}

.about-header .section-subtext,
.why-choose-header .section-subtext {
    color: #64748b;
}

/* About - Mission & Vision - Light theme like Services */
.about-section {
    padding: 4rem 1.5rem 5rem;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-separator-edge);
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.about-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(13, 148, 136, 0.1);
}

.about-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 1rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-card-icon svg {
    width: 28px;
    height: 28px;
}

.about-card:hover .about-card-icon {
    background: var(--brand-primary);
    color: #fff;
    transform: scale(1.08);
}

.about-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.about-card-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.about-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-card-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: #475569;
    margin-bottom: 0.6rem;
}

.about-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
}

/* Why Choose Us - Toshi Consulting - Light theme like Services */
.why-choose-section {
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #f0fdfa 100%);
    padding: 4rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-separator-edge);
}

.why-choose-container {
    max-width: 1100px;
    margin: 0 auto;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.why-choose-content {
    display: grid;
    gap: 2rem;
}

.why-choose-feature {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

.why-choose-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(13, 148, 136, 0.1);
}

.why-choose-icon-wrap {
    margin-bottom: 1.25rem;
}

.why-choose-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 0.875rem;
    color: var(--brand-primary);
    transition: all 0.3s ease;
}

.why-choose-icon svg {
    width: 26px;
    height: 26px;
}

.why-choose-feature:hover .why-choose-icon {
    background: var(--brand-primary);
    color: #fff;
    transform: scale(1.08);
}

.why-choose-feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.why-choose-feature-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.65;
}

.why-choose-visual {
    position: relative;
}

.why-choose-img-wrap {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.15);
}

.why-choose-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Latest Blog - Light theme like template */
.blog-section {
    padding: 4rem 1.5rem 5rem;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-separator-edge);
}

.blog-container {
    max-width: 72rem;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Blog listing page — same language as homepage “Latest Blog” (mint + section-label) */
.blog-section.blogs-list-page {
    padding-top: 5.25rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .blog-section.blogs-list-page {
        padding-top: 6rem;
        padding-bottom: 5.5rem;
    }
}

.blog-section.blogs-list-page .blog-header {
    margin-bottom: 2.75rem;
}

.blogs-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    margin-bottom: 1.75rem;
}

.blogs-breadcrumb-link {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blogs-breadcrumb-link:hover {
    color: var(--brand-primary);
}

.blogs-breadcrumb-sep {
    color: #cbd5e1;
    font-weight: 500;
}

.blogs-breadcrumb-current {
    color: #0f172a;
    font-weight: 700;
}

.blogs-sidebar-panel {
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(13, 148, 136, 0.06);
    padding: 1.25rem 1.35rem;
}

@media (min-width: 1024px) {
    .blogs-sidebar-panel {
        padding: 1.35rem 1.5rem;
    }
}

.blogs-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
}

/* Single blog post — editorial layout + responsive */
.blog-section.blogs-single-page {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .blog-section.blogs-single-page {
        padding-top: 5.75rem;
        padding-bottom: 5.5rem;
    }
}

.blogs-single-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
    .blogs-single-top {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem 1rem;
    }
}

.blogs-breadcrumb--single {
    margin-bottom: 0;
    justify-content: flex-start;
    text-align: left;
}

.blogs-breadcrumb-current--truncate {
    display: inline-block;
    max-width: min(100%, 18rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

@media (min-width: 640px) {
    .blogs-breadcrumb-current--truncate {
        max-width: 28rem;
    }
}

@media (min-width: 1024px) {
    .blogs-breadcrumb-current--truncate {
        max-width: 36rem;
    }
}

.blogs-single-page .blogs-back-link {
    flex-shrink: 0;
    align-self: flex-start;
}

.blogs-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    margin: -0.55rem -0.75rem;
    border-radius: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.blogs-back-link:hover {
    background: rgba(13, 148, 136, 0.1);
    color: #0f766e;
}

.blogs-sidebar-panel--detail {
    padding: 1.25rem 1.15rem;
}

@media (min-width: 640px) {
    .blogs-sidebar-panel--detail {
        padding: 1.35rem 1.4rem;
    }
}

.blogs-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blogs-sidebar-list li {
    margin: 0;
    padding: 0;
}

.blogs-sidebar-list a {
    display: block;
    padding: 0.35rem 0;
    line-height: 1.45;
    border-radius: 0.35rem;
}

/* Article card */
.blogs-article-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
    border: 1px solid rgba(13, 148, 136, 0.14);
    border-radius: 1.25rem;
    box-shadow:
        0 4px 6px -1px rgba(13, 148, 136, 0.06),
        0 2px 4px -2px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
}

@media (min-width: 768px) {
    .blogs-article-card {
        border-radius: 1.5rem;
    }
}

.blogs-article-cover {
    position: relative;
    margin: 0;
    padding: 0;
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.08), rgba(204, 251, 241, 0.35));
}

.blogs-article-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.55), transparent);
    pointer-events: none;
}

.blogs-article-cover-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    vertical-align: middle;
}

.blogs-article-header {
    padding: 1.25rem 1.15rem 0;
}

@media (min-width: 640px) {
    .blogs-article-header {
        padding: 1.75rem 1.75rem 0;
    }
}

@media (min-width: 1024px) {
    .blogs-article-header {
        padding: 2rem 2.25rem 0;
    }
}

.blogs-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 1rem;
}

.blogs-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.18);
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
}

.blogs-meta-pill--muted {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0;
    color: #64748b;
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
}

.blogs-meta-pill-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.blogs-article-title {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: #0f172a;
    margin: 0 0 1rem;
    text-align: left;
}

.blogs-article-lead {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 1.5rem;
    max-width: 48rem;
}

@media (min-width: 640px) {
    .blogs-article-lead {
        font-size: 1.125rem;
        line-height: 1.7;
    }
}

.blogs-article-body {
    padding: 0 1.15rem 1.25rem;
    border-top: 1px solid rgba(13, 148, 136, 0.1);
    margin-top: 0.25rem;
}

@media (min-width: 640px) {
    .blogs-article-body {
        padding: 0 1.75rem 1.75rem;
    }
}

@media (min-width: 1024px) {
    .blogs-article-body {
        padding: 0 2.25rem 2.25rem;
    }
}

.blog-post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    max-width: 50rem;
}

@media (min-width: 768px) {
    .blog-post-content {
        font-size: 1.0625rem;
    }
}

.blog-post-content > *:first-child {
    margin-top: 0;
}

.blog-post-content p {
    margin: 0 0 1.5rem;
}

.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4 {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2rem 0 1rem;
}

.blog-post-content h2 {
    font-size: 1.375rem;
}

@media (min-width: 640px) {
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
}

.blog-post-content h3 {
    font-size: 1.0625rem;
}

.blog-post-content h4 {
    font-size: 1rem;
}

.blog-post-content a {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-content a:hover {
    color: #0f766e;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 1.5rem;
    padding-left: 1.35rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1rem 1rem 1.15rem;
    border-left: 4px solid var(--brand-primary);
    background: rgba(13, 148, 136, 0.06);
    border-radius: 0 0.75rem 0.75rem 0;
    color: #475569;
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.12);
}

.blog-post-content pre,
.blog-post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.blog-post-content pre {
    overflow-x: auto;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    margin: 1.5rem 0;
}

.blogs-empty-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.06);
}

.blogs-empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.85rem;
}

.blogs-empty-state-text {
    color: #64748b;
    margin: 0;
}

.blogs-empty-state-link {
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: none;
}

.blogs-empty-state-link:hover {
    text-decoration: underline;
}

.blogs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1.75rem;
    padding: 0.85rem 1.15rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: 0 4px 24px -10px rgba(13, 148, 136, 0.15);
}

.blogs-filter-bar-label {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    width: 100%;
    margin-bottom: 0.15rem;
}

@media (min-width: 640px) {
    .blogs-filter-bar-label {
        width: auto;
        margin-bottom: 0;
        margin-right: 0.35rem;
    }
}

.blogs-page-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.25);
}

.blogs-page-clear {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: auto;
}

.blogs-page-clear:hover {
    color: #0f766e;
}

@media (min-width: 640px) {
    .blogs-filter-bar .blogs-page-clear {
        margin-left: 0;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Homepage (#blogsGrid): one card on small screens + “More blogs” link */
.blog-home-more-wrap {
    display: none;
    margin: 0;
    text-align: center;
}

.blog-home-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    padding: 0.65rem 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid rgba(13, 148, 136, 0.35);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.blog-home-more-link:hover {
    color: var(--brand-primary-dark);
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.55);
}

@media (max-width: 767px) {
    #blogsGrid .blog-card:nth-child(n + 2) {
        display: none !important;
    }

    .blog-home-more-wrap {
        display: block;
        margin-top: 1.75rem;
    }
}

.blog-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.blog-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.6rem;
    background: var(--brand-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    border-radius: 0.25rem;
}

.blog-card-body {
    padding: 1.25rem 1.5rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-meta-icon {
    width: 14px;
    height: 14px;
    color: var(--brand-primary);
}

.blog-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-card-excerpt {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-primary);
    transition: color 0.2s;
}

.blog-link:hover {
    color: var(--brand-primary-dark);
}

.blog-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.blog-link:hover .blog-arrow {
    transform: translateX(4px);
}

/* Contact & FAQ - Merged - Light theme like template */
.contact-faq-section {
    padding: 4rem 1.5rem 5rem;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 40%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

.contact-faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-separator-edge);
}

.contact-faq-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-faq-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Dedicated contact page — clear fixed header, breadcrumb; no side padding (map is full width) */
.contact-faq-section.contact-page-section {
    padding-top: 5.25rem;
    padding-bottom: 4.5rem;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .contact-faq-section.contact-page-section {
        padding-top: 6rem;
        padding-bottom: 5.5rem;
    }
}

.contact-page-breadcrumb {
    justify-content: center;
    text-align: left;
    margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
    .contact-page-breadcrumb {
        margin-bottom: 2rem;
    }
}

.contact-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .contact-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
        align-items: start;
    }
}

/* Contact page — embedded map (heading constrained; map full width) */
.contact-page-inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-map-outer {
    margin-top: 3rem;
    width: 100%;
    max-width: 100%;
}

.contact-map-head {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    text-align: center;
}

.contact-map-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.contact-map-address {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-map-wrap {
    position: relative;
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    background: #e2e8f0;
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

/* Full-bleed map row (not limited by .contact-faq-container) */
.contact-map-wrap.contact-map-wrap--fullbleed {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(13, 148, 136, 0.1);
    aspect-ratio: auto;
    min-height: min(52vh, 520px);
    height: min(52vh, 520px);
}

.contact-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 639px) {
    .contact-map-outer {
        margin-top: 2.25rem;
    }

    .contact-map-wrap.contact-map-wrap--fullbleed {
        min-height: 280px;
        height: 280px;
    }
}

@media (min-width: 900px) {
    .contact-map-wrap.contact-map-wrap--fullbleed {
        min-height: min(45vh, 480px);
        height: min(45vh, 480px);
    }
}

/* Contact Form */
.contact-form-wrap {
    position: relative;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.4s ease;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.contact-form-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-form-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 639px) {
    .contact-form-wrap {
        padding: 1.5rem 1.125rem;
    }
}

.contact-form-wrap:hover {
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(13, 148, 136, 0.08);
}

.contact-form-group {
    margin-bottom: 1.25rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 639px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    color: #0f172a;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.contact-form-input::placeholder {
    color: #94a3b8;
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: #fff;
}

.contact-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-btn {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--brand-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.contact-form-btn:hover:not(:disabled) {
    background: var(--brand-primary-dark);
    transform: translateY(-1px);
}

.contact-form-btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
}

.contact-form-btn.is-loading .contact-form-btn-label {
    opacity: 0.25;
}

.contact-form-btn.is-loading::after {
    content: '';
    position: absolute;
    width: 1.35rem;
    height: 1.35rem;
    top: 50%;
    left: 50%;
    margin: -0.675rem 0 0 -0.675rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-btn-spin 0.65s linear infinite;
}

@keyframes contact-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact Details + FAQ - Compact single card */
.contact-info-wrap {
    position: relative;
}

.contact-info-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.contact-details-heading {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 0;
}

@media (min-width: 500px) {
    .contact-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
    min-width: 0;
}

.contact-detail-item > span:not(.contact-detail-icon) {
    min-width: 0;
    overflow-wrap: anywhere;
}

a.contact-detail-item:hover {
    color: var(--brand-primary);
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 0.4rem;
    color: var(--brand-primary);
}

.contact-detail-icon svg {
    width: 14px;
    height: 14px;
}

/* FAQ Accordion - compact */
.contact-faq-compact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.contact-faq-heading-sm {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(13, 148, 136, 0.4);
}

.faq-question-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    transition: background 0.2s;
}

.faq-question-btn > span:first-child {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.faq-question-btn:hover {
    background: rgba(13, 148, 136, 0.06);
}

.faq-question-btn[aria-expanded="true"] {
    background: rgba(13, 148, 136, 0.08);
    color: var(--brand-primary);
}

.faq-question-btn .faq-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.25s;
}

.faq-question-btn[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer-wrap {
    padding: 0 1rem 0.875rem;
}

.faq-answer-wrap[hidden] {
    display: none;
}

.faq-answer {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.footer-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f0fdfa 0%, #ccfbf1 50%, #b2f5ea 100%);
    color: #0f172a;
    position: relative;
    overflow-x: hidden;
}

.footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--section-separator-edge);
}

.footer-container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

/* Mobile / small tablet: Quick Links (40%) + Services (60%) */
@media (max-width: 767px) {
    .footer-main .footer-container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .footer-grid {
        width: 100%;
        grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
        justify-content: stretch;
        align-items: start;
        column-gap: clamp(0.75rem, 3.5vw, 1.25rem);
        row-gap: 1.75rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        min-width: 0;
    }

    .footer-col:nth-child(2) {
        grid-column: 1;
    }

    .footer-col:nth-child(3) {
        grid-column: 2;
    }

    .footer-col:nth-child(4) {
        grid-column: 1 / -1;
    }

    .footer-col:nth-child(2) .footer-heading,
    .footer-col:nth-child(3) .footer-heading {
        font-size: clamp(0.8125rem, 3.9vw, 0.9375rem);
        margin-bottom: 0.75rem;
        letter-spacing: 0.04em;
        line-height: 1.3;
    }

    .footer-col:nth-child(2) .footer-list li,
    .footer-col:nth-child(3) .footer-list li {
        margin-bottom: 0.45rem;
    }

    .footer-col:nth-child(2) .footer-list a,
    .footer-col:nth-child(3) .footer-list a {
        font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
        line-height: 1.45;
        color: #64748b;
        font-weight: 500;
    }

    .footer-col:nth-child(2) .footer-list li::before,
    .footer-col:nth-child(3) .footer-list li::before {
        margin-right: 0.3rem;
        font-size: 0.85em;
    }

    .footer-col:nth-child(4) .footer-heading {
        font-size: clamp(0.8125rem, 3.9vw, 0.9375rem);
        margin-bottom: 0.65rem;
    }

    .footer-col:nth-child(4) .footer-address,
    .footer-col:nth-child(4) .footer-hours {
        font-size: clamp(0.8125rem, 3.4vw, 0.9375rem);
        line-height: 1.55;
    }

    /* BW mode: keep two-column links slightly softer than pure white */
    body.theme-bw .footer-col:nth-child(2) .footer-heading,
    body.theme-bw .footer-col:nth-child(3) .footer-heading {
        color: rgba(255, 255, 255, 0.92) !important;
    }

    body.theme-bw .footer-col:nth-child(2) .footer-list a,
    body.theme-bw .footer-col:nth-child(3) .footer-list a {
        color: rgba(255, 255, 255, 0.76) !important;
    }
}

.footer-brand-col .footer-logo {
    display: block;
    max-width: 140px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 1.25rem 0;
}

.footer-contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.footer-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    max-width: 100%;
    min-width: 0;
}

.footer-contact-item span:last-child {
    overflow-wrap: anywhere;
    min-width: 0;
}

.footer-contact-item:hover {
    color: var(--brand-primary);
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.footer-contact-icon svg {
    width: 14px;
    height: 14px;
}

.footer-address {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 0.5rem 0;
}

.footer-hours {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list li::before {
    content: "›";
    margin-right: 0.4rem;
    color: var(--brand-primary);
    font-weight: 600;
}

.footer-list a {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: var(--brand-primary);
}

.footer-social-list {
    display: flex;
    gap: 0.5rem;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(13, 148, 136, 0.12);
    border-radius: 50%;
    color: var(--brand-primary);
    transition: all 0.25s ease;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-social:hover {
    background: var(--brand-primary);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(13, 148, 136, 0.25);
    padding: 1rem 0;
}

.footer-bottom .footer-container {
    text-align: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: #475569;
    font-weight: 500;
    margin: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s, transform 0.2s;
    z-index: 40;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: backtotop-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes backtotop-pop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.back-to-top:hover {
    background: var(--brand-primary-dark);
    transform: scale(1.1);
}

@media (max-width: 899px) {
    /* Ensure Back-to-top is not hidden by mobile safe area */
    .back-to-top {
        width: 2.5rem;
        height: 2.5rem;
        bottom: max(1rem, env(safe-area-inset-bottom));
        right: 0.85rem;
        z-index: 96; /* above theme toggle backdrop/drawer */
    }

    /* Reduce “pop” animation on mobile */
    .back-to-top.visible {
        animation: none;
    }
}

/* Floating WhatsApp (above back-to-top on the right) */
.whatsapp-float {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(2.75rem + max(1.5rem, env(safe-area-inset-bottom, 0px)) + 0.75rem);
    z-index: 45;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    background: #20bd5a;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

.whatsapp-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.whatsapp-float-icon {
    width: 1.45rem;
    height: 1.45rem;
}

@media (max-width: 899px) {
    .whatsapp-float {
        width: 2.5rem;
        height: 2.5rem;
        right: 0.85rem;
        bottom: calc(2.5rem + max(1rem, env(safe-area-inset-bottom, 0px)) + 0.75rem);
    }

    .whatsapp-float-icon {
        width: 1.35rem;
        height: 1.35rem;
    }
}

/* Floating black/white view toggle */
.theme-toggle {
    position: fixed;
    right: max(0.85rem, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
    width: 4.4rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.4rem;
    color: #eaff00;
    cursor: pointer;
    z-index: 95;
}

.theme-toggle-sun {
    display: inline-flex;
    width: 1rem;
    height: 1rem;
}

.theme-toggle-knob {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
    transform: translateX(0);
    transition: transform 0.25s ease, background 0.25s ease;
}

body.theme-bw .theme-toggle {
    background: linear-gradient(135deg, #111827, #000000);
    color: #d1d5db;
}

body.theme-bw .theme-toggle-knob {
    transform: translateX(-1.8rem);
    background: #f3f4f6;
}

/* Black/white mode (true black/white, not just grayscale) */
body.theme-bw {
    background: #000 !important;
    color: #fff !important;
}

/* Force all text to be white in BW mode */
body.theme-bw * {
    color: #fff !important;
}

/* Make buttons match “Request Callback” style in BW mode */
body.theme-bw .header-top-cta,
body.theme-bw .header-cta,
body.theme-bw .header-cta-mobile,
body.theme-bw .hero-btn-primary,
body.theme-bw .hero-btn-outline,
body.theme-bw .hero-call-icon.hero-call-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Phone number is plain text inside a card; avoid “selected/button” look */
body.theme-bw .hero-card-phone {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Ensure outline buttons keep a visible border in BW mode */
body.theme-bw .hero-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    background: transparent !important;
}

/* Hover: keep same BW look */
body.theme-bw .header-top-cta:hover,
body.theme-bw .hero-btn-primary:hover,
body.theme-bw .hero-btn-outline:hover,
body.theme-bw .hero-call-icon.hero-call-card:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: none !important;
}

body.theme-bw .layout-root,
body.theme-bw main {
    background: #000 !important;
    color: #fff !important;
}

body.theme-bw a {
    color: #fff !important;
}

/* Header becomes black */
body.theme-bw #mainHeader,
body.theme-bw .header-top-bar,
body.theme-bw .header-nav-bar {
    background: #000 !important;
    color: #fff !important;
}

body.theme-bw .header-top-item,
body.theme-bw .header-link,
body.theme-bw .header-link-active,
body.theme-bw .header-mobile-link,
body.theme-bw .header-cta,
body.theme-bw .header-top-cta {
    color: #fff !important;
}

/* Mobile menu (dark mode) visibility fixes */
body.theme-bw .header-mobile {
    background: #000 !important;
    border-right-color: rgba(255, 255, 255, 0.15) !important;
}

body.theme-bw .header-menu-btn span {
    background: rgba(255, 255, 255, 0.95) !important;
}

body.theme-bw .header-mobile-close {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
}

body.theme-bw .header-mobile-close svg {
    stroke: #fff !important;
}

/* Mobile (<=899px): header-nav-bar forced to white by earlier rules
   Add BW-specific overrides to keep hamburger visible. */
@media (max-width: 899px) {
    body.theme-bw #mainHeader.header-new {
        background: #000 !important;
    }
    body.theme-bw #mainHeader .header-nav-bar {
        background: #000 !important;
    }
    body.theme-bw #mainHeader .header-nav-bar.nav-fixed-mobile {
        background: #000 !important;
    }
}

/* Hero + other sections backgrounds */
body.theme-bw .hero-section,
body.theme-bw .stats-section,
body.theme-bw .services-section,
body.theme-bw .about-section,
body.theme-bw .why-choose-section,
body.theme-bw .blog-section,
body.theme-bw .contact-faq-section,
body.theme-bw .footer-main {
    background: #000 !important;
    color: #fff !important;
}

/* Remove busy hero decorative layers in BW mode */
body.theme-bw .hero-bg-grid {
    opacity: 0 !important;
}

body.theme-bw .hero-section::before,
body.theme-bw .hero-section::after {
    background: none !important;
    opacity: 0 !important;
}

/* Light top edges on black section backgrounds */
body.theme-bw .services-section::before,
body.theme-bw .about-section::before,
body.theme-bw .why-choose-section::before,
body.theme-bw .blog-section::before,
body.theme-bw .contact-faq-section::before,
body.theme-bw .footer-main::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent) !important;
}

body.theme-bw .services-section::before {
    animation: none !important;
}

/* Back-to-top becomes white */
body.theme-bw #backToTop {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: none !important;
}

body.theme-bw .back-to-top:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    transform: none !important;
}

body.theme-bw .hero-highlight-gradient {
    -webkit-text-fill-color: #fff;
    background: none !important;
    color: #fff !important;
}

/* Services dropdown (desktop) - improve look in BW mode */
body.theme-bw .header-services-panel {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    animation: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-bw .header-services-dropdown.open .header-services-panel {
    background: rgba(255, 255, 255, 0.14) !important;
    background-size: auto !important;
    animation: none !important;
}

body.theme-bw .header-services-dropdown.open .header-services-panel::before {
    background: none !important;
    animation: none !important;
}

body.theme-bw .header-services-menu::before {
    border-bottom: 8px solid rgba(255, 255, 255, 0.14) !important;
    filter: none !important;
}

body.theme-bw .header-service-item {
    color: #fff !important;
    background: transparent !important;
}

body.theme-bw .header-service-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body.theme-bw .header-service-icon {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

/* Match light-mode hover (teal tile + white glyph) — avoid solid white on dark glass */
body.theme-bw .header-service-item:hover .header-service-icon {
    background: rgba(13, 148, 136, 0.5) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.35);
}

body.theme-bw .header-service-arrow {
    color: #fff !important;
}

body.theme-bw .header-service-item:hover .header-service-arrow {
    color: #fff !important;
    opacity: 1 !important;
}

body.theme-bw .header-dropdown-chevron {
    color: #fff !important;
}

/* Mobile Services list items in BW mode */
body.theme-bw .header-mobile-sublink {
    color: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.theme-bw .header-mobile-sublink:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Desktop “Available Now” card inside shield */
body.theme-bw .hero-visual-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: none !important;
}

body.theme-bw .hero-card-label,
body.theme-bw .hero-card-phone,
body.theme-bw .hero-card-note {
    color: #fff !important;
}

body.theme-bw .hero-card-note {
    opacity: 0.95;
}

/* Hero trust pills should match stats glass style */
body.theme-bw .hero-trust-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    color: #fff !important;
}

body.theme-bw .hero-trust-badge:hover {
    transform: none !important;
}

/* Make all “cards” match stats-section glass styling */
body.theme-bw .stats-card,
body.theme-bw .service-card-inner,
body.theme-bw .about-card,
body.theme-bw .blog-card,
body.theme-bw .contact-info-card,
body.theme-bw .faq-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.theme-bw .stats-card:hover,
body.theme-bw .service-card:hover .service-card-inner,
body.theme-bw .about-card:hover,
body.theme-bw .blog-card:hover,
body.theme-bw .contact-info-card:hover,
body.theme-bw .faq-item:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Card icons/backgrounds closer to stats-section */
body.theme-bw .about-card-icon,
body.theme-bw .contact-detail-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

body.theme-bw .service-card-icon-wrap {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem !important;
}

body.theme-bw .service-card-icon {
    color: #fff !important;
    animation: none !important;
}

/* Blog date pill to match BW look */
body.theme-bw .blog-date {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
}

/* Blog listing — typography matches BW blog section */
body.theme-bw .blog-section .section-heading {
    color: #fff !important;
}

body.theme-bw .blog-section .section-subtext {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.theme-bw .blog-section .section-label {
    color: #5eead4 !important;
}

body.theme-bw .blog-home-more-link {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.theme-bw .blog-home-more-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

body.theme-bw .contact-faq-section .section-heading {
    color: #fff !important;
}

body.theme-bw .contact-faq-section .section-subtext {
    color: rgba(255, 255, 255, 0.82) !important;
}

body.theme-bw .contact-faq-section .section-label {
    color: #5eead4 !important;
}

body.theme-bw .contact-details-heading,
body.theme-bw .contact-faq-heading-sm {
    color: #fff !important;
}

body.theme-bw .contact-detail-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-bw .contact-faq-compact {
    border-top-color: rgba(255, 255, 255, 0.15) !important;
}

body.theme-bw .blogs-breadcrumb-link {
    color: rgba(255, 255, 255, 0.65) !important;
}

body.theme-bw .blogs-breadcrumb-link:hover {
    color: #fff !important;
}

body.theme-bw .blogs-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.35) !important;
}

body.theme-bw .blogs-breadcrumb-current {
    color: #fff !important;
}

body.theme-bw .contact-map-title {
    color: #fff !important;
}

body.theme-bw .contact-map-address {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-bw .contact-map-wrap {
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}

body.theme-bw .contact-map-wrap.contact-map-wrap--fullbleed {
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

body.theme-bw .blogs-sidebar-panel {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

body.theme-bw .blogs-sidebar-title {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

body.theme-bw .blogs-sidebar-panel .text-slate-600 {
    color: rgba(255, 255, 255, 0.78) !important;
}

body.theme-bw .blogs-sidebar-panel .text-teal-700 {
    color: #fff !important;
}

body.theme-bw .blogs-back-link {
    color: #5eead4 !important;
}

body.theme-bw .blogs-back-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Blog detail — black & white mode */
body.theme-bw .blogs-article-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

body.theme-bw .blogs-article-cover {
    background: rgba(0, 0, 0, 0.25) !important;
}

body.theme-bw .blogs-article-cover::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent) !important;
}

body.theme-bw .blogs-meta-pill {
    background: rgba(13, 148, 136, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #5eead4 !important;
}

body.theme-bw .blogs-meta-pill--muted {
    color: rgba(255, 255, 255, 0.78) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

body.theme-bw .blogs-article-title {
    color: #fff !important;
}

body.theme-bw .blogs-article-lead {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.theme-bw .blogs-article-body {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
}

body.theme-bw .blog-post-content {
    color: rgba(255, 255, 255, 0.88) !important;
}

body.theme-bw .blog-post-content h2,
body.theme-bw .blog-post-content h3,
body.theme-bw .blog-post-content h4 {
    color: #fff !important;
}

body.theme-bw .blog-post-content a {
    color: #5eead4 !important;
}

body.theme-bw .blog-post-content a:hover {
    color: #fff !important;
}

body.theme-bw .blog-post-content blockquote {
    background: rgba(255, 255, 255, 0.06) !important;
    border-left-color: #5eead4 !important;
    color: rgba(255, 255, 255, 0.82) !important;
}

body.theme-bw .blog-post-content pre {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

body.theme-bw .blogs-empty-state {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

body.theme-bw .blogs-empty-state-title {
    color: #fff !important;
}

body.theme-bw .blogs-empty-state-link {
    color: #5eead4 !important;
}

/* Blog listing filter bar — black & white mode */
body.theme-bw .blogs-filter-bar {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
}

body.theme-bw .blogs-filter-bar-label {
    color: rgba(255, 255, 255, 0.75) !important;
}

body.theme-bw .blogs-page-chip {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

body.theme-bw .blogs-page-clear {
    color: #fff !important;
}

/* Why Choose Us cards */
body.theme-bw .why-choose-feature {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

body.theme-bw .why-choose-feature:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.theme-bw .why-choose-feature-title {
    color: #fff !important;
}

body.theme-bw .why-choose-feature-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-bw .why-choose-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Get in Touch - form + inputs */
body.theme-bw .contact-form-wrap {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

body.theme-bw .contact-form-label {
    color: #fff !important;
}

body.theme-bw .contact-form-input,
body.theme-bw .contact-form-textarea {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

body.theme-bw .contact-form-input::placeholder,
body.theme-bw .contact-form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

body.theme-bw .contact-form-input:focus,
body.theme-bw .contact-form-textarea:focus {
    border-color: rgba(255, 255, 255, 0.45) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.theme-bw .contact-form-hint {
    color: rgba(255, 255, 255, 0.65) !important;
}

body.theme-bw .contact-form-btn {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
}

body.theme-bw .contact-form-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18) !important;
    transform: none !important;
}

/* Contact FAQ “row” backgrounds */
body.theme-bw .faq-question-btn {
    background: rgba(255, 255, 255, 0.07) !important;
    border: none !important;
    color: #fff !important;
}

body.theme-bw .faq-question-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body.theme-bw .faq-answer {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.theme-bw .hero-highlight-gradient {
    -webkit-text-fill-color: #fff;
    background: none;
}

@media (min-width: 1024px) {
    .theme-toggle {
        right: max(1rem, env(safe-area-inset-right));
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* Bento grid layout */
.bento {
    display: grid;
    gap: 1rem;
}

.bento-lg {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }

    .bento .tall {
        grid-row: span 2;
    }
}

@media (max-width: 767px) {
    .bento-lg {
        grid-column: span 1;
    }
}

/* Gradient accent */
.accent-gradient {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-primary-light) 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*
 * Mobile full-width: Tailwind CDN injects utilities AFTER head stylesheets.
 * Loading style.css at end of body + these rules prevents the desktop nav /
 * services dropdown (min-width: 320px) from widening the document on phones.
 */
html {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
    position: relative;
}

.layout-root {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

@media screen and (max-width: 1023px) {
    #mainHeader .header-nav-links {
        display: none !important;
    }

    #mainHeader .header-cta:not(.header-cta-mobile) {
        display: none !important;
    }

    #mainHeader .header-menu-btn {
        display: flex !important;
    }

    #mainHeader .header-mobile.hidden {
        display: none !important;
    }

    #mainHeader .header-mobile:not(.hidden) {
        display: flex !important;
        flex-direction: column;
    }

    .header-services-menu,
    #headerServicesMenu {
        display: none !important;
        visibility: hidden !important;
        min-width: 0 !important;
        max-width: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }
}

@media screen and (min-width: 1024px) {
    #mainHeader .header-nav-links {
        display: flex !important;
        align-items: center;
        gap: 0.35rem;
    }

    #mainHeader .header-cta:not(.header-cta-mobile) {
        display: inline-flex !important;
    }

    #mainHeader .header-menu-btn {
        display: none !important;
    }

    #mainHeader .header-mobile {
        display: none !important;
    }
}

/*
 * Phones only (<768px): tab / small tablet (768px+) stays on the md+ layout you already like.
 * Extra clipping + width locks fix iOS/Android “white strip” without affecting wider viewports.
 */
@media screen and (max-width: 767px) {
    html {
        overflow-x: clip !important;
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: clip !important;
        overscroll-behavior-x: none;
        -webkit-overflow-scrolling: touch;
    }

    .layout-root {
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #mainHeader.header-new {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .header-top-bar,
    .header-nav-bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-section,
    .stats-section,
    .services-section,
    .about-section,
    .why-choose-section,
    .blog-section,
    .contact-faq-section,
    .footer-main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
