/* ═══════════════════════════════════════════════════════════════
   LUMÉRA — mobile / small-screen fixes (Sep 2026)
   Loaded after style.css. Phone tier ≤640px, tighter tier ≤400px
   (Moto G Power = 360–412px CSS width).
   ═══════════════════════════════════════════════════════════════ */

/* ── Global bug fixes (all widths) ──────────────────────────────── */

/* Anchor jumps (#treatments, #concerns, #packages …) must clear the
   sticky header instead of hiding the heading behind it. */
:root{scroll-padding-top:calc(var(--nav-h) + 14px);}
section[id],[id]{scroll-margin-top:calc(var(--nav-h) + 14px);}

/* Bigger, easier-to-tap "Learn more" links on touch screens */
.tc-link{padding:6px 0;min-height:30px;align-items:center;}

/* Phones auto-zoom the whole page when a form control's text is under
   16px, and that zoom persists (everything looks cut off on the right).
   16px controls stop the zoom at the source. */
@media (max-width:1080px){
  .field input,.field select,.field textarea,
  input[type=text],input[type=email],input[type=tel],input[type=date],select,textarea{font-size:16px;}
}

/* Location rows: ".loc-rows div" also matched the inner label/value
   div and turned it into a flex row, which pushed the card wider than
   the screen. Label sits above the value, as the strong{display:block}
   rule always intended. */
.loc-rows>div>div{display:block;min-width:0;flex:1}
.loc-rows p{overflow-wrap:anywhere}
.loc-rows p a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(216,192,141,.5)}

/* Booking: the visually-hidden radio inputs inherited .field input{width:100%}
   and stretched past the viewport (horizontal scroll on phones). */
.appt-type{position:relative}
.appt-type input{width:1px;height:1px;left:0;top:0;margin:0;pointer-events:none}

/* Treatment-card meta never squeezes "60–90 min" into three lines */
.tc-meta{flex-wrap:wrap;gap:8px 16px}
.tc-meta span{align-items:flex-start}
.tc-meta span:first-child{white-space:nowrap}
.tc-meta svg{margin-top:3px}

/* Hero: .hero-grid sits on the same element as .wrap, and its padding
   shorthand (72px 0 88px) wiped out the .wrap side gutters — the hero
   content touched the screen edges on phones/tablets. Restore them. */
.hero-grid{padding-left:28px;padding-right:28px}

/* About image: keep the decorative arc inside the image box */
.split .media .media-arc{right:0}

/* ── Tablet & phone: never allow sideways scroll ────────────────── */
@media (max-width:1080px){
  /* clip = no new scroll container, so the sticky header keeps working */
  html{overflow-x:clip}
}

/* ── Phones ─────────────────────────────────────────────────────── */
@media (max-width:640px){
  .wrap{padding:0 20px}

  /* Top bar: one tidy line, no wrapping */
  .topbar{font-size:11.5px;letter-spacing:.03em}
  .topbar .wrap{min-height:34px;gap:12px;flex-wrap:nowrap}
  .topbar .wrap>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .topbar .tb-right{gap:12px;flex:none}
  .topbar .tb-right a{white-space:nowrap}
  .topbar svg{width:12px;height:12px;margin-right:4px}

  /* Header: a little shorter so more content is visible under it */
  :root{--nav-h:72px}
  .nav .brand img{height:46px}
  .nav-cta{gap:6px}
  .nav-cta .btn{padding:11px 18px;font-size:11.5px;letter-spacing:.14em}

  /* Buttons wrap instead of overflowing; stacked CTAs go full width */
  .btn{white-space:normal;text-align:center;line-height:1.35;max-width:100%}
  .hero-ctas{flex-direction:column;align-items:stretch}
  .hero-ctas .btn,.pack-cta .btn,.md-ctas .btn,.side-card .btn{width:100%}

  /* Hero */
  .hero-grid{padding:40px 20px 48px;gap:34px}
  .hero-copy .eyebrow{margin-bottom:16px;font-size:11px;letter-spacing:.26em}
  .hero-copy .lead{margin:18px 0 26px;font-size:16.5px}
  .hero-proof{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px;padding-top:22px}
  .hero-proof div strong{font-size:22px}
  .hero-proof div span{font-size:10.5px;letter-spacing:.1em;line-height:1.3;display:block}
  .hero-badge{left:12px;bottom:16px;max-width:calc(100% - 104px);padding:12px 14px;gap:10px}
  .hero-badge strong{font-size:15px}
  .hero-badge span{font-size:11px}

  /* Journey strip */
  .journey{padding:48px 0}
  .journey-steps{gap:26px 14px;margin-top:28px}
  .j-step{padding:0}
  .j-step h3{font-size:18px}
  .j-step p{font-size:13.5px}

  /* Section rhythm */
  .sec-head{margin-bottom:34px}
  h2{margin:10px 0 14px}
  .lead{font-size:16.5px}

  /* Cards */
  .treat-card .tc-body{padding:22px 20px 24px}
  .tech-card{padding:24px 20px}
  .pack-card{padding:28px 20px 24px}
  .testi-card{padding:26px 22px}
  .results-note{padding:40px 20px}

  /* About */
  .split{gap:34px}
  .split .media img{height:340px}

  /* Contact / location */
  .loc-info{padding:34px 22px;min-width:0}
  .loc-info h2{font-size:30px}
  .loc-rows{gap:18px}
  .loc-rows>div{gap:14px}
  .loc-rows p{font-size:14.5px}
  .loc-map{min-height:300px}

  /* FAQ */
  .faq-item summary{font-size:18px;padding:18px 34px 18px 2px}
  .faq-item .faq-a{font-size:14.5px}

  /* Final CTA */
  .final-cta .hours{font-size:11.5px;letter-spacing:.12em}

  /* Footer: leave room so the WhatsApp bubble doesn't cover the disclaimer */
  .foot-grid{padding:54px 0 36px}
  .foot-disclaimer{padding-bottom:96px}
  .wa-float{right:16px;bottom:16px;width:56px;height:56px}

  /* Inner pages */
  .page-hero{padding:48px 0 44px}
  .page-hero h1{font-size:32px}
  .fact{padding:18px 12px}
  .treat-content h2{font-size:26px;margin:34px 0 12px}
  .book-form{padding:26px 18px}
}

/* ── Narrow phones (360px class) ────────────────────────────────── */
@media (max-width:400px){
  h1{font-size:38px}
  .hero-copy .eyebrow{letter-spacing:.22em;gap:10px}
  .hero-copy .eyebrow::before{width:18px}
  .hero-proof{gap:10px}
  .hero-proof div strong{font-size:20px}
  .btn{padding:15px 20px;font-size:12.5px;letter-spacing:.14em}
  .topbar{font-size:11px;letter-spacing:0}
  .topbar .tb-right{gap:10px}
  .concern-grid{gap:12px}
  .concern-tile{padding:20px 12px}
  .concern-tile strong{font-size:17px}
  .journey-steps{gap:22px 10px}
}
