:root{--ink:#102d40;--muted:#3b5668;--blue:#0066a8;--deep:#07344f;--paper:#f4fbff;--line:#d8e9f2;--sky:#e3f4fb;--serif:"Instrument Serif",Georgia,serif;--sans:Manrope,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:500 1rem/1.65 var(--sans)}a{color:inherit}a:focus-visible,summary:focus-visible{outline:3px solid #25a5ca;outline-offset:5px}.skip{position:absolute;left:1rem;top:-10rem;background:white;padding:.5rem;z-index:5}.skip:focus{top:1rem}.wrap{width:min(100% - 6rem,1220px);margin-inline:auto}.top{background:var(--deep);color:white;font-size:.875rem}.top .wrap,.nav,footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.25rem}.top .wrap{min-height:37px}.top a,.nav a,footer a{text-decoration:none}header{background:#fff;border-bottom:1px solid var(--line)}.nav{min-height:83px}.brand{display:inline-flex;align-items:center;gap:.65rem;font-weight:800;font-size:1.3rem;line-height:1.1;white-space:nowrap}.brand>span>span{color:var(--blue)}.brand small{display:block;font-size:.69rem;letter-spacing:.13em;color:var(--muted);margin-top:.4rem}nav{display:flex;gap:clamp(1rem,2.5vw,2.5rem);font-size:.9rem;font-weight:700}nav a:hover,.top a:hover,footer a:hover{text-decoration:underline}.button{display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:.65rem 1.23rem;border:1px solid transparent;border-radius:999px;background:var(--blue);color:white;text-decoration:none;font-weight:800;font-size:.9rem;white-space:nowrap}.button:hover{background:#005185}.outline{background:transparent;color:var(--deep);border-color:#a7ccdd}.outline:hover{background:#e3f4fb}.hero{background:radial-gradient(ellipse at 18% 15%,#d9f3fb 0,transparent 53%),var(--paper);padding:57px 0 52px}.hero-grid,.split{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(2rem,5vw,5rem)}.eyebrow{display:flex;gap:.6rem;align-items:center;color:var(--blue);font-size:.875rem;font-weight:800;letter-spacing:.11em;margin:0 0 1rem}.eyebrow span{width:1.6rem;height:1px;background:currentColor}h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.034em;line-height:.98;margin:0 0 1.25rem}h1{font-size:clamp(4rem,6.7vw,7rem)}h2{font-size:clamp(3rem,5.1vw,5rem)}h3{line-height:1.3}p{margin:0 0 1.2rem}main p:not(.eyebrow){color:var(--muted)}.intro{max-width:440px;font-size:1.1rem}.actions{display:flex;gap:.65rem;flex-wrap:wrap;margin-top:1.55rem}.welcome{margin:1.2rem 0 0;font-size:.89rem;font-weight:700}.welcome span{color:var(--blue);margin-right:.35rem}.hero-photo{position:relative;margin:0;min-width:0}.hero-photo>img{display:block;width:100%;aspect-ratio:1.22;object-fit:cover;border-radius:32px 32px 110px 32px;background:#dcecf4}.hero-photo figcaption{position:absolute;display:flex;align-items:center;gap:.75rem;background:white;box-shadow:0 9px 30px #0b355520;border-radius:16px;padding:.78rem 1rem;left:1rem;bottom:1rem;font-size:.9rem}.hero-photo small,.quick small{display:block;color:var(--muted);font-size:.875rem}.quick{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--line);border-radius:20px}.quick a{display:flex;align-items:center;gap:.95rem;padding:1.1rem 1.5rem;text-decoration:none;line-height:1.4}.quick a+a{border-left:1px solid var(--line)}.quick a:hover strong{text-decoration:underline}.quick-icon,.cards span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:var(--sky);color:var(--blue);border-radius:12px;font-size:1.3rem}.section{padding-block:clamp(3.75rem,7vw,7rem)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2rem}.cards article{padding:1.55rem;background:white;border:1px solid var(--line);border-radius:20px}.cards h3{margin:1rem 0 .5rem}.cards p{margin:0}.band{background:#eaf6fb}.quote{margin:0;border-radius:26px;background:#fff;padding:clamp(1.5rem,4vw,3rem)}.quote div{color:var(--blue);letter-spacing:.25em}.quote blockquote{margin:.6rem 0;font:2.4rem/1.05 var(--serif)}.quote figcaption{color:var(--muted);font-size:.875rem}.faqs details{border-bottom:1px solid #bdd8e6;padding:1rem 0}.faqs summary{font-weight:800;cursor:pointer}.faqs p{margin:.6rem 0 0}.visit{background:var(--deep);color:white}.visit .eyebrow,.visit p{color:#d8f1fc!important}.light{background:#d8f1fc;color:var(--deep)}.light:hover{background:white}.inverse{border-color:#84bbd3;background:transparent}.office{border:1px solid #55829a;border-radius:22px;padding:1.5rem 1.75rem}.office h3{margin:0 0 .5rem}.office address{font-style:normal}.office dl{margin-bottom:0}.office dl div{display:flex;justify-content:space-between;gap:.5rem;border-top:1px solid #55829a;padding:.55rem 0}.office dd{margin:0;white-space:nowrap}footer .wrap{min-height:95px;flex-wrap:wrap;padding-block:1rem}footer small{color:var(--muted)}[id]{scroll-margin-top:1rem}
@media(max-width:950px){.wrap{width:calc(100% - 3rem)}.nav{flex-wrap:wrap;gap:.7rem;padding-block:.8rem}.nav nav{order:3;width:100%;justify-content:space-between;padding-top:.55rem;border-top:1px solid var(--line)}.desktop{display:none}.quick a{padding:.85rem}.hero-grid{gap:2rem}.hero-photo>img{aspect-ratio:1}}
@media(max-width:660px){.wrap{width:calc(100% - 2rem)}.top .wrap{gap:.35rem}.top a{font-size:.75rem}.nav nav{gap:.55rem;font-size:.79rem}.brand{font-size:1.1rem}.brand small{font-size:.59rem}.brand img{width:36px;height:36px}.header-cta{min-height:42px;padding-inline:.8rem}.hero{padding:2.6rem 0 1.45rem}.hero-grid,.split{grid-template-columns:1fr}.hero-photo>img{aspect-ratio:1.2;border-bottom-right-radius:70px}.quick,.cards{grid-template-columns:1fr}.quick a+a{border-left:0;border-top:1px solid var(--line)}.office{padding:1.1rem}.cards{gap:.7rem}h1{font-size:clamp(3.75rem,13vw,5.25rem)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.brand .wordmark{width:clamp(205px,24vw,320px);height:auto;transform-origin:left center}
@media(max-width:660px){.brand .wordmark{width:clamp(174px,56vw,260px)}}
@media(prefers-reduced-motion:no-preference){
  .nav .wordmark{animation:wordmark-enter 650ms cubic-bezier(.2,.7,.3,1) both;transition:transform 220ms ease}
  .nav .brand:hover .wordmark,.nav .brand:focus-visible .wordmark{transform:scale(1.025)}
}
@keyframes wordmark-enter{from{opacity:.35;translate:0 5px;scale:.96}to{opacity:1;translate:0 0;scale:1}}
.welcome span{color:#387632}
.doctor-photo{display:block;width:min(100%,400px);height:auto;aspect-ratio:4 / 5;object-fit:cover;object-position:46% center;border-radius:28px}
.testimonials{padding-top:2rem}
.testimonials .quote{border:1px solid var(--line)}
.social{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.social h2,.social .actions{margin:0}
@media(max-width:660px){.social{align-items:flex-start;flex-direction:column}.doctor-photo{width:min(100%,340px);margin-inline:auto}}
.gallery{padding-bottom:1rem}
.video-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1rem}
.video-card{min-width:0;padding:1rem;border:1px solid var(--line);border-radius:20px;background:#fff}
.video-card.wide{grid-column:span 3}
.video-card.portrait{grid-column:span 2}
.video-card h3{font-size:1rem;margin:0 0 .65rem}
.video-card video{display:block;width:100%;background:var(--deep);border-radius:12px;aspect-ratio:16 / 9}
.video-card.portrait video{aspect-ratio:9 / 16;max-height:440px}
@media(max-width:660px){.nav nav{flex-wrap:wrap;justify-content:flex-start;column-gap:1rem}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.video-card.wide{grid-column:span 2}.video-card.portrait{grid-column:span 1}.video-card{padding:.65rem}}
.filters{display:flex;flex-wrap:wrap;gap:.55rem;margin:1.5rem 0 1.2rem}
.filters[hidden],article[hidden]{display:none}
.filters button{border:1px solid #a7ccdd;border-radius:999px;background:white;color:var(--deep);padding:.5rem .88rem;min-height:42px;cursor:pointer;font:800 .875rem var(--sans)}
.filters button:hover{background:var(--sky)}
.filters button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:white}
.filters button:focus-visible{outline:3px solid #25a5ca;outline-offset:3px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mobile-booking{display:none}
@media(max-width:660px){
  body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  html{scroll-padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  .mobile-booking{position:fixed;z-index:3;inset:auto 0 0;display:grid;grid-template-columns:1fr 1fr;gap:.6rem;padding:.65rem 1rem calc(.65rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white}
}

.scroll-progress{position:fixed;inset:0 0 auto;z-index:4;height:3px;background:linear-gradient(90deg,var(--blue),#25a5ca);transform:scaleX(0);transform-origin:left;pointer-events:none}

.testimonials h2{font-size:clamp(2.65rem,5vw,4rem)}
.review-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:auto}
.review-track .quote{scroll-snap-align:start;min-width:0}
.review-controls{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.review-controls[hidden],.booking-popup[hidden]{display:none}
.review-controls button,.popup-close{font:700 .875rem var(--sans);color:var(--deep);background:white;border:1px solid #a7ccdd;border-radius:999px;min-height:40px;padding:.4rem .8rem;cursor:pointer}
.review-controls button:focus-visible,.popup-close:focus-visible,.review-track:focus-visible{outline:3px solid #25a5ca;outline-offset:3px}
.booking-popup{position:fixed;right:1rem;bottom:1rem;z-index:4;width:min(330px,calc(100% - 2rem));padding:1.25rem;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 45px #0b355530}
.booking-popup h2{font-size:2rem;margin:0 2rem 1rem 0}
.popup-close{position:absolute;top:.65rem;right:.65rem;min-width:40px;padding:0;font-size:1.25rem}
@media(max-width:660px){.booking-popup{bottom:calc(82px + env(safe-area-inset-bottom))}}

/* Brand-blue glass surfaces over a continuous, softly lit background. */
:root {
  --glass: rgba(255, 255, 255, .82);
  --glass-edge: rgba(255, 255, 255, .94);
  --glass-shadow: 0 12px 32px rgba(13, 85, 126, .09), inset 0 1px 0 var(--glass-edge);
}
body {
  background:
    radial-gradient(ellipse at 8% 7%, #bdebf9 0, transparent 29%),
    radial-gradient(ellipse at 94% 25%, #d3eaff 0, transparent 31%),
    radial-gradient(ellipse at 12% 76%, #caedf8 0, transparent 23%),
    linear-gradient(155deg, #f9fdff 12%, #e8f6ff 58%, #f7fcff);
}
.hero {
  background:
    radial-gradient(ellipse at 88% 9%, rgba(255,255,255,.85), transparent 48%),
    radial-gradient(ellipse at 36% 100%, rgba(126,212,241,.24), transparent 52%),
    linear-gradient(130deg, rgba(255,255,255,.48), rgba(255,255,255,.08));
}
.band {
  background: linear-gradient(115deg, rgba(255,255,255,.52), rgba(191,231,250,.48));
  border-block: 1px solid rgba(255,255,255,.82);
}
.quick, .cards article, .testimonials .quote, .video-card, .hero-photo figcaption, .booking-popup {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.hero-photo > img {
  box-shadow: 0 18px 42px rgba(13, 85, 126, .17);
}
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .hero-photo figcaption, .booking-popup {
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
  }
}

.quote .review-summary{margin:.6rem 0;color:var(--ink);font:2.4rem/1.05 var(--serif)}
.quote figcaption a{text-underline-offset:.15em}

.service-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sky);
}

.hero-photo > .hero-slide {
  opacity: 0;
}
.hero-photo > .hero-slide:first-child {
  position: relative;
}
.hero-photo > .hero-slide:not(:first-child) {
  position: absolute;
  inset: 0;
  height: 100%;
  object-position: center top;
  box-shadow: none;
}
.hero-photo > .hero-slide.is-current {
  opacity: 1;
}
@media(prefers-reduced-motion:no-preference) {
  .hero-photo > .hero-slide {transition: opacity 600ms ease}
}
.hero-photo figcaption {z-index: 1}
.hero-rotation {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  padding: .45rem .8rem;
  min-height: 40px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--deep);
  font: 800 .875rem var(--sans);
  cursor: pointer;
}
.hero-rotation:focus-visible {outline: 3px solid #25a5ca;outline-offset: 3px}

.social-icon.button {
  width: 52px;
  min-height: 52px;
  padding: 0;
  color: var(--blue);
  background: var(--glass);
}
.social-icon.button:hover {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.membership {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
}
.membership h2 {font-size: clamp(2.1rem, 4vw, 3.25rem); margin-bottom: .65rem}
.membership p {margin-bottom: 0}

/* Editorial treatment for the Affinity Dental homepage. */
.hero {
  color: #f6fbff;
  background: radial-gradient(ellipse at 80% 5%, #185777, transparent 62%), #092e47;
  padding-block: clamp(2.75rem, 6vw, 6rem);
}
.hero-grid {
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(2rem, 5vw, 5.5rem);
}
.hero h1 {
  font-size: clamp(3.65rem, 6.8vw, 7rem);
  line-height: .94;
  text-wrap: balance;
}
.hero .eyebrow {color: #a9e4f6}
.hero .hero-copy p:not(.eyebrow) {color: #e0eff7}
.hero .welcome span {color: #a9e4f6}
.hero .button:not(.outline) {
  color: #092e47;
  background: #e1f7ff;
}
.hero .button:not(.outline):hover {background: white}
.hero .button.outline {
  color: white;
  border-color: #a9d3e6;
}
.hero .button.outline:hover {background: rgba(255,255,255,.13)}
.hero-photo {
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 24px 24px 84px 24px;
  background: #b8e3f4;
}
.hero-photo > img {border-radius: 0; box-shadow: none}
.hero-photo figcaption {color: var(--ink)}
.quick {margin-top: 1.25rem}
#services h2, #about h2, #visit h2 {text-wrap: balance}
.cards {gap: clamp(.85rem, 2vw, 1.6rem)}
.cards article {padding: 0; overflow: hidden; border-radius: 18px}
.cards .service-thumbnail {border-radius: 0; aspect-ratio: 16 / 10}
.cards article h3 {margin: 1.1rem 1.3rem .4rem}
.cards article p {margin: 0 1.3rem 1.3rem}
#about .split {gap: clamp(1.8rem, 7vw, 6.5rem)}
#about .doctor-photo {justify-self: center}
@media (max-width: 660px) {
  .hero-grid {grid-template-columns: 1fr}
  .hero h1 {font-size: clamp(3.4rem, 13vw, 5rem)}
  .hero-photo {border-bottom-right-radius: 58px}
}

.community {padding-bottom: clamp(2rem, 4vw, 3.5rem)}
.community p:not(.eyebrow) {max-width: 65ch}
.community .community-source {font-size: .9rem; margin-bottom: 0}

html {scroll-padding-top: var(--header-height, 9rem)}
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 3px 14px rgba(9,46,71,.08);
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.community-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}
@media(max-width:660px) {
  .community {grid-template-columns: 1fr}
  .community-photo {max-width: 390px}
}

.treatment-intro {display:grid;grid-template-columns: minmax(0,1fr) minmax(0,360px);align-items:center;gap:clamp(1.5rem,5vw,5rem)}
.treatment-intro h1 {font-size:clamp(3.6rem,7vw,6rem)}
.treatment-intro p:not(.eyebrow),.treatment-details p,.treatment-next p {max-width:65ch}
.treatment-intro > img {display:block;width:100%;height:auto;border-radius:24px;box-shadow:var(--glass-shadow)}
.treatment-details h2,.treatment-next h2 {font-size:clamp(2.2rem,4vw,3.4rem)}
.treatment-details h2:not(:first-child) {margin-top:2rem}
.treatment-link a,.treatment-details a,.treatment-next a {color:var(--blue);text-underline-offset:.16em}
.treatment-next ul {display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;list-style:none;padding:0}
@media(max-width:660px){.treatment-intro{grid-template-columns:1fr}.treatment-intro > img{max-width:360px}}
