/* V2 — MODERN / HUMAN · Figtree · warm cream, terracotta, sage · 18px base */
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --bg: #fff9f2; --card: #ffffff; --ink: #33261f; --body: #5d5049; --muted: #93837a;
  --terra: #d96a45; --terra-dark: #bf5636; --terra-soft: #fdeae2;
  --sage: #4e7d5b; --sage-soft: #e7f1e9;
  --sun: #f2b84b; --line: #f0e2d6; --line-2: #e3d2c2;
  --r: 20px; --r-lg: 28px;
  --shadow: 0 18px 40px rgba(90, 62, 45, 0.12);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.125rem; line-height: 1.7; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); }
h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.16; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 3.5vw, 40px); }
.section { padding-block: clamp(60px, 8vw, 100px); }
.section-cream { background: #fdf3e7; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.bubble { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--line-2); border-radius: 999px; padding: 10px 20px 10px 12px; font-weight: 700; font-size: 0.95rem; color: var(--ink); box-shadow: 0 6px 14px rgba(90,62,45,.08); }
.bubble .em { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); flex: none; }
.bubble .em svg { width: 19px; height: 19px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,249,242,.95); backdrop-filter: blur(10px); border-bottom: 2px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 18px; }
.nav ul { display: flex; align-items: center; gap: 8px; }
.nav a:not(.btn) { display: block; padding: 11px 16px; border-radius: 12px; font-weight: 700; font-size: 1rem; color: var(--ink); }
.nav a:not(.btn):hover { background: var(--terra-soft); color: var(--terra-dark); }
.nav a.active { background: var(--terra-soft); color: var(--terra-dark); }
.nav-toggle { display: none; place-items: center; width: 52px; height: 52px; border: 2px solid var(--line-2); border-radius: 16px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 23px; height: 23px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: all .18s ease; min-height: 56px; }
.btn svg { width: 19px; height: 19px; }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 12px 26px rgba(217,106,69,.32); }
.btn-terra:hover { background: var(--terra-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-dark); }
.btn-sm { padding: 11px 20px; font-size: 0.95rem; min-height: 48px; }

/* Hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(36px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 92px); }
.hero h1 span.hl { color: var(--terra); }
.hero-sub { font-size: 1.18rem; margin-bottom: 30px; max-width: 30em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.hero-note svg { width: 21px; height: 21px; color: var(--sage); }
.hero-note strong { white-space: nowrap; }
.hero-photo { position: relative; }
.hero-photo .blob { border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%; overflow: hidden; box-shadow: var(--shadow); border: 8px solid #fff; }
.hero-photo img { width: 100%; aspect-ratio: 10/10.8; object-fit: cover; object-position: center top; }
.hi-card { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px 20px; font-weight: 800; color: var(--ink); animation: bob 6s ease-in-out infinite; }
.hi-card small { display: block; font-weight: 600; color: var(--muted); font-size: 0.82rem; }
.hi-a { top: 8%; left: -18px; transform: rotate(-2deg); }
.hi-b { bottom: 10%; right: -10px; transform: rotate(1.5deg); animation-delay: 1.2s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Big reassure strip */
.reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.r-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 26px 24px; text-align: center; }
.r-card .em { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; }
.r-card .em svg { width: 27px; height: 27px; }
.r-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.r-card p { margin: 0; font-size: 0.98rem; }
.c-terra { background: var(--terra-soft); color: var(--terra-dark); }
.c-sage { background: var(--sage-soft); color: var(--sage); }
.c-sun { background: #fdf0d5; color: #a97a14; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; transition: all .2s ease; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.svc .em { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.svc .em svg { width: 27px; height: 27px; }
.svc p { font-size: 0.99rem; margin-bottom: 14px; }
.svc .more { font-weight: 800; color: var(--terra-dark); }
.svc .more::after { content: " →"; }

/* Doctor */
.doc-panel { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(28px, 4vw, 52px); background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 46px); align-items: center; }
.doc-panel .photo { border-radius: var(--r); overflow: hidden; }
.doc-panel .photo img { width: 100%; aspect-ratio: 10/11; object-fit: cover; object-position: center top; }
.said { background: var(--sage-soft); border-radius: 18px 18px 18px 4px; padding: 18px 22px; margin: 20px 0; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.said b { color: var(--sage); }
.fact-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 22px; }
.fact { background: var(--bg); border: 2px solid var(--line-2); border-radius: 999px; padding: 9px 17px; font-weight: 800; font-size: 0.88rem; color: var(--ink); }
.plain-list { display: grid; gap: 12px; margin-bottom: 24px; }
.plain-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.plain-list svg { width: 24px; height: 24px; color: var(--sage); flex: none; margin-top: 2px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; position: relative; }
.step-n { position: absolute; top: -18px; left: 26px; background: var(--terra); color: #fff; font-weight: 800; border-radius: 999px; padding: 6px 16px; font-size: 0.95rem; box-shadow: 0 8px 18px rgba(217,106,69,.35); }
.step h3 { margin-top: 12px; }
.step p { margin: 0; font-size: 1rem; }

/* Reviews */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; }
.rev .stars { color: var(--sun); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.rev blockquote { margin: 0 0 16px; font-weight: 600; color: var(--ink); font-size: 1rem; }
.rev .who { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; }
.rev .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.rev .who strong { color: var(--ink); display: block; }
.rev .who span { color: var(--muted); font-weight: 600; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 14px; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 4px 24px; }
.faq details[open] { border-color: var(--terra); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 0; cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { color: var(--terra); font-weight: 800; }
.faq p { padding-bottom: 20px; margin: 0; font-size: 1.02rem; }

/* CTA */
.cta { background: var(--terra); border-radius: var(--r-lg); padding: clamp(38px, 5vw, 60px); text-align: center; color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #ffe3d8; font-size: 1.12rem; max-width: 34em; margin: 0 auto 26px; }
.cta .btn-white { background: #fff; color: var(--terra-dark); }
.cta .btn-white:hover { background: var(--sun); color: var(--ink); }

/* Page hero + contact */
.page-hero { background: #fdf3e7; border-bottom: 2px solid var(--line); padding: clamp(44px, 6vw, 76px) 0; }
.crumbs { font-weight: 700; font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--terra-dark); }
.contact-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 4.5vw, 60px); align-items: start; }
.form-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 800; color: var(--ink); font-size: 1rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); border: 2px solid var(--line-2); border-radius: 14px; background: var(--bg); padding: 14px 16px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); background: #fff; box-shadow: 0 0 0 4px rgba(217,106,69,.12); }
.field input.invalid { border-color: #c0392b; background: #fdecea; }
.form-status { display: none; margin-top: 14px; background: var(--sage-soft); color: #2c5e3c; border-radius: 12px; padding: 13px 16px; font-weight: 700; }
.form-status.show { display: block; }
.side { display: grid; gap: 16px; }
.side-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; }
.side-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.side-card h3 svg { width: 22px; height: 22px; color: var(--terra); }
.side-card p { margin: 0; font-size: 1rem; }
.side-card.warm { background: #fdf0d5; border-color: #ecd9a8; }
.map { border-radius: var(--r-lg); overflow: hidden; border: 2px solid var(--line); margin-top: 46px; }
.map iframe { width: 100%; height: 400px; border: 0; display: block; }
.badge-open, .badge-closed { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.92rem; padding: 9px 16px; border-radius: 999px; margin-top: 12px; }
.badge-open { background: var(--sage-soft); color: #2c5e3c; }
.badge-closed { background: #f1e7dd; color: var(--body); }
.badge-open .dot, .badge-closed .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

/* Footer */
.site-footer { background: #2e211b; color: #c9b8ac; margin-top: clamp(56px, 8vw, 96px); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.15fr; gap: 34px; padding: clamp(44px, 6vw, 68px) 0 40px; }
.site-footer h4 { color: #fff; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { display: grid; gap: 11px; }
.site-footer a { color: #ddcfc4; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.f-name { color: #fff; font-weight: 800; font-size: 1.3rem; }
.f-name small { display: block; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: #a08b7d; margin-top: 4px; }
.site-footer p { font-size: 0.97rem; }
.f-fine { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.f-fine p { margin: 0; }

/* Mobile */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px rgba(78,125,91,.4); }
.float-wa svg { width: 29px; height: 29px; }
.mobile-bar { display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 60; grid-template-columns: 1fr 1fr 1fr; background: rgba(255,249,242,.98); border-top: 2px solid var(--line-2); padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); }
.mobile-bar a { display: grid; place-items: center; gap: 3px; font-size: 0.8rem; font-weight: 800; color: var(--ink); min-height: 48px; border-radius: 12px; padding: 6px 4px; }
.mobile-bar .m-book { background: var(--terra); color: #fff; margin-inline: 4px; }
.mobile-bar svg { width: 20px; height: 20px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 1020px) { .reassure, .svc-grid, .steps, .rev-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } .doc-panel { grid-template-columns: 1fr; } .doc-panel .photo { max-width: 400px; } }
@media (max-width: 900px) {
  .nav { position: fixed; top: 80px; left: 10px; right: 10px; background: #fff; border: 2px solid var(--line-2); border-radius: 24px; padding: 14px 18px 20px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: all .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav ul a:not(.btn) { font-size: 1.08rem; padding: 14px 16px; }
  .nav .btn { margin-top: 10px; width: 100%; }
  .nav-toggle { display: grid; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 500px; }
  .hi-a { left: -4px; } .hi-b { right: -2px; }
}
@media (max-width: 640px) {
  .reassure, .svc-grid, .steps, .rev-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .float-wa { display: none; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 78px; }
  .footer-grid { grid-template-columns: 1fr; }
  .f-fine { justify-content: center; text-align: center; }
  .step { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } }
/* Responsive logo */
.logo-pic { display: inline-flex; }
.logo-img { height: 52px; width: auto; }
@media (min-width: 901px) { .logo-img { height: 48px; } }
@media (max-width: 900px) { .logo-img { height: 44px; } }
@media (max-width: 640px) { .logo-img { height: 40px; } }
/* Mobile compactness */
@media (max-width: 640px) {
  .hero-grid { padding-block: 36px 28px; }
  .hero-photo .blob img { aspect-ratio: 10 / 8.5; }
  .hero-photo { max-width: 320px; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hero-photo .blob { width: 100%; }
  .hi-card { position: static; animation: none; transform: none; padding: 10px 14px; font-size: 0.9rem; }
  .hi-card small { font-size: 0.72rem; }
  .doc-panel .photo img { aspect-ratio: 10 / 9; }
  .doc-panel .photo { max-width: 280px; margin-inline: auto; }
  .svc, .r-card, .step, .rev { padding: 22px 18px; }
  .svc p { font-size: 0.92rem; }
  .said { font-size: 0.95rem; padding: 14px 16px; }
}

/* Mobile compactness â€” doctor photo fix */
@media (max-width: 640px) {
  .hero-photo, .doc-panel .photo { max-width: 300px; margin-inline: auto; }
  .hero-photo .blob img, .doc-panel .photo img { aspect-ratio: 10 / 9.5 !important; height: auto !important; }
  .doc-panel { padding: 20px 16px; }
}

/* Logo alignment fix */
.header-inner { align-items: center; }
.logo, .logo-pic { display: inline-flex; align-items: center; }
@media (max-width: 640px) { .logo-img { height: 48px !important; } }

/* Buttons & CTAs: no link underline */
a.btn, .btn, a[class*="cta"], .mast-nav .cta, .nav a.btn, .mobile-bar a { text-decoration: none !important; }
a.btn:hover, .btn:hover { text-decoration: none !important; }

/* Fallback-reveal mode: paint instantly, no animation (applied by app.js safety net) */
html.no-fx .reveal { transition: none !important; animation: none !important; }
html.no-fx .reveal.in { opacity: 1 !important; transform: none !important; }
/* ---------- Service cards: symmetric alignment ---------- */
.svc-grid { align-items: stretch; }
.svc { display: flex; flex-direction: column; }
.svc .more { margin-top: auto; }
/* Nearby-towns note above the map */
.nearby-note { text-align: center; color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 46em; margin: 20px auto 0; }
.nearby-note strong { color: var(--ink); font-weight: 700; }