/* ============================================================
   SS India Digital — mobile.css
   Responsive / media-query overrides ONLY
   Mobile-first: this file handles breakpoints DOWN
   ============================================================ */

/* ============================================================
   TABLET — max-width 1024px
   ============================================================ */
@media (max-width: 1024px) {

  /* Typography */
  .hero-title,
  h1.hero-title {
    font-size: 2.75rem;
  }

  /* 3-col → 2-col grids */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .industry-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  /* Footer: 4-col → 2-col */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
  }

  /* Article layout */
  .article-layout {
    grid-template-columns: 1fr 280px;
    gap: var(--sp-8);
  }

  /* Contact layout */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* City metros */
  .city-metros {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Stats bar */
  .stats-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Metric cards */
  .metric-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Case grid */
  .case-grid {
    grid-template-columns: 1fr;
  }

}

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

  /* ---- Header / Nav ---- */
  .site-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  /* ---- Hero ---- */
  .hero {
    min-height: 80vh;
    padding: var(--sp-12) 0;
    align-items: flex-start;
    padding-top: var(--sp-16);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-sub {
    font-size: var(--font-size-lg);
    margin-top: var(--sp-3);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    max-width: 340px;
  }

  .hero-stats {
    gap: var(--sp-5);
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
  }

  /* ---- Stats bar ---- */
  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: var(--sp-5);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    padding-top: var(--sp-5);
  }

  /* ---- Sections ---- */
  .section {
    padding: var(--sp-12) 0;
  }

  .section-sm {
    padding: var(--sp-8) 0;
  }

  /* ---- All 3-col grids → 1-col ---- */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .metric-cards {
    grid-template-columns: 1fr;
  }

  /* ---- Pricing → 1-col ---- */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ---- Form row → 1-col ---- */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* ---- Footer → 1-col ---- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-3);
  }

  .footer-legal {
    justify-content: center;
  }

  /* ---- City grids ---- */
  .city-metros {
    grid-template-columns: repeat(2, 1fr);
  }

  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  /* ---- Industry grid ---- */
  .industry-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  /* ---- Case studies ---- */
  .case-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Article layout → single col ---- */
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    max-height: none;
  }

  .article-title {
    font-size: var(--font-size-3xl);
  }

  /* ---- Section header ---- */
  .section-title {
    font-size: var(--font-size-2xl);
  }

  .cta-banner h2 {
    font-size: var(--font-size-3xl);
  }

  /* ---- CTA actions ---- */
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 340px;
  }

  /* ---- Lead form ---- */
  .lead-form-wrapper {
    padding: var(--sp-6);
  }

  /* ---- Trust bar ---- */
  .trust-bar {
    gap: var(--sp-5);
  }

  /* ---- Contact ---- */
  .contact-layout {
    grid-template-columns: 1fr;
  }

  /* ---- Hero badge ---- */
  .hero-badge {
    font-size: 0.7rem;
  }

  /* ---- Nav mobile enhancements ---- */
  .nav-mobile-links a {
    font-size: var(--font-size-xl);
  }

  /* ---- Header inner ---- */
  .header-inner {
    height: 60px;
  }

  .logo-tagline {
    display: none;
  }

  /* ---- Client logos ---- */
  .client-logos {
    gap: var(--sp-3);
  }

  .client-logo-pill {
    padding: 8px 14px;
    font-size: var(--font-size-xs);
  }

}

/* ============================================================
   SMALL MOBILE — max-width 480px
   ============================================================ */
@media (max-width: 480px) {

  /* Hero */
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-sub {
    font-size: var(--font-size-base);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
  }

  /* Sections */
  .section {
    padding: var(--sp-10) 0;
  }

  .section-sm {
    padding: var(--sp-6) 0;
  }

  /* Section header */
  .section-title {
    font-size: var(--font-size-2xl);
  }

  .section-header {
    margin-bottom: var(--sp-8);
  }

  /* Lead form */
  .lead-form-wrapper {
    padding: var(--sp-5) var(--sp-4);
    border-radius: var(--radius-lg);
  }

  /* Buttons — full width when stacked vertically in hero */
  .hero-actions .btn {
    width: 100%;
    max-width: none;
  }

  /* All stacked CTAs full width */
  .cta-actions .btn {
    width: 100%;
    max-width: none;
  }

  /* Error page */
  .error-page {
    padding: var(--sp-20) 0;
  }

  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: var(--font-size-2xl);
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn {
    width: 100%;
  }

  /* Pricing card full width */
  .pricing-grid {
    max-width: 100%;
  }

  /* CTA banner */
  .cta-banner {
    padding: var(--sp-10) 0;
  }

  .cta-banner h2 {
    font-size: var(--font-size-2xl);
  }

  /* Footer */
  .footer-social {
    flex-wrap: wrap;
  }

  /* Typography downscale */
  h1, .h1 {
    font-size: var(--font-size-3xl);
  }

  h2, .h2 {
    font-size: var(--font-size-2xl);
  }

  h3, .h3 {
    font-size: var(--font-size-xl);
  }

  /* Author bio */
  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar-placeholder {
    margin: 0 auto;
  }

  .author-socials {
    justify-content: center;
  }

  /* Breadcrumb wrapping */
  .breadcrumb {
    flex-wrap: wrap;
    font-size: var(--font-size-xs);
  }

  /* Process steps on mobile */
  .process-step {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .process-step::before {
    display: none;
  }

  /* City card font */
  .city-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: var(--sp-2);
  }

  /* Blog meta */
  .blog-meta {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  /* Share buttons */
  .share-buttons {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  /* Filter tabs scroll */
  .filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-2);
  }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Back to top smaller on mobile */
  .back-to-top {
    bottom: var(--sp-4);
    right: var(--sp-4);
    width: 40px;
    height: 40px;
  }

  /* Container padding */
  .container,
  .container-sm,
  .container-lg {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  /* Inline form on blog sidebar hidden */
  .sidebar-mini-form {
    display: none;
  }

  /* Nav mobile links font size */
  .nav-mobile-links a {
    font-size: var(--font-size-xl);
    padding: var(--sp-3) 0;
  }

}

/* ============================================================
   VERY SMALL — max-width 360px
   ============================================================ */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .logo-name {
    font-size: var(--font-size-base);
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: var(--font-size-base);
  }

  .stats-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header,
  .hamburger,
  .nav-mobile,
  .back-to-top,
  .site-footer,
  .cta-banner,
  .lead-form-wrapper {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================================
   LOGO SWAP — collapsed sidebar shows icon only
   ============================================================ */
body.sidebar-collapsed .brandmark__logo-full { display: none !important; }
body.sidebar-collapsed .brandmark__logo-icon { display: block !important; }

.brandmark__logo-full { transition: opacity 0.2s ease; }
.brandmark__logo-icon { transition: opacity 0.2s ease; }

/* ============================================================
   MOBILE MEGA MENU
   Full-screen drawer on mobile — replaces the desktop megamenu
   flyout with a beautiful bottom-up sheet that shows all nav
   including Cities grouped by tier, Services, Industries, etc.
   ============================================================ */

/* ── Mobile nav trigger (hamburger) ── */
.mobile-nav-trigger {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  height: 60px;
  padding: 0 16px;
  background:
    radial-gradient(circle at 4% 0%, rgba(255,107,43,0.16), transparent 34%),
    linear-gradient(180deg, rgba(6,14,24,0.99), rgba(3,10,18,0.98));
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

.mobile-nav-trigger .mnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.mobile-nav-trigger .mnav-logo .mnav-logo__star {
  width: 36px;
  height: auto;
  flex: 0 0 auto;
}

.mobile-nav-trigger .mnav-logo .mnav-logo__wordmark {
  width: 154px;
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
}

/* Right side: free analysis CTA + hamburger */
.mnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mnav-cta {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 12px 24px rgba(255,107,43,0.28);
}

.mnav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 9px 10px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.mnav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mnav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mnav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Full-screen mobile menu drawer ── */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  z-index: 1250;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,107,43,0.12), transparent 25%),
    radial-gradient(circle at 92% 20%, rgba(33,150,243,0.14), transparent 28%),
    linear-gradient(180deg, #06101d, #030911 70%);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.22,1,.36,1);
}

.mobile-menu-drawer::-webkit-scrollbar { display: none; }

.mobile-menu-drawer.is-open {
  transform: translateX(0);
}

.mobile-menu-drawer__inner {
  padding: 18px 16px 112px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mmd-intro {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.085), rgba(255,255,255,0.025)),
    rgba(12, 25, 42, 0.88);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 42px rgba(0,0,0,0.22);
}

.mmd-intro__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mmd-intro strong {
  display: block;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.28rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mmd-intro p {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mmd-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mmd-quick-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.mmd-quick-grid a::after {
  content: "→";
  color: var(--orange);
}

/* ── Section headers ── */
.mmd-section-label {
  padding: 20px 4px 7px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(33,150,243,0.18);
  margin: 0 0 4px;
}

/* ── Primary nav links ── */
.mmd-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 13px;
  border-radius: 18px;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.018);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mmd-link:active,
.mmd-link.is-active {
  background: rgba(33,150,243,0.16);
  color: #fff;
  border-color: rgba(33,150,243,0.36);
}

.mmd-link:hover,
.mmd-expand-trigger:hover,
.mmd-service-item:hover,
.mmd-city-chip:hover,
.mmd-industry-chip:hover {
  transform: translateY(-1px);
}

.mmd-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mmd-link .mmd-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,107,43,0.15);
  color: var(--orange);
}

/* ── Expandable sections (Services, Cities, Industries) ── */
.mmd-expand-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 13px;
  border-radius: 18px;
  width: 100%;
  background: rgba(255,255,255,0.018);
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mmd-expand-trigger[aria-expanded="true"] {
  background: rgba(255,255,255,0.065);
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
}

.mmd-expand-trigger svg { width:20px; height:20px; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }

.mmd-expand-chevron {
  margin-left: auto;
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.25s ease;
}

.mmd-expand-trigger[aria-expanded="true"] .mmd-expand-chevron {
  transform: rotate(90deg);
}

/* ── Expandable panel ── */
.mmd-panel {
  display: none;
  padding: 8px 0 4px 20px;
  border-left: 1px solid rgba(255,255,255,0.08);
  margin-left: 17px;
}

.mmd-panel.is-open {
  display: block;
}

/* ── Service list inside panel ── */
.mmd-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mmd-service-item:last-child { border-bottom: none; }
.mmd-service-item:active { background: rgba(255,107,43,0.08); color: var(--orange); }

.mmd-service-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── City tier groups ── */
.mmd-tier-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  padding: 12px 10px 6px;
}

.mmd-city-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.mmd-city-chip {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mmd-city-chip:active {
  background: rgba(255,107,43,0.1);
  border-color: rgba(255,107,43,0.3);
}

.mmd-city-chip strong {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

.mmd-city-chip span {
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* ── Industry chips ── */
.mmd-industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mmd-industry-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.mmd-industry-chip:active {
  background: rgba(255,107,43,0.1);
  color: var(--orange);
}

/* ── Bottom sticky CTA ── */
.mmd-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1260;
  padding: 14px 16px;
  background: rgba(6,14,24,0.985);
  border-top: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(20px);
  display: none;
}

.mmd-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 14px 30px rgba(255,107,43,0.34);
}

/* ── DYK pill in mobile drawer ── */
.mmd-dyk {
  margin: 8px 0;
  padding: 13px 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,107,43,0.12), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,107,43,0.23);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mmd-dyk .mmd-dyk-icon { font-size: 1rem; flex-shrink: 0; }
.mmd-dyk p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; margin: 0; }
.mmd-dyk strong { color: var(--orange); }

/* ============================================================
   SHOW/HIDE: mobile trigger visible only on small screens
   ============================================================ */
@media (max-width: 920px) {
  /* Hide desktop sidebar entirely */
  .sidebar { display: none !important; }
  .site-shell { margin-left: 0 !important; }
  .mobile-overlay { display: none !important; }

  /* Show mobile trigger bar */
  .mobile-nav-trigger {
    display: flex;
    height: 66px;
  }

  /* Show drawer */
  .mobile-menu-drawer { display: block; }

  /* Show sticky CTA when drawer open */
  body.mobile-menu-open .mmd-sticky-cta { display: block; }

  /* Push content below trigger bar */
  .site-main { padding-top: 82px !important; }

  /* Prevent scroll when drawer open */
  body.mobile-menu-open { overflow: hidden; }

  /* Megamenu on mobile is handled by drawer — hide desktop version */
  .megamenu,
  .megamenu-backdrop { display: none !important; }
}

/* ============================================================
   SMALL PHONES (≤400px): keep the top bar from crowding.
   Logo (icon + wordmark) + "Free Analysis" CTA + hamburger
   were tight at 390px — tighten spacing and allow the wordmark
   to shrink/ellipsis rather than collide with the CTA.
   ============================================================ */
@media (max-width: 400px) {
  .mobile-nav-trigger {
    padding: 0 12px;
    gap: 8px;
    height: 62px;
  }

  /* Let the logo take the remaining space and truncate gracefully. */
  .mobile-nav-trigger .mnav-logo {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .mobile-nav-trigger .mnav-logo .mnav-logo__star {
    width: 28px;
    flex-shrink: 0;
  }
  .mobile-nav-trigger .mnav-logo .mnav-logo__wordmark {
    width: 116px;
    white-space: nowrap;
    overflow: hidden;
  }

  .site-main { padding-top: 76px !important; }

  /* Actions stay on one line and never shrink below their content. */
  .mnav-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .mnav-cta {
    padding: 7px 11px;
    font-size: 0.72rem;
  }
  .mnav-hamburger {
    padding: 7px 9px;
  }
  .mnav-hamburger span {
    width: 20px;
  }
}
