:root {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --ink: #26292b;
  --muted: #6b7175;
  --accent: #2f8090;
  --accent-dark: #256974;
  --accent-soft: #e4f0f2;
  --line: #e2e4e3;
  --radius: 14px;
  --wrap: 1080px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --shadow: 0 1px 2px rgba(20, 40, 45, 0.04), 0 8px 24px rgba(20, 40, 45, 0.06);
  --shadow-lift: 0 2px 4px rgba(20, 40, 45, 0.05), 0 16px 40px rgba(20, 40, 45, 0.10);
  --font-head: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: 0.6em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.section { padding: 64px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--cta { background: var(--accent-soft); }
.cta__aside { margin-top: 1.8rem; font-size: 0.92rem; color: var(--muted); }
.section__lead { color: var(--muted); max-width: 56ch; margin-bottom: 2rem; }
.center .section__lead { margin-inline: auto; }
.sub { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 1rem; }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem;
}

.note {
  font-size: 0.85rem; color: var(--muted); background: #fff8e8;
  border-left: 3px solid #e0b96a; padding: 0.7em 1em; border-radius: 0 8px 8px 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.6em; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; line-height: 1;
  border: 1px solid var(--accent);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 105, 116, 0.25);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn--sm { padding: 0.6em 1.15em; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: rgba(248, 247, 245, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(248, 247, 245, 0.92);
  box-shadow: 0 6px 20px rgba(20, 40, 45, 0.05);
}
.topbar__name { font-family: var(--font-head); font-size: 1rem; color: var(--ink); text-decoration: none; }

/* Scroll reveal (only when JS is running, so content never hides without it) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.hero__grid { display: grid; gap: 32px; position: relative; z-index: 1; }

.hero__glow {
  position: absolute; inset: -25% -12% auto -12%; height: 130%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 48% at 10% 24%, rgba(47, 128, 144, 0.22), transparent 70%),
    radial-gradient(38% 44% at 86% 10%, rgba(120, 198, 210, 0.26), transparent 70%),
    radial-gradient(46% 46% at 62% 84%, rgba(228, 186, 168, 0.20), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 92%);
  animation: drift 26s ease-in-out infinite alternate;
}

.hero__in { opacity: 0; animation: fadeUp 0.8s var(--ease) both; animation-delay: var(--d, 0ms); }
.word {
  display: inline-block;
  opacity: 0;
  animation: wordIn 0.9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes photoIn {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.05); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}
.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 48ch; margin-top: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero__actions.center { justify-content: center; }

.social { display: flex; gap: 20px; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.social a {
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.social a:hover { color: var(--accent-dark); border-color: var(--accent); }

.portrait { margin: 0; }
.portrait img {
  display: block; width: 100%; height: auto; max-height: 560px;
  object-fit: cover; object-position: center top;
  border-radius: var(--radius); background: var(--accent-soft);
  box-shadow: var(--shadow);
  animation: photoIn 1.1s var(--ease) both; animation-delay: 220ms;
}

/* Facts */
.facts { background: var(--surface); border-block: 1px solid var(--line); padding: 28px 0; }
.facts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.fact { display: flex; flex-direction: column; gap: 2px; }
.fact__n { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent-dark); line-height: 1.1; }
.fact__l { font-size: 0.85rem; color: var(--muted); }

/* About */
.about { display: grid; gap: 28px; }
.about__photo { margin: 0; }
.about__photo img {
  display: block; width: 100%; height: auto; max-height: 460px;
  object-fit: cover; object-position: center 20%;
  border-radius: var(--radius); background: var(--accent-soft);
}
.prose p { color: #3f4548; }

/* Services */
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.services li {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.services li:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}
.services h3 { margin-bottom: 0.35em; }
.services p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.timeline li { display: grid; grid-template-columns: 1fr; gap: 2px; padding-left: 18px; border-left: 2px solid var(--accent-soft); }
.timeline__year { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--accent); }
.timeline strong { font-weight: 600; }
.timeline p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.badges li {
  position: relative; padding-left: 26px; font-size: 0.95rem; color: #443e38;
}
.badges li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

.prose .note { margin-top: 1.5rem; }

/* Clinics */
.clinics { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 16px; }
.clinic {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.clinic:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}
.clinic h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
.clinic__addr { margin: 0 0 0.4em; font-size: 0.95rem; }
.clinic__meta { margin: 0 0 0.3em; font-size: 0.88rem; color: var(--muted); }
.clinic__meta a { color: var(--accent-dark); text-decoration: none; }
.clinic__meta a:hover { text-decoration: underline; }
.clinic .btn { margin-top: auto; }
.clinic .btn--block { margin-top: 20px; }
.metro {
  display: inline-block; padding-left: 18px; position: relative; color: var(--ink);
}
.metro::before {
  content: "M"; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 9px; font-weight: 700; line-height: 13px; text-align: center;
}

/* Reviews */
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.reviews a {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; text-decoration: none; color: var(--ink);
}
.reviews a { transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.reviews a:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow); }
.reviews span { font-size: 0.88rem; color: var(--muted); }

/* Footer */
.footer { padding: 40px 0 120px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.footer__disclaimer { font-size: 0.8rem; }

/* Sticky mobile CTA */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}

@media (max-width: 699px) {
  .portrait img { max-height: 440px; object-position: center 12%; }
}

@media (min-width: 700px) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .clinics { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
}

@media (min-width: 920px) {
  .hero { padding: 72px 0 80px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
  .about { grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .clinics { grid-template-columns: repeat(3, 1fr); }
  .footer { padding-bottom: 48px; }
  .stickybar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__in, .word, .portrait img { opacity: 1; }
}
