/* Redmond Dental Smiles — main stylesheet
   Palette
     --brand      #9ED8DB  logo tooth teal (decorative / on dark only)
     --tint       #E5F0F1  light section background
     --teal       #276F73  accent text + buttons on white/tint (5.8:1 on white, 5.0:1 on tint)
     --teal-dark  #1F5F62  hover
     --deep       #46332A  walnut: utility strip, testimonials, deep bands (white 11.9:1, --on-dark 10.1:1, --brand 7.5:1)
     --footer     #3E2C23  espresso: footer (white 13.2:1, --on-dark-2 9.9:1, --brand 8.4:1)
     --drawer     #33251D  darkest brown: mobile menu, text on light pills (white 14.8:1; on --brand 9.3:1)
     --on-dark    #F3EBE3  warm off-white body text on brown
*/

:root {
  --brand: #9ed8db;
  --brand-soft: #c9e6e8;
  --tint: #e5f0f1;
  --tint-2: #f3f8f8;
  --teal: #276f73;
  --teal-dark: #1f5f62;
  --deep: #46332a;
  --footer: #3e2c23;
  --drawer: #33251d;
  --on-dark: #f3ebe3;
  --on-dark-2: #e9ddd2;
  --on-dark-3: #cdbcae;
  --dds-ink: #6e5a4c;
  --dds-rule: rgba(110, 90, 76, 0.35);
  --ink: #1b1b1b;
  --body: #4a4a4a;
  --muted: #5f6b6b;
  --line: #d5e3e4;
  --error: #b3261e;
  --white: #fff;

  --font-head: 'Josefin Slab', Georgia, 'Times New Roman', serif;
  --font-body: 'Cantarell', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --track: 0.06em;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 8vw, 112px);

  --utility-h: 0px;
  --bar-h: 100px;
  --bar-h-scrolled: 76px;
  --header-h: calc(var(--utility-h) + var(--bar-h));
  /* Desktop nav type; breadcrumbs follow it. Grows with the viewport from 1200px (see the media queries). */
  --nav-fs: 1rem;
  --nav-gap: 16px;
  --nav-sub-fs: 1rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 0.25s var(--ease);
  --shadow-menu: 0 3px 6px 3px rgba(0, 0, 0, 0.18);
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--teal);
}

/* Desktop header (split nav, centred logo) from 72em = 1152px. Below that, or whenever main.js finds the
   split nav doesn't fit (fallback font, large default font size, wide scrollbar), html and the header
   get .nav-tight and keep the mobile header (hamburger + drawer). Header geometry is therefore scoped
   to :root:not(.nav-tight) / .site-header:not(.nav-tight). */
@media (min-width: 72em) {
  :root:not(.nav-tight) {
    --utility-h: 40px;
    --bar-h: 172px;
    --bar-h-scrolled: 96px;
    --nav-shift: -17px;
    --nav-shift-scrolled: -12px;
    --nav-shrink: 1;
  }
}
@media (min-width: 75em) {
  :root {
    /* 17px at 1200 -> 21px at 1440; gap = 1em: the split nav fits beside the 1.5x lockup.
       cqw = the header's width (a size container), so a classic scrollbar is excluded; outside the
       header (breadcrumbs) cqw falls back to the viewport. */
    --nav-fs: clamp(17px, calc(17px + (100cqw - 1200px) / 60), 21px);
    --nav-gap: var(--nav-fs);
    --nav-sub-fs: 1.125rem;
  }
  :root:not(.nav-tight) {
    --utility-h: 46px;
    --bar-h: 200px;
    --bar-h-scrolled: 104px;
    --nav-shift: -22px;
    --nav-shift-scrolled: -13px;
    --nav-shrink: 1;
  }
}
@media (min-width: 90em) {
  :root {
    /* 22px at 1440 -> 24px at 1920 */
    --nav-fs: clamp(22px, calc(22px + (100cqw - 1440px) / 240), 24px);
    --nav-gap: calc(var(--nav-fs) * 1.25);
    --nav-sub-fs: 1.1875rem;
  }
  :root:not(.nav-tight) {
    --utility-h: 50px;
    --nav-shrink: 0.82;
  }
}
@supports not (width: 1cqw) {
  @media (min-width: 75em) {
    :root {
      --nav-fs: clamp(17px, calc(17px + (100vw - 1200px) / 60), 21px);
    }
  }
  @media (min-width: 90em) {
    :root {
      --nav-fs: clamp(22px, calc(22px + (100vw - 1440px) / 240), 24px);
    }
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h-scrolled) + 16px);
}
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked {
  overflow: hidden;
}
img,
picture,
svg,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
}
h3 {
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem);
}
h4 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}
a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--t);
}
a:hover {
  color: var(--teal-dark);
}
strong {
  color: var(--ink);
}
ul {
  padding: 0;
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
address {
  font-style: normal;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus,
section:focus,
.appt-success:focus {
  outline: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
}
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: calc(780px + var(--gutter) * 2);
}
.section {
  padding-block: var(--section-y);
}
.section--tint,
.band--tint {
  background: var(--tint);
}
.band--deep {
  background: var(--deep);
  color: var(--on-dark);
}
.band--deep h2,
.band--deep h3 {
  color: #fff;
}
.band {
  padding-block: clamp(48px, 6vw, 80px);
}
.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 64px);
}
.section-head h2 {
  margin-bottom: 0.4em;
}
.section-head p:not(.eyebrow) {
  margin-top: 1.2em;
}
.section-head--light .eyebrow {
  color: var(--brand);
}
.section-title {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9em;
}
.rule {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--teal);
  margin: 0.2em auto 0;
  opacity: 0.7;
}
.rule--light {
  background: rgba(255, 255, 255, 0.85);
  opacity: 1;
}
.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  line-height: 1.6;
  color: var(--ink);
}
.lede-center {
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 1.4em;
}

/* Prose: readable measure, left-aligned long text */
.prose {
  max-width: 70ch;
  margin-inline: auto;
}
.prose h3 {
  margin-top: 1.8em;
}
.prose--center-head h2 {
  text-align: center;
  margin-bottom: 1em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 40px;
  border-radius: 48px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: var(--track);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.btn--primary {
  background: var(--teal);
  color: #fff;
}
.btn--primary:hover {
  background: var(--teal-dark);
  color: #fff;
}
.btn--outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}
.btn--outline:hover {
  background: var(--teal);
  color: #fff;
}
.btn--inverse {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--inverse:hover {
  background: #fff;
  color: var(--ink);
}
.btn--light {
  background: var(--brand);
  color: var(--drawer);
}
.btn--light:hover {
  background: #fff;
  color: var(--drawer);
}
.btn--small {
  min-height: 30px;
  padding: 3px 18px;
  font-size: 0.8125rem;
  border-width: 1px;
}
.btn--large {
  min-height: 64px;
  padding-inline: 48px;
  font-size: 1.0625rem;
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.btn-row--center {
  justify-content: center;
}
.text-link {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.text-link span {
  display: inline-block;
  transition: transform var(--t);
}
.text-link:hover span {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.header-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* cqw units inside the header (--nav-fs) use its width, which excludes a classic scrollbar. */
  container-type: inline-size;
  background: #fff;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  transform: translateY(calc(var(--utility-h) * -1));
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Off-screen copy of the bar that main.js lays out in the split-nav state to decide whether it fits. */
.nav-probe {
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  transition: none;
}

/* Utility strip (desktop only) */
.utility {
  display: none;
  height: var(--utility-h);
  background: var(--deep);
  color: var(--on-dark);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  /* Last resort: never let the strip widen the page (the hours are hidden before this matters). */
  overflow-x: clip;
}
/* The items are centred, so the strip uses the full width between the gutters (no container cap):
   with the long-form hours they need ~1010px at 72em, ~1130px at 75em and ~1245px at 90em. */
.utility__inner {
  height: 100%;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.utility__inner > * {
  flex-shrink: 0;
}
.utility__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
/* The office hours are the first thing to go when the strip runs out of room: at 1200-1247px (the 75em
   type step leaves too little space there), and whenever main.js measures that they don't fit
   (.utility-no-hours: fallback font, larger default font size, wide scrollbar). */
@media (min-width: 75em) and (max-width: 77.99em) {
  .utility__hours {
    display: none;
  }
}
.utility-no-hours .utility__hours {
  display: none;
}
a.utility__item:hover {
  color: #fff;
  text-decoration: underline;
}
.utility__item .icon {
  color: var(--brand);
}
.utility .btn--small {
  min-height: 28px;
  margin-left: 4px;
}
@media (min-width: 75em) {
  .utility {
    font-size: 1rem;
  }
  .utility__inner {
    gap: 24px;
  }
  .utility__item .icon {
    width: 18px;
    height: 18px;
  }
  .utility .btn--small {
    min-height: 32px;
    font-size: 0.95rem;
    padding-inline: 1.3em;
  }
}
@media (min-width: 90em) {
  .utility {
    font-size: 1.09375rem;
  }
  .utility__inner {
    gap: 32px;
  }
  .utility__item .icon {
    width: 20px;
    height: 20px;
  }
  .utility .btn--small {
    min-height: 35px;
    font-size: 1.016rem;
  }
}
.utility .btn--small:focus-visible {
  box-shadow: 0 0 0 2px var(--deep), 0 0 0 4px #fff;
}

/* Main bar */
.bar {
  height: var(--bar-h);
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  /* One row exactly as tall as the bar: the shrinking lockup stays centred on it while scaled. */
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  padding-inline: 12px;
  transition: height 0.35s var(--ease);
}
.is-scrolled .bar {
  height: var(--bar-h-scrolled);
}
.nav {
  display: none;
}
.bar__menu,
.bar__call {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  padding: 0;
}
.bar__menu .icon {
  stroke-width: 1.25;
}
.bar__call {
  color: var(--teal);
}
.bar__menu:hover,
.bar__call:hover {
  background: var(--tint);
}

/* Brand / wordmark: icon + "Redmond / Dental Smiles", with the dentist line spanning the full lockup
   width underneath. Each --dds-size / --dds-track pair is tuned (Josefin Slab 600) so that line is as
   wide as the icon + wordmark row; the trailing letter-space is cancelled with a negative margin. */
.brand {
  --dds-size: 1rem;
  --dds-track: 0.04em;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: center;
  text-decoration: none;
  color: var(--ink);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.brand:hover {
  color: var(--ink);
}
.brand__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__icon {
  width: 54px;
  height: 54px;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1;
}
.brand__name {
  font-size: 1.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand__sub {
  font-size: 0.98rem;
  letter-spacing: 0.24em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 5px;
}
.brand__dds {
  position: relative;
  margin-top: 4px;
  padding-top: 5px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--dds-size);
  letter-spacing: var(--dds-track);
  margin-right: calc(var(--dds-track) * -1);
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  color: var(--dds-ink);
}
.brand__dds::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6%;
  right: calc(6% + var(--dds-track));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dds-rule) 18%, var(--dds-rule) 82%, transparent);
}
.bar__brand {
  --dds-size: 1.099rem;
}
.is-scrolled .bar__brand {
  transform: scale(0.8);
}

@media (min-width: 72em) {
  .site-header:not(.nav-tight) .utility {
    display: block;
  }
  .site-header:not(.nav-tight) .bar {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: var(--gutter);
    gap: 24px;
  }
  .site-header:not(.nav-tight) .bar__menu,
  .site-header:not(.nav-tight) .bar__call {
    display: none;
  }
  .site-header:not(.nav-tight) .nav {
    display: block;
  }
  .site-header:not(.nav-tight) .nav--right .nav__list {
    justify-content: flex-end;
  }
  /* 1152-1199px: the split nav leaves room for a ~1.1x lockup; the full 1.5x starts at 1200px. */
  .site-header:not(.nav-tight) .bar {
    gap: 12px;
  }

  .site-header:not(.nav-tight) .bar__brand {
    --dds-size: 1.22rem;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__row {
    gap: 15px;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__icon {
    width: 72px;
    height: 72px;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__name {
    font-size: 2.25rem;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__sub {
    font-size: 1rem;
    margin-top: 8px;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__dds {
    margin-top: 8px;
    padding-top: 7px;
  }
  .site-header.is-scrolled:not(.nav-tight) .bar__brand {
    transform: scale(0.72);
  }
  /* Line the nav up with the centre of the icon + wordmark row rather than the whole lockup (which
     includes the dentist line: shift = half its height, times the logo scale when sticky). The
     sticky state scales the nav down with the logo. */
  .site-header:not(.nav-tight) .nav {
    transition: transform 0.35s var(--ease);
    transform: translateY(var(--nav-shift));
  }
  .site-header:not(.nav-tight) .nav--left {
    transform-origin: left center;
  }
  .site-header:not(.nav-tight) .nav--right {
    transform-origin: right center;
  }
  .site-header.is-scrolled:not(.nav-tight) .nav {
    transform: translateY(var(--nav-shift-scrolled)) scale(var(--nav-shrink));
  }
}
@media (min-width: 75em) {
  .site-header:not(.nav-tight) .bar {
    gap: 24px;
  }

  .site-header:not(.nav-tight) .bar__brand {
    --dds-size: 1.65rem;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__row {
    gap: 21px;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__icon {
    width: 96px;
    height: 96px;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__name {
    font-size: 3rem;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__sub {
    font-size: 1.35rem;
    margin-top: 10px;
  }
  .site-header:not(.nav-tight) .bar__brand .brand__dds {
    margin-top: 10px;
    padding-top: 8px;
  }
  .site-header.is-scrolled:not(.nav-tight) .bar__brand {
    transform: scale(0.6);
  }
}

/* Desktop nav */
.nav {
  font-size: var(--nav-fs);
}
.nav__list {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--nav-gap);
}
.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.625em 0;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: var(--track);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25em;
  height: max(1px, 0.07em);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav__link.is-active::after {
  transform: scaleX(1);
  background: var(--ink);
}
.nav__link:hover,
.has-sub.is-open > .nav__link {
  color: var(--teal);
}
.nav__link:hover::after {
  transform: scaleX(1);
}
.nav__toggle {
  display: grid;
  place-items: center;
  width: 1.625em;
  height: 2em;
  margin-left: 0.125em;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
}
.nav__toggle .icon--chevron {
  width: 0.875em;
  height: 0.875em;
  stroke-width: 1.5;
  transition: transform var(--t);
}
.has-sub.is-open .nav__toggle,
.nav__toggle:hover {
  color: var(--teal);
}
.has-sub.is-open .nav__toggle .icon--chevron {
  transform: rotate(180deg);
}
.nav__sub {
  position: absolute;
  top: calc(100% + 6px);
  left: -24px;
  font-size: var(--nav-sub-fs);
  min-width: 15.625em;
  padding: 1.125em 1.5em;
  list-style: none;
  background: #fff;
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  z-index: 10;
}
.nav--right .has-sub:last-child .nav__sub {
  left: auto;
  right: -24px;
}
/* invisible bridge so the pointer can travel from the label to the panel */
.nav__sub::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.has-sub.is-open > .nav__sub,
.no-js .has-sub:hover > .nav__sub,
.no-js .has-sub:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.nav__sub a {
  display: block;
  padding: 0.44em 0;
  font-size: 1em;
  letter-spacing: var(--track);
  color: var(--body);
  text-decoration: none;
  white-space: nowrap;
}
.nav__sub a:hover,
.nav__sub a.is-active {
  color: var(--teal);
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 14, 0.5);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.drawer__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--drawer);
  color: #fff;
  padding: 20px 28px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.drawer.is-open::before {
  opacity: 1;
}
.drawer.is-open .drawer__panel {
  transform: none;
}
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.drawer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  text-decoration: none;
}
.drawer__brand:hover {
  color: #fff;
}
.drawer__close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-right: -10px;
  background: none;
  border: 0;
  color: #fff;
  border-radius: 50%;
}
.drawer__close .icon {
  stroke-width: 1.25;
}
.drawer__list {
  list-style: none;
}
.drawer__list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__link {
  display: block;
  flex: 1;
  padding: 14px 0;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}
.drawer__link:hover,
.drawer__link.is-active {
  color: var(--brand);
}
.drawer__toggle {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-right: -12px;
  background: none;
  border: 0;
  color: #fff;
}
.drawer__toggle .icon {
  transition: transform var(--t);
}
.drawer__toggle[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}
.drawer__sub {
  list-style: none;
  padding: 0 0 12px 16px;
}
.drawer__sub a {
  display: block;
  padding: 10px 0;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}
.drawer__sub a:hover,
.drawer__sub a.is-active {
  color: var(--brand);
}
.drawer__foot {
  margin-top: auto;
  padding-top: 32px;
  display: grid;
  gap: 16px;
}
.drawer__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  color: #fff;
  font-size: 1.125rem;
  letter-spacing: var(--track);
  text-decoration: none;
}
.drawer__phone .icon {
  color: var(--brand);
}
.drawer__hours {
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.drawer :focus-visible {
  outline-color: var(--brand);
}
@media (min-width: 72em) {
  :root:not(.nav-tight) .drawer {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(480px, calc(100svh - var(--header-h) - 24px), 780px);
  min-height: 460px;
  overflow: hidden;
  background: #2e231d;
  color: #fff;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero__slides {
  list-style: none;
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__slide picture,
.hero__img {
  width: 100%;
  height: 100%;
}
.hero__img {
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 20, 14, 0.46) 0%, rgba(30, 20, 14, 0.6) 55%, rgba(30, 20, 14, 0.66) 100%);
}
.hero__content {
  width: 100%;
  max-width: 900px;
  padding: 0 var(--gutter) 40px;
  text-align: center;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem);
  line-height: 1.12;
  margin-bottom: 0.35em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero .rule {
  width: min(560px, 80%);
  margin: 0 auto 24px;
}
.hero__sub {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.95);
}
.hero .btn--primary:focus-visible,
.hero .btn--inverse:focus-visible {
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px #fff;
}
.hero__controls {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.hero__dots {
  display: flex;
  gap: 2px;
}
.hero__dot {
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  position: relative;
}
.hero__dot::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  transition: background-color var(--t), transform var(--t);
}
.hero__dot[aria-current='true']::before {
  background: #fff;
  transform: scale(1.15);
}
.hero__dot:focus-visible,
.hero__pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
.hero__pause {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: #fff;
  padding: 0;
}
.hero__pause .icon {
  grid-area: 1 / 1;
}
.hero__pause .icon:last-child,
.hero__pause.is-paused .icon:first-child {
  display: none;
}
.hero__pause.is-paused .icon:last-child {
  display: block;
}
@media (max-width: 47.99em) {
  .hero .btn-row .btn {
    width: 100%;
  }
}

/* ---------- Intro (dentist) ---------- */
.intro__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.intro__media {
  aspect-ratio: 1;
  overflow: hidden;
}
.intro__img {
  object-position: 82% 40%;
  /* Client request: the portrait reads slightly dark; lift it a touch. */
  filter: brightness(1.1);
}
.intro__text {
  text-align: center;
}
.intro__text p {
  font-size: 1.125rem;
}
.intro__btn {
  margin-top: 28px;
  width: 100%;
}
@media (min-width: 48em) {
  .intro__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 64px);
  }
  .intro__btn {
    width: auto;
  }
}

/* ---------- Approach / values ---------- */
.approach .section-head h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.375rem);
  line-height: 1.3;
}
.values {
  list-style: none;
  display: grid;
  gap: clamp(36px, 4vw, 56px) clamp(32px, 4vw, 56px);
}
.value {
  text-align: center;
  max-width: 380px;
  margin-inline: auto;
}
.value__icon {
  display: inline-grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teal);
}
.value__icon .icon {
  stroke-width: 1.25;
}
.value__title {
  font-size: 1.375rem;
  margin-bottom: 0.5em;
}
.value p {
  margin-bottom: 0.8em;
}
@media (min-width: 40em) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Feature (wellness plan) ---------- */
.feature__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.feature__media img {
  width: 100%;
}
@media (min-width: 48em) {
  .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 72px);
  }
}
@media (max-width: 47.99em) {
  .feature__text {
    text-align: center;
  }
  .feature__text .btn-row {
    justify-content: center;
  }
}

/* ---------- Appointment section + form ---------- */
.appointment {
  background: var(--tint);
}
.appointment__grid {
  display: grid;
  gap: 40px;
}
.appointment__intro h2 {
  margin-bottom: 0.5em;
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
}
.contact-list .icon {
  color: var(--teal);
  margin-top: 3px;
}
.contact-list a {
  font-weight: 700;
}
@media (min-width: 64em) {
  .appointment__grid {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }
  .appointment__intro {
    position: sticky;
    top: calc(var(--bar-h-scrolled) + 32px);
  }
}
.appointment__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 44px);
}
.appt-form__note {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.req {
  color: var(--error);
  font-weight: 700;
}
.appt-form__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 40em) {
  .appt-form__grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--wide,
  .appt-form__grid > .field:first-child {
    grid-column: 1 / -1;
  }
}
.field label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.field__help {
  font-size: 0.875rem;
  color: var(--muted);
  margin: -2px 0 8px;
  line-height: 1.45;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #9fb3b4;
  border-radius: 8px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #7d8a8a;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--teal);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(39, 111, 115, 0.25);
}
.field [aria-invalid='true'] {
  border-color: var(--error);
  background: #fffafa;
}
.field [aria-invalid='true']:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.2);
}
.field__error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--error);
  line-height: 1.4;
}
.field__error::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.75rem;
}
.appt-form__insurance {
  margin: 28px 0 0;
  padding: 22px clamp(16px, 3vw, 24px) 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tint-2);
}
.appt-form__insurance legend {
  padding: 0 8px;
  margin-left: -8px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
}
.optional {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}
.appt-form__insurance .appt-form__grid > .field:first-child {
  grid-column: 1 / -1;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.appt-form__actions {
  margin-top: 28px;
}
.appt-form__submit {
  position: relative;
}
.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.appt-form.is-sending .spinner {
  display: inline-block;
}
.appt-form.is-sending .appt-form__submit {
  cursor: progress;
  opacity: 0.85;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.appt-form__status:not(:empty) {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fdecea;
  color: #7a1a14;
  border: 1px solid #f2b8b5;
  font-size: 0.9375rem;
}
.appt-form__status a {
  color: #7a1a14;
  font-weight: 700;
}
.appt-form__noscript {
  font-size: 0.875rem;
  margin-top: 12px;
}
.appt-success {
  text-align: center;
  padding: clamp(16px, 4vw, 40px) 0;
}
.appt-success__icon {
  margin: 0 auto 18px;
  color: var(--teal);
}
.appt-success h3 {
  font-size: 2rem;
  margin-bottom: 0.3em;
}
.appt-success p {
  font-size: 1.125rem;
  color: var(--ink);
}
.appt-success__phone {
  margin-top: 1em;
}
.appt-success__phone,
.appt-success__phone + p {
  font-size: 1rem !important;
  color: var(--body) !important;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--deep);
}
.testimonial-grid {
  list-style: none;
  display: grid;
  gap: 24px;
}
.testimonial figure {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border-radius: 16px;
  color: var(--body);
}
.testimonial .icon--quote {
  color: var(--brand);
  margin-bottom: 14px;
  width: 34px;
  height: auto;
}
.testimonial blockquote {
  margin: 0 0 18px;
  flex: 1;
}
.testimonial blockquote p {
  font-size: 1.0625rem;
  line-height: 1.7;
}
.testimonial figcaption {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--ink);
}
@media (min-width: 48em) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* ---------- Find us / map ---------- */
.find-us__grid {
  display: grid;
  gap: 32px;
}
.map {
  aspect-ratio: 4 / 3;
  background: var(--tint);
  overflow: hidden;
  border-radius: 12px;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map--wide {
  aspect-ratio: auto;
  height: clamp(360px, 42vw, 520px);
}
.find-us__details h3 {
  margin-bottom: 0.4em;
}
.find-us__hours-title {
  margin-top: 1.6em;
}
@media (min-width: 48em) {
  .find-us__grid {
    grid-template-columns: 3fr 2fr;
    gap: 56px;
    align-items: center;
  }
}

/* Hours list */
.hours {
  margin: 0;
  display: grid;
  gap: 6px;
}
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.hours dt {
  font-weight: 700;
  color: var(--ink);
}
.hours dd {
  margin: 0;
  text-align: right;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--on-dark-2);
  font-size: 0.975rem;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--brand);
  text-decoration: underline;
}
.site-footer :focus-visible {
  outline-color: var(--brand);
}
.footer__grid {
  display: grid;
  gap: 40px;
  padding-block: clamp(56px, 7vw, 88px);
}
.brand--footer {
  --dds-size: 1.0525rem;
  --dds-ink: var(--on-dark-3);
  --dds-rule: rgba(233, 221, 210, 0.35);
  justify-self: start;
}
.brand--footer .brand__row {
  gap: 12px;
}
.brand--footer .brand__icon {
  width: 56px;
  height: 56px;
}
.brand--footer .brand__name {
  color: #fff;
  font-size: 1.75rem;
}
.brand--footer .brand__sub {
  font-size: 0.9rem;
  color: var(--brand);
}
.site-footer .brand--footer:hover {
  text-decoration: none;
}
.footer__tagline {
  margin: 20px 0 24px;
  max-width: 34ch;
  font-family: var(--font-head);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--on-dark);
}
.site-footer .btn--light {
  color: var(--drawer);
}
.site-footer .btn--light:hover {
  text-decoration: none;
}
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.footer__col address {
  margin-bottom: 14px;
}
.footer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.footer__contact .icon {
  color: var(--brand);
  flex: none;
}
.footer__contact a {
  display: inline-block;
  padding: 6px 0;
}
.hours--footer div {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.hours--footer dt {
  color: #fff;
}
.footer__links {
  list-style: none;
  display: grid;
  gap: 0;
}
.footer__links a {
  display: inline-block;
  padding: 10px 0;
  min-width: 44px;
  letter-spacing: var(--track);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 20px;
  font-size: 0.875rem;
  color: #b9d6d8;
}
@media (min-width: 40em) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 64em) {
  .footer__grid {
    grid-template-columns: 1.25fr 1.25fr 1.1fr 0.75fr;
    gap: 48px;
  }
}

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative;
  background: var(--tint);
  padding-block: clamp(44px, 6vw, 84px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-banner::before,
.section--wood::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/img/texture-whitewashed-wood-a-880.9f46df16.jpg");
  background-image: image-set(url("/img/texture-whitewashed-wood-a-880.9f46df16.avif") type("image/avif"), url("/img/texture-whitewashed-wood-a-880.9f46df16.webp") type("image/webp"), url("/img/texture-whitewashed-wood-a-880.9f46df16.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.32;
  mix-blend-mode: multiply;
}
.page-banner h1 {
  margin-bottom: 0.35em;
}
.page-banner__lead {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--ink);
}
.section--wood {
  position: relative;
  background: var(--tint);
  isolation: isolate;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0 0 18px;
  padding: 0;
  /* Matches the desktop nav items (1rem, --track); a touch smaller on phones. */
  font-size: 0.9375rem;
  letter-spacing: var(--track);
}
@media (min-width: 48em) {
  .breadcrumb ol {
    font-size: var(--nav-fs);
  }
}
.breadcrumb li + li::before {
  content: '/';
  margin: 0 10px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--teal);
  text-decoration: none;
  padding: 10px 0;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb [aria-current] {
  color: var(--ink);
}

/* ---------- Cards ---------- */
.link-cards {
  list-style: none;
  display: grid;
  gap: 16px;
}
@media (min-width: 40em) {
  .link-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .link-cards:not(.link-cards--two) {
    grid-template-columns: repeat(4, 1fr);
  }
  .link-cards--two {
    max-width: 820px;
    margin-inline: auto;
  }
}
.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 24px 52px 24px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--body);
  transition: border-color var(--t), transform var(--t);
}
.link-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  color: var(--body);
}
.link-card__title {
  font-family: var(--font-head);
  font-size: 1.375rem;
  color: var(--ink);
  line-height: 1.2;
}
.link-card__text {
  font-size: 0.9375rem;
  line-height: 1.5;
}
.link-card > .icon {
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -12px;
  color: var(--teal);
  transition: transform var(--t);
}
.link-card:hover > .icon {
  transform: translateX(3px);
}

.download-cards {
  list-style: none;
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
}
@media (min-width: 48em) {
  .download-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.download-card,
.resource-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--body);
  transition: border-color var(--t), transform var(--t);
}
.download-card:hover,
.resource-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  color: var(--body);
}
.download-card__icon,
.resource-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teal);
}
.download-card__body,
.resource-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.download-card__title,
.resource-card__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.25;
}
.download-card__meta,
.resource-card__meta {
  font-size: 0.875rem;
  color: var(--muted);
}
.download-card > .icon,
.resource-card > .icon {
  color: var(--teal);
  flex: none;
}

/* Lists */
.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}
.check-list .icon {
  color: var(--teal);
  margin-top: 4px;
  stroke-width: 2;
}
@media (min-width: 48em) {
  .check-list--cols {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

/* Services */
.services__cta {
  margin: 0 0 40px;
}
.callouts {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--tint);
  border-radius: 12px;
  border-left: 4px solid var(--teal);
}
.callout--alert {
  background: #fff6ec;
  border-left-color: #b45309;
}
.callout--alert .callout__icon {
  color: #9a4508;
}
.callout__icon {
  flex: none;
  color: var(--teal);
  margin-top: 2px;
}
.callout__title {
  font-size: 1.375rem;
  margin-bottom: 0.3em;
}
.callout p {
  color: var(--ink);
}
.callout__phone {
  font-weight: 700;
  white-space: nowrap;
}
.callout--inline {
  display: block;
  border-left: 0;
  text-align: center;
  margin-top: 28px;
}
@media (min-width: 48em) {
  .callouts {
    grid-template-columns: 3fr 2fr;
  }
}
.service-groups {
  list-style: none;
  display: grid;
  gap: 24px;
}
.service-group {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--line);
}
.service-group h3 {
  margin-bottom: 0.9em;
}
@media (min-width: 48em) {
  .service-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .service-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}
.two-lists {
  display: grid;
  gap: 40px;
}
.two-lists .section-title {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  margin-bottom: 0.8em;
}
@media (min-width: 48em) {
  .two-lists {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Quotes */
.pull-quote {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border-radius: 16px;
  position: relative;
}
.pull-quote blockquote {
  margin: 0;
}
.pull-quote blockquote p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink);
}
.pull-quote figcaption {
  margin-top: 18px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: var(--track);
}
.pull-quote--small {
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--brand);
  border-radius: 0;
  background: none;
  margin: 1.2em 0;
}
.pull-quote--small blockquote p {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
}

.cta-band {
  text-align: center;
}
.cta-band__inner {
  max-width: 820px;
}

/* Bio */
.bio {
  display: grid;
  gap: 40px;
  align-items: start;
}
.bio__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}
.bio__img {
  object-position: 84% 30%;
}
.bio__text p:first-child {
  font-size: 1.125rem;
}
@media (min-width: 48em) {
  .bio {
    grid-template-columns: minmax(280px, 5fr) 7fr;
    gap: clamp(40px, 5vw, 72px);
  }
}
.framed img {
  width: 100%;
  border: 10px solid #fff;
  box-sizing: border-box;
}

/* Visit (patient forms) */
.visit {
  display: grid;
  gap: 32px;
  align-items: center;
  max-width: 960px;
}
.visit__media {
  width: 200px;
  margin-inline: auto;
}
@media (min-width: 48em) {
  .visit {
    grid-template-columns: 280px 1fr;
    gap: 64px;
  }
  .visit__media {
    width: 100%;
  }
}

/* Insurance / plan */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
}
.chips li {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint-2);
  font-size: 0.9375rem;
  color: var(--ink);
}
.plan {
  display: grid;
  gap: 32px;
  align-items: center;
}
.plan__prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.price-card {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 28px 16px;
}
.price-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.price-card__price {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 6px;
}
.price-card__terms {
  font-size: 0.9375rem;
  color: var(--muted);
}
.plan__included {
  margin-top: clamp(40px, 5vw, 64px);
  background: #fff;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 48px);
}
.plan__included h3 {
  margin-bottom: 0.9em;
}
.plan__included h4 {
  margin-top: 1.8em;
}
.voucher-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.voucher-list li {
  padding: 12px 16px;
  background: var(--tint-2);
  border-radius: 8px;
  border-left: 3px solid var(--brand);
}
.voucher-list strong {
  color: var(--teal);
}
.fine-print {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 64em) {
  .plan {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

/* Implants */
.implant-intro {
  display: grid;
  gap: 32px;
  align-items: center;
}
.implant-intro__media img {
  margin-inline: auto;
}
.source {
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 48em) {
  .implant-intro {
    grid-template-columns: minmax(0, 500px) 1fr;
    gap: 56px;
  }
}

/* Invisalign Q&A */
.qa {
  display: grid;
  gap: 36px;
}
.qa__item h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.875rem);
  margin-bottom: 0.5em;
}

/* Principles */
.principles {
  list-style: none;
  display: grid;
  gap: 32px 56px;
}
.principles li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.principles h3 {
  font-size: 1.375rem;
  margin-bottom: 0.4em;
}
@media (min-width: 48em) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}

/* Blog */
.article__head {
  text-align: center;
  margin-bottom: 36px;
}
.article__title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
}
.article__image {
  display: block;
  margin: 0 auto 40px;
  max-width: 720px;
}
.article__image img {
  width: 100%;
  border-radius: 4px;
}

/* Contact */
.contact-cta h2 {
  margin-bottom: 0.4em;
}
.contact-grid {
  display: grid;
  gap: 32px;
  align-items: stretch;
}
.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(24px, 4vw, 44px);
}
.contact-card h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
}
.contact-card .contact-list {
  margin: 0 0 32px;
}
.contact-card__hours {
  margin-bottom: 0.6em;
}
.contact-photo {
  min-height: 320px;
  border-radius: 16px;
  overflow: hidden;
}
.contact-photo picture {
  height: 100%;
}
@media (min-width: 48em) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 48em) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .video-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}
.video {
  margin: 0;
}
.video__facade,
.video__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1f1712;
  border-radius: 12px;
}
.video__facade img,
.video__facade picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), opacity var(--t);
}
.video__facade picture img {
  height: 100%;
}
.video__facade .icon--play {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -34px 0 0 -34px;
  transition: transform var(--t);
}
.video__facade:hover img {
  transform: scale(1.03);
}
.video__facade:hover .icon--play {
  transform: scale(1.08);
}
.video__facade:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video figcaption {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.3;
}
.video__src {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--muted);
  vertical-align: 2px;
}

/* ---------- Galleries ---------- */
.gallery {
  position: relative;
}
.gallery__track {
  list-style: none;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.gallery__track:focus-visible {
  outline-offset: 4px;
}
.gallery__item {
  flex: none;
  scroll-snap-align: start;
  height: 260px;
  width: calc(260px * var(--ar));
  max-width: 86vw;
}
@media (min-width: 48em) {
  .gallery__item {
    height: 380px;
    width: calc(380px * var(--ar));
  }
}
.gallery__open,
.grid-gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--tint);
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
}
.gallery__open picture,
.gallery__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery__open:hover img,
.grid-gallery__open:hover img {
  transform: scale(1.03);
}
.gallery__open:focus-visible,
.grid-gallery__open:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}
.gallery__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.gallery__count {
  font-size: 0.875rem;
  letter-spacing: var(--track);
  color: var(--muted);
}
.gallery__btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal);
  transition: background-color var(--t), color var(--t), opacity var(--t);
}
.gallery__btn:hover {
  background: var(--teal);
  color: #fff;
}
.gallery__btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: #fff;
  color: var(--teal);
}
.grid-gallery {
  list-style: none;
  display: grid;
  gap: 16px;
}
.grid-gallery li {
  aspect-ratio: 4 / 3;
}
.grid-gallery__open picture,
.grid-gallery__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
@media (min-width: 40em) {
  .grid-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .grid-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(22, 15, 11, 0.94);
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(22, 15, 11, 0.6);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 16px 24px;
  max-width: 100%;
}
.lightbox__media img {
  max-width: min(92vw, 1400px);
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__caption {
  text-align: center;
  max-width: 70ch;
  font-size: 0.9375rem;
  color: var(--on-dark-2);
}
.lightbox__btn,
.lightbox__close {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color var(--t);
}
.lightbox__btn:hover,
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.lightbox__prev {
  left: 12px;
  top: 50%;
  margin-top: -26px;
}
.lightbox__next {
  right: 12px;
  top: 50%;
  margin-top: -26px;
}
.lightbox__close {
  top: 12px;
  right: 12px;
}
.lightbox :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .spinner {
    animation: spin 1.6s linear infinite !important;
  }
  .gallery__track {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .drawer,
  .site-footer .btn,
  .hero__controls {
    display: none !important;
  }
  body {
    padding-top: 0;
  }
}

/* Long e-mail addresses must wrap on small phones */
.contact-grid > *,
.find-us__grid > *,
.footer__grid > * {
  min-width: 0;
}
.contact-list span,
.footer__contact a {
  overflow-wrap: anywhere;
}

/* <picture> wrappers must fill their cropping box for object-fit: cover */
.intro__media picture,
.bio__media picture,
.contact-photo picture,
.grid-gallery__open picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Icons inside buttons and links keep their size and read clearly at small sizes */
.btn .icon,
.utility__item .icon,
.drawer__phone .icon,
.bar__call .icon {
  flex: none;
  stroke-width: 1.75;
}
.bar__menu {
  text-decoration: none;
}
.appt-success__test {
  display: inline-block;
  margin-top: 1em;
  padding: 4px 12px;
  border: 1px dashed #b45309;
  border-radius: 6px;
  background: #fff6ec;
  color: #7a3a06 !important;
  font-size: 0.875rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}
