/* Marsh Cove Dental & Implant Center landing page styles
   Visual base recreated from the Claude Design file "Marsh Cove Implants.dc.html". */

:root {
  --bg: #FAF4EA;
  --bg-warm: #F6E8D4;
  --cream: #F3E7D6;
  --cream-soft: #FCFAF6;
  --green-900: #163831;
  --green-800: #1F4A40;
  --green-700: #1F3B34;
  --terracotta: #C86B47;
  --terracotta-dark: #B75E3C;
  --gold: #D9A441;
  --gold-soft: #F0C97A;
  --text: #2B2620;
  --text-soft: #5B554C;
  --text-mute: #6B655C;
  --text-faint: #4E483F;
  --text-dim: #9A9288;
  --sage: #8FAAA2;
  --sage-light: #B9CFC8;
  --sage-lighter: #C4D6D0;
  --border-green: rgba(31, 74, 64, 0.1);
  --border-green-soft: rgba(31, 74, 64, 0.08);
  --border-terracotta: rgba(200, 107, 71, 0.55);
  --field-border: #E2D6C4;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Hanken Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

.container { max-width: 620px; margin: 0 auto; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(250, 244, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-green);
}
.site-header .logo { display: flex; align-items: center; line-height: 1; }
.site-header .logo img { display: block; height: 60px; width: auto; }

/* ============ BUTTONS ============ */
.btn {
  appearance: none;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-align: center;
  transition: background .15s ease;
}
.btn--primary { background: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-dark); }
.btn--full { width: 100%; }
.btn--pill {
  background: var(--green-800);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13.5px;
}
.btn--pill:hover { background: var(--green-900); }
.btn--hero {
  font-size: 17px;
  padding: 17px 22px;
  border-radius: 14px;
  box-shadow: 0 10px 24px -8px rgba(200, 107, 71, 0.55);
}
.btn--sticky {
  font-size: 16px;
  padding: 15px;
  border-radius: 13px;
  box-shadow: 0 8px 20px -8px rgba(200, 107, 71, 0.6);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 34px 20px 40px;
  background: radial-gradient(120% 90% at 80% 0%, var(--bg-warm) 0%, var(--bg) 58%);
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--green-700);
  animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero .lede {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 16px 0 0;
  max-width: 440px;
  animation: riseIn .7s cubic-bezier(.2,.7,.2,1) .08s both;
}
.hero .callout {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  background: #FFFFFF;
  border: 1.5px dashed var(--border-terracotta);
  border-radius: 14px;
  padding: 13px 15px;
  animation: riseIn .7s ease .12s both;
}
.hero .callout .icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}
.hero .callout .title { font-size: 14.5px; font-weight: 800; color: var(--green-700); line-height: 1.2; }
.hero .callout .sub { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }
.hero .rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  animation: riseIn .7s ease .16s both;
}
.stars { color: var(--gold); font-size: 18px; letter-spacing: 1px; }
.hero .rating .count { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.hero .cta-wrap { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; animation: riseIn .7s ease .24s both; }
.hero .hero-media { margin: 26px 0 0; animation: riseIn .8s ease .3s both; }
.media-disclaimer { font-size: 11px; line-height: 1.4; color: var(--text-dim); text-align: center; margin: 10px 6px 0; }

/* Hero grid: places the embedded quiz card directly under the subhead on mobile
   (source order), and beside the headline in a second column on desktop. */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "headline" "lede" "callout" "quiz" "rating" "cta" "media";
}
.hero-grid > h1 { grid-area: headline; }
.hero-grid > .lede { grid-area: lede; }
.hero-grid > .quiz-card { grid-area: quiz; margin: 20px 0 0; animation: riseIn .7s ease .16s both; }
.hero-grid > .callout { grid-area: callout; margin: 20px 0 0; }
.hero-grid > .rating { grid-area: rating; }
.hero-grid > .cta-wrap { grid-area: cta; }
.hero-grid > .hero-media { grid-area: media; }

/* ============ MEDIA / IMAGE PLACEHOLDER ============ */
.media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--terracotta);
  overflow: hidden;
}
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--rect { width: 100%; }
.media--circle { border-radius: 50%; flex: 0 0 auto; }
.media--hero { height: 280px; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px -20px rgba(31,59,52,0.45); }
.media--case { height: 220px; border-radius: 16px; box-shadow: 0 14px 30px -16px rgba(31,59,52,0.4); }
.media--doctor { width: 80px; height: 80px; box-shadow: 0 10px 22px -12px rgba(31,59,52,0.5); }
.media--doctor img { object-position: center 12%; }

/* ============ TRUST BAR ============ */
.trust-bar { background: var(--green-800); color: var(--bg); padding: 26px 20px; }
.trust-bar .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.trust-bar .grid > div:nth-child(2) { border-left: 1px solid rgba(255,255,255,0.14); border-right: 1px solid rgba(255,255,255,0.14); }
.trust-bar .stat { font-family: var(--font-serif); font-size: 30px; font-weight: 600; color: var(--gold-soft); line-height: 1; }
.trust-bar .label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--sage-light); margin-top: 6px; text-transform: uppercase; }

/* ============ SECTION HEADINGS ============ */
.section { padding: 44px 20px; background: var(--bg); }
.section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--green-700);
  margin: 0 0 24px;
  animation: revealUp .6s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 24%;
}
.section .eyebrow { font-size: 14.5px; color: var(--text-mute); margin: 0 0 20px; }

/* ============ BENEFITS ============ */
.benefits-list { display: flex; flex-direction: column; gap: 12px; }
.benefit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--border-green-soft);
  border-radius: 16px;
  padding: 16px;
  animation: revealUp .55s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 20%;
}
.benefit-card .icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--terracotta);
}
.benefit-card .title { font-size: 16px; font-weight: 700; color: var(--text); }
.benefit-card .body { font-size: 14px; line-height: 1.5; color: var(--text-mute); margin-top: 3px; }

/* ============ CASES ============ */
.section--cases { padding-top: 8px; }
.cases-list { display: flex; flex-direction: column; gap: 14px; }
.case-item { animation: revealUp .6s ease both; animation-timeline: view(); animation-range: entry 0% cover 18%; }
.case-item .frame { position: relative; border-radius: 16px; overflow: hidden; }
.case-item .badge { position: absolute; top: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 100px; color: #fff; }
.case-item .badge--before { left: 10px; background: rgba(43,38,32,0.82); }
.case-item .badge--after { right: 10px; background: var(--terracotta); }

/* ============ DOCTORS ============ */
.section--doctors { background: var(--cream); }
.doctor-list { display: flex; flex-direction: column; gap: 12px; }
.doctor-card {
  display: flex; gap: 15px; align-items: center;
  background: #FFFFFF; border: 1px solid var(--border-green); border-radius: 16px; padding: 15px;
  animation: revealUp .6s ease both; animation-timeline: view(); animation-range: entry 0% cover 22%;
}
.doctor-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 21px; color: var(--green-700); margin: 0 0 2px; line-height: 1.1; }
.doctor-card p { font-size: 13px; color: var(--text-mute); margin: 0; }
.doctors-copy { font-size: 15px; line-height: 1.6; color: var(--text-faint); margin: 18px 0 0; animation: revealUp .6s ease .06s both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
.credential-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; animation: revealUp .6s ease .1s both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
.credential-chip { background: #FFFFFF; border: 1px solid var(--border-green); color: var(--green-800); font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 100px; }

/* ============ REVIEWS ============ */
.reviews-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; animation: revealUp .6s ease both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
.reviews-head h2 { margin: 0; }
.reviews-head .agg { text-align: right; }
.reviews-head .agg .stars { font-size: 15px; }
.reviews-head .agg .count { font-size: 11.5px; font-weight: 700; color: var(--text-mute); }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.review-card {
  background: #FFFFFF; border: 1px solid var(--border-green-soft); border-radius: 16px; padding: 18px;
  box-shadow: 0 10px 24px -18px rgba(31,59,52,0.4);
  animation: revealUp .55s ease both; animation-timeline: view(); animation-range: entry 0% cover 18%;
}
.review-card .stars { font-size: 14px; }
.review-card .quote { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.5; color: var(--text); margin: 9px 0 12px; font-style: italic; }
.review-card .name { font-size: 13px; font-weight: 700; color: var(--green-800); }
.review-card .meta { font-size: 12px; color: var(--text-dim); }

/* ============ FINANCING ============ */
.financing { padding: 36px 20px; background: var(--green-800); color: var(--bg); text-align: center; }
.financing h2 { font-family: var(--font-serif); font-weight: 500; font-size: 27px; line-height: 1.2; margin: 0 auto 10px; max-width: 440px; }
.financing p { font-size: 15px; line-height: 1.6; color: var(--sage-lighter); margin: 0 auto; max-width: 420px; }
.financing .stats { display: flex; justify-content: center; gap: 22px; margin: 22px 0 0; flex-wrap: wrap; }
.financing .stats .num { font-family: var(--font-serif); font-size: 26px; color: var(--gold-soft); }
.financing .stats .label { font-size: 11.5px; color: var(--sage-light); font-weight: 600; }
.financing .stats div + div { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 22px; }

/* ============ QUIZ (embedded in hero) ============ */
.quiz-card {
  max-width: 520px; margin: 0 auto;
  background: #FFFFFF; border: 1px solid var(--border-green); border-radius: 22px; padding: 22px;
  box-shadow: 0 20px 44px -24px rgba(31,59,52,0.45);
}
.progress { height: 4px; background: var(--field-border); border-radius: 4px; overflow: hidden; margin: 0 0 20px; }
.progress-bar { height: 100%; width: 0%; background: var(--terracotta); border-radius: 4px; transition: width .3s ease; }
.quiz-q {
  font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--green-700); margin: 0 0 18px;
}
.options { display: flex; flex-direction: column; gap: 10px; margin: 0 0 6px; }
.opt {
  appearance: none; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 12px;
  text-align: left; font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--text-faint);
  background: var(--cream-soft); border: 1.5px solid var(--field-border); border-radius: 12px; padding: 14px 15px;
  transition: all .15s ease;
}
.opt:hover { border-color: var(--terracotta); }
.opt:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.opt .opt-check {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--field-border);
  background: #fff; position: relative;
}
.opt.selected { background: var(--green-800); color: var(--bg); border-color: var(--green-800); }
.opt.selected .opt-check { border-color: var(--gold-soft); background: var(--gold-soft); }
.opt.selected .opt-check::after {
  content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--green-800);
}
.quiz-nav { display: flex; justify-content: flex-start; margin: 14px 0 0; }
.back-link {
  appearance: none; cursor: pointer; background: none; border: none; padding: 6px 0;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; color: var(--text-mute);
}
.back-link:disabled { visibility: hidden; }
.field { margin: 0 0 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-faint); margin: 0 0 6px; }
.field input, .field select {
  width: 100%; font-family: var(--font-sans); font-size: 16px; padding: 13px 14px;
  border: 1.5px solid var(--field-border); border-radius: 12px; background: var(--cream-soft); color: var(--text); outline: none;
}
.field input:focus, .field select:focus { border-color: var(--terracotta); }
.field .err { display: none; font-size: 12.5px; font-weight: 600; color: var(--terracotta-dark); margin: 6px 0 0; }
.field.invalid input, .field.invalid select { border-color: var(--terracotta-dark); }
.field.invalid .err { display: block; }
.legal { font-size: 11.5px; color: var(--text-dim); text-align: center; line-height: 1.5; margin: 12px 0 0; }
.quiz-body .btn--primary { padding: 17px; border-radius: 14px; box-shadow: 0 12px 26px -10px rgba(200,107,71,0.6); font-size: 17px; margin-top: 4px; }

.success { display: none; text-align: center; }
.success.show { display: block; }
.success h3 { font-family: var(--font-serif); font-weight: 500; font-size: 27px; color: var(--green-700); margin: 0 0 10px; }
.success p { font-size: 15px; line-height: 1.6; color: var(--text-soft); margin: 0 0 18px; }
.success .btn { padding: 17px; border-radius: 14px; box-shadow: 0 12px 26px -10px rgba(200,107,71,0.6); font-size: 17px; }
.success .or-call { font-size: 13px; color: var(--text-mute); margin: 16px 0 0; }
.success .or-call a { color: var(--terracotta); font-weight: 700; }

/* ============ LOCATIONS ============ */
.locations-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.location-card { background: #FFFFFF; border: 1px solid var(--border-green); border-radius: 16px; padding: 18px; position: relative; }
.location-card .city-row { display: flex; align-items: center; gap: 8px; color: var(--terracotta); }
.location-card .city-row span { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.location-card .addr { font-size: 14.5px; line-height: 1.5; color: var(--text-soft); margin: 8px 0 8px; }
.location-card .rating-row { display: flex; align-items: center; gap: 7px; }
.location-card .rating-row .stars { font-size: 13px; }
.location-card .rating-row .count { font-size: 12.5px; font-weight: 700; color: var(--green-800); }
.location-card .badge-local {
  position: absolute; top: -10px; right: 14px; background: var(--terracotta); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase;
}

/* ============ FOOTER ============ */
.site-footer { padding: 30px 20px 110px; background: var(--green-900); color: var(--sage-light); text-align: center; }
.site-footer .brand { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--bg); }
.site-footer p { font-size: 12.5px; line-height: 1.6; margin: 10px auto 0; max-width: 420px; color: var(--sage); }

/* ============ STICKY MOBILE BAR ============ */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 10px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  background: rgba(250,244,234,0.95); backdrop-filter: blur(12px); border-top: 1px solid rgba(31,74,64,0.14);
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-bar .btn { flex: 1; }

@media (min-width: 900px) {
  .container, .financing h2, .financing p { max-width: 680px; }
  .hero .lede { max-width: 480px; }
  .hero h1 { font-size: 46px; }
  .media--hero { height: 360px; }
  .media--case { height: 280px; }

  .hero-grid {
    max-width: 980px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    column-gap: 40px;
    align-items: start;
    grid-template-areas:
      "headline quiz"
      "lede quiz"
      "callout quiz"
      "rating quiz"
      "cta quiz"
      "media quiz";
  }
  .hero-grid > .quiz-card { margin-top: 0; }
}
