/* Hazeldean Family Dental Centre — site styles
   Colours and fonts are set once here in :root. */

:root {
  /* Brand colours from the logo and the roll-up banner */
  --brand: #1F7AB4;      /* brand blue: hero and page-header backgrounds */
  --navy: #121A3E;       /* banner waves, footer, deep bands */
  --purple: #38295F;     /* logo wordmark: headings */
  --sky: #3295C9;        /* logo tooth and tagline */

  --paper: #FFFFFF;
  --white: #FFFFFF;
  --ink: #1E2340;
  --ink-soft: #4A5470;
  --teal: #1F7AB4;       /* links, buttons, icons (brand blue) */
  --teal-deep: #155D8C;  /* hover */
  --teal-pale: #A9C8EC;  /* light blue lines and numbers on dark */
  --sage: #E7F0FB;       /* light blue section background */
  --sage-mid: #7FB3DD;
  --sand: #F3F7FC;
  --line: #D6E2F0;
  --focus: #F2B84B;

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --arch: 999px 999px 26px 26px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--purple);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: 65ch; }
.lede { font-size: 1.25rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .95rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--teal-deep);
  padding: .7rem 1rem; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ---------- Buttons ---------- */
.btn {
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .7rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); color: var(--white); }
.btn-outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-light { background: var(--white); color: var(--teal-deep); }
.btn-light:hover { background: var(--sage); color: var(--teal-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Notice + utility bar ---------- */
.notice { background: var(--purple); color: var(--white); text-align: center; font-size: .98rem; padding: .6rem var(--gutter); }
.notice p { margin: 0; }

.utility { background: var(--navy); color: #E6ECF7; font-size: .93rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; }
.utility a { color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.utility a:hover { text-decoration: underline; }
.utility svg { width: 16px; height: 16px; color: var(--teal-pale); }
.utility-group { display: flex; gap: 1.5rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #FFFFFF; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5BC08A; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); }
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); position: relative; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img { height: 58px; width: auto; display: block; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; line-height: 1; letter-spacing: -0.025em; }
.brand-sub { display: block; font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; letter-spacing: .01em; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a { display: block; padding: .55rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.nav a:hover { background: var(--sage); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: calc(100% + 4px); left: -.5rem; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px -24px rgba(23, 50, 59, .45);
  display: none;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { font-weight: 400; padding: .5rem .75rem; }
.nav .nav-book { display: none; }

.header-cta { display: flex; gap: .5rem; flex: none; }
.nav-toggle {
  display: none; margin-left: auto;
  align-items: center; gap: .45rem;
  background: none; border: 2px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; font: 600 1rem var(--font-body); color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }
body.nav-open .nav-toggle .icon-menu { display: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--sage { background: var(--sage); }
.section--sand { background: var(--sand); }
.section--deep { background: var(--navy); color: #DCE4F2; }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section--deep a:not(.btn) { color: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }
.section--deep .section-head p { color: #C9D6EA; }

/* ---------- Arches (photo frames) ---------- */
.arch { border-radius: var(--arch); overflow: hidden; background: var(--sage); aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame { position: relative; isolation: isolate; }
.arch-frame::before {
  content: ""; position: absolute; z-index: -1;
  inset: 5% -5% -4% 7%;
  border: 2px solid var(--sage-mid);
  border-radius: var(--arch);
}

/* ---------- Home hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 44ch; }
.hero-actions { margin: 1.9rem 0 1.6rem; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--ink-soft); font-size: 1rem; }
.facts li { display: flex; align-items: center; gap: .45rem; }
.facts svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.hero-figure { max-width: 470px; width: 100%; justify-self: end; }

/* ---------- Service list ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.service-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start;
  padding: 1.45rem .25rem; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.service-item:hover { color: var(--ink); }
.service-item:hover .service-name { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.service-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: var(--teal); display: grid; place-items: center; }
.section--sage .service-icon { background: var(--white); }
.service-icon svg { width: 27px; height: 27px; }
.service-name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.015em; line-height: 1.2; margin: .1rem 0 .3rem; }
.service-desc { display: block; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--rev { grid-template-columns: 1.2fr .8fr; }
.split .arch { max-width: 420px; }

.note-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.note-list li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; align-items: start; }
.note-list svg { width: 24px; height: 24px; color: var(--teal); margin-top: .15rem; }

/* ---------- Steps (real sequences only) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.25rem 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 1.75rem; }
.steps > li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 1.1rem; }
.steps > li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.3rem; line-height: 1; color: var(--teal); margin-bottom: .7rem; }
.steps h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.section--deep .steps > li { border-top-color: rgba(255,255,255,.3); }
.section--deep .steps > li::before { color: var(--teal-pale); }
.section--deep .steps p { color: #C9D6EA; }

/* ---------- Visit / location ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit-map { border-radius: 22px; overflow: hidden; min-height: 360px; background: var(--white); border: 1px solid var(--line); }
.visit-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.contact-list li { display: grid; grid-template-columns: 26px 1fr; gap: .75rem; }
.contact-list svg { width: 22px; height: 22px; color: var(--teal); margin-top: .2rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours th { padding-right: 1rem; }
.site-footer .hours th, .site-footer .hours td { border-bottom-color: rgba(255,255,255,.14); }

.strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2.5rem; padding: 1.8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip p { margin: 0; max-width: 60ch; }

/* ---------- Video ---------- */
.video { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--sage); padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(2.5rem, 5.5vw, 4.25rem); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: end; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.page-hero .lede { max-width: 60ch; margin-bottom: 0; }
.page-hero-actions { margin-top: 1.6rem; }
.crumbs { font-size: .95rem; margin-bottom: 1.1rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs span[aria-hidden] { margin: 0 .4rem; }
.hero-mark { width: 190px; aspect-ratio: 4 / 5; border-radius: var(--arch); background: var(--white); color: var(--teal); display: grid; place-items: center; }
.hero-mark svg { width: 46%; height: auto; }

/* ---------- Article (service pages) ---------- */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.9rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; padding-left: .2rem; }
.prose li::marker { color: var(--teal); }
.prose dl { margin: 0 0 1em; }
.prose dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-top: 1.25rem; }
.prose dd { margin: .25rem 0 0; color: var(--ink-soft); }

.numbered { list-style: none; counter-reset: n; padding: 0 !important; margin: 1.5rem 0; }
.numbered > li { counter-increment: n; position: relative; padding-left: 3.4rem !important; margin-bottom: 1.4rem; }
.numbered > li::before {
  content: counter(n); position: absolute; left: 0; top: -.15rem;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  background: var(--sage); color: var(--teal-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  display: grid; place-items: center;
}
.numbered strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: .1rem; }

.callout { background: var(--sage); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.75rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--alert { background: #FBEDE7; border-left: 4px solid #B5512F; border-radius: 0 var(--radius) var(--radius) 0; }

.disclosure { font-size: .95rem; color: var(--ink-soft); border-left: 3px solid var(--sage-mid); padding-left: 1rem; margin-top: 2.75rem; }

.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.25rem; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; }
.aside-card h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.aside-card p { font-size: 1rem; color: var(--ink-soft); }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: .6rem; }
.aside-links { list-style: none; padding: 0; margin: 0; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links a { display: block; padding: .6rem 0; text-decoration: none; color: var(--ink); font-size: 1rem; }
.aside-links a:hover { color: var(--teal); text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.1rem 2.6rem 1.1rem 0;
  font-weight: 600; font-size: 1.1rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:hover { color: var(--teal); }
.faq .faq-body { padding: 0 0 1.25rem; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.person .arch { max-width: 360px; margin-bottom: 1.5rem; }
.person h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.person .role { color: var(--teal); font-weight: 600; margin-bottom: .8rem; }

.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.photo-row figure { margin: 0; }
.photo-row img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo-row figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .5rem; }
.wide-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Resources ---------- */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.doc-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.doc-list h3 { font-size: 1.2rem; margin: 0; }
.doc-list p { font-size: 1rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.doc-list a { margin-top: auto; font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: 1rem; margin-bottom: .4rem; padding: 0; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .92rem; margin-top: -.2rem; margin-bottom: .4rem; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="file"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; background: var(--white);
  border: 1.5px solid #B6C5C1; border-radius: 10px;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(13, 92, 99, .22); outline-offset: 0; }
.choice { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.choice label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 400; margin: 0; }
.choice input { width: 20px; height: 20px; accent-color: var(--teal); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: .65rem; font-size: .98rem; }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--teal); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 3.5vw, 2.25rem); }
.alert { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; background: #E2F1E8; border: 1px solid #9CC9AE; }
.alert--error { background: #FBECE7; border-color: #E2AE9D; }
.alert p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D3E6; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h2 { font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer .brand { color: var(--white); margin-bottom: 1.25rem; }
.site-footer .brand img { height: 70px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; font-size: .92rem; color: #A3B2CF; }
.footer-bottom p { margin: 0; max-width: 70ch; }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: repeat(3, 1fr); gap: .4rem;
  background: var(--white); border-top: 1px solid var(--line);
  padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom));
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  padding: .4rem .25rem; border-radius: 12px;
  font-size: .86rem; font-weight: 600; color: var(--teal-deep); text-decoration: none; line-height: 1.2;
}
.action-bar a.is-primary { background: var(--teal); color: var(--white); }
.action-bar svg { width: 22px; height: 22px; }

/* ---------- 404 / thank you ---------- */
.center-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.center-page .lede { margin-inline: auto; max-width: 48ch; }
.center-page .btn-row { justify-content: center; }


/* ---------- Team ---------- */
.faces { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.faces li { display: grid; gap: .15rem; text-align: center; }
.faces img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); background: var(--sage); margin-bottom: .5rem; }
.face-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.face-since { font-size: .9rem; color: var(--ink-soft); }

.doc-teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.doc-card { display: grid; gap: .3rem; text-decoration: none; color: var(--ink); }
.doc-card:hover { color: var(--ink); }
.doc-card .arch { display: block; margin-bottom: .9rem; max-width: 100%; }
.doc-card-name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.doc-card:hover .doc-card-name { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.doc-card-role { color: var(--ink-soft); font-size: 1rem; }

.doctors { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.doctor { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.doctor h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .25rem; }
.role { color: var(--teal); font-weight: 600; margin-bottom: 1rem; }

.staff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem); }
.staff-card { min-width: 0; }
.staff-card .arch { margin-bottom: 1.1rem; }
.staff-card h3 { font-size: 1.35rem; margin-bottom: .15rem; }
.staff-card .role { margin-bottom: .6rem; font-size: 1rem; }
.staff-card p:last-child { font-size: 1rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.monogram { display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); }
.monogram span { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.5rem, 7vw, 5rem); color: var(--sage-mid); }

@media (max-width: 1000px) {
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor .arch-frame { max-width: 320px; }
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .doc-teaser { grid-template-columns: 1fr; }
  .doc-teaser .doc-card { grid-template-columns: 96px 1fr; column-gap: 1rem; align-items: center; }
  .doc-teaser .arch { grid-row: span 2; margin: 0; }
  .faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-grid { grid-template-columns: 1fr; gap: 2rem; }
  .staff-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 1.1rem; align-items: start; }
  .staff-card .arch { grid-row: span 4; margin: 0; }
  .staff-card .monogram span { font-size: 2.5rem; }
}


/* ---------- Brand blue headers (like the roll-up banner) ---------- */
.on-blue { background: var(--brand); color: #FFFFFF; position: relative; }
.on-blue h1, .on-blue h2 { color: #FFFFFF; }
.on-blue .lede, .on-blue p { color: #FFFFFF; }
.on-blue a:not(.btn) { color: #FFFFFF; }
.on-blue .facts { color: #FFFFFF; }
.on-blue .facts svg { color: var(--teal-pale); }
.on-blue .btn-primary { background: #FFFFFF; color: var(--navy); }
.on-blue .btn-primary:hover { background: var(--sage); color: var(--navy); }
.on-blue .btn-outline { border-color: rgba(255,255,255,.85); color: #FFFFFF; }
.on-blue .btn-outline:hover { background: rgba(255,255,255,.14); color: #FFFFFF; }
.on-blue .crumbs, .on-blue .crumbs a { color: #E1EDF8; }
.on-blue .arch-frame::before { border-color: rgba(255,255,255,.6); }
.on-blue .arch { background: #2B87C2; }
.page-hero.on-blue { background: var(--brand); }
.hero.on-blue { padding-bottom: 0; }
.hero.on-blue .wrap { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.tagline-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .35rem .95rem; font-weight: 700; font-size: .98rem; margin-bottom: 1.25rem; }
.tagline-badge svg { width: 18px; height: 18px; color: var(--teal-pale); }
.wave { display: block; width: 100%; height: clamp(36px, 5.5vw, 80px); }
.page-hero.on-blue { padding-bottom: 0; }
.page-hero.on-blue > .wrap { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Amenities ---------- */
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.amenities li { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.amenities .service-icon { width: 46px; height: 46px; flex: none; }
.amenities .service-icon svg { width: 24px; height: 24px; }
.amenities--stack { grid-template-columns: 1fr; }

/* ---------- Illustrations ---------- */
.figure { margin: 2rem 0 2.25rem; }
.figure a { display: block; }
.figure img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: #F2F6F8; }
.figure--narrow { max-width: 520px; }
.figure figcaption { font-size: .93rem; color: var(--ink-soft); margin-top: .6rem; }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 1.9rem !important; }
.check-list li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .55rem; height: .95rem; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.can-cannot { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 1.5rem; }
.can-cannot > div { border-radius: 14px; padding: 1.1rem 1.3rem; background: var(--sage); }
.can-cannot > div:last-child { background: #F6F1F8; }
.can-cannot h3 { margin-top: 0 !important; font-size: 1.15rem; }
.can-cannot ul { margin: 0; }
.brochure-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: var(--sage); border-radius: 18px; padding: 1.25rem 1.5rem; margin: 2.5rem 0 0; }
.brochure-cta p { margin: 0; flex: 1 1 260px; }


/* ---------- Brochure covers and illustration gallery ---------- */
.doc-list--covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.doc-list--covers li { flex-direction: row; gap: 1.5rem; align-items: flex-start; padding: 1.5rem; }
.doc-list--covers img { width: 120px; height: auto; flex: none; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(18, 26, 62, .5); }
.doc-list--covers h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.doc-list--covers .btn-row { margin: .75rem 0 0; }
.doc-list--covers .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .96rem; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.gallery a { display: grid; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.gallery img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.gallery a:hover span { color: var(--teal); text-decoration: underline; }
@media (max-width: 760px) {
  .doc-list--covers, .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .doc-list--covers li { flex-direction: column; }
}


/* ---------- Home page slideshow ---------- */
.hero-slides { position: relative; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 7.5s ease-out; }
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.slide-controls { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-top: 2.4rem; }
.slide-dots { display: flex; gap: .2rem; }
.slide-dot { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slide-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); transition: background-color .2s ease, transform .2s ease; }
.slide-dot.is-active::before { background: #FFFFFF; transform: scale(1.15); }
.slide-dot:hover::before { background: rgba(255,255,255,.55); }
.slide-toggle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: transparent; color: #FFFFFF; cursor: pointer; display: grid; place-items: center; }
.slide-toggle:hover { background: rgba(255,255,255,.14); }
.slide-toggle svg { width: 18px; height: 18px; }
.slide-toggle .icon-play { display: none; }
.slide-toggle.is-paused .icon-play { display: block; }
.slide-toggle.is-paused .icon-pause { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-slides img { transition: opacity .01s; transform: none !important; }
}


/* ---------- Office photos ---------- */
.office-figure { margin: 0; min-width: 0; }
.office-figure img { width: 100%; height: auto; border-radius: 20px; display: block; }
.office-figure figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .6rem; }
.office-figure--wide img { max-height: 620px; object-fit: cover; }
.find-us { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.find-us .visit-map { min-height: 100%; aspect-ratio: 1360 / 939; }
@media (max-width: 760px) { .find-us { grid-template-columns: 1fr; } }

.split--even { grid-template-columns: 1fr 1fr; align-items: start; }
.split--even .office-figure { margin-top: 3.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter) 2rem;
  }
  body.nav-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a { padding: .85rem .25rem; font-size: 1.1rem; border-radius: 0; }
  .nav a:hover { background: none; color: var(--teal); }
  .sub { position: static; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 .5rem 1rem; min-width: 0; }
  .sub::before { display: none; }
  .sub a { padding: .45rem .25rem; font-size: 1rem; color: var(--ink-soft); }
  .nav .nav-book { display: block; border-bottom: 0; padding-top: 1.25rem; }
  .nav .nav-book a { display: flex; color: var(--white); padding: .7rem 1.4rem; border-radius: 999px; }
  .nav .nav-book a:hover { color: var(--white); background: var(--teal-deep); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .amenities { grid-template-columns: 1fr 1fr; }
  .two-col, .can-cannot { grid-template-columns: 1fr; }
  .hero .wrap, .split, .split--rev, .split--even, .visit, .article, .team { grid-template-columns: 1fr; }
  .split--even .office-figure { margin-top: 0; }
  .hero-figure { justify-self: start; max-width: 360px; }
  .split--rev .arch-frame { order: -1; }
  .steps { --cols: 2 !important; }
  .service-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .doc-list, .photo-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .utility { display: none; }
  .action-bar { display: grid; }
  .site-footer { padding-bottom: 6.5rem; }
  body { font-size: 1.0625rem; }
}

@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .steps { --cols: 1 !important; }
  .form-row, .footer-grid, .doc-list, .photo-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .nav-toggle { padding: .45rem .8rem; }
}

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

@media print {
  .site-header, .utility, .notice, .action-bar, .site-footer, .aside, .btn { display: none !important; }
  body { font-size: 12pt; }
}

/* Service page lead photos */
.figure--photo { margin: 0 0 2rem; }
.figure--photo img { aspect-ratio: 3 / 2; object-fit: cover; border: 0; }

/* Before/after clinical cases */
.cases { margin: 2.5rem 0; padding: 1.75rem; background: #F2F7FB; border: 1px solid var(--line); border-radius: 20px; }
.cases h2 { margin-top: 0; }
.case-list { display: grid; gap: 2rem; margin-top: 1.5rem; }
.case { margin: 0; }
.case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: end; }
.case-shot { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; }
.case-shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #DDE7EE; }
.case-tag { padding: .3rem .75rem; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.case-tag--after { background: var(--brand); }
.case figcaption { margin-top: .7rem; font-size: .95rem; color: var(--ink-soft); }
.case figcaption strong { color: var(--ink); display: block; margin-bottom: .15rem; }
.case-label { font-weight: 700; color: var(--ink); }
.case-note { margin: 1.5rem 0 0; font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 560px) {
  .cases { padding: 1.1rem; margin-left: -.25rem; margin-right: -.25rem; }
  .case-pair { gap: .4rem; }
  .case-tag { font-size: .7rem; padding: .25rem .6rem; letter-spacing: .03em; }
}
.prose .figure--photo:not(:first-child) { margin-top: 2rem; }
.faces .face-mono { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--arch); margin-bottom: .5rem; }
.faces .face-mono span { font-size: clamp(2.5rem, 5vw, 3.5rem); }
.doc-card .arch.monogram { display: grid; place-items: center; aspect-ratio: 4 / 5; }
.doctor .monogram { aspect-ratio: 4 / 5; }
