/* Midwives of York Region
   Warm cream and linen, the indigo and gold of the logo, and the leafy greens
   and roses painted on the clinic walls. */

:root {
  --cream: #fbf7f1;
  --linen: #f5ede2;
  --sand: #ebdecc;
  --oat: #e2d2bd;
  --blush: #f6e3da;
  --blush-deep: #ecc9ba;
  --rose: #a2503f;
  --rose-soft: #d99a8a;
  --sage: #e4eadb;
  --sage-mid: #c3d0b5;
  --sage-deep: #9db08c;
  --leaf: #5f7d56;
  --bark: #8a6a52;
  --gold: #b8893a;
  --gold-soft: #f1e2c2;
  --gold-deep: #85621f;
  --indigo: #2d2b4c;
  --indigo-soft: #4a4772;
  --ink: #3a3548;
  --muted: #6b6475;
  --line: rgba(45, 43, 76, 0.12);
  --white: #fffdf9;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow-sm: 0 1px 2px rgba(74, 50, 32, 0.06), 0 4px 14px rgba(74, 50, 32, 0.06);
  --shadow: 0 2px 6px rgba(74, 50, 32, 0.05), 0 22px 44px -18px rgba(74, 50, 32, 0.22);
  --shadow-lg: 0 4px 10px rgba(74, 50, 32, 0.06), 0 40px 80px -30px rgba(74, 50, 32, 0.32);
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --header-h: 88px; }
}

/* ---------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--indigo);
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
a:hover { color: var(--rose); text-decoration-color: currentColor; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 80%, white);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: 'SOFT' 100;
  color: var(--indigo);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 2rem + 3.6vw, 4.5rem); font-weight: 450; }
h2 { font-size: clamp(2rem, 1.6rem + 2vw, 3.05rem); font-weight: 450; }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.55rem); }
h4 { font-size: 1.15rem; margin-top: 1.4em; }
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--rose);
  font-variation-settings: 'SOFT' 100;
}

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.illo { pointer-events: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--indigo); color: var(--cream);
  padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight-top { padding-top: clamp(24px, 4vw, 48px); }
.section--linen { background: var(--linen); }
.section--blush { background: linear-gradient(180deg, var(--cream), var(--blush) 30%, var(--blush)); }

.lede { font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem); color: var(--muted); line-height: 1.65; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-hand);
  font-size: 1.6rem; line-height: 1;
  color: var(--rose);
  font-weight: 600;
}
.eyebrow .heart-mark { width: 16px; height: 16px; color: var(--gold); }
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--light .heart-mark { color: var(--blush-deep); }

.handwritten {
  font-family: var(--font-hand);
  font-size: 1.9rem; line-height: 1.2;
  color: var(--rose);
  margin-top: 1.2em;
}

.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--left { margin-left: 0; }
.section-head h2 { margin-bottom: 0.35em; }
.section-foot { text-align: center; margin: clamp(32px, 4vw, 48px) 0 0; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  --btn-bg: var(--indigo);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn-primary { box-shadow: 0 10px 24px -12px rgba(45, 43, 76, 0.7); }
.btn-primary .icon { color: var(--gold); fill: var(--gold); }
.btn-primary:hover { --btn-bg: var(--indigo-soft); box-shadow: 0 16px 30px -14px rgba(45, 43, 76, 0.75); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--indigo); border-color: color-mix(in srgb, var(--indigo) 28%, transparent); }
.btn-ghost:hover { --btn-bg: var(--white); border-color: var(--indigo); }

.btn-soft { --btn-bg: var(--gold-soft); --btn-fg: var(--indigo); }
.btn-soft:hover { --btn-bg: color-mix(in srgb, var(--gold-soft) 70%, var(--gold)); }

.btn-cream { --btn-bg: var(--cream); --btn-fg: var(--indigo); }
.btn-cream .icon { color: var(--rose); fill: var(--rose); }
.btn-cream:hover { --btn-bg: var(--white); }

.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); border-color: rgba(251, 247, 241, 0.45); }
.btn-ghost-light:hover { --btn-bg: rgba(251, 247, 241, 0.12); border-color: var(--cream); }

.btn-small { min-height: 42px; padding: 8px 18px; font-size: 0.94rem; }
.btn-block { width: 100%; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-row--center { justify-content: center; }

.link-button, .link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none;
  font: 700 0.98rem/1.3 var(--font-body);
  color: var(--indigo);
  text-decoration: none;
  cursor: pointer;
}
.link-button .icon, .link-arrow .icon { width: 1.05em; transition: transform 0.25s var(--ease); color: var(--gold-deep); }
.link-button:hover, .link-arrow:hover { color: var(--rose); }
.link-button:hover .icon, .link-arrow:hover .icon { transform: translateX(4px); }

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag--muted { background: var(--linen); color: var(--muted); }

.card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 .icon, .card h2 .icon { color: var(--gold); }
.soft-card { background: var(--white); margin-bottom: 28px; box-shadow: var(--shadow-sm); }

.prose p:last-child { margin-bottom: 0; }
.prose--small { font-size: 0.98rem; color: var(--muted); }
.prose--page h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose--page h2:first-child { margin-top: 0; }

.check-list, .dot-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon {
  width: 26px; height: 26px; padding: 5px;
  border-radius: 50%;
  background: var(--sage); color: var(--leaf);
  stroke-width: 2.4;
  margin-top: 1px;
}
.dot-list { gap: 8px; margin: 12px 0 18px; }
.dot-list li { position: relative; padding-left: 22px; }
.dot-list li::before {
  content: ''; position: absolute; left: 4px; top: 0.72em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}

.steps { list-style: none; counter-reset: step; display: grid; gap: 4px; margin: 28px 0 8px; }
.steps li {
  counter-increment: step;
  position: relative;
  display: grid; gap: 2px;
  padding: 0 0 22px 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose);
  font: 600 1.25rem/1 var(--font-display);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--rose) 25%, transparent);
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 21px; top: 46px; bottom: 2px;
  border-left: 2px dashed color-mix(in srgb, var(--rose) 28%, transparent);
}
.steps strong { font-family: var(--font-display); font-weight: 550; font-size: 1.2rem; color: var(--indigo); }
.steps span { color: var(--muted); }

.fine-print { font-size: 0.9rem; color: var(--muted); max-width: 820px; margin: 36px auto 0; text-align: center; }

.empty-state {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  color: var(--muted); text-align: left;
}
.empty-state .icon { width: 28px; height: 28px; color: var(--leaf); }
.empty-state--card {
  max-width: 720px; margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1.5px dashed var(--sand);
  align-items: flex-start;
}
.empty-state--card .icon {
  width: 56px; height: 56px; padding: 14px;
  border-radius: 50%;
  background: var(--blush); color: var(--rose);
}
.empty-state--card h3 { margin-bottom: 0.3em; }
.empty-state--card p { margin: 0; }

/* ---------------------------------------------------------------- Header */

.topbar {
  background: var(--indigo);
  color: color-mix(in srgb, var(--cream) 86%, transparent);
  font-size: 0.88rem;
  display: none;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 42px; }
.topbar p { display: flex; align-items: center; gap: 22px; margin: 0; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 15px; height: 15px; color: var(--gold); }
.topbar-label { opacity: 0.8; }
.topbar-social { width: 30px; height: 30px; justify-content: center; border-radius: 50%; }
.topbar-social:hover { background: rgba(255, 255, 255, 0.08); }
.topbar-extra { gap: 10px !important; }
.topbar-extra > span { margin-right: 10px; }
@media (min-width: 960px) { .topbar { display: block; } }

/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile drawer inside the header's box. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.3s var(--ease);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(74, 50, 32, 0.45); }
.site-header.is-scrolled::before, .nav-open .site-header::before { background: color-mix(in srgb, var(--cream) 96%, transparent); }

.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 50px; height: auto; }
.brand-word { width: 136px; height: auto; }
@media (min-width: 760px) {
  .brand-mark { width: 60px; }
  .brand-word { width: 162px; }
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: none; }

.menu-button {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--indigo);
  cursor: pointer;
}
.menu-button .icon { width: 22px; height: 22px; }
.menu-button-close { display: none; }
.nav-open .menu-button-open { display: none; }
.nav-open .menu-button-close { display: block; }

/* Mobile navigation drawer */
.nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--cream);
  padding: 12px var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-open body { overflow: hidden; }

.nav-list { list-style: none; display: grid; gap: 2px; }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%;
  padding: 14px 6px;
  border: 0; background: none;
  border-bottom: 1px solid var(--line);
  font: 600 1.35rem/1.2 var(--font-display);
  color: var(--indigo);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.nav-link[aria-current='page'], .nav-link.is-active { color: var(--rose); }
.nav-chevron { width: 20px; height: 20px; transition: transform 0.25s var(--ease); color: var(--gold-deep); }
.nav-parent[aria-expanded='true'] .nav-chevron { transform: rotate(180deg); }

.menu { display: none; padding: 6px 0 14px; }
.nav-parent[aria-expanded='true'] + .menu { display: block; }
.menu-list { list-style: none; display: grid; gap: 2px; }
.menu-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
}
.menu-link:hover, .menu-link[aria-current='page'] { background: var(--linen); color: var(--indigo); }
.menu-icon {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--blush);
  color: var(--rose);
}
.menu-icon .icon { width: 19px; height: 19px; }
.menu-text { display: grid; }
.menu-label { font-weight: 700; line-height: 1.3; }
.menu-note { font-size: 0.86rem; color: var(--muted); line-height: 1.35; }

.nav-mobile-extra { display: grid; gap: 10px; margin-top: 24px; }

@media (min-width: 1140px) {
  .header-cta { display: inline-flex; }
  .menu-button, .nav-mobile-extra { display: none; }

  .nav {
    position: static;
    inset: auto;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1; visibility: visible; transform: none;
    margin-left: auto;
  }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .has-menu { position: relative; }
  .nav-link {
    position: relative;
    width: auto;
    padding: 10px 13px;
    border: 0;
    border-radius: 999px;
    font: 650 0.98rem/1 var(--font-body);
  }
  .nav-link:hover { color: var(--rose); background: color-mix(in srgb, var(--blush) 60%, transparent); }
  .nav-link[aria-current='page']::after, .nav-link.is-active::after {
    content: '';
    position: absolute; left: 50%; bottom: 0;
    width: 22px; height: 6px;
    transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 6'%3E%3Cpath d='M1 3c3-3 5 3 8 0s5-3 8 0 4 2 4 0' fill='none' stroke='%23b8893a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  .nav-chevron { width: 16px; height: 16px; }

  .menu {
    display: block;
    position: absolute; top: calc(100% + 10px); left: 50%;
    width: 340px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .menu::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
  .has-menu--wide .menu { width: 600px; }
  .has-menu--wide .menu-list { grid-template-columns: 1fr 1fr; }
  .has-menu--wide .menu-list li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
  .has-menu:hover .menu,
  .has-menu:focus-within .menu,
  .nav-parent[aria-expanded='true'] + .menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
    transition-delay: 0s;
  }
  .has-menu:hover .nav-chevron { transform: rotate(180deg); }
}

/* ---------------------------------------------------------------- Arches and decoration */

/* Elliptical radii keep the top a true semicircle at any size without
   shrinking the bottom corners. --arch-v is (width / height) * 50%. */
.arch {
  --arch-v: 40%;
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% var(--radius) var(--radius) / var(--arch-v) var(--arch-v) var(--radius) var(--radius);
  background: var(--sand);
  isolation: isolate;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--person { aspect-ratio: 4 / 5; }
.arch--person img { object-position: 50% 22%; }
.arch--xl, .arch--hero { aspect-ratio: 4 / 5; }

.blob { position: absolute; z-index: 0; }
.branch { position: absolute; z-index: 1; }

/* ---------------------------------------------------------------- Home hero */

.hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(8px, 2vw, 24px);
  overflow: hidden;
}
.hero-blob {
  color: var(--blush);
  width: min(760px, 120vw); height: min(700px, 110vw);
  right: -18%; top: -6%;
  opacity: 0.9;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; } }

.hero-title { font-size: clamp(2.9rem, 2.1rem + 4.6vw, 5.6rem); line-height: 1.02; margin-bottom: 0.32em; }
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  font-style: italic;
  color: var(--rose);
}
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: rotate-word 9s var(--ease) infinite;
}
.rotator > span:nth-child(2) { animation-delay: 3s; }
.rotator > span:nth-child(3) { animation-delay: 6s; }
@keyframes rotate-word {
  0% { opacity: 0; transform: translateY(0.35em); filter: blur(4px); }
  5%, 30% { opacity: 1; transform: none; filter: none; }
  36%, 100% { opacity: 0; transform: translateY(-0.3em); filter: blur(4px); }
}

.hero-copy .lede { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 650; font-size: 0.95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--gold); }

.hero-art { position: relative; width: min(100%, 520px); margin-inline: auto; padding: 18px 8% 40px; }
.hero-photo { box-shadow: var(--shadow-lg); z-index: 2; }
.hero-photo img { object-position: 50% 30%; }
.hero-photo::after {
  content: ''; position: absolute; inset: 12px;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 253, 249, 0.6);
  pointer-events: none;
}
.hero-branch { width: 46%; left: -14%; top: 4%; transform: rotate(-8deg); opacity: 0.95; }
.hero-circle {
  position: absolute; z-index: 3;
  right: -2%; bottom: 0;
  width: 40%; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}
.hero-circle img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: 0.86rem; line-height: 1.3;
  animation: float 7s ease-in-out infinite;
}
.float-card p { display: grid; margin: 0; }
.float-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--indigo); }
.float-card span { color: var(--muted); }
.float-card > .icon, .float-card > .heart-mark {
  width: 40px; height: 40px; padding: 9px;
  border-radius: 12px;
  flex: none;
}
.float-card--a { left: -4%; bottom: 22%; }
.float-card--a > .icon { background: var(--gold-soft); color: var(--gold-deep); }
.float-card--b { right: -6%; top: 10%; animation-delay: -3.5s; }
.float-card--b > .heart-mark { background: var(--blush); color: var(--rose); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 520px) {
  .float-card { font-size: 0.78rem; padding: 9px 12px 9px 9px; }
  .float-card > .icon, .float-card > .heart-mark { width: 32px; height: 32px; padding: 7px; }
  .float-card--a { left: -2%; bottom: 18%; }
  .float-card--b { right: -2%; top: 4%; }
}

/* ---------------------------------------------------------------- Page hero */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
}
.page-hero--blush { background: linear-gradient(180deg, var(--blush), var(--cream)); }
.page-hero--linen { background: linear-gradient(180deg, var(--linen), var(--cream)); }
.page-hero--sage { background: linear-gradient(180deg, var(--sage), var(--cream)); }
.page-hero-blob { color: rgba(255, 253, 249, 0.5); width: 620px; height: 560px; right: -180px; top: -200px; transform: rotate(-12deg); }
.page-hero-branch { width: 150px; right: 4%; bottom: -30px; transform: rotate(18deg); opacity: 0.85; }
.page-hero--image .page-hero-branch { right: auto; left: -50px; bottom: -40px; transform: rotate(-12deg); opacity: 0.5; }
.page-hero-inner { position: relative; z-index: 2; display: grid; gap: 40px; align-items: center; }
.page-hero-copy { max-width: 780px; }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero-media { width: min(100%, 380px); margin-inline: auto; }
.page-hero-media .arch { box-shadow: var(--shadow-lg); }
@media (min-width: 900px) {
  .page-hero--image .page-hero-inner { grid-template-columns: 1.3fr 0.7fr; }
  .page-hero-media { margin-right: 0; }
}
@media (max-width: 899px) {
  .page-hero-media { width: min(70%, 300px); }
}

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; opacity: 0.5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rose); }

/* ---------------------------------------------------------------- Features and principles */

.feature-grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
@media (min-width: 860px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .feature-grid--two { grid-template-columns: repeat(2, 1fr); } }

.feature-card {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card p { color: var(--muted); margin: 0; }
.feature-card--row { display: grid; gap: 18px; }
@media (min-width: 560px) { .feature-card--row { grid-template-columns: auto 1fr; } }

.feature-icon {
  display: grid; place-items: center;
  width: 62px; height: 62px;
  margin-bottom: 20px;
  border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%;
}
.feature-card--row .feature-icon { margin: 0; }
.feature-icon .icon { width: 28px; height: 28px; }
.feature-icon--gold { background: var(--gold-soft); color: var(--gold-deep); }
.feature-icon--rose { background: var(--blush); color: var(--rose); }
.feature-icon--sage { background: var(--sage); color: var(--leaf); }

.band { position: relative; background: var(--sage); padding-block: clamp(80px, 10vw, 140px); }
.band-wave { position: absolute; left: 0; width: 100%; height: clamp(36px, 5vw, 80px); color: var(--sage); }
.band-wave--top { bottom: calc(100% - 1px); }
.band-wave--bottom { top: calc(100% - 1px); }
.band + .section { padding-top: clamp(96px, 12vw, 150px); }

.principles { list-style: none; display: grid; gap: clamp(20px, 3vw, 32px); counter-reset: principle; }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li {
  counter-increment: principle;
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  padding-top: 78px;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  background: rgba(255, 253, 249, 0.72);
  text-align: center;
}
.principles li::after {
  content: '0' counter(principle);
  position: absolute; top: 26px; right: 30px;
  font: italic 500 1rem/1 var(--font-display);
  color: var(--leaf); opacity: 0.6;
}
.principle-icon {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--white);
  color: var(--leaf);
  box-shadow: var(--shadow-sm);
  border: 6px solid var(--sage);
}
.principle-icon .icon { width: 34px; height: 34px; }
.principles p { color: var(--muted); margin: 0; }
.principles { margin-top: 64px; }

/* ---------------------------------------------------------------- Split layouts */

.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--top .split-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
.split-copy h2 { margin-bottom: 0.4em; }

/* ---------------------------------------------------------------- Catchment */

.catchment-card { background: var(--white); }
.catchment-card > p { color: var(--muted); font-size: 0.98rem; }
.catchment { display: grid; gap: 14px; margin-top: 18px; }
.catchment-form label { display: block; font-weight: 750; font-size: 0.95rem; margin-bottom: 8px; color: var(--indigo); }
.catchment-field {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--cream);
  border: 1.5px solid var(--sand);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.catchment-field:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent); }
.catchment-field > .icon { color: var(--muted); }
.catchment-field input {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 8px 4px;
}
.catchment-result { margin: 10px 0 0; font-weight: 650; min-height: 1.7em; }
.catchment-result:empty { margin: 0; min-height: 0; }
.catchment-result.is-in { color: var(--leaf); }
.catchment-result.is-out { color: var(--rose); }
.catchment-result.is-error { color: var(--muted); }
.catchment-map, .contact-map {
  position: relative;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sage);
  z-index: 0;
}
.contact-map { height: clamp(300px, 40vw, 440px); }
.catchment-map-placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  color: var(--leaf); font-weight: 650;
}
.catchment-map-placeholder .icon { width: 34px; height: 34px; }
.catchment-note { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); margin: 0; }
.catchment-note .icon { color: var(--gold); margin-top: 3px; }

.leaflet-container { font-family: var(--font-body) !important; }
.catchment-map .leaflet-tile-pane, .contact-map .leaflet-tile-pane { filter: sepia(0.22) saturate(0.85) brightness(1.03); }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(255, 253, 249, 0.85) !important; }
.map-pin {
  display: grid !important; place-items: center;
  width: 40px !important; height: 40px !important;
  margin: -40px 0 0 -20px !important;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--indigo);
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--cream);
}
.map-pin svg { transform: rotate(45deg); width: 18px; height: 18px; color: var(--gold); }
.map-pin--home { background: var(--rose); }
.map-pin--home svg { color: var(--cream); }

/* ---------------------------------------------------------------- Clinic collage */

.collage { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: auto auto; gap: 16px; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-a { --arch-v: 35.7%; grid-row: 1 / 3; aspect-ratio: 3 / 4.2; box-shadow: var(--shadow); }
.collage-b { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); align-self: end; }
.collage-c { border-radius: 50%; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); width: 86%; border: 6px solid var(--linen); }
.collage-c img { object-position: 40% 50%; transform: scale(1.35); }
.collage-sprig { position: absolute; width: 130px; left: 40%; bottom: -34px; transform: rotate(-6deg); }

/* ---------------------------------------------------------------- Testimonial */

.testimonial {
  display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
  margin: 0;
  max-width: 1040px; margin-inline: auto;
}
@media (min-width: 860px) { .testimonial { grid-template-columns: 0.75fr 1.25fr; } }
.testimonial-photo { position: relative; width: min(100%, 360px); margin-inline: auto; }
.testimonial-photo .arch { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.testimonial-heart { position: absolute; width: 64px; height: 64px; right: -18px; bottom: 28px; color: var(--rose-soft); transform: rotate(12deg); }
.testimonial-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 18px; }
.testimonial-mark .icon { width: 26px; height: 26px; }
.testimonial blockquote { margin: 0 0 22px; }
.testimonial blockquote p {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem);
  line-height: 1.22;
  color: var(--indigo);
  margin: 0;
}
.testimonial blockquote em { color: var(--rose); }
.testimonial figcaption { display: grid; margin-bottom: 22px; }
.testimonial figcaption strong { font-family: var(--font-hand); font-size: 1.8rem; color: var(--rose); font-weight: 600; line-height: 1.1; }
.testimonial figcaption span { color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------------------------------------- Team strip */

.team-strip { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 640px) { .team-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-strip { grid-template-columns: repeat(6, 1fr); } }
.team-strip li { display: grid; gap: 10px; text-align: center; }
.team-strip li:nth-child(even) { margin-top: 28px; }
.team-strip .arch { box-shadow: var(--shadow-sm); }
.team-strip span { font-family: var(--font-display); font-weight: 550; color: var(--indigo); font-size: 1.05rem; }

/* ---------------------------------------------------------------- Visit card, hours, contact */

.visit-card { background: var(--white); }
.visit-card h2, .visit-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.visit-card h3:not(:first-of-type), .visit-card h2:not(:first-of-type) { margin-top: 30px; }
.visit-card p { color: var(--muted); }
.visit-branch { width: 120px; right: -26px; top: -30px; transform: rotate(160deg) scaleX(-1); opacity: 0.35; }
.visit-card--center { text-align: center; }
.visit-card--center h2 { justify-content: center; }
.visit-card--center .hours { max-width: 460px; margin-inline: auto; text-align: left; }

.hours { list-style: none; display: grid; gap: 8px; }
.hours li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--linen);
}
.hours strong { color: var(--indigo); }

.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon {
  width: 38px; height: 38px; padding: 9px;
  border-radius: 12px;
  background: var(--blush); color: var(--rose);
}
.contact-list li > span, .contact-list li > a { padding-top: 6px; }
.contact-list a { font-weight: 700; text-decoration: none; }

.home-event .event-card { margin-bottom: 28px; }

/* ---------------------------------------------------------------- Events */

.event-grid { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .event-grid--past { grid-template-columns: repeat(3, 1fr); } }

.event-card {
  display: grid;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 600px) { .event-card { grid-template-columns: minmax(200px, 0.8fr) 1.2fr; } }
.event-flyer { position: relative; background: var(--linen); min-height: 240px; }
.event-flyer-button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.event-flyer img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.event-flyer-zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(45, 43, 76, 0.82);
  color: var(--cream);
  font-size: 0.8rem; font-weight: 700;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.event-flyer-zoom .icon { width: 14px; height: 14px; }
.event-flyer-button:hover .event-flyer-zoom, .event-flyer-button:focus-visible .event-flyer-zoom { opacity: 1; transform: none; }
.event-flyer-empty { display: grid; place-items: center; height: 100%; min-height: 220px; color: var(--gold); }
.event-flyer-empty .icon { width: 56px; height: 56px; }
.date-badge {
  position: absolute; left: 14px; top: 14px;
  display: grid; justify-items: center;
  min-width: 64px;
  padding: 8px 10px 10px;
  margin: 0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  line-height: 1;
}
.date-badge span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose); }
.date-badge strong { font: 500 1.9rem/1.05 var(--font-display); color: var(--indigo); margin: 2px 0; }
.date-badge span:last-child { color: var(--muted); }
.event-body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.event-body h3 { margin: 4px 0 6px; }
.event-meta { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 0.95rem; }
.event-meta li { display: flex; gap: 8px; align-items: center; }
.event-meta .icon { color: var(--gold); width: 18px; height: 18px; }
.event-body .prose { margin-bottom: 18px; }
.event-body .btn { margin-top: auto; white-space: normal; }

.event-card--past { box-shadow: var(--shadow-sm); }
.event-card--past .event-flyer img { filter: saturate(0.6); opacity: 0.85; }
@media (min-width: 1100px) { .event-grid--past .event-card { grid-template-columns: 1fr; } .event-grid--past .event-flyer { height: 220px; min-height: 0; } }

.past-events { margin-top: clamp(48px, 6vw, 72px); }
.past-events-title {
  display: flex; align-items: center; gap: 16px;
  font-size: 1.3rem; color: var(--muted);
  margin-bottom: 22px;
}
.past-events-title::after { content: ''; flex: 1; border-top: 1.5px dashed var(--sand); }

.pill-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); }
.pill-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-weight: 700; font-size: 0.94rem;
}
.pill-nav .icon { color: var(--gold); }
.pill-nav a:hover { background: var(--blush); }

.programs { display: grid; gap: clamp(20px, 3vw, 28px); }
@media (min-width: 900px) { .programs { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.program {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.program header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.program header .feature-icon { margin: 0; flex: none; width: 56px; height: 56px; }
.program header h3 { margin: 0; }
.program .prose { color: var(--muted); }
.program h4 { color: var(--indigo); }
.program-meta {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--linen);
  color: var(--ink);
  font-weight: 650; font-size: 0.95rem;
}
.program-meta .icon { color: var(--gold-deep); margin-top: 2px; }
.session-list { list-style: none; display: grid; gap: 8px; margin: 12px 0 18px; }
.session-list li { display: flex; gap: 12px; align-items: baseline; }
.session-list span {
  flex: none;
  font: italic 500 0.95rem/1 var(--font-display);
  color: var(--rose);
  min-width: 82px;
}
.link-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.link-list li { display: flex; gap: 12px; align-items: flex-start; }
.link-list .icon { color: var(--gold); margin-top: 4px; width: 18px; height: 18px; }
.link-list span { display: grid; }
.link-list strong { color: var(--ink); }
.link-list a { font-size: 0.94rem; word-break: break-word; }

/* ---------------------------------------------------------------- People */

.people-grid { display: grid; gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px); }
@media (min-width: 620px) { .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .people-grid:not(.people-grid--small) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .people-grid--small { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin-inline: auto; } }
@media (min-width: 620px) and (max-width: 979px) { .people-grid--small { max-width: 720px; margin-inline: auto; } }

.person-card { display: grid; gap: 22px; align-content: start; }
.person-card .arch { box-shadow: var(--shadow); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.person-card:hover .arch { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.person-card .arch img { transition: transform 0.8s var(--ease); }
.person-card:hover .arch img { transform: scale(1.04); }
.person-card-body { padding: 0 6px; }
.person-card h3 { margin-bottom: 4px; }
.person-role {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.person-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'SOFT' 100;
  color: var(--muted);
  font-size: 1.03rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.person-quote::before { content: '\201C'; color: var(--gold); }
.person-quote::after { content: '\201D'; color: var(--gold); }
.portrait-placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: radial-gradient(circle at 50% 35%, var(--blush), var(--sand));
  font: 500 3.4rem/1 var(--font-display);
  color: var(--rose);
}
.portrait-placeholder .sprig { width: 110px; }

/* ---------------------------------------------------------------- Modals and lightbox */

.modal {
  width: min(980px, 100% - 24px);
  max-height: min(88vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(45, 43, 76, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in 0.35s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

.modal-inner { position: relative; display: grid; gap: 28px; padding: clamp(22px, 4vw, 48px); }
@media (min-width: 760px) {
  .person-modal .modal-inner, .story-modal .modal-inner { grid-template-columns: 0.7fr 1.3fr; align-items: start; }
  .person-modal-media, .story-modal-media { position: sticky; top: 0; }
}
.person-modal-media { width: min(100%, 320px); margin-inline: auto; }
.person-modal-media .arch { box-shadow: var(--shadow); }
.person-modal-copy h2, .story-modal-copy h2 { margin-bottom: 4px; }
.person-modal-copy .prose, .story-modal-copy .prose { margin-top: 18px; }
.story-modal-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.modal-close {
  position: sticky; top: 0;
  justify-self: end;
  grid-column: 1 / -1;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: -60px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 3;
}
.modal-close:hover { background: var(--blush); }

.lightbox { width: min(1200px, 100% - 24px); background: transparent; box-shadow: none; overflow: visible; max-height: none; }
.lightbox::backdrop { background: rgba(30, 28, 48, 0.88); }
.lightbox-inner { position: relative; display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--white); }
.lightbox figcaption { color: var(--cream); text-align: center; font-size: 0.95rem; max-width: 640px; }
.lightbox .modal-close { position: absolute; top: -8px; right: -4px; margin: 0; }
.lightbox-nav {
  position: absolute; top: 50%;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 253, 249, 0.92);
  color: var(--indigo);
  cursor: pointer;
  transform: translateY(-50%);
}
.lightbox-prev { left: 8px; }
.lightbox-prev .icon { transform: rotate(180deg); }
.lightbox-next { right: 8px; }
.lightbox-nav[hidden] { display: none; }

/* ---------------------------------------------------------------- What is midwifery */

.definitions { display: grid; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 900px) {
  .definitions { grid-template-columns: 1fr 1fr; }
  .definition--wide { grid-column: 1 / -1; }
}
.definition {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: clamp(26px, 3.6vw, 44px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.definition-num { font: italic 400 2.6rem/1 var(--font-display); color: var(--gold); }
.definition-title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); }
.definition p { color: var(--muted); }
.definition p:last-child { margin: 0; }
.definition--wide { background: var(--linen); box-shadow: none; }
@media (min-width: 900px) { .definition--wide > div { columns: 2; column-gap: 48px; } .definition--wide h2 { column-span: all; } }
.definition-photo { margin: 0; border-radius: 160px 160px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 260px; }
.definition-photo img { width: 100%; height: 100%; object-fit: cover; }

.note-card {
  position: relative;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--sand);
}
.note-card p { color: var(--muted); }
.note-sprig { width: 120px; margin-bottom: 10px; }
.note-card--center { text-align: center; }
.note-card--center .note-sprig { margin-inline: auto; }

/* ---------------------------------------------------------------- Clinic */

.schedule {
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(24px, 3vw, 32px);
}
.schedule-row { position: relative; display: grid; gap: 22px; }
@media (min-width: 760px) {
  .schedule-row { grid-template-columns: repeat(3, 1fr); }
  .schedule-row::before { content: ''; position: absolute; top: 13px; left: 16%; right: 16%; border-top: 2px dashed var(--blush-deep); }
}
.schedule-step { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.schedule-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blush); border: 6px solid var(--white);
  box-shadow: 0 0 0 2px var(--rose-soft);
  margin-bottom: 8px;
}
.schedule-step:nth-child(2) .schedule-dot { background: var(--gold-soft); box-shadow: 0 0 0 2px var(--gold); }
.schedule-step:nth-child(3) .schedule-dot { background: var(--sage); box-shadow: 0 0 0 2px var(--sage-deep); }
.schedule-step strong { font: 550 1.3rem/1.2 var(--font-display); color: var(--indigo); }
.schedule-step span { color: var(--muted); }
.schedule-note {
  display: flex; gap: 10px; justify-content: center; align-items: flex-start;
  margin: 28px 0 0;
  color: var(--muted); text-align: center;
}
.schedule-note .icon { color: var(--gold); margin-top: 3px; }

.tips { display: grid; gap: clamp(18px, 2.5vw, 28px); }
@media (min-width: 900px) { .tips { grid-template-columns: 1fr 1fr; } .tip--accent { grid-column: 1 / -1; } }
.tip { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.tip p { color: var(--muted); }
.tip p:last-child { margin: 0; }
.tip-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blush); color: var(--rose); margin-bottom: 16px; }
.tip-icon .icon { width: 24px; height: 24px; }
.tip--accent { background: var(--sage); box-shadow: none; }
.tip--accent .tip-icon { background: var(--white); color: var(--leaf); }
.tip--accent p { color: var(--ink); }
@media (min-width: 900px) { .tip--accent { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0 32px; } .tip--accent h3 { grid-column: 2 / -1; } .tip--accent .tip-icon { grid-row: 1 / 3; } }

.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 12px; }
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.photo-tile {
  position: relative;
  padding: 0; border: 0;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile--feature { grid-column: span 2; grid-row: span 2; border-radius: 50% 50% var(--radius) var(--radius) / 50% 50% var(--radius) var(--radius); }
.photo-tile--tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------------------------------------------------------------- Resources */

.resource-search { max-width: 820px; margin: 0 auto clamp(40px, 5vw, 56px); }
.search-field {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 6px 22px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
}
.search-field:focus-within { border-color: var(--gold); }
.search-field .icon { color: var(--gold); width: 22px; height: 22px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; padding: 14px 0; color: var(--ink); }
.search-count { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 14px 0 0; min-height: 1.4em; }
.resource-search .resource-list { margin-top: 18px; }

.resource-list { list-style: none; display: grid; gap: 10px; }
.resource a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.resource a:hover { transform: translateX(4px); box-shadow: var(--shadow); color: var(--ink); }
.resource-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sage); color: var(--leaf); }
.resource-text { display: grid; gap: 4px; min-width: 0; }
.resource-title { font-weight: 750; color: var(--indigo); line-height: 1.35; }
.resource a:hover .resource-title { color: var(--rose); }
.resource-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 0.88rem; color: var(--muted); }
.resource-host { opacity: 0.85; word-break: break-all; }
.resource-meta > span:first-child:not(.resource-host)::after { content: '\00B7'; margin-left: 10px; opacity: 0.6; }

.category-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.category-grid[hidden] { display: none; }
.category-card {
  --tone: var(--blush); --tone-fg: var(--rose);
  display: grid; gap: 10px; align-content: start;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.tone-1 { --tone: var(--sage); --tone-fg: var(--leaf); }
.tone-2 { --tone: var(--gold-soft); --tone-fg: var(--gold-deep); }
.tone-3 { --tone: var(--linen); --tone-fg: var(--indigo-soft); }
.category-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 46% 54% 50% 50% / 55% 48% 52% 45%; background: var(--tone); color: var(--tone-fg); margin-bottom: 6px; }
.category-icon .icon { width: 26px; height: 26px; }
.category-title { font: 550 1.3rem/1.2 var(--font-display); color: var(--indigo); font-variation-settings: 'SOFT' 100; }
.category-blurb { color: var(--muted); font-size: 0.96rem; }
.category-count { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 750; font-size: 0.9rem; color: var(--tone-fg); }
.category-count .icon { width: 16px; transition: transform 0.25s var(--ease); }
.category-card:hover .category-count .icon { transform: translateX(4px); }

.resource-disclaimer { display: flex; gap: 10px; align-items: flex-start; max-width: 820px; margin: 36px auto 0; font-size: 0.9rem; color: var(--muted); }
.resource-disclaimer .icon { color: var(--gold); margin-top: 3px; }

.resource-layout { display: grid; gap: 40px; }
@media (min-width: 980px) { .resource-layout { grid-template-columns: 1fr 300px; align-items: start; } }
.resource-layout .resource-disclaimer { margin-left: 0; }
.resource-aside { padding: 26px; border-radius: var(--radius-lg); background: var(--linen); }
@media (min-width: 980px) { .resource-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.resource-aside h2 { font-size: 1.3rem; }
.resource-aside ul { list-style: none; display: grid; gap: 2px; margin-bottom: 18px; }
.resource-aside a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.resource-aside a .icon { color: var(--gold); width: 18px; height: 18px; }
.resource-aside a:hover, .resource-aside a[aria-current='page'] { background: var(--white); color: var(--rose); }

/* ---------------------------------------------------------------- Accordion */

.faq-columns { display: grid; gap: 14px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 960px) { .faq-columns { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }
.accordion { display: grid; gap: 14px; }
.accordion-item {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
}
.accordion-item[open] { box-shadow: var(--shadow); }
.accordion-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px 20px 26px;
  cursor: pointer;
  list-style: none;
  font: 550 1.14rem/1.35 var(--font-display);
  color: var(--indigo);
  font-variation-settings: 'SOFT' 100;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary:hover { color: var(--rose); }
.accordion-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--blush); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.accordion-icon::before, .accordion-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--rose); transform: translate(-50%, -50%); }
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.accordion-item[open] .accordion-icon { background: var(--gold-soft); transform: rotate(180deg); }
.accordion-item[open] .accordion-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion-body { padding: 0 26px 24px; color: var(--muted); }
.accordion-body p { margin: 0; }

/* ---------------------------------------------------------------- Stories */

.story-grid { display: grid; gap: clamp(22px, 3vw, 32px); }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }
.story-card {
  display: grid; align-content: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.story-card:hover { transform: translateY(-4px) rotate(var(--tilt, 0deg)); box-shadow: var(--shadow); }
.tilt-0 { --tilt: -0.5deg; }
.tilt-1 { --tilt: 0.4deg; }
.tilt-2 { --tilt: -0.2deg; }
.story-photo { display: block; padding: 0; border: 0; background: var(--sand); aspect-ratio: 5 / 4; overflow: hidden; cursor: pointer; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.story-card:hover .story-photo img { transform: scale(1.05); }
.story-body { padding: 22px 24px 26px; }
.story-body h3 { margin-bottom: 2px; }
.story-meta { font-size: 0.9rem; color: var(--gold-deep); font-weight: 700; margin-bottom: 10px; }
.story-quote { font-family: var(--font-display); font-style: italic; color: var(--muted); }
.story-card--invite {
  position: relative;
  padding: 32px;
  background: var(--blush);
  box-shadow: none;
  border: 2px dashed var(--blush-deep);
  align-content: center;
}
.story-card--invite p { color: var(--ink); font-size: 0.98rem; }
.story-card--invite .btn { justify-self: start; }
.invite-branch { width: 100px; right: -14px; top: -20px; transform: rotate(160deg); opacity: 0.6; }

/* ---------------------------------------------------------------- Contact and forms */

.contact-layout { display: grid; gap: clamp(24px, 4vw, 40px); }
@media (min-width: 980px) { .contact-layout { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.form-card h2 { font-size: 1.8rem; }
.form-intro { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); padding: 14px 16px; border-radius: var(--radius-sm); background: var(--linen); }
.form-intro .icon { color: var(--gold); margin-top: 3px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 8px; font-weight: 750; font-size: 0.95rem; color: var(--indigo); }
.form label > span { color: var(--rose); margin-left: 2px; display: inline; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand);
  background: var(--cream);
  font: inherit; font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success, .form-error { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.form-success { background: var(--sage); color: var(--ink); }
.form-success .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--leaf); color: var(--white); stroke-width: 2.4; }
.form-success p { margin: 0; color: var(--muted); }
.form-error { background: var(--blush); color: var(--ink); }
.form-error .icon { color: var(--rose); margin-top: 3px; }
.form-error p { margin: 0; }
.map-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- CTA band */

.cta-band { padding: 0 0 clamp(24px, 3vw, 40px); }
.section--linen + .cta-band, .section--blush + .cta-band { padding-top: clamp(56px, 7vw, 96px); }
.cta-card {
  position: relative;
  display: grid; gap: 28px; align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 0% 0%, var(--indigo-soft), var(--indigo) 60%);
  color: color-mix(in srgb, var(--cream) 88%, transparent);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.4fr auto; } }
.cta-card h2 { color: var(--cream); }
.cta-card h2 em { color: var(--gold-soft); }
.cta-card p { max-width: 560px; margin: 0; }
.cta-copy, .cta-actions { position: relative; z-index: 2; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-actions { flex-direction: column; } }
.cta-blob { color: rgba(255, 255, 255, 0.05); width: 520px; height: 480px; right: -120px; top: -160px; }
.cta-branch { width: 160px; right: 30%; bottom: -70px; transform: rotate(20deg); opacity: 0.25; }

/* ---------------------------------------------------------------- Footer */

.site-footer { position: relative; color: var(--ink); }
.footer-wave { display: block; width: 100%; height: clamp(40px, 5vw, 80px); color: var(--linen); margin-bottom: -1px; }
.footer-body { background: var(--linen); padding: clamp(32px, 5vw, 56px) 0 28px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr; gap: 48px; } }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--indigo); box-shadow: var(--shadow-sm); }
.footer-social a:hover { background: var(--indigo); color: var(--cream); }
.footer-col h2 { font-size: 1.25rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; color: var(--ink); }
.footer-col a:hover { color: var(--rose); }
.footer-visit p { color: var(--muted); }
.footer-visit a { font-weight: 650; }
.footer-hours { display: grid; gap: 2px; font-size: 0.94rem; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.footer-base p { margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.footer-base a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-base a:hover { color: var(--rose); }
.footer-base .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- 404 */

.not-found { position: relative; padding: clamp(80px, 12vw, 160px) 0; text-align: center; overflow: hidden; }
.not-found .eyebrow { justify-content: center; }
.not-found .lede { max-width: 560px; margin-inline: auto; }
.not-found-branch { width: 160px; left: 50%; top: -40px; transform: translateX(-50%) rotate(180deg); opacity: 0.35; }

/* ---------------------------------------------------------------- Motion */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .rotator > span { animation: none; opacity: 0; }
  .rotator > span:first-child { opacity: 1; }
}

@media print {
  .topbar, .site-header, .cta-band, .site-footer, .illo, .blob { display: none !important; }
  body { background: white; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
