/* Shared mobile responsive overrides for /pages/*.html static pages.
   Bridge solution until Batch 07 unified-app consolidation lands and these
   pages move to Next.js routes that reuse <MarketingHeader />. */

@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Hide existing desktop nav items + CTA on mobile (the hamburger replaces them) */
  header nav .nav-items,
  header nav .cta-button {
    display: none !important;
  }

  /* Page padding scales down */
  main {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hero typography scales fluidly */
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }
  .hero {
    padding: 3rem 1rem !important;
  }

  /* Multi-column grids collapse to single column. Selectors target the
     class names actually used across the static pages. Override inline
     style attributes too via !important. */
  .cards-grid,
  .tier-comparison,
  .tier-comparison-2col,
  .tier-cards,
  .comparison-cards,
  .pricing-grid,
  .pricing-tiers,
  .two-col {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Fixed-width sections collapse */
  main, section, .container {
    max-width: 100% !important;
  }

  /* Reduce internal card padding so text reaches closer to the viewport edge.
     Desktop padding (2rem) leaves ~294px of text column on a 390px viewport;
     1.25rem brings it back to ~318px without losing the card's visual margin. */
  .card,
  .content-box,
  .tier-card {
    padding: 1.25rem !important;
  }
}

/* Hamburger button — fixed top-right, only visible on mobile */
.pd-mobile-btn {
  display: none;
  position: fixed;
  top: 14px; right: 16px;
  z-index: 1100;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.pd-mobile-btn svg {
  width: 22px; height: 22px;
  stroke: #3D4F7C;
  stroke-width: 2;
  fill: none;
}
@media (max-width: 768px) {
  .pd-mobile-btn { display: flex; }
}

/* Drawer overlay + drawer panel */
.pd-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1090;
}
.pd-mobile-drawer {
  position: fixed !important;
  top: 0 !important; right: 0 !important; left: auto !important; bottom: auto !important;
  width: min(320px, 85vw) !important;
  max-width: none !important;
  height: 100vh !important;
  margin: 0 !important;
  background: white !important;
  z-index: 1095 !important;
  padding: 64px 24px 24px !important;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  overflow-y: auto !important;
  display: block !important;
  font-family: 'DM Sans', sans-serif;
}
.pd-mobile-drawer * { box-sizing: border-box !important; }
.pd-mobile-section-label {
  display: block !important;
  font-size: 11px !important; font-weight: 600 !important;
  text-transform: uppercase !important; letter-spacing: 1px !important;
  color: rgba(0,0,0,0.5) !important;
  margin: 16px 0 4px !important;
  padding: 0 !important;
  background: transparent !important;
}
.pd-mobile-drawer .pd-mobile-link {
  display: block !important;
  width: 100% !important;
  padding: 12px 0 !important;
  font-size: 16px !important; font-weight: 500 !important;
  font-family: 'DM Sans', sans-serif !important;
  color: #2C2C2C !important;
  text-decoration: none !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
.pd-mobile-drawer .pd-mobile-cta {
  display: block !important;
  width: 100% !important;
  margin: 16px 0 0 0 !important;
  padding: 14px 16px !important;
  background: #D4836B !important;
  color: white !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-align: center !important;
  text-decoration: none !important;
}
.pd-mobile-drawer .pd-mobile-cta:hover { background: #c47259 !important; }

/* Hide drawer above mobile breakpoint as belt-and-suspenders */
@media (min-width: 769px) {
  .pd-mobile-btn,
  .pd-mobile-overlay,
  .pd-mobile-drawer { display: none !important; }
}
