/* ---------- Design tokens: "Warm Clinical" ---------- */
:root {
  --cream:        #FAF6EF;
  --cream-deep:   #F1EADF;
  --surface:      #FFFDF8;
  --ink:          #2E3436;
  --ink-soft:     #5B6466;
  --line:         #E3DACB;

  --sage:         #7F9A86;
  --sage-deep:    #4F6B5C;
  --teal:         #2F6B6B;
  --teal-dark:    #245656;
  --terracotta:   #B96A4C;
  --terracotta-d: #9A4F34;

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head:    "Outfit", "Inter", system-ui, sans-serif;

  --radius:       18px;
  --shadow:       0 1px 2px rgb(46 52 54 / .05), 0 12px 32px -12px rgb(46 52 54 / .15);
  --space-section: clamp(4rem, 9vw, 8rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 36ch; }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 600;
  color: var(--terracotta-d); margin-bottom: 1rem;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--teal); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  border: 2px solid var(--teal);
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-small { padding: .55rem 1.2rem; font-size: .95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 246 239 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; }
.brand img { width: 48px; height: auto; }
.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; }
.nav-list a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-list a:not(.btn):hover { color: var(--terracotta-d); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-photo { margin: 0; position: relative; isolation: isolate; }
.hero-photo img {
  border-radius: 220px 220px var(--radius) var(--radius);
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  box-shadow: var(--shadow);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border-radius: 220px 220px var(--radius) var(--radius);
  background: var(--cream-deep); z-index: -1;
}
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: 1.25fr .85fr; gap: 5rem; }
}

/* ---------- Facts strip ---------- */
.facts { background: var(--sage-deep); color: #F4F1E8; }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; padding-block: 2.5rem; }
.facts-list strong { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 500; line-height: 1.2; }
.facts-list span { font-size: .95rem; opacity: .9; line-height: 1.5; display: block; margin-top: .3rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-tint { background: var(--cream-deep); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }

.about-grid { display: grid; gap: 2.5rem; }
.about-heading { align-self: start; }
.prose p { max-width: 62ch; }
blockquote { margin: 2rem 0 0; padding: .4rem 0 .4rem 1.5rem; border-left: 4px solid var(--terracotta); font-family: var(--font-head); font-size: 1.3rem; line-height: 1.6; }
blockquote p { margin: 0; }
@media (min-width: 52rem) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 5rem; }
  .about-heading { position: sticky; top: 7rem; }
}

/* Qualifications: asymmetric 12-col grid */
.qual-grid { display: grid; gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.card h3 { color: var(--sage-deep); }
.card p { margin: 0; color: var(--ink-soft); }
.card-feature { padding: 2.5rem; }
.card-feature h3 { font-size: 1.6rem; }
.card-accent { background: var(--sage-deep); border-color: var(--sage-deep); }
.card-accent h3, .card-accent p { color: #F4F1E8; }
@media (min-width: 52rem) {
  .qual-grid { grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
  .qual-grid > :nth-child(1) { grid-column: 1 / 8; }
  .qual-grid > :nth-child(2) { grid-column: 8 / 13; margin-top: 3rem; }
  .qual-grid > :nth-child(3) { grid-column: 1 / 6; }
  .qual-grid > :nth-child(4) { grid-column: 6 / 13; margin-top: -3rem; }
}

/* Timeline */
.timeline-wrap { max-width: 52rem; }
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(var(--sage), var(--terracotta));
}
.timeline li { position: relative; padding-bottom: 2.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -2.25rem; top: .45rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--sage-deep);
}
.timeline li.current::before { background: var(--terracotta); border-color: var(--terracotta); box-shadow: 0 0 0 5px rgb(185 106 76 / .2); }
.timeline h3 { margin-bottom: .25em; }
.timeline .place { color: var(--teal); font-weight: 600; margin-bottom: .4em; }
.timeline p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.timeline .place:last-child { color: var(--teal); }

/* Services */
.services-grid { display: grid; gap: 1.5rem; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem; }
.service h3 { padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--terracotta); display: inline-block; }
.tick-list li { position: relative; padding: .3rem 0 .3rem 1.8rem; line-height: 1.5; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .7rem; width: .55rem; height: .3rem;
  border-left: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep);
  transform: rotate(-45deg);
}
@media (min-width: 52rem) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-wide { grid-column: 1 / -1; }
  .tick-list-cols { columns: 2; column-gap: 3rem; }
  .tick-list-cols li { break-inside: avoid; }
}

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow); }
.contact-card dl { margin: 0; display: grid; gap: 1.75rem; }
.contact-card dt { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--terracotta-d); margin-bottom: .35rem; }
.contact-card dd { margin: 0; }
address { font-style: normal; }
.phone { font-family: var(--font-head); font-size: 1.7rem; font-weight: 500; text-decoration: none; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border-bottom: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 22rem; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; filter: sepia(.15) saturate(.9); }
@media (min-width: 52rem) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 2rem; }
}

/* Footer */
.site-footer { background: var(--ink); color: #D9D5CB; padding-block: 2rem; font-size: .95rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Additions: email, inner pages, patient information ---------- */
.email-link { font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; overflow-wrap: anywhere; }
.nav-list a[aria-current="page"]:not(.btn) { color: var(--terracotta-d); box-shadow: 0 2px 0 var(--terracotta); }
.site-footer p + p { text-align: right; }

.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 52ch; }

.topics { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); counter-reset: topic; padding-bottom: var(--space-section); }
.topic {
  counter-increment: topic;
  display: grid; gap: 1.75rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.topic-copy::before {
  content: counter(topic, decimal-leading-zero);
  display: block; margin-bottom: .75rem;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .14em;
  color: var(--terracotta-d);
}
.topic-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--sage-deep); }
.topic-copy p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 52rem) {
  .topic { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
  .topic:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .topic:nth-child(even) .video { order: -1; }
  .topic:nth-child(even) .topic-copy { padding-left: 1rem; }
}

.cta-band { text-align: center; }
.cta-band .section-head { margin-inline: auto; margin-bottom: 0; }
.cta-band .cta-row { justify-content: center; }
