/* ==========================================================================
   Bala Ji Softwares — Mobile App UI (v2)
   Mobile-first enhancements. Desktop layout unchanged.
   Breakpoints: 768px | 480px | 360px
   ========================================================================== */

/* ---- Global mobile base ---- */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        /* clip keeps position:sticky working; hidden on body breaks sticky */
        overflow-x: clip;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .site-main,
    .container {
        max-width: 100%;
        box-sizing: border-box;
    }

    .header-container {
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible !important;
    }
}

/* ---- CSS variables (mobile app shell) ---- */
@media (max-width: 768px) {
    :root {
        --header-height: 68px;
        --mobile-nav-bar: 60px;
        --mobile-nav-float-gap: 10px;
        --mobile-nav-height: calc(var(--mobile-nav-bar) + var(--mobile-nav-float-gap) + var(--safe-bottom));
        --utility-bar-height: 34px;
        --app-glass: rgba(12, 18, 32, 0.88);
        --app-glass-border: rgba(255, 255, 255, 0.09);
    }

    body.has-mobile-nav {
        padding-bottom: calc(var(--mobile-nav-height) + 8px);
    }
}

/* ==========================================================================
   HEADER — Professional brand bar
   [BJ] Bala Ji Softwares              [☰]
        India's Digital Growth Partner
   ========================================================================== */
@media (max-width: 768px) {
    /* Utility bar — compact, no overlap with brand */
    .mobile-utility-bar {
        position: relative;
        z-index: 1090;
        background: #070b14;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-utility-item {
        font-size: 9px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.72);
    }

    /* Sticky white brand bar (TechMagnate-style) */
    body.page-home .header-system {
        position: sticky;
        top: 0;
        z-index: 1100;
        background: #ffffff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none !important;
        border-bottom: 1px solid #e8eef5 !important;
        box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
        padding: 0;
    }

    body.page-home .header-system.is-scrolled {
        background: #ffffff !important;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    }

    body.page-home .site-header {
        background: #ffffff !important;
        position: relative;
        z-index: 1101;
        overflow: visible;
    }

    body.page-home .site-header .header-container {
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 12px 18px;
        margin: 0;
        overflow: visible;
    }

    /* Hide slim top bar on home mobile — clean white header only */
    body.page-home .top-bar {
        display: none !important;
    }

    body.page-home .mobile-utility-bar {
        display: none !important;
    }

    body:not(.page-home) .header-system {
        background: #fff !important;
        border-bottom: 1px solid #eef2f7 !important;
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    body:not(.page-home) .site-header .header-container {
        padding: 10px 14px;
    }

    .header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 56px;
        padding: 0;
        overflow: visible;
    }

    .header-actions {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        z-index: 2;
        margin-left: auto;
    }

    .header-row .site-logo-link {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        overflow: visible;
        z-index: 1;
        display: flex;
        align-items: center;
    }

    .header-row .site-logo-composite {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        width: 100%;
        overflow: visible;
    }

    .header-row .site-logo-mark {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        flex-shrink: 0;
        border-radius: 13px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #2072f3 0%, #1557c7 100%);
        box-shadow: 0 4px 18px rgba(32, 114, 243, 0.5);
    }

    .header-row .site-logo-mark-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        padding: 2px;
        box-sizing: border-box;
    }

    .header-row .site-logo-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 3px;
        min-width: 0;
        flex: 1 1 auto;
        overflow: visible;
        padding-right: 4px;
    }

    .header-row .site-logo-name {
        font-size: clamp(14px, 4vw, 17px) !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em;
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        max-width: none;
        background: none !important;
    }

    /* Tagline under brand — light gray, letter-spaced */
    body.page-home .header-row .site-logo-tagline {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        color: #94a3b8 !important;
        -webkit-text-fill-color: #94a3b8 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
        width: 100%;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        margin-top: 2px;
    }

    body.page-home .header-row .site-logo-tagline::before {
        display: none !important;
    }

    body.page-home .header-row .site-logo-name {
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }

    body:not(.page-home) .header-row .site-logo-name {
        color: #0f172a !important;
        -webkit-text-fill-color: #0f172a !important;
    }

    body:not(.page-home) .header-row .site-logo-tagline {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        border-radius: 0;
        background: transparent;
        border: none;
        padding: 0;
        z-index: 2;
        box-shadow: none;
        transition: transform 0.15s ease;
    }

    body:not(.page-home) .menu-toggle {
        background: transparent;
        border: none;
    }

    .menu-toggle:active {
        transform: scale(0.94);
    }

    /* Teal hamburger bars — reference style */
    body.page-home .menu-toggle .hamburger span,
    body:not(.page-home) .menu-toggle .hamburger span {
        background: #00b4a6;
        height: 2.5px;
        border-radius: 2px;
    }

    body.page-home .menu-toggle .hamburger {
        width: 26px;
        height: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    body.page-home .menu-toggle .hamburger span {
        width: 100%;
        display: block;
    }

    .hamburger span {
        transition: transform 0.3s ease, opacity 0.25s ease;
    }
}

@media (max-width: 480px) {
    .header-row .site-logo-mark {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    body.page-home .site-header .header-container {
        padding: 10px 12px;
    }

    .header-row {
        min-height: 54px;
        gap: 10px;
    }

    .header-row .site-logo-name {
        font-size: 15px !important;
    }

    body.page-home .header-row .site-logo-tagline {
        font-size: 10px !important;
    }
}

@media (max-width: 360px) {
    .header-row .site-logo-mark {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .header-row .site-logo-composite {
        gap: 10px;
    }

    .header-row .site-logo-name {
        font-size: 14px !important;
    }

    body.page-home .header-row .site-logo-tagline {
        font-size: 9.5px !important;
        line-height: 1.3 !important;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
}

/* ==========================================================================
   HERO — App-like dark gradient section
   ========================================================================== */
@media (max-width: 768px) {
    body.page-home .hero-v5 {
        background: linear-gradient(165deg, #0a0f1a 0%, #0f172a 45%, #1a3a5f 100%);
        padding-top: clamp(20px, 5vw, 28px);
        position: relative;
        overflow: hidden;
        margin-top: 0;
    }

    /* Keep headline clear of sticky header */
    body.page-home .hero-v5 .container {
        padding-top: 4px;
    }

    body.page-home .hero-v5-content {
        padding-top: 0;
        overflow: visible;
    }

    /* Subtle glow — decorative only */
    body.page-home .hero-v5::before {
        content: '';
        position: absolute;
        top: -20%;
        right: -30%;
        width: 70%;
        height: 50%;
        background: radial-gradient(circle, rgba(32, 114, 243, 0.18) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    body.page-home .hero-v5::after {
        content: '';
        position: absolute;
        bottom: 10%;
        left: -20%;
        width: 60%;
        height: 40%;
        background: radial-gradient(circle, rgba(0, 196, 167, 0.1) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    body.page-home .hero-v5-layout,
    body.page-home .hero-v5-content {
        position: relative;
        z-index: 2;
    }

    body.page-home .hero-v5-badge {
        display: none;
    }

    body.page-home .hero-v5-wave {
        display: none;
    }

    .hero-v5 h1 {
        font-size: clamp(1.5rem, 6.8vw, 2.05rem);
        line-height: 1.25;
        letter-spacing: -0.03em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        color: #ffffff;
        margin-top: 0;
        padding-top: 0;
        overflow: visible;
    }

    /* Bright cyan highlight — high contrast on dark navy */
    .hero-v5 h1 .hero-highlight {
        background: linear-gradient(135deg, #a5f3fc 0%, #22d3ee 40%, #2dd4bf 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: #22d3ee;
    }

    @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
        .hero-v5 h1 .hero-highlight {
            color: #22d3ee;
            -webkit-text-fill-color: #22d3ee;
            background: none;
        }
    }

    .hero-v5-subtitle {
        font-size: clamp(0.8125rem, 3.5vw, 0.9375rem);
        line-height: 1.75;
        color: rgba(255, 255, 255, 0.72);
        margin-bottom: clamp(16px, 4vw, 22px);
    }

    /* Feature stat cards — 2-col glass grid */
    .hero-v5-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(8px, 2.5vw, 12px);
        margin-bottom: clamp(18px, 4vw, 24px);
    }

    .hero-v5-trust-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-height: 68px;
        padding: 12px 10px;
        border-radius: 16px;
        font-size: clamp(10px, 2.8vw, 11px);
        font-weight: 600;
        line-height: 1.35;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        min-width: 0;
    }

    .hero-v5-trust-item:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(0, 196, 167, 0.25);
    }

    .hero-v5-trust-item i {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 50%;
        background: rgba(0, 196, 167, 0.15);
        color: var(--secondary);
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* CTA buttons — full width, min 54px */
    .hero-v5-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: clamp(14px, 3vw, 18px);
    }

    .hero-v5-buttons .btn-primary.open-proposal,
    .hero-v5-buttons .btn-primary {
        width: 100%;
        min-height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        font-size: clamp(0.875rem, 3.8vw, 1rem);
        font-weight: 700;
        border-radius: 16px;
        background: linear-gradient(135deg, #2072f3 0%, #1557c7 100%);
        border: none;
        box-shadow: 0 8px 28px rgba(32, 114, 243, 0.5);
        transition: transform 0.15s ease, box-shadow 0.2s ease;
    }

    .hero-v5-buttons .btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 4px 16px rgba(32, 114, 243, 0.4);
    }

    .hero-v5-buttons .btn-hero-outline {
        width: 100%;
        min-height: 54px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 20px;
        font-size: clamp(0.875rem, 3.8vw, 1rem);
        font-weight: 600;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.92);
        transition: transform 0.15s ease, background 0.2s ease;
    }

    .hero-v5-buttons .btn-hero-outline:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.08);
    }

    /* Trust / rating row */
    .hero-v5-rating {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: clamp(12px, 3vw, 16px);
    }

    .hero-v5-stars {
        color: #fbbf24;
        font-size: clamp(11px, 3vw, 13px);
    }

    .hero-v5-rating > span {
        font-size: clamp(10px, 2.8vw, 12px);
        color: rgba(255, 255, 255, 0.55);
        line-height: 1.4;
    }

    /* Category chips */
    .hero-v5-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%;
    }

    .hero-v5-pill {
        font-size: clamp(10px, 2.6vw, 11px);
        padding: 6px 12px;
        border-radius: 50px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.78);
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-v5-layout {
        padding-bottom: clamp(48px, 12vw, 64px);
    }
}

@media (max-width: 360px) {
    .hero-v5-trust-item {
        min-height: 62px;
        padding: 10px 8px;
        font-size: 9px;
    }

    .hero-v5-trust-item i {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 11px;
    }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS — WhatsApp + Chat
   ========================================================================== */
@media (max-width: 768px) {
    .lead-wa-fab,
    .lead-chat-fab {
        z-index: 1450;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease;
    }

    .lead-wa-fab {
        bottom: calc(var(--mobile-nav-height, 70px) + 14px);
        right: 14px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .lead-chat-fab {
        bottom: calc(var(--mobile-nav-height, 70px) + 76px);
        right: 14px;
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .lead-wa-fab:active,
    .lead-chat-fab:active {
        transform: scale(0.92);
    }

    .lead-chat-panel {
        bottom: calc(var(--mobile-nav-height, 70px) + 10px);
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        z-index: 1500;
    }

    body.has-mobile-nav .back-to-top {
        bottom: calc(var(--mobile-nav-height, 70px) + 14px);
        z-index: 1440;
    }
}

/* ==========================================================================
   BOTTOM NAV — Floating glass app tab bar
   Home | Services | Portfolio | Contact
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        --nav-tabs: 4;
        position: fixed;
        bottom: calc(var(--mobile-nav-float-gap, 10px) + var(--safe-bottom));
        left: 12px;
        right: 12px;
        width: auto;
        max-width: calc(100% - 24px);
        height: var(--mobile-nav-bar, 60px);
        padding: 6px 4px;
        box-sizing: border-box;
        overflow: hidden;
        display: grid !important;
        grid-template-columns: repeat(var(--nav-tabs), minmax(0, 1fr));
        align-items: stretch;
        background: rgba(12, 18, 32, 0.94);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 22px;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
        z-index: 1500;
    }

    .mobile-tab {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 2px;
        color: rgba(255, 255, 255, 0.42);
        text-decoration: none;
        background: none;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        min-height: 44px;
        transition: color 0.2s ease;
    }

    .mobile-tab-icon {
        font-size: clamp(16px, 4.5vw, 18px);
        line-height: 1;
        transition: transform 0.15s ease, color 0.2s ease;
    }

    .mobile-tab-label {
        font-size: clamp(8px, 2.4vw, 10px);
        font-weight: 600;
        letter-spacing: 0.02em;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
        padding: 0 2px;
    }

    .mobile-tab.active {
        color: var(--secondary);
    }

    .mobile-tab.active .mobile-tab-icon {
        color: var(--secondary);
    }

    .mobile-tab:active {
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        border-radius: 20px;
    }
}

@media (max-width: 360px) {
    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
        --mobile-nav-bar: 56px;
    }

    .mobile-tab-label {
        font-size: 8px;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ==========================================================================
   v3 — Stronger mobile brand bar, logo, footer & breathing room
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 72px;
        --mobile-nav-bar: 64px;
        --mobile-nav-float-gap: 0px;
        --utility-bar-height: 36px;
    }

    /* Utility strip — readable, not cramped */
    .mobile-utility-bar {
        background: #05080f !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 0 4px;
    }

    .mobile-utility-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 34px;
        padding: 6px 12px;
        overflow: hidden;
    }

    .mobile-utility-item {
        font-size: 10px !important;
        font-weight: 650 !important;
        color: rgba(255, 255, 255, 0.82) !important;
        white-space: nowrap;
        letter-spacing: 0.01em;
    }

    .mobile-utility-item i {
        color: #5eead4;
        margin-right: 4px;
    }

    .mobile-utility-item--phone {
        color: #fff !important;
        font-weight: 700 !important;
    }

    /* White header plate — logo left, teal menu right */
    body.page-home .header-system,
    body.page-home .header-system.is-scrolled {
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: 1px solid #e8eef5 !important;
        box-shadow: 0 2px 16px rgba(15, 23, 42, 0.06) !important;
    }

    body.page-home .site-header,
    body.page-home .site-header .header-container {
        background: #ffffff !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.page-home .site-header .header-container {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .header-row {
        min-height: 56px !important;
        gap: 16px !important;
    }

    /* Logo mark — brand blue tile on white */
    body.page-home .header-row .site-logo-mark,
    .header-row .site-logo-mark {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        border-radius: 12px !important;
        border: none;
        box-shadow: 0 4px 14px rgba(32, 114, 243, 0.28) !important;
    }

    .header-row .site-logo-mark-img {
        padding: 2px !important;
    }

    .header-row .site-logo-composite {
        gap: 10px !important;
    }

    body.page-home .header-row .site-logo-name {
        font-size: 17px !important;
        font-weight: 800 !important;
        color: #0b1b3a !important;
        -webkit-text-fill-color: #0b1b3a !important;
        letter-spacing: -0.02em !important;
        line-height: 1.1 !important;
        text-shadow: none !important;
        background: none !important;
    }

    /* TECHMAGNATE-style split: accent + navy */
    body.page-home .header-row .site-logo-name-accent {
        color: #00b4a6 !important;
        -webkit-text-fill-color: #00b4a6 !important;
    }

    body.page-home .header-row .site-logo-name-main {
        color: #0b1b3a !important;
        -webkit-text-fill-color: #0b1b3a !important;
    }

    body.page-home .header-row .site-logo-tagline {
        display: block !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        color: #64748b !important;
        -webkit-text-fill-color: #64748b !important;
        background: none !important;
        line-height: 1.3 !important;
        margin-top: 3px;
        letter-spacing: 0.04em;
        text-transform: none;
        opacity: 1 !important;
        visibility: visible !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
        width: auto !important;
    }

    /* Prevent brand text from being clipped by flex shrink */
    body.page-home .header-row .site-logo-link,
    body.page-home .header-row .site-logo-text,
    body.page-home .header-row .site-logo-composite {
        overflow: visible !important;
        min-width: 0;
        max-width: none !important;
    }

    body.page-home .header-row .site-logo-name {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        max-width: none !important;
    }

    body.page-home .menu-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    body.page-home .menu-toggle .hamburger span {
        background: #00b4a6 !important;
        height: 2.5px !important;
    }

    /* Hero visual cards — show on mobile (was display:none) */
    body.page-home .hero-v5-visual,
    .hero-v5-visual {
        display: block !important;
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 8px 0 20px !important;
        padding: 0 !important;
    }

    body.page-home .hero-v5-visual .hero-v5-card,
    .hero-v5-visual .hero-v5-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
    }

    body.page-home .hero-v5-visual {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.page-home .hero-v5-visual .hero-v5-card-main {
        grid-column: 1 / -1;
        order: -1;
        padding: 18px 16px !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }

    body.page-home .hero-v5-visual .hero-v5-card-main h3 {
        font-size: 15px !important;
        margin-bottom: 6px !important;
        color: #0f172a !important;
    }

    body.page-home .hero-v5-visual .hero-v5-card-main p {
        font-size: 12.5px !important;
        margin-bottom: 12px !important;
        color: #64748b !important;
        line-height: 1.5 !important;
    }

    body.page-home .hero-v5-visual .hero-v5-card-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
        margin-bottom: 10px !important;
    }

    body.page-home .hero-v5-visual .hero-v5-card-float-1,
    body.page-home .hero-v5-visual .hero-v5-card-float-2 {
        padding: 14px 12px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        text-align: center;
    }

    body.page-home .hero-v5-visual .hero-v5-card-small strong {
        font-size: 20px !important;
        color: #2072f3 !important;
    }

    body.page-home .hero-v5-visual .hero-v5-card-small span {
        font-size: 11px !important;
        color: #64748b !important;
    }

    body.page-home .hero-v5-visual .hero-v5-stat-row {
        gap: 8px !important;
    }

    body.page-home .hero-v5-visual .hero-v5-mini-stat {
        padding: 8px 6px !important;
        border-radius: 10px !important;
    }

    body.page-home .hero-v5-visual .hero-v5-mini-stat strong {
        font-size: 15px !important;
    }

    body.page-home .hero-v5-visual .hero-v5-mini-stat span {
        font-size: 9px !important;
    }

    /* Hero breathing room */
    body.page-home .hero-v5 {
        padding-top: 22px !important;
        padding-bottom: 28px !important;
    }

    body.page-home .hero-v5 .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    body.page-home .hero-v5 h1 {
        font-size: clamp(1.55rem, 7vw, 2.1rem) !important;
        line-height: 1.22 !important;
        margin-bottom: 12px !important;
    }

    body.page-home .hero-v5-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.65 !important;
        color: rgba(255, 255, 255, 0.78) !important;
        max-width: 34em;
        margin-bottom: 18px !important;
    }

    body.page-home .hero-v5-trust {
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    body.page-home .hero-v5-trust-item {
        min-height: 72px;
        padding: 12px 10px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        font-size: 11px !important;
        font-weight: 650 !important;
        color: rgba(255, 255, 255, 0.92) !important;
    }

    body.page-home .hero-v5-buttons {
        gap: 10px !important;
    }

    body.page-home .hero-v5-buttons .btn-primary,
    body.page-home .hero-v5-buttons .btn-primary.open-proposal {
        min-height: 50px !important;
        border-radius: 14px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        box-shadow: 0 10px 28px rgba(32, 114, 243, 0.4) !important;
    }

    body.page-home .hero-v5-buttons .btn-hero-outline {
        min-height: 48px !important;
        border-radius: 14px !important;
        border-width: 1.5px !important;
        color: #fff !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    /* Bottom nav — full-width dock, high contrast */
    .mobile-bottom-nav {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: calc(var(--mobile-nav-bar) + var(--safe-bottom)) !important;
        padding: 8px 8px calc(8px + var(--safe-bottom)) !important;
        border-radius: 18px 18px 0 0 !important;
        border: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        background: rgba(8, 12, 22, 0.97) !important;
        backdrop-filter: blur(20px) saturate(160%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
        box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.45) !important;
    }

    .mobile-tab {
        gap: 4px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        border-radius: 12px;
    }

    .mobile-tab-icon {
        font-size: 18px !important;
    }

    .mobile-tab-label {
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em !important;
        color: inherit !important;
        opacity: 1 !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .mobile-tab.active {
        color: #5eead4 !important;
        background: rgba(94, 234, 212, 0.1);
    }

    .mobile-tab.active .mobile-tab-icon {
        color: #5eead4 !important;
        filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.45));
    }

    body.has-mobile-nav {
        padding-bottom: calc(var(--mobile-nav-bar) + var(--safe-bottom) + 10px) !important;
    }

    .lead-wa-fab {
        bottom: calc(var(--mobile-nav-bar) + var(--safe-bottom) + 16px) !important;
        right: 14px !important;
    }

    .lead-chat-fab {
        bottom: calc(var(--mobile-nav-bar) + var(--safe-bottom) + 78px) !important;
        right: 14px !important;
    }

    /* Footer brand — logo + name clearly visible */
    .site-footer {
        padding-bottom: 12px;
    }

    .site-footer .footer-brand .site-logo-composite,
    .site-footer .logo--footer .site-logo-composite {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .site-footer .footer-brand .site-logo-mark,
    .site-footer .logo--footer .site-logo-mark {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 20px rgba(32, 114, 243, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .site-footer .footer-brand .site-logo-name,
    .site-footer .logo--footer .site-logo-name {
        display: block !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-footer .footer-brand .site-logo-tagline,
    .site-footer .logo--footer .site-logo-tagline {
        display: block !important;
        color: #5eead4 !important;
        -webkit-text-fill-color: #5eead4 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        opacity: 1 !important;
        visibility: visible !important;
        white-space: normal !important;
        max-width: none !important;
    }

    .site-footer .footer-brand-desc {
        color: rgba(255, 255, 255, 0.72) !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-top: 12px !important;
    }

    .site-footer .footer-phone-link,
    .site-footer .footer-email-link {
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    .site-footer .footer-col h4 {
        color: #ffffff !important;
        font-size: 14px !important;
        letter-spacing: 0.02em;
    }

    .site-footer .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.55);
    }

    .container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

@media (max-width: 480px) {
    body.page-home .site-header .header-container {
        padding: 11px 16px !important;
    }

    body.page-home .header-row .site-logo-mark,
    .header-row .site-logo-mark {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    body.page-home .header-row .site-logo-name {
        font-size: 15.5px !important;
    }

    body.page-home .header-row .site-logo-tagline {
        font-size: 8.5px !important;
        letter-spacing: 0.12em !important;
    }

    body.page-home .hero-v5 .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 360px) {
    body.page-home .header-row .site-logo-name {
        font-size: 14.5px !important;
    }

    .mobile-tab-label {
        font-size: 9px !important;
    }
}

/* ==========================================================================
   Sticky header lock + unhide clipped text (final overrides)
   ========================================================================== */
@media (max-width: 768px) {
    body.page-home .header-system,
    body:not(.page-home) .header-system {
        position: sticky !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1300 !important;
        overflow: visible !important;
    }

    body.page-home .header-system {
        background: #fff !important;
    }

    body.page-home .site-header {
        position: relative !important;
        overflow: visible !important;
        background: #fff !important;
    }

    body.page-home .header-row {
        overflow: visible !important;
        align-items: center;
    }

    /* Hero text — don't clip highlight / subtitle */
    body.page-home .hero-v5,
    body.page-home .hero-v5-content,
    body.page-home .hero-v5-layout {
        overflow: visible !important;
    }

    body.page-home .hero-v5 h1 {
        overflow: visible !important;
        word-break: break-word;
        hyphens: auto;
    }

    body.page-home .hero-v5 h1 .hero-highlight {
        display: inline;
        white-space: normal;
        overflow: visible !important;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
    }

    body.page-home .hero-v5-subtitle {
        overflow: visible !important;
        display: block !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
    }

    body.page-home .hero-v5-visual {
        overflow: visible !important;
    }
}
