/* Clinic website — shared styles. Colours and fonts are set once here (:root). */
:root {
  --green-900: #173a27;
  --green-700: #2f6b45;
  --green-600: #3b7f53;
  --green-100: #e6efe4;
  --green-50: #f2f7f0;
  --saffron: #c9822b;
  --saffron-100: #f8ead6;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #1f2a24;
  --muted: #5f6f66;
  --line: #e2e6dc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 58, 39, 0.06), 0 8px 24px rgba(23, 58, 39, 0.08);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--green-900);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg, .more svg { width: 18px; height: 18px; flex: none; }
.btn { white-space: nowrap; }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-700); color: #fff; }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--saffron-100); color: var(--green-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(23, 58, 39, 0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.nav-links a:hover { background: var(--green-100); color: var(--green-900); }
.nav-links a[aria-current='page'] { color: var(--green-700); background: var(--green-50); }
.nav-links .btn { margin-left: 8px; min-height: 44px; padding: 10px 20px; color: #fff; }
.nav-links .btn:hover { background: var(--green-900); color: #fff; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--green-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(23, 58, 39, 0.08);
    display: none;
  }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 12px; border-radius: 12px; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ───────── Sections ───────── */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper); }
.section-head { margin-bottom: 40px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--green-700); }
.hero .lead { margin-bottom: 28px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero-note {
  position: absolute;
  bottom: 6%;
  left: -4%;
  background: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 0.92rem;
  max-width: 230px;
}
.hero-note strong { display: block; color: var(--green-900); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-size: 0.95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--green-600); flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 340px; }
  .hero-note { left: 0; }
}

/* Page banner (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); background: linear-gradient(180deg, var(--green-50), var(--cream)); }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.saffron { background: var(--saffron-100); color: var(--saffron); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--green-700); }
.section-alt .card { background: var(--cream); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 1.2rem var(--font-head);
  background: var(--green-700);
  color: #fff;
}

/* Split (image/text) */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; } }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--green-100), var(--saffron-100));
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  max-width: 420px;
  width: 100%;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { font: 600 clamp(4rem, 12vw, 7rem) var(--font-head); color: var(--green-700); opacity: 0.85; }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 24px; list-style: none; }
.badge-list li { background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Therapies (services page) */
.therapy-group + .therapy-group { margin-top: 48px; }
.therapy-group > p { max-width: 46em; }
.therapy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; }
.therapy {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.therapy h4 { margin: 0 0 4px; font: 600 1.08rem var(--font-head); color: var(--green-900); }
.therapy p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.therapy .dur { display: inline-block; margin-top: 8px; font-size: 0.8rem; font-weight: 700; color: var(--saffron); }
.skeleton { background: linear-gradient(90deg, var(--green-50), var(--green-100), var(--green-50)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); min-height: 88px; border: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skeleton { animation: none; }
  .btn, .card { transition: none; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.member { display: flex; gap: 14px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--green-700); color: #fff; font: 600 1.1rem var(--font-head); }
.member strong { display: block; color: var(--green-900); }
.member span { font-size: 0.9rem; color: var(--muted); }

/* CTA band */
.cta-band {
  background: var(--green-900) radial-gradient(circle at 85% 20%, rgba(201, 130, 43, 0.35), transparent 45%);
  color: #e9f1e7;
  border-radius: 28px;
  padding: clamp(32px, 6vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 36em; }

/* Contact block */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; flex: none; }
.contact-list .card-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--green-900); }
.contact-list a { word-break: break-word; }

/* Book page */
.book-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.book-frame-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); min-height: 520px; position: relative; }
.book-frame { width: 100%; border: 0; display: block; min-height: 520px; height: 520px; background: transparent; }
.book-loading { position: absolute; inset: 28px; display: grid; gap: 12px; align-content: start; }
.book-loading[hidden] { display: none; }
.book-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.book-aside .card { padding: 22px; }
.book-aside h3 { font-size: 1.1rem; }
@media (max-width: 960px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-aside { position: static; }
}

/* Footer */
.site-footer { background: var(--green-900); color: #c9d8cc; padding: 56px 0 28px; margin-top: 0; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font: 600 1.05rem var(--font-head); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float[hidden] { display: none; }

/* Reveal on scroll (only when JS runs, see site.js) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
