/* =============================================================================
     SANCHIT ENTERPRISES — COMPACT & MOBILE-OPTIMIZED HEADER (v17)
     Optimized for iPhone SE (375px) and all Android phones
     ============================================================================= */

  .site-announcement-strip {
    background: #1565C0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    z-index: 1001;
  }
  .site-announcement-strip a { color: #fde68a; font-weight: 700; }

  /* ── MAIN HEADER ── */
  .site-header {
    background: #ffffff;
    border-bottom: 3px solid #0D47A1;
    box-shadow: 0 2px 12px rgba(13,71,161,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 12px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 10px;
  }

  /* Logo - Compact */
  .site-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0D47A1;
  }
  .site-logo-icon {
    width: 34px;
    height: 34px;
    background: #0D47A1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
  }
  .site-logo-name {
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
  }
  .site-logo-tagline {
    font-size: 9.5px;
    font-weight: 600;
    color: #64B5F6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  /* Desktop Navigation */
  .main-navigation { display: none; }
  @media (min-width: 992px) {
    .main-navigation { display: flex; flex: 1; justify-content: center; }
    .header-inner { height: 68px; padding: 0 24px; }
  }

  /* CTA Group - Call & WhatsApp */
  .header-cta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }
  .header-cta-group .btn {
    font-size: 13px;
    padding: 6px 12px;
    height: 36px;
    min-width: 110px;
  }
  @media (max-width: 479px) {
    .header-cta-group .btn { min-width: 96px; font-size: 12.5px; padding: 5px 10px; }
  }

  /* Hamburger Button */
  .mobile-menu-toggle {
    width: 46px;
    height: 46px;
    background: #0D47A1;
    border: none;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(13,71,161,0.4);
  }
  .mobile-menu-toggle span {
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  @media (min-width: 992px) {
    .mobile-menu-toggle { display: none !important; }
  }

  /* Mobile Menu Drawer — size only (full drawer CSS preserved below) */
  .mobile-menu {
    width: min(340px, 88vw);
    background: linear-gradient(160deg, #0a3880, #0D47A1);
  }

  /* Touch-friendly mobile menu items (54px — Apple HIG recommendation) */
  .mobile-accordion-trigger,
  .mobile-menu-link,
  .mobile-accordion-content a {
    min-height: 54px;
    padding: 16px 18px;
    font-size: 15.5px;
  }

  /* Quickbar container */
  #mobile-quickbar {
    background: #0D47A1;
    position: sticky;
    top: 56px;
    z-index: 999;
    display: none;
    border-bottom: 2px solid rgba(255,255,255,.12);
    width: 100%;
    box-sizing: border-box;
  }
  

  .quickbar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 10px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .quickbar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 36px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s;
  }
  .quickbar-btn:hover { opacity: .85; }
  .qb-call { background: #22C55E; }
  .qb-wa   { background: #25D366; }
  .qb-ro   { background: rgba(255,255,255,.15); }
  .qb-ac   { background: rgba(255,255,255,.15); }

  /* On iPhone SE (375px) — hide the two secondary buttons */
  @media (max-width: 399px) {
    .qb-ro, .qb-ac { display: none !important; }
    .qb-call, .qb-wa { flex: 1; font-size: 14px; height: 40px; }
  }

  

/* ── 8. MOBILE MENU DRAWER ────────────────────────────────────────────────── */
  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 99998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .mobile-menu-backdrop.active { display: block; }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 88vw);
    height: 100vh;
    background: linear-gradient(160deg, #0a3880 0%, #0D47A1 60%, #1565C0 100%);
    z-index: 99999;
    transition: right .32s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: -10px 0 50px rgba(0, 0, 0, .5);
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu.active { right: 0; }

  /* Drawer header */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(255,255,255,.12);
    position: sticky;
    top: 0;
    z-index: 1;
  }
  .mobile-menu-logo {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
  }
  .mobile-menu-close {
    width: 38px; height: 38px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-close:hover { background: rgba(255,255,255,.22); }

  /* Drawer inner scroll area */
  .mobile-menu-inner { padding: 8px 0 100px; }

  /* Top CTA inside drawer */
  .mobile-drawer-cta {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .mobile-drawer-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 46px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: opacity .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-drawer-cta a:hover { opacity: .88; }
  .mobile-drawer-cta .d-call { background: #22C55E; }
  .mobile-drawer-cta .d-wa   { background: #25D366; }

  /* Nav links in drawer */
  .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-decoration: none;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-link:hover { background: rgba(255,255,255,.08); color: #fff; }

  /* Accordion sections */
  .mobile-accordion { border-bottom: 1px solid rgba(255,255,255,.07); }
  .mobile-accordion-trigger {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-accordion-trigger:hover { background: rgba(255,255,255,.08); }
  .mobile-accordion-trigger::after { content: '+'; font-size: 20px; color: rgba(147,197,253,.8); }
  .mobile-accordion-trigger.active::after { content: '−'; }
  .mobile-accordion-content {
    display: none;
    padding: 4px 0 8px;
    background: rgba(0,0,0,.12);
  }
  .mobile-accordion-content.active { display: block; }
  .mobile-accordion-content a {
    display: block;
    color: rgba(255,255,255,.88);
    font-size: 14px;
    padding: 10px 28px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: color .1s, background .1s;
  }
  .mobile-accordion-content a:hover { color: #fff; background: rgba(255,255,255,.06); }
  .mobile-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(147,197,253,.7);
    padding: 10px 28px 4px;
    margin: 0;
  }

  /* ── 9. RESPONSIVE BREAKPOINTS ────────────────────────────────────────────── */

  /* Tablet (≥600px): show secondary quickbar buttons */
  @media (min-width: 400px) {
    .qb-ro, .qb-ac { display: flex; }
  }

  /* Mobile (<992px): show hamburger + quickbar, hide desktop elements */
  @media (max-width: 991px) {
    #mobile-quickbar { display: block; }
    .hdr-desk-only   { display: none !important; }
  }

  /* Desktop (≥992px): full navigation, hide mobile elements */
  @media (min-width: 992px) {
    .main-navigation  { display: flex !important; }
    .hdr-desk-only    { display: inline-flex !important; }
    .mobile-menu-toggle { display: none !important; }
    #mobile-quickbar  { display: none !important; }
    .mobile-menu      { display: none !important; }
    .mobile-menu-backdrop { display: none !important; }
    .header-inner { height: 68px; padding: 0 24px; }
  }

  /* Prevent horizontal scroll on mobile */
  html, body { max-width: 100%; overflow-x: hidden; }

  /* Mega menu overlay (desktop) */
  .mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 520px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(13,71,161,.18);
    border: 1px solid #e0eaff;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s, transform .2s;
    transform: translateX(-50%) translateY(8px);
    z-index: 2000;
  }
  .menu-item.has-mega-menu { position: relative; }
  .menu-item.has-mega-menu:hover .mega-menu,
  .menu-item.has-mega-menu:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .mega-col-heading {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .07em; color: #64B5F6; padding: 4px 0 8px;
    border-bottom: 1px solid #e8f0fe; margin-bottom: 4px;
  }
  .mega-col a {
    display: block; color: #334155; font-size: 13px;
    padding: 5px 0; text-decoration: none; border-radius: 4px;
    transition: color .1s;
  }
  .mega-col a:hover { color: #0D47A1; }
  

  /* ============================================================
     MEGA MENU — Desktop hover + Mobile accordion (V16)
     ============================================================ */

  /* Desktop mega menu */
  .has-mega-menu { position: relative; }

  .mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #0f1f3d;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(13,71,161,.18);
    border: 1px solid #e0eaff;
    z-index: 9999;
    min-width: 560px;
    overflow: hidden;
    padding: 20px;
    animation: megaFadeIn .18s ease;
  }
  @keyframes megaFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  @media (min-width: 992px) {
    .has-mega-menu:hover .mega-menu { display: block; }
  }

  .mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .mega-col { padding: 4px 0; }
  .mega-col:first-child { border-right: 1px solid #e0eaff; padding-right: 20px; }
  .mega-col:last-child  { padding-left: 4px; }

  .mega-col-heading {
    padding: 8px 12px 6px;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 800;
    color: #0D47A1;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
    border-radius: 6px;
  }
  .mega-col-heading.problem { background: #fff7ed; color: #c2410c; }
  .mega-col-heading.location { background: #f0fdf4; color: #15803d; }

  .mega-col a {
    display: block;
    padding: 7px 12px;
    font-size: 13.5px;
    color: #334155;
    font-weight: 500;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none;
    transition: background .12s, color .12s, padding-left .12s;
    border-radius: 4px;
  }
  .mega-col a:last-child { border-bottom: none; }
  .mega-col a:hover { background: #eff6ff; color: #0D47A1; padding-left: 18px; }

  /* ── Mobile: mega menu inside accordion drawer ── */
  @media (max-width: 991px) {
    .mega-menu {
      position: static !important;
      display: block !important;   /* shown by parent .mobile-accordion-content.active */
      box-shadow: none !important;
      border: none !important;
      background: transparent !important;
      min-width: 100% !important;
      padding: 0 !important;
      transform: none !important;
      border-radius: 0 !important;
      animation: none !important;
    }
    /* Wrap in single-column on mobile */
    .mega-menu-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
    .mega-col { border-right: none !important; padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,.08); }
    .mega-col:last-child { border-bottom: none; }
    .mega-col-heading { background: rgba(255,255,255,.1) !important; color: #93c5fd !important; border-radius: 0 !important; margin: 0 !important; }
    .mega-col a { color: rgba(255,255,255,.88) !important; padding: 10px 28px !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
    .mega-col a:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; padding-left: 32px !important; }

    /* The accordion content wraps the mega menu — only show when .active */
    .mobile-accordion-content { display: none; }
    .mobile-accordion-content.active { display: block; }
  }

  /* Chevron indicator on desktop nav */
  .chevron { transition: transform .2s; }
  .has-mega-menu:hover .chevron { transform: rotate(180deg); }
