/* ==========================================================================
   AEVORA by Kian Clinics
   Layout concept: quiet editorial pages drawn with hairlines and arches
   (the clinic's curved, fluted architecture). Same emerald / gold / cream palette.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset) ---- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-normal.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks so the swap does not move the layout */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 91%;
  ascent-override: 104%;
  descent-override: 32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --emerald: #0e382b;
  --emerald-deep: #072019;
  --emerald-soft: #184d3c;
  --gold: #c5a059;
  --gold-hover: #d2b170;
  --gold-text: #8a6420;
  --gold-pale: #e6d3a3;
  --cream: #fdfbf7;
  --sand: #f7f4ec;
  --white: #ffffff;
  --ink: #1a2421;
  --muted: #5a6b63;
  --hair: #e4decf;
  --hair-dark: rgba(255, 255, 255, 0.14);
  --on-dark: rgba(255, 255, 255, 0.78);

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-display: clamp(2.7rem, 6vw, 4.9rem);
  --fs-h1: clamp(2.35rem, 4.8vw, 3.9rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.1rem);
  --fs-h3: 1.55rem;
  --fs-lede: clamp(1.05rem, 1.4vw, 1.2rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1240px;
  --header-h: 76px;
  --r-sm: 4px;
  --r-md: 8px;
  --arch: 999px 999px 0 0;
}

/* ---- Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked {
  overflow: hidden;
}
img,
svg,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--emerald);
  text-wrap: balance;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--emerald);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.75rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon {
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease);
}
.btn:hover .icon--arrow {
  transform: translateX(4px);
}
.btn--gold {
  background: var(--gold);
  color: var(--emerald-deep);
}
.btn--gold:hover {
  background: var(--gold-hover);
}
.btn--ghost {
  border-color: rgba(14, 56, 43, 0.35);
  color: var(--emerald);
}
.btn--ghost:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}
.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn--ghost-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--emerald);
}
.btn--whatsapp {
  background: #1fa855;
  color: #fff;
}
.btn--whatsapp:hover {
  background: #188f48;
}
.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1.2rem;
  font-size: 0.75rem;
}
.btn--lg {
  min-height: 52px;
  padding: 0.9rem 2rem;
}
.btn:active {
  transform: scale(0.98);
}
.btn--block {
  width: 100%;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease), color 0.2s;
  text-align: left;
}
.link-arrow:hover {
  border-bottom-color: var(--gold);
  color: var(--gold-text);
}
.link-arrow .icon {
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}
.on-dark .link-arrow,
.link-arrow--light {
  color: #fff;
}
.on-dark .link-arrow:hover,
.link-arrow--light:hover {
  color: var(--gold-pale);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hair);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -14px rgba(14, 56, 43, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}
.brand {
  display: block;
  flex: none;
}
.brand img {
  width: 175px;
  height: auto;
  aspect-ratio: 920 / 236;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.9vw, 1.9rem);
  margin-left: auto;
}
.nav a {
  position: relative;
  padding-block: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink);
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--emerald);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.header-phone .icon {
  color: var(--gold-text);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  font-size: 1.25rem;
  color: var(--emerald);
}
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Mobile drawer */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(7, 32, 25, 0.55);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem 1.75rem;
  background: var(--cream);
  overflow-y: auto;
}
.drawer[hidden],
.drawer-scrim[hidden] {
  display: none;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hair);
}
.drawer-head img {
  width: 150px;
}
.drawer-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  color: var(--emerald);
}
.drawer-nav a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--emerald);
}
.drawer-nav a[aria-current="page"] {
  color: var(--gold-text);
}
.drawer-cta {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

/* ---- Eyebrow, section scaffolding ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.on-dark .eyebrow,
.eyebrow--light {
  color: var(--gold-pale);
}
.section {
  padding-block: clamp(4rem, 8.5vw, 7.5rem);
}
.section--sand {
  background: var(--sand);
}
.section--flush-top {
  padding-top: 0;
}
.section--tight-bottom {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.on-dark {
  background: var(--emerald-deep);
  color: var(--on-dark);
}
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: #fff;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}
.section-head .eyebrow {
  margin-bottom: 1.1rem;
}
.section-head h2,
.h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
}
.section-head p {
  color: var(--muted);
  max-width: 52ch;
}
.on-dark .section-head p {
  color: var(--on-dark);
}
.section-head--stack {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
}
.lede {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}
.prose p + p {
  margin-top: 1.1rem;
}
.prose p {
  color: var(--muted);
  max-width: 62ch;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Media: arch + frame ---- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border-radius: var(--r-md);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch-wrap {
  position: relative;
}
.arch-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: var(--arch);
  transform: translate(14px, 14px);
  opacity: 0.7;
}
.arch {
  position: relative;
  overflow: hidden;
  border-radius: var(--arch);
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.on-dark figure figcaption {
  color: var(--on-dark);
}
.ratio-4x3 {
  aspect-ratio: 4 / 3;
}
.ratio-3x2 {
  aspect-ratio: 3 / 2;
}
.ratio-4x5 {
  aspect-ratio: 4 / 5;
}
.ratio-1x1 {
  aspect-ratio: 1;
}

/* ---- Home hero ---- */
.hero {
  background: var(--emerald);
  color: #fff;
  padding-block: clamp(3.25rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6.25rem);
  overflow: hidden;
}
/* Faint arches behind the hero, echoing the clinic's curved architecture */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--arch);
  pointer-events: none;
}
.hero::before {
  right: -14%;
  top: -10%;
  width: min(78vw, 760px);
  aspect-ratio: 3 / 4;
}
.hero::after {
  right: -4%;
  top: 4%;
  width: min(58vw, 560px);
  aspect-ratio: 3 / 4;
  border-color: rgba(197, 160, 89, 0.12);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.hero .eyebrow {
  color: var(--gold-pale);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--gold-pale);
}
.hero-lede {
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: var(--fs-lede);
  color: var(--on-dark);
}
.hero-lede strong {
  color: #fff;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 2.25rem;
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair-dark);
}
.hero-facts dt {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--gold-pale);
}
.hero-facts dd {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--on-dark);
}
.hero-visual .arch-wrap {
  max-width: 480px;
  margin-inline: auto 14px;
}
.hero-visual .arch {
  border: 0;
}
.hero-tag {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: calc(100% - 2.5rem);
  padding: 0.85rem 1rem;
  background: rgba(7, 32, 25, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--on-dark);
  text-align: center;
}
.hero-tag strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-pale);
}
/* Entrance runs in CSS so the first paint never waits for JavaScript */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 90ms + 60ms);
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
}

/* ---- Inner page hero ---- */
.page-hero {
  background: var(--emerald);
  color: #fff;
  padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  opacity: 0.5;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: #fff;
}
.page-hero h1 {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 20ch;
}
.page-hero .lede {
  margin-top: 1.4rem;
  color: var(--on-dark);
  max-width: 60ch;
}
.page-hero .lede strong {
  color: #fff;
  font-weight: 600;
}

/* ---- Philosophy ---- */
.philosophy {
  background: var(--sand);
  border-block: 1px solid var(--hair);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
}
.philosophy-mark {
  padding-right: clamp(1rem, 3vw, 3rem);
  border-right: 1px solid var(--gold);
}
.philosophy-mark span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.philosophy-mark p {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 400;
  color: var(--emerald);
}
.philosophy blockquote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
  color: var(--emerald);
  text-wrap: pretty;
}
.philosophy blockquote strong {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-text);
}

/* ---- Pillars (home) ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem 0.5rem;
  border-left: 1px solid var(--hair);
}
.pillar:first-child {
  border-left: 0;
  padding-left: 0;
}
.pillar:last-child {
  padding-right: 0;
}
.pillar .icon {
  font-size: 1.7rem;
  color: var(--gold-text);
  margin-bottom: 1.5rem;
}
.pillar h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  margin-bottom: 0.8rem;
}
.pillar > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.check-list {
  display: grid;
  gap: 0.55rem;
  padding-top: 1.25rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--hair);
  font-size: 0.85rem;
}
.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.5;
}
.check-list .icon {
  margin: 0.2em 0 0;
  font-size: 0.85rem;
  color: var(--gold-text);
}
.on-dark .check-list {
  border-color: var(--hair-dark);
}
.on-dark .check-list .icon {
  color: var(--gold);
}
.pillar .link-arrow {
  margin-top: auto;
  margin-bottom: 1.75rem;
  align-self: flex-start;
}

/* ---- Doctors (home) ---- */
.doctors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
}
.doctor {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
}
.doctor .arch-wrap::before {
  transform: translate(10px, 10px);
}
.doctor-role {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.doctor h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 500;
}
.doctor-creds {
  margin: 0.2rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.doctor p {
  font-size: 0.9rem;
  color: var(--muted);
}
.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

/* ---- Technology list on dark (home) ---- */
.tech-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair-dark);
}
.tech-item {
  padding: 2.25rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--hair-dark);
}
.tech-item:not(:nth-child(3n + 1)) {
  padding-left: 2rem;
  border-left: 1px solid var(--hair-dark);
}
.tech-item .kicker {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.tech-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.tech-item p {
  font-size: 0.9rem;
  color: var(--on-dark);
}
.tech-item ul {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}
.tech-item li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.tech-item li .icon {
  margin-top: 0.25em;
  font-size: 0.8rem;
  color: var(--gold);
}
.section-foot {
  display: flex;
  justify-content: flex-start;
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.gallery figure:first-child {
  grid-column: span 2;
}
.gallery .media {
  aspect-ratio: 4 / 3;
}
.gallery figure:first-child .media {
  aspect-ratio: 16 / 9;
}
.gallery h3 {
  margin-top: 0.9rem;
  font-size: 1.3rem;
}
.gallery figcaption {
  margin-top: 0.25rem;
}
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
.trio .media {
  aspect-ratio: 4 / 5;
}
.trio h3 {
  margin-top: 0.9rem;
  font-size: 1.25rem;
}

/* ---- Split layouts ---- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.split--wide-text {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.split h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  margin: 1.1rem 0 1.4rem;
}
.split .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 2rem;
}
.pull {
  margin-top: 1.75rem;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--emerald);
  max-width: 34ch;
}
.note {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border-left: 1px solid var(--gold);
  background: var(--sand);
  font-size: 0.9rem;
  color: var(--muted);
}
.note strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--emerald);
}
.on-dark .check-list--roomy {
  gap: 0.85rem;
  border: 0;
  padding-top: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---- Service cards ---- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.card[hidden] {
  display: none;
}
.card-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.card h3 {
  margin-top: 0.7rem;
  font-size: 1.5rem;
  font-weight: 500;
}
.card-tech {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.card > p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.card-meta {
  margin-top: 1.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--sand);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink);
}
.card-meta strong {
  font-weight: 600;
  color: var(--emerald);
}
.card ul.check-list {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.card-action {
  margin-top: auto;
  padding-top: 1.5rem;
}
.card > p + .card-action,
.card-meta + .card-action,
.check-list + .card-action {
  padding-top: 1.5rem;
}
.on-dark .card,
.card--dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--hair-dark);
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--hair);
}
.tab {
  position: relative;
  padding: 0.85rem 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.2s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.tab:hover {
  color: var(--emerald);
}
.tab[aria-pressed="true"] {
  color: var(--emerald);
  font-weight: 600;
}
.tab[aria-pressed="true"]::after {
  transform: scaleX(1);
}

/* Stats / 3-column feature blocks (adaptive for light, sand, and on-dark) */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
}
.on-dark .stats {
  border-top-color: var(--hair-dark);
}
.stat {
  padding: 2.25rem 2rem 2.25rem 0;
}
.stat:not(:first-child) {
  padding-left: 2rem;
  border-left: 1px solid var(--hair);
}
.on-dark .stat:not(:first-child) {
  border-left-color: var(--hair-dark);
}
.stat-figure {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
.stat-figure .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold-text);
  stroke-width: 1.5;
}
.on-dark .stat-figure {
  color: var(--gold-pale);
}
.on-dark .stat-figure .icon {
  color: var(--gold-pale);
}
.stat h3 {
  margin: 1rem 0 0.6rem;
  font-size: 1.35rem;
  color: var(--emerald-deep);
}
.on-dark .stat h3 {
  color: var(--white);
}
.stat p {
  font-size: 0.925rem;
  color: var(--ink);
  line-height: 1.65;
}
.section--sand .stat p,
.section .stat p {
  color: var(--ink);
}
.section--sand .stat h3,
.section .stat h3 {
  color: var(--emerald-deep);
}
.section--sand .stat-figure,
.section .stat-figure,
.section--sand .stat-figure .icon,
.section .stat-figure .icon {
  color: var(--gold-text);
}
.on-dark .stat p {
  color: var(--on-dark);
}

/* ---- Bio blocks (About) ---- */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.bio + .bio {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--hair);
}
.bio-photos {
  display: grid;
  gap: 0.75rem;
}
.bio-photos .thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.bio-photos .thumbs .media {
  aspect-ratio: 4 / 3;
}
.bio-photos > .media {
  aspect-ratio: 4 / 5;
}
.bio h3 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 400;
}
.bio .creds {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-text);
}
.bio .title {
  margin: 0.35rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.competencies {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}
.competencies h4 {
  margin-bottom: 1rem;
  font-size: 1.15rem;
}
.competencies ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.5rem;
  font-size: 0.875rem;
}
.competencies li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  line-height: 1.5;
}
.competencies .icon {
  margin-top: 0.2em;
  font-size: 0.85rem;
  color: var(--gold-text);
}
.bio .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 2rem;
}

/* ---- National Recognition & Honor Cards (About & Clinical Leadership) ---- */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}
.honor-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hair);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--r-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.honor-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.honor-card .media {
  background: #fbf9f5;
  border: 1px solid var(--hair);
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.honor-card .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}
.honor-card-kicker {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
}
.honor-card h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: var(--emerald-deep);
}
.honor-card p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.65;
}
.honor-card ul.honor-meta {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.honor-card ul.honor-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--ink);
}
.honor-card ul.honor-meta .icon {
  color: var(--gold-text);
  flex-shrink: 0;
  margin-top: 0.2em;
}
@media (max-width: 820px) {
  .honors-grid {
    grid-template-columns: 1fr;
  }
}

/* Doctor spotlight strip (service pages) */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--white);
}
.spotlight .media {
  aspect-ratio: 4 / 3;
}
.spotlight h2 {
  margin: 0.9rem 0 1rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
}
.spotlight p {
  color: var(--muted);
  font-size: 0.95rem;
}
.spotlight p strong {
  color: var(--ink);
  font-weight: 600;
}
.spotlight .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.4rem;
}

/* ---- Author bio ---- */
.authors {
  display: grid;
  gap: 1rem;
}
.authors-label {
  margin-bottom: 1.25rem;
}
.author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.75rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
}
.author-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
  background: var(--sand);
}
.author-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.author h3 {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 500;
}
.author-creds {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.author p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---- Related + CTA ---- */
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
}
.related a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem 1.5rem 1.75rem 0;
  transition: background-color 0.3s;
}
.related a:not(:first-child) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--hair);
}
.related .card-kicker {
  display: block;
}
.related h3 {
  font-size: 1.45rem;
  font-weight: 500;
}
.related p {
  font-size: 0.875rem;
  color: var(--muted);
}
.related .link-arrow {
  margin-top: 0.5rem;
  align-self: flex-start;
}
.related a:hover .link-arrow {
  background-size: 100% 1px;
  color: var(--gold-text);
}
.cta-band {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--emerald);
  color: #fff;
}
.cta-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: center;
}
.cta-band h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  color: #fff;
  max-width: 20ch;
}
.cta-band p {
  margin-top: 1rem;
  color: var(--on-dark);
  max-width: 52ch;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

/* ---- Booking (home + contact) ---- */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.booking-info h2 {
  margin: 1.1rem 0 1.4rem;
  font-size: var(--fs-h2);
  font-weight: 300;
}
.booking-info > p {
  max-width: 48ch;
}
.booking-points {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 2.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.booking-points li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.booking-points .icon {
  margin-top: 0.3em;
  font-size: 0.95rem;
  color: var(--gold);
}
.form-card {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-md);
}
.form-card h3,
.form-card h2,
.on-dark .form-card h3,
.on-dark .form-card h2 {
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--emerald);
}
.form-card .eyebrow {
  margin-bottom: 0.9rem;
}
.form-card .sub {
  margin: 0.4rem 0 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}
.field {
  margin-bottom: 1.1rem;
  min-width: 0;
}
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--cream);
  font-size: 0.9rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 92px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.35);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}
.form-note {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
.form-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #b4412f;
  border-radius: var(--r-sm);
  background: #fbefec;
  color: #7a2a1d;
  font-size: 0.85rem;
  line-height: 1.5;
}
.form-error[hidden],
.form-success[hidden] {
  display: none;
}
.form-error a,
.form-success a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-success {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0;
  outline: none;
}
.form-success > .icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.85rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-text);
}
.form-success h3 {
  font-size: 1.9rem;
  font-weight: 500;
}
.form-success p {
  color: var(--muted);
  max-width: 44ch;
}

/* ---- Contact ---- */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.tile {
  padding: 2rem 1.5rem 2rem 0;
}
.tile:not(:first-child) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--hair);
}
.tile .icon {
  font-size: 1.5rem;
  color: var(--gold-text);
  margin-bottom: 1rem;
}
.tile-title {
  font-size: 1.25rem;
}
.tile p {
  margin: 0.2rem 0 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.tile a,
.tile strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--emerald);
}
.tile a:hover {
  color: var(--gold-text);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.location h3 {
  font-size: 1.7rem;
  margin-bottom: 1.25rem;
}
.location address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.location address strong {
  color: var(--ink);
}
.directions {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.directions li {
  display: flex;
  gap: 0.7rem;
}
.directions .icon {
  margin-top: 0.3em;
  color: var(--gold-text);
}
.map {
  margin-top: 1.75rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--sand);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- FAQ ---- */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--hair);
}
.faq-item {
  border-bottom: 1px solid var(--hair);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.4rem 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--emerald);
}
.faq-q .icon {
  font-size: 1.1rem;
  color: var(--gold-text);
  transition: transform 0.4s var(--ease);
}
.faq-q[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
}
.faq-a[hidden] {
  display: none;
}
.faq-a p {
  padding-bottom: 1.5rem;
  max-width: 60ch;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--emerald-deep);
  color: var(--on-dark);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}
.footer-brand img {
  width: 200px;
  height: auto;
  aspect-ratio: 920 / 236;
  margin-bottom: 1.5rem;
}
.footer-brand p {
  max-width: 34ch;
  line-height: 1.7;
}
.footer-brand .lead {
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-pale);
}
.site-footer h2 {
  margin-bottom: 1.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.footer-links {
  display: grid;
  gap: 0.7rem;
}
.footer-links a {
  color: var(--on-dark);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-contact {
  display: grid;
  gap: 1.1rem;
}
.footer-contact li {
  display: flex;
  gap: 0.75rem;
  line-height: 1.6;
}
.footer-contact .icon {
  margin-top: 0.3em;
  color: var(--gold);
}
.footer-contact a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--hair-dark);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}
.footer-bottom a:hover {
  color: #fff;
}

/* ---- Floating actions ---- */
.float-actions {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  gap: 0.6rem;
}
.float-btn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(7, 32, 25, 0.5);
  transition: transform 0.3s var(--ease);
}
.float-btn:hover {
  transform: scale(1.07);
}
.float-btn--wa {
  background: #1fa855;
}
.float-btn--call {
  background: var(--emerald);
  border: 1px solid var(--gold);
}

/* ---- Modal ---- */
.modal {
  width: min(100% - 2rem, 600px);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(7, 32, 25, 0.62);
}
@media (prefers-reduced-motion: no-preference) {
  .modal[open]::backdrop {
    animation: fade-in 0.3s ease both;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
}
.modal-body {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: var(--emerald);
}
.modal-body h2 {
  margin: 0.5rem 0 0.35rem;
  padding-right: 2.5rem;
  font-size: 1.8rem;
  font-weight: 500;
}
.modal-body .sub {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 200;
  width: min(100% - 2rem, 28rem);
  padding: 0.95rem 1.4rem;
  transform: translateX(-50%);
  background: var(--emerald-deep);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  line-height: 1.5;
}
.toast[hidden] {
  display: none;
}

/* ---- Scroll reveal (only hidden when Motion is going to run) ---- */
.js-motion [data-reveal],
.js-motion [data-reveal-group] > * {
  opacity: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1180px) {
  .nav,
  .header-phone {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 1100px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pillar:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .pillar:nth-child(even) {
    padding-right: 0;
  }
  .pillar:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tech-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tech-item:not(:nth-child(3n + 1)) {
    padding-left: 0;
    border-left: 0;
  }
  .tech-item:nth-child(even) {
    padding-left: 2rem;
    border-left: 1px solid var(--hair-dark);
  }
  .tech-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .tile:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }
}
@media (max-width: 960px) {
  .hero-grid,
  .booking-grid,
  .contact-grid,
  .split,
  .split--wide-text,
  .bio,
  .section-head,
  .doctors,
  .cta-band-inner,
  .spotlight {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Mobile hero order: eyebrow, headline, photo, intro, actions, facts */
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero .eyebrow {
    order: 0;
  }
  .hero h1 {
    order: 1;
  }
  .hero-visual {
    order: 2;
    margin: 2rem 0 2.25rem;
  }
  .hero-lede {
    order: 3;
    margin-top: 0;
  }
  .hero-actions {
    order: 4;
  }
  .hero-facts {
    order: 5;
  }
  .hero-visual .arch-wrap {
    max-width: none;
    margin-inline: 0 12px;
  }
  .hero-visual .arch-wrap::before {
    transform: translate(12px, 12px);
  }
  .hero-visual .arch {
    aspect-ratio: 6 / 5;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related {
    grid-template-columns: minmax(0, 1fr);
  }
  .related a:not(:first-child) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat:not(:first-child) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .on-dark .stat:not(:first-child) {
    border-top-color: var(--hair-dark);
  }
  .philosophy-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .philosophy-mark {
    padding: 0 0 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--gold);
  }
  .bio-photos {
    max-width: 30rem;
  }
  .split .media,
  .split figure {
    order: -1;
  }
  .spotlight .media {
    max-width: 22rem;
  }
}
@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }
  .brand img {
    width: 140px;
  }
  .header-actions .btn {
    display: none;
  }
  .float-btn--call {
    display: none;
  }
  .float-btn {
    width: 46px;
    height: 46px;
  }
  .doctor {
    grid-template-columns: minmax(0, 1fr);
  }
  .doctor .arch-wrap {
    max-width: 280px;
  }
  .gallery,
  .trio,
  .grid,
  .grid--4,
  .tech-list,
  .pillars,
  .contact-tiles,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery figure:first-child {
    grid-column: auto;
  }
  .gallery figure:first-child .media {
    aspect-ratio: 4 / 3;
  }
  .pillar,
  .pillar:nth-child(even),
  .pillar:nth-child(odd) {
    padding: 2rem 0 0.5rem;
    border-left: 0;
    border-top: 1px solid var(--hair);
  }
  .pillar:first-child {
    border-top: 0;
  }
  .tech-item,
  .tech-item:nth-child(even),
  .tech-item:nth-child(odd) {
    padding: 2rem 0;
    border-left: 0;
  }
  .tile,
  .tile:not(:first-child),
  .tile:nth-child(odd) {
    padding: 1.5rem 0;
    border-left: 0;
  }
  .tile:not(:first-child) {
    border-top: 1px solid var(--hair);
  }
  .hero-facts {
    gap: 0.9rem;
  }
  .hero-facts dt {
    font-size: 1.2rem;
  }
  .hero-facts dd {
    font-size: 0.72rem;
  }
  .hero-facts > div + div {
    padding-left: 0.9rem;
    border-left: 1px solid var(--hair-dark);
  }
  .form-row,
  .competencies ul {
    grid-template-columns: minmax(0, 1fr);
  }
  .author {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .author .link-arrow {
    grid-column: 1 / -1;
  }
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .tab {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
@media print {
  .site-header,
  .float-actions,
  .modal,
  .cta-band {
    display: none;
  }
}
