/* ==========================================================================
   Dentara — Family Dental Practice  ·  Mockup design system
   Placeholder brand "Dentara" — find & replace to rename.
   Fonts: Poppins (display serif) + Inter (UI/body) via Google Fonts.
   ========================================================================== */

:root {
  /* Palette */
  --sage:        #c7c9b3;   /* outer page frame */
  --sage-deep:   #b9bca3;
  --cream:       #f4f0e8;   /* main panel background */
  --paper:       #fbf9f4;   /* light cards / sections */
  --white:       #ffffff;
  --ink:         #1c1b18;   /* headings / near-black */
  --ink-soft:    #38352f;
  --muted:       #6c685f;   /* secondary text */
  --line:        #e7e1d6;   /* hairline borders */
  --yellow:      #ece53a;   /* accent */
  --yellow-deep: #ddd320;
  --emergency:   #c0362c;   /* emergency CTAs only — call-first actions (see clinic/EMERGENCY-CTA.md) */

  /* ====================================================================
     PER-CLINIC COLOUR GUIDE — the ONLY colours that change per clinic.
     Override these 5 tokens per clinic (inline :root block on the page, or
     clinic/<name>/config.json → theme, stamped in by the build script).
     Everything else (service tiles, eyebrows, active states, dark bands,
     the outer frame) derives from them. Full guide: clinic/COLOUR-GUIDE.md.

       --clinic       brand accent — tiles, eyebrows, links, active states
       --clinic-ink   deep shade of the accent for text-on-light
       --dark         dark blocks — offer band, CTA, footer, group bar
       --sage         OUTER PAGE FRAME (the border around the whole page)
       --sage-deep    frame shade / hairlines on the frame
       --yellow       CTA accent (optional) — tune when the default lime
                      fights the brand; leave unset to inherit the lime
       --yellow-deep  yellow hover/shade

     Defaults below = Ellenbrook (the design reference).                  */
  --clinic:        #5e6e3a;   /* Ellenbrook olive */
  --clinic-ink:    #2f3a1c;   /* deep shade for text-on-light if needed   */
  --dark:          #2b3320;   /* deep olive-charcoal — dark blocks, not black */
  /* --sage / --sage-deep (the outer frame) are defined above in Palette;
     override them per clinic too so the frame matches the brand.         */

  /* Locked per-clinic sets (keep in sync with clinic/<name>/config.json):
     Winthrop  → --clinic #308596 (logo aqua) · --dark #112337 (navy) · --sage #b7cac8
     (others TBD — was a draft palette here; replaced by real brand colours per clinic) */

  /* Shape & depth */
  --r-xs: 12px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 2px 10px rgba(28, 27, 24, .05);
  --shadow-md: 0 14px 40px rgba(28, 27, 24, .08);
  --shadow-lg: 0 30px 70px rgba(28, 27, 24, .12);

  --maxw: 1480px;
  --gap: clamp(16px, 3vw, 32px);
  --space-section: clamp(48px, 7vw, 96px);
  --space-section-tight: clamp(32px, 4vw, 56px);
}

/* ----- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sage);
  line-height: 1.6;
  padding-inline: clamp(10px, 1.8vw, 38px);  /* keeps the green frame on the sides at any width */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
/* inline links inside body copy (story bands, intros, cost notes/tables) */
.story__text a, .opt-intro a, .cost-note a, .cost-table td a, .prose a {
  color: var(--clinic); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.story__text a:hover, .opt-intro a:hover, .cost-note a:hover, .cost-table td a:hover, .prose a:hover { color: var(--clinic-ink); }
/* buttons inside story/prose copy are buttons, not inline links - kill the underline treatment */
.story__text a.btn, .prose a.btn { text-decoration: none; font-weight: 600; }
.story__text a.btn.btn-yellow, .prose a.btn.btn-yellow { color: var(--ink); }
.story__text a.btn.btn-ghost, .prose a.btn.btn-ghost { color: var(--ink); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

/* ----- Typography ------------------------------------------------------ */
h1, h2, h3, h4, .display {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
}
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clinic);
}
.italic { font-style: italic; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.lead { font-size: 1.05rem; color: var(--muted); }

/* ----- Layout shell ---------------------------------------------------- */
.shell {
  position: relative; z-index: 1;   /* paints OVER the emergency tab, so the tab reads as coming out from behind the frame */
  max-width: 1920px;            /* near full-width on large screens, capped on ultrawide */
  margin: 6px auto clamp(10px, 1.6vw, 24px);
  background: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(12px, 1.6vw, 20px);
  box-shadow: var(--shadow-lg);
}
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 72px); }  /* gutter keeps scaling on wide screens - content shouldn't hug the frame */
.container--nav { padding-inline: clamp(16px, 2vw, 40px); }  /* header chrome keeps a slimmer gutter so the nav row fits at laptop widths */
/* very wide screens: the content column grows with the shell instead of leaving dead cream bands,
   and the nav re-joins the content gutter once there's room */
@media (min-width: 1800px) { :root { --maxw: 1760px; } }
@media (min-width: 1700px) { .container--nav { padding-inline: clamp(16px, 4vw, 72px); } }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: var(--space-section-tight); }
/* adjacent sections: no padding stacking - the gap is the preceding section's bottom padding */
:is(.section, .section--tight) + :is(.section, .section--tight) { padding-top: 0; }
/* a section that needs room to breathe (home treatments grid) - keeps its own
   top padding even when it follows another section */
.section--airy { padding-block: calc(var(--space-section) * 1.35); }
:is(.section, .section--tight) + .section--airy { padding-top: calc(var(--space-section) * 0.9); }
.section--airy .opt-grid { --gap: clamp(20px, 3.6vw, 40px); margin-top: clamp(30px, 4vw, 48px); }

/* ----- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 600;
  font-size: .95rem;
  padding: .9em 1.5em;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-dark { background: var(--clinic); color: var(--cream); }
.btn-dark:hover { background: var(--clinic-ink); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--dark); color: var(--cream); }

/* round arrow button that sits beside a pill */
.btn-arrow {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  flex: 0 0 auto;
  transition: transform .2s ease, background .2s ease;
}
.btn-arrow:hover { transform: rotate(45deg); background: var(--yellow-deep); }
.btn-arrow.is-phone:hover { transform: translateY(-3px) scale(1.05); }
.btn-pair { display: inline-flex; align-items: center; gap: 8px; }
.btn-pair .btn { box-shadow: var(--shadow-sm); }
/* phones: side-by-side buttons stack full-width (Amy, Sep review) */
@media (max-width: 560px) {
  .btn-pair { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .btn-pair .btn, .btn-pair button.btn { width: 100%; justify-content: center; text-align: center; }
}

/* ----- Header / nav ---------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-family: "Poppins", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: .45em;
}
.brand .dot { width: .5em; height: .5em; border-radius: 50%; background: var(--yellow); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.14); padding: 6px; border-radius: 999px; backdrop-filter: blur(8px); }
.nav-links a {
  font-size: .9rem; font-weight: 500; white-space: nowrap;
  padding: .5em 1.1em; border-radius: 999px;
  color: rgba(255,255,255,.92);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: rgba(255,255,255,.22); }
.nav-links a.active { background: var(--white); color: var(--ink); }

/* nav variant for light pages (no hero behind it) */
.nav--light .nav-links { background: var(--white); box-shadow: var(--shadow-sm); }
.nav--light .nav-links a { color: var(--muted); }
.nav--light .nav-links a:hover { background: var(--cream); color: var(--ink); }
.nav--light .nav-links a.active { background: var(--clinic); color: var(--cream); }
.nav--light .brand { color: var(--ink); }

.nav-cta { display: inline-flex; align-items: center; gap: .5em; }
.nav-cta .btn { white-space: nowrap; }
.nav-toggle { display: none; font-size: 1.6rem; color: inherit; }

/* ----- Nav dropdowns ---------------------------------------------------- */
.nav-links li { position: relative; }
.nav-links li.has-sub > a::after { content: "▾"; font-size: .6em; margin-left: .5em; opacity: .65; }
.nav-sub { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 12px; display: none; z-index: 90; }
.nav-links li:hover > .nav-sub, .nav-links li:focus-within > .nav-sub { display: block; }
.nav-sub__panel { background: var(--white); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 12px; min-width: 250px; display: grid; gap: 2px; text-align: left; }
/* the grouped panel carries four columns, so it needs more room than a plain dropdown */
.nav-sub__panel--groups { padding: 20px 22px 22px; }
.nav-sub__panel--groups { display: flex; gap: 34px; }
/* The grouped mega-menu is wide (4 columns). Centring it on its trigger pushed it off
   the left edge, so its containing block becomes the nav pill rather than the <li>: it
   then opens from the pill's left edge and stays inside the page shell at any width.
   width:max-content stops the absolute box shrink-wrapping to the trigger's width. */
.nav-links { position: relative; }
.nav-links li.has-sub:has(.nav-sub__panel--groups) { position: static; }
.nav-links li.has-sub > .nav-sub:has(.nav-sub__panel--groups) { left: 0; transform: none; width: max-content; max-width: calc(100vw - 48px); }
.nav-sub__panel--groups > div { display: grid; gap: 3px; align-content: start; min-width: 200px; }
.nav-sub__panel .sub-head { font-family: "Poppins", sans-serif; font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--clinic); padding: 8px 10px 4px; }
.nav-sub__panel--groups .sub-head { padding: 2px 12px 10px; }
.nav-links .nav-sub__panel a, .nav--light .nav-links .nav-sub__panel a { display: block; padding: 8px 12px; border-radius: var(--r-xs); color: var(--ink); font-size: .92rem; background: none; white-space: nowrap; }
.nav-links .nav-sub__panel--groups a, .nav--light .nav-links .nav-sub__panel--groups a { padding: 9px 12px; }
.nav-links .nav-sub__panel a:hover, .nav--light .nav-links .nav-sub__panel a:hover { background: color-mix(in srgb, var(--clinic) 10%, var(--white)); color: var(--clinic-ink); }
.nav-links .nav-sub__panel a.active, .nav--light .nav-links .nav-sub__panel a.active { background: color-mix(in srgb, var(--clinic) 14%, var(--white)); color: var(--clinic-ink); font-weight: 600; }
/* a group heading that links to its hub page still reads as a heading, not a menu item */
.nav-links .nav-sub__panel .sub-head a, .nav--light .nav-links .nav-sub__panel .sub-head a {
  display: inline; padding: 0; color: var(--clinic); font-family: "Poppins", sans-serif;
  font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; background: none; }
.nav-links .nav-sub__panel .sub-head a:hover, .nav--light .nav-links .nav-sub__panel .sub-head a:hover {
  background: none; color: var(--clinic); text-decoration: underline; text-underline-offset: 3px; }
/* between the nav's own breakpoint (900px) and ~1200px the 4 columns no longer fit
   the shell at their full width, so tighten them and let long labels wrap to 2 lines */
/* the pill row is one line at every width it is shown at (white-space:nowrap above);
   these two steps buy back the space it needs before the hamburger takes over at 1100 */
@media (max-width: 1560px) {
  .nav-links a { padding: .5em .85em; }
}
@media (max-width: 1400px) {
  .nav-links a { font-size: .86rem; padding: .5em .7em; }
}
/* the logo never gives up its width to the pill row - it was being squeezed to a
   sliver on 1280-1500px screens (Winthrop and Kallangur both, 19 Sep 2026) */
.nav .brand { flex-shrink: 0; }
@media (max-width: 1500px) {
  .nav-cta .btn-ghost span.label { display: none; }   /* Call Now becomes the phone icon */
}

@media (max-width: 1240px) {
  .nav-sub__panel--groups { gap: 20px; padding: 18px; }
  .nav-sub__panel--groups > div { min-width: 0; max-width: 172px; }
  .nav-links .nav-sub__panel--groups a, .nav--light .nav-links .nav-sub__panel--groups a { white-space: normal; }
}

/* ----- Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: clamp(560px, 80vh, 780px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { /* readability gradient */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(105deg, rgba(20,22,16,.74) 0%, rgba(20,22,16,.46) 34%, rgba(20,22,16,.14) 58%, rgba(20,22,16,0) 76%),
    linear-gradient(0deg, rgba(20,22,16,.38) 0%, rgba(20,22,16,0) 35%);
}
.hero__top { padding: clamp(18px, 2.4vw, 30px) clamp(20px, 3vw, 38px); }
.hero__top .nav { color: #fff; }
.hero__body {
  margin-top: auto;
  padding: clamp(24px, 4vw, 52px);
  color: #fff;
  max-width: 780px;
}
.hero__body h1 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 4rem); font-weight: 500; text-wrap: balance; }
.hero__body p { margin-top: 1rem; font-size: 1.05rem; color: rgba(255,255,255,.9); max-width: 30em; }
.hero__actions { margin-top: 2rem; }

.hero__badge {
  position: absolute;
  right: clamp(18px, 3vw, 36px);
  bottom: clamp(18px, 3vw, 36px);
  background: rgba(28,27,24,.42);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: #fff;
  max-width: 260px;
}
.hero__badge .num { font-family: "Poppins", serif; font-size: 1.7rem; }
.hero__badge .lbl { font-size: .8rem; color: rgba(255,255,255,.85); }
.avatars { display: flex; }
.avatars span {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  margin-left: -10px; background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff;
}
.avatars span:first-child { margin-left: 0; }

/* ----- Intro / split --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.intro-quote { font-family: "Poppins", sans-serif; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.18; font-weight: 600; letter-spacing: -.02em; }
.intro-quote b { font-weight: 600; }
.intro-quote .italic { color: var(--muted); }
.media-card { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); }
.media-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* ----- Stats ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.stat {
  background: var(--white);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.6rem;
  min-height: 200px;
}
.stat .num { font-family: "Poppins", serif; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; }
.stat .num sup { font-size: .5em; vertical-align: super; }
a.stat { color: inherit; transition: transform .2s, box-shadow .2s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat__ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--clinic); background: color-mix(in srgb, var(--clinic) 12%, var(--white)); }
.stat h4 { font-size: 1.05rem; margin-top: auto; }
.stat p { font-size: .85rem; color: var(--muted); margin-top: .3rem; }

/* ----- Section header w/ controls ------------------------------------- */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 760px) {
  .head-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .head-row .btn, .head-row .btn-pair { width: 100%; justify-content: center; white-space: nowrap; }
}
.controls { display: flex; gap: 10px; }
.ctl { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); transition: background .2s; }
.ctl:hover { background: var(--cream); }
.ctl.is-active { background: var(--yellow); }

/* ----- Service cards --------------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.svc-card { background: var(--white); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.svc-card__text { padding: 14px 12px 16px; }
.svc-card__text h3 { font-size: 1.25rem; }
.svc-card__text p { font-size: .85rem; color: var(--muted); margin-top: .5rem; line-height: 1.45; min-height: 2.9em; }  /* two lines reserved so every tile image starts on the same line */
.svc-card__img {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  padding: 14%;
  /* soft studio falloff built from the clinic colour */
  background:
    radial-gradient(125% 125% at 32% 18%,
      color-mix(in srgb, var(--clinic) 72%, #ffffff) 0%,
      var(--clinic) 46%,
      color-mix(in srgb, var(--clinic) 74%, #000000) 100%);
}
.svc-card__img img {
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0,0,0,.32));
  transition: transform .25s ease;
}
.svc-card:hover .svc-card__img img { transform: translateY(-4px) scale(1.03); }
.svc-card__img--sm img { max-width: 76%; max-height: 76%; }  /* for tall/dominant subjects (e.g. implant) */

/* ----- Video tour band ------------------------------------------------- */
.video-tour { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: clamp(380px, 58vh, 600px); display: flex; align-items: flex-end; isolation: isolate; }
.video-tour video, .video-tour img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-tour::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20,22,16,.72) 0%, rgba(20,22,16,.1) 55%, rgba(20,22,16,.25) 100%), linear-gradient(90deg, rgba(20,22,16,.5) 0%, rgba(20,22,16,.12) 45%, rgba(20,22,16,0) 65%); }  /* bottom scrim + a left ramp so the copy holds up over a busy room */
.video-tour__overlay { padding: clamp(26px, 5vw, 56px); color: #fff; max-width: 620px; }
.video-tour__overlay h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.3rem); }
.video-tour__overlay p.sub { color: rgba(255,255,255,.9); margin-top: 10px; }
.video-tour__overlay .btn-pair { margin-top: 22px; }
.video-tour__mute { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(28,27,24,.5); backdrop-filter: blur(6px); display: grid; place-items: center; color: #fff; z-index: 2; transition: background .2s; }
.video-tour__mute:hover { background: rgba(28,27,24,.8); }

/* ----- Photo showcase (real clinic photos) ---------------------------- */
.showcase { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--gap); }
.showcase figure { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.showcase img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 220px; }
.showcase .stack { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.showcase figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 600; font-size: .85rem; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.gallery-strip figure { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3/4; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
}

/* ----- Feature / value list ------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 2.6vw, 32px); }
.value .ic { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--yellow); display: grid; place-items: center; margin-bottom: 18px; }
.value h3 { font-size: 1.25rem; }
.value p { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
/* image variant: photo on top, icon overlaps, then text */
.value--img { padding: 0; overflow: hidden; }
.value--img .value__img { aspect-ratio: 4/3; }
.value--img .value__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.value--img .value__body { padding: clamp(20px, 2.4vw, 28px); }
.value--img .ic { margin-top: -44px; margin-bottom: 14px; box-shadow: var(--shadow-sm); position: relative; }

/* ----- Team ------------------------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.team-grid--4 { grid-template-columns: repeat(4, 1fr); }
.member { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.member__body { padding: 18px 20px 22px; }
/* No photo yet (config hideDentistPhotos, or a placeholder headshot): initials
   on a soft tint of the clinic colour, same footprint as a headshot. */
.member__avatar { aspect-ratio: 4/5; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--clinic) 14%, var(--white)), color-mix(in srgb, var(--clinic) 30%, var(--white))); color: var(--clinic-ink); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: .04em; }

.member__body h3 { font-size: 1.2rem; }
.member__body .role { color: var(--muted); font-size: .85rem; margin-top: .2rem; }

/* ----- Testimonials ---------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.quote-card { background: var(--white); border-radius: var(--r-md); padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1rem; }
.quote-card .stars { color: var(--yellow-deep); letter-spacing: 2px; }
.quote-card p { font-family: "Poppins", serif; font-size: 1.1rem; line-height: 1.5; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-weight: 700; color: var(--ink); }
.quote-card .who .name { font-weight: 600; font-size: .92rem; }
.quote-card .who .meta { font-size: .8rem; color: var(--muted); }
/* fourth tile: the Google rating itself, so a row of three real reviews still reads as four */
.quote-card--rating { background: var(--clinic); color: #fff; justify-content: center; text-align: center; }
.quote-card--rating .rating-num { font-family: "Poppins", sans-serif; font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 600; line-height: 1; }
.quote-card--rating .stars { color: var(--yellow); }
.quote-card--rating p { font-size: 1rem; color: rgba(255,255,255,.9); }
.quote-card--rating .btn { align-self: center; }

/* ----- CTA band -------------------------------------------------------- */
.cta {
  background: var(--clinic);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(36px, 6vw, 76px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta h2 { color: var(--cream); font-size: clamp(2rem, 5vw, 3.4rem); }
.cta p { color: rgba(244,240,232,.75); max-width: 38em; margin: 1rem auto 2rem; }
.cta .btn-pair { justify-content: center; }
.cta::before { content: ""; position: absolute; width: 340px; height: 340px; background: radial-gradient(circle, rgba(236,229,58,.18), transparent 70%); top: -120px; right: -80px; }

/* ----- Contact --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); }
.info-list { display: grid; gap: 18px; margin-top: 8px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.info-item .ic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--yellow); display: grid; place-items: center; flex: 0 0 auto; }
.info-item h4 { font-family: "Inter", sans-serif; font-weight: 600; font-size: .95rem; }
.info-item p { color: var(--muted); font-size: .9rem; margin-top: .2rem; overflow-wrap: anywhere; }  /* email addresses are longer than a small phone screen */
.info-item { min-width: 0; }

.form-card { background: var(--white); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-xs);
  border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; color: var(--ink); transition: border .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow-deep); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-embed { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); height: 280px; background: var(--sage-deep); position: relative; }
.map-embed .pin { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-weight: 600; gap: 8px; text-align: center; }

/* ----- Page hero (interior pages) ------------------------------------- */
.page-hero { text-align: center; padding-block: clamp(36px, 5vw, 70px) clamp(8px, 2vw, 24px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
.page-hero p { max-width: 36em; margin: 1rem auto 0; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }

/* ----- Footer ---------------------------------------------------------- */
.footer { background: var(--clinic); color: var(--cream); border-radius: var(--r-lg); margin-top: var(--gap); padding: clamp(40px, 6vw, 72px) 0 28px; }
.footer .container { padding-inline: clamp(28px, 4vw, 56px); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer .brand { color: var(--cream); }
.footer p.about { color: rgba(244,240,232,.6); font-size: .9rem; margin-top: 16px; max-width: 26em; }
.footer h5 { font-family: "Inter", sans-serif; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,240,232,.5); margin-bottom: 16px; }
.footer-links a { display: block; padding: 6px 0; color: rgba(244,240,232,.82); font-size: .92rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(244,240,232,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(244,240,232,.5); }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(244,240,232,.1); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--yellow); color: var(--ink); }

/* ----- Logo image ------------------------------------------------------ */
.brand img { height: 46px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.footer .brand img { height: 50px; }

/* ----- Google review badge (hero) ------------------------------------- */
.review-badge .grow { display: flex; align-items: center; gap: 8px; }
.review-badge .stars { color: #ffc83d; letter-spacing: 1px; font-size: .95rem; }
.review-badge .rating { font-family: "Poppins", serif; font-size: 1.5rem; line-height: 1; }
.review-badge .gline { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: .82rem; color: rgba(255,255,255,.9); }
.review-badge .gline b { font-weight: 700; }

/* ----- Trust / logos strip (under hero) ------------------------------- */
.logos-strip { text-align: center; }
.logos-label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); margin-top: 18px; }
.trust-badges img { height: clamp(52px, 7vw, 72px); width: auto; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 34px); margin-top: 22px; }
.logos a { display: contents; }
.logos .fund { font-weight: 800; font-size: clamp(1rem, 2vw, 1.3rem); color: var(--ink); opacity: .42; letter-spacing: -.01em; transition: opacity .2s; }
.logos .fund:hover { opacity: .8; }
.logos .sep { color: var(--line); }
.logos img { height: clamp(24px, 2.9vw, 36px); width: auto; opacity: .8; transition: opacity .2s; }  /* all eight funds on one line at desktop */
.logos img:hover { opacity: 1; }

/* ----- Slide-out booking drawer --------------------------------------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(20,20,16,.5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 90; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(450px, 94vw); background: var(--cream); box-shadow: -24px 0 70px rgba(0,0,0,.28); transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.1,1); z-index: 100; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer__head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.35rem; }
.drawer__head p { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; flex: 0 0 auto; transition: background .2s; }
.drawer__close:hover { background: #fff; transform: rotate(90deg); }
.drawer__body { padding: 24px; overflow-y: auto; }
.drawer__body .field input, .drawer__body .field select, .drawer__body .field textarea { background: #fff; }
/* live booking portal (Dental4Web) fills the drawer; quickcall stays pinned below */
.drawer__body--widget { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.drawer__widget { flex: 1; width: 100%; border: 0; background: #fff; }
.drawer__body--widget .drawer__quickcall { margin-top: 0; padding: 14px 24px; background: var(--cream); }
.widget-note { border: 1.5px dashed color-mix(in srgb, var(--clinic) 40%, var(--line)); border-radius: var(--r-md); padding: 14px 16px; text-align: center; color: var(--muted); font-size: .8rem; margin-top: 18px; background: color-mix(in srgb, var(--clinic) 6%, transparent); }
.drawer__quickcall { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }

/* ----- Utilities ------------------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.maxw-prose { max-width: 40em; }
.pill { display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 600; }

/* ----- New-patient offer band ----------------------------------------- */
.offer { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--dark); color: var(--cream); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; width: 360px; height: 360px; background: radial-gradient(circle, color-mix(in srgb, var(--clinic) 55%, transparent), transparent 70%); top: -140px; left: -90px; }
.offer > * { position: relative; }
/* service-page NPO variant: clinic teal like the other CTA panels (Amy 24 Aug) */
.offer--brand { background: var(--clinic); }
.offer--brand::before { background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.offer--brand ul li, .offer--brand p { color: rgba(255,255,255,.92); }
.offer.offer--brand .fine { color: rgba(255,255,255,.66); }
.offer h2 { color: var(--cream); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.offer .price { font-family: "Poppins", serif; font-size: clamp(3.4rem, 8vw, 5.4rem); color: var(--yellow); line-height: 1; }
.offer .price small { font-size: .26em; color: rgba(244,240,232,.7); font-family: "Inter", sans-serif; font-weight: 600; }
.offer ul { display: grid; gap: 10px; margin: 18px 0 24px; }
.offer ul li { color: rgba(244,240,232,.82); font-size: .95rem; display: flex; gap: 10px; }
.offer ul li::before { content: "✓"; color: var(--yellow); font-weight: 700; }
.offer .fine { font-size: .74rem; color: rgba(244,240,232,.45); margin-top: 14px; }

/* ----- Before / after gallery ----------------------------------------- */
.ba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.ba-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.ba-card figure { margin: 0; }
.ba-img { position: relative; }
.ba-img img { width: 100%; height: auto; display: block; }
.ba-tag { position: absolute; left: 12px; color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.ba-tag--before { top: 12px; background: rgba(28,27,24,.78); }
.ba-tag--after { bottom: 12px; background: var(--clinic); }
.ba-card .ba-label { padding: 14px 18px; font-weight: 600; font-size: .95rem; }
.ba-card .ba-label span { color: var(--muted); font-weight: 400; }
.ba-disclaimer { font-size: .82rem; color: var(--muted); text-align: center; margin: 24px auto 0; max-width: 64ch; }

/* ----- FAQ accordion --------------------------------------------------- */
.faq { max-width: 880px; margin-inline: auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; padding: 0 clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: "Poppins", serif; font-size: clamp(1rem, 2vw, 1.18rem); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--clinic); line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 0 22px; color: var(--muted); font-size: .95rem; margin: 0; max-width: 70ch; }

/* ----- Visit / hours block -------------------------------------------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.visit__img { border-radius: var(--r-md); overflow: hidden; min-height: 320px; box-shadow: var(--shadow-sm); }
.visit__img img { width: 100%; height: 100%; object-fit: cover; }
.hours-table { margin-top: 18px; }
.hours-table .row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours-table .row span:last-child { color: var(--muted); }
.hours-table .row.today span:last-child { color: var(--clinic); font-weight: 600; }

/* ----- Footer service areas ------------------------------------------- */
.footer-areas { border-top: 1px solid rgba(244,240,232,.12); margin-top: 40px; padding-top: 24px; }
.footer-areas h5 { margin-bottom: 14px; }
.area-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.area-links a { color: rgba(244,240,232,.6); font-size: .85rem; }
.area-links a:hover { color: var(--yellow); }
.footer-bottom .legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--yellow); }

@media (max-width: 860px) {
  .offer, .visit { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) { .ba-grid, .quote-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ba-grid { grid-template-columns: 1fr; } }

/* ----- Top utility bar (sits in the sage frame above the shell) -------- */
.topbar { max-width: 1920px; margin: 2px auto 0; padding: 5px clamp(16px, 2vw, 34px) 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: "Poppins", sans-serif; font-weight: 500; font-size: .82rem; letter-spacing: -.01em; color: var(--frame-ink, var(--ink)); }
.topbar a { color: inherit; }
.topbar__left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar__addr { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.topbar__addr:hover { color: var(--clinic); }
.topbar__social { display: inline-flex; gap: 8px; }
.topbar__social a { width: 27px; height: 27px; border-radius: 50%; background: var(--frame-chip, rgba(28,27,24,.07)); display: grid; place-items: center; transition: background .2s, color .2s; }
.topbar__social a:hover { background: var(--frame-ink, var(--ink)); color: var(--frame-ink-on, var(--cream)); }
.topbar__reviews { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.topbar__reviews .gstars { color: var(--yellow-deep); letter-spacing: 1px; }
.topbar__reviews b { font-weight: 700; }
.topbar__reviews .sep { color: var(--frame-sep, rgba(28,27,24,.3)); }

/* ----- Provider row (badges | divider | funds) ------------------------ */
.provider-row { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2vw, 32px); flex-wrap: nowrap; }
.provider-row .trust-badges, .provider-row .logos { margin-top: 0; }
.provider-row .trust-badges { gap: clamp(12px, 1.6vw, 24px); flex-wrap: nowrap; }
.provider-row .trust-badges img { height: clamp(32px, 3.4vw, 50px); }
.provider-row .logos { gap: clamp(8px, 1.1vw, 18px); flex-wrap: nowrap; }
.provider-row .logos img { height: clamp(18px, 2vw, 27px); }  /* all eight funds hold one line beside the badges */
.vdivider { width: 1px; align-self: stretch; min-height: 52px; background: var(--line); flex: 0 0 auto; }
@media (max-width: 900px) {
  .provider-row { flex-wrap: wrap; }
  .provider-row .logos, .provider-row .trust-badges { flex-wrap: wrap; }  /* one-line rule is desktop only */
  .vdivider { display: none; }
}

/* ----- Mini map -------------------------------------------------------- */
.mini-map { width: 100%; height: 190px; border: 0; border-radius: var(--r-md); margin-top: 18px; box-shadow: var(--shadow-sm); display: block; }

/* ----- Sub-footer group bar (after the footer, inside the shell) ------- */
.subfooter { background: var(--white); border-radius: var(--r-lg); margin-top: var(--gap); padding: 14px 24px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .88rem; color: var(--muted); box-shadow: var(--shadow-sm); flex-wrap: wrap; text-align: center; }
.subfooter img { height: 26px; width: auto; display: inline-block; }
.subfooter b { color: var(--ink); font-weight: 600; }

/* ----- Intro split: 40% text / 60% media with cascading family photo --- */
.split--intro { grid-template-columns: 2fr 3fr; align-items: center; }
.media-stack { position: relative; }
.media-stack--overlay { padding-bottom: clamp(40px, 5vw, 70px); padding-left: clamp(24px, 3vw, 48px); }
.media-stack .media-card img { aspect-ratio: 16/10; }
.media-stack .media-overlay {
  position: absolute; left: 0; bottom: 0;
  width: clamp(180px, 38%, 300px);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-stack .media-overlay img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
@media (max-width: 960px) { .split--intro { grid-template-columns: 1fr; } }

/* ----- Offer price block ------------------------------------------------ */
.price-block {
  text-align: center;
  border-left: 1px solid rgba(244,240,232,.18);
  padding-block: 10px;
  display: flex; flex-direction: column; justify-content: center; height: 100%;
}
.price-block .amount { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(4.4rem, 9vw, 7rem); line-height: .95; color: var(--yellow); letter-spacing: -.02em; }
.price-block .per { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 600; color: rgba(244,240,232,.9); line-height: 1.4; margin-top: 8px; }
.price-block .star { font-size: .8rem; color: rgba(244,240,232,.5); margin-top: 4px; }
@media (max-width: 860px) { .price-block { border-left: 0; border-top: 1px solid rgba(244,240,232,.18); padding-top: 22px; } }

/* ----- Footer registration / disclaimer ------------------------------- */
.footer-reg { border-top: 1px solid rgba(244,240,232,.12); margin-top: 28px; padding-top: 22px; display: grid; gap: 10px; }
.footer-reg p { font-size: .78rem; color: rgba(244,240,232,.5); max-width: 90ch; line-height: 1.55; }
.footer-reg .ahpra { color: rgba(244,240,232,.72); font-weight: 600; }

@media (max-width: 720px) {
  /* phones: the bar collapses to the one thing that matters at the top - the
     emergency call. Emergency traffic is overwhelmingly mobile. */
  .topbar { display: flex; justify-content: center; padding: 6px 12px 0; }
  .topbar__left, .topbar__reviews { display: none; }
  .topbar .topbar__emerg, .topbar a.topbar__emerg { margin: 0 auto -6px; font-size: .8rem; }
  .topbar .topbar__emerg svg { display: inline; }
  .vdivider { display: none; }
}

/* ----- Responsive ------------------------------------------------------ */
@media (max-width: 960px) {
  .stats, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .team-grid, .quote-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .media-card { max-width: 420px; }
}
/* nav collapses to the hamburger below 1320px - on one line the full pill row starts
   squeezing the logo below that, even though the general mobile layout waits until 680 */
@media (max-width: 1320px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); right: 16px; left: 16px; flex-direction: column; align-items: stretch; background: var(--white); padding: 12px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); z-index: 50; max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; }
  .nav { position: relative; }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink); }
  .nav--light .nav-links a, .hero__top .nav-links a { color: var(--ink); }
  .nav-toggle { display: block; }
  /* dropdowns render inline on mobile */
  .nav-links li.has-sub > a::after { content: ""; }
  .nav-sub { position: static; transform: none; padding-top: 0; display: block; }
  .nav-sub__panel, .nav-sub__panel--groups { box-shadow: none; padding: 0 0 8px 14px; min-width: 0; border-radius: 0; }
  .nav-sub__panel--groups { flex-direction: column; gap: 4px; }
  .nav-links .nav-sub__panel a { white-space: normal; font-size: .88rem; padding: 5px 10px; }
}
@media (max-width: 680px) {
  .nav-cta .btn span.label { display: none; }
  .stats, .svc-grid, .value-grid, .team-grid, .quote-grid, .footer-top, .field-row { grid-template-columns: 1fr; }
  .hero__badge { position: static; margin: 0 clamp(20px,4vw,40px) clamp(20px,4vw,40px); max-width: none; }
  .hero { min-height: 0; }
}

/* CONSULT PANEL - teal, left-aligned CTA (service pages + bottom-of-page CTAs site-wide) */
.consult { background: var(--clinic); color: #fff; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.consult .eyebrow { color: rgba(255,255,255,.85); }
.consult h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
.consult p { color: rgba(255,255,255,.92); line-height: 1.7; margin-top: .7em; }
.consult__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65em; }
.consult__list li { position: relative; padding-left: 1.9em; color: #fff; line-height: 1.4; }
.consult__list li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow); font-weight: 800; }
@media (max-width: 760px) { .consult { grid-template-columns: 1fr; } }

/* NEW PATIENT OFFER - body block: inclusions left, white price card right */
.npo { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(8px, 2vw, 20px) 0; }
.npo__text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.npo__lead { color: var(--muted); margin-top: .7em; font-weight: 600; }
.npo__list { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: .55em; }
.npo__list li { position: relative; padding-left: 1.8em; color: var(--ink-soft); line-height: 1.5; }
.npo__list li::before { content: '✓'; position: absolute; left: 0; color: var(--clinic); font-weight: 800; }
.npo__fine { font-size: .74rem; color: var(--muted); line-height: 1.5; margin-top: 1.2em; max-width: 60ch; }
.npo__card { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: clamp(24px, 3vw, 34px); text-align: center; }
.npo__price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; color: var(--clinic); letter-spacing: -.02em; }
.npo__sub { color: var(--muted); font-size: .95rem; margin-top: .3em; }
.npo__btn { width: 100%; justify-content: center; margin-top: 1.2em; }
.npo__hint { font-size: .82rem; color: var(--muted); margin-top: .9em; }
.npo__hint strong { color: var(--ink); }
@media (max-width: 760px) { .npo { grid-template-columns: 1fr; } }

/* BIO MODAL - dentist full-bio popup (service pages + about team) */
.modal-overlay{ position:fixed; inset:0; background:rgba(20,20,16,.55); backdrop-filter:blur(3px); display:grid; place-items:center; padding:clamp(16px,3vw,40px); opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease; z-index:110 }
.modal-overlay.open{ opacity:1; visibility:visible }
.modal{ position:relative; background:var(--cream); border-radius:var(--r-lg); box-shadow:0 30px 80px rgba(0,0,0,.35); max-width:820px; width:100%; max-height:88vh; overflow-y:auto; padding:clamp(24px,3.5vw,44px); transform:translateY(14px); transition:transform .25s ease }
.modal-overlay.open .modal{ transform:translateY(0) }
.modal__close{ position:absolute; top:16px; right:16px; width:40px; height:40px; border-radius:50%; background:var(--white); box-shadow:var(--shadow-sm); display:grid; place-items:center; transition:transform .2s }
.modal__close:hover{ transform:rotate(90deg) }
.modal__body{ display:block }
.modal__head{ display:flex; align-items:center; gap:clamp(18px,3vw,28px); padding-bottom:clamp(18px,2.4vw,26px); border-bottom:1px solid var(--line) }
.modal__photo{ width:clamp(96px,14vw,132px); flex:0 0 auto; border-radius:var(--r-md); aspect-ratio:4/5; object-fit:cover; object-position:top center }
.modal__head h3{ font-family:'Poppins',sans-serif; font-size:clamp(1.4rem,2.6vw,1.7rem); line-height:1.12 }
.modal__head .role{ color:var(--clinic); font-weight:600; margin-top:.3em; font-size:.95rem }
.modal__bio{ margin-top:clamp(18px,2.4vw,26px) }
.modal__bio p{ color:var(--muted); line-height:1.75; margin:0 0 1em }
@media (max-width:640px){ .modal__photo{ width:96px } }


/* ===== STANDARD SERVICE CARD (site-wide: related-treatments, hub, all clinics) ===== */
/* PRICING / OPTION CARDS - thirds; whole card links to its subpage */
.opt-intro{ max-width:54ch; color:var(--muted); line-height:1.7; margin-top:.6em }
.opt-intro--wide{ max-width:none }
.opt-grid{ display:flex; flex-wrap:wrap; justify-content:flex-start; gap:var(--gap); margin-top:clamp(22px,3vw,34px) }/* short last row lines up left, not floating centred */
.opt-card{ flex:0 1 calc((100% - 3*var(--gap))/4); min-width:215px; background:var(--white); border-radius:var(--r-md); padding:22px 22px 24px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:8px; color:inherit; text-decoration:none }
a.opt-card{ transition:transform .18s ease, box-shadow .18s ease }
a.opt-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md) }
.opt-more{ margin-top:auto; padding-top:12px; color:var(--clinic); font-weight:600; font-size:.88rem }
.opt-card h3{ font-family:'Poppins',sans-serif; font-size:1.12rem; line-height:1.2 }
/* helper card: "not sure which option?" */
.opt-card--cta{ background:var(--clinic); justify-content:center; gap:12px; padding:30px 28px }
.opt-card--cta h3{ color:#fff; font-size:1.4rem; line-height:1.2 }
.opt-card--cta p{ color:rgba(255,255,255,.92) !important }
.opt-card--cta .btn{ align-self:flex-start; margin-top:6px }
.opt-img{ margin:-14px -14px 10px; border-radius:calc(var(--r-md) - 8px); overflow:hidden; aspect-ratio:16/10; background:var(--white) }  /* image runs wider than the text: ~8px inset vs 22px text padding */
.opt-img img{ width:100%; height:100%; object-fit:contain; display:block; padding:8px }
.opt-card .opt-price{ align-self:flex-start; background:color-mix(in srgb,var(--clinic) 12%,var(--white)); color:var(--clinic-ink); font-weight:700; font-size:.92rem; padding:.32em .8em; border-radius:999px }
.opt-card--feat{ outline:2px solid var(--clinic); outline-offset:-2px }
.opt-badge{ align-self:flex-start; background:var(--clinic); color:#fff; font-family:'Poppins',sans-serif; font-weight:600; font-size:.72rem; letter-spacing:.04em; text-transform:uppercase; padding:.3em .7em; border-radius:999px }
.opt-card p{ color:var(--muted); line-height:1.65; font-size:.96rem; margin-top:2px }
.opt-points{ list-style:none; margin:.4em 0 0; padding:0; display:grid; gap:.3em }
.opt-points li{ position:relative; padding-left:1.3em; font-size:.88rem; color:var(--muted); line-height:1.45 }
.opt-points li::before{ content:'✓'; position:absolute; left:0; color:var(--clinic); font-weight:700 }
/* first-aid line on an emergency card: what to do before the phone is even answered */
.opt-now{ margin-top:12px; padding:12px 14px; border-radius:var(--r-sm); background:color-mix(in srgb, var(--emergency) 8%, var(--white)); border-left:3px solid var(--emergency); color:var(--ink-soft) !important; font-size:.9rem; line-height:1.55 }
.opt-now__label{ display:block; font-family:'Poppins',sans-serif; font-weight:700; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--emergency); margin-bottom:.35em }
/* opt-grid--4 kept as a no-op: four across is now the default everywhere */
@media (max-width:1100px){ .opt-card{ flex-basis:calc((100% - var(--gap))/2) } }
@media (max-width:680px){ .opt-card{ flex-basis:100% } }
.opt-foot{ margin-top:auto; padding-top:14px; display:flex; align-items:center; justify-content:space-between; gap:10px }
.opt-foot .opt-more{ margin-top:0; padding-top:0 }
.opt-arrow{ display:flex }
.opt-arrow svg{ box-sizing:content-box; padding:8px; border-radius:50%; background:color-mix(in srgb,var(--clinic) 12%,var(--white)); color:var(--clinic); transition:background .2s ease,color .2s ease,transform .2s ease }
a.opt-card:hover .opt-arrow svg{ background:var(--clinic); color:#fff; transform:translateX(2px) }
.opt-img--cover img{ object-fit:cover; padding:0 }

/* accreditation strip hugs the block above it (offer band / hero) */
.trust-strip{ padding-block: clamp(40px,5vw,68px) clamp(48px,6vw,80px); }
.trust-strip .trust-badges{ gap: clamp(32px,6vw,76px); margin-top: 26px; }

/* ----- Blog: index cards, article byline -------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.post-card { background: var(--white); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card__img { background: var(--cream); }
.post-card__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__date { color: var(--muted); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.post-card h3 { font-size: 1.08rem; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }
.post-card__more { margin-top: auto; padding-top: 10px; color: var(--clinic); font-weight: 600; font-size: .85rem; }
.post-byline { color: var(--muted); font-size: .9rem; margin-top: -6px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ----- Audience cards (the four patient types) -------------------------- */
.aud-grid { grid-template-columns: repeat(4, 1fr); }
.aud-card { display: flex; flex-direction: column; color: inherit; transition: transform .18s ease, box-shadow .18s ease; }
.aud-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.aud-card p { flex: 1; }
.aud-card__more { margin-top: 14px; color: var(--clinic); font-weight: 600; font-size: .85rem; }
.aud-card--emergency .ic { background: color-mix(in srgb, var(--emergency) 14%, var(--white)); }
.aud-card--emergency .aud-card__more { color: var(--emergency); }
@media (max-width: 1100px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .aud-grid { grid-template-columns: 1fr; } }

/* emergency call-out: a red tab rising out of the top edge of the main frame -
   the one place call-first lives site-wide (Kent, 16 Sep: the plain red text was not bold enough) */
.topbar { align-items: flex-end; padding-bottom: 0; }
.topbar__left, .topbar__reviews { align-self: center; padding-bottom: 6px; }
.topbar .topbar__emerg, .topbar a.topbar__emerg { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px -6px auto; position: relative; top: 4px; z-index: 0;
  background: var(--emergency); color: #fff; font-weight: 700; font-size: .86rem; white-space: nowrap;
  padding: 9px 20px 14px; border-radius: 14px 14px 0 0; box-shadow: 0 -4px 14px rgba(192,54,44,.22); transition: background .2s; }
.topbar a.topbar__emerg:hover { background: color-mix(in srgb, var(--emergency) 85%, #000); }
.topbar__emerg b { font-weight: 800; letter-spacing: .01em; }
@media (max-width: 900px) { .topbar .topbar__emerg, .topbar a.topbar__emerg { font-size: .8rem; margin-right: 10px; padding: 8px 16px 12px; } }
@media (max-width: 560px) { .topbar .topbar__emerg, .topbar a.topbar__emerg { margin: 0 auto -6px; } }

/* HTML sitemap */
.sitemap-list { list-style: none; padding: 0; margin: 10px 0 0; columns: 3; column-gap: var(--gap); }
.sitemap-list li { break-inside: avoid; padding: 5px 0; }
.sitemap-list a { color: var(--ink); }
.sitemap-list a:hover { color: var(--clinic); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .sitemap-list { columns: 2; } }
@media (max-width: 560px) { .sitemap-list { columns: 1; } }

/* consent banner - injected by assets/js/tracking.js only when a clinic has
   tags configured and the visitor has not answered yet. position:fixed so it
   never shifts layout (CLS), and it is the only chrome the tag layer adds. */
.consent { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 900;
  width: min(760px, calc(100vw - 32px)); display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--dark); color: #fff; padding: 16px 20px; border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.28); font-size: .86rem; line-height: 1.5; }
.consent__copy { margin: 0; flex: 1 1 320px; }
.consent__copy a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.consent__btns { display: flex; gap: 10px; flex: 0 0 auto; }
.consent__btn { font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45);
  background: transparent; color: #fff; transition: background .2s, color .2s; }
.consent__btn:hover { background: rgba(255,255,255,.14); }
.consent__btn--yes { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.consent__btn--yes:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
@media (max-width: 560px) {
  .consent { bottom: 10px; padding: 14px 16px; gap: 12px; }
  .consent__btns { width: 100%; }
  .consent__btn { flex: 1; text-align: center; }
}

/* Blog post -> the treatment it is about (post frontmatter `service:`) */
.post-parent { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; }
.post-parent:hover { border-color: var(--clinic); }
.post-parent .btn { flex-shrink: 0; }
.post-parent__title { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.post-parent .lead { max-width: 60ch; }
@media (max-width: 720px) { .post-parent { flex-direction: column; align-items: flex-start; } }

/* Home: awards (optional page.awards) */
.awards { grid-template-columns: 1fr 1.1fr; }
.awards .media-card img { aspect-ratio: 8/5; object-fit: cover; }
.awards__list { list-style: none; padding: 0; display: grid; gap: 14px; }
.awards__list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm, 14px); }
.awards__year { flex-shrink: 0; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--clinic-ink); background: color-mix(in srgb, var(--clinic) 12%, transparent); border-radius: 999px; padding: 6px 12px; }
.awards__list h4 { font-size: 1rem; line-height: 1.3; }
.awards__list p { font-size: .88rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .awards { grid-template-columns: 1fr; } }
/* extra room above and below the awards row (Amy, 1 Nov 2026) */
.section--awards, :is(.section, .section--tight) + .section--awards { padding-top: calc(var(--space-section) * 0.6); padding-bottom: calc(var(--space-section) * 1.2); }

/* AHPRA line under each before/after tile */
.ba-tile-note { margin: .35rem 0 0; font-size: .72rem; line-height: 1.4; color: var(--muted); }

/* Compact page hero (contact): headline on one line where it fits, wider intro, less air below */
.page-hero--compact { padding-block: clamp(28px, 3.5vw, 48px) 0; }
.page-hero--compact h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
.page-hero--compact p { max-width: 56em; }
.section--tight-top { padding-top: clamp(20px, 2.5vw, 36px); }
.section--tight-bottom { padding-bottom: clamp(12px, 1.6vw, 24px); }

/* How to find us (contact page) */
.directions__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 1080px) { .directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .directions__grid { grid-template-columns: 1fr; } }
.directions__card { background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 20px 22px 22px; }
.directions__card h3 { font-size: 1.1rem; }
.directions__card .role { color: var(--clinic); font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.directions__card ul { margin: .8rem 0 0; padding-left: 1.1rem; font-size: .9rem; color: var(--muted); }
.directions__card li + li { margin-top: .4rem; }

/* Header hero: optional one-line intro under the heading (hero_intro) */
.page-hero .svc-headhero__intro { text-align: left; max-width: 60ch; margin: 1rem 0 0; font-size: 1.05rem; }
.section--tight-bottom + .section--airy { padding-top: calc(var(--space-section) * 0.55); }
