/* ==========================================================================
   Smile Studio Dental — design system
   Structure inspired by trilliumdentalcentre.com; brand colours are Smile Studio
   (teal #29c4a9 accent, espresso #2e2823 ink). Authored to match the class names
   emitted by tools/build_base.py.
   ========================================================================== */

:root {
  --primary: #16b39a;          /* AA-tuned teal for text/links on white */
  --primary-bright: #29c4a9;   /* brand teal for fills */
  --primary-dark: #0e8e7a;
  --soft: #7ebec5;             /* secondary aqua */
  --soft-tint: #e7f6f3;
  --ink: #2e2823;              /* espresso */
  --ink-muted: #6b645d;
  --topbar-bg: #2e2823;
  --topbar-ink: #ffffff;
  --page-bg: #ffffff;
  --alt-bg: #f6faf9;
  --card-bg: #ffffff;
  --border: #e6e2dd;
  --warning: #e0644b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(46, 40, 35, .06);
  --shadow: 0 12px 34px rgba(46, 40, 35, .10);
  --shadow-lg: 0 26px 60px rgba(46, 40, 35, .16);

  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --section-y: clamp(3.25rem, 7vw, 6rem);

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.65;
  font-size: clamp(1rem, .97rem + .15vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: .35rem 0; }
strong { font-weight: 600; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: .6rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
/* a11y / Web Interface Guidelines craft:
   - .sr-only: screen-reader-only headings that keep the heading outline intact.
   - balance headings so short titles don't leave orphan words.
   - touch-action: manipulation removes the 300ms double-tap delay on controls.
   - scroll-margin-top offsets in-page anchor jumps so the sticky header doesn't cover them. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { text-wrap: balance; }
:where(a, button, .btn, summary, label, input, select, textarea) { touch-action: manipulation; }
:where([id]) { scroll-margin-top: 84px; }

/* ---------- buttons ---------- */
.btn, .btn-primary, .btn--primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; text-align: center;
}
.btn-primary, .btn--primary { background: var(--primary-bright); color: #fff; box-shadow: 0 8px 20px rgba(41, 196, 169, .32); }
.btn-primary:hover, .btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(41, 196, 169, .4); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--primary-dark); }
.btn--white:hover { background: var(--soft-tint); color: var(--primary-dark); transform: translateY(-2px); }

/* ---------- topbar ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: .88rem; }
.topbar a { color: var(--topbar-ink); }
.topbar a:hover { color: var(--soft); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.tb-item { display: inline-flex; align-items: center; gap: .4rem; }
.tb-item svg { opacity: .85; }
.topbar-social { display: inline-flex; gap: .6rem; }
.tb-social { display: inline-flex; opacity: .9; }
.tb-social:hover { opacity: 1; }
@media (max-width: 760px) { .tb-hide-sm { display: none; } }

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: 52px; }
.main-nav { display: flex; align-items: center; gap: clamp(.35rem, .9vw, 1rem); }
.main-nav > a, .services-toggle { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); padding: .5rem .15rem; background: none; border: none; cursor: pointer; position: relative; white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1150px) { .nav-phone span { display: none; } }
.main-nav > a::after, .services-toggle::after { content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .15rem; height: 2px; background: var(--primary-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav > a:hover, .services-toggle:hover { color: var(--primary-dark); }
.main-nav > a:hover::after, .main-nav > a.active::after, .services-toggle:hover::after, .services-toggle.active::after { transform: scaleX(1); }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary-dark) !important; }
.nav-phone::after { display: none; }
/* Higher specificity than `.main-nav > a` (which sets background:none + tiny padding) */
.main-nav > a.btn-nav { background: var(--ink); color: #fff; padding: .62rem 1.3rem; font-size: .95rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(46,40,35,.22); white-space: nowrap; }
.main-nav > a.btn-nav::after { display: none; }
.main-nav > a.btn-nav:hover { background: #45392f; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(46,40,35,.3); }
.chev { font-size: .8em; opacity: .8; }

/* services dropdown (cascading flyout) */
.has-dropdown { position: relative; }
.services-toggle > .chev { display: inline-block; transition: transform .2s ease; }
.services-toggle[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px); min-width: 280px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .6rem; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease; z-index: 120; }
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; } /* hover bridge */
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-item { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .85rem; border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.dropdown-item:hover { background: var(--soft-tint); color: var(--primary-dark); }
.has-submenu { position: relative; }
.submenu { position: absolute; top: -.6rem; left: calc(100% + 2px); min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateX(-6px); transition: opacity .16s ease, transform .16s ease; }
.has-submenu::after { content: ""; position: absolute; top: 0; right: -4px; width: 8px; height: 100%; } /* submenu hover bridge */
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.submenu a, .submenu-overview { display: block; padding: .55rem .8rem; border-radius: var(--radius-sm); font-weight: 500; color: var(--ink); }
.submenu a:hover { background: var(--soft-tint); color: var(--primary-dark); }
.submenu-overview { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); border-bottom: 1px solid var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: .25rem; }

/* mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.menu-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: flex; position: relative; z-index: 210; }
  /* backdrop-filter on the header makes it the containing block for fixed
     descendants, which would trap the slide-in panel inside the header's box.
     Drop it on mobile so the panel can fill the viewport. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav { position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(360px, 86vw); flex-direction: column; align-items: stretch; gap: .2rem; background: #fff; padding: 5.5rem 1.4rem 2rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; overscroll-behavior: contain; }
  .main-nav.open { transform: translateX(0); box-shadow: -8px 0 24px rgba(0,0,0,.18), 0 0 0 100vmax rgba(0,0,0,.45); }
  /* The open panel clips the header logo to a stray sliver — hide it while open. */
  body.nav-open .brand { visibility: hidden; }
  .main-nav > a, .services-toggle { padding: .8rem .4rem; border-bottom: 1px solid var(--border); width: 100%; text-align: left; }
  .has-dropdown { width: 100%; }
  /* Services collapsed by default on mobile; tap the toggle to expand. */
  .dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: .1rem 0 .5rem .6rem; min-width: 0; }
  .services-toggle[aria-expanded="true"] ~ .dropdown { display: block; }
  .dropdown::before { display: none; }
  /* A tapped toggle keeps :focus, so the desktop hover/focus flyout rules (which
     use translateX(-50%) to center the absolute desktop dropdown) would leak in
     and shove the mobile panel off-screen. Force them flat on mobile. */
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown,
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu { transform: none; opacity: 1; visibility: visible; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 .8rem; }
  .has-submenu::after { display: none; }
  .nav-phone { padding: .8rem .4rem; }
  .btn-nav { margin-top: .8rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); background: linear-gradient(170deg, var(--soft-tint) 0%, #fff 62%); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; z-index: 0; }
.hero__blob--1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(41,196,169,.28), transparent 70%); top: -120px; right: -80px; }
.hero__blob--2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(126,190,197,.3), transparent 70%); bottom: -140px; left: -100px; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .4rem .95rem; font-family: var(--font-head); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm); margin-bottom: 1.1rem; white-space: nowrap; line-height: 1; }
.hero__badge .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-bright); }
.hero__badge-text { line-height: 1; }
@media (max-width: 480px) { .hero__badge { white-space: normal; } }
.hero__sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-muted); max-width: 34ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__phone { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.hero__visual { position: relative; }
.hero__photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3.2; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem; }
.hero__chip--reviews { bottom: 1.4rem; left: -1.2rem; }
.hero__chip--years { top: 1.4rem; right: -1rem; flex-direction: column; gap: 0; text-align: center; }
.hero__chip .num { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.hero__chip small { color: var(--ink-muted); font-size: .72rem; max-width: 12ch; }
.hero__stars { color: #f5a623; display: inline-flex; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
}

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding: clamp(2.25rem, 4vw, 3.25rem) 0; }
.section--alt { background: var(--alt-bg); }
.sec-head { max-width: 60ch; }
.sec-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-muted); }

/* two-column media block */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.two-col--flip .two-col__media { order: -1; }
.two-col__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } .two-col--flip .two-col__media { order: 0; } }

/* ---------- tiles strip ---------- */
.tiles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tile { display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile--accent { background: linear-gradient(160deg, var(--primary-bright), var(--primary-dark)); border-color: transparent; color: #fff; }
.tile__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--soft-tint); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 1rem; }
.tile--accent .tile__icon { background: rgba(255,255,255,.2); color: #fff; }
.tile h3 { margin-bottom: .4rem; }
.tile p { color: var(--ink-muted); font-size: .96rem; }
/* CTA pinned to the bottom of every card so all three rows align. */
.tile__link { margin-top: auto; padding-top: 1rem; font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); display: inline-flex; gap: .35rem; }
/* Accent overrides last + higher specificity so they beat the base rules above. */
.tile.tile--accent h3, .tile.tile--accent p { color: #fff; }
.tile.tile--accent .tile__link { color: #fff; }
@media (max-width: 820px) { .tiles__grid { grid-template-columns: 1fr; } }

/* ---------- services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.svc-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--soft); }
.svc-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--soft-tint); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc-card h3 { margin-bottom: .45rem; color: var(--ink); }
.svc-card p { color: var(--ink-muted); font-size: .96rem; flex: 1; }
.svc-cta { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); display: inline-flex; gap: .35rem; margin-top: .6rem; }
@media (max-width: 920px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* subservice cards */
.subsvc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.subsvc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.subsvc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.subsvc-card p { color: var(--ink-muted); font-size: .94rem; flex: 1; }
@media (max-width: 900px) { .subsvc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .subsvc-grid { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card__photo { aspect-ratio: 1/1; background: linear-gradient(160deg, var(--soft-tint), var(--soft)); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__monogram { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: #fff; }
.team-card__body { padding: 1.1rem 1.3rem 1.4rem; }
.team-card__body h3 { margin-bottom: .15rem; }
.team-card__role { color: var(--primary-dark); font-weight: 600; font-size: .9rem; }
.team-card__bio { color: var(--ink-muted); font-size: .94rem; margin-top: .6rem; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* team member rows (variable-length bios) */
.team-rows { display: flex; flex-direction: column; gap: var(--gap); }
.team-row { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }
.team-row__photo { width: 220px; height: 220px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--soft-tint), var(--soft)); }
.team-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-row__body h3 { margin-bottom: .1rem; }
.team-row__bio { margin-top: .8rem; color: var(--ink-muted); }
.team-row__bio p { margin-bottom: .7rem; }
@media (max-width: 680px) {
  .team-row { grid-template-columns: 1fr; }
  .team-row__photo { width: 140px; height: 140px; }
}

/* ---------- feature list / checks ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin: .6rem 0; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--soft-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e8e7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- service-page visual storytelling ---------- */
/* alternating text+image block */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.svc-block--flip .svc-block__media { order: -1; }
.svc-block__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.svc-block__text h2 { margin-bottom: .6rem; }
@media (max-width: 800px) { .svc-block { grid-template-columns: 1fr; } .svc-block--flip .svc-block__media { order: 0; } }

/* benefit grid (icon cards) */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.benefit-card .b-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--soft-tint); color: var(--primary-dark); display: grid; place-items: center; margin-bottom: .8rem; }
.benefit-card h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.benefit-card p { color: var(--ink-muted); font-size: .94rem; margin: 0; }
/* card/timeline bodies: lists stay indented, even spacing, no trailing gap */
.benefit-card > *, .why-card > *, .timeline__body > * { margin-bottom: 0; }
.benefit-card > * + *, .why-card > * + *, .timeline__body > * + * { margin-top: .55rem; }
.benefit-card ul, .benefit-card ol, .why-card ul, .why-card ol, .timeline__body ul, .timeline__body ol { padding-left: 1.25rem; }
.benefit-card li, .why-card li, .timeline__body li { color: var(--ink-muted); margin: .3rem 0; }
.why-card ul, .why-card li, .why-card p { font-size: .94rem; color: var(--ink-muted); }
.timeline__body ul, .timeline__body li { font-size: .96rem; color: var(--ink-muted); }

/* process timeline (numbered steps) */
.timeline { display: grid; gap: 1rem; counter-reset: step; }
.timeline__step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); position: relative; }
.timeline__num { counter-increment: step; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-bright); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; }
.timeline__num::before { content: counter(step); }
.timeline__step h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.timeline__step p { color: var(--ink-muted); margin: 0; font-size: .96rem; }

/* why-choose cards (check-led) */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); align-items: start; }
.why-card { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary-bright); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.why-card h3 { font-size: 1.05rem; margin-bottom: .35rem; display: flex; gap: .5rem; align-items: baseline; }
.why-card p { color: var(--ink-muted); font-size: .94rem; margin: 0; }

/* option cards (full-arch comparison) */
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); }
.option-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.option-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.option-card__img { aspect-ratio: 4/3; background: var(--soft-tint); }
.option-card__img img { width: 100%; height: 100%; object-fit: cover; }
.option-card__body { padding: 1.2rem 1.3rem 1.4rem; }
.option-card__body h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.option-card__body p { color: var(--ink-muted); font-size: .93rem; margin: 0; }

/* stat / pull-quote callout */
.callout { background: linear-gradient(135deg, var(--soft-tint), #fff); border: 1px solid var(--border); border-left: 5px solid var(--primary-bright); border-radius: var(--radius); padding: 1.5rem 1.8rem; }
.callout p { margin: 0; font-size: 1.1rem; color: var(--ink); }

/* ---------- CTA band ("bucket") ---------- */
.cta-band {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1.5px, transparent 0),
    linear-gradient(150deg, var(--ink) 0%, #45392f 100%);
  background-size: 22px 22px, 100% 100%;
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden;
  margin-block: clamp(2.5rem, 5vw, 4.5rem);
  box-shadow: var(--shadow-lg);
}
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(41,196,169,.4), transparent 70%); top: -130px; right: -90px; }
.cta-band::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(126,190,197,.28), transparent 70%); bottom: -140px; left: -70px; }
.cta-band-inner { position: relative; z-index: 1; max-width: 60ch; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.1rem; }

/* ---------- feature band (CDCP / promo, Trillium-style) ---------- */
.feature-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--soft-tint), #fff); border: 1px solid var(--border); border-left: 6px solid var(--primary-bright); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.feature-band__text { max-width: 62ch; }
.feature-band h2 { margin: .4rem 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.feature-band p { color: var(--ink-muted); margin: 0; }
.feature-band .btn { flex: 0 0 auto; }
.cta-band .pill { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- associations strip ---------- */
.assoc-strip .sec-head { text-align: center; margin-inline: auto; max-width: 62ch; }
.assoc-strip__grid { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; justify-content: center; }
.assoc-card { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; transition: transform .2s ease; }
.assoc-card:hover { transform: translateY(-3px); }
.assoc-card__logo img { object-fit: contain; filter: saturate(.9); }
.assoc-card--rcdso img { max-height: 64px; max-width: 200px; }
.assoc-card--cda img { max-height: 70px; max-width: 150px; }
.assoc-card--implant img { max-height: 84px; max-width: 130px; }

/* ---------- forms / embeds ---------- */
.form-embed { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1rem; }
.form-embed__fallback { padding: 1.5rem; text-align: center; color: var(--ink-muted); }
.review-embed { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1rem; }

/* form + sidebar layout (appointment / referral) */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); align-items: start; }
.form-aside { display: flex; flex-direction: column; gap: var(--gap); position: sticky; top: 90px; }
@media (max-width: 820px) { .form-layout { grid-template-columns: 1fr; } .form-aside { position: static; } }

/* ---------- service page: main column + sticky right sidebar ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(1.75rem, 4vw, 3.25rem); align-items: start; padding-block: var(--section-y); }
/* Storytelling sections flow inside the main column: shed their full-bleed chrome. */
.svc-main > .section { padding: 0; background: none; }
.svc-main > .section + .section { margin-top: clamp(2rem, 5vw, 3.5rem); }
.svc-main > .section > .container { width: 100%; max-width: none; margin-inline: 0; padding-inline: 0; }

.svc-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: var(--gap); }
.aside-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.aside-card__title { font-size: 1.2rem; margin: 0 0 .5rem; }

/* CTA card — brand gradient + welcome imagery */
.aside-cta { background: linear-gradient(160deg, var(--primary-bright), var(--primary-dark)); color: #fff; box-shadow: var(--shadow); }
.aside-cta__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.aside-cta__body { padding: 1.4rem 1.4rem 1.6rem; }
.aside-cta__body p { color: rgba(255,255,255,.9); font-size: .95rem; margin-bottom: 1.15rem; }
.aside-cta .aside-card__title { color: #fff; }
.btn--block { display: flex; width: 100%; justify-content: center; }
.aside-cta__call { display: inline-flex; align-items: center; gap: .5rem; margin-top: .95rem; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.aside-cta__call:hover { color: #fff; opacity: .85; }

/* Services navigator */
.aside-nav { background: #fff; border: 1px solid var(--border); padding: 1.4rem; }
.aside-nav__list { list-style: none; margin: 0; padding: 0; }
.aside-nav__list > li > a { display: block; padding: .55rem .7rem; border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink); transition: background .15s ease, color .15s ease; }
.aside-nav__list > li > a:hover { background: var(--soft-tint); color: var(--primary-dark); }
.aside-nav__list > li.is-current > a { background: var(--soft-tint); color: var(--primary-dark); }
.aside-nav__sub { list-style: none; margin: .15rem 0 .55rem; padding: 0 0 0 .7rem; border-left: 2px solid var(--border); }
.aside-nav__sub a { display: block; padding: .4rem .7rem; border-radius: var(--radius-sm); font-size: .9rem; color: var(--ink-muted); transition: color .15s ease; }
.aside-nav__sub a:hover { color: var(--primary-dark); }
.aside-nav__sub li.is-current a { color: var(--primary-dark); font-weight: 600; }

@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .svc-aside { position: static; margin-top: var(--section-y); }
}

/* ---------- AI smile simulator embed ---------- */
.sec-head--center { text-align: center; margin-inline: auto; }
.smile-sim { scroll-margin-top: 84px; }               /* clear the sticky header on jump */
.smile-sim__embed { margin-top: clamp(1.5rem, 3vw, 2.5rem); min-height: 300px; }

/* native form (fallback styling, kept for completeness) */
.ff-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); }
.ff-form__head h3 { margin-bottom: .3rem; }
.ff-form__head p { color: var(--ink-muted); }
.ff-row { margin-bottom: 1rem; }
.ff-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ff-form label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.ff-form input, .ff-form select, .ff-form textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; }
.ff-form input:focus, .ff-form select:focus, .ff-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(41,196,169,.18); }
.ff-fineprint { font-size: .82rem; color: var(--ink-muted); margin-top: .6rem; }
@media (max-width: 560px) { .ff-row--split { grid-template-columns: 1fr; } }

/* ---------- info cards (contact / hours) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); align-items: start; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.hours-table { list-style: none; padding: 0; margin: 0; }
.hours-table li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.hours-table .day { font-weight: 600; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* breadcrumb */
.breadcrumb { padding: 1.25rem 0 1.15rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-size: .82rem; font-weight: 500; letter-spacing: .01em; color: var(--ink-muted); }
/* chevron separator drawn in CSS so its colour/size is independent of the labels */
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 2px solid var(--border-strong, #cdc7bf); border-right: 2px solid var(--border-strong, #cdc7bf); transform: rotate(45deg); flex: 0 0 auto; }
.breadcrumb a { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-muted); padding: .15rem 0; border-radius: var(--radius-sm); transition: color .15s ease; }
.breadcrumb a svg { opacity: .8; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb li[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* prose */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.3rem; }

/* faq */
.faq { max-width: 800px; margin-inline: auto; }
.faq-heading { text-align: center; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; background: #fff; box-shadow: var(--shadow-sm); }
.faq summary { font-family: var(--font-head); font-weight: 600; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary-dark); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: clamp(3rem,6vw,4.5rem) 0 1.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-head); }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--gap); padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-logo--footer { height: 48px; filter: brightness(0) invert(1); opacity: .92; }
.footer-tagline { margin: 1rem 0; font-size: .94rem; max-width: 32ch; }
.social { display: flex; gap: .7rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s ease; }
.social a:hover { background: var(--primary-bright); color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .5rem 0; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li { display: flex; gap: .6rem; margin: .6rem 0; align-items: start; }
.footer-hours-h { margin-top: 1.4rem; }
.hours { list-style: none; padding: 0; font-size: .9rem; }
.hours li { display: flex; justify-content: space-between; padding: .2rem 0; }
.hours .time { color: rgba(255,255,255,.62); }
.footer-assoc { padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.assoc-h { margin-bottom: .7rem; }
.assoc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.5rem; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--soft-tint); color: var(--primary-dark); font-family: var(--font-head); font-weight: 600; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; }

/* Mobile fixed Call/Book bar — primary conversions stay reachable once the
   topbar/header scroll away. Hidden on desktop (SXO re-audit fix). */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .mobile-cta__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 48px; border-radius: 10px; font-family: var(--font-head);
    font-weight: 600; font-size: 1rem; text-decoration: none;
  }
  .mobile-cta__btn--call { background: var(--soft-tint); color: var(--primary-dark); border: 1px solid var(--primary); }
  .mobile-cta__btn--book { background: var(--primary); color: #fff; }
  .site-footer { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Home before/after smile teaser (funnels to the Smile Simulator) ---- */
.smile-teaser__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.25rem); align-items: center; }
.smile-teaser__text .btn { margin-top: 1.4rem; }
.ba-slider { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: var(--soft-tint); user-select: none; touch-action: pan-y; }
.ba-slider__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-slider__reveal { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0); }
.ba-slider__label { position: absolute; top: .75rem; z-index: 3; padding: .28rem .65rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(20,30,30,.5); }
.ba-slider__label--before { left: .75rem; }
.ba-slider__label--after { right: .75rem; }
.ba-slider__divider { position: absolute; top: 0; bottom: 0; left: var(--ba-pos, 50%); width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; z-index: 4; }
.ba-slider__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--primary-dark); box-shadow: 0 2px 10px rgba(0,0,0,.28); }
.ba-slider__range { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.ba-slider__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba-slider__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; background: transparent; }
.ba-slider__range:focus-visible ~ .ba-slider__divider .ba-slider__grip { outline: 3px solid var(--primary); outline-offset: 3px; }
@media (max-width: 820px) { .smile-teaser__grid { grid-template-columns: 1fr; } }
