/* =========================================================================
   Mommy Makeover — Dr. Darren Smith
   Single-page PPC landing page. Structure and conventions mirror the
   Preservé reference: minimal header, hero + press strip, stacked content
   sections, a progressively-enhanced multi-panel quiz form, sticky CTA.
   ========================================================================= */

:root {
  --ink:        #1c1a17;
  --ink-soft:   #4a453e;
  --ink-mute:   #7a7268;
  --cream:      #f7f4ef;
  --cream-deep: #efe9e0;
  --paper:      #ffffff;
  --line:       #e5ddd1;
  --accent:     #9a7b4f;
  --accent-dk:  #7d6238;
  --block:      #e8e4dd; /* neutral placeholder fill */
  --ok:         #2f6f4f;
  --err:        #a1332a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap:  1120px;
  --wrap-narrow: 760px;
}

*, *::before, *::after { 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%; height: auto; display: block; }

a { color: var(--accent-dk); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); margin: 0 0 0.6em; }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin: 1.4em 0 0.4em; }

p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(48px, 7vw, 92px) 0; }
.section:nth-of-type(even) { background: var(--paper); }

/* ----- Neutral placeholder blocks (rendered when an asset token is present) -- */
img.is-placeholder {
  background: var(--block);
  background-image: linear-gradient(135deg, #ece7de 0%, #e2dccf 100%);
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
}
.is-placeholder { color: transparent; }

/* =========================== Header ==================================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { width: auto; height: 46px; }
.nav-phone {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone:hover { color: var(--accent-dk); }

/* =========================== Hero ===================================== */
.hero { background: var(--paper); }
.hero-banner { background: var(--cream-deep); }
.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero-img.is-placeholder { aspect-ratio: 3924 / 1034; min-height: 220px; }

.hero-copy {
  text-align: center;
  padding-top: 20px;   /* tight gap from the hero image down to the H1 (16–24px) */
  padding-bottom: clamp(38px, 5vw, 62px);
}
#hero-h1 {
  /* Grounded restatement of the image's baked display headline: one clear step
     down in visual weight (~60–70% of the image line), same Cormorant Garamond,
     so the image reads as the display headline and this as its restatement. */
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  margin: 0 auto 10px;   /* 8–12px down to the subhead */
  max-width: 22ch;
}
#hero-sub {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 1.5em;   /* larger gap below the subhead, before the CTA */
}
.micro-strip {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 1.6em auto 0;
  max-width: 60ch;
}

/* ----- Variant section order (flash-free) -----
   <main> is a flex column so the ?ag= class on <html> can lift one content
   section to position 2 (directly below the hero) via `order` alone — no DOM
   move, no post-load reflow. Default/core keeps source order, and so does
   ag-cost: the cost variant makes its point in the hero subhead, so it uses the
   default section order untouched. */
main { display: flex; flex-direction: column; }
main > .hero { order: 0; }
main > section { order: 1; }
/* The inline gallery CTA is an <aside>, so it needs its order stated explicitly —
   without this it would default to 0 and jump up beside the hero. */
main > .gallery-cta { order: 1; }
.ag-luxury #why,
.ag-component #one-surgery,
.ag-360 #one-surgery,
.ag-glp1 #after-glp1 { order: 0; }

/* ----- Press strip ----- */
.press-strip {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  text-align: center;
}
.press-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 14px;
}
.press-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vw, 54px);
}
.press-logos img {
  height: 26px;
  width: auto;
  opacity: 0.68;
  filter: grayscale(100%);
}
.press-logos .logo-goop { height: 22px; }
/* Press-recognition badges, after the wordmarks. Set taller than the logotypes
   because they are stacked lockups rather than single-line wordmarks — matched
   heights would render their smaller type illegible — while still occupying less
   ink than any wordmark beside them, so they read as peers in the row. They inherit
   the strip's grayscale + 0.68 treatment from `.press-logos img` above. */
.press-badges { display: flex; }
.press-badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 32px);
}
.press-logos .badge-newsweek { height: 40px; }
.press-logos .badge-thr { height: 30px; }
.press-logos img.is-placeholder {
  width: 92px; height: 26px; min-height: 26px; opacity: 1; filter: none;
  border-radius: 3px;
}

/* =========================== Buttons ================================== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  padding: 16px 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn-block { display: block; width: 100%; }

/* =========================== Credibility strip ======================== */
.section-credibility {
  background: var(--ink);
  color: #efe7d9;
  padding: 20px 0;
}
.cred-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.cred-strip li { padding: 0 clamp(12px, 2vw, 22px); position: relative; }
.cred-strip li + li::before {
  content: "·";
  position: absolute;
  left: -2px;
  color: var(--accent);
}

/* =========================== Surgeon / Why =========================== */
.surgeon-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.why-blocks { margin-top: 8px; }
.why-block { margin-bottom: 1.5em; }
.why-block h3 { margin-top: 0; color: var(--accent-dk); }
.why-block p { margin-bottom: 0; color: var(--ink-soft); }
.surgeon-media {
  margin: 0;
  position: sticky;
  top: 24px;
}
.surgeon-media img {
  width: 100%;
  border-radius: 4px;
  background: var(--block);
}
.surgeon-media figcaption {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-top: 10px;
  color: var(--ink);
}

/* =========================== Prose sections ========================== */
.section-combined p,
.section-glp1 .glp1-text p,
.lead-prose {
  color: var(--ink-soft);
}
.section-glp1 .surgeon-grid { align-items: center; }

/* =========================== Gallery ================================= */
.ba-cases {
  display: grid;
  gap: 28px;
  margin-top: 10px;
}
.ba-case { margin: 0; }
.ba-photo {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--block);
}
.ba-photo.is-placeholder { min-height: 220px; }
.ba-caption {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 12px 2px 0;
  line-height: 1.45;
  text-align: center;
}
.gallery-note {
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: center;
  margin-top: 32px;
  font-style: italic;
}

/* ----- Inline quiz CTA, directly below the gallery -----
   A slim ribbon rather than a full .section: the hairline rules and cream fill mark
   it as a break in the reading flow without competing with the sections around it. */
.gallery-cta {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 3.4vw, 38px) 0;
  text-align: center;
}
.gallery-cta-line {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 16px;
}

/* =========================== Next steps ============================== */
.next-steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.next-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 62px;
  min-height: 44px;
}
.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.next-steps strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.next-steps span { color: var(--ink-soft); }

/* =========================== Testimonial video ======================= */
.section-testimonial-video { text-align: center; }
.tv-heading { margin-bottom: 0.35em; }
.tv-intro {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 1.4em;
  line-height: 1.5;
}
.tv-figure { margin: 0; display: inline-block; }
.tv-video {
  width: 100%;
  max-width: 405px;
  height: auto;
  border-radius: 6px;
  background: #000;
  display: block;
  margin: 0 auto;
}
.tv-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-mute);
  max-width: 405px;
  margin: 14px auto 0;
}
[hidden] { display: none !important; }

/* =========================== FAQ ===================================== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  padding: 16px 34px 16px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent);
  font-family: var(--sans);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 0 16px; }
.faq-answer p { color: var(--ink-soft); margin: 0; }

/* =========================== Consultation form ======================= */
.consult-lead { text-align: center; }
.consult-intro { color: var(--ink-soft); text-align: center; max-width: 56ch; margin: 0 auto 1.4em; }
.form-anchor { display: block; position: relative; top: -90px; height: 0; }

.consult-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 12px 40px rgba(28, 26, 23, 0.06);
}
.consult-reassure {
  font-size: 0.92rem;
  color: var(--ink-mute);
  text-align: center;
  margin: 0 0 20px;
}

/* Honeypot — visually removed, not display:none / not type=hidden. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* Progress indicator (JS-only) */
.flow-progress { display: none; }
.flow-enhanced .flow-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.flow-bars { display: flex; gap: 6px; flex: 1; }
.flow-bars i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color .25s ease;
}
.flow-bars i.is-on { background: var(--accent); }
.flow-count {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* Steps: all visible by default (JS off). Enhanced = one at a time. */
.flow-step { margin-bottom: 34px; }
.flow-step:last-child { margin-bottom: 0; }
.consult-flow.flow-enhanced { transition: height .3s ease; overflow: hidden; }
.flow-enhanced .flow-step { display: none; margin-bottom: 0; }
.flow-enhanced .flow-step.is-active { display: block; }

.flow-heading { font-size: clamp(1.3rem, 3vw, 1.65rem); margin: 0 0 6px; outline: none; }
.flow-intro { color: var(--ink-soft); margin: 0 0 18px; }
/* Assessment payoff line on the contact panel — quiet emphasis, not a banner. */
.flow-payoff {
  color: var(--accent-dk);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 12px 0 22px;
}
.flow-back {
  display: none;
  background: none;
  border: none;
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 0 14px;
}
.flow-back:hover { color: var(--accent-dk); }
.flow-enhanced .flow-back { display: inline-block; }
.flow-next { display: none; margin-top: 6px; }
.flow-enhanced .flow-next { display: inline-block; }

/* Quiz cards */
.quiz-options { display: grid; gap: 12px; margin-top: 16px; }
.quiz-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
  cursor: pointer;
  background: var(--cream);
  transition: border-color .15s ease, background-color .15s ease;
  font-size: 1rem;
}
.quiz-card:hover { border-color: var(--accent); }
.quiz-card input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.quiz-card:has(input:checked) { border-color: var(--accent); background: #fbf7f0; }

/* Contact fields */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--ink-mute); }
.field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.15);
}
.field input[aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: 0.85rem; margin: 6px 0 0; }

.field-radios { border: none; margin: 0 0 22px; padding: 0; }
.field-radios legend { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  background: var(--cream);
}
.radio-opt input { accent-color: var(--accent); }
.radio-opt:has(input:checked) { border-color: var(--accent); background: #fbf7f0; }

.consult-microcopy { font-size: 0.82rem; color: var(--ink-mute); text-align: center; margin: 16px 0 0; }

/* Submit button progress fill. The button now closes the investment-fit panel,
   directly under the option cards, so it carries its own top margin. */
#consult-submit { position: relative; overflow: hidden; margin-top: 20px; }
.btn-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--accent-dk);
  z-index: 0;
}
.btn-label { position: relative; z-index: 1; }

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.92rem;
}
.form-status.is-error { background: #fbeceb; color: var(--err); border: 1px solid #eccecb; }

/* =========================== Footer ================================== */
.site-footer {
  background: var(--ink);
  color: #cfc7ba;
  padding: 48px 0;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-name { font-family: var(--serif); font-size: 1.3rem; color: #f2ece1; margin: 0 0 6px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #d8c7a8; }
.footer-links a { color: #d8c7a8; text-decoration: underline; }
.footer-links { margin-top: 10px; }
.footer-sep { color: var(--ink-mute); padding: 0 8px; }

/* =========================== Sticky CTA ============================== */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(28, 26, 23, 0.08);
  transition: transform .25s ease, opacity .25s ease;
}
.sticky-cta.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.cta-primary { background: var(--ink); color: #fff; }
.cta-secondary { background: var(--accent); color: #fff; }
.cta-primary[aria-disabled="true"] { cursor: default; }

/* Keep content clear of the sticky bar */
body { padding-bottom: 74px; }

/* =========================== Responsive ============================== */
@media (max-width: 820px) {
  .surgeon-grid { grid-template-columns: 1fr; }
  .surgeon-media { position: static; max-width: 340px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav-phone { font-size: 0.95rem; }
  .logo-img { height: 38px; }
  /* Narrow viewports: the four wordmarks still fit one row, so giving the badge pair
     the next row outright keeps the ribbon deterministic — "wordmarks, then
     recognition" — instead of letting flex-wrap strand one badge. The badges keep
     their full size here rather than being scaled past recognizability; the row is
     theirs alone, so there is room for it. */
  .press-logos { flex-wrap: wrap; gap: 14px clamp(12px, 4vw, 22px); }
  .press-logos img { height: 20px; }
  .press-logos .logo-goop { height: 17px; }
  .press-badges { flex: 1 0 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
