/* ==========================================================================
   Everbright Smiles — design system
   Brand: teal wordmark + magenta→orange "smiling tooth" gradient.
   Type:  Bricolage Grotesque (display) · Hanken Grotesk (text)
   ========================================================================== */

:root {
  --teal:        #1d6a86;
  --teal-dark:   #134e63;
  --teal-700:    #17607a;
  --teal-soft:   #5b94a6;
  --magenta:     #d6006c;
  --orange:      #f57f20;
  --grad:        linear-gradient(120deg, #d6006c 0%, #f06236 55%, #f57f20 100%);
  --grad-soft:   linear-gradient(120deg, #fde7f1 0%, #fff0e4 100%);

  --ink:         #16323c;
  --ink-muted:   #566a72;
  --bg:          #ffffff;
  --bg-alt:      #f1f8f9;
  --bg-warm:     #fff7f0;
  --card:        #ffffff;
  --border:      #e2edef;
  --border-soft: #eef4f5;

  --shadow-sm: 0 1px 2px rgba(19,78,99,.06), 0 2px 6px rgba(19,78,99,.05);
  --shadow-md: 0 8px 24px rgba(19,78,99,.09);
  --shadow-lg: 0 22px 60px rgba(19,78,99,.16);

  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2.4rem);
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; scroll-padding-top: 88px; }
body {
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 1.04rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg,video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-dark); }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.12; color: var(--ink); font-weight: 600; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.4rem); }
p { color: var(--ink-muted); }
ul,ol { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--teal-dark); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 12px 12px;
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color:#fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-text); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  min-height: 44px; line-height: 1;
  touch-action: manipulation; -webkit-tap-highlight-color: rgba(29,106,134,.18);
}
/* faster, more reliable taps on the primary interactive controls */
.menu-toggle, .services-toggle, .main-nav > a, .nav-phone,
.dropdown-item, .submenu a, .tile__link, .svc-cta, .clinic-list a, .faq > summary {
  touch-action: manipulation; -webkit-tap-highlight-color: rgba(29,106,134,.18);
}
.btn--lg { padding: 1rem 1.9rem; font-size: 1.04rem; }
.btn--primary, .btn-primary {
  background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(214,0,108,.22);
}
.btn--primary:hover, .btn-primary:hover { color:#fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(214,0,108,.30); }
.btn--ghost {
  background: #fff; color: var(--teal-dark); border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--teal-soft); transform: translateY(-2px); }
.btn--teal { background: var(--teal); color:#fff; }
.btn--teal:hover { background: var(--teal-dark); color:#fff; transform: translateY(-2px); }

/* ---------- topbar ---------- */
.topbar { background: var(--teal-dark); color: #eaf4f6; font-size: .86rem; }
.topbar a { color: #eaf4f6; }
.topbar a:hover { color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar-info { display: flex; align-items: center; gap: 1.6rem; }
.tb-item { display: inline-flex; align-items: center; gap: .45rem; }
.tb-item svg { opacity: .85; }
.topbar-cta { display: flex; align-items: center; gap: 1rem; }
.tb-find { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.topbar-social { display: inline-flex; gap: .5rem; }
.tb-social { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); }
.tb-social:hover { background: rgba(255,255,255,.22); }
@media (max-width: 760px) {
  .tb-hide-sm { display: none; }
  /* The long "four neighbourhood clinics" line wraps messily on phones — drop it
     and centre the single click-to-call action for a clean one-line strip. */
  .topbar-info { display: none; }
  .topbar-inner { min-height: 38px; justify-content: center; }
  .tb-find span { white-space: nowrap; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; color: var(--teal-dark); }
@media (max-width: 520px) { .brand-word { display: none; } }

.main-nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.main-nav > a, .services-toggle {
  font-weight: 600; font-size: .97rem; color: var(--ink); padding: .55rem .8rem;
  border-radius: 10px; background: none; border: none; cursor: pointer; font-family: var(--font-text);
  display: inline-flex; align-items: center; gap: .3rem; line-height: 1; min-height: 40px;
}
.main-nav > a:hover, .services-toggle:hover { background: var(--bg-alt); color: var(--teal-dark); }
.main-nav > a.active, .services-toggle.active { color: var(--magenta); }
.chev { font-size: .8em; opacity: .7; }

.nav-phone {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--teal-dark);
  padding: .55rem .7rem; border-radius: 10px;
}
.nav-phone:hover { background: var(--bg-alt); }
.btn-nav { margin-left: .4rem; padding: .65rem 1.2rem; min-height: 44px; }

/* dropdowns */
.has-dropdown { position: relative; }
/* Desktop-only hover dropdowns. MUST be scoped to desktop: these absolute/
   transform/:focus-within rules out-specify the mobile flatten rules, so if they
   leak to mobile a tap focuses the toggle and translateX() shifts the open
   submenu off-screen. Mobile uses the click-to-expand flatten in the max-width
   block below. */
@media (min-width: 981px) {
  .dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 280px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: .6rem; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 130;
  }
  .dropdown--cascade { left: 0; transform: translateX(-30%) translateY(8px); min-width: 320px; }
  /* hover bridge — spans the visual gap so the cursor stays in :hover (audit 21) */
  .dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 14px; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .has-dropdown:hover .dropdown--cascade,
  .has-dropdown:focus-within .dropdown--cascade { transform: translateX(-30%) translateY(0); }
}

.dropdown-item, .submenu-overview {
  display: block; padding: .6rem .8rem; border-radius: 10px; font-weight: 600; font-size: .95rem; color: var(--ink);
}
.dropdown-item:hover, .submenu-overview:hover { background: var(--bg-alt); color: var(--teal-dark); }
.submenu-overview { color: var(--magenta); font-size: .88rem; border-bottom: 1px solid var(--border-soft); border-radius: 10px 10px 0 0; margin-bottom: .25rem; }
.dropdown-item--parent { display: flex; align-items: center; justify-content: space-between; }
.dropdown-item--loc { display: flex; flex-direction: column; gap: .12rem; }
.dropdown-item__name { font-weight: 700; }
.dropdown-item__area { font-size: .82rem; font-weight: 500; color: var(--ink-muted); }

/* cascade submenu */
.has-submenu { position: relative; }
@media (min-width: 981px) {
  .submenu {
    position: absolute; top: -.6rem; left: calc(100% - 4px); min-width: 260px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(6px); transition: opacity .16s var(--ease), visibility .16s var(--ease), transform .16s var(--ease);
  }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity:1; visibility:visible; pointer-events:auto; transform: translateX(0); }
}
.submenu a:not(.submenu-overview) { display:block; padding:.5rem .7rem; border-radius:9px; font-size:.92rem; font-weight:600; color:var(--ink); }
.submenu a:hover { background: var(--bg-alt); color: var(--teal-dark); }

.menu-toggle { display: none; }

/* ---------- mobile nav ---------- */
@media (max-width: 980px) {
  /* backdrop-filter makes .site-header a containing block for position:fixed
     descendants — which traps the fixed mobile nav inside the ~77px header and
     clamps it to one row. Drop it on mobile so the nav anchors to the viewport
     and fills the screen. (Header stays legible: bg is already 92% opaque.) */
  .site-header { backdrop-filter: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 46px; height: 46px; margin-left: auto; background: var(--bg-alt); border: 1px solid var(--border);
    border-radius: 12px; cursor: pointer; padding: 0 11px;
  }
  .menu-toggle span { height: 2.5px; background: var(--teal-dark); border-radius: 2px; transition: .2s var(--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); }

  .main-nav {
    position: fixed; inset: 118px 0 0 0; flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; padding: 1.2rem var(--gutter) 3rem; overflow-y: auto; overscroll-behavior: contain; margin: 0;
    transform: translateX(100%); transition: transform .26s var(--ease); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a, .services-toggle { width: 100%; justify-content: space-between; padding: .85rem .6rem; font-size: 1.06rem; border-radius: 10px; }
  .has-dropdown { width: 100%; }
  /* mobile: flatten cascades, reveal on .open toggle */
  .dropdown, .submenu {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: none; min-width: 0; padding: 0 0 .4rem 1rem; display: none; background: transparent;
  }
  .has-dropdown.open > .dropdown { display: block; }
  .submenu { display: block; padding-left: 1rem; }
  .dropdown::before { display: none; }
  .nav-phone { justify-content: flex-start; padding: .85rem .6rem; }
  .btn-nav { margin: .8rem 0 0; }
}

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--tight { padding: clamp(2.4rem, 4vw, 3.4rem) 0; }
.section--alt { background: var(--bg-alt); }
/* Collapse the doubled gap between consecutive sections that share a background
   (a colour change already separates alt<->plain bands; same-bg runs otherwise
   stack two full paddings into one large void). */
.section:not(.section--alt) + .section:not(.section--alt):not(.section--tight) { padding-top: 0; }
.section--alt + .section--alt:not(.section--tight) { padding-top: 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-text); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: .8rem;
}
.sec-head { max-width: 720px; }
.sec-head p { margin-top: .8rem; font-size: 1.08rem; }
/* Consistent breathing room under section headers sitewide (the global reset
   zeroes all margins, so headers otherwise butt against their first paragraph). */
.section > .container > h2 { max-width: 18ch; margin-bottom: 1.1rem; }
.section > .container > h3 { margin-bottom: .7rem; }
.section .two-col h2 { margin-bottom: 1rem; }
.section .two-col h3 { margin-bottom: .6rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem,6vw,5rem); background: linear-gradient(180deg, var(--bg-warm), #fff 70%); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; z-index: 0; }
.hero__blob--1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(214,0,108,.20), transparent 70%); top: -160px; right: -120px; }
.hero__blob--2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(29,106,134,.18), transparent 70%); bottom: -180px; left: -120px; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__content { max-width: 620px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--border);
  padding: .45rem .9rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .85rem; color: var(--teal-dark);
  box-shadow: var(--shadow-sm); margin-bottom: 1.3rem;
}
.hero__badge .dot { display: none; }
.hero h1 { margin-bottom: 1rem; }
.hero__sub { font-size: 1.18rem; color: var(--ink-muted); margin-bottom: 1.8rem; max-width: 54ch; }
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--teal-dark); }
.hero__visual { position: relative; }
.hero__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--bg-alt); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Landscape hero variant for clinic + service-hub pages, whose photos are wide —
   a 3:2 frame shows them without the heavy crop a 4:5 portrait slot would force. */
.hero__photo--wide { aspect-ratio: 3/2; }
.hero__chip { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-md); padding: .8rem 1rem; display: flex; align-items: center; gap: .6rem; }
.hero__chip--reviews { bottom: 1.2rem; left: -1.2rem; }
.hero__chip--years { top: 1.2rem; right: -1rem; flex-direction: column; text-align: center; }
.hero__chip .num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.hero__chip small { color: var(--ink-muted); font-size: .76rem; }
.hero__stars { color: var(--orange); display: inline-flex; }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; }
}

/* ---------- tiles ---------- */
.tiles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile--accent { background: var(--grad); border: none; color: #fff; }
.tile--accent h3, .tile--accent p, .tile--accent .tile__link { color: #fff; }
.tile__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad-soft); color: var(--magenta); margin-bottom: 1rem; }
.tile--accent .tile__icon { background: rgba(255,255,255,.2); color: #fff; }
.tile h3 { margin-bottom: .5rem; }
.tile__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; margin-top: .9rem; color: var(--teal-dark); }
@media (max-width: 820px) { .tiles__grid { grid-template-columns: 1fr; } }

/* ---------- services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.3rem; margin-top: 2.4rem; }
.svc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--bg-alt); color: var(--teal); margin-bottom: 1.1rem; }
.svc-card:hover .svc-icon { background: var(--grad); color: #fff; }
.svc-card h3 { margin-bottom: .5rem; }
.svc-card p { font-size: .96rem; flex: 1; }
.svc-cta { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--magenta); margin-top: 1.1rem; font-size: .94rem; }

/* subservice grid */
.subsvc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.1rem; margin-top: 2.2rem; }
.subsvc-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; display:flex; flex-direction:column; }
.subsvc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.subsvc-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.subsvc-card p { font-size: .92rem; flex: 1; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); border-radius: var(--radius-lg); padding: clamp(2.2rem,5vw,3.6rem); position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% -20%, rgba(255,255,255,.25), transparent 50%); pointer-events:none; }
.cta-band-inner { position: relative; max-width: 680px; margin-inline: auto; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { margin: .8rem 0 1.6rem; opacity: .95; font-size: 1.08rem; }
.cta-band .btn { background: #fff; color: var(--magenta); }
.cta-band .btn:hover { color: var(--magenta); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- CDCP band ---------- */
.cdcp-band { background: var(--teal); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3rem); position: relative; overflow: hidden; }
.cdcp-band::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 90% 0%, rgba(245,127,32,.35), transparent 45%); }
.cdcp-band { text-align: center; }
.cdcp-band > * { position: relative; }
.cdcp-band h2 { color: #fff; margin: 0 auto .8rem; max-width: 24ch; }
.cdcp-band p { color: #e7f2f5; max-width: 68ch; margin-inline: auto; }
.cdcp-band a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- check list ---------- */
/* CSS columns (not grid) so each column flows independently → even row spacing
   regardless of how many lines a neighbouring item wraps to. */
.check-list { list-style: none; padding: 0; margin: 1.6rem 0 0; columns: 2; column-gap: 2.6rem; }
.check-list li {
  position: relative; padding-left: 2.4rem; margin: 0 0 .95rem; color: var(--ink);
  font-weight: 500; line-height: 1.45; break-inside: avoid; -webkit-column-break-inside: avoid;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 8px; background: var(--grad-soft);
}
.check-list li::after {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 11px; height: 6px; border-left: 2.5px solid var(--magenta); border-bottom: 2.5px solid var(--magenta);
  transform: rotate(-45deg);
}
@media (max-width: 620px) { .check-list { columns: 1; } }

/* ---------- clinic cards (homepage / locations) ---------- */
.clinic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.clinic-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.clinic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.clinic-card__img { background: #fff; display: grid; place-items: center; padding: 1.8rem 1.6rem; border-bottom: 1px solid var(--border-soft); }
.clinic-card__img img { width: auto; max-width: 78%; height: auto; max-height: 84px; object-fit: contain; }
.clinic-info-logo { display: block; width: auto; max-width: 170px; max-height: 90px; height: auto; object-fit: contain; margin-bottom: 1.2rem; }

/* Review widget — clean framed iframe, no inner white card border */
/* Frameless review widget (matches reference build): no bordered white box —
   the widget sits flush on the section background. reviews_widget.js sets the
   real height; min-height is only a pre-script floor so it doesn't collapse. */
.review-widget { max-width: 1040px; margin: 1.6rem auto 0; }
.review-widget iframe { display: block; width: 100%; min-width: 100%; border: 0; min-height: 320px; }
/* GoHighLevel / LeadConnector embedded lead form (form_embed.js auto-resizes) */
.ghl-form { width: 100%; }
.ghl-form iframe { display: block; width: 100%; min-width: 100%; border: 0; min-height: 560px; }

/* Clean clinic list under a map (light sections) */
.clinic-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.clinic-list li { margin: 0; }
.clinic-list a { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s; }
.clinic-list a:hover { border-color: var(--teal-soft); transform: translateX(2px); box-shadow: var(--shadow-sm); }
.clinic-list .cl-name { font-weight: 700; color: var(--ink); }
.clinic-list .cl-meta { display: block; color: var(--ink-muted); font-size: .88rem; margin-top: .12rem; }
.clinic-list .cl-pin { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--grad-soft); color: var(--magenta); flex-shrink: 0; }
.clinic-card__body { display: flex; flex-direction: column; gap: .25rem; padding: 1.3rem; flex: 1; }
.clinic-card__body h3 { font-size: 1.2rem; }
.clinic-card__area { color: var(--magenta); font-weight: 600; font-size: .9rem; }
.clinic-card__addr { color: var(--ink-muted); font-size: .92rem; }
.clinic-card__phone { color: var(--ink); font-weight: 600; font-size: .95rem; }
.clinic-card .svc-cta { margin-top: .8rem; }

/* ---------- locations detail grid ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.loc-detail { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.loc-detail__head { display: flex; align-items: center; gap: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-soft); }
.loc-detail__head img { flex-shrink: 0; }
.loc-detail__head h3 { font-size: 1.25rem; }
.loc-detail__cta { display: flex; gap: .6rem; margin-top: 1.3rem; flex-wrap: wrap; }
.loc-detail .hours { margin-top: .6rem; }

/* ---------- two-col / prose ---------- */
.two-col, .two-col-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem,4vw,3.4rem); align-items: stretch; margin: 2rem 0; }
.two-col > .prose, .two-col > div:not(.two-col-media) { align-self: center; }
.two-col-media { display: block; }
.two-col .two-col-media, .two-col-media { align-self: stretch; }
.two-col-media img, .two-col > .two-col-media > img {
  width: 100%; height: 100%; min-height: 340px; object-fit: cover;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.two-col img:not(.two-col-media img) { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.two-col.reverse > :first-child { order: 2; }
@media (max-width: 820px) { .two-col, .two-col-media { grid-template-columns: 1fr; } .two-col.reverse > :first-child { order: 0; } .two-col-media img { min-height: 260px; } }
.prose { max-width: 72ch; }
.prose h2 { margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.8rem 0 .6rem; }
.prose p { margin-bottom: 1rem; }
.prose ul:not(.check-list), .prose ol { margin: 0 0 1.3rem; padding-left: 0; list-style: none; }
.prose ol { list-style: decimal; padding-left: 1.3rem; }
.prose ul:not(.check-list) li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--ink-muted); }
.prose ul:not(.check-list) li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose ol li { margin-bottom: .55rem; color: var(--ink-muted); padding-left: .3rem; }
.prose .check-list { margin: 1.2rem 0 1.3rem; }
.prose__figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
/* ---------- blog article (clean, readable) ---------- */
.article-hero { position: relative; overflow: hidden; padding: clamp(2.6rem,5vw,4.2rem) 0 1.2rem; }
.article-head { max-width: 720px; margin-inline: auto; text-align: center; }
.article-head .crumbs { justify-content: center; }
.article-head .eyebrow { margin-top: .4rem; }
.article-head h1 { margin: .5rem 0 .9rem; font-size: clamp(2rem, 4.4vw, 3rem); }
.article-hero__lead { font-size: 1.18rem; color: var(--ink-muted); max-width: 60ch; margin-inline: auto; }
.article-meta { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-muted); display: inline-flex; gap: .55rem; align-items: center; }
.article-meta span:first-child { font-weight: 600; color: var(--teal); }
/* Featured banner — height-capped, with clear separation from the header above
   and the body below (no negative margins that let it overlap the heading text). */
.article-banner { margin: clamp(1.4rem,3vw,2.2rem) 0 clamp(1.8rem,3.5vw,2.6rem); }
.article-banner__img { max-width: 900px; margin-inline: auto; aspect-ratio: 16 / 7; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.article-banner__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .article-banner__img { aspect-ratio: 3 / 2; } }
.article-body { max-width: 66ch; margin-inline: auto; font-size: 1.06rem; }
.article-body > p { margin-bottom: 1.25rem; color: var(--ink); }
/* Lead-in paragraph — a deliberate "standfirst": larger and medium-weight so it
   reads as an intro, not an awkward in-between of the body text. */
.article-body > p:first-of-type { font-size: clamp(1.2rem,2.2vw,1.32rem); font-weight: 500; line-height: 1.55; color: var(--ink); margin-bottom: 1.6rem; }
.article-body h2 { margin: 2.4rem 0 .8rem; font-size: 1.5rem; }
.article-body h3 { margin: 1.9rem 0 .6rem; font-size: 1.2rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: .5rem; }
.article-body img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin: 1.6rem 0; max-width: 100%; height: auto; }
.article-pillar { margin-top: 2.4rem; padding: 1.3rem 1.5rem; border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--bg-alt); }
.article-pillar .eyebrow { margin-bottom: .3rem; }
.article-pillar p { margin: 0; color: var(--ink); }

/* ---------- associations strip ---------- */
.assoc-strip .sec-head { margin-inline: auto; text-align: center; }
.assoc-strip__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 5vw, 3.6rem); }
.assoc-card { display: inline-grid; place-items: center; padding: .4rem 1rem; filter: grayscale(.2); opacity: .9; transition: transform .2s var(--ease), filter .2s, opacity .2s; }
.assoc-card:hover { transform: translateY(-3px); filter: none; opacity: 1; }
.assoc-card__logo img { object-fit: contain; }
.assoc-card--oda img { max-height: 64px; max-width: 150px; }
.assoc-card--cda img { max-height: 58px; max-width: 180px; }
.assoc-card--invisalign img { max-height: 40px; max-width: 160px; }

/* ---------- forms ---------- */
.ff-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem,3vw,2.2rem); box-shadow: var(--shadow-md); }
.ff-form__head h3 { font-size: 1.4rem; }
.ff-form__head p { margin: .4rem 0 1.4rem; }
.ff-row { margin-bottom: 1rem; }
.ff-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ff-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--ink); }
.ff-form input, .ff-form select, .ff-form textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--border); border-radius: 11px;
  font-family: var(--font-text); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.ff-form input:focus, .ff-form select:focus, .ff-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,106,134,.14); }
.ff-actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.ff-fineprint { font-size: .82rem; color: var(--ink-muted); }
@media (max-width: 560px) { .ff-row--split { grid-template-columns: 1fr; } }

/* ---------- contact / map / reviews ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem,4vw,3rem); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px solid var(--border-soft); }
.info-row:last-child { border-bottom: none; }
.info-row .ico { color: var(--magenta); flex-shrink: 0; margin-top: .15rem; }
.map-embed, .reviews-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe, .reviews-frame iframe { display: block; width: 100%; border: 0; min-height: 400px; }
/* Clip the grey "My Maps" header strip off the umbrella all-clinics map. */
.map-embed--mymaps { position: relative; }
.map-embed--mymaps iframe { display: block; margin-top: -68px; min-height: 0; height: 520px; }
.review-cta, .review-widget-card { background: #fff; border:1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); text-align:center; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* hours table */
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--border-soft); }
.hours li:last-child { border-bottom: none; }
.hours .day { font-weight: 600; color: var(--ink); }
.hours .time { color: var(--ink-muted); }
.hours .closed .time, .hours .time.closed { color: var(--magenta); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: clamp(1.4rem,3vw,2rem); margin-top: 2.2rem; }
/* Four-up roster (homepage): keep cells near the native 160px headshot size so
   the source photos are never upscaled into blur. */
.team-grid--four { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 760px; margin-inline: auto; }
@media (max-width: 720px) { .team-grid--four { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 380px; } }
.team-card { text-align: center; }
.team-photo { width: 100%; max-width: 168px; aspect-ratio: 1; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--font-display); font-weight: 600; margin-top: .9rem; }
.team-role { color: var(--magenta); font-size: .9rem; font-weight: 600; }

/* Dentist bios as stacked rows (photo left, bio right) — easier to read than columns. */
.bio-list { display: flex; flex-direction: column; gap: clamp(1.2rem,2.5vw,1.8rem); margin-top: 2.2rem; max-width: 840px; margin-inline: auto; }
.bio-row { display: grid; grid-template-columns: 160px 1fr; gap: clamp(1.4rem,3vw,2.2rem); align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem,2.5vw,1.9rem); box-shadow: var(--shadow-sm); }
.bio-row__photo { width: 160px; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.bio-row__photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-row__body .team-name { margin-top: 0; font-size: 1.3rem; }
.bio-row__text { margin-top: .8rem; color: var(--ink-muted); }
@media (max-width: 620px) { .bio-row { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ---------- blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.post-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; display:flex; flex-direction:column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__body { padding: 1.4rem; display:flex; flex-direction:column; flex:1; }
.post-card__link { font-weight:600; color: var(--magenta); margin-top: auto; padding-top: .9rem; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .86rem; color: var(--ink-muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--teal-dark); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 1.6rem auto 0; text-align: left; }
/* Centered section variant (FAQ, associations) — head centers, lists stay readable-left */
.section--center .container { text-align: center; }
.section--center > .container > .eyebrow,
.section--center > .container > h2,
.section--center .sec-head { margin-inline: auto; }
.section--center > .container > h2 { max-width: none; }
.section--center .faq-list, .section--center .check-list { text-align: left; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; overflow: hidden; background: #fff; }
.faq > summary, .faq__q { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; font-family: var(--font-display); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; font-size: 1.4rem; color: var(--magenta); transition: transform .2s var(--ease); }
.faq[open] > summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); }

/* ---------- footer ---------- */
.site-footer { background: #0f3a48; color: #cfe2e7; padding: clamp(3rem,6vw,4.5rem) 0 2rem; margin-top: 2rem; }
.site-footer a { color: #cfe2e7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand--footer { display:inline-block; }
.brand-logo--footer { width: 72px; height: 72px; object-fit: contain; background:#fff; border-radius: 16px; padding: 8px; }
.footer-tagline { margin: 1rem 0 1.2rem; color: #9fc1c9; max-width: 30ch; }
.social { display: flex; gap: .6rem; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--grad); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-clinics li { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-clinics li:last-child { border-bottom: none; }
.footer-clinics .day { display: block; color: #fff; font-weight: 600; margin-bottom: .25rem; }
.footer-clinics .time { display: block; color: #9fc1c9; font-size: .86rem; line-height: 1.5; }
.footer-assoc { padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.assoc-h { color: #9fc1c9; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .8rem; }
.assoc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.assoc-list a { font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; font-size: .86rem; color: #9fc1c9; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- focus-visible (a11y) ---------- */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }

/* ---------- single-column form panel (contact / booking) ---------- */
.form-panel { max-width: 640px; margin-inline: auto; }
.form-panel > .eyebrow, .form-panel > h2, .form-panel > p { text-align: center; }
/* eyebrow is inline-block; without display:block its own text-align can't center
   it — its position would follow the panel's (left) text-align instead. */
.form-panel > .eyebrow { display: block; }
.form-panel > h2 { margin: .3rem auto .6rem; }
.form-panel > p { max-width: 56ch; margin: 0 auto 1.8rem; color: var(--ink-muted); }
.form-panel .ff-form { text-align: left; }

/* ---------- booking page (form + clinic aside) ---------- */
.book-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.6rem,4vw,3rem); align-items: start; }
.book-grid .form-panel { margin-inline: 0; max-width: none; }
.book-grid .form-panel > .eyebrow, .book-grid .form-panel > h2, .book-grid .form-panel > p { text-align: left; margin-left: 0; }
.book-aside { position: sticky; top: 96px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.book-aside .map-embed { border: 0; border-radius: 0; box-shadow: none; }
.book-aside .map-embed iframe { min-height: 0; height: 220px; }
.book-aside__info { padding: 1.5rem; }
.book-aside__info h3 { font-size: 1.15rem; margin-bottom: 1rem; }
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } .book-aside { position: static; } }

/* ---------- about: stats band + value blocks ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem,3vw,2.2rem); text-align: center; }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem,3.4vw,2.6rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__label { font-size: .9rem; color: var(--ink-muted); }
@media (max-width: 640px) { .stat-band { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
/* Three stacked rows (not columns) — heading on the left, paragraph on the right,
   so the section stays compact instead of stretching tall. */
.value-grid { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2.2rem; text-align: left; }
.value-block { display: grid; grid-template-columns: 240px 1fr; gap: clamp(1.2rem,3vw,2.4rem); align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem,2.5vw,1.9rem) clamp(1.4rem,2.5vw,2rem); box-shadow: var(--shadow-sm); }
.value-block h3 { font-size: 1.18rem; margin: 0; color: var(--teal); }
.value-block p { color: var(--ink-muted); margin: 0; }
.value-block p + p { margin-top: 1rem; }
@media (max-width: 680px) { .value-block { grid-template-columns: 1fr; gap: .6rem; } }

/* ---------- service page: two-column reading area + sticky sidebar ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: clamp(2rem, 4vw, 3.75rem); align-items: start; }
.svc-main { min-width: 0; }
.svc-main > * + * { margin-top: 1.4rem; }
.svc-main > h2 { margin-top: 2.6rem; line-height: 1.18; }
.svc-main > h2:first-child, .svc-main > .eyebrow:first-child { margin-top: 0; }
.svc-main .eyebrow { display: block; }
.svc-main .prose { max-width: none; }
.svc-main .prose + .prose { margin-top: 1.2rem; }

.svc-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1.2rem; }
.svc-aside__img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border-soft); }
.svc-aside__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.aside-card { border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; }
.aside-cta { background: var(--grad); border: none; color: #fff; box-shadow: 0 14px 30px rgba(214,0,108,.20); }
.aside-cta h3 { color: #fff; font-family: var(--font-display); font-size: 1.22rem; margin-bottom: .45rem; }
.aside-cta p { color: rgba(255,255,255,.92); font-size: .94rem; margin-bottom: 1.1rem; }
.aside-cta .btn { display: block; width: 100%; text-align: center; background: #fff; color: var(--magenta); box-shadow: none; }
.aside-cta .btn:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.aside-cta__call { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .85rem; color: #fff; font-weight: 700; text-decoration: none; }
.aside-cta__call:hover { text-decoration: underline; }
.aside-cta__note { display: block; text-align: center; margin-top: .9rem; font-size: .8rem; color: rgba(255,255,255,.85); }

.aside-nav h4 { font-family: var(--font-text); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: .5rem; }
.aside-nav ul { list-style: none; padding: 0; margin: 0; }
.aside-nav li + li { border-top: 1px solid var(--border-soft); }
.aside-nav a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .62rem 0; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.aside-nav a::after { content: "\2192"; color: var(--magenta); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.aside-nav a:hover { color: var(--magenta); }
.aside-nav a:hover::after { opacity: .7; transform: translateX(0); }
.aside-nav a[aria-current="page"] { color: var(--magenta); }
.aside-nav a[aria-current="page"]::after { content: "\2022"; opacity: 1; transform: none; }

@media (max-width: 980px) {
  .svc-layout { grid-template-columns: 1fr; gap: 2rem; }
  .svc-aside { position: static; }
  .svc-aside__img { display: none; }
}

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