/* ============================================
   Bala Ji Softwares - Mobile App UI Styles
   ============================================ */

/* Safe area for notched phones */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --header-height: 62px;
    --mobile-nav-bar: 62px;
    --mobile-nav-gap: 0px;
    --mobile-nav-height: calc(var(--mobile-nav-bar) + var(--safe-bottom));
    --utility-bar-height: 34px;
    --mobile-nav-bg: #0c1220;
    --mobile-nav-border: rgba(255, 255, 255, 0.08);
    --app-dark: #0a0f1a;
    --app-dark-elevated: #111827;
}

body.has-mobile-nav {
    padding-bottom: calc(var(--mobile-nav-height) + var(--safe-bottom));
}

/* ---- Enhanced Logo ---- */
.logo-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #4d8ff7 50%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(32, 114, 243, 0.35);
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 100%);
}

.logo-letter, .logo-letter-accent {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    color: #fff;
    line-height: 1;
}

.logo-letter-accent { color: rgba(255,255,255,0.85); margin-left: -2px; }

.logo-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--dark);
    line-height: 1.2;
}

.logo-tagline {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.logo--footer .logo-name { color: #fff; }
.logo--footer .logo-tagline { color: rgba(255,255,255,0.55); }
.logo--drawer .logo-name { color: #fff; }
.logo--drawer .logo-tagline { color: rgba(255,255,255,0.6); }

/* ---- Header Enhancements ---- */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
    min-height: var(--header-height);
}

.logo { text-decoration: none; }

.desktop-nav { flex: 1; display: flex; justify-content: center; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: 10px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.nav-link:hover, .nav-item-has-mega:hover > .nav-link {
    color: var(--primary);
    background: rgba(32, 114, 243, 0.06);
}

.nav-chevron { font-size: 9px; transition: transform 0.25s; }
.nav-item-has-mega:hover .nav-chevron { transform: rotate(180deg); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-phone-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.header-phone-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.header-cta-btn .cta-short { display: none; }

.top-bar-stats .highlight {
    color: var(--secondary);
    font-weight: 700;
}

/* ---- Mobile Utility Bar ---- */
.mobile-utility-bar {
    display: none;
    background: var(--app-dark);
    color: rgba(255, 255, 255, 0.82);
    height: var(--utility-bar-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1001;
}

.mobile-utility-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 8px;
    gap: 0;
    overflow: hidden;
}

.mobile-utility-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    padding: 0 6px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-utility-item i {
    color: var(--secondary);
    font-size: 8px;
    flex-shrink: 0;
}

.mobile-utility-item--phone {
    color: rgba(255, 255, 255, 0.9);
}

.mobile-utility-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* Legacy ticker hidden */
.mobile-ticker { display: none !important; }

/* ---- Hamburger ---- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.hamburger span {
    display: block;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Mobile Drawer ---- */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100%;
    height: 100dvh;
    background: linear-gradient(180deg, #0f172a 0%, #1a2b4a 100%);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: var(--safe-top);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.drawer-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.drawer-close:hover { background: rgba(255,255,255,0.2); }

.mobile-drawer-quick {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    flex-shrink: 0;
}

.quick-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.08);
}

.quick-action i { font-size: 18px; }

.quick-action:hover, .quick-action:active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.quick-action--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
}

.mobile-drawer-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 12px 20px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.drawer-nav-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary);
    font-size: 16px;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.drawer-nav-item.active {
    background: rgba(32, 114, 243, 0.2);
    border-left: 3px solid var(--primary);
}

/* Drawer Accordion */
.drawer-accordion { margin-bottom: 4px; }

.drawer-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.2s;
    text-align: left;
}

.drawer-accordion-btn i:first-child {
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

.drawer-accordion-btn .accordion-icon {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.3s;
    color: rgba(255,255,255,0.4);
}

.drawer-accordion.open .accordion-icon { transform: rotate(180deg); }
.drawer-accordion.open .drawer-accordion-btn { background: rgba(255,255,255,0.06); }

.drawer-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 16px;
}

.drawer-accordion.open .drawer-accordion-panel {
    max-height: 600px;
    padding-bottom: 8px;
}

.drawer-sub-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    font-weight: 700;
    padding: 8px 12px 4px;
}

.drawer-sub-link {
    display: block;
    padding: 10px 12px 10px 34px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.drawer-sub-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    padding-left: 38px;
}

.mobile-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    padding-bottom: calc(16px + var(--safe-bottom));
}

.drawer-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-decoration: none;
}

/* ---- Mobile Bottom Nav (App Tab Bar) ---- */
.mobile-bottom-nav {
    --nav-tabs: 4;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: calc(var(--mobile-nav-bar) + var(--safe-bottom));
    padding: 6px 0 var(--safe-bottom);
    box-sizing: border-box;
    overflow: hidden;
    background: var(--mobile-nav-bg);
    border-top: 1px solid var(--mobile-nav-border);
    z-index: 1500;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
    display: none;
    grid-template-columns: repeat(var(--nav-tabs), minmax(0, 1fr));
    align-items: stretch;
}

.mobile-tab {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-tab-icon {
    font-size: 18px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-tab-label {
    font-size: 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 .mobile-tab-icon {
    transform: scale(0.88);
}

/* ---- Mobile FAB ---- */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: calc(var(--mobile-nav-height) + var(--safe-bottom) + 16px);
    right: 16px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(32, 114, 243, 0.45);
    z-index: 1400;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-fab:hover { transform: scale(1.08); color: #fff; }
.mobile-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

/* ---- Footer Enhancements ---- */
.footer-wave {
    color: var(--bg-light);
    line-height: 0;
    margin-top: -1px;
}

.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding-top: 0;
    position: relative;
}

.footer-inner { padding: 48px 0 0; }

.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.footer-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
}

.footer-stat-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(32, 114, 243, 0.3);
    transform: translateY(-2px);
}

.footer-stat-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(32,114,243,0.2), rgba(0,196,167,0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--secondary);
    font-size: 18px;
}

.footer-stat-card .value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.footer-stat-card .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    display: block;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    margin: 16px 0;
    color: rgba(255,255,255,0.6);
}

.footer-phone-link, .footer-email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-phone-link i, .footer-email-link i {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 13px;
}

.footer-phone-link:hover, .footer-email-link:hover { color: #fff; }

.footer-newsletter h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-newsletter p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}

.newsletter-input-wrap {
    display: flex;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.newsletter-input-wrap:focus-within {
    border-color: var(--primary);
}

.newsletter-input {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 20px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-body);
    outline: none;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }

.newsletter-btn {
    width: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.2s;
}

.newsletter-btn:hover { opacity: 0.9; }

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.footer-col ul li a i {
    font-size: 10px;
    color: var(--secondary);
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-col ul li a:hover i { opacity: 1; }

.footer-accordion-btn {
    display: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    padding-bottom: calc(24px + var(--safe-bottom));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright { font-size: 13px; color: rgba(255,255,255,0.45); }

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.footer-legal a:hover { color: #fff; }

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: all 0.25s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ---- CTA Section Enhanced ---- */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-shape-1 { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-shape-2 { width: 200px; height: 200px; bottom: -80px; left: -40px; }

.cta-content { position: relative; z-index: 2; }

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

.btn-block { width: 100%; }

.cta-phone-link { display: none; }

/* ---- Modal Mobile Full ---- */
.modal--mobile-full { max-width: 560px; }

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(32,114,243,0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-desc {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 15px;
}

.desktop-nav { display: flex; }

/* Hide desktop nav on tablet/mobile */

.nav-item-has-mega { position: relative; }

.nav-item-has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner { padding: 0; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 1100px) {
    .header-cta-btn .cta-full { display: none; }
    .header-cta-btn .cta-short { display: inline; }
    .nav-link { padding: 10px 10px; font-size: 13px; }
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .menu-toggle { display: flex; }
    .header-phone-btn { display: flex; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html {
        overflow-x: clip;
        -webkit-text-size-adjust: 100%;
        scroll-behavior: smooth;
    }

    body {
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Keep sticky header working — never put overflow on .header-system */
    .site-main,
    .hero-v5,
    .container {
        max-width: 100%;
        overflow-x: clip;
    }

    .header-system,
    .header-container {
        max-width: 100%;
        overflow: visible;
    }

    .hero-v5-orb {
        display: none;
    }

    .top-bar { display: none; }
    .mobile-utility-bar { display: block; }

    body.page-home {
        background: var(--app-dark);
    }

    /* Home mobile header is white sticky bar (mobile-app.css) */
    body.page-home .header-system {
        position: sticky !important;
        top: 0 !important;
        z-index: 1200 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e8eef5 !important;
        box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06) !important;
    }

    body.page-home .header-system.is-scrolled {
        background: #ffffff !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1) !important;
    }

    body.page-home .mobile-utility-bar {
        display: none !important;
    }

    body.has-mobile-nav .site-header {
        top: 0;
    }

    .header-row {
        min-height: var(--header-height);
        padding: 8px 0;
        gap: 10px;
    }

    .header-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Tagline visibility handled in mobile-app.css / site-logo.css */
    .logo-tagline { display: none; }

    .header-row .site-logo-link {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .header-row .header-cta-btn,
    .header-cta-btn {
        display: none !important;
    }

    .header-icon-group { display: none !important; }

    .menu-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        width: 42px;
        height: 42px;
        flex-shrink: 0;
    }

    body:not(.page-home) .menu-toggle {
        background: rgba(32, 114, 243, 0.08);
        border-color: transparent;
    }

    body:not(.page-home) .menu-toggle .hamburger span {
        background: var(--dark);
    }

    body.page-home .menu-toggle .hamburger span {
        background: #00b4a6;
    }

    .site-header {
        position: relative;
        top: 0;
        z-index: 1;
        background: transparent !important;
    }

    .header-system {
        position: sticky !important;
        top: 0 !important;
        z-index: 1200 !important;
    }

    body:not(.page-home) .site-header {
        background: #fff !important;
    }

    body:not(.page-home) .header-system {
        background: #fff !important;
        border-bottom: 1px solid #eef2f7 !important;
    }

    .mobile-bottom-nav {
        display: grid !important;
    }

    body.has-mobile-nav .mobile-fab {
        display: none !important;
    }

    .mobile-fab { display: none !important; }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-main > section {
        scroll-margin-top: calc(var(--header-height) + var(--utility-bar-height));
    }

    .back-to-top {
        bottom: calc(var(--mobile-nav-height) + 8px);
        right: 16px;
        width: 44px;
        height: 44px;
    }

    /* Footer mobile accordions */
    .footer-stats {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .footer-stats::-webkit-scrollbar { display: none; }

    .footer-stat-card {
        min-width: 140px;
        scroll-snap-align: start;
        flex-shrink: 0;
        padding: 20px 14px;
    }

    .footer-stat-card .value { font-size: 20px; }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-accordion {
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-accordion-btn {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 18px 0;
        background: none;
        border: none;
        cursor: pointer;
        color: #fff;
    }

    .footer-accordion-btn h4 {
        margin: 0;
        font-size: 15px;
        text-transform: none;
        letter-spacing: 0;
    }

    .footer-accordion-btn i {
        font-size: 12px;
        color: rgba(255,255,255,0.4);
        transition: transform 0.3s;
    }

    .footer-accordion.open .footer-accordion-btn i {
        transform: rotate(180deg);
    }

    .footer-accordion-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-accordion.open .footer-accordion-panel {
        max-height: 400px;
        padding-bottom: 16px;
    }

    .footer-col h4 { display: none; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-bottom-left { align-items: center; }
    .footer-legal { justify-content: center; }

    .cta-section { padding: 60px 0; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-phone-link { display: inline-flex; }
    .cta-section .btn { width: 100%; max-width: 320px; }

    .modal--mobile-full {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        align-self: flex-end;
        max-height: 92dvh;
        animation: slideUpModal 0.35s ease;
    }

    .modal--proposal.modal--mobile-full {
        border-radius: 24px 24px 0 0;
    }

    .modal--proposal .modal-proposal-accent {
        border-radius: 24px 24px 0 0;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    @keyframes slideUpModal {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .mobile-tab-label { font-size: 9px; }
    .mobile-tab-icon { font-size: 17px; }
    .mobile-utility-item { font-size: 8px; padding: 0 4px; }
}

@media (max-width: 380px) {
    .mobile-tab-label { font-size: 8px; }
    .header-row .site-logo-name { font-size: 13px; }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 769px) {
    .mobile-utility-bar,
    .mobile-ticker,
    .mobile-bottom-nav,
    .mobile-fab,
    .mobile-overlay,
    .mobile-drawer {
        display: none !important;
    }

    body.has-mobile-nav {
        padding-bottom: 0;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .drawer-nav-item {
        min-height: 44px;
    }

    .mobile-tab {
        min-height: unset;
    }

    .service-card:hover,
    .case-card:hover,
    .feature-card:hover {
        transform: none;
    }
}
