@font-face {
  font-family: Onest;
  src: url("../fonts/onest/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Onest;
  src: url("../fonts/onest/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: Lora;
  src: url("../fonts/lora/lora-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Lora;
  src: url("../fonts/lora/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #faf9f5;
  --linen: #f0eee6;
  --ink: #232a23;
  --muted: #545b50;
  --accent: #294d3c;
  --accent-dark: #1c3a2c;
  --rule: #d5d7cb;
  --gutter: clamp(18px, 5.6vw, 82px);
  --section-space: clamp(54px, 7.2vw, 104px);
  --display: Lora, Georgia, serif;
  font-family: Onest, system-ui, sans-serif;
  scroll-padding-block: 93px 24px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
figure, p, h1, h2, h3 { margin: 0; }
address { font-style: normal; }
abbr[title] { text-decoration: none; }

:focus-visible { outline: 2px solid #52715d; outline-offset: 4px; }
main:focus-visible { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: var(--gutter);
  z-index: 20;
  transform: translateY(-170%);
  padding: 10px 16px;
  background: var(--accent);
  color: white;
}

.skip-link:focus { transform: none; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 1240px); margin-inline: auto; }
.section { padding-block: var(--section-space); }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.button, .text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
}

.button {
  justify-content: center;
  min-height: 51px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-align: center;
}

.button-primary { background: var(--accent); color: #fff; transition: background-color .15s; }
.button-primary:hover { background: var(--accent-dark); }
.text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; line-height: 1.14; }
.brand strong { font: 600 clamp(1.1rem, 1.6vw, 1.32rem)/1.14 var(--display); letter-spacing: -.04em; }

.desktop-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 35px); }
.desktop-nav a, .mobile-menu nav a { display: flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .89rem; }
.desktop-nav a:hover, .mobile-menu nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.desktop-nav [aria-current], .mobile-menu [aria-current] { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.header-call { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mobile-menu { display: none; }

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.047em;
  text-wrap: balance;
}

h1 { font-size: clamp(3.15rem, 7.1vw, 6.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.07rem, 1.58vw, 1.28rem); line-height: 1.3; font-weight: 640; letter-spacing: -.02em; }

.home-page {
  --paper: #fdfdfa;
  --linen: #edf2eb;
  --ink: #202721;
  --muted: #4b574e;
  --accent: #266b50;
  --accent-dark: #184b37;
  --rule: #d6ded4;
  --panel-radius: clamp(16px, 2.1vw, 28px);
}

.home-page h1, .home-page h2 { font-family: Onest, system-ui, sans-serif; }
.home-page h2 { font-weight: 570; text-wrap: initial; }

.home-page .site-header { border-bottom: 0; }
.home-page main { overflow-x: clip; }
.home-lead { margin-top: clamp(12px, 1.5vw, 22px); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(440px, 39vw, 580px);
  padding-block: clamp(35px, 4.2vw, 64px);
}

.dental-stage {
  position: absolute;
  z-index: -1;
  top: 52%;
  right: -12%;
  width: 78%;
  aspect-ratio: 32 / 23;
  transform: translateY(-50%);
  pointer-events: none;
}

.dental-stage img, .dental-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dental-stage canvas { opacity: 0; }
.dental-stage.is-live canvas { opacity: 1; }
.dental-stage.is-live img { visibility: hidden; }

.location-label { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; color: #405d51; font-size: .85rem; font-weight: 540; }
.location-label .icon { width: 15px; height: 15px; }

.hero h1 {
  font-size: clamp(4.45rem, 8.3vw, 7.6rem);
  font-weight: 450;
  letter-spacing: -.071em;
  line-height: .99;
  text-wrap: initial;
}

.hero h1 em { font-style: normal; color: #358569; }
.hero-copy { max-width: min(43%, 370px); margin-top: clamp(30px, 3.1vw, 46px); }
.hero-description { color: var(--muted); font-size: clamp(.98rem, 1.25vw, 1.08rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 18px; margin-top: 21px; }
.actions .button-primary { border-radius: 999px; background: var(--ink); }
.actions .button-primary:hover { background: var(--accent-dark); }

.quick-links {
  position: relative;
  margin-top: clamp(12px, 2.6vw, 38px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.quick-links > a {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(14px, 2.4vw, 32px);
}

.quick-links > a:first-child { padding-left: 0; }
.quick-links > a + a { border-left: 1px solid var(--rule); }
.quick-links small, .quick-links strong { display: block; line-height: 1.35; }
.quick-links small { margin-bottom: 4px; color: var(--muted); font-size: .76rem; }
.quick-links strong { font-size: clamp(.85rem, 1.3vw, 1.04rem); font-weight: 650; }
.quick-links a:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.services-overview { padding-bottom: 0; }

.services-overview .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 21px;
}

.section-link { flex: none; }

.service-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 12px;
  min-height: 86px;
  padding: clamp(14px, 2vw, 27px);
  border-radius: 14px;
  background: #f3f5f1;
}

.service-row p { grid-column: 1; color: var(--muted); font-size: .94rem; }
.service-row .icon { grid-area: 1 / 2; width: 19px; height: 19px; color: var(--accent); }
.service-row:hover { background: #e9efe8; }
.service-row:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.service-feature { grid-column: span 2; min-height: clamp(139px, 15vw, 190px); align-content: center; }
.service-feature h3 { font-size: clamp(1.17rem, 2.35vw, 1.95rem); font-weight: 590; }
.service-feature .icon { grid-row: 1 / span 2; }
.service-feature + .service-feature { background: #e8f1e8; }
.service-feature + .service-feature:hover { background: #e0ece1; }

.practice-section { margin-top: var(--section-space); }
.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 5.5vw, 80px);
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline-end: var(--gutter);
}

.practice-portrait { width: 100%; height: auto; transform-origin: left center; }
.practice-copy h2 { margin-bottom: 16px; color: var(--accent); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.practice-profile h3 { max-width: 16ch; font-size: clamp(2rem, 3.8vw, 3.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; text-wrap: balance; }
.practice-profile p { max-width: 38ch; margin-top: 16px; color: var(--muted); }
.practice-profile p + p { margin-top: 6px; }
.practice-copy > .text-link { margin-top: 10px; }
.practice-copy [data-gallery] { margin-top: clamp(18px, 2.4vw, 36px); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gallery-item { position: relative; display: block; overflow: hidden; aspect-ratio: 1.45; border-radius: 8px; background: #dce4dc; }
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover img { filter: brightness(.91); }
.gallery-feature img { object-position: center 54%; }
.gallery-instruments img { object-position: center 57%; }

.gallery-more { margin-top: 8px; }
.gallery-more > summary { width: max-content; cursor: pointer; list-style: none; }
.gallery-more > summary::-webkit-details-marker { display: none; }
.gallery-more[open] > summary .icon { transform: rotate(180deg); }
.gallery-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.gallery-extra .gallery-item { aspect-ratio: 5 / 4; }

.gallery-dialog {
  width: min(760px, calc(100% - 26px));
  max-width: none;
  max-height: calc(100% - 26px);
  padding: 0;
  border: 1px solid #48534b;
  background: #222a24;
  color: #fff;
}

.gallery-dialog::backdrop { background: #151a16ea; }
.gallery-dialog-inner { position: relative; padding: 16px; }
.gallery-dialog figure { display: grid; justify-items: center; gap: 9px; }
.gallery-dialog img { width: 100%; height: min(63vh, 680px); height: min(63dvh, 680px); object-fit: contain; }
.gallery-dialog figcaption { min-height: 1.6em; text-align: center; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.gallery-controls span { min-width: 5ch; text-align: center; }

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  color: var(--accent);
  cursor: pointer;
}

.icon-button:hover { background: var(--linen); }
.gallery-close { position: absolute; z-index: 1; top: 11px; right: 11px; }

.visit h2 { padding-bottom: 23px; }
.visit-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: 12px; }
.visit-address, .visit-hours { padding-block: clamp(18px, 2.8vw, 36px); }
.visit-address { padding-right: 16px; }
.visit-hours {
  padding-inline: clamp(16px, 3.35vw, 48px);
  border-radius: var(--panel-radius);
  background: var(--linen);
}
.visit-address address { margin-top: 8px; color: var(--muted); }
.visit-address .text-link { margin-top: 3px; }
.visit-phone-title { margin-top: 18px; }
.visit-phone { font-size: 1rem; font-variant-numeric: tabular-nums; }

.hours-live:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-block: 18px 8px;
  padding-block: 16px;
  border-block: 1px solid var(--rule);
}
.hours-state { display: inline-flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.hours-state::before, #hours-summary[data-state]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #806449;
}
.hours-state[data-state="open"]::before, #hours-summary[data-state="open"]::before { background: var(--accent); }
#hours-summary[data-state]::before { margin-right: 7px; vertical-align: .08em; }
#hours-summary { font-variant-numeric: tabular-nums; }
.hours-next { margin-top: 4px; color: var(--muted); font-size: .89rem; }
.hours-local { display: grid; gap: 2px; color: var(--muted); font-size: .8rem; }
.hours-clock { color: var(--ink); font-size: 1.85rem; font-weight: 520; font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1.1; }
.hours-today { display: inline-block; margin-left: 7px; color: var(--accent); font-size: .74rem; }
.visit-hours tr[aria-current="date"] th, .visit-hours tr[aria-current="date"] td { color: var(--accent-dark); font-weight: 680; }

.visit-hours table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .92rem; }
.visit-hours tbody tr + tr { border-top: 1px solid var(--rule); }
.visit-hours th, .visit-hours td { padding: 8px 0; vertical-align: top; }
.visit-hours th { font-weight: 580; text-align: left; }
.visit-hours td { padding-left: 9px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.visit-hours td span { display: inline-block; white-space: nowrap; }
.visit-hours td span + span { margin-left: 9px; }

.site-footer { border-top: 1px solid var(--rule); background: var(--linen); }
.footer-inner { display: flex; min-height: 107px; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 21px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 2px 24px; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .87rem; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.service-hero { padding-block: clamp(24px, 4vw, 54px) clamp(34px, 5vw, 70px); border-bottom: 1px solid var(--rule); }
.service-hero h1 { font-size: clamp(2.65rem, 6vw, 5.4rem); text-wrap: initial; }
.service-hero p { max-width: 58ch; margin-top: 16px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.breadcrumbs { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { display: inline-flex; min-height: 44px; align-items: center; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs .icon { width: 13px; height: 13px; }

.service-directory {
  display: grid;
  grid-template-columns: minmax(220px, .43fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px clamp(24px, 6.3vw, 90px);
  margin-block: 0 var(--section-space);
}

.service-index { position: sticky; top: 102px; margin-top: 36px; }
.service-index h2 { font: 650 1rem/1.3 Onest, system-ui, sans-serif; letter-spacing: 0; }
.service-index ul { margin: 12px 0 0; padding: 0; list-style: none; }
.service-index a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 7px; color: var(--accent); font-size: .9rem; }
.service-index a:hover { text-decoration: underline; text-underline-offset: 4px; }

.service-detail { padding-block: clamp(22px, 3.1vw, 40px); border-bottom: 1px solid var(--rule); }
.service-detail:target h2 { color: var(--accent); }
.service-detail h2 { font-size: clamp(1.55rem, 3.2vw, 2.45rem); text-wrap: initial; }
.service-detail p { margin-top: 9px; color: var(--muted); }
.service-detail ul { display: grid; gap: 5px; margin: 14px 0 0; padding-left: 1.22rem; }
.service-detail li::marker { color: #58715f; }

.service-booking { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: var(--section-space); padding-block: 21px 0; border-top: 1px solid var(--rule); }
.service-booking h2 { font-size: clamp(1.65rem, 3.7vw, 2.8rem); text-wrap: initial; }
.service-booking p { margin-top: 7px; color: var(--muted); }
.service-booking .button { flex: none; }

@media (max-width: 820px) {
  .practice-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0; }
  .practice-copy { padding-inline: var(--gutter); }
  .header-inner { min-height: 66px; gap: 10px; }
  .desktop-nav { display: none; }
  .header-call { width: 44px; flex: none; justify-content: center; margin-left: auto; }
  .header-call .icon { width: 19px; height: 19px; }
  .header-call span { position: absolute; clip-path: inset(50%); }
  .mobile-menu { display: block; }
  .mobile-menu > summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    cursor: pointer;
    font-size: .88rem;
    font-weight: 640;
    list-style: none;
  }

  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .menu-close-icon, .mobile-menu[open] .menu-open-icon { display: none; }
  .mobile-menu[open] .menu-close-icon { display: block; }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 100%;
    padding: 5px var(--gutter) 12px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .dental-stage { right: -15%; }
}

@media (max-width: 700px) {
  :root { scroll-padding-block-start: 79px; }
  .hero { justify-content: flex-start; min-height: 0; padding: 28px 0 14px; }
  .location-label { margin-bottom: 17px; font-size: .78rem; }
  .hero h1 { font-size: clamp(2.55rem, 9.8vw, 4.2rem); line-height: 1.02; }
  .dental-stage { top: clamp(68px, 13vw, 90px); right: -10%; width: 89%; transform: none; }
  .hero-copy { max-width: 31ch; margin-top: clamp(128px, 35vw, 237px); }
  .hero-description { font-size: .94rem; }
  .actions { column-gap: 12px; margin-top: 13px; }
  .actions .button { min-height: 46px; padding-inline: 14px; }
  .actions .text-link { font-size: .86rem; }
  .service-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-feature { grid-column: auto; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-address { padding-right: 0; }
  .service-directory { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .service-index { position: static; margin-top: 0; padding-block: 17px; border-bottom: 1px solid var(--rule); }
  .service-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 7px; }
  .footer-inner, .service-booking { flex-direction: column; align-items: flex-start; }
  .site-footer nav { column-gap: 17px; }

}

@media (max-width: 510px) {
  .quick-links { grid-template-columns: minmax(0, 1fr); }
  .quick-links > a { min-height: 49px; padding: 8px 0; }
  .quick-links > a + a { border-top: 1px solid var(--rule); border-left: 0; }
  .quick-links > a span { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
  .quick-links small { margin: 0; }
  .quick-links strong { text-align: right; }
  .service-feature { grid-column: span 2; min-height: 0; }
  .service-row:not(.service-feature) h3 { font-size: .94rem; overflow-wrap: anywhere; }
}

@media (max-width: 410px) {
  .service-index ul { grid-template-columns: minmax(0, 1fr); }
  .visit-hours td span { display: block; }
  .visit-hours td span + span { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-settle {
    from { transform: translateY(11px); }
    to { transform: translateY(0); }
  }
  .hero .location-label { animation: hero-settle .5s ease-out both; }
  .hero h1 { animation: hero-settle .75s cubic-bezier(.2,.75,.25,1) both; }
  .hero-copy { animation: hero-settle .6s .1s ease-out both; }
  .gallery-item img { transition: transform .65s cubic-bezier(.2,.72,.2,1), filter .3s; }
  .service-row, .actions .button, .home-page .icon { transition: transform .28s ease, background-color .28s ease; }
  @media (hover: hover) {
    .gallery-item:hover img { transform: scale(1.045); }
    .service-row:hover .icon { transform: translateX(4px); }
    .actions .button:hover .icon { transform: translate(2px, -2px); }
    .actions .text-link:hover .icon { transform: translateY(3px); }
  }
}
