/* ============================================================
   All Smiles Family Dentistry — brand rebuild
   Matches the live site's palette (teal/slate) and layout,
   rebuilt with clean modern CSS instead of the old page-builder markup.
   ============================================================ */

/* ---------- native cross-document page transitions ---------- */
@view-transition {
  navigation: auto;
}
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.28s;
  animation-timing-function: ease;
}

:root {
  --teal:       #38dbc2;
  --teal-dark:  #22a894;
  --slate:      #4d6675;
  --slate-dark: #33454F;
  --ink:        #2c3438;
  --ink-soft:   #647178;
  --bg:         #ffffff;
  --bg-alt:     #F3F6F5;
  --line:       #e3ebec;

  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-body:    "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 12px;
  --ease: cubic-bezier(.22,.8,.28,1);
}

* { box-sizing: border-box; }
html { 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; }
  ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--slate); margin: 0; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: 0.2px; text-align: center; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--slate); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-dark); text-align: center; margin: 0 0 8px;
}

/* ---------- buttons ---------- */
.btn-solid, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.1px;
  padding: 0.9em 1.7em; border-radius: 8px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-solid { background: var(--slate); color: #fff; box-shadow: 0 4px 12px rgba(51,69,79,.18); }
.btn-solid:hover { background: var(--slate-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(51,69,79,.24); }
.btn-outline { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-outline:hover { background: var(--slate); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

.btn-leaf {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 150px; height: 46px; flex-shrink: 0; text-decoration: none;
}
.btn-leaf svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.btn-leaf svg path { fill: var(--teal); transition: fill .2s var(--ease); }
.btn-leaf:hover svg path { fill: var(--teal-dark); }
.btn-leaf span {
  position: relative; z-index: 1; color: #fff; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---------- topbar ---------- */
.topbar { background: var(--slate); color: #fff; font-size: 0.8rem; }
.topbar .wrap, .site-header .wrap { max-width: none; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 28px; }
.topbar a { text-decoration: none; color: #fff; margin-right: 20px; opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.topbar-right a { margin-right: 0; margin-left: 14px; font-weight: 700; }
.tb-icon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.tb-icon--lg { width: 22px; height: 22px; }
@media (min-width: 961px) {
  .topbar { font-size: 1.05rem; }
  .topbar-inner { padding: 12px 24px; }
  .tb-icon { width: 18px; height: 18px; }
  .tb-icon--lg { width: 26px; height: 26px; }
}
.topbar a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 700px) { .topbar-left a:last-child { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 14px 28px; }
.brand-logo { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; margin: 0 auto 0 40px; }
@media (min-width: 961px) {
  .header-inner { padding: 8px 24px; gap: 24px; }
  .brand-logo { height: 84px; }
  .main-nav { flex: 1; justify-content: space-evenly; gap: 14px; margin: 0 16px; }
  .main-nav > a, .has-dropdown > a { font-size: 0.98rem; white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1360px) {
  .header-inner { gap: 14px; padding: 8px 16px; }
  .brand-logo { height: 60px; }
  .main-nav { gap: 8px; margin: 0 4px; }
  .main-nav > a, .has-dropdown > a { font-size: 0.8rem; }
  .btn-leaf { width: 130px; }
}
.main-nav > a, .has-dropdown > a {
  text-decoration: none; font-weight: 600; font-size: 0.88rem; color: var(--slate);
  text-transform: uppercase; letter-spacing: 0.3px; padding: 8px 0; cursor: pointer;
}
.main-nav > a:hover, .has-dropdown > a:hover { color: var(--teal-dark); }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 12px 24px rgba(45,60,68,.12); padding: 10px 0; min-width: 220px;
  display: none; flex-direction: column; z-index: 50;
}
.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown { display: flex; }
.dropdown a { text-decoration: none; padding: 9px 18px; font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.dropdown a:hover { background: var(--bg-alt); color: var(--slate); }
.dropdown-caret { display: inline-block; margin-left: 4px; font-size: 0.7em; }

/* mega dropdown (Services) — grouped categories instead of one flat list */
.dropdown--mega {
  display: none; flex-direction: row; flex-wrap: wrap; align-items: flex-start;
  min-width: 640px; max-width: 720px; padding: 20px 24px; gap: 20px 28px;
}
.has-dropdown:hover .dropdown--mega,
.has-dropdown.is-open .dropdown--mega { display: flex; }
.dropdown-group { display: flex; flex-direction: column; min-width: 150px; }
.dropdown-group__label {
  margin: 0 0 6px; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-dark);
}
.dropdown-group a { padding: 5px 0; white-space: normal; }
.dropdown-group__all {
  width: 100%; text-align: center; border-top: 1px solid var(--line); margin-top: 4px;
  padding: 12px 0 0 !important; font-weight: 700; color: var(--slate) !important;
}
@media (max-width: 1180px) { .dropdown--mega { min-width: 520px; max-width: 90vw; } }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .main-nav, .btn-leaf { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; margin-left: auto; background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--slate); }
  .mobile-nav { display: flex; flex-direction: column; padding: 0 28px 18px; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
  .mobile-nav.open { max-height: 900px; }
  .mobile-nav a, .mobile-nav .mobile-submenu-toggle {
    padding: 12px 0; text-decoration: none; font-weight: 600; color: var(--slate);
    border-top: 1px solid var(--line); text-transform: uppercase; font-size: 0.85rem;
    background: none; border-left: none; border-right: none; border-bottom: none;
    width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  }
  .mobile-nav .btn-solid { margin-top: 12px; border-top: none; }
  .mobile-submenu { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
  .mobile-submenu.open { max-height: 600px; }
  .mobile-submenu a { border-top: 1px solid var(--line); padding: 10px 0 10px 18px; font-size: 0.8rem; text-transform: none; font-weight: 500; color: var(--ink-soft); }
}

/* ---------- interior page hero ---------- */
.page-hero {
  position: relative; min-height: 60vh; max-height: 620px; display: flex; flex-direction: column; justify-content: center;
  padding: 64px 0 16px; text-align: center;
  background: linear-gradient(rgba(45,60,68,.72), rgba(45,60,68,.72)), center center / cover no-repeat;
}
@media (max-width: 700px) { .page-hero { min-height: 340px; max-height: 460px; } }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .eyebrow { color: var(--teal); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; font-size: 0.82rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line); margin-left: 6px; }
.breadcrumbs a { text-decoration: none; color: var(--slate); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--ink-soft); font-weight: 600; }

/* breadcrumb overlaid on the dark hero banner, matching the live site */
.breadcrumbs--on-hero { background: transparent; border-bottom: none; margin-top: 28px; }
.breadcrumbs--on-hero ol { justify-content: center; padding: 0 0 4px; }
.breadcrumbs--on-hero li { color: rgba(255,255,255,.75); }
.breadcrumbs--on-hero li:not(:last-child)::after { color: rgba(255,255,255,.4); }
.breadcrumbs--on-hero a { color: #fff; }
.breadcrumbs--on-hero li[aria-current] { color: #fff; }

/* ---------- back link ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--slate); font-weight: 600; font-size: 0.88rem; margin-bottom: 20px; }
.back-link:hover { color: var(--teal-dark); }

/* ---------- service / content detail page ---------- */
.detail { max-width: 760px; margin: 0 auto; }
.detail h2 { text-align: left; margin-top: 2em; }
.detail ul { padding-left: 1.2em; color: var(--ink-soft); }
.detail li { margin-bottom: 0.5em; }
.detail-cta { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; margin-top: 40px; }
.detail-cta h3 { margin-bottom: 14px; }
.detail-cta .btn-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.related-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.related-services a {
  display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; font-weight: 600; color: var(--slate); font-size: 0.9rem; text-align: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.related-services a:hover { border-color: var(--teal); color: var(--teal-dark); }
@media (max-width: 700px) { .related-services { grid-template-columns: 1fr; } }

/* ---------- alternating doctor profile blocks ---------- */
.doctor-profile { display: flex; gap: 44px; align-items: flex-start; margin: 0 0 56px; }
.doctor-profile--reverse { flex-direction: row-reverse; }
.doctor-profile__media { flex: 0 0 320px; max-width: 320px; }
.doctor-profile__media img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px rgba(45,60,68,.09); }
.doctor-profile__body { flex: 1; min-width: 0; }
.doctor-profile__body h2 { margin-top: 0; }
.doctor-profile__body h3 { margin-top: 1.4em; }
@media (max-width: 800px) {
  .doctor-profile, .doctor-profile--reverse { flex-direction: column; }
  .doctor-profile__media { flex-basis: auto; max-width: 260px; margin: 0 auto 20px; }
}

/* ---------- financing option cards ---------- */
.financing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 28px 0; }
.financing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; box-shadow: 0 8px 20px rgba(45,60,68,.06);
}
.financing-card h3 { font-size: 1.3rem; margin: 0 0 4px; }
.financing-card .financing-tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-dark); font-weight: 700; margin-bottom: 8px; }
.financing-card p { flex: 1; }
.financing-card .btn-solid, .financing-card .btn-outline { align-self: flex-start; margin-top: 8px; }
.financing-card .link-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 760px) { .financing-grid { grid-template-columns: 1fr; } }

/* ---------- trust badges ---------- */
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0; }
.trust-badges span {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 100px; padding: 6px 16px; font-size: 0.8rem; font-weight: 600;
}

/* ---------- carrier grid (kept visually secondary/reference-only) ---------- */
.carrier-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.carrier-grid span {
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 100px; padding: 7px 16px; font-size: 0.85rem;
}

/* ---------- note / disclaimer callout ---------- */
.note-callout {
  background: #fff8ec; border: 1px solid #f0d9a8; border-left: 4px solid var(--teal);
  border-radius: 8px; padding: 16px 20px; margin: 0 0 28px; font-size: 0.92rem; color: var(--ink-soft);
}
.note-callout strong { color: var(--slate); }

/* ---------- glossary term grid ---------- */
.term-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
.term-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.term-card h4 { margin: 0 0 6px; color: var(--teal-dark); font-family: var(--font-heading); font-size: 1.02rem; }
.term-card p { margin: 0; font-size: 0.9rem; }
@media (max-width: 700px) { .term-grid { grid-template-columns: 1fr; } }

/* ---------- simple checklist ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; }
.checklist li::before { content: "\2713"; color: var(--teal-dark); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ---------- about-section subnav pills ---------- */
.subnav-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.subnav-pills a {
  display: inline-block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 18px; font-weight: 600; color: var(--slate); font-size: 0.85rem;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.subnav-pills a:hover { border-color: var(--teal); color: var(--teal-dark); }
.subnav-pills a.is-active { background: var(--slate); border-color: var(--slate); color: #fff; }

/* ---------- simple content sections (patient resources, privacy) ---------- */
.simple-page .wrap { max-width: 820px; }
.simple-page h2 { text-align: left; margin-top: 1.6em; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--slate); font-family: var(--font-heading); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--teal-dark); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; height: 78vh; min-height: 460px; max-height: 720px; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,30,33,.72), rgba(20,30,33,.15)); }
.hero-content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; max-width: var(--wrap); margin: 0 auto; padding: 0 28px;
}
.hero-eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.hero-content h1 { color: #fff; margin-bottom: 16px; max-width: 16ch; }
.hero-lede { color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 48ch; margin: 0 0 30px; }

/* ---------- section rhythm ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; }

/* ---------- about ---------- */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about-media img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
  border-radius: var(--radius); box-shadow: 0 20px 40px rgba(45,60,68,.12);
}
.about-copy .eyebrow-title { text-align: left; color: var(--teal); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 1px; }
.about-copy h2 { text-align: left; margin-bottom: 20px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: 0.5px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.about-copy h2 span { color: var(--teal-dark); }
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; } .about-copy h2 { text-align: center; } }

/* ---------- services ---------- */
.services { background: var(--bg-alt); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(45,60,68,.07); }
.service-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.service-card p { font-size: 0.88rem; margin-bottom: 0; }
.svc-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; color: var(--teal-dark);
}
.svc-icon-wrap svg { width: 32px; height: 32px; }
.service-card:hover .svc-icon-wrap { background: var(--teal); color: #fff; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- homepage "what we offer" icon band (matches real site) ---------- */
.services--iconband {
  background-image: url('/img/services-wave-bg.webp');
  background-size: cover; background-position: center; background-attachment: fixed;
}
.services--iconband .section-head h2 { color: #fff; }
.services--iconband .section-head .eyebrow { color: #fff; opacity: .85; }
.icon-badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.icon-badge-card { display: block; text-align: center; text-decoration: none; }
.icon-badge {
  width: 190px; height: 190px; max-width: 100%; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  box-shadow: 0 16px 32px rgba(14,36,30,.18); transition: transform .25s var(--ease);
}
.icon-badge img { width: 68%; height: 68%; object-fit: contain; }
.icon-badge { animation: icon-float 3.4s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
.icon-badge-card:nth-child(2) .icon-badge { --float-delay: -.5s; }
.icon-badge-card:nth-child(3) .icon-badge { --float-delay: -1s; }
.icon-badge-card:nth-child(4) .icon-badge { --float-delay: -1.5s; }
.icon-badge-card:nth-child(5) .icon-badge { --float-delay: -2s; }
.icon-badge-card:nth-child(6) .icon-badge { --float-delay: -2.5s; }
.icon-badge-card:hover .icon-badge { transform: translateY(-10px) scale(1.05); animation-play-state: paused; }
@keyframes icon-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .icon-badge { animation: none; } }
.icon-badge-card h3 { color: var(--slate); text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.3px; }
@media (max-width: 900px) { .icon-badge-grid { grid-template-columns: repeat(2, 1fr); } .services--iconband { background-attachment: scroll; } }
@media (max-width: 520px) { .icon-badge-grid { grid-template-columns: 1fr; } }

/* ---------- doctors ---------- */
.doctors {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 1000'%3E%3Cg %3E%3Ccircle fill='%23FFFFFF' cx='50' cy='0' r='50'/%3E%3Cg fill='%23fafdfe' %3E%3Ccircle cx='0' cy='50' r='50'/%3E%3Ccircle cx='100' cy='50' r='50'/%3E%3C/g%3E%3Ccircle fill='%23f6fbfd' cx='50' cy='100' r='50'/%3E%3Cg fill='%23f1f9fc' %3E%3Ccircle cx='0' cy='150' r='50'/%3E%3Ccircle cx='100' cy='150' r='50'/%3E%3C/g%3E%3Ccircle fill='%23ecf7fc' cx='50' cy='200' r='50'/%3E%3Cg fill='%23e7f5fb' %3E%3Ccircle cx='0' cy='250' r='50'/%3E%3Ccircle cx='100' cy='250' r='50'/%3E%3C/g%3E%3Ccircle fill='%23e3f4fa' cx='50' cy='300' r='50'/%3E%3Cg fill='%23def2f9' %3E%3Ccircle cx='0' cy='350' r='50'/%3E%3Ccircle cx='100' cy='350' r='50'/%3E%3C/g%3E%3Ccircle fill='%23d9f0f8' cx='50' cy='400' r='50'/%3E%3Cg fill='%23d4eef7' %3E%3Ccircle cx='0' cy='450' r='50'/%3E%3Ccircle cx='100' cy='450' r='50'/%3E%3C/g%3E%3Ccircle fill='%23cfecf7' cx='50' cy='500' r='50'/%3E%3Cg fill='%23caeaf6' %3E%3Ccircle cx='0' cy='550' r='50'/%3E%3Ccircle cx='100' cy='550' r='50'/%3E%3C/g%3E%3Ccircle fill='%23c5e8f5' cx='50' cy='600' r='50'/%3E%3Cg fill='%23c0e6f4' %3E%3Ccircle cx='0' cy='650' r='50'/%3E%3Ccircle cx='100' cy='650' r='50'/%3E%3C/g%3E%3Ccircle fill='%23bbe4f3' cx='50' cy='700' r='50'/%3E%3Cg fill='%23b6e2f2' %3E%3Ccircle cx='0' cy='750' r='50'/%3E%3Ccircle cx='100' cy='750' r='50'/%3E%3C/g%3E%3Ccircle fill='%23b1e1f1' cx='50' cy='800' r='50'/%3E%3Cg fill='%23abdff1' %3E%3Ccircle cx='0' cy='850' r='50'/%3E%3Ccircle cx='100' cy='850' r='50'/%3E%3C/g%3E%3Ccircle fill='%23a6ddf0' cx='50' cy='900' r='50'/%3E%3Cg fill='%23a1dbef' %3E%3Ccircle cx='0' cy='950' r='50'/%3E%3Ccircle cx='100' cy='950' r='50'/%3E%3C/g%3E%3Ccircle fill='%239BD9EE' cx='50' cy='1000' r='50'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: contain;
  padding-top: 50px;
}
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doctor-grid--team { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 24px auto 0; justify-items: center; }
.doctor-grid--team .doctor-card { width: 100%; max-width: 220px; }
.doctor-grid--team h3 { color: var(--teal-dark); font-size: 1rem; }
.doctor-avatar--empty { background: var(--bg-alt); color: var(--slate); border: 1px dashed var(--line); box-shadow: none; }
@media (max-width: 560px) { .doctor-grid--team { grid-template-columns: repeat(2, 1fr); } }

/* ---------- section sub-heading (below a page-hero banner) ---------- */
.section-subheading {
  text-align: center; font-family: var(--font-heading); color: var(--teal-dark);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 400; margin: 40px 0 8px;
}

/* ---------- location / hours / contact info strip ---------- */
.info-strip {
  background: linear-gradient(135deg, var(--teal), var(--slate));
  padding: 48px 0;
}
.info-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-strip__card { background: #fff; border-radius: var(--radius); padding: 26px; }
.info-strip__card .icon { display: block; margin-bottom: 10px; color: var(--teal-dark); }
.info-strip__card .icon svg { width: 30px; height: 30px; }
.info-strip__card h3 { margin: 0 0 12px; }
.info-strip__card dl { margin: 0; }
.info-strip__card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--ink-soft); padding: 3px 0; }
.info-strip__card .row strong { color: var(--slate); font-weight: 600; }
.info-strip__card p { margin: 0 0 6px; font-size: 0.92rem; }
.info-strip__card a { color: var(--teal-dark); text-decoration: none; }
.info-strip__card a:hover { text-decoration: underline; }
@media (max-width: 860px) { .info-strip .wrap { grid-template-columns: 1fr; } }

.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
.doctor-card { display: block; text-align: center; text-decoration: none; color: inherit; }
.doctor-card img {
  width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  margin: 0 auto 16px; box-shadow: 0 12px 24px rgba(45,60,68,.08); transition: transform .3s ease;
}
.doctor-card:hover img { transform: scale(1.04); }
.doctor-avatar {
  width: 100%; max-width: 260px; aspect-ratio: 1; border-radius: 50%; background: var(--slate); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-heading);
  font-size: 2rem; margin: 0 auto 16px; box-shadow: 0 12px 24px rgba(45,60,68,.08);
}
.doctor-card h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--slate); }
.doctor-card p { font-size: 0.86rem; margin-bottom: 0; }
@media (max-width: 900px) { .doctor-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- credentials ---------- */
.credentials { padding: 56px 0; background: #E6F7F2; }
.insurance-teaser { padding: 64px 0; background: #E6F7F2; text-align: center; }
.insurance-teaser h2 { margin-bottom: 14px; }
.insurance-teaser p { max-width: 640px; margin: 0 auto 24px; }

.cta-banner { padding: 0; }
.cta-banner .wrap { padding: 0; }
.cta-banner__inner {
  background: var(--teal); border-radius: var(--radius); padding: 56px 40px; text-align: center;
  box-shadow: 0 20px 40px rgba(45,60,68,.12);
}
.cta-banner h2 { color: #14211d; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.cta-banner p { color: #14211d; margin-bottom: 24px; }
.cta-banner .btn-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.credentials .wrap h2 { margin-bottom: 32px; }
.credentials-inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.credential-box {
  display: flex; align-items: center; justify-content: center;
  width: 130px; height: 130px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 20px rgba(45,60,68,.06); padding: 16px;
}
.credentials-inner img { height: auto; max-height: 64px; width: auto; max-width: 100%; }

/* ---------- reviews ---------- */
.reviews { background: var(--slate); }
.reviews .eyebrow { color: var(--teal); }
.reviews h2 { color: #fff; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; margin: 0; }
.stars { color: var(--teal); letter-spacing: 2px; margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 14px; color: #fff; font-size: 0.95rem; }
.review-card figcaption { font-size: 0.8rem; color: #cfe0e0; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- visit / contact ---------- */
.visit { background: var(--teal); }
.visit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.visit-copy h2 { text-align: left; margin-bottom: 24px; color: #14211d; }
.visit-copy .eyebrow { text-align: left; color: #14211d; }
.visit-copy p { color: #1c2e29; }
.visit-details { display: flex; flex-direction: column; gap: 20px; margin: 0 0 28px; }
.visit-details dt { font-weight: 700; color: #14211d; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.visit-details dd { margin: 0; color: #1c2e29; }
.visit-details a { text-decoration: none; color: #14211d; border-bottom: 1px solid rgba(20,33,29,.35); }
.visit-copy .btn-outline { border-color: #14211d; color: #14211d; }
.visit-copy .btn-outline:hover { background: #14211d; color: #fff; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(20,33,29,.2); }

.visit-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; align-self: start; box-shadow: 0 20px 40px rgba(20,33,29,.14); }
.form-title { font-family: var(--font-heading); font-size: 1.15rem; color: var(--slate); margin-bottom: 18px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  font: inherit; font-size: 0.92rem; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--teal); }
.form-note { font-size: 0.84rem; color: var(--ink-soft); min-height: 1.2em; margin: 12px 0 0; text-align: center; }
.form-note.success { color: var(--teal-dark); font-weight: 600; }

@media (max-width: 860px) { .visit-inner { grid-template-columns: 1fr; } .visit-copy h2, .visit-copy .eyebrow { text-align: center; } }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-dark); color: #cfdadf; padding: 48px 0 20px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-logo-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo { height: 50px; background: #fff; padding: 10px 16px; border-radius: 8px; }
.footer-hours { display: flex; flex-direction: column; gap: 4px; margin-left: auto; text-align: right; }
.footer-hours .row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.85rem; }
.footer-nav a, .footer-social a { text-decoration: none; font-size: 0.9rem; color: #cfdadf; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; gap: 16px; }
.footer-fine { width: 100%; font-size: 0.78rem; color: #9fb2b9; margin: 16px 0 0; line-height: 1.6; text-align: center; }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--slate-dark); color: #fff; padding: 18px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.88rem; color: #e6eef0; max-width: 640px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .btn-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-solid { padding: 0.6em 1.3em; font-size: 0.85rem; }
.cookie-banner .btn-outline { padding: 0.6em 1.3em; font-size: 0.85rem; border-color: rgba(255,255,255,.5); color: #fff; }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; text-align: center; padding: 16px; } }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } .footer-nav { align-items: center; } .footer-hours { margin-left: 0; text-align: center; } .footer-hours .row { justify-content: center; gap: 8px; } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease) var(--reveal-delay, 0ms), transform .6s var(--ease) var(--reveal-delay, 0ms); }
.reveal.in { opacity: 1; transform: translateY(0); }
.icon-badge-card.reveal { transform: translateY(28px) scale(.9); }
.icon-badge-card.reveal.in { transform: translateY(0) scale(1); }
.reveal--left { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }
.reveal--left.in, .reveal--right.in { transform: translateX(0); }
.reveal.from-top { transform: translateY(-22px); }
.reveal.from-top.in { transform: translateY(0); }
.reveal--zoom { transform: scale(.94); }
.reveal--zoom.in { transform: scale(1); }
.site-header { transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(45,60,68,.14); }
.icon-badge { transition: transform .25s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .icon-badge-card.reveal, .reveal--left, .reveal--right, .reveal--zoom, .reveal.from-top { opacity: 1; transform: none; transition: none; }
}
