/* ============================================================
   Dentistry @ Manotick — Design System
   Palette: pastel blues, warm whites, charcoal
   ============================================================ */

:root {
  /* Brand color scale — pastel blue + slate navy */
  --brand-900: #243642;
  --brand-800: #2b4f68;
  --brand-700: #35688a;
  --brand-600: #4285ab;
  --brand-500: #58a3c9;
  --brand-400: #7ec0e0;
  --brand-300: #a8d9ee;
  --brand-200: #cbecfa;
  --brand-100: #e7f3fb;
  --brand-50:  #f5fafd;

  --gold-500: #e4b93e;
  --gold-100: #fdf3d4;

  --charcoal: #243642;
  --ink: #2c3f4c;
  --ink-soft: #4b5d67;
  --ink-faint: #7a8a94;

  --paper: #ffffff;
  --cream: #fbfbf9;
  --mist: #f2f6f8;
  --line: #e2e9ed;

  --danger: #b3372f;
  --danger-bg: #fdf1f0;

  /* Typography */
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --text-2xl: clamp(1.35rem, 1.2rem + 0.8vw, 1.7rem);
  --text-3xl: clamp(1.6rem, 1.35rem + 1.3vw, 2.15rem);
  --text-4xl: clamp(1.9rem, 1.5rem + 2.2vw, 2.75rem);

  /* Layout */
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);

  /* Shape & elevation */
  --radius-sm: 0.5rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 1px 2px rgb(20 51 42 / 0.06), 0 2px 8px rgb(20 51 42 / 0.05);
  --shadow: 0 2px 6px rgb(20 51 42 / 0.06), 0 10px 30px rgb(20 51 42 / 0.09);
  --shadow-lg: 0 4px 12px rgb(20 51 42 / 0.08), 0 24px 60px rgb(20 51 42 / 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.18; text-wrap: balance; font-family: var(--font-display); font-weight: 400; color: var(--charcoal); }
p, li { text-wrap: pretty; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-800); }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand-200); }

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

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 200;
  background: var(--brand-800); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-600);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--brand-400); border-radius: 2px; }

.section { padding-block: var(--section-pad); }
.section--mist { background: var(--mist); }
.section--cream { background: var(--cream); }
.section--dark { background: linear-gradient(160deg, var(--brand-800), var(--brand-900)); color: var(--brand-100); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--brand-300); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--text-3xl); margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-soft); font-size: var(--text-lg); }
.section--dark .section-head p { color: var(--brand-200); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: var(--text-sm); 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);
  min-height: 48px;
}
.btn svg { flex: none; width: 18px; height: 18px; }
.btn--primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-800); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--light { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--brand-900); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { border-color: var(--brand-300); color: var(--brand-800); background: transparent; }
.btn--outline:hover { border-color: var(--brand-600); background: var(--brand-50); color: var(--brand-900); }
.btn--outline-light { border-color: rgb(255 255 255 / 0.45); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); color: #fff; }
.btn--lg { padding: 1.05rem 2.25rem; font-size: var(--text-base); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #93271f; color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.topbar {
  background: var(--brand-900); color: var(--brand-100);
  font-size: var(--text-xs); padding-block: 0.45rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; justify-content: space-between; align-items: center; }
.topbar a { color: var(--brand-100); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__group { display: flex; gap: 1.25rem; align-items: center; }
.topbar__item { display: inline-flex; gap: 0.4rem; align-items: center; }
.topbar__item svg { width: 14px; height: 14px; }
@media (max-width: 40em) { .topbar__hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--charcoal); letter-spacing: -0.01em; }
.brand__sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-600); }

.nav-desktop { display: none; }
@media (min-width: 64em) {
  .nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
}
.nav-desktop > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.25rem; }
.nav-desktop a.nav-link, .nav-desktop button.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.85rem; border: 0; background: none; border-radius: 999px;
  font-size: var(--text-sm); font-weight: 550; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-desktop a.nav-link:hover, .nav-desktop button.nav-link:hover,
.nav-desktop a.nav-link[aria-current="page"] { background: var(--brand-100); color: var(--brand-900); }
.nav-desktop .nav-link svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.nav-item { position: relative; }
.nav-item.is-open > .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.5rem; list-style: none;
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 0.55rem 0.9rem; border-radius: var(--radius-sm);
  font-size: var(--text-sm); color: var(--ink); text-decoration: none;
}
.dropdown a:hover { background: var(--brand-50); color: var(--brand-900); }

.header-cta { display: none; }
@media (min-width: 48em) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 64em) { .nav-toggle { display: none; } }

/* Mobile nav */
.nav-mobile {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: 1.5rem var(--gutter) 6rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; }
.nav-mobile > ul > li { border-bottom: 1px solid var(--line); }
.nav-mobile a, .nav-mobile button.submenu-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 0.95rem 0.25rem; background: none; border: 0; cursor: pointer;
  font-size: var(--text-lg); font-weight: 550; color: var(--charcoal); text-decoration: none; text-align: left;
}
.nav-mobile a svg, .nav-mobile button.submenu-toggle svg { width: 20px; height: 20px; flex: none; }
.nav-mobile .submenu { display: none; padding: 0 0 0.75rem 0.9rem; }
.nav-mobile .submenu a { font-size: var(--text-base); font-weight: 450; color: var(--ink-soft); padding-block: 0.55rem; }
.nav-mobile li.is-open > .submenu { display: block; }
.nav-mobile .submenu-toggle svg { transition: transform 0.25s var(--ease); }
.nav-mobile li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
.nav-mobile__cta { display: grid; gap: 0.75rem; padding-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(50rem 30rem at 110% -10%, var(--brand-100), transparent 60%),
    radial-gradient(40rem 26rem at -15% 110%, var(--gold-100), transparent 55%),
    var(--cream);
}
.hero__inner {
  display: grid; gap: 2.5rem; align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
@media (min-width: 56em) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; } }
.hero h1 { font-size: var(--text-4xl); margin-bottom: 1.1rem; letter-spacing: -0.015em; }
.hero h1 em { font-style: italic; color: var(--brand-700); }
.hero__lede { font-size: var(--text-xl); color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; padding: 0; margin: 0; list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--ink-soft); font-weight: 500; }
.hero__trust svg { width: 18px; height: 18px; color: var(--brand-600); flex: none; }
.hero__media { position: relative; }
.hero__media > .hero-art { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

.hero-badge {
  position: absolute; display: flex; gap: 0.75rem; align-items: center;
  background: rgb(255 255 255 / 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.7); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.8rem 1.1rem;
}
.hero-badge--tl { top: 1.25rem; left: -0.75rem; }
.hero-badge--br { bottom: 1.5rem; right: -0.5rem; }
@media (max-width: 56em) { .hero-badge--tl { left: 0.75rem; } .hero-badge--br { right: 0.75rem; } }
.hero-badge__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-100); display: grid; place-items: center; color: var(--brand-700); flex: none; }
.hero-badge__icon svg { width: 22px; height: 22px; }
.hero-badge strong { display: block; font-size: var(--text-sm); color: var(--charcoal); line-height: 1.3; }
.hero-badge span { font-size: var(--text-xs); color: var(--ink-soft); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 56em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 72em) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1.1rem;
  background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card:hover .card__icon { background: var(--brand-700); color: #fff; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--text-xl); margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: var(--text-sm); margin-bottom: 0.75rem; }
.card .card-link { font-weight: 600; font-size: var(--text-sm); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.card .card-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }
.card-link--cover::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Feature / checklist lists */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--brand-600); flex: none; margin-top: 0.2rem; }
.section--dark .check-list svg { color: var(--brand-300); }

/* ---------- Split sections ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split--rev > :first-child { order: 2; }
}
.split__media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.split h2 { font-size: var(--text-3xl); margin-bottom: 1rem; }
.split p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 56em) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.75rem 1rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius-lg); }
.stat strong { display: block; font-family: var(--font-display); font-size: var(--text-3xl); color: #fff; }
.stat span { font-size: var(--text-sm); color: var(--brand-200); }

/* ---------- Doctors ---------- */
.doctor-card { text-align: center; }
.doctor-card__photo {
  width: min(100%, 15rem); aspect-ratio: 1; margin: 0 auto 1.25rem; border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-200), var(--brand-100));
  display: grid; place-items: center; overflow: hidden;
}
.doctor-card__photo svg { width: 55%; height: 55%; color: var(--brand-600); }
.doctor-card .role { color: var(--brand-700); font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.5rem; }

/* ---------- Reviews ---------- */
.review-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.review-card .stars { display: inline-flex; gap: 2px; color: var(--gold-500); }
.review-card .stars svg { width: 18px; height: 18px; }
.review-card blockquote { font-size: var(--text-base); color: var(--ink); font-style: italic; flex: 1; }
.review-card figcaption { font-weight: 600; font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.85rem; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq details[open] { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.4rem; cursor: pointer; font-weight: 600; color: var(--charcoal);
  list-style: none; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand-600);
  transition: transform 0.3s var(--ease); flex: none; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 1.4rem 1.25rem; color: var(--ink-soft); }
.faq .faq__body p + p { margin-top: 0.6rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 56em) { .steps--row { grid-template-columns: repeat(var(--steps, 3), 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 400; color: var(--brand-300);
  display: block; margin-bottom: 0.5rem;
}
.steps h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.steps p { font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  border-radius: var(--radius-xl); padding: clamp(2.25rem, 6vw, 4rem);
  text-align: center; color: var(--brand-100); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(30rem 16rem at 85% 20%, rgb(255 255 255 / 0.08), transparent 60%);
}
.cta-band h2 { color: #fff; font-size: var(--text-3xl); margin-bottom: 0.75rem; }
.cta-band p { max-width: 38rem; margin: 0 auto 1.75rem; color: var(--brand-200); font-size: var(--text-lg); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: var(--text-xs); padding-block: 1rem 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-faint); }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); text-decoration: underline; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-50), #fff); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-hero h1 { font-size: var(--text-4xl); max-width: 20ch; margin-bottom: 1rem; letter-spacing: -0.015em; }
.page-hero .lede { font-size: var(--text-xl); color: var(--ink-soft); max-width: 42rem; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* ---------- Prose (long-form content) ---------- */
.prose { max-width: var(--container-narrow); }
.prose h2 { font-size: var(--text-2xl); margin: 2.5rem 0 0.9rem; }
.prose h3 { font-size: var(--text-xl); margin: 2rem 0 0.7rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--brand-500); }
.prose blockquote {
  border-left: 3px solid var(--brand-400); background: var(--brand-50);
  padding: 1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
  color: var(--ink); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { background: var(--brand-50); color: var(--charcoal); font-weight: 650; }
.prose .table-scroll { overflow-x: auto; }

/* Key takeaway / snippet box */
.snippet-box {
  background: var(--brand-50); border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 1.75rem 0;
}
.snippet-box h2, .snippet-box h3 { margin-top: 0 !important; font-size: var(--text-lg); }
.snippet-box p:last-child { margin-bottom: 0; }

.note-box {
  background: var(--gold-100); border: 1px solid #e8d8b4;
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 1.5rem 0; font-size: var(--text-sm);
}

/* ---------- Sidebar layout ---------- */
.with-sidebar { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64em) { .with-sidebar { grid-template-columns: minmax(0, 1fr) 20rem; } }
.sidebar { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sidebar-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.sidebar-card h2, .sidebar-card h3 { font-size: var(--text-lg); margin-bottom: 0.9rem; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.sidebar-card ul a { display: block; padding: 0.45rem 0.65rem; border-radius: var(--radius-sm); text-decoration: none; font-size: var(--text-sm); color: var(--ink); }
.sidebar-card ul a:hover, .sidebar-card ul a[aria-current="page"] { background: var(--brand-100); color: var(--brand-900); }
.sidebar-card--cta { background: linear-gradient(150deg, var(--brand-700), var(--brand-900)); border: 0; color: var(--brand-100); }
.sidebar-card--cta h2, .sidebar-card--cta h3 { color: #fff; }
.sidebar-card--cta p { font-size: var(--text-sm); color: var(--brand-200); margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: var(--brand-200); font-size: var(--text-sm); }
.site-footer a { color: var(--brand-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
@media (min-width: 48em) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-col h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-400); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-brand p { margin: 1rem 0 1.25rem; max-width: 26rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(255 255 255 / 0.08); transition: background 0.25s var(--ease); }
.footer-social a:hover { background: var(--brand-600); }
.footer-social svg { width: 20px; height: 20px; }
.footer-hours { display: grid; gap: 0.4rem; }
.footer-hours div { display: flex; justify-content: space-between; gap: 1rem; }
.footer-hours dt { font-weight: 500; color: var(--brand-100); }
.footer-hours dd { margin: 0; text-align: right; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: var(--text-xs); color: var(--brand-300); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Floating book button (mobile) ---------- */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(0); transition: transform 0.3s var(--ease);
}
.floating-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem; font-weight: 650; font-size: var(--text-sm); text-decoration: none;
}
.floating-cta a svg { width: 18px; height: 18px; }
.floating-cta__call { background: #fff; color: var(--brand-800); }
.floating-cta__book { background: var(--brand-700); color: #fff; }
@media (min-width: 64em) { .floating-cta { display: none; } }
body { padding-bottom: 0; }
@media (max-width: 63.99em) { body { padding-bottom: 3.6rem; } }

/* ---------- Forms ---------- */
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-progress { margin-bottom: 2rem; }
.form-progress__track { height: 8px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.form-progress__bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand-500), var(--brand-700)); border-radius: 999px; transition: width 0.4s var(--ease); }
.form-progress__label { display: flex; justify-content: space-between; font-size: var(--text-xs); color: var(--ink-soft); margin-top: 0.5rem; font-weight: 600; }

.form-step { display: none; }
.form-step.is-active { display: block; animation: stepIn 0.35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.form-step > h2 { font-size: var(--text-2xl); margin-bottom: 0.4rem; }
.form-step > .step-desc { color: var(--ink-soft); margin-bottom: 1.75rem; }

.field { margin-bottom: 1.35rem; }
.field label, .fieldset-label { display: block; font-weight: 600; font-size: var(--text-sm); color: var(--charcoal); margin-bottom: 0.45rem; }
.field .hint { font-size: var(--text-xs); color: var(--ink-faint); margin-top: 0.35rem; }
.field .req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field input[type="number"], .field input[type="file"],
.field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s; min-height: 48px;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error-msg { display: none; color: var(--danger); font-size: var(--text-xs); font-weight: 600; margin-top: 0.35rem; }
.field.has-error .error-msg { display: block; }

.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40em) { .field-row--2 { grid-template-columns: 1fr 1fr; } .field-row--3 { grid-template-columns: repeat(3, 1fr); } }

fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }
fieldset legend { font-weight: 600; font-size: var(--text-sm); color: var(--charcoal); margin-bottom: 0.6rem; padding: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; font-size: var(--text-sm); font-weight: 500; background: #fff;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.choice-stack { display: grid; gap: 0.6rem; }
.choice-stack .choice { border-radius: var(--radius-sm); width: 100%; justify-content: flex-start; }

.conditional { display: none; margin-top: 0.85rem; padding: 1rem 1.25rem; background: var(--brand-50); border-radius: var(--radius); }
.conditional.is-visible { display: block; animation: stepIn 0.3s var(--ease); }

.signature-pad { border: 1.5px dashed var(--brand-300); border-radius: var(--radius); background: var(--cream); position: relative; }
.signature-pad canvas { width: 100%; height: 160px; display: block; touch-action: none; border-radius: var(--radius); }
.signature-pad .sig-clear { position: absolute; top: 0.5rem; right: 0.5rem; font-size: var(--text-xs); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; }

.form-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.autosave-note { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--text-xs); color: var(--ink-faint); margin-top: 1rem; }
.autosave-note svg { width: 14px; height: 14px; color: var(--brand-500); }
.autosave-note.is-saved { color: var(--brand-600); font-weight: 600; }

.form-success { text-align: center; padding: 3rem 1rem; }
.form-success svg { width: 64px; height: 64px; color: var(--brand-500); margin: 0 auto 1.25rem; }
.form-success h2 { font-size: var(--text-2xl); margin-bottom: 0.6rem; }
.form-success p { color: var(--ink-soft); max-width: 30rem; margin: 0 auto 1.5rem; }

/* ---------- Gallery (before/after) ---------- */
.ba-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ba-card__imgs { display: grid; grid-template-columns: 1fr 1fr; }
.ba-card__imgs > div { aspect-ratio: 4/3; display: grid; place-items: center; font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.ba-before { background: linear-gradient(150deg, #ded8cc, #cfc8ba); color: #6b6357; }
.ba-after { background: linear-gradient(150deg, var(--brand-200), var(--brand-300)); color: var(--brand-900); }
.ba-card figcaption { padding: 1rem 1.25rem; font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- Article cards ---------- */
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card time { font-size: var(--text-xs); color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.article-card h3 { margin: 0.5rem 0; }
.article-card p { flex: 1; }

/* ---------- Map / contact ---------- */
.map-embed { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: min(60vw, 26rem); border: 0; }

.map-facade {
  position: relative; height: min(60vw, 26rem);
  display: grid; place-items: center; gap: 1rem;
  background:
    radial-gradient(18rem 10rem at 30% 30%, var(--brand-100), transparent 70%),
    radial-gradient(16rem 10rem at 75% 70%, var(--gold-100), transparent 65%),
    var(--mist);
}
.map-facade:has(iframe) { display: block; }
.map-facade__btn {
  display: flex; align-items: center; gap: 0.85rem; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.5rem; cursor: pointer;
  font-size: var(--text-sm); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.map-facade__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.map-facade__btn svg { width: 28px; height: 28px; color: var(--brand-600); flex: none; }
.map-facade__btn strong { color: var(--charcoal); }
.map-facade__link { position: absolute; bottom: 1rem; font-size: var(--text-xs); color: var(--ink-soft); }

.contact-tiles { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .contact-tiles { grid-template-columns: repeat(2, 1fr); } }
.contact-tile { display: flex; gap: 1rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-tile .tile-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; }
.contact-tile .tile-icon svg { width: 22px; height: 22px; }
.contact-tile strong { display: block; color: var(--charcoal); margin-bottom: 0.15rem; }
.contact-tile span, .contact-tile a { font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- Reveal on scroll (hidden only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Emergency banner ---------- */
.urgent-strip { background: var(--danger-bg); border: 1px solid #f2d4d1; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.urgent-strip p { margin: 0; font-size: var(--text-sm); }
.urgent-strip strong { color: var(--danger); }
