/* ==========================================================================
   Chatswood Endoscopy — "Bloom" design system
   Shared stylesheet for all pages. Muted wine/blush palette, serif display.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBF9FA;
  --surface: #FFFFFF;
  --tint: #F3EAEE;
  --tint-2: #F8F3F5;
  --ink: #2C2027;
  --ink-soft: #6E5D66;
  --berry: #7D4258;
  --berry-deep: #633446;
  --berry-soft: #A5798B;
  --on-berry: #FBF6F8;
  --rose: #E3CBD6;
  --line: #E8DDE2;
  --ok: #3F7D5A;
  --warn: #9A6A2F;
  --shadow-sm: 0 1px 2px rgba(44, 32, 39, .06);
  --shadow-md: 0 2px 4px rgba(44, 32, 39, .05), 0 10px 26px rgba(44, 32, 39, .08);
  --shadow-lg: 0 4px 8px rgba(44, 32, 39, .05), 0 18px 44px rgba(44, 32, 39, .12);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 20px;
  --wrap: 1140px;
}
/* Site is light-mode only — dark palette intentionally removed so the design
   renders identically regardless of OS/browser colour-scheme preference. */
:root[data-theme="light"] {
  --bg: #FBF9FA; --surface: #FFFFFF; --tint: #F3EAEE; --tint-2: #F8F3F5;
  --ink: #2C2027; --ink-soft: #6E5D66;
  --berry: #7D4258; --berry-deep: #633446; --berry-soft: #A5798B; --on-berry: #FBF6F8;
  --rose: #E3CBD6; --line: #E8DDE2;
  --ok: #3F7D5A; --warn: #9A6A2F;
  --shadow-sm: 0 1px 2px rgba(44, 32, 39, .06);
  --shadow-md: 0 2px 4px rgba(44, 32, 39, .05), 0 10px 26px rgba(44, 32, 39, .08);
  --shadow-lg: 0 4px 8px rgba(44, 32, 39, .05), 0 18px 44px rgba(44, 32, 39, .12);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--berry); color: var(--on-berry); }
img { max-width: 100%; display: block; }
a { color: var(--berry); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3, h4 { text-wrap: balance; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--berry); color: var(--on-berry);
  padding: 12px 20px; font-weight: 700; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 26px; }
.section { padding: 92px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.serif { font-family: var(--serif); font-weight: 500; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase;
  color: var(--berry); margin: 0 0 14px;
}
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.8vw, 40px); line-height: 1.2;
  letter-spacing: -0.01em; margin: 0 0 14px;
}
h3 { font-family: var(--serif); font-weight: 500; }
.section-intro { max-width: 600px; color: var(--ink-soft); margin: 0 0 46px; font-size: 17px; }
.center .section-intro { margin-left: auto; margin-right: auto; }
.band { background: var(--tint-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn-berry {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--berry); color: var(--on-berry); text-decoration: none;
  font-weight: 750; font-size: 16.5px; padding: 16px 30px; border-radius: 999px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--berry) 18%, transparent);
  border: none; cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.btn-berry:hover { background: var(--berry-deep); transform: translateY(-2px); box-shadow: 0 9px 22px color-mix(in srgb, var(--berry) 24%, transparent); }
.btn-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface);
  transition: border-color .18s, transform .18s;
}
.btn-quiet:hover { border-color: var(--berry-soft); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--berry); color: var(--berry);
  text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px; background: none; cursor: pointer;
  transition: background .18s, color .18s;
}
.btn-outline:hover { background: var(--berry); color: var(--on-berry); }
.btn-invert {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--berry);
  text-decoration: none; font-weight: 800; font-size: 17px;
  padding: 17px 34px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .18s;
}
.btn-invert:hover { transform: translateY(-2px); }
.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 700; text-decoration: none; color: var(--berry);
}
.textlink svg { transition: transform .2s; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Utility strip ---------- */
.util { background: var(--ink); color: var(--bg); font-size: 13px; }
.util-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 8px 0; }
.util span { opacity: .92; }
.util a { color: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.util a:hover { text-decoration: underline; }
@media (max-width: 640px) { .util .u-hours { display: none; } .util-inner { justify-content: center; } }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
header.site.scrolled { box-shadow: var(--shadow-md); }
.nav { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 39px; width: auto; flex: none; display: block; }
.brand-name { font-family: var(--serif); font-size: 18px; letter-spacing: .01em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-links a {
  position: relative;
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 14px;
  padding: 4px 0; white-space: nowrap; transition: color .18s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:hover { color: var(--berry); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--berry); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--berry); color: var(--on-berry);
  text-decoration: none; font-weight: 700; font-size: 14.5px;
  padding: 12px 22px; border-radius: 10px;
  transition: background .18s, transform .18s;
}
.nav-cta:hover { background: var(--berry-deep); transform: translateY(-1px); }
.menu-btn {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); width: 44px; height: 44px; cursor: pointer; place-items: center;
}
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 15px 26px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.active { color: var(--berry); }
.mobile-menu a.m-cta { color: var(--berry); font-weight: 750; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -160px; top: -120px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--rose) 32%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0 0 22px;
}
.hero h1 em { font-style: italic; color: var(--berry); }
.hero .lede { font-size: 18.5px; color: var(--ink-soft); max-width: 30em; margin: 0 0 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 30px; }
.hero-note { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.hero-note svg { color: var(--berry); flex: none; }

/* Arch visual */
.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); }
.arch {
  aspect-ratio: 4 / 4.7;
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(340px 300px at 70% 20%, color-mix(in srgb, var(--rose) 45%, transparent), transparent 70%),
    radial-gradient(300px 360px at 20% 90%, color-mix(in srgb, var(--berry) 14%, transparent), transparent 72%),
    linear-gradient(165deg, var(--tint) 0%, var(--tint-2) 55%, var(--surface) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.arch::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(color-mix(in srgb, var(--berry) 20%, transparent) 1px, transparent 1px) 0 0 / 22px 22px;
  mask-image: linear-gradient(200deg, black 15%, transparent 60%);
  -webkit-mask-image: linear-gradient(200deg, black 15%, transparent 60%);
}
.arch-label {
  position: absolute; inset: auto 0 0 0;
  display: grid; place-items: center; padding: 26px;
  color: var(--ink-soft); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
/* Photo-filled arches: hero practice photo + doctor portraits */
.arch.has-photo::after, .arch.has-photo .arch-label { display: none; }
.arch > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-years {
  position: absolute; left: -26px; bottom: 54px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
}
.badge-years .num { font-family: var(--serif); font-size: 26px; color: var(--berry); line-height: 1; }
.badge-years .cap { font-size: 12px; color: var(--ink-soft); line-height: 1.35; }
.badge-sat {
  position: absolute; right: -18px; top: 44px;
  background: var(--berry); color: var(--on-berry); border-radius: 999px;
  box-shadow: var(--shadow-md);
  padding: 10px 18px; display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700;
}
@media (max-width: 460px) { .badge-years { left: 0; } .badge-sat { right: 0; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; background: var(--tint-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, color-mix(in srgb, var(--rose) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; padding: 56px 0 60px; max-width: 720px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1;
  letter-spacing: -0.015em; margin: 0 0 16px;
}
.page-hero p { font-size: 18px; color: var(--ink-soft); margin: 0; max-width: 40em; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin: 0 0 22px; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--berry); }
.breadcrumb li[aria-current] { color: var(--berry); font-weight: 650; }
.breadcrumb .sep { color: var(--line); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 54px 0; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } }
.stat { text-align: center; }
.stat .n { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--berry); }
.stat .c { font-size: 13.5px; letter-spacing: .06em; color: var(--ink-soft); margin-top: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 860px) { .stat:nth-child(3) { border-left: none; } }

/* ---------- Feature trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .trio { grid-template-columns: 1fr; } }
.trio-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px 999px 22px 22px;
  padding: 44px 30px 34px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.trio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trio-ic { width: 60px; height: 60px; margin: 0 auto 20px; background: var(--tint); color: var(--berry); border-radius: 50%; display: grid; place-items: center; }
.trio-card h3 { font-size: 20px; margin: 0 0 8px; }
.trio-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--berry) 35%, var(--line)); }
.svc-top { display: flex; align-items: center; gap: 14px; }
.svc-ic {
  width: 46px; height: 46px; flex: none;
  background: var(--tint); color: var(--berry);
  border-radius: 999px 999px 999px 8px;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.svc-card:hover .svc-ic { background: var(--berry); color: var(--on-berry); }
.svc-card h3 { font-size: 19.5px; margin: 0; }
.svc-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.svc-card .textlink { margin-top: 2px; }
.svc-cta-cell {
  background: var(--berry); border: none; border-radius: var(--radius);
  padding: 30px 26px; color: var(--on-berry);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.svc-cta-cell h3 { font-size: 21px; margin: 0; }
.svc-cta-cell p { margin: 0 0 8px; font-size: 14.5px; opacity: .88; }
.svc-cta-cell a {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content;
  background: var(--on-berry); color: var(--berry);
  text-decoration: none; font-weight: 750; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px; transition: transform .18s;
}
.svc-cta-cell a:hover { transform: translateY(-2px); }

/* ---------- Doctors ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 26px 26px 28px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doc-arch {
  width: 132px; height: 150px; margin: 0 auto 20px;
  border-radius: 999px 999px 20px 20px;
  background:
    radial-gradient(90px 90px at 60% 30%, color-mix(in srgb, var(--rose) 55%, transparent), transparent 75%),
    linear-gradient(170deg, var(--tint), var(--tint-2));
  border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--serif); font-size: 30px; color: var(--berry);
}
.doc-arch.has-photo { background: none; }
.doc-arch > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-card h3 { font-size: 21px; margin: 0 0 3px; }
.doc-card .cred { color: var(--berry); font-weight: 650; font-size: 13px; letter-spacing: .03em; margin: 0 0 14px; }
.doc-card .bio { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }
.doc-meta { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 4px; }
.doc-meta strong { color: var(--ink); font-weight: 650; }

/* Full doctor profile */
.doc-profile {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
@media (max-width: 720px) { .doc-profile { grid-template-columns: 1fr; gap: 24px; text-align: center; } }
.doc-profile .doc-arch { margin: 0; width: 200px; height: 226px; }
@media (max-width: 720px) { .doc-profile .doc-arch { margin: 0 auto; } }
.doc-profile h2 { margin: 0 0 4px; font-size: 27px; }
.doc-profile .cred { color: var(--berry); font-weight: 650; font-size: 15px; margin: 0 0 20px; }
.detail-list { display: grid; gap: 18px; margin: 0; }
.detail-list .row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
@media (max-width: 720px) { .detail-list .row { grid-template-columns: 1fr; gap: 4px; text-align: left; } }
.detail-list dt { font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); margin: 3px 0 0; }
.detail-list dd { margin: 0; font-size: 15.5px; color: var(--ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span { background: var(--tint); color: var(--berry); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; }

/* ---------- Patient/GP cards ---------- */
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .pg-grid { grid-template-columns: 1fr; } }
.pg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px; box-shadow: var(--shadow-sm); }
.pg-card h3 { font-size: 21px; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.pg-card h3 .ic { width: 42px; height: 42px; flex: none; background: var(--tint); color: var(--berry); border-radius: 999px 999px 999px 8px; display: grid; place-items: center; }
.pg-card ul { margin: 0 0 24px; padding: 0; list-style: none; }
.pg-card li { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; font-size: 15px; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.pg-card li:last-child { border-bottom: none; }
.pg-card li svg { color: var(--berry); flex: none; margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(130deg, var(--berry-deep), var(--berry) 70%);
  color: #FBF6F8;
  border-radius: 30px; padding: 62px 56px;
  text-align: center; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before { content: ""; position: absolute; left: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; border: 44px solid color-mix(in srgb, currentColor 10%, transparent); }
.cta-band::after { content: ""; position: absolute; right: -50px; bottom: -90px; width: 230px; height: 230px; border-radius: 999px 999px 999px 24px; background: color-mix(in srgb, currentColor 8%, transparent); }
.cta-band h2 { color: inherit; margin-bottom: 10px; }
.cta-band p { margin: 0 auto 30px; max-width: 34em; opacity: .9; font-size: 16.5px; }
.cta-band .btn-invert { position: relative; z-index: 1; }
.cta-sub { position: relative; z-index: 1; margin-top: 16px !important; font-size: 13.5px !important; opacity: .8 !important; }

/* ---------- Prose (article body) ---------- */
.prose { font-size: 16.5px; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; margin-bottom: -.3em; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.3em; }
.prose li { margin: .5em 0; }
.prose a { font-weight: 600; }
.prose blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 24px;
  border-left: 3px solid var(--berry); color: var(--ink);
  font-family: var(--serif); font-size: 20px; font-style: italic;
}

/* ---------- Callouts ---------- */
.callout { border-radius: 16px; padding: 22px 24px; margin: 26px 0; display: flex; gap: 14px; border: 1px solid var(--line); background: var(--tint-2); }
.callout .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--berry); }
.callout h4 { margin: 0 0 4px; font-family: var(--sans); font-size: 15px; font-weight: 750; color: var(--ink); }
.callout p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.callout.prep { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.callout.prep .ic { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 26px 52px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); counter-increment: step;
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--berry); color: var(--on-berry);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.steps { counter-reset: step; }
.steps li::after { content: ""; position: absolute; left: 16.5px; top: 34px; bottom: 6px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h4 { margin: 4px 0 5px; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; }
table.info { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
table.info th, table.info td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.info thead th { background: var(--tint-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--berry); }
table.info tbody tr:last-child td { border-bottom: none; }
table.info td.num { font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Content + aside layout ---------- */
.layout-aside { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
@media (max-width: 900px) { .layout-aside { grid-template-columns: 1fr; gap: 40px; } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.aside-card h4 { margin: 0 0 14px; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); }
.aside-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.aside-card ul a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.aside-card ul a:hover, .aside-card ul a.active { background: var(--tint); color: var(--berry); }
.file-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--tint-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px;
  transition: border-color .18s, transform .18s;
}
.file-link:hover { border-color: var(--berry-soft); transform: translateY(-2px); }
.file-link svg { color: var(--berry); flex: none; }
.file-list { display: grid; gap: 10px; }

/* ---------- Related / next-step cards ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }
.related a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; text-decoration: none; color: var(--ink); font-weight: 650;
  transition: border-color .18s, transform .18s;
}
.related a:hover { border-color: var(--berry-soft); transform: translateY(-3px); }
.related a svg { color: var(--berry); flex: none; }

/* ---------- Conditions ---------- */
.cond-block { border-top: 1px solid var(--line); padding: 40px 0; display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
@media (max-width: 780px) { .cond-block { grid-template-columns: 1fr; gap: 16px; } }
.cond-block h3 { font-size: 24px; margin: 0; }
.cond-block .cond-ic { width: 48px; height: 48px; border-radius: 999px 999px 999px 8px; background: var(--tint); color: var(--berry); display: grid; place-items: center; margin-bottom: 14px; }
.cond-block p { margin: 0 0 14px; color: var(--ink-soft); }
.cond-block .lbl { font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); margin: 0 0 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:has(.faq-btn[aria-expanded="true"]) { border-color: color-mix(in srgb, var(--berry) 40%, var(--line)); box-shadow: var(--shadow-md); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--serif); font-size: 17.5px; color: var(--ink); padding: 21px 26px;
}
.faq-btn:hover { color: var(--berry); }
.faq-btn .chev { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--berry); display: grid; place-items: center; transition: transform .25s; }
.faq-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-body { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-inner { padding: 0 26px 24px; color: var(--ink-soft); font-size: 15px; max-width: 62ch; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 650; color: var(--ink); }
.field .req { color: var(--berry); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--berry); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: 12.5px; color: var(--ink-soft); }
.hint-inline { font-weight: 400; }
/* Appointment form extras */
.check-field { border: 0; padding: 0; margin: 0 0 20px; }
.check-field legend { font-size: 14px; font-weight: 650; color: var(--ink); padding: 0; margin: 0 0 12px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 20px; }
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--berry); flex: none; margin: 0; }
.steps-lite { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.steps-lite li::marker { color: var(--berry); font-weight: 700; }
.dl-list { display: grid; gap: 10px; }
.dl { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; background: var(--bg); transition: border-color .15s, color .15s; }
.dl:hover { border-color: var(--berry-soft); color: var(--berry); }
.dl-meta { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--berry); background: var(--tint); padding: 3px 8px; border-radius: 999px; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
form.is-loading .spinner { display: inline-block; }
form.is-loading .btn-ic { display: none; }
form.is-loading button[type="submit"] { opacity: .8; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---------- Contact info blocks ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-lines li { display: flex; gap: 14px; align-items: flex-start; }
.contact-lines .ic { flex: none; width: 44px; height: 44px; border-radius: 999px 999px 999px 8px; background: var(--tint); color: var(--berry); display: grid; place-items: center; }
.contact-lines .k { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--berry); margin: 2px 0 3px; }
.contact-lines .v { font-size: 16px; color: var(--ink); }
.contact-lines .v a { color: var(--ink); text-decoration: none; }
.contact-lines .v a:hover { color: var(--berry); }
.hours { display: grid; grid-template-columns: auto auto; gap: 8px 22px; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink-soft); }
.hours strong { color: var(--ink); font-weight: 650; }
.map-embed {
  margin-top: 0; height: 100%; min-height: 320px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(38deg, transparent 47%, color-mix(in srgb, var(--berry) 12%, transparent) 47%, color-mix(in srgb, var(--berry) 12%, transparent) 50%, transparent 50%),
    var(--tint-2);
  position: relative; display: grid; place-items: center;
}
.map-embed .pin { color: var(--berry); filter: drop-shadow(0 3px 4px rgba(0,0,0,.2)); }
.map-embed .tag { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 6px 16px; box-shadow: var(--shadow-sm); white-space: nowrap; }

/* ---------- Footer ---------- */
footer.site { background: var(--surface); border-top: 1px solid var(--line); padding: 70px 0 42px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-tagline { font-family: var(--serif); font-size: 18px; line-height: 1.5; margin: 16px 0 22px; max-width: 22em; color: var(--ink); }
.foot-grid h4 { margin: 0 0 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--berry); }
.foot-grid p, .foot-grid li { font-size: 14.5px; color: var(--ink-soft); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid ul a { color: var(--ink-soft); text-decoration: none; }
.foot-grid ul a:hover { color: var(--berry); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink-soft); display: grid; place-items: center; transition: border-color .18s, color .18s, transform .18s; }
.socials a:hover { border-color: var(--berry); color: var(--berry); transform: translateY(-2px); }
.copyright { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Mobile call bar ---------- */
.callbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--berry); color: var(--on-berry);
  text-decoration: none; font-weight: 750; font-size: 16px;
  padding: 15px; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.14);
}
@media (max-width: 700px) { .callbar { display: flex; } body { padding-bottom: 56px; } }

/* ---------- Helpers ---------- */
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
