.site-menu-toggle,
.site-menu-overlay {
    display: none;
}

/* Make the full visible site button surface behave like the click target. */
a.btn,
.cta-btn,
nav a,
.review-arrow,
.faq-question,
.site-menu-toggle,
.site-menu-overlay {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

a.btn,
.cta-btn,
nav a,
.review-arrow,
.site-menu-toggle {
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
}

a.btn,
.cta-btn,
nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2005;
    text-decoration: none;
    pointer-events: auto !important;
}

a.btn {
    min-height: 48px;
    width: auto;
}

.faq-question {
    width: 100%;
    min-height: 56px;
}

nav a::before,
nav a::after,
.btn::before,
.header-menu::before {
    pointer-events: none;
}

@media (max-width: 1200px) {
    body.site-sidebar-open {
        overflow: hidden;
    }
    .header-container {
        display: block !important;
        max-width: 100% !important;
    }

    .header-left {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        text-align: left !important;
    }

    .brand {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        justify-content: flex-start !important;
    }

    .brand-text {
        min-width: 0 !important;
    }

    .brand .brand-title,
    .brand .brand-sub {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-menu-toggle {
        width: 44px;
        height: 44px;
        margin-left: auto;
        flex: 0 0 44px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(148, 163, 184, 0.28);
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.88);
        color: #ffffff;
        cursor: pointer;
        box-shadow: 0 12px 28px rgba(2, 6, 23, 0.26);
        position: relative;
        z-index: 2003;
    }

    .site-menu-toggle span {
        width: 20px;
        height: 2px;
        display: block;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    body.site-sidebar-open .site-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.site-sidebar-open .site-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.site-sidebar-open .site-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 2001;
        display: block;
        border: 0;
        background: rgba(2, 6, 23, 0.58);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    body.site-sidebar-open .site-menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.site-sidebar-open .assistant-widget {
        opacity: 0;
        pointer-events: none;
    }

    .header-menu {
        position: fixed !important;
        top: 0;
        right: 0;
        z-index: 2002;
        width: min(82vw, 320px) !important;
        height: 100vh;
        height: 100dvh;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 18px !important;
        padding: 86px 18px 24px !important;
        border-left: 1px solid rgba(148, 163, 184, 0.2);
        background: rgba(7, 11, 31, 0.98);
        box-shadow: -24px 0 60px rgba(2, 6, 23, 0.42);
        transform: translateX(104%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        visibility: hidden;
        pointer-events: none;
        -webkit-overflow-scrolling: touch;
    }

    .header-menu::before {
        content: 'Menu';
        color: #f8fafc;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.2;
        padding: 0 2px 6px;
    }

    body.site-sidebar-open .header-menu {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .header-container nav,
    nav {
        width: 100% !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    .header-container nav .nav-link,
    nav a {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 48px !important;
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
        padding: 0 16px !important;
        border-radius: 12px !important;
        white-space: normal !important;
        text-align: left !important;
        font-size: 13px !important;
        letter-spacing: 0.2px !important;
    }

    .header-container nav .nav-link[href="contact.html"],
    .header-container nav .nav-link[href="clients.html"] {
        min-width: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .header-container nav .nav-link::before,
    nav a::before,
    .header-container nav .nav-link::after,
    nav a::after {
        display: none !important;
    }

    .header-actions {
        display: flex !important;
        width: 100% !important;
        order: 6;
    }

    .cta-btn {
        width: 100% !important;
        min-height: 48px !important;
        white-space: normal !important;
        background: #2563eb;
        color: white !important;
        border-radius: 8px;
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
    .site-menu-toggle {
        width: 40px !important;
        height: 40px !important;
        gap: 4px !important;
    }

    .site-menu-toggle span {
        width: 18px !important;
        height: 2px !important;
    }

    .header-menu {
        width: min(85vw, 300px) !important;
        padding: 80px 14px 20px !important;
        gap: 16px !important;
    }

    .header-menu::before {
        font-size: 16px;
        padding: 0 2px 4px;
    }

    .header-container nav a {
        padding: 0 12px !important;
        font-size: 12px !important;
    }

    .cta-btn {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
}

@media (max-width: 360px) {
    .header-menu {
        width: min(90vw, 280px) !important;
        padding: 75px 12px 16px !important;
    }

    .header-container nav a {
        padding: 0 10px !important;
        font-size: 11px !important;
        min-height: 44px !important;
    }

    .site-menu-toggle {
        width: 36px !important;
        height: 36px !important;
    }

    .site-menu-toggle span {
        width: 16px !important;
    }
}

/* Shared navbar lock: keep header order, sizing, and spacing identical on every page. */
body > header {
    box-sizing: border-box !important;
    background: rgba(7, 11, 31, 0.88) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    padding: 14px 20px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 4000 !important;
    width: 100% !important;
    height: 84px !important;
    min-height: 84px !important;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
}

body {
    padding-top: 84px !important;
}

body > header .header-container {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
    padding: 0 !important;
    min-height: 50px !important;
}

body > header .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

body > header .brand {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-width: 250px !important;
    text-decoration: none !important;
}

body > header .brand .logo {
    width: 50px !important;
    height: 50px !important;
    border-radius: 14px !important;
    object-fit: cover !important;
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.42) !important;
    border: 1px solid rgba(226, 232, 240, 0.16) !important;
}

body > header .brand .brand-title {
    background: linear-gradient(135deg, #f8fafc 0%, #38bdf8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
}

body > header .brand .brand-sub {
    color: #a0aec0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    margin-top: 5px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body > header .header-menu {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
    min-height: 44px !important;
}

body > header nav {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding: 6px !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.56) !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    min-height: 56px !important;
    overflow: visible !important;
}

body > header nav a {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 3 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 112px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 18px !important;
    color: #cbd5e1 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

body > header nav a:hover,
body > header nav a.active {
    color: #f8fafc !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(125, 211, 252, 0.2) !important;
}

body > header nav a::before,
body > header nav a::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
}

body > header .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

body > header .cta-btn {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 3 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 116px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 22px !important;
    background: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 100%) !important;
    color: #07111f !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22) !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

body > header .cta-btn:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.04) !important;
    box-shadow: 0 16px 38px rgba(56, 189, 248, 0.34) !important;
}

body > header .cta-btn::before,
body > header .cta-btn::after {
    content: none !important;
    display: none !important;
    pointer-events: none !important;
}

@media (max-width: 1200px) {
    body > header {
        height: 78px !important;
        min-height: 78px !important;
    }

    body {
        padding-top: 78px !important;
    }

    body > header .header-container {
        display: block !important;
        max-width: 100% !important;
    }

    body > header .brand {
        min-width: 0 !important;
    }

    body > header .header-menu {
        position: fixed !important;
        align-items: stretch !important;
        gap: 18px !important;
    }

    body > header nav {
        min-height: 0 !important;
    }

    body > header nav a,
    body > header .cta-btn {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        min-height: 48px !important;
        padding: 0 16px !important;
        white-space: normal !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
}
