/* =========================================================================
   Walk In The Park Family Dental — design system
   "Calm park" identity: logo leaf green (#46801b / #84c03c) + sage (#5e7344).
   Airy whitespace, soft cards, cascading services menu.
   ========================================================================= */

:root {
  /* Original brand greens: #8bc83f (bright) + #7d9263 (olive). Both fail text
     contrast, so: bright-green bg -> dark text; dark-green bg -> white text;
     small text/links use a darkened same-hue green. */
  --brand: #8bc83f;             /* original bright brand green — button/accent fills (dark text on it) */
  --brand-hover: #7ab32f;
  --forest: #244016;            /* dark green — topbar/footer/CTA bands (white text on it) */
  --forest-dark: #18300f;
  --primary: #577d2a;           /* darkened brand green — links/icons/focus (AA on white) */
  --primary-dark: #45631f;
  --accent: #6b7d3f;            /* olive-green — eyebrows/labels (AA on white) */
  --accent-light: #8bc83f;      /* = --brand */
  --accent-tint: #eef6dd;
  --soft: #7d9263;              /* original olive — decorative borders/large accents */
  --soft-tint: #eef6dd;
  --ink: #20271a;               /* near-black warm — headings/body */
  --ink-muted: #4a5436;         /* secondary text — darkened so it stays readable on tints */
  --page-bg: #ffffff;
  --section-alt: #f3f8ec;
  --card-bg: #ffffff;
  --border: #e4ecdd;
  --warning: #e0533f;
  --success: #1f9c6a;
  --topbar-bg: #244016;
  --topbar-ink: #ffffff;

  --shadow-sm: 0 1px 3px rgba(21, 37, 43, .06), 0 1px 2px rgba(21, 37, 43, .04);
  --shadow: 0 6px 24px rgba(21, 37, 43, .08);
  --shadow-lg: 0 18px 50px rgba(21, 37, 43, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

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

  --container: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
}

/* ---------- reset ---------- */
*, *::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);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--ink); font-weight: 600; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin: .3rem 0; }
strong { font-weight: 600; }

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

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
:where(a, button, input, select, textarea, summary):focus:not(:focus-visible) { outline: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none; line-height: 1; min-height: 44px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary, .btn--primary {
  background: var(--accent-light); color: var(--ink); box-shadow: 0 8px 20px rgba(132,192,60,.32);
}
.btn-primary:hover, .btn--primary:hover { background: #7ab32f; color: var(--ink); }
.btn--ghost { background: #fff; color: var(--primary-dark); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(132,192,60,.28); }
.btn--accent:hover { background: #6aa627; color: #fff; }

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

/* ---------- header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
/* Frosted blur lives on a pseudo-element, NOT the header itself: backdrop-filter
   (like transform/filter) on .site-header makes it the containing block for the
   position:fixed mobile nav drawer, trapping the drawer inside the header. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav > a, .services-toggle {
  font-family: var(--font-head); font-weight: 500; color: var(--ink);
  padding: .55rem .75rem; border-radius: 8px; font-size: 1rem; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem; transition: color .15s, background .15s;
}
.main-nav > a:hover, .services-toggle:hover { color: var(--primary-dark); background: var(--soft-tint); text-decoration: none; }
.main-nav > a.active, .services-toggle.active { color: var(--primary-dark); }
.main-nav > a.active::after { content: ""; display: block; }
.chev { font-size: .7em; opacity: .7; }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--primary-dark) !important; margin-left: .4rem; }
.btn-nav { padding: .6rem 1.2rem; }

/* dropdown (cascading) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 290px; 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;
}
/* hover bridge — spans the visual gap so the cursor never leaves :hover (audit sub-check 21) */
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 16px; }
.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; padding: .6rem .85rem; border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-head); font-weight: 500; font-size: .98rem; }
.dropdown-item:hover { background: var(--soft-tint); color: var(--primary-dark); text-decoration: none; }
.has-submenu { position: relative; }
.submenu {
  position: absolute; top: -.6rem; left: calc(100% - 4px);
  min-width: 250px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .6rem; opacity: 0; visibility: hidden; transform: translateX(6px); transition: opacity .16s ease, transform .16s ease; z-index: 130;
}
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.submenu a { display: block; padding: .5rem .8rem; border-radius: var(--radius-sm); color: var(--ink); font-size: .95rem; }
.submenu a:hover { background: var(--soft-tint); color: var(--primary-dark); text-decoration: none; }
.submenu-overview { font-weight: 600; color: var(--primary-dark) !important; border-bottom: 1px solid var(--border); margin-bottom: .3rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }

/* mobile menu */
.menu-toggle { display: none; position: relative; z-index: 101; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; min-height: 44px; min-width: 44px; justify-content: center; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: #fff; flex-direction: column; align-items: stretch;
    padding: 5.5rem 1.4rem 2rem; gap: .2rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 95;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav > a, .services-toggle { width: 100%; justify-content: space-between; padding: .85rem .6rem; border-radius: 10px; }
  .has-dropdown { width: 100%; }
  /* Collapsed by default on touch: tap "Services" to reveal the hubs, tap a hub to
     reveal its sub-services (two-level accordion). JS toggles .open. */
  .dropdown, .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none;
    min-width: 0; padding: 0 0 0 .8rem; border-left: 2px solid var(--border); margin: .2rem 0 .4rem;
  }
  .has-dropdown > .dropdown { display: none; }
  .has-dropdown.open > .dropdown { display: block; }
  .has-submenu > .submenu { display: none; }
  .has-submenu.open > .submenu { display: block; }
  /* Neutralize the desktop hover/focus positioning (translateX(-50%)) that would
     otherwise leak into the touch drawer and shift the open panel off to the left. */
  .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown,
  .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { transform: none; }
  .services-toggle .chev, .dropdown-item--parent .chev { transition: transform .2s ease; }
  .services-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .has-submenu.open > .dropdown-item--parent .chev { transform: rotate(90deg); }
  .dropdown::before { display: none; }
  .nav-phone { justify-content: flex-start; margin: .4rem 0 0; }
  .btn-nav { margin-top: .6rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--alt { background: var(--section-alt); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .7rem; }
.sec-head { max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-muted); }

/* two-column content blocks */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.two-col--reverse > div:first-child { order: 2; }
.two-col-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.two-col-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col--reverse > div:first-child { order: 0; }
  .two-col-media { aspect-ratio: 16 / 10; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); background: linear-gradient(165deg, #f4f9f3 0%, #eef6e2 100%); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5; pointer-events: none; }
.hero__blob--1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(132,192,60,.22), transparent 70%); top: -120px; right: -80px; }
.hero__blob--2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(70,128,27,.18), transparent 70%); bottom: -140px; left: -100px; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
/* When the hero has no image, don't reserve an empty second column */
.hero--no-visual .hero__grid { grid-template-columns: 1fr; max-width: 760px; }
.hero__content { max-width: 620px; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--border); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 1.2rem; box-shadow: var(--shadow-sm); }
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(132,192,60,.18); }
.hero__sub { font-size: 1.18rem; color: var(--ink-muted); margin: 1rem 0 1.8rem; }
.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(--primary-dark); }
.hero__visual { position: relative; }
.hero__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__bannerwrap { position: relative; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.hero__banner { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 7; }
.hero__banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
@media (max-width: 600px) { .hero__banner { aspect-ratio: 4 / 3; } }
.hero__chip { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .8rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.hero__chip--reviews { bottom: 1.4rem; left: -1.4rem; }
.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.3rem; color: var(--ink); line-height: 1; }
.hero__chip small { color: var(--ink-muted); font-size: .75rem; }
.hero__stars { color: #f5a623; display: inline-flex; }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin-inline: auto; }
  .hero__chip--reviews { left: 0; }
}

/* ---------- tiles strip ---------- */
.tiles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tile { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* "First bucket" — white card with a bright-green top accent + green icon (readable). */
.tile--accent { background: #fff; color: var(--ink); border-color: var(--border); border-top: 4px solid var(--brand); }
.tile--accent h3 { color: var(--ink); }
.tile--accent p { color: var(--ink-muted); }
.tile--accent .tile__link { color: var(--primary-dark); }
.tile__icon { color: var(--primary); margin-bottom: .8rem; }
.tile--accent .tile__icon { color: var(--primary); }
.tile h3 { margin-bottom: .4rem; }
.tile p { color: var(--ink-muted); font-size: .96rem; margin-bottom: .8rem; }
.tile__link { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); display: inline-flex; gap: .3rem; }
@media (max-width: 820px) { .tiles__grid { grid-template-columns: 1fr; } }

/* ---------- service card grids ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.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, box-shadow .2s, border-color .2s; display: block; color: var(--ink); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); text-decoration: none; }
.svc-icon { display: inline-flex; padding: .8rem; border-radius: 14px; background: var(--accent-tint); color: var(--accent); margin-bottom: 1rem; }
.svc-card h3 { margin-bottom: .4rem; }
.svc-card p { color: var(--ink-muted); font-size: .96rem; margin-bottom: 1rem; }
.svc-cta { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); display: inline-flex; gap: .35rem; }
.subsvc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.subsvc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; color: var(--ink); }
.subsvc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); text-decoration: none; }
.subsvc-card h3 { margin-bottom: .4rem; }
.subsvc-card p { color: var(--ink-muted); font-size: .95rem; margin-bottom: .9rem; }
@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .8rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-head); font-weight: 600; 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); transition: transform .2s; line-height: 1; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); }

/* ---------- CTA band ---------- */
/* CTA "bucket" — original olive #7d9263 rounded box with dark, readable text. */
.cta-band { background: var(--soft); border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.14); top: -120px; right: -60px; }
.cta-band-inner { position: relative; max-width: 680px; margin-inline: auto; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: rgba(32,39,26,.88); font-size: 1.1rem; margin-bottom: 1.6rem; }
.cta-band .btn-primary { background: var(--ink); color: #fff; }
.cta-band .btn-primary:hover { background: #000; color: #fff; }

/* ---------- native form ---------- */
.ff-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.ff-form__head h3 { margin-bottom: .3rem; }
.ff-form__head p { color: var(--ink-muted); font-size: .96rem; }
.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; }
.ff-form input, .ff-form select, .ff-form textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fbfdfd; transition: border-color .15s, box-shadow .15s;
}
.ff-form input:focus, .ff-form select:focus, .ff-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(70,128,27,.15); outline: none; }
.ff-actions { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.ff-fineprint { font-size: .82rem; color: var(--ink-muted); margin: 0; }
@media (max-width: 540px) { .ff-row--split { grid-template-columns: 1fr; } }

/* ---------- map embed ---------- */
.map-embed { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- associations strip (only if used) ---------- */
.assoc-strip__grid { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center; }
.assoc-card { display: inline-flex; align-items: center; justify-content: center; padding: 1rem; }
.assoc-card__logo img { object-fit: contain; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfe0e3; padding: clamp(2.8rem, 6vw, 4rem) 0 1.5rem; margin-top: 2rem; }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1rem; }
.site-footer a { color: #cfe0e3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-logo--footer { height: 54px; background: none; padding: 0; filter: brightness(0) invert(1); }
.footer-tagline { color: #9fb6bb; font-size: .95rem; margin: 1rem 0; }
.social { display: flex; gap: .8rem; }
.social a { display: inline-flex; padding: .5rem; background: rgba(255,255,255,.08); border-radius: 8px; }
.social a:hover { background: var(--primary); }
.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; align-items: flex-start; margin: .7rem 0; }
.footer-contact svg { margin-top: 4px; flex-shrink: 0; opacity: .8; }
.hours { list-style: none; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin: .3rem 0; }
.hours .day { color: var(--ink-muted); }
.footer-hours-h { margin-top: 1.4rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .87rem; color: #9fb6bb; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- testimonials / team / why-choose (homepage + about) ---------- */
.tcard, .why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.t-grid, .team-grid { display: grid; gap: 1.4rem; }
.t-grid { grid-template-columns: repeat(3, 1fr); }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tcard__stars { color: #f5a623; margin-bottom: .6rem; display: inline-flex; }
.tcard p { font-size: .98rem; }
.tcard__name { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.member { text-align: center; }
.member__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: .9rem; box-shadow: var(--shadow-sm); background: var(--soft-tint); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member__monogram { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--primary-dark); background: linear-gradient(150deg, var(--accent-tint), var(--soft-tint)); }
.member h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.member__role { color: var(--ink-muted); font-size: .9rem; }
.team-grid--bios { display: flex; flex-direction: column; gap: 1.6rem; max-width: 860px; margin-inline: auto; }
.team-grid--bios .member { display: grid; grid-template-columns: 190px 1fr; gap: 1.6rem; align-items: start; text-align: left; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.5rem); box-shadow: var(--shadow-sm); }
.team-grid--bios .member__photo { aspect-ratio: 4 / 5; margin-bottom: 0; }
.team-grid--bios .member h3 { margin-top: 0; }
.member__bio { margin-top: .6rem; }
.member__bio p { font-size: .92rem; color: var(--ink-muted); line-height: 1.65; margin: 0 0 .7rem; }
.member__bio p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .team-grid--bios .member { grid-template-columns: 1fr; }
  .team-grid--bios .member__photo { max-width: 200px; }
}
@media (max-width: 820px) { .t-grid { grid-template-columns: 1fr; } }

/* ---------- blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.4rem; }
.post-card--text .post-card__body { padding: 1.6rem; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-card p { color: var(--ink-muted); font-size: .95rem; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: .88rem; color: var(--ink-muted); padding: 1rem 0 0; }
.crumb a { color: var(--ink-muted); }
.crumb a:hover { color: var(--primary-dark); }

/* ---------- prose helper for content pages ---------- */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-left: 1.4rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.prose-fig { margin: 1.8rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prose-fig img { width: 100%; max-height: 460px; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; }
.prose-fig--portrait { aspect-ratio: 3 / 2; }
.prose-fig--portrait img { height: 100%; max-height: none; object-position: right center; }
.prose-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.prose-cols figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.prose-cols img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; }
.contact-link { font-weight: 600; white-space: nowrap; }

/* ---------- digestible content components (pattern-aware renderer) ---------- */
/* Numbered process timeline */
.timeline { list-style: none; padding: 0; margin: 1.8rem 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline__step { position: relative; display: flex; gap: 1.1rem; padding: 0 0 1.6rem 0; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__num { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--ink); font-weight: 800; font-size: .95rem; display: grid; place-items: center; z-index: 1; box-shadow: 0 0 0 4px var(--page-bg); }
.timeline__body { padding-top: 3px; }
.timeline__body h3 { margin: 0 0 .35rem; font-size: 1.18rem; }
.timeline__body p { margin: 0; color: var(--ink-muted); }

/* Feature-card grid ("why choose us" clusters) */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 1.8rem 0; }
.feature-card { background: var(--card-bg); border: 1px solid var(--border); border-top: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 1.3rem 1.25rem; box-shadow: var(--shadow-sm); }
.feature-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--ink-muted); font-size: .96rem; }

/* Type cards (a catalogue of options/varieties — not benefits, so no checkmarks) */
.type-cards .type-card { border-top-color: var(--soft); }
.type-card h3 { color: var(--primary); }

/* Bolded lead-in label inside checklist items */
.checklist li strong { color: var(--ink); }

/* Checklist card (benefits / aftercare lists) */
.checklist-card { background: var(--section-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin: 1.6rem 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; line-height: 1.55; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--brand); color: var(--ink); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }

/* Accordion (Q&A sections — used on FAQ-style pages at rollout) */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 1.6rem 0; overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; font-weight: 700; flex: 0 0 auto; }
.accordion details[open] summary::after { content: "–"; }
.accordion details > *:not(summary) { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--ink-muted); }
.accordion summary:hover { background: var(--section-alt); }
.accordion summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.accordion__body p { margin: 0 0 .8rem; }
.accordion__body p:last-child { margin-bottom: 0; }

/* Two-column comparison cards (e.g. Invisalign vs Braces) */
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0; }
@media (max-width: 640px) { .compare-cols { grid-template-columns: 1fr; } }
.compare-cols .feature-card { border-top-color: var(--soft); }

/* ---------- Web Interface Guidelines fixes (Step 16) ---------- */
:root { color-scheme: light; }                                      /* L1: stop OS dark-mode recolouring form controls */

/* M3: visually-hidden text equivalents (e.g. star-rating labels) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* M6: intentional touch behaviour — kill 300ms tap delay + default tap highlight */
a, button, .btn, .menu-toggle, summary, .tile, .subsvc-card { -webkit-tap-highlight-color: transparent; }
a, button, .btn, .menu-toggle, summary { touch-action: manipulation; }

/* L3: avoid lonely last words in headings; nicer body wrapping */
h1, h2, h3, h4 { text-wrap: balance; }
p, .lead { text-wrap: pretty; }

/* L2: align digit columns (footer hours, rating numerals) */
.hours, .hero__chip .num { font-variant-numeric: tabular-nums; }

/* M4: tile titles are now <h2> for heading order — keep the former <h3> size */
.tile__title { font-size: clamp(1.18rem, 2vw, 1.4rem); margin-bottom: .4rem; }
.tile--accent .tile__title { color: var(--ink); }

/* L4: keep anchored sections/headings clear of the sticky header on jump */
.section[id], h2[id], h3[id] { scroll-margin-top: 96px; }

/* M2: desktop — keyboard/click opens the Services dropdown via .open (mirrors :hover) */
@media (min-width: 981px) {
  .has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}

/* H2 + M6: contain scroll inside the mobile drawer (no scroll-chaining to the page) */
@media (max-width: 980px) {
  .main-nav { overscroll-behavior: contain; }
}

/* L6: no positional movement for hover lifts under reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .tile:hover, .subsvc-card:hover, .svc-card:hover { transform: none; }
}
