/* =========================================================
   Dental Homepage Template — Design System
   Clean & clinical · trustworthy blue · serif headings + sans body
   All themeable values live in :root and are driven by the Tweaks panel.
   ========================================================= */

:root {
  /* — Color — */
  --accent: #0d7180;                                   /* APD brand teal     */
  --brand-teal: #085e68;                               /* deep teal band     */
  --accent-ink: color-mix(in srgb, var(--accent) 78%, #0b1722); /* darker for hover/text */
  --accent-soft: color-mix(in srgb, var(--accent) 8%, #ffffff); /* faint tinted fields   */
  --tint: color-mix(in srgb, var(--accent) 5%, #ffffff);        /* alt section bg        */
  --tint-2: color-mix(in srgb, var(--accent) 11%, #ffffff);

  --ink: #0f2a2e;                                      /* near-black, teal-cool */
  --ink-2: #51606f;                                    /* muted body       */
  --ink-3: #8593a1;                                    /* captions         */
  --line: #e5eaf0;                                     /* hairline borders */
  --paper: #ffffff;
  --star: #e3a93a;

  /* — Highlight (Book Now CTA) — warm gold that pops against the teal — */
  --highlight: #e0a43b;
  --highlight-ink: color-mix(in srgb, var(--highlight) 82%, #3a1206);

  /* — Type — */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --fs-base: 17px;

  /* — Shape — */
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 999px;

  /* — Rhythm — */
  --section-pad: 104px;        /* vertical padding per section */
  --maxw: 1180px;
  --gap: 28px;

  --shadow-sm: 0 1px 2px rgba(20,34,46,.05), 0 2px 8px rgba(20,34,46,.04);
  --shadow-md: 0 8px 28px rgba(20,34,46,.08), 0 2px 6px rgba(20,34,46,.05);
  --shadow-lg: 0 24px 60px rgba(20,34,46,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 32px;
}

/* ---------- Section scaffolding ---------- */
section { padding-block: var(--section-pad); }
.section-tint { background: var(--tint); }
.section-ink  { background: var(--ink); color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.section-ink .eyebrow { color: color-mix(in srgb, var(--accent) 50%, #fff); }

.sec-head { max-width: 680px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(32px, 4vw, 46px);
}
.sec-head .support {
  margin-top: 18px;
  font-size: 1.075rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.section-ink .sec-head .support { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn-book { background: var(--highlight); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--highlight) 38%, transparent); }
.btn-book:hover { background: var(--highlight-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--highlight) 45%, transparent); }
.btn-outline { background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

/* ---------- Star rating ---------- */
.stars { color: var(--star); letter-spacing: 2px; font-size: .95rem; }

/* ---------- Pills / chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
}

/* ---------- Image slot defaults ---------- */
image-slot {
  --slot-bg: var(--tint-2);
  background: var(--tint-2);
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding-block: 8px;
}
.topbar .cta-text { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); text-align: center; }
.topbar .cta-text b { color: #fff; font-weight: 600; }
.topbar .tb-right { display: flex; align-items: center; gap: 22px; }
.topbar .tb-right a { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); font-weight: 500; }
.topbar .tb-right a:hover { color: #fff; }
.topbar .rating b { color: #fff; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .logo-slot {
  width: 200px; height: 52px;
  border-radius: 8px;
}
.brand .logo-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 600;
}
.brand .b-name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; line-height: 1.05; }
.brand .b-sub { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 14px; }
.nav-links a { font-weight: 500; color: var(--ink-2); font-size: .98rem; transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.nav-menu-head { display: none; }
.nav-menu-social { display: none; }
.btn-call { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-call:hover { background: var(--accent-ink); color: #fff; box-shadow: var(--shadow-md); }
.nav-call svg { width: 17px; height: 17px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
/* HERO — headline row, then a wide image card with a child cut-out popping up */
.hero { padding-block: 72px 92px; }
.hero-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px 56px;
  align-items: end;
}
.hero-lead .eyebrow { margin-bottom: 14px; }
.hero-lead h1 { font-size: clamp(40px, 5.6vw, 70px); font-weight: 700; }
.hero-lead .cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { padding-bottom: 6px; }
.hero-note .support { font-size: 1.12rem; color: var(--ink-2); line-height: 1.62; max-width: 42ch; }

.hero-stage { position: relative; margin-top: 52px; }
.hero-scene {
  display: block;
  width: 100%;
  height: clamp(380px, 34vw, 480px);
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-card);
  --slot-bg: var(--tint-2);
}
.hero-kid {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: clamp(320px, 42vw, 580px);
  height: 140%;
  z-index: 3;
  object-fit: contain;
  object-position: 50% 100%;
  background: transparent !important;
  --slot-bg: transparent;
}
.hero-pill, .hero-seal { position: absolute; bottom: clamp(16px, 3vw, 32px); z-index: 2; }
.hero-pill {
  left: clamp(14px, 3vw, 32px);
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius-pill);
  padding: 11px 20px 11px 13px;
  box-shadow: var(--shadow-lg);
}
.hero-pill .g-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
}
.hero-pill .hp-text { display: flex; flex-direction: column; line-height: 1.25; }
.hero-pill .hp-text b { font-size: .95rem; color: var(--ink); }
.hero-pill .stars { font-size: .88rem; }
.hero-pill .stars em { color: var(--ink-3); font-style: normal; font-weight: 500; letter-spacing: 0; }
.hero-seal {
  right: clamp(14px, 3vw, 32px);
  width: clamp(98px, 12vw, 128px); height: clamp(98px, 12vw, 128px);
  border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.hero-seal .hs-top, .hero-seal .hs-bot { font-size: .64rem; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero-seal .hs-big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1; margin: 2px 0; }

/* =========================================================
   REVIEWS
   ========================================================= */
/* ---------- Reviews slider ---------- */
.reviews-slider {
  margin-top: 54px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.reviews-viewport { flex: 1; overflow: hidden; }
.reviews-track {
  display: flex;
  gap: var(--gap);
  transition: transform .45s cubic-bezier(.4,.05,.2,1);
  will-change: transform;
}
.reviews-track .review-card {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
}
.slider-arrow {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-ink);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .18s, color .18s, border-color .18s, opacity .18s, transform .15s;
}
.slider-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.slider-arrow:active { transform: scale(.94); }
.slider-arrow:disabled { opacity: .35; cursor: default; pointer-events: none; }
.slider-dots {
  margin-top: 34px;
  display: flex; justify-content: center; gap: 10px;
}
.slider-dots button {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 25%, #fff);
  cursor: pointer;
  transition: background .18s, transform .18s, width .18s;
}
.slider-dots button[aria-current="true"] {
  background: var(--accent);
  width: 26px; border-radius: 999px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
}
.review-card .stars { font-size: 1rem; }
.review-card .quote { color: var(--ink); line-height: 1.6; }
.review-card .who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.review-card .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.review-card .who .name { font-weight: 600; }
.review-card .who .src { font-size: .82rem; color: var(--ink-3); }
.reviews-foot { margin-top: 40px; text-align: center; }

/* =========================================================
   OFFICE TOUR
   ========================================================= */
.tour-slider {
  margin-top: 50px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.tour-viewport { flex: 1; overflow: hidden; }
.tour-track {
  display: flex;
  gap: 18px;
  transition: transform .45s cubic-bezier(.4,.05,.2,1);
  will-change: transform;
}
.tour-track .tour-slide {
  flex: 0 0 100%;
  height: 560px;
  margin: 0;
  padding: 0;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.tour-track .tour-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-card);
}
.tour-track .tour-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* =========================================================
   ABOUT
   ========================================================= */
/* About section — stacked full-width layout */
.about-highlights-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.doctors-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.about-hl { display: flex; gap: 18px; background: var(--tint-2); border-radius: var(--radius-card); padding: 24px; }
.about-hl .ico {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.4rem;
}
.about-hl h4 { font-size: 1.2rem; margin-bottom: 5px; }
.about-hl p { color: var(--ink-2); font-size: .98rem; }
.assoc { margin-top: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.assoc .lbl { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.assoc-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.assoc-logo {
  height: 48px;
  width: auto;
  padding: 0 16px;
  filter: brightness(0) saturate(100%) invert(32%) sepia(60%) saturate(600%) hue-rotate(155deg) brightness(90%);
  opacity: 0.85;
  object-fit: contain;
}
}
.doctors { display: flex; flex-direction: column; gap: 18px; }
.doctor-card {
  display: flex; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 18px; box-shadow: var(--shadow-sm);
}
.doctor-card image-slot, .doctor-card .doc-photo { width: 180px; height: 220px; flex: none; border-radius: 14px; object-fit: cover; object-position: center top; }
.doctor-card h4 { font-size: 1.25rem; }
.doctor-card .title { color: var(--accent); font-weight: 600; font-size: .92rem; margin-top: 2px; }
.doctor-card p { color: var(--ink-2); font-size: .95rem; margin-top: 8px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card image-slot { width: 100%; height: 168px; border-radius: 0; }
.service-card .sc-img { width: 100%; height: 220px; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.service-card .sc-body { padding: 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.service-card h3 { font-size: 1.35rem; }
.service-card p { color: var(--ink-2); font-size: .97rem; }
.service-card .sc-link { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: .92rem; }
.badge-special {
  position: absolute; top: 14px; right: 14px;
  background: var(--star); color: #3a2c08;
  font-weight: 700; font-size: .8rem;
  padding: 6px 12px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   COMFORT MENU
   ========================================================= */
.comfort .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.amenities { display: grid; grid-template-columns: 1fr; gap: 16px; }
.amenity {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.amenity .ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.3rem;
}
.amenity h4 { font-size: 1.12rem; margin-bottom: 3px; }
.amenity p { color: var(--ink-2); font-size: .94rem; }

/* =========================================================
   LOCATION
   ========================================================= */
.location .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: stretch; }
.map-slot {
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--line); min-height: 420px;
  background: var(--tint-2);
  display: grid; place-items: center;
  position: relative;
}
.map-slot .map-note {
  font-family: ui-monospace, monospace; font-size: .8rem; color: var(--ink-3);
  text-align: center; padding: 20px;
}
.hours-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.hours-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.hours-card .addr { color: var(--ink-2); margin: 14px 0 20px; font-size: .98rem; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .98rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--ink-2); }
.hours-list .time { font-weight: 600; }
.hours-list .closed { color: var(--ink-3); font-weight: 500; }
.hours-card .btn { margin-top: 22px; }

/* =========================================================
   PRACTICE HIGHLIGHTS
   ========================================================= */
.highlights-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.highlight {
  text-align: center;
  padding: 8px 12px;
}
.highlight .ico {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.7rem;
}
.highlight h4 { font-size: 1.22rem; margin-bottom: 8px; }
.highlight p { color: var(--ink-2); font-size: .95rem; }

/* =========================================================
   FINANCING (accent band)
   ========================================================= */
.financing {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
  color: #fff;
}
.financing .wrap { display: flex; flex-direction: column; align-items: center; gap: 34px; text-align: center; }
.financing .eyebrow { color: rgba(255,255,255,.7); }
.financing h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); }
.financing .support { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 1.08rem; }
.financing .cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.follow-us { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.follow-label {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}
.follow-links { display: flex; gap: 14px; }
.follow-links a {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  transition: background .18s, border-color .18s, transform .15s;
}
.follow-links a:hover { background: #fff; color: var(--accent); border-color: #fff; transform: translateY(-3px); }

/* =========================================================
   CONNECT
   ========================================================= */
.connect { text-align: center; }
.connect-cta { margin-top: 40px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 26px; min-width: 190px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 600; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.social-btn .si {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.15rem; flex: none;
}
.social-btn .sb-sub { font-size: .8rem; color: var(--ink-3); font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: 72px 32px; }
.footer .wrap { display: block; }
.footer .f-locations {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding-bottom: 40px; margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer .f-loc h6 { font-family: var(--font-head); color: #fff; font-size: 1.18rem; font-weight: 600; margin: 0 0 10px; }
.footer .f-addr { font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.footer .f-loc-phone { display: inline-block; margin-top: 9px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; }
.footer .f-loc-phone:hover { color: var(--highlight); }
.footer .f-loc-hours { margin-top: 8px; font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.footer .f-loc-dir { display: inline-block; margin-top: 10px; font-size: .82rem; color: rgba(255,255,255,.82); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.footer .f-loc-dir:hover { color: var(--highlight); border-color: var(--highlight); }
.footer .f-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer .f-note { margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer h5 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; font-weight: 700; }
.footer .f-brand .b-name { color: #fff; font-family: var(--font-head); font-size: 1.4rem; }
.footer .f-brand p { margin-top: 14px; font-size: .95rem; max-width: 34ch; }
.footer .f-phone { color: #fff; font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; }
.footer .f-phone:hover { color: var(--accent); }
.footer .f-contact { margin-top: 4px; }
.footer .f-sub {
  color: rgba(255,255,255,.55);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 16px 0 4px;
}
.footer .f-contact .f-sub:first-child { margin-top: 0; }
.footer .f-val { font-size: .95rem; line-height: 1.5; color: rgba(255,255,255,.7); }
.footer .f-seal { margin-top: 20px; }
.footer .seal-slot {
  width: 76px; height: 76px;
  --slot-bg: rgba(255,255,255,.06);
  background: rgba(255,255,255,.06);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .95rem; }
.footer ul a:hover { color: #fff; }
.footer .f-hours li { display: flex; justify-content: space-between; gap: 14px; }
.footer .f-social { display: flex; gap: 12px; margin-top: 16px; }
.footer .f-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s;
}
.footer .f-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer .f-bottom {
  max-width: var(--maxw); margin: 48px auto 0; padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.footer .f-legal { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.footer .f-bottom a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* — Tablet — */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .about-highlights-row, .doctors-row { grid-template-columns: 1fr; }
  .comfort .wrap, .location .wrap, .financing .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .hero-note { padding-bottom: 0; }
  .hero-scene { height: clamp(360px, 50vw, 440px); }
  .hero-kid { width: clamp(220px, 44vw, 340px); height: 116%; }
  .reviews-track .review-card { flex-basis: calc((100% - var(--gap)) / 2); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-track .tour-slide { flex-basis: 100%; height: 420px; }
  .footer .f-locations { grid-template-columns: 1fr 1fr; gap: 30px 36px; }
  .footer .f-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* — Collapse nav to hamburger — */
@media (max-width: 900px) {
  .nav .wrap { gap: 14px; }
  .nav-links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100dvh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 88px 32px 48px;
    background: #fff;
    box-shadow: none;
    z-index: 60;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.4,.05,.2,1), opacity .25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 78px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-menu-head .logo-slot { width: 150px; height: 44px; }
  .nav-close {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-close:active { transform: scale(.94); }
  .nav-links a {
    width: 100%; max-width: 360px;
    text-align: center;
    padding: 18px 6px; font-size: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-of-type { border-bottom: 0; }
  .nav-menu-social {
    display: flex;
    gap: 16px;
    margin-top: 32px;
  }
  .nav-menu-social a {
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    padding: 0;
    transition: background .18s, color .18s, border-color .18s;
  }
  .nav-menu-social a:active { background: var(--accent); color: #fff; border-color: var(--accent); }
  .nav-book { display: none; }
  .nav-toggle { display: flex; }
}

/* — Mobile — */
@media (max-width: 680px) {
  :root { --section-pad: 60px; --fs-base: 16px; }
  .topbar { display: none; }
  .wrap { padding-inline: 20px; }
  .nav .wrap { min-height: 66px; }
  .brand .logo-slot { width: 150px; height: 44px; }
  .hero { padding-block: 48px 60px; }
  .hero-stage { margin-top: 32px; }
  .hero-scene { height: clamp(380px, 96vw, 520px); }
  .hero-kid { width: 64%; height: 110%; }
  .hero-seal { width: 76px; height: 76px; }
  .hero-pill { padding: 8px 14px 8px 9px; gap: 9px; }
  .hero-pill .g-mark { width: 32px; height: 32px; font-size: 1.05rem; }
  .hero-pill .hp-text b { font-size: .8rem; }
  .hero-pill .stars { font-size: .8rem; }
  .reviews-track .review-card { flex-basis: 100%; }
  .services-grid, .highlights-grid { grid-template-columns: 1fr; }
  .tour-track .tour-slide { flex-basis: 100%; height: 260px; }
  .slider-arrow { width: 44px; height: 44px; }
  .reviews-slider, .tour-slider { gap: 10px; }
  .doctor-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .doctor-card image-slot, .doctor-card .doc-photo { width: 100%; height: 220px; }
  .map-slot { min-height: 280px; }
  .hours-card { padding: 24px; }
  .footer .f-locations { grid-template-columns: 1fr 1fr; gap: 26px 22px; }
  .footer .f-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer .f-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .connect-cta, .financing .cta-row { flex-direction: column; width: 100%; }
  .connect-cta .btn, .financing .cta-row .btn { width: 100%; }
}

/* Hide elements when a section is toggled off via Tweaks */
[data-hidden="true"] { display: none !important; }

/* Lock background scroll while the mobile nav overlay is open */
body.nav-open { overflow: hidden; }

/* =========================================================
   APD — BRAND LOGO
   ========================================================= */
.brand-logo { height: 50px; width: auto; max-width: none; display: block; flex: none; }
.brand { flex: none; }
.nav-links { gap: 20px; margin-left: 6px; }
.nav-menu-head .brand-logo { height: 44px; }

/* =========================================================
   APD — NAV DROPDOWN (About)
   ========================================================= */
.nav-item.has-sub { position: relative; display: flex; align-items: center; }
.nav-top { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--ink-2); font-size: .98rem; transition: color .15s; }
.nav-top .caret { transition: transform .2s; }
.nav-item.has-sub:hover .nav-top { color: var(--accent); }
.nav-item.has-sub:hover .caret { transform: rotate(180deg); }
.nav-sub {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 10px; min-width: 214px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; z-index: 70;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-item.has-sub:hover .nav-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-sub a { padding: 9px 14px; border-radius: 10px; font-size: .95rem; color: var(--ink-2); white-space: nowrap; }
.nav-sub a:hover { background: var(--accent-soft); color: var(--accent); }

/* =========================================================
   APD — SMILEPATH ROADMAP (Sec 2)
   ========================================================= */
.smilepath {
  list-style: none; margin: 64px 0 0; padding: 0;
  display: flex; gap: 14px;
}
.sp-stage {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 9px; position: relative; padding-top: 30px;
}
.sp-stage::before {
  content: ""; position: absolute; top: 13px; right: 50%;
  width: 100%; height: 2px;
  background: color-mix(in srgb, var(--accent) 28%, #fff); z-index: 0;
}
.sp-stage:first-child::before { display: none; }
.sp-dot {
  position: absolute; top: 4px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--tint);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, #fff);
  z-index: 1;
}
.sp-age { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.sp-label { font-size: .95rem; color: var(--ink-2); max-width: 16ch; line-height: 1.4; }

/* =========================================================
   APD — TEAM ROSTER (Sec 5)
   ========================================================= */
.roster-card {
  margin-top: 24px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 32px 36px; box-shadow: var(--shadow-sm);
}
.roster-card > .eyebrow { margin-bottom: 24px; }
.roster-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.roster-group h5 {
  font-family: var(--font-body); font-size: .76rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 700;
}
.roster-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.roster-group li { display: flex; align-items: center; gap: 12px; }
.doc-avatar {
  flex: none; width: 80px; height: 80px; border-radius: 50%;
  background: var(--tint-2); border: 2px solid var(--line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394b8c4' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-7 8-7s8 3 8 7'/%3E%3C/svg%3E");
  background-size: 60%; background-repeat: no-repeat; background-position: center;
}
.roster-group li a { font-size: .92rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.roster-group li a:hover { color: var(--accent); text-decoration: underline; }

/* =========================================================
   APD — LOCATIONS BAND (Sec 8)
   ========================================================= */
.locations { background: var(--brand-teal); }
.locations .sec-head h2 { color: #fff; }
.locations .eyebrow { color: var(--highlight); }
.loc-grid {
  margin-top: 54px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px;
}
.loc-col {
  display: flex; flex-direction: column; gap: 0;
  background: rgba(255,255,255,.06);
  border-radius: 20px;
  overflow: hidden;
}
.loc-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  padding: 24px 26px 20px;
  align-items: start;
}
.loc-left { display: flex; flex-direction: column; gap: 4px; }
.loc-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.loc-col h3 { color: #fff; font-size: 1.7rem; }
.loc-phone { color: var(--highlight); font-weight: 700; font-size: 1.22rem; font-family: var(--font-head); }
.loc-ortho { color: rgba(255,255,255,.78); font-size: .94rem; }
.loc-ortho a { color: var(--highlight); font-weight: 600; }
.loc-addr { color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.5; margin-top: 4px; }
.loc-map {
  width: 100%; height: 220px; flex-shrink: 0;
}
.loc-map iframe {
  width: 100%; height: 100%; border: none; display: block;
}
}
.loc-dir {
  margin-top: 14px; color: #fff; font-weight: 600; font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.loc-dir:hover { color: var(--highlight); border-color: var(--highlight); }
.loc-hours {
  margin-top: 48px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px;
}
.lh-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lh-day { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.lh-time { font-weight: 600; color: #fff; }

/* =========================================================
   APD — MEMBERSHIP FEATURE HIGHLIGHT (Sec 9)
   ========================================================= */
.highlight-feature {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, #fff);
  border-radius: var(--radius-card);
  padding: 26px 22px;
}
.highlight-feature .ico { background: var(--accent); color: #fff; }
.hl-price { margin-top: 12px; font-size: .95rem; color: var(--accent-ink); }
.hl-price strong { font-family: var(--font-head); font-size: 1.05rem; }

/* =========================================================
   APD — CONNECT BG SECTION
   ========================================================= */
.connect.connect-bg {
  position: relative;
  background-image: url('assets/connect-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}
.connect.connect-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.82);
  z-index: 0;
}
.connect.connect-bg .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* =========================================================
   APD — SERVICE CARD hover radial wash
   ========================================================= */
.sc-body {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.sc-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #e0a43b;
  clip-path: circle(0% at 0% 100%);
  transition: clip-path .52s cubic-bezier(.4, 0, .2, 1);
  z-index: 0;
  border-radius: inherit;
}
.service-card:hover .sc-body::before {
  clip-path: circle(170% at 0% 100%);
}
.sc-body > * {
  position: relative;
  z-index: 1;
}
.sc-body h3,
.sc-body p,
.sc-body .sc-link {
  transition: color .3s ease;
}
.service-card:hover .sc-body h3,
.service-card:hover .sc-body p {
  color: #fff;
}
.service-card:hover .sc-body .sc-link {
  color: rgba(255,255,255,.9);
}

/* =========================================================
   APD — DOCTOR AVATAR (inline roster list)
   ========================================================= */
.roster-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.doc-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.doc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* =========================================================
   APD — RESPONSIVE for new blocks
   ========================================================= */
@media (max-width: 1200px) {
  .nav-membership { display: none; }
}
@media (max-width: 1024px) {
  .loc-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
}
@media (max-width: 900px) {
  .nav-links .nav-item.has-sub { width: 100%; max-width: 360px; flex-direction: column; align-items: center; }
  .nav-top .caret { display: none; }
  .nav-sub { display: none; }
}
@media (max-width: 680px) {
  .smilepath { flex-direction: column; gap: 0; margin-top: 44px; }
  .sp-stage { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 0 0 26px 34px; }
  .sp-stage::before { top: 18px; right: auto; left: 8px; width: 2px; height: 100%; }
  .sp-stage:last-child::before { display: none; }
  .sp-dot { top: 4px; left: 0; transform: none; }
  .sp-label { max-width: none; }
  .roster-cols { grid-template-columns: 1fr 1fr; gap: 18px; }
  .loc-grid { grid-template-columns: 1fr; gap: 32px; }
  .loc-hours { gap: 16px 28px; }
}

/* =========================================================
   MOBILE FLOATING CTA — visible at top, hides on scroll down
   ========================================================= */
.mobile-cta {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  background: var(--highlight);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--highlight) 40%, transparent), 0 2px 8px rgba(20,34,46,.18);
  transition: transform .3s cubic-bezier(.4,.05,.2,1), opacity .3s ease;
}
.mobile-cta.hidden {
  transform: translateX(-50%) translateY(140%);
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 680px) {
  .mobile-cta { display: inline-flex; }
}
