/* =========================================================================
   WellTeenMD — design system
   Brand: WellTeenMD
   Warm-clinical style inspired by Hims / Midi: calm, trustworthy, parent-facing.
   ========================================================================= */

:root {
  /* Brand palette — warm clay & cream (Midi-inspired, mom-oriented).
     Token names are kept from the original teal system so the whole site
     re-skins at once; the values below are the real palette. */
  --ink:        #37302B;   /* espresso — primary text */
  --ink-soft:   #6A5D53;   /* warm secondary text */
  --muted:      #9A8B7D;   /* warm taupe — captions, meta */
  --teal:       #C06B4F;   /* clay — primary accent */
  --teal-deep:  #A4543B;   /* deeper clay — CTA / hover / links */
  --teal-tint:  #F5E7E0;   /* soft clay fill */
  --apricot:    #5F7A64;   /* sage-deep — secondary accent (repurposed token) */
  --apricot-tint:#E7EDE4;  /* soft sage fill */
  --band:       #40332C;   /* deep warm brown — dark feature bands */
  --sand:       #F1E8DC;   /* warm section bg */
  --cream:      #FAF5EF;   /* page bg */
  --white:      #FFFFFF;
  --line:       #E9DECF;   /* warm hairlines */
  --sky-tint:   #EFE6DA;   /* warm neutral tint (was cool) */

  /* Type — sans-serif throughout (display + body). --serif kept as the token
     name used across the file, but now holds a sans stack per request. */
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --maxw: 1140px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(55,48,43,.06), 0 2px 8px rgba(55,48,43,.05);
  --shadow-md: 0 8px 30px rgba(55,48,43,.10);
  --shadow-lg: 0 24px 60px rgba(55,48,43,.12);
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.14; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--band); color: #E7D9CE; }
.section--teal h1, .section--teal h2, .section--teal h3 { color: var(--white); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0 0 .8em;
}
.section--teal .eyebrow { color: #E7B7A4; }
.lede { font-size: 1.18rem; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #8C4531; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-deep); }
.btn--light { background: #fff; color: var(--teal-deep); }
.btn--light:hover { background: #f2fbf9; }
.btn--lg { padding: 17px 34px; font-size: 1.06rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,245,239,.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { max-width: 1200px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.brand .brand-name { white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  display: grid; place-items: center; color: #fff; font-family: var(--sans); font-weight: 700; font-size: 1rem;
}
.brand .brand-logo { width: 34px; height: 34px; flex: 0 0 auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; white-space: nowrap; }
.nav-links a:hover { color: var(--teal-deep); text-decoration: none; }
.nav-links a.active { color: var(--ink); font-weight: 600; }
/* nav "Book online" pill: keep button white text (beats .nav-links a specificity) */
.nav-links .btn--primary,
.nav-links .btn--primary:hover,
.nav-links .btn--primary.active { color: #fff; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 480px at 78% -10%, var(--teal-tint) 0%, transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 84px; }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 30ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-reassure { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* hero photo */
.hero-media { margin: 0; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.hero-media figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); text-align: center; }

/* hero visual card */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.hero-card h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.checkrow { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.checkrow:last-child { border-bottom: 0; }
.checkrow .ic { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.checkrow b { font-family: var(--sans); font-weight: 600; font-size: .98rem; }
.checkrow p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trustbar .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: center; padding: 20px 24px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.trust-item .ic { color: var(--teal); }

/* ---------- cards / grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .badge { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-deep); font-size: 1.3rem; margin-bottom: 14px; }
.card--warm .badge { background: var(--apricot-tint); color: #4C6350; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.step .n { counter-increment: step; width: 46px; height: 46px; border-radius: 50%; background: var(--teal-deep); color:#fff; display:grid; place-items:center; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.step h3 { margin-bottom: .25em; }
.step p:last-child { margin-bottom: 0; }

/* ---------- feature list ---------- */
.featurelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.featurelist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.featurelist .ic { color: var(--teal-deep); font-weight: 700; margin-top: 2px; }
.featurelist b { font-weight: 600; }

/* ---------- doctors ---------- */
.doc { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: start; }
.doc .avatar { width: 132px; height: 132px; border-radius: 20px; background: linear-gradient(135deg, var(--sky-tint), var(--teal-tint)); display:grid; place-items:center; color: var(--teal-deep); font-family: var(--serif); font-size: 2rem; font-weight: 600; overflow: hidden; }
.doc .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.doc .credential { color: var(--muted); font-size: .9rem; font-weight: 500; margin: 0 0 .6em; }
.doc .tag { display:inline-block; font-size:.76rem; font-weight:600; color: var(--teal-deep); background: var(--teal-tint); padding: 4px 10px; border-radius: 999px; margin: 0 6px 6px 0; }

/* ---------- insurance ---------- */
.pill-row { display:flex; flex-wrap:wrap; gap: 10px; }
.pill { border:1px solid var(--line); background:#fff; border-radius: 999px; padding: 9px 16px; font-size:.9rem; font-weight:500; color: var(--ink-soft); }
.pricecard { text-align:center; }
.pricecard .price { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); }
.pricecard .price small { font-size:.9rem; color: var(--muted); font-family: var(--sans); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 1.22rem; color: var(--ink); font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 20px; font-family: var(--sans); font-size: 1.6rem; color: var(--teal); transition: transform .2s; line-height: 1; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .a { padding: 0 44px 22px 0; color: var(--ink-soft); }
.qa .a p:last-child { margin-bottom: 0; }

/* ---------- callout / disclaimer ---------- */
.callout { border-left: 3px solid var(--teal); background: var(--teal-tint); border-radius: 0 12px 12px 0; padding: 18px 22px; font-size: .96rem; color: var(--ink-soft); }
.disclaimer { font-size: .82rem; color: var(--muted); line-height: 1.55; }

/* ---------- CTA band ---------- */
.ctaband { text-align: center; }
.ctaband h2 { max-width: 18ch; margin-left:auto; margin-right:auto; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background:#fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.field .hint { font-size: .8rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9D6D2; padding: 56px 0 30px; }
.site-footer a { color: #C9D6D2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8CA39D; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid .brand { color: #fff; }
.footer-brandline { color: #90A7A1; font-size: .92rem; max-width: 30ch; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #8CA39D; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; }

/* ---------- utilities ---------- */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack-sm > * + * { margin-top: 10px; }
.badge-soft { display:inline-block; font-size:.76rem; font-weight:600; letter-spacing:.02em; color: var(--teal-deep); background: var(--teal-tint); padding: 6px 12px; border-radius: 999px; }

/* language switch (segmented pill) */
.langswitch { display:inline-flex; align-items:center; gap:4px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:5px; box-shadow: var(--shadow-sm); }
.langswitch a { display:inline-flex; align-items:center; gap:6px; padding:9px 20px; border-radius:999px; font-family: var(--sans); font-weight:600; font-size:.95rem; color: var(--ink-soft); text-decoration:none; line-height:1; transition: background .15s ease, color .15s ease; }
.langswitch a:hover { color: var(--teal-deep); text-decoration:none; }
.langswitch a.is-active { background: var(--teal-deep); color:#fff; }
.langswitch a.is-active:hover { color:#fff; }
.langswitch-label { font-size:.82rem; color: var(--muted); margin: 0 0 8px; }

/* ---------- homepage care-team row ---------- */
.team-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.team-member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; text-decoration: none; color: var(--ink); }
.team-member:hover { text-decoration: none; }
.team-photo { width: 118px; height: 118px; border-radius: 50%; overflow: hidden; background: var(--teal-tint); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.team-member:hover .team-photo { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.team-member b { font-size: .98rem; line-height: 1.2; }
.team-member .role { font-size: .84rem; color: var(--muted); }
@media (max-width: 600px) { .team-row { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } }

/* ---------- responsive ---------- */
/* Collapse the nav to a toggle before the seven items get crowded enough to wrap */
@media (max-width: 1200px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 56px; }
  .hero .lede { max-width: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; }
  .doc .avatar { width: 96px; height: 96px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
