/* ═══════════════════════════════════════════════════════════════════
   ATOMINC — MOBILE MASTER CSS
   Cross-page, additive-only mobile overrides
   Breakpoints: 1024px → 768px → 480px → 360px
   Load order: last stylesheet before </body> on every page
   ═══════════════════════════════════════════════════════════════════ */

/* ── PREVENT HORIZONTAL OVERFLOW (global safety) ── */
/* Using 'clip' instead of 'hidden' — clip prevents horizontal scroll
   identically but does NOT create a new scroll context, so
   position: sticky continues to work throughout the page. */
html, body {
  overflow-x: clip;
  max-width: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }


/* ═══════════════════════════════════════════════════
   1. NAVIGATION — shared .site-nav / nav
   ═══════════════════════════════════════════════════ */

/* Desktop nav hides hamburger */
.nav-hamburger { display: none; }

@media (max-width: 900px) {
  .site-nav,
  nav.site-nav { padding: 0 20px; }
  .nav-menu     { display: none !important; }
  .nav-right    { display: none !important; }
  .nav-hamburger { display: flex !important; }
}

@media (max-width: 480px) {
  .site-nav,
  nav.site-nav { padding: 0 16px; height: 60px; }
  .nav-logo    { font-size: 1.2rem; }
}

/* Mobile nav overlay — ensure it's always full-viewport */
#mobile-nav {
  -webkit-overflow-scrolling: touch;
}


/* ═══════════════════════════════════════════════════
   2. CONTAINERS & SECTION PADDING
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .container,
  .sf-container  { padding: 0 32px; max-width: 100%; }
  .sec           { padding: 80px 0; }
  .page-hero     { padding: 100px 0 60px; }
}

@media (max-width: 768px) {
  .container,
  .sf-container  { padding: 0 20px; }
  .sec           { padding: 64px 0; }
  .page-hero     { padding: 80px 0 48px; }
}

@media (max-width: 480px) {
  .container,
  .sf-container  { padding: 0 16px; }
  .sec           { padding: 48px 0; }
  .page-hero     { padding: 64px 0 40px; }
}

@media (max-width: 360px) {
  .container,
  .sf-container  { padding: 0 12px; }
}


/* ═══════════════════════════════════════════════════
   3. TYPOGRAPHY SCALING
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .s-h2,
  h2.section-heading,
  h2.section-h2 {
    font-size: clamp(1.75rem, 5.5vw, 2.8rem) !important;
    max-width: 100% !important;
  }
  .s-h3          { font-size: clamp(1.1rem, 3.5vw, 1.5rem); }
  .s-body        { font-size: 0.95rem !important; max-width: 100% !important; line-height: 1.7; }
  .s-eyebrow     { font-size: 0.72rem; }
  .page-hero h1  { font-size: clamp(2rem, 7vw, 3.4rem); }
  .page-hero p   { font-size: 1rem; }
  .eyebrow       { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .s-h2,
  h2.section-heading,
  h2.section-h2  {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    letter-spacing: -0.025em;
  }
  .s-h3          { font-size: clamp(1.05rem, 4vw, 1.3rem); }
  .s-body        { font-size: 0.9rem !important; }
  .page-hero h1  { font-size: clamp(1.8rem, 8vw, 2.6rem) !important; }
  .page-hero-badge { font-size: 0.68rem; padding: 5px 12px; }
  .hero-h1       { font-size: clamp(2rem, 8vw, 3.2rem) !important; }
}

@media (max-width: 360px) {
  .s-h2,
  h2.section-heading { font-size: 1.4rem !important; }
  .page-hero h1  { font-size: 1.65rem !important; }
}


/* ═══════════════════════════════════════════════════
   4. HERO BUTTON STACKING
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .page-hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-hero-btns   { align-items: stretch; }
  .cta-btns         { flex-direction: column; align-items: center; }
  .s-btn-green,
  .s-btn-outline {
    width: 100% !important;
    max-width: 320px;
    justify-content: center !important;
    padding: 13px 24px !important;
    font-size: 0.9rem !important;
    min-height: 48px;
  }
  .btn-lg-pink,
  .btn-lg-ghost {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════
   5. GRID SYSTEMS — universal collapse
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .cards-grid.g4   { grid-template-columns: repeat(2, 1fr) !important; }
  .int-grid        { grid-template-columns: repeat(3, 1fr); }
  .split           { grid-template-columns: 1fr; gap: 48px; }
  .split.rev       { direction: ltr; }
  .split.rev > *   { direction: ltr; }
}

@media (max-width: 768px) {
  .cards-grid,
  .cards-grid.g4,
  .cards-grid.g2   { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .blog-grid       { grid-template-columns: 1fr; }
  .int-grid        { grid-template-columns: repeat(3, 1fr); }

  /* inline repeat(4,1fr) grids → 2-col */
  div[style*="repeat(4,1fr)"],
  div[style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .cards-grid,
  .cards-grid.g4,
  .cards-grid.g2   { grid-template-columns: 1fr !important; gap: 14px !important; }
  .int-grid        { grid-template-columns: repeat(2, 1fr); }

  /* inline grids → 1-col */
  div[style*="repeat(4,1fr)"],
  div[style*="repeat(4, 1fr)"],
  div[style*="repeat(3,1fr)"],
  div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .sec-center { margin-bottom: 36px; }
}


/* ═══════════════════════════════════════════════════
   6. CARDS & UI SHELLS
   ═══════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .card          { padding: 20px 18px; }
  .ui-shell      { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}


/* ═══════════════════════════════════════════════════
   7. STATS STRIPS
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .stats-inner   { grid-template-columns: 1fr 1fr !important; }
  .stat-item     {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    padding: 20px !important;
  }
  .stat-item:last-child { border-bottom: none !important; }
}

@media (max-width: 480px) {
  .stats-inner   { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .sf-top,
  .s-footer-top  { grid-template-columns: 1fr !important; gap: 40px !important; }
  .sf-cols,
  .s-footer-cols { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
  .sf-cols,
  .s-footer-cols { grid-template-columns: repeat(2, 1fr) !important; }
  .sf-top,
  .s-footer-top  { padding-bottom: 40px; }
}

@media (max-width: 480px) {
  .site-footer   { padding-top: 48px; }
  .sf-cols,
  .s-footer-cols { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .sf-bottom,
  .s-footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
    padding: 16px 0 !important;
  }
}

@media (max-width: 360px) {
  .sf-cols,
  .s-footer-cols { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════
   10. ABOUT PAGE SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Team grid: 3-col → 2-col */
  .team-grid   { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
  /* Timeline: full-width */
  .timeline    { gap: 32px; }
  .tl-item     { grid-template-columns: 1fr !important; }
  .tl-year     { margin-bottom: 8px; }
  /* Values / pillars */
  .values-grid,
  .pillars-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}

@media (max-width: 480px) {
  .team-grid   { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .values-grid,
  .pillars-grid { grid-template-columns: 1fr !important; }
  /* About page hero */
  .about-hero h1,
  .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.8rem) !important; }
}


/* ═══════════════════════════════════════════════════
   11. BOOKING PAGE SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .booking-inner,
  .booking-grid  { grid-template-columns: 1fr !important; gap: 32px !important; }
  .booking-form  { padding: 24px 20px !important; }
  .form-row      { grid-template-columns: 1fr !important; gap: 16px !important; }
}

@media (max-width: 480px) {
  .booking-form  { padding: 20px 16px !important; }
  .time-slots    { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .time-slot     { padding: 8px 6px !important; font-size: 0.8rem !important; }
  .flatpickr-calendar { width: 100% !important; font-size: 0.85rem; }
}


/* ═══════════════════════════════════════════════════
   12. ANALYTICS DASHBOARD SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .ad-hero        { padding-top: 80px !important; }
  .ad-section     { padding: 64px 0 !important; }
  .ad-hero-inner,
  .ad-inner,
  .two-dash-grid  { grid-template-columns: 1fr !important; gap: 32px !important; }
  .ad-inner.rev   { direction: ltr; }
  .ad-tiles       { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .ad-hero-btns   { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .ad-hero        { padding-top: 64px !important; }
  .ad-section     { padding: 48px 0 !important; }
  .ad-tiles       { grid-template-columns: 1fr !important; }

  /* Dashboard tables — horizontal scroll */
  .ad-prod-bar    { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ad-prod-head,
  .ad-prod-row,
  .pt-head, .pt-row,
  .trends-head, .trends-row,
  .exp-head, .exp-row,
  .inv-head, .inv-row,
  .ppc-head, .ppc-row,
  .alert-head, .alert-row { min-width: 480px; }

  .ui-content     { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ad-dash-wrapper { font-size: 0.82rem; }
}


/* ═══════════════════════════════════════════════════
   13. GLOBAL DASHBOARD SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .gd-hero        { padding: 80px 0 48px !important; }
  .gd-section     { padding: 64px 0 !important; }
  .gd-hero-inner,
  .gd-inner       { grid-template-columns: 1fr !important; gap: 32px !important; }
  .gdc-body       { grid-template-columns: 1fr 1fr !important; padding: 16px !important; }
  .gdc-chart      { display: none !important; }
  .feat-grid      { grid-template-columns: 1fr 1fr !important; }

  /* Dashboard table overflow */
  .ui-content     { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  .ord-head, .ord-row,
  .ship-item,
  .inv-bar,
  .mkt-item,
  .comp-row       { min-width: 540px !important; }
}

@media (max-width: 480px) {
  .gd-hero        { padding: 64px 0 32px !important; }
  .gd-section     { padding: 48px 0 !important; }
  .gdc-body       { grid-template-columns: 1fr !important; }
  .feat-grid      { grid-template-columns: 1fr !important; }
  .stat-num       { font-size: 2rem !important; }
}


/* ═══════════════════════════════════════════════════
   14. PLATFORM PAGE SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Platform tab nav — horizontal scroll */
  .platform-tabs,
  .unified-tabs   {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 4px;
    flex-wrap: nowrap;
  }
  .platform-tabs::-webkit-scrollbar,
  .unified-tabs::-webkit-scrollbar { display: none; }

  .utab           { font-size: 0.82rem; padding: 10px 14px; white-space: nowrap; }
}

@media (max-width: 480px) {
  /* Platform feature content panels */
  .feat-panel,
  .panel-inner    { padding: 20px 16px !important; }
}


/* ═══════════════════════════════════════════════════
   15. SOLUTIONS-BRANDS SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .brand-features,
  .pillars-grid,
  .steps-grid     { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
}

@media (max-width: 480px) {
  .brand-features,
  .pillars-grid,
  .steps-grid     { grid-template-columns: 1fr !important; }
  .pricing-strip  { padding: 56px 0 !important; }
  .pricing-strip h2 { font-size: clamp(1.8rem, 7vw, 2.6rem) !important; }
}


/* ═══════════════════════════════════════════════════
   16. PARTNERS PAGE SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Partners page has a simple 3-btn nav: hide pill nav on mobile */
  .nav-pill       { font-size: 0.82rem; padding: 9px 18px; }
  .nav-back       { display: none; }
}

@media (max-width: 480px) {
  .nav-pill       { display: none !important; }
  /* Partner hero */
  .hero-content   { padding: 0 16px; }
  /* Stats bar */
  .stats-inner    { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .stat-divider   { display: none !important; }
  /* Personas grid */
  .personas-grid  { grid-template-columns: 1fr !important; }
  /* Commission tiers */
  .tiers-grid     { grid-template-columns: 1fr !important; }
  /* Application form */
  .form-row       { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════
   17. PLATFORM EXPANSION PAGE
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .expansion-grid  { grid-template-columns: 1fr !important; gap: 32px !important; }
  .market-cards    { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .market-cards    { grid-template-columns: 1fr !important; }
  .expansion-steps { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════
   18. CONTACT PAGE SPECIFIC
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .contact-grid   { grid-template-columns: 1fr !important; gap: 32px !important; }
  .contact-form   { padding: 24px 20px !important; }
}

@media (max-width: 480px) {
  .contact-form   { padding: 20px 16px !important; }
  .contact-info-item { flex-direction: column; gap: 8px; }
}


/* ═══════════════════════════════════════════════════
   19. LEGAL PAGES (Privacy, Terms, Cookie)
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .legal-content,
  .policy-content { padding: 0 !important; }
  .legal-content h2 { font-size: clamp(1.3rem, 4vw, 1.7rem) !important; }
}


/* ═══════════════════════════════════════════════════
   20. INDEX PAGE SPECIFIC — hero & marquee
   ═══════════════════════════════════════════════════ */

/* Exec scroll section: release sticky + collapse height on mobile */
@media (max-width: 900px) {
  #exec-swap-section  { height: auto !important; }
  .exec-sticky        {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
}

@media (max-width: 768px) {
  .hero-giant     { padding-top: 68px; min-height: auto; padding-bottom: 28px; }
  .hero-content   { padding: 0 20px; }
  .giant-heading  { font-size: clamp(2.8rem, 12vw, 5.5rem); }
  .giant-heading-sub { font-size: clamp(1.4rem, 5.5vw, 2.6rem); margin: 6px 0 22px; }
  .hero-support   { font-size: 0.92rem; margin-bottom: 18px; padding: 0 4px; }
  .btn-neon-pink  { font-size: 1rem !important; padding: 16px 32px !important; width: 100%; max-width: 340px; }
  .hero-page-switch { position: relative; top: 0; left: 0; align-self: center; margin-bottom: 20px; }

  /* Marquee */
  .marquee-inner  { gap: 40px; padding-left: 40px; }
  .marquee-inner span { font-size: 1.3rem; }
  .marquee-title  { font-size: 0.92rem; padding: 0 20px; }
  .marquee-section { padding-bottom: 24px; }

  /* Section failure / floating panels */
  .panels-wrap    {
    position: relative !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
  }
  .sf-panel       {
    position: relative !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    width: 100% !important;
    animation: none !important;
    transform: none !important;
  }

  /* Logo grids */
  .s-logo-grid    { grid-template-columns: repeat(4, 1fr) !important; }
  .s-logo-grid-7  { grid-template-columns: repeat(4, 1fr) !important; }

  /* Unified ops tabs */
  .unified-tabs   {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .unified-tabs::-webkit-scrollbar { display: none; }
  .utab           { white-space: nowrap; font-size: 0.82rem; padding: 10px 14px; }
}

@media (max-width: 480px) {
  .hero-giant     { padding-top: 64px; }
  .giant-heading  { font-size: clamp(2.4rem, 13vw, 4rem) !important; }
  .giant-heading-sub { font-size: clamp(1.2rem, 5vw, 2rem) !important; }
  .btn-neon-pink  { padding: 14px 24px !important; font-size: 0.92rem !important; }

  /* Reduce large inline paragraph on hero */
  p[style*="font-size:2rem"],
  p[style*="font-size: 2rem"] { font-size: 1.1rem !important; }

  /* Exec scroll section — stack layout + card sizing */
  .exec-inner       { grid-template-columns: 1fr !important; gap: 28px !important; }
  .exec-card        { padding: 20px !important; }
  .exec-cards-stage { height: 260px !important; }

  /* Logo grids → 2-col */
  .s-logo-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .s-logo-grid-7  { grid-template-columns: repeat(2, 1fr) !important; }

  /* Marquee — contained */
  .marquee-section { width: 100vw !important; overflow: hidden !important; }
  .marquee-inner span { font-size: 1.15rem; }

  /* Hero inner gap */
  .hero-inner     { gap: 24px !important; }

  /* Footer grid → 1-col at 480 */
  .footer-grid    { grid-template-columns: 1fr !important; }
  .footer-bottom  { flex-direction: column; gap: 12px; }

  /* Index s-footer cols → 2-col */
  .s-footer-cols  { grid-template-columns: 1fr 1fr !important; }
  .s-footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center !important;
  }

  /* Metrics grid */
  .s-metrics-grid { grid-template-columns: 1fr !important; }
  .s-metric-block { border-right: none; border-bottom: 1px solid var(--border); }
  .s-metric-block:last-child { border-bottom: none; }
  .s-met-num      { font-size: 2.6rem !important; }

  /* Platform demo grid */
  .s-pd-grid      { grid-template-columns: 1fr !important; }

  /* Modules grid */
  .s-modules-grid { grid-template-columns: 1fr 1fr !important; }

  /* Resources grid */
  .s-resources-grid { grid-template-columns: 1fr 1fr !important; }

  /* Demo inner */
  .s-demo-inner   { grid-template-columns: 1fr !important; }

  /* Feature showcase inner */
  .s-feature-inner { grid-template-columns: 1fr !important; }
}

@media (max-width: 360px) {
  .giant-heading  { font-size: 2.2rem !important; }
  .s-logo-grid,
  .s-logo-grid-7  { grid-template-columns: repeat(2, 1fr) !important; }
}


/* ═══════════════════════════════════════════════════
   21. SECTION FAILURE (index) — extra mobile polish
   ═══════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .sf-eyebrow,
  .section-subtext { padding: 0 !important; }
  .section-heading { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; }
}


/* ═══════════════════════════════════════════════════
   22. ATOMINC-ONBOARDING — mobile layout
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Onboarding main wrapper */
  div[style*="grid-template-columns:1fr 340px"],
  div[style*="grid-template-columns: 1fr 340px"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Step connector line stacking */
  div[style*="grid-template-columns:1fr 1fr;gap:16px"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Onboarding step indicators */
  div[style*="grid-template-columns:1fr 1fr;gap:16px"] {
    grid-template-columns: 1fr !important;
  }
  /* Warning / alert row */
  div[style*="display:grid;grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Step nav connector: hide horizontal line */
  div[style*="height:2px;background:#e5e7eb;flex:1"] {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════
   23. OVERFLOW SAFETY — table & dashboard panels
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  table           { min-width: 0; }
  .table-wrap,
  .overflow-wrap  { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Any wide fixed-column grids inside cards */
  .gdc-header-row,
  .gdc-data-row   { min-width: 400px; }
}

@media (max-width: 480px) {
  /* Dashboard metric values — scale down */
  .gdc-m-val,
  .ad-tile-sales-val { font-size: 1.3rem !important; }
}


/* ═══════════════════════════════════════════════════
   24. SECTION-SPECIFIC PADDING NORMALIZATION
   All section types that appear across multiple pages
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .section-white, .section-light, .section-cream,
  .section-navy, .section-teal,
  .sec.white, .sec.light, .sec.dark, .sec.teal,
  .sec-white, .sec-light, .sec-navy, .sec-teal,
  .unified-ops, .s-control, .s-feature-showcase,
  .s-modules, .s-platform-demo, .s-brands,
  .s-resources, .s-demo, .s-metrics, .s-integrations,
  .ad-section, .gd-section,
  .pricing-strip  { padding-top: 80px !important; padding-bottom: 80px !important; }
  .cta-bottom     { padding: 96px 0 !important; }
}

@media (max-width: 768px) {
  .section-white, .section-light, .section-cream,
  .section-navy, .section-teal,
  .sec.white, .sec.light, .sec.dark, .sec.teal,
  .sec-white, .sec-light, .sec-navy, .sec-teal,
  .unified-ops, .s-control, .s-feature-showcase,
  .s-modules, .s-platform-demo, .s-brands,
  .s-resources, .s-demo, .s-metrics, .s-integrations,
  .pricing-strip  { padding-top: 64px !important; padding-bottom: 64px !important; }
  .cta-bottom,
  .cta-section    { padding: 72px 0 !important; }
}

@media (max-width: 480px) {
  .section-white, .section-light, .section-cream,
  .section-navy, .section-teal,
  .sec.white, .sec.light, .sec.dark, .sec.teal,
  .sec-white, .sec-light, .sec-navy, .sec-teal,
  .unified-ops, .s-control, .s-feature-showcase,
  .s-modules, .s-platform-demo, .s-brands,
  .s-resources, .s-demo, .s-metrics, .s-integrations,
  .pricing-strip  { padding-top: 48px !important; padding-bottom: 48px !important; }
  .cta-bottom,
  .cta-section    { padding: 56px 0 !important; }
}


/* ═══════════════════════════════════════════════════
   25. METRICS SECTION (shared)
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .metrics-grid,
  .metrics-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
    padding: 0 20px !important;
  }
}

@media (max-width: 480px) {
  .metrics-grid,
  .metrics-grid.cols-5 {
    grid-template-columns: 1fr !important;
    padding: 0 16px !important;
    gap: 0 !important;
  }
  .metric-item    { padding: 24px 0 !important; border-bottom: 1px solid var(--border) !important; }
  .metric-item:last-child { border-bottom: none !important; }
  .metric-number  { font-size: clamp(2.2rem, 10vw, 3.5rem) !important; }
}


/* ═══════════════════════════════════════════════════
   26. FINAL POLISH — Small edge cases caught in review
   ═══════════════════════════════════════════════════ */

/* Index hero: large inline font-size paragraph */
@media (max-width: 768px) {
  .hero-content p[style],
  p[style*="font-size:2rem"],
  p[style*="font-size: 2rem"] {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
  }
  p[style*="font-size:2rem"] br,
  p[style*="font-size: 2rem"] br { content: ' '; display: inline; }
}

/* Nav dropdown: prevent overflow on small screens */
@media (max-width: 1024px) {
  .nav-dropdown.wide   { min-width: 300px !important; grid-template-columns: 1fr !important; }
  .nav-dropdown.wide2  { min-width: 240px !important; grid-template-columns: 1fr !important; }
}

/* About page: section headings */
@media (max-width: 768px) {
  .h2 { font-size: clamp(1.75rem, 5.5vw, 2.8rem) !important; }
  .body-lg { font-size: 1rem !important; max-width: 100% !important; }
}

/* Booking: calendar  */
@media (max-width: 480px) {
  .flatpickr-calendar { font-size: 0.82rem !important; }
  .booking-sidebar { display: none; }
}

/* Platform-expansion: feature rows */
@media (max-width: 768px) {
  .pe-feature-row { grid-template-columns: 1fr !important; gap: 24px !important; }
  .pe-feature-row.rev { direction: ltr !important; }
}

/* Ensure no element breaks the viewport on any page */
@media (max-width: 480px) {
  section, .sec, .site-footer,
  .page-hero, .pricing-hero,
  .hero-giant, .hero, .cta-bottom { max-width: 100vw; overflow-x: hidden; }
}

/* Touch-friendly min heights for all interactive elements */
@media (max-width: 768px) {
  .nav-trigger,
  .btn-ghost-nav,
  .btn-pill-nav,
  .s-btn-green,
  .s-btn-outline,
  .plan-btn,
  .btn-lg-pink,
  .btn-lg-ghost,
  .mkt-btn,
  .toggle-btn,
  .faq-q,
  .utab { min-height: 44px; }
}
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #1a0f3c;      
  z-index: 490;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity .35s cubic-bezier(.4, 0, .2, 1);  
}

.mobile-nav-overlay.is-open {
  opacity: 1;
}

.mobile-nav-close {
  position: absolute;       
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.75rem;       
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;      
  justify-content: center;  
  border-radius: 12px;      
  transition: background .2s, color .2s;
  z-index: 2;
}

.mobile-nav-close:hover,    
.mobile-nav-close:active {  
  background: rgba(255,255,255,.08);
  color: #fff;
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;   
  gap: 4px;
  padding: 80px 20px 40px;  
  max-width: 480px;
  margin: 0 auto;
}

/* -- Accordion Trigger -- */
.mob-accordion-trigger {    
  width: 100%;
  display: flex;
  align-items: center;      
  justify-content: space-between;
  padding: 16px 16px;       
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);       
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;       
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  border-radius: 10px 10px 0 0;
  -webkit-tap-highlight-color: transparent;
}

.mob-accordion-trigger:hover,
.mob-accordion-trigger:active {
  background: rgba(255,255,255,.04);
}

.mob-accordion-trigger[aria-expanded="true"] {
  color: #e63975;
  border-bottom-color: rgba(230,57,117,.2);
}

/* -- Chevron rotation -- */
.mob-chev {
  color: rgba(255,255,255,.45);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), color .3s;
  flex-shrink: 0;
}

.mob-accordion-trigger[aria-expanded="true"] .mob-chev {
  transform: rotate(180deg);
  color: #e63975;
}

/* -- Accordion Panel -- */
.mob-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
  padding: 0 4px;
}

/* -- Mobile Nav Card Items � reuse desktop ndp-icon, ndp-name, ndp-desc -- */
.mob-ndp-item {
  display: flex;
  align-items: flex-start;  
  gap: 12px;
  padding: 12px 14px;
  margin: 4px 0;
  border-radius: 12px;      
  text-decoration: none;    
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .2s, border-color .2s, transform .15s;
}

.mob-ndp-item:active {      
  transform: scale(.98);    
}

.mob-ndp-item:hover {       
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}

/* Override ndp-icon for dark-on-dark context */        
.mob-ndp-item .ndp-icon {   
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;      
  display: flex;
  align-items: center;      
  justify-content: center;  
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}

/* Override text colors for dark background */
.mob-ndp-item .ndp-name {   
  color: #fff;
  font-size: .88rem;        
  font-weight: 600;
  margin-bottom: 2px;       
}

.mob-ndp-item .ndp-desc {   
  color: rgba(255,255,255,.5);
  font-size: .76rem;        
  line-height: 1.35;        
}

/* -- Section Label -- */
.mob-ndp-label {
  font-size: .62rem;        
  font-weight: 800;
  letter-spacing: .1em;     
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 10px 14px 4px;   
  display: block;
}

/* -- CTA Buttons -- */
.mob-nav-cta {
  display: flex;
  flex-direction: column;   
  gap: 10px;
  margin-top: 28px;
  padding: 0 4px;
}

.mob-btn-ghost {
  display: block;
  text-align: center;       
  text-decoration: none;    
  color: #fff;
  font-size: .92rem;        
  font-weight: 500;
  padding: 14px 24px;       
  border-radius: 50px;      
  border: 1.5px solid rgba(255,255,255,.18);
  transition: all .2s;      
}

.mob-btn-ghost:hover,       
.mob-btn-ghost:active {     
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
}

.mob-btn-primary {
  display: block;
  text-align: center;       
  text-decoration: none;    
  color: #fff;
  font-size: .95rem;        
  font-weight: 700;
  padding: 16px 28px;       
  border-radius: 50px;      
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 4px 20px rgba(22,163,74,.3);
  transition: all .25s;     
}

.mob-btn-primary:hover,     
.mob-btn-primary:active {   
  box-shadow: 0 6px 28px rgba(22,163,74,.45);
  transform: translateY(-1px);
}

/* -- Hide mobile nav on desktop -- */
@media (min-width: 901px) {
  .mobile-nav-overlay {     
    display: none !important;
  }
}
