/* ═══════════════════════════════════════════════
   Hindustan Signages — mobile.css
   ═══════════════════════════════════════════════ */

/* ── HIDE MOBILE ELEMENTS ON DESKTOP ── */
@media (min-width: 769px) {
  .mob-bottom-bar    { display: none !important; }
  .mob-drawer        { display: none !important; }
  .mob-overlay       { display: none !important; }
  .sol-carousel-wrap { display: none !important; }
  .sol-dots          { display: none !important; }
}

/* ═══════════════════════════════════════════════
   MOBILE — max-width: 768px
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── NAV ── */
  .nav-links { display: none !important; }
  .hamburger { display: none !important; }
  .nav-inner { justify-content: center !important; }

  /* Kill nav stacking context so it doesn't bleed over drawer */
  body.mob-menu-open nav {
    z-index: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Dim overlay behind the drawer */
  .mob-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(13,26,46,0.45);
    z-index: 8400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .mob-overlay.is-open {
    opacity: 1;
    pointer-events: all;
  }

  body    { padding-bottom: 72px; }
  .topbar { display: none !important; }

  /* ════════════════════════════
     BOTTOM BAR
  ════════════════════════════ */
  .mob-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 72px;
    z-index: 9000;
    background: #fff;
    border-top: 2px solid rgba(26,111,212,0.12);
    box-shadow: 0 -4px 24px rgba(13,26,46,0.15);
  }

  .mob-bar-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 700;
    cursor: pointer; border: none;
    padding: 10px 4px;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-bar-call {
    background: #eef6ff; color: #1a5fa8;
    border-right: 1px solid rgba(26,111,212,0.12);
  }
  .mob-bar-call svg   { stroke: #1a5fa8; }
  .mob-bar-call span  { color: #1a5fa8; }

  .mob-bar-wa {
    background: #25d366; color: #fff;
    border-right: 1px solid rgba(255,255,255,0.2);
  }
  .mob-bar-wa svg  { fill: #fff; }
  .mob-bar-wa span { color: #fff; }

  .mob-bar-menu { background: #fff; color: #0d1a2e; }
  .mob-bar-menu .icon-menu  { display: block; }
  .mob-bar-menu .icon-close { display: none; }
  .mob-bar-menu svg  { stroke: #0d1a2e; }
  .mob-bar-menu span { color: #0d1a2e; }

  .mob-bar-menu.is-open { background: #fff3f0; }
  .mob-bar-menu.is-open .icon-menu  { display: none; }
  .mob-bar-menu.is-open .icon-close { display: block; }
  .mob-bar-menu.is-open svg  { stroke: #e53935; }
  .mob-bar-menu.is-open span { color: #e53935; }

  /* ════════════════════════════
     BOTTOM SHEET DRAWER
     Slides up from bottom, fits content — not full screen
  ════════════════════════════ */
  .mob-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 72px;          /* sits flush above bottom bar */
    left: 0; right: 0;
    /* height auto = fits content, capped at 80vh */
    max-height: 80vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 8500;
    transform: translateY(110%);
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(13,26,46,0.18);
  }
  .mob-drawer.is-open {
    transform: translateY(0);
  }
  /* Drag handle pill at top */
  .mob-drawer::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: #d1dae8; border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }

  /* Drawer header */
  .mob-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
  }
  .mob-logo { display: flex; align-items: center; gap: 10px; }
  .mob-logo-svg { display: block; border-radius: 6px; flex-shrink: 0; }
  .mob-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 18px;
    letter-spacing: 1px; color: #0d1a2e; white-space: nowrap;
  }
  .mob-tagline {
    font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
    color: #1a6fd4; font-family: 'Inter', sans-serif; margin-top: 2px;
  }
  .mob-close { display: none; }

  /* Drawer nav */
  .mob-nav {
    flex: 1; overflow-y: auto;
    -webkit-overflow-scrolling: touch; padding: 4px 0;
  }
  .mob-nav-list { list-style: none; margin: 0; padding: 0; }
  .mob-nav-list > li { border-bottom: 1px solid #f0f0f0; }

  .mob-nav-list > li > a {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 17px; font-weight: 600;
    color: #0d1a2e; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-nav-list > li > a::after {
    content: '›'; font-size: 22px; color: #aab4c4;
    font-weight: 400; line-height: 1;
  }
  .mob-nav-list > li > a:active { background: #f8f9fb; }

  /* Accordion toggle */
  .mob-acc-toggle {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 17px; font-weight: 600; color: #0d1a2e;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-acc-toggle:active { background: #f8f9fb; }
  .mob-acc-toggle svg { transition: transform 0.3s; flex-shrink: 0; stroke: #aab4c4; }
  .mob-acc-toggle.is-open { color: #1a6fd4; }
  .mob-acc-toggle.is-open svg { transform: rotate(180deg); stroke: #1a6fd4; }

  /* Accordion sub-menu */
  .mob-acc-menu {
    list-style: none; padding: 0; margin: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fbff; border-top: 1px solid #f0f0f0;
  }
  .mob-acc-menu.is-open { max-height: 700px; }
  .mob-acc-menu li { border-bottom: 1px solid rgba(26,111,212,0.06); }
  .mob-acc-menu li:last-child { border-bottom: none; }
  .mob-acc-menu li a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 24px 14px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 15px; font-weight: 500;
    color: #44557a; text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-acc-menu li a:active { color: #1a6fd4; background: #eef3fc; }

  .mob-drop-icon {
    font-size: 16px; width: 30px; height: 30px;
    background: #eef3fc; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }

  /* Drawer footer */
  .mob-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(26,111,212,0.1);
    background: #fff; flex-shrink: 0;
  }
  .mob-cta {
    display: block; width: 100%; padding: 14px;
    background: linear-gradient(135deg, #1a6fd4, #0d47a1);
    color: #fff; text-align: center; border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .mob-cta:active { opacity: 0.88; }

  /* ════════════════════════════
     SOLUTIONS CAROUSEL
     FIX: cards use min-width:100% not width from JS
     FIX: wrap uses overflow:visible so arrows aren't clipped
  ════════════════════════════ */
  .sol-desktop-grid  { display: none !important; }

  .sol-carousel-wrap {
    display: flex;
    position: relative;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
  }

  .sol-carousel-track {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    /* NO border-radius on track — causes clipping of overflow */
  }
  .sol-carousel-track::-webkit-scrollbar { display: none; }

  /* FIX: min-width + width both set so card never collapses */
  .sol-carousel-track .sol-card {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    width: 100% !important;
    scroll-snap-align: start;
    border-radius: 12px;
    margin: 0 !important;
    box-sizing: border-box;
  }

  /* Arrow buttons */
  .sol-arrow {
    flex-shrink: 0; width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(26,111,212,0.3);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #1a6fd4;
    box-shadow: 0 2px 8px rgba(26,111,212,0.12);
    -webkit-tap-highlight-color: transparent;
    padding: 0;
  }
  .sol-arrow:active  { background: #eef6ff; }
  .sol-arrow:disabled { opacity: 0.25; pointer-events: none; }

  /* Dots */
  .sol-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .sol-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(26,111,212,0.2); cursor: pointer;
    transition: all 0.3s;
  }
  .sol-dot.active { background: #1a6fd4; width: 20px; border-radius: 4px; }

  /* ════════════════════════════
     PORTFOLIO FILTER TABS — SCROLL
  ════════════════════════════ */
  .portfolio-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    margin: 20px -20px 28px !important;
    padding: 4px 20px 12px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    scroll-snap-type: x mandatory !important;
  }
  .portfolio-filters::-webkit-scrollbar { display: none; }

  .filter-btn {
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    white-space: nowrap !important;
    padding: 9px 18px !important;
    font-size: 11px !important;
    letter-spacing: 1.2px !important;
    border-radius: 50px !important;
  }

  /* ════════════════════════════
     MOBILE HERO
  ════════════════════════════ */
  .hero { height: auto !important; min-height: auto !important; max-height: none !important; }
  .hero-inner { grid-template-columns: 1fr !important; padding: 32px 20px 24px !important; gap: 0 !important; }
  .hero-pill  { font-size: 9px !important; letter-spacing: 2px !important; padding: 5px 14px !important; margin-bottom: 14px !important; }
  .hero h1    { font-size: clamp(40px,12vw,56px) !important; line-height: 1.0 !important; margin-bottom: 14px !important; }
  .hero-sub   { font-size: 14px !important; margin-bottom: 22px !important; }
  .hero-actions { gap: 10px !important; margin-bottom: 24px !important; }
  .btn-primary, .btn-ghost { padding: 12px 22px !important; font-size: 13px !important; }
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(4,1fr) !important;
    gap: 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
  }
  .hero-stats > div { text-align: center; padding: 8px 4px; border-right: 1px solid rgba(255,255,255,0.1); }
  .hero-stats > div:last-child { border-right: none; }
  .stat-num   { font-size: 26px !important; }
  .stat-label { font-size: 8px !important; letter-spacing: 1px !important; }
  .hero-form-card { display: none !important; }

  /* ════════════════════════════
     MISC LAYOUT
  ════════════════════════════ */
  .about-grid, .contact-grid { grid-template-columns: 1fr !important; gap: 40px; }
  .about-badge { right: 0 !important; bottom: -16px !important; }
  .portfolio-grid { grid-template-columns: 1fr !important; }
  .why-grid       { grid-template-columns: 1fr 1fr !important; }
  .footer-grid    { grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; }
  .form-row       { grid-template-columns: 1fr !important; }
  section         { padding: 60px 0; }
  .container      { padding: 0 20px; }

} /* end @media 768px */
