:root {
  --paper: #faf7f2;
  --paper-2: #f2ece3;
  --ink: #1f1a17;
  --muted: #5a514b;
  --accent: #8a2a30;
  --accent-dark: #6e1f24;
  --line: #d9cfc2;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons: one square corner style everywhere */
.btn { display: inline-block; white-space: nowrap; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: .9rem 1.5rem; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-small { padding: .55rem 1rem; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, .96); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.wordmark { font: 600 1.55rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; margin: 0; }
.wordmark span { color: var(--accent); font-style: italic; font-weight: 500; }
nav { margin-left: auto; }
nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-size: .98rem; }
nav a:hover { color: var(--accent); text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem; align-items: center; }
.hero-lang { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); margin-bottom: .75rem; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.rating { display: inline-block; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.rating span { color: var(--accent); }
.rating:hover { color: var(--accent); }
.hero-photo { margin: 0; }
.hero-photo img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; width: 100%; }
figcaption { font: italic 500 .98rem/1.4 var(--serif); color: var(--muted); margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }

/* About: editorial text block */
.about { padding: 5rem 0; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem 4rem; }
.about-text { max-width: 62ch; }
.about-lead { font: 500 1.45rem/1.45 var(--serif); }
.pull { grid-column: 2; margin: 1.5rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); font: italic 500 1.6rem/1.3 var(--serif); color: var(--accent); }

/* First visit */
.visit { padding: 5rem 0; background: var(--paper-2); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.visit-photo { margin: 0; }
.visit-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.steps { list-style: none; counter-reset: s; margin: 1.5rem 0 2rem; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.5rem 4rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.35rem; font: italic 500 2.6rem/1 var(--serif); color: var(--accent); }
.steps li + li { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.steps li + li::before { top: 1.15rem; }
.steps h3 span { font: 400 1rem var(--sans); color: var(--muted); margin-left: .5rem; }
.forms a { display: block; margin-top: .35rem; font-weight: 600; }

/* Services: the only card grid */
.services { padding: 5rem 0; }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); max-width: 62ch; margin-top: .4rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(5, 1fr); } }
.cards li { padding: 1.4rem 1.25rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cards p { margin: 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Team */
.team { padding: 5rem 0; border-top: 1px solid var(--line); }
.doctor { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 3.5rem; align-items: center; margin: 2rem 0 3.5rem; }
.doctor figure { margin: 0; }
.doctor img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; clip-path: inset(4px); }
.doctor h3 { font-size: 2rem; }
.doctor p { max-width: 58ch; }
.creds { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.creds li { padding: .7rem 0; border-top: 1px solid var(--line); }
.staff { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 4rem; margin: 0; }
.staff div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.staff dt { font: 600 1.25rem var(--serif); }
.staff dt span { display: block; font: 400 .95rem var(--sans); color: var(--muted); }
.staff dd { margin: .35rem 0 0; }

/* Insurance */
.insurance { padding: 4.5rem 0; background: var(--ink); color: #f4efe8; }
.ins-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
.insurers { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .25rem 0; font: 500 1.35rem/1.6 var(--serif); }
.insurers li:not(:last-child)::after { content: "·"; margin: 0 .7rem; color: #d9a3a6; }
.insurance p { max-width: 60ch; }

/* FAQ */
.faq { padding: 5rem 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 600 1.15rem var(--serif); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { max-width: 62ch; color: var(--muted); }

/* Contact */
.contact { padding: 5rem 0; background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
.addr { font: 500 1.35rem/1.4 var(--serif); }
.big-phone a { font: 600 2rem var(--serif); text-decoration: none; }
.hours { border-collapse: collapse; margin: 1.5rem 0; width: 100%; }
.hours caption { text-align: left; font: 600 1.15rem var(--serif); padding-bottom: .5rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 1.5rem; white-space: nowrap; }
.map { background: #e6ded3; min-height: 360px; }

/* Footer */
.site-footer { background: var(--ink); color: #e9e2d9; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.wordmark-footer { color: #fff; margin-bottom: 1rem; }
.wordmark-footer span { color: #e3b1b4; }
.copy { font-size: .9rem; color: #b9b0a6; margin-top: 1.5rem; }

.callbar { display: none; }

.legal { max-width: 720px; padding: 3.5rem 0 5rem; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3rem); max-width: none; }
.legal h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.updated { margin-top: 2.5rem; color: var(--muted); }

@media (max-width: 980px) {
  nav { display: none; }
  .header-row { justify-content: space-between; }
  .hero-grid, .visit-grid, .contact-grid, .about-grid, .section-head, .ins-grid, .faq-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .pull { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: 4rem; }
  .header-row .btn-small { display: none; }
  .wordmark { font-size: 1.35rem; }
  .hero { padding: 2rem 0 3rem; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .doctor, .staff { grid-template-columns: 1fr; gap: 1.5rem; }
  .doctor figure { max-width: 320px; }
  .gallery { grid-template-columns: 1fr; }
  .about, .visit, .services, .team, .faq, .contact { padding: 3.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--accent); color: #fff; text-align: center; font-weight: 600; padding: 1rem; text-decoration: none; }
  .callbar:hover { color: #fff; background: var(--accent-dark); }
}

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