/* ============================================================
   Now & Zen Wellness — Mobile & Responsive Overrides v2
   Breakpoints:
     Desktop:  >= 1200px  (baseline)
     Tablet:   768–1199px
     Mobile:   < 768px
     Xs:       < 400px
   ============================================================ */

/* ── Global safety ────────────────────────────────────────── */
html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; height: auto; }
body, p, h1, h2, h3, h4, h5, h6, li, a, span, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================================
   TABLET  768px – 1199px
   ============================================================ */
@media (min-width: 768px) and (max-width: 1199px) {

  html { font-size: 15.5px; }

  :root {
    --info-strip-h: 36px;
    --nav-bar-h: 72px;
    --header-total: 108px;
  }

  .container,
  .container-wide,
  .container-narrow { padding-left: 28px; padding-right: 28px; }

  /* Header info: wrap neatly, no overflow */
  .header-info-inner {
    gap: 10px 18px;
    padding: 8px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hi-item { font-size: 0.78rem; }

  /* Collapse two-col content to single */
  .hero-inner,
  .about-grid,
  .page-hero-inner,
  .bio-grid,
  .contact-grid,
  .service-inner,
  .about-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .service-inner.reverse { direction: ltr; }

  .services-grid,
  .specs-grid,
  .testimonial-grid,
  .rates-grid,
  .values-grid,
  .includes-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  .specs-grid { grid-template-columns: repeat(3, 1fr) !important; }

  .blog-layout { grid-template-columns: 1fr !important; gap: 50px !important; }
  .masonry { columns: 2 !important; }
  .blog-sidebar { position: static !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }

  h1 { font-size: clamp(2.2rem, 5vw, 3.4rem) !important; }
  h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem) !important; }

  .hero-visual { max-width: 380px; margin: 0 auto; }
  .svc-visual  { max-width: 480px; margin: 0 auto; }
  .about-portrait { max-width: 480px; margin: 0 auto; }
  .bio-portrait { max-width: 360px; margin: 0 auto 24px; }
  .bio-side { position: static; }

  .field-row { grid-template-columns: 1fr !important; }

  .insurance-list ul { grid-template-columns: repeat(2, 1fr) !important; }
}

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

  html { font-size: 15px; }

  :root {
    --info-strip-h: 0px;    /* info strip hidden on scroll; accounted below */
    --nav-bar-h: 64px;
    --header-total: 64px;   /* mobile: just nav bar when scrolled; use generous offset */
  }

  body { font-size: 16px !important; line-height: 1.65 !important; }
  body { padding-bottom: 80px; } /* prevent fixed elements covering content */

  p { line-height: 1.7 !important; }
  h1, h2, h3, h4 { line-height: 1.2 !important; word-break: break-word; hyphens: auto; }
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.4rem) !important; letter-spacing: -0.01em !important; }
  h2 { font-size: clamp(1.5rem, 6.5vw, 2rem) !important; }
  h3 { font-size: 1.2rem !important; line-height: 1.3 !important; }

  .container,
  .container-wide,
  .container-narrow { padding-left: 20px !important; padding-right: 20px !important; }

  section { padding: 56px 0 !important; }

  /* ── HEADER INFO STRIP ─────────────────────────────────── */
  /*
   * CRITICAL FIX: The info strip is positioned in normal flow (not fixed)
   * so it scrolls away naturally. The nav bar is fixed at top:0 only after
   * the info strip has scrolled off. We achieve this by placing .header-info
   * inside .site-header which IS fixed — so we simply ensure the info strip
   * stacks correctly and does NOT bleed into page content.
   * The body's padding-top on mobile is set by JS to match header total height.
   */

  .header-info {
    padding: 0 !important;
  }

  .header-info-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 16px !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hide separators on mobile */
  .header-info-inner .hi-sep { display: none !important; }

  .header-info-inner .hi-item {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 100% !important;
    font-size: 0.79rem !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
  }

  .header-info-inner .hi-icon {
    flex-shrink: 0 !important;
    width: 13px !important;
    height: 13px !important;
  }

  .status-pill { margin-left: 4px !important; }

  /* Hide info strip once scrolled (handled in JS: .scrolled class) */
  .site-header.scrolled .header-info { display: none !important; }

  /* ── HEADER INNER ─────────────────────────────────────── */
  .header-inner {
    padding: 0 16px !important;
    min-height: 60px !important;
    gap: 10px !important;
  }

  .brand img,
  .brand .custom-logo,
  .brand .custom-logo-link img {
    height: 40px !important;
    max-height: 44px !important;
    max-width: 180px !important;
  }

  /* Show hamburger on mobile */
  .nav-toggle {
    display: inline-flex !important;
  }

  /* ── MOBILE NAV DRAWER ────────────────────────────────── */
  .nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(340px, 88vw) !important;
    background: var(--paper) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 80px 20px 40px !important;
    gap: 0 !important;
    overflow-y: auto !important;
    z-index: 200 !important;
    box-shadow: -4px 0 40px rgba(15,23,42,0.15) !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
  }

  .nav.open {
    transform: translateX(0) !important;
    pointer-events: auto !important;
  }

  /* Show close button */
  .nav-close {
    display: flex !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-sm) !important;
    color: var(--earth-bark) !important;
    transition: background 0.2s !important;
  }
  .nav-close:hover { background: var(--paper-deep) !important; }

  /* Nav items: stacked list */
  .nav .nav-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(64,60,45,0.08) !important;
  }

  .nav .nav-link {
    width: 100% !important;
    padding: 16px 12px !important;
    font-size: 1.05rem !important;
    justify-content: space-between !important;
    border-radius: 0 !important;
    background: none !important;
  }
  .nav .nav-link:hover { background: var(--paper-warm) !important; }

  /* Dropdown in mobile: show/hide accordion style */
  .nav .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    background: var(--paper-warm) !important;
    display: none !important;
    pointer-events: auto !important;
  }
  .nav .dropdown.open { display: block !important; }

  .nav .dropdown a {
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid rgba(64,60,45,0.06) !important;
    border-radius: 0 !important;
    display: block !important;
    color: var(--earth-bark) !important;
  }
  .nav .dropdown a:last-child { border-bottom: none !important; }
  .nav .dropdown a:hover { background: var(--paper-deep) !important; }

  /* CTA button: full width at bottom of drawer */
  .nav-cta {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    margin: 24px 0 0 !important;
    padding: 16px 24px !important;
    font-size: 0.95rem !important;
  }

  /* Backdrop */
  .nav-backdrop.open {
    display: block !important;
  }

  /* ── HERO ─────────────────────────────────────────────── */
  .hero {
    min-height: auto !important;
    padding: 100px 0 60px !important;
    text-align: center !important;
  }
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    padding: 0 20px !important;
  }
  .hero-copy .eyebrow { text-align: center; }
  .hero-lede { font-size: 1.08rem !important; margin: 0 auto 16px !important; max-width: none !important; }
  .hero-sub { font-size: 0.98rem !important; margin: 0 auto 28px !important; max-width: none !important; }
  .hero-cta-row {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .hero-cta-row .btn { width: 100% !important; justify-content: center !important; }
  .hero-visual { max-width: 260px !important; margin: 0 auto !important; }
  .hero-quote-pill { display: none !important; }
  .scroll-hint { display: none !important; }
  .locations {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* ── PAGE HERO (inner pages) ─────────────────────────── */
  .page-hero { padding: 100px 0 60px !important; }
  .page-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem) !important; }

  /* ── SECTIONS ─────────────────────────────────────────── */
  .about-preview,
  .services-section,
  .specs-section,
  .process-section,
  .testimonials-section,
  .blog-preview,
  .final-cta,
  .newsletter-section,
  .bio-section,
  .rates-section,
  .insurance-section,
  .faq-section,
  .contact-section,
  .svc-section { padding: 64px 0 !important; }

  .section-head { margin-bottom: 40px !important; }
  .section-head p { font-size: 0.98rem !important; }

  /* ── GRIDS: force single column ─────────────────────── */
  .about-grid,
  .bio-grid,
  .contact-grid,
  .service-inner,
  .about-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .services-grid,
  .testimonial-grid,
  .rates-grid,
  .values-grid,
  .includes-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .specs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  .blog-layout { grid-template-columns: 1fr !important; gap: 40px !important; }
  .masonry { columns: 1 !important; }
  .blog-sidebar { position: static !important; gap: 20px !important; }

  .service-inner.reverse { direction: ltr !important; }
  .service-inner.reverse .svc-copy { order: 0 !important; }

  /* ── IMAGES & VISUALS ────────────────────────────────── */
  .about-portrait  { max-width: 300px !important; margin: 0 auto !important; }
  .bio-portrait    { max-width: 300px !important; margin: 0 auto 20px !important; }
  .svc-visual      { max-width: 360px !important; margin: 0 auto !important; }
  .bio-side { position: static !important; }

  /* ── BUTTONS ─────────────────────────────────────────── */
  .btn { min-height: 48px !important; padding: 14px 24px !important; font-size: 0.88rem !important; white-space: normal !important; text-align: center !important; }

  /* ── ABOUT / VALUES ──────────────────────────────────── */
  .about-copy p,
  .bio-content p { max-width: none !important; }

  /* ── PROCESS ─────────────────────────────────────────── */
  .process-step {
    grid-template-columns: 60px 1fr !important;
    gap: 16px !important;
    padding: 24px 0 !important;
  }
  .process-step:hover { padding-left: 0 !important; }
  .step-num { font-size: 2.6rem !important; }

  /* ── TESTIMONIALS ────────────────────────────────────── */
  .testimonial blockquote { font-size: 1.1rem !important; }

  /* ── RATES ───────────────────────────────────────────── */
  .rate-card { padding: 30px 22px !important; }
  .rate-price { font-size: 3rem !important; }
  .insurance-list { padding: 28px 20px !important; }
  .insurance-list ul { grid-template-columns: 1fr !important; }
  .verify-note { flex-direction: column !important; gap: 10px !important; }

  /* ── FAQ ─────────────────────────────────────────────── */
  .faq-q { font-size: 1.1rem !important; padding: 18px 0 !important; }
  .faq-a { font-size: 0.97rem !important; }

  /* ── CONTACT FORM ────────────────────────────────────── */
  .contact-form { padding: 28px 20px !important; }
  .field-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .field-row .field { margin-bottom: 22px !important; }
  .field input, .field textarea, .field select { font-size: 16px !important; }

  /* ── BLOG ─────────────────────────────────────────────── */
  .blog-hero { padding: 100px 0 50px !important; }
  .blog-filters { gap: 6px !important; }
  .filter-pill { padding: 8px 14px !important; font-size: 0.72rem !important; }
  .post-card h3 { font-size: 1.2rem !important; }

  /* ── NEWSLETTER ─────────────────────────────────────── */
  .newsletter-form { flex-direction: column !important; gap: 12px !important; }
  .newsletter-form input { width: 100% !important; }
  .newsletter-form .btn { width: 100% !important; justify-content: center !important; }

  /* ── FINAL CTA ──────────────────────────────────────── */
  .final-cta h2 { font-size: 1.85rem !important; }
  .final-cta .cta-row { flex-direction: column !important; gap: 12px !important; align-items: stretch !important; }
  .final-cta .cta-row .btn { width: 100% !important; justify-content: center !important; }
  .final-capy { display: none !important; }

  /* ── FOOTER ─────────────────────────────────────────── */
  .site-footer { padding: 56px 0 24px !important; }
  .footer-grid { gap: 32px !important; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; font-size: 0.78rem !important; }
  .footer-brand img { height: 72px !important; padding: 12px 14px !important; }

  /* ── SPEC NUMBERS ────────────────────────────────────── */
  .spec-number { font-size: 4rem !important; }
  .spec-card .spec-num { font-size: 2.2rem !important; }
}

/* ============================================================
   SMALL MOBILE  < 400px
   ============================================================ */
@media (max-width: 399px) {
  .container,
  .container-wide,
  .container-narrow { padding-left: 14px !important; padding-right: 14px !important; }

  h1 { font-size: 1.7rem !important; }
  h2 { font-size: 1.4rem !important; }

  .btn { padding: 12px 18px !important; font-size: 0.85rem !important; }
  .specs-grid { grid-template-columns: 1fr !important; }
  .header-info-inner .hi-item { font-size: 0.75rem !important; }
}
