:root {
  --paper: #fafbf7;
  --surface: #f3efe6;
  --sand: #e9e2d3;
  --deep: #0e2a23;
  --lime: #c9e27a;
  --ink: #10261f;
  --forest: #173e35;
  --forest-2: #1f4c41;
  --muted: #4d6156;
  --mint: #ddeaaf;
  --line: rgba(16, 38, 31, 0.12);
  --display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(96px, 13vw, 176px);
  --radius: clamp(20px, 2.6vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1.0625rem, 0.96rem + 0.3vw, 1.1875rem)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: rgba(23, 62, 53, 0.35) transparent;
}
::selection { background: var(--mint); color: var(--forest); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible { outline-color: var(--lime); }
:focus { scroll-margin-top: 96px; scroll-margin-bottom: 96px; }
h1, h2, h3 { font-family: var(--display); color: var(--forest); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: #fff; }
.skip:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--forest); color: #fff;
  font: 600 1.0625rem/1 var(--body); letter-spacing: -0.005em;
  box-shadow: 0 1px 2px rgba(16, 38, 31, 0.12), 0 8px 24px -10px rgba(23, 62, 53, 0.55);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-pulse { position: relative; isolation: isolate; }
.btn-pulse::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--forest); opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-pulse::after { animation: pulse 2.4s var(--ease-out) 1.6s infinite; }
  .btn-pulse-soft::after { animation-name: pulse-soft; animation-duration: 3s; }
}
@keyframes pulse-soft {
  0% { opacity: 0.3; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.12, 1.35); }
}
@keyframes pulse {
  0% { opacity: 0.45; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.18, 1.45); }
}
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 1rem; box-shadow: none; }
.btn-quiet { background: rgba(23, 62, 53, 0.07); color: var(--forest); box-shadow: none; }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--forest); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(23, 62, 53, 0.25);
  text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color 200ms ease;
}
.link .ic { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--forest-2); box-shadow: 0 1px 2px rgba(16, 38, 31, 0.12), 0 14px 30px -12px rgba(23, 62, 53, 0.6); }
  .btn-quiet:hover { background: rgba(23, 62, 53, 0.12); box-shadow: none; }
  .link:hover { text-decoration-color: currentColor; }
  .link:hover .ic { transform: translate(2px, -2px); }
  .nav nav a:hover { color: var(--forest); }
  .phone:hover { opacity: 0.8; }
  a.fact:hover { opacity: 0.75; }
  summary:hover { color: var(--forest-2); }
}

/* Navigation: translucent material */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 247, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); }
.mark { position: relative; padding-right: 13px; font: 600 2.6rem/0.8 var(--display); letter-spacing: -0.04em; transform: translateY(-3px); }
.mark svg { position: absolute; right: 0; top: -3px; width: 14px; height: 14px; fill: none; stroke: #5d7a63; stroke-width: 2.4; stroke-linecap: round; }
.word { display: flex; flex-direction: column; gap: 5px; }
.name { font: 800 1.5rem/1 var(--display); letter-spacing: -0.045em; }
.name .light { font-weight: 400; }
.word small { font: 600 0.5625rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav nav { display: flex; gap: 34px; margin-left: auto; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; color: var(--muted); transition: color 200ms ease; }

/* Hero */
.hero {
  max-width: calc(var(--max) - 2 * var(--gutter)); margin: clamp(8px, 1.5vw, 20px) auto 0;
  width: calc(100% - 2 * var(--gutter));
  padding: clamp(36px, 6vw, 88px) clamp(24px, 5.5vw, 80px);
  display: grid; grid-template-columns: 1.45fr 0.55fr; gap: clamp(40px, 5vw, 72px); align-items: center;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(201, 226, 122, 0.10), transparent 55%),
    linear-gradient(160deg, var(--forest) 0%, var(--deep) 100%);
  color: rgba(255, 255, 255, 0.78);
}
.hero h1 { color: #fff; }
.hero .btn { background: var(--lime); color: var(--deep); box-shadow: 0 10px 30px -12px rgba(201, 226, 122, 0.55); }
.hero .btn-pulse::after { background: var(--lime); }
.hero .link { color: #fff; text-decoration-color: rgba(201, 226, 122, 0.6); }
.byline { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.byline strong { color: #fff; font-weight: 600; }
.byline span { color: var(--lime); }
.hero .btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
@media (hover: hover) and (pointer: fine) { .hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5); } }
.hero-trust { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 1rem; color: rgba(255, 255, 255, 0.82); }
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero-trust b { color: #fff; font-weight: 600; }
.hero-trust .ic { width: 20px; height: 20px; color: var(--lime); }
.hero-trust a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.btn-book { background: var(--lime); color: var(--deep); }
.btn-book.btn-pulse::after { background: var(--lime); }
@media (hover: hover) and (pointer: fine) { .hero .btn:hover { background: #d6ec8d; box-shadow: 0 14px 34px -12px rgba(201, 226, 122, 0.65); } }
.hero h1 { font-size: clamp(2.2rem, 4.1vw, 3.75rem); line-height: 1.03; font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; }
.hero h1 span { color: #5d7a63; }
.hero-lead { margin-top: 16px; max-width: 44ch; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); line-height: 1.5; color: rgba(255, 255, 255, 0.74); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--deep); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }

/* Facts strip */
.facts {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.facts { margin-top: clamp(8px, 1.5vw, 16px); }
.fact { display: flex; align-items: center; gap: 16px; padding: 28px 28px 28px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--surface); color: var(--forest); }
.fact span { display: flex; flex-direction: column; gap: 4px; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem); font-weight: 600; color: var(--forest); }
.fact b { font-weight: 600; }
.fact small { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
a.fact { transition: opacity 200ms ease; }

/* Section heads */
.head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.head p { color: var(--muted); font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.4375rem); max-width: 52ch; }

/* Services: hairline grid, no cards */
.services { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(40px, 6vw, 88px); }
.service { display: flex; flex-direction: column; gap: 12px; padding: 32px 0 40px; border-top: 1px solid var(--line); }
.service h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.025em; }
.service p { color: var(--muted); max-width: 46ch; }

/* About */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px clamp(48px, 7vw, 104px); align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy p { color: var(--muted); max-width: 52ch; }
.about-copy .link { margin-top: 8px; align-self: flex-start; }
.doctor { display: flex; flex-direction: column; font: 700 clamp(1.25rem, 1.1rem + 0.5vw, 1.6rem)/1.3 var(--display); color: var(--forest) !important; letter-spacing: -0.015em; }
.doctor span { font: 400 1.0625rem/1.5 var(--body); color: var(--muted); letter-spacing: 0; }

/* Preparation: dark band */
.prep { background: linear-gradient(180deg, #eef4d9 0%, #e6efc8 100%); color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 28px; border-top: 1px solid rgba(23, 62, 53, 0.18); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); margin-bottom: 20px; font: 700 0.9375rem/1 var(--display); color: var(--forest); font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 10px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 7vw, 104px); }
.contact-main { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.phone { margin-top: 8px; font: 800 clamp(2.6rem, 6.4vw, 5.75rem)/1 var(--display); letter-spacing: -0.045em; color: var(--forest); transition: opacity 200ms ease; }
.contact-main p { color: var(--muted); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); }
.contact-main .btn { margin-top: 10px; }
.contact-side { display: flex; flex-direction: column; }
.block { padding: 32px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.block:last-child { border-bottom: 1px solid var(--line); }
.block h3 { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); }
address { font-style: normal; color: var(--muted); }
.block .link { align-self: flex-start; }
.hours { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 24px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; color: var(--forest); }
.note { font-size: 0.9375rem; color: var(--muted); }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px clamp(48px, 7vw, 104px); align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0; font: 700 clamp(1.1875rem, 1.05rem + 0.45vw, 1.5rem)/1.35 var(--display); letter-spacing: -0.015em; color: var(--forest);
}
summary::-webkit-details-marker { display: none; }
summary { transition: color 200ms ease; }
summary .ic { width: 22px; height: 22px; color: #5d7a63; transition: transform 300ms var(--ease-out); }
summary:active .ic { transform: scale(0.88); }
details[open] summary:active .ic { transform: rotate(45deg) scale(0.88); }
details[open] summary .ic { transform: rotate(45deg); }
.answer p { padding: 0 48px 28px 0; color: var(--muted); max-width: 60ch; }
.answer a, .about-copy a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(23, 62, 53, 0.3); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 360ms var(--ease-out), opacity 260ms ease, content-visibility 360ms allow-discrete; }
  details[open]::details-content { block-size: auto; opacity: 1; }
}

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 1rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-inner .brand { margin-right: auto; }

/* Mobile call bar */
.mobilebar { display: none; }

/* Motion: hero photo reveal (the one authored moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 900ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 140ms; }
  .hero-copy > :nth-child(4) { animation-delay: 200ms; }
  .hero-copy > :nth-child(5) { animation-delay: 280ms; }
  .hero-photo { animation: unveil 1400ms var(--ease-io) 80ms both; }
  .hero-photo img { animation: settle 1800ms var(--ease-out) 80ms both; }
  .js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes unveil { from { clip-path: inset(18% 8% 0 8% round 48px); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@keyframes settle { from { transform: scale(1.12); } }

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero h1 { font-size: clamp(1.7rem, 7.6vw, 3rem); }
  .hero-copy, .hero-photo { min-width: 0; }
  .hero-photo { aspect-ratio: 4 / 3.6; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .head, .about-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .services, .steps { grid-template-columns: 1fr; }
  .steps { gap: 0; }
  .steps li { padding: 28px 0 32px; }
  .footer { padding-bottom: 120px; }
  .mobilebar {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250, 251, 247, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line);
  }
  .mobilebar .btn { min-height: 50px; padding: 0 16px; }
}
@media (max-width: 480px) {
  .nav .btn-sm span { display: none; }
  .nav .btn-sm { width: 44px; height: 44px; padding: 0; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
