/* ==========================================================================
   MYM Centre — "Sage & Sand" theme
   ========================================================================== */

:root {
  --ink: #17332e;
  --ink-soft: #3c524d;
  --stone: #5f6b67;
  --brand: #3a9e82;
  --brand-strong: #256f5b;
  --brand-tint: #e3f2ec;
  --sand: #f5efe6;
  --sand-deep: #ebe2d4;
  --paper: #fbf9f5;
  --white: #ffffff;
  --line: #e4ddd1;
  --shadow-sm: 0 1px 2px rgba(23, 51, 46, .06), 0 2px 8px rgba(23, 51, 46, .05);
  --shadow-md: 0 6px 24px rgba(23, 51, 46, .10);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --header-h: 72px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-strong); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-tint); color: var(--ink); }
.btn-outline { border-color: currentColor; color: var(--brand-strong); background: transparent; }
.btn-outline:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d9e7e2; font-size: .875rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #d9e7e2; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; }
.topbar-tag { font-family: var(--font-display); font-style: italic; letter-spacing: .02em; }
.topbar-tag b { color: #8fd6bf; font-weight: 500; }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar .topbar-social { gap: 0; }
.topbar .topbar-social svg { width: 16px; height: 16px; }
.topbar-links .topbar-social + .topbar-social { margin-left: -6px; }
@media (max-width: 767px) {
  .topbar .topbar-tag, .topbar .topbar-email { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 245, .94);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand img { width: 200px; height: auto; mix-blend-mode: multiply; }
@media (min-width: 1024px) { .brand img { width: 250px; } }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block; padding: 10px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav-list a:hover { background: var(--brand-tint); }
.nav-list a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-tint); }
.nav-cta { margin-left: 8px; }
.nav-list .btn-primary, .nav-list .btn-primary:hover { color: #fff; }
.nav-list .btn-primary { background: var(--brand-strong); padding: .75em 1.3em; }
.nav-list .btn-primary:hover { background: var(--ink); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1099px) {
  /* backdrop-filter would make the fixed menu panel position relative to the header */
  .site-header { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    padding: 16px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; transform: translateY(-12px); visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-open .site-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav-open .nav-toggle .icon-menu { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 16px; font-size: 1.125rem; border-radius: 12px; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 38, 33, .88) 0%, rgba(14, 38, 33, .62) 45%, rgba(14, 38, 33, .15) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(72px, 12vw, 150px); }
.hero-content { max-width: 640px; }
.hero h1 { color: #fff; font-weight: 400; }
.hero h1 em { font-style: italic; color: #a6e3cf; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #e4efeb; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 14px;
}
.hero .eyebrow { color: #a6e3cf; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding: 0; list-style: none; font-size: .92rem; color: #d3e6df; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: #a6e3cf; flex: none; }

/* ---------- Page header ---------- */
.page-header { position: relative; background: var(--sand); overflow: hidden; padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-header .ripple { position: absolute; right: -120px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); color: var(--sand-deep); pointer-events: none; }
.page-header .container { position: relative; }
.page-header h1 { margin-bottom: .3em; }
.page-header .quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--brand-strong); margin: 0; max-width: 620px; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .88rem; color: var(--stone); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b8b0a3; }
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-strong); }
@media (max-width: 767px) { .page-header .ripple { width: 380px; height: 380px; right: -180px; opacity: .7; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.section-ink { background: var(--ink); color: #d3e3dd; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--stone); font-size: 1.1rem; }
.section-ink .section-head p { color: #b8cec7; }
.section-ink .eyebrow { color: #8fd6bf; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-strong); margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }

.feature-card { transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--sand-deep); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-tall { aspect-ratio: 4 / 3; }
.media-wide { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .media-tall { aspect-ratio: 4 / 5; } }

/* Conditions */
.condition-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.condition-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-deep); }
.condition-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.condition-card:hover .thumb img { transform: scale(1.04); }
.condition-card .body { padding: 24px 26px 28px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.check-list li { position: relative; padding-left: 28px; line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23256f5b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px 24px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { background: var(--brand-tint); color: var(--brand-strong); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 500; line-height: 1.4; }
.tags.on-white li { background: var(--sand); color: var(--ink-soft); }

/* Quote block */
.pull-quote { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--ink); font-style: italic; margin: 0 0 24px; padding-left: 24px; border-left: 3px solid var(--brand); }
.pull-quote cite { display: block; font-size: .95rem; font-style: normal; font-family: var(--font-body); color: var(--stone); margin-top: 10px; }

/* Therapies */
.therapy { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.therapy:first-child { border-top: 0; padding-top: 0; }
.therapy .media-frame { aspect-ratio: 4 / 3; max-width: 520px; width: 100%; }
@media (min-width: 900px) {
  .therapy { grid-template-columns: 5fr 6fr; }
  .therapy:nth-child(even) .media-frame { order: 2; justify-self: end; }
}
.therapy-num { font-family: var(--font-display); font-size: 1rem; color: var(--brand); letter-spacing: .1em; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 28px 24px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); margin-bottom: 8px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; font-size: .98rem; }

/* Doctors */
.doctor { display: grid; gap: 0; overflow: hidden; padding: 0; }
.doctor .photo { aspect-ratio: 1 / 1; background: var(--sand-deep); overflow: hidden; }
.doctor .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.doctor .body { padding: clamp(24px, 3.5vw, 40px); }
.doctor .role { color: var(--brand-strong); font-weight: 600; font-size: .95rem; margin: -6px 0 14px; }
.doctor dl { margin: 18px 0 0; display: grid; gap: 16px; }
.doctor dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--stone); margin-bottom: 6px; }
.doctor dd { margin: 0; }
@media (min-width: 900px) {
  .doctor { grid-template-columns: 340px 1fr; }
  .doctor .photo { aspect-ratio: 4 / 5; align-self: start; margin: 24px 0 24px 24px; border-radius: var(--radius-sm); }
}
.doctor-mini { display: flex; gap: 18px; align-items: center; }
.doctor-mini img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.doctor-mini h3 { margin: 0 0 2px; font-size: 1.2rem; }
.doctor-mini p { margin: 0; font-size: .95rem; color: var(--stone); line-height: 1.5; }

/* Testimonials */
.testimonials { columns: 1; column-gap: clamp(16px, 2.4vw, 28px); }
@media (min-width: 700px) { .testimonials { columns: 2; } }
@media (min-width: 1100px) { .testimonials { columns: 3; } }
.testimonial { break-inside: avoid; margin: 0 0 clamp(16px, 2.4vw, 28px); position: relative; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: 1rem; }
.testimonial .mark { font-family: var(--font-display); font-size: 3.6rem; line-height: .6; color: var(--brand); display: block; height: 28px; }
.testimonial figcaption { font-weight: 600; color: var(--ink); font-size: .95rem; }
.testimonial figcaption::before { content: "— "; color: var(--brand); }
.testimonial.featured { background: var(--ink); border-color: var(--ink); color: #d3e3dd; }
.testimonial.featured figcaption { color: #fff; }

.quote-slider { align-items: start; display: grid; grid-auto-flow: column; grid-auto-columns: min(88%, 420px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; margin: 0 -4px; scrollbar-width: thin; }
.quote-slider > * { scroll-snap-align: start; margin: 0; }

/* Award */
.award { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; }
.award img { max-width: 320px; width: 100%; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
@media (min-width: 800px) { .award { grid-template-columns: 320px 1fr; } }

/* Videos */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #0d1f1b; }
.video-frame iframe, .video-frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame button { cursor: pointer; padding: 0; background: #0d1f1b; }
.video-frame button img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video-frame button:hover img { opacity: 1; }
.video-frame .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--brand-strong); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.video-frame .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video figcaption { margin-top: 10px; font-weight: 600; color: #fff; }

/* Events / news */
.event-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; height: 100%; transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.event-card .thumb { aspect-ratio: 4 / 3; background: var(--sand-deep); overflow: hidden; }
.event-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.event-card .year { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--brand-strong); text-transform: uppercase; }
.event-card h3 { font-size: 1.12rem; margin: 6px 0 12px; line-height: 1.35; }
.event-card .more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--brand-strong); display: inline-flex; align-items: center; gap: 6px; }
.event-card .more svg { width: 16px; height: 16px; }

.press-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.press-item { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.press-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: inherit; }
.press-item .meta { font-size: .85rem; color: var(--stone); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.press-item .pub { font-weight: 600; color: var(--brand-strong); }
.press-item .topic { font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; line-height: 1.4; }
.press-item .arrow { display: none; color: var(--brand-strong); }
@media (min-width: 760px) {
  .press-item { grid-template-columns: 170px 1fr 24px; align-items: center; }
  .press-item .meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .press-item .arrow { display: block; width: 20px; height: 20px; }
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filter-tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; font-weight: 500; font-size: .95rem; }
.filter-tabs a:hover { border-color: var(--brand); color: var(--brand-strong); }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.gallery > a, .gallery figure > a { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand-deep); position: relative; }
.gallery > a img, .gallery figure > a img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery > a:hover img, .gallery figure > a:hover img { transform: scale(1.05); }
.gallery.docs > a, .gallery.docs figure > a { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); }
.gallery.docs > a img, .gallery.docs figure > a img { object-fit: contain; padding: 10px; }
.gallery figcaption, .doc-caption { font-size: .92rem; font-weight: 500; color: var(--ink); margin-top: 8px; line-height: 1.4; }
.gallery figure { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(8, 20, 17, .94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #cfdcd8; font-size: .9rem; }
@media (max-width: 640px) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
}

/* FAQ accordion */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23256f5b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Myths & facts */
.myth { padding: 0; overflow: hidden; }
.myth > div { padding: 20px 24px; }
.myth .label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.myth .is-myth { background: var(--sand); }
.myth .is-myth .label { color: #a35b3c; }
.myth .is-myth p { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); text-decoration: line-through; text-decoration-color: rgba(163, 91, 60, .5); }
.myth .is-fact .label { color: var(--brand-strong); }
.myth p { margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--brand-strong); color: #e6f4ef; border-radius: calc(var(--radius) + 8px); padding: clamp(32px, 6vw, 64px); display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .ripple { position: absolute; right: -140px; bottom: -200px; width: 520px; height: 520px; color: rgba(255,255,255,.08); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* Book promo */
.book { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.book img { max-width: 300px; width: 100%; margin: 0 auto; mix-blend-mode: multiply; }
@media (min-width: 800px) { .book { grid-template-columns: 340px 1fr; } }

/* Contact */
.contact-layout { display: grid; gap: clamp(24px, 4vw, 48px); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 5fr 7fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-badge { width: 46px; height: 46px; border-radius: 12px; margin: 0; flex: none; }
.contact-list .icon-badge svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a { word-break: break-word; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--sand-deep); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); background: #fff; }
.field .hint { font-size: .85rem; color: var(--stone); margin-top: 4px; }
.field.has-error input, .field.has-error textarea { border-color: #b4533a; }
.field .error-msg { display: none; color: #a1432c; font-size: .85rem; margin-top: 4px; }
.field.has-error .error-msg { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; display: flex; gap: 12px; align-items: flex-start; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.alert-success { background: var(--brand-tint); color: var(--ink); border: 1px solid #b9e0d2; }
.alert-error { background: #fbeae4; color: #6e2b1a; border: 1px solid #efc5b7; }
.alert p { margin: 0; }
.form-note { font-size: .85rem; color: var(--stone); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0f2622; color: #b5c9c3; font-size: .95rem; padding-top: clamp(48px, 7vw, 80px); }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 18px; }
.site-footer a { color: #d6e6e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.footer-logo img { width: 200px; }
.footer-brand p { max-width: 340px; }
.site-footer .muted { color: #8ea7a0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #8fd6bf; }
.footer-book { display: flex; gap: 14px; align-items: flex-start; }
.footer-book + .footer-book { margin-top: 16px; }
.footer-book img { width: 72px; height: auto; flex: none; border-radius: 4px; background: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--brand); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; color: #8ea7a0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom p { margin: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--stone); }
.stack > * + * { margin-top: 1rem; }

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

/* Books */
.book-card { display: grid; gap: 24px; align-items: start; }
.book-card img { width: 100%; max-width: 220px; margin: 0 auto; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); background: #fff; }
.book-card h3 { margin-bottom: .6em; }
.book-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .book-card { grid-template-columns: 180px 1fr; } .book-card img { max-width: none; } }

/* Doctor honours */
.honours { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.honours li { padding-left: 16px; border-left: 2px solid var(--brand-tint); }
.honours strong { color: var(--ink); }
