/* ========================================================================
   COMPONENTS
   ======================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step--1);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  min-height: 44px;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-800); box-shadow: var(--shadow-lift); }

.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-300); }

.btn-outline { background: transparent; border-color: currentColor; color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-050); }
.section--dark .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.section--dark .btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-whatsapp { background: var(--green-600); color: #fff; }
.btn-whatsapp:hover { background: var(--green-700); }

.btn-ghost { background: transparent; color: var(--navy-700); padding-inline: 0.2em; }
.btn-ghost:hover { color: var(--gold-700); }

.btn-sm { padding: 0.6em 1.2em; font-size: var(--step--1); min-height: 38px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,244,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(12,62,107,0.02), 0 12px 24px -18px rgba(12,62,107,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.1rem;
  gap: 1.5rem;
}
.brand-mark {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--navy-800); text-decoration: none;
}
.brand-mark svg { flex-shrink: 0; }
.brand-mark__logo {
  flex-shrink: 0;
  width: auto; height: 68px;
  object-fit: contain;
  border-radius: 9px;
}
.brand-mark small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.04em; color: var(--gray-600); margin-top: 2px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.1rem);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  font-size: var(--step--1); position: relative; padding-block: 0.4rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy-800); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-actions .btn-outline { display: none; }

@media (min-width: 980px) {
  .nav-links { display: flex; }
  .nav-actions .btn-outline { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; cursor: pointer;
}
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: var(--navy-800);
  color: #fff;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem var(--gutter); }
.mobile-nav__close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; cursor: pointer; }
.mobile-nav__links { list-style: none; margin: 0; padding: 1rem var(--gutter); display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.mobile-nav__links a { color: #fff; text-decoration: none; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-nav__actions { padding: 1.25rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.mobile-nav__actions .btn { width: 100%; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--navy-050) 0%, var(--paper) 65%);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: var(--step-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.hero-microlink { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); color: var(--ink-soft); }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 700px) { .hero-visual { aspect-ratio: 5 / 4; } }

.hero-visual--intro {
  opacity: 0; transform: translateY(18px);
  animation: reveal-up 0.9s var(--ease) 0.15s forwards;
}

@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero p.lead, .hero-actions {
  opacity: 0; transform: translateY(14px);
  animation: reveal-up 0.7s var(--ease) forwards;
}
.hero p.lead { animation-delay: 0.1s; }
.hero-actions { animation-delay: 0.2s; }

/* ---------- Image placeholder ---------- */
.img-slot {
  position: relative;
  width: 100%; height: 100%;
  min-height: 220px;
  background:
    linear-gradient(135deg, var(--navy-100) 0%, var(--paper-alt) 100%);
  border: 1px dashed var(--navy-500);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-700);
  text-align: center;
  border-radius: inherit;
}
.img-slot__inner { padding: 1.5rem; max-width: 320px; }
.img-slot__icon { margin: 0 auto 0.75rem; opacity: 0.8; }
.img-slot__label { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600; }
.img-slot__path { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--gray-600); margin-top: 0.4rem; word-break: break-all; }

/* ---------- Map embed ---------- */
.map-embed { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed__cta {
  position: absolute; bottom: 0.85rem; right: 0.85rem;
  background: var(--navy-800); color: #fff; text-decoration: none;
  font-size: 0.78rem; font-weight: 600; padding: 0.55em 1em;
  border-radius: 999px; box-shadow: var(--shadow-soft);
}
.map-embed__cta:hover { background: var(--navy-700); }
.img-real { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.img-real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-real__badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(6,33,58,0.72); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.03em;
  padding: 0.35em 0.7em; border-radius: 999px; backdrop-filter: blur(2px);
}
.img-real__credit {
  position: absolute; bottom: 0.6rem; right: 0.75rem;
  background: rgba(6,33,58,0.55); color: rgba(255,255,255,0.9);
  font-size: 0.66rem; padding: 0.25em 0.6em; border-radius: 999px;
  text-decoration: none;
}
.img-real__credit:hover { background: rgba(6,33,58,0.8); }
.card-media .img-real__badge, .card-media .img-real__credit { font-size: 0.58rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media .img-slot { border-radius: 0; border-width: 0 0 1px; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.card-body p { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1em; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  color: var(--navy-700); font-weight: 600; font-size: var(--step--1);
  text-decoration: none;
}
.card-link svg { transition: transform 0.2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

.value-card {
  border-left: 3px solid var(--gold-500);
  background: var(--navy-050);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.6rem;
}
.value-card h4 { margin-bottom: 0.3em; font-size: var(--step-0); }
.value-card p { font-size: var(--step--1); color: var(--ink-soft); margin: 0; }

/* ---------- Process steps ---------- */
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.process-step { background: #fff; padding: 1.6rem 1.75rem; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.process-step .index { font-family: var(--font-mono); color: var(--gold-700); font-size: var(--step-1); font-weight: 600; }
.process-step h4 { margin-bottom: 0.25em; }
.process-step p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Testimonial / patient story ---------- */
.story-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
}
.story-card__media { aspect-ratio: 4/3; }
.story-card__body { padding: 1.75rem; }
.story-card__quote { font-family: var(--font-display); font-size: var(--step-1); color: var(--navy-800); line-height: 1.4; margin-bottom: 1rem; }
.story-card__meta { display: flex; align-items: center; gap: 0.75rem; font-size: var(--step--1); color: var(--gray-600); }
.story-card--tall { margin: 0; }
.story-card--tall .story-card__media { aspect-ratio: 4/5; }
.story-card--tall .story-card__body { display: flex; flex-direction: column; flex: 1; }
.story-card--tall .story-card__quote { margin: 0 0 1rem; font-size: var(--step-0); }
.story-card--tall .story-card__quote p { margin: 0 0 0.7em; max-width: none; }
.story-card--tall .story-card__quote p:last-child { margin-bottom: 0; }
.story-card--tall .story-card__consent { align-self: flex-start; }
.story-grid { max-width: 940px; margin-inline: auto; }
.story-card__consent { display: inline-block; margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--green-700); background: var(--green-100); padding: 0.3em 0.7em; border-radius: 999px; }

/* ---------- Sample story layout (used until real, consented stories are supplied) ---------- */
.story-card--sample { position: relative; border-style: dashed; border-color: var(--gold-500); }
.story-card--sample .story-card__quote { color: var(--ink-soft); font-style: italic; }
.story-card__sample-badge {
  position: absolute; top: 0.85rem; left: 0.85rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em;
  background: var(--gold-500); color: var(--navy-900);
  padding: 0.35em 0.75em; border-radius: 999px; font-weight: 600;
}

/* ---------- Before / After slider ---------- */
.ba-slider {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg);
  overflow: hidden; touch-action: pan-y; user-select: none;
  border: 1px solid var(--border);
}
.ba-slider__before, .ba-slider__after { position: absolute; inset: 0; }
.ba-slider__after { clip-path: inset(0 0 0 50%); }
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; background: #fff; transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  cursor: ew-resize;
}
.ba-slider__handle button {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center; cursor: ew-resize;
}
.ba-label { position: absolute; top: 1rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; background: rgba(6,33,58,0.7); color: #fff; padding: 0.35em 0.8em; border-radius: 999px; }
.ba-label--before { left: 1rem; }
.ba-label--after { right: 1rem; }

.ba-empty {
  border: 1px dashed var(--navy-500); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem); text-align: center; background: var(--navy-050);
}

/* ---------- FAQ Accordion ---------- */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.35rem 0.25rem; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-0); color: var(--navy-800);
}
.faq-question .plus { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--gold-600); }
.faq-question[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-answer__inner { padding: 0 0.25rem 1.5rem; color: var(--ink-soft); font-size: var(--step--1); max-width: 68ch; }
.faq-placeholder { color: var(--gold-700); font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .form-grid.two-col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--navy-800); }
.field .hint { font-size: 0.78rem; color: var(--gray-600); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.8em 1em; font-size: var(--step--1); font-family: inherit;
  background: #fff; color: var(--ink); min-height: 44px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100);
}
.field-checkbox { display: flex; align-items: flex-start; gap: 0.6rem; }
.field-checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy-700); }
.field-checkbox label { font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); }
.form-privacy { font-size: 0.8rem; color: var(--gray-600); margin-top: 0.5rem; }

.form-status {
  display: none; align-items: center; gap: 0.7rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: var(--step--1);
  margin-top: 1.25rem;
}
.form-status.is-visible { display: flex; }
.form-status--success { background: var(--green-100); color: var(--green-700); border: 1px solid var(--green-500); }
.form-status--error { background: #fbeeea; color: #8a3a1f; border: 1px solid #c96a3f; }
.form-status--loading { background: var(--navy-050); color: var(--navy-700); border: 1px solid var(--navy-200, var(--navy-100)); }

/* ---------- Empty states ---------- */
.empty-state {
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem); text-align: center; background: var(--paper-alt);
}
.empty-state h4 { color: var(--navy-800); }
.empty-state p { max-width: 46ch; margin-inline: auto; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); }
.footer-top { padding-block: clamp(3rem, 6vw, 5rem); display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: var(--step--1); max-width: 34ch; margin-top: 1rem; }
.footer-heading { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--gold-300); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: var(--step--1); }
.footer-links a:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- WhatsApp Floating Action Button (wide, premium pill) ---------- */
.wa-fab {
  position: fixed; right: 1.25rem; bottom: 5.75rem; z-index: 91;
  display: inline-flex; align-items: center; gap: 0.65rem;
  background: var(--green-600); color: #fff; text-decoration: none;
  padding: 0.85rem 1.35rem 0.85rem 0.85rem; border-radius: 999px;
  box-shadow: var(--shadow-lift); font-weight: 600; font-size: var(--step--1);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.wa-fab:hover { transform: translateY(-2px); background: var(--green-700); }
.wa-fab__icon {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 480px) { .wa-fab span.wa-fab__text { display: none; } .wa-fab { padding: 0.85rem; } }

/* ---------- AI Guide (Jubilee Guide) ---------- */
.jg-launcher {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--navy-800); color: #fff; border: none;
  padding: 0.85rem 1.25rem 0.85rem 0.85rem; border-radius: 999px;
  box-shadow: var(--shadow-lift); cursor: pointer;
  font-weight: 600; font-size: var(--step--1);
}
.jg-launcher__icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
@media (max-width: 480px) { .jg-launcher span.jg-launcher__text { display: none; } .jg-launcher { padding: 0.85rem; } }

.jg-panel {
  position: fixed; z-index: 200;
  right: 1.25rem; bottom: 1.25rem;
  width: min(400px, calc(100vw - 2rem));
  height: min(600px, calc(100vh - 2rem));
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); border: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(24px) scale(0.98); opacity: 0; pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}
.jg-panel.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  .jg-panel { right: 0; bottom: 0; left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }
}
.jg-header { background: var(--navy-800); color: #fff; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.jg-header__title { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; }
.jg-header__badge { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: flex; align-items: center; justify-content: center; }
.jg-header__sub { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 2px; font-weight: 400; }
.jg-close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; cursor: pointer; flex-shrink: 0; }

.jg-disclaimer {
  font-size: 0.72rem; color: var(--gray-600); background: var(--paper-alt);
  padding: 0.7rem 1.25rem; border-bottom: 1px solid var(--border);
}
.jg-messages { flex: 1; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.9rem; }
.jg-msg { max-width: 88%; padding: 0.75rem 1rem; border-radius: 14px; font-size: var(--step--1); line-height: 1.5; }
.jg-msg--guide { background: var(--navy-050); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.jg-msg--user { background: var(--navy-700); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.jg-msg--typing { display: inline-flex; gap: 4px; align-items: center; }
.jg-msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400); animation: jg-bounce 1.2s infinite ease-in-out; }
.jg-msg--typing span:nth-child(2) { animation-delay: 0.15s; }
.jg-msg--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes jg-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.jg-suggestions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.25rem 1rem; }
.jg-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 0.5em 0.9em; font-size: 0.78rem; cursor: pointer; color: var(--navy-700);
}
.jg-chip:hover { background: var(--navy-050); }

.jg-cta-row { display: flex; gap: 0.6rem; padding: 0 1.25rem 1rem; }
.jg-cta-row .btn { flex: 1; }

.jg-input-row { display: flex; gap: 0.6rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.jg-input-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 0.75em 1.1em; font-size: var(--step--1); min-height: 44px;
}
.jg-input-row input:focus { outline: none; border-color: var(--navy-600); }
.jg-send {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy-700);
  color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.8rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--gray-600); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-700); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--navy-800); font-weight: 600; }

/* ---------- Filter pills ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.25rem; }
.filter-pill {
  border: 1.5px solid var(--border); background: #fff; color: var(--ink-soft);
  padding: 0.55em 1.1em; border-radius: 999px; font-size: var(--step--1);
  cursor: pointer; font-weight: 500;
}
.filter-pill[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.search-field { position: relative; margin-bottom: 1.75rem; max-width: 420px; }
.search-field input {
  width: 100%; padding-left: 2.75rem;
  border: 1.5px solid var(--border); border-radius: 999px;
  padding-top: 0.8em; padding-bottom: 0.8em; padding-right: 1.1em;
  font-size: var(--step--1); font-family: inherit;
  background: #fff; color: var(--ink); min-height: 44px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.search-field input:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100);
}
.search-field input::placeholder { color: var(--gray-400); }
.search-field svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }

/* ---------- Utility ---------- */
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--green-700); background: var(--green-100); padding: 0.3em 0.75em; border-radius: 999px; }
.tag--gold { color: var(--gold-700); background: var(--gold-100); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 0.75rem; } .gap-md { gap: 1.5rem; } .gap-lg { gap: 2.5rem; }
.mt-0 { margin-top: 0; }
.max-w-prose { max-width: 60ch; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Page transitions ---------- */
body:not(.page-loaded) main { opacity: 0; }
body.page-loaded main {
  animation: page-fade-in 0.65s var(--ease) forwards;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
body.page-exit { opacity: 0.001; transition: opacity 0.22s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  body:not(.page-loaded) main, body.page-loaded main, body.page-exit { opacity: 1 !important; animation: none !important; transform: none !important; }
}

/* Shimmer sweep on the primary/gold CTAs — a small premium detail on hover */
.btn-primary, .btn-gold { position: relative; overflow: hidden; }
.btn-primary::after, .btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after, .btn-gold:hover::after { left: 130%; }

/* Slightly richer card hover: lift + a touch of scale */
.card:hover { transform: translateY(-6px) scale(1.012); }

/* ---------- Staggered grid reveal ---------- */
.reveal-stagger > * {
  opacity: 0; transform: translateY(22px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.37s; }
.reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: 0.42s; }

/* ---------- Editorial image wipe reveal (secondary photos, not the main hero) ---------- */
/* The wipe is applied to the CHILD, never to .media-wipe itself — an element
   clipped to zero width reports intersectionRatio 0, so the observer would
   never fire and the image would stay clipped permanently. */
.media-wipe { clip-path: none; }
.media-wipe > * { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.media-wipe.is-visible > * { clip-path: inset(0 0% 0 0); }
.media-wipe img { transform: scale(1.08); transition: transform 1.3s var(--ease); }
.media-wipe.is-visible img { transform: scale(1); }

/* ---------- Brand panel (logo mark on a section background) ---------- */
.brand-panel {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 2rem 1.75rem; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(201,162,39,0.16), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.16);
}
.brand-panel__mark {
  width: clamp(80px, 30%, 118px); height: auto;
  border-radius: 22%;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.65);
}
.brand-panel__tagline {
  margin: 1.5rem 0 0; max-width: 24ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-0); line-height: 1.35; color: #fff;
}
.brand-panel__badge {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.05em;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  padding: 0.35em 0.8em; border-radius: 999px; white-space: nowrap;
}

/* ---------- Portrait placeholder (named person awaiting a real photo) ----------
   Deliberately designed rather than a dashed box: a stock stranger's face must
   never stand in for a real, named practitioner. */
.portrait-placeholder {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.35rem;
  text-align: center; padding: 2rem 1.5rem;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--navy-600) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
  color: #fff;
  border-radius: inherit;
  overflow: hidden;
}
.portrait-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 12%, rgba(201,162,39,0.22), transparent 70%);
  pointer-events: none;
}
.portrait-placeholder__monogram {
  width: clamp(88px, 34%, 132px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(201,162,39,0.55);
  background: rgba(255,255,255,0.05);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 700;
  letter-spacing: 0.04em; color: var(--gold-300);
  margin-bottom: 1.1rem;
}
.portrait-placeholder__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); color: #fff; line-height: 1.2;
}
.portrait-placeholder__role {
  font-size: var(--step--1); color: rgba(255,255,255,0.7); max-width: 26ch;
}
.portrait-placeholder__badge {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  padding: 0.35em 0.8em; border-radius: 999px; white-space: nowrap;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; background: transparent; pointer-events: none; }
.scroll-progress__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-500), var(--green-500)); transition: width 0.1s linear; }
@media (prefers-reduced-motion: reduce) {
  .scroll-progress__fill { transition: none; }
   .reveal, .reveal-stagger > *, .media-wipe, .media-wipe > *, .media-wipe img { transition: none !important; }
  /* Reveal effects hide content until JS adds .is-visible. Under reduced
     motion there is no animation to play, so show everything immediately —
     this also means a JS failure can never leave an image permanently
     clipped or invisible. */
  .media-wipe, .media-wipe > * { clip-path: none !important; }
  .media-wipe img { transform: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* Safety net: if JavaScript is unavailable, reveal-based content must still
   be visible rather than clipped or transparent. */
.no-js .media-wipe, .no-js .media-wipe > * { clip-path: none; }
.no-js .media-wipe img { transform: none; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

.cta-band {
  background: var(--navy-700);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between;
}
.cta-band h3 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }
.cta-band .actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* ---------- Practitioner biography ---------- */
.bio p { font-size: var(--step--1); color: var(--ink-soft); max-width: none; margin-bottom: 0.9em; }
.bio p:last-child { margin-bottom: 0; }

/* ---------- Cinematic hero (photo slideshow + overlaid headline) ---------- */
.hero--cinema { position: relative; isolation: isolate; padding: 0; background: var(--navy-900); color: #fff; min-height: min(88vh, 780px); display: flex; flex-direction: column; overflow: hidden; }
.hero-slides, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7.5s ease-out; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade { z-index: 0; background: linear-gradient(90deg, rgba(6,33,58,.94) 0%, rgba(6,33,58,.74) 46%, rgba(6,33,58,.34) 100%), linear-gradient(0deg, rgba(6,33,58,.7) 0%, transparent 38%); pointer-events: none; }
.hero-cinema__inner { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 8vw, 6rem); }
.hero--cinema h1 { color: #fff; font-size: clamp(2.6rem, 1.5rem + 4.8vw, 5.3rem); line-height: 1.12; max-width: 14ch; }
.hero--cinema .eyebrow { color: var(--gold-300); }
.hero--cinema p.lead { color: rgba(255,255,255,.88); max-width: 46ch; }
.hero--cinema .hero-microlink, .hero--cinema .hero-microlink a { color: rgba(255,255,255,.85); }
.hero--cinema .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero--cinema .btn-outline:hover { background: rgba(255,255,255,.12); }
.hl { display: inline-block; padding: 0 .26em .07em; border-radius: 999px; line-height: 1.05; }
.hl--gold { background: var(--gold-300); color: var(--navy-900); }
.hl--green { background: var(--green-500); color: #fff; }
.hero-dots { display: flex; gap: .5rem; margin-top: 2rem; }
.hero-dots button { width: 44px; height: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.hero-dots i { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.hero-dots i::after { content: ""; position: absolute; inset: 0; background: var(--gold-300); transform: scaleX(0); transform-origin: left; }
.hero-dots button[aria-current="true"] i::after { animation: heroFill 6s linear forwards; }
@keyframes heroFill { to { transform: scaleX(1); } }
.hero-marquee { position: relative; z-index: 1; background: var(--gold-300); color: var(--navy-900); overflow: hidden; padding-block: .85rem; }
.hero-marquee__track { display: flex; align-items: center; gap: 1.75rem; width: max-content; font-weight: 700; white-space: nowrap; animation: heroMarquee 38s linear infinite; }
.hero-marquee__track span { font-size: var(--step-0); }
.hero-marquee:hover .hero-marquee__track { animation-play-state: paused; }
@keyframes heroMarquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transform: none; transition: opacity .01s; }
  .hero-marquee__track { animation: none; }
  .hero-dots button[aria-current="true"] i::after { animation: none; transform: scaleX(1); }
}

/* Hero: centred layout */
.hero-cinema__inner { justify-content: center; text-align: center; }
.hero-cinema__copy { display: flex; flex-direction: column; align-items: center; }
.hero--cinema h1 { max-width: none; margin-inline: auto; }
.hero--cinema p.lead { margin-inline: auto; }
.hero--cinema .hero-actions, .hero--cinema .hero-microlink, .hero-dots { justify-content: center; }
.hero-shade { background: linear-gradient(180deg, rgba(6,33,58,.78) 0%, rgba(6,33,58,.68) 55%, rgba(6,33,58,.9) 100%); }
/* Footer logo */
.footer-logo { display: block; width: min(250px, 72%); height: auto; margin-bottom: 1rem; }
/* Before / after: images are square, so the frame is square and centred */
.ba-slider { aspect-ratio: 1 / 1; max-width: min(720px, 100%); margin-inline: auto; }
.ba-slider__before img, .ba-slider__after img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
