/* ==========================================================
   Bellaire Dental Group: Flash Dental structure rebuild
   Palette: harbor navy family + butter yellow + warm white
   (role-for-role port of flashdental.net's system)
   ========================================================== */

:root {
  --daylight: #FFFBF8;     /* warm white ground (Flash #FFFBF8) */
  --ink: #0C1A2A;          /* text ink (Flash #091D1E) */
  --navy: #1D3A5C;         /* dark section bg (Flash #1C575B) */
  --navy-deep: #0A1626;    /* gradient end (Flash #091D1E) */
  --navy-header: #14293F;  /* sticky header (Flash #133A3D) */
  --butter: #FEDD7F;       /* CTA + dividers (identical to Flash) */
  --powder: #9DC4E8;       /* icon accent (Flash turquoise #95CBC3) */
  --brand-cyan: #35C6E8;   /* from the practice's logo mark */
  --white-warm: #FFFBF8;
  --rail-w: 5rem;
  --header-h: 5.25rem;   /* fixed header clearance for the nav overlay */
  --font-body: 'Outfit', sans-serif;
  --font-brand: 'Josefin Sans', sans-serif;  /* Brandon Grotesque stand-in */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  font-family: var(--font-body);
  background: var(--daylight);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--butter); color: var(--navy); }

/* Focus visibility: navy ring on light ground, butter ring inside dark surfaces */
:focus-visible { outline: 2px solid var(--focus, var(--navy)); outline-offset: 3px; border-radius: 2px; }
.header, .nav-overlay, .section_hero, .section_explore, .section_feat-testimonial,
.section_testimonials, .section_insurance, .section_offer, .footer_wrapper, .rail { --focus: var(--butter); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; font-size: inherit; }
a { color: inherit; }

.container-large { max-width: 75rem; margin: 0 auto; padding: 0 2.5rem; }
.container-medium { max-width: 60rem; margin: 0 auto; padding: 0 2.5rem; }

h1 { font-family: var(--font-body); font-weight: 700; font-size: clamp(3rem, 6vw, 5.125rem); line-height: 1.05; }
.brand-h, .footer_cta h2, .insurance_content h2, .locations_text h2 {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.56rem);
  line-height: 1.125;
  letter-spacing: .01em;
}
.is-navy { color: var(--navy); }
.text-display { font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.1; font-family: var(--font-brand); font-weight: 500; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--butter); color: var(--navy); padding: .75rem 1.25rem;
  border-radius: .2rem; text-decoration: none; font-weight: 500;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons (Flash .button port) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--navy); background: var(--butter);
  border-radius: .2rem; padding: .78rem 1.5rem;
  font-weight: 500; font-size: 1rem; letter-spacing: .005em;
  text-decoration: none; transition: all .36s; min-height: 44px;
}
.btn:hover { background: #fff; }
.btn:active { transform: translateY(1px); }
.btn.is-ghost {
  background: transparent; color: var(--white-warm);
  box-shadow: inset 0 0 0 1px rgba(255,251,248,.55);
}
.btn.is-ghost:hover { background: rgba(255,251,248,.1); box-shadow: inset 0 0 0 1px var(--white-warm); }
.btn-outline {
  color: var(--white-warm); border: 1px solid rgba(255,251,248,.6);
  border-radius: .2rem; padding: .6rem 1.15rem; font-weight: 500; font-size: .92rem;
  transition: all .3s; min-height: 44px;
}
.btn-outline:hover { background: rgba(255,251,248,.12); border-color: var(--white-warm); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 500; text-decoration: none; color: var(--navy);
  border-bottom: 1px solid currentColor; padding: .35rem 0;
  transition: gap .3s;
}
.link-arrow:hover { gap: .9rem; }
.link-arrow.is-butter { color: var(--butter); }

.divider { height: 1px; width: 100%; background: var(--butter); }
.divider.is-thin { margin: 1.5rem 0; opacity: .9; }

.text-link { color: inherit; text-decoration: none; transition: color .3s; line-height: 1.5; }
.text-link:hover { color: var(--butter); }
.text-link.is-btnlink { font-size: 1rem; padding: 0; min-height: 0; text-align: left; }
.locations_text .text-link:hover { color: var(--navy); opacity: .75; }

/* ---------- Left rail ---------- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w);
  z-index: 60; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 6.5rem 0 1.5rem; pointer-events: none;
}
.rail_line { flex: 1; width: 1px; background: rgba(12,26,42,.18); margin-bottom: 1.5rem; }
.rail_socials { display: flex; flex-direction: column; gap: .8rem; pointer-events: auto; }
.rail_social {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white-warm);
  transition: background .3s;
}
.rail_social:hover { background: var(--navy-header); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1.6rem .8rem .9rem;
  color: var(--white-warm);
  transition: background .35s ease, box-shadow .35s ease;
}
.header.scrolled { background: var(--navy-header); box-shadow: 0 1px 0 rgba(255,251,248,.08); }
.header_left { display: flex; align-items: center; gap: .9rem; }
.menu-btn {
  width: 44px; height: 44px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--white-warm); transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header_logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .12rem;
  text-decoration: none; color: var(--white-warm);
  transition: opacity .3s;
}
.header_logo:hover { opacity: .85; }
.logo_mark { height: 26px; width: auto; }
.logo_lockup { height: 40px; width: auto; }
.logo_text { font-family: var(--font-brand); font-weight: 600; letter-spacing: .34em; font-size: .8rem; padding-left: .34em; line-height: 1; margin-top: .15rem; }
.logo_sub { font-family: var(--font-brand); font-weight: 600; letter-spacing: .72em; font-size: .5rem; padding-left: .72em; color: var(--butter); line-height: 1; }
.brand-stacked { height: 10.5rem; width: auto; display: block; margin: 0 auto 1.2rem; }

.header_call {
  display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; color: var(--white-warm); font-size: .95rem; font-weight: 500;
  min-height: 44px; padding: 0 .25rem;
}
.header_call svg { color: var(--brand-cyan); }
.header_call:hover { color: var(--brand-cyan); }

/* ---------- Nav overlay ---------- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3rem;
  /* The header is fixed above this overlay, so reserve its height here.
     Without it the first nav links render, and scroll, underneath the logo. */
  padding-top: var(--header-h);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav_list { list-style: none; text-align: center; display: grid; gap: 1.1rem; }
.nav_link {
  font-family: var(--font-brand); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500;
  color: var(--white-warm); text-decoration: none; transition: color .3s;
}
.nav_link:hover { color: var(--butter); }
.nav-overlay .nav_list li { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.nav-overlay.open .nav_list li { opacity: 1; transform: none; }
.nav-overlay.open .nav_list li:nth-child(1) { transition-delay: .08s; }
.nav-overlay.open .nav_list li:nth-child(2) { transition-delay: .14s; }
.nav-overlay.open .nav_list li:nth-child(3) { transition-delay: .2s; }
.nav-overlay.open .nav_list li:nth-child(4) { transition-delay: .26s; }
.nav-overlay.open .nav_list li:nth-child(5) { transition-delay: .32s; }
.nav-overlay.open .nav_list li:nth-child(6) { transition-delay: .38s; }
.nav-overlay.open .nav_list li:nth-child(7) { transition-delay: .44s; }
.nav-overlay .nav_meta { opacity: 0; transition: opacity .5s ease .45s; }
.nav-overlay.open .nav_meta { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .nav-overlay .nav_list li, .nav-overlay .nav_meta { opacity: 1; transform: none; transition: none; }
}
.nav_meta { text-align: center; color: rgba(255,251,248,.75); }
.nav_phone { color: var(--butter); font-size: 1.3rem; text-decoration: none; font-weight: 600; }
.nav_langs { margin-top: .5rem; font-size: .95rem; }

/* ---------- Book modal / lightbox ---------- */
.modal, .lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.modal.open, .lightbox.open { opacity: 1; visibility: visible; }
.modal_backdrop, .lightbox_backdrop { position: absolute; inset: 0; background: rgba(10,22,38,.72); }
.modal_card {
  position: relative; background: var(--daylight); color: var(--ink);
  border-radius: .4rem; padding: 2.5rem; width: min(30rem, calc(100vw - 2.5rem));
  box-shadow: 0 30px 80px rgba(10,22,38,.45);
  transform: translateY(10px) scale(.97); transition: transform .35s cubic-bezier(.2,.9,.3,1.2);
}
.modal.open .modal_card { transform: none; }
.modal_close {
  position: absolute; top: .6rem; right: .8rem; font-size: 1.9rem; line-height: 1;
  width: 44px; height: 44px; color: inherit;
}
.modal_title { font-family: var(--font-brand); font-weight: 500; font-size: 1.9rem; margin-bottom: 1.2rem; color: var(--navy); }
.modal_loc-name { font-weight: 600; font-size: 1.1rem; }
.modal_loc-addr { margin: .4rem 0 1.2rem; color: rgba(12,26,42,.75); }
.modal_actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.modal_actions .is-ghost { color: var(--navy); box-shadow: inset 0 0 0 1px rgba(29,58,92,.45); }
.modal_actions .is-ghost:hover { background: rgba(29,58,92,.06); box-shadow: inset 0 0 0 1px var(--navy); }
.modal_note { margin-top: 1.1rem; font-size: .85rem; color: rgba(12,26,42,.6); }

.lightbox_body { position: relative; width: min(62rem, calc(100vw - 2rem)); }
.lightbox_body video { width: 100%; border-radius: .4rem; display: block; background: #000; }
.lightbox .modal_close { top: -3rem; right: 0; color: var(--white-warm); }

/* ---------- 01 Hero ---------- */
.section_hero {
  position: relative; min-height: max(50rem, 100vh);
  display: flex; align-items: center; justify-content: center;
  background: #000; color: var(--white-warm);
  padding: 8rem 2.5rem 8rem var(--rail-w); overflow: hidden;
}
.hero_bg { position: absolute; inset: 0; }
.hero_bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/hero-plate.jpg") center/cover no-repeat;
}
.hero_video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero_overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 2; }
.hero_container { position: relative; z-index: 3; width: 100%; max-width: 67.5rem; }
.hero_content { max-width: 60%; }
.hero_p { font-size: 1.125rem; margin: 1.4rem 0 2rem; max-width: 34rem; line-height: 1.65; }
.hero_proof {
  display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.4rem;
  color: rgba(255,251,248,.92); text-decoration: none; font-size: .95rem;
  transition: color .3s;
}
.hero_proof:hover { color: var(--butter); }
.hero_proof strong { font-weight: 600; }
.hero_proof .stars { color: #FFC043; }

/* ---------- 02 Intro ---------- */
.section_intro { padding: 7rem 0 7rem var(--rail-w); }
.grid-50 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.brand-heading { margin-bottom: 1.6rem; }
.brand-mark { height: 3.4rem; width: auto; display: block; margin-bottom: .9rem; }
.brand-mark.is-cta { height: 4.2rem; margin: 0 auto .9rem; }
.intro_text p { margin-bottom: 1.1rem; max-width: 32rem; }
.intro_image { aspect-ratio: 3 / 2; overflow: hidden; border-radius: .3rem; }
.intro_image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 03 Explore video band ---------- */
.section_explore {
  position: relative; min-height: 44rem;
  margin-left: var(--rail-w);
  display: flex; align-items: center; justify-content: center;
  color: var(--white-warm); overflow: hidden;
}
.explore_bg { position: absolute; inset: 0; }
.explore_bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/explore-plate.jpg") center/cover no-repeat;
}
.explore_video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.explore_overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); mix-blend-mode: multiply; }
.explore_content { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; gap: 2.6rem; padding: 6rem 2rem; }

.play-btn {
  position: relative; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white-warm);
}
.play-btn_icon { width: 22px; margin-left: 3px; position: relative; z-index: 2; }
.play-btn_ring { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transition: transform .4s; }
.play-btn_ring.is-2 { inset: -14px; border-color: rgba(255,255,255,.18); animation: ringPulse 3.2s ease-in-out infinite; }
.play-btn:hover .play-btn_ring.is-1 { transform: scale(1.08); }
.play-btn:hover .play-btn_ring.is-2 { animation-play-state: paused; transform: scale(1.06); }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .5; }
}
@media (prefers-reduced-motion: reduce) { .play-btn_ring.is-2 { animation: none; } }

/* ---------- 04 Featured testimonial ---------- */
.section_feat-testimonial { position: relative; background: var(--navy); color: var(--white-warm); padding: 6.5rem 0 4.5rem var(--rail-w); }
.feat_component { display: grid; grid-template-columns: .45fr .55fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.feat_image { position: relative; aspect-ratio: 10 / 11; overflow: hidden; border-radius: .3rem; }
.feat_image img { width: 100%; height: 100%; object-fit: cover; }
.feat_text { position: relative; padding-top: 2.5rem; }
.quote-marks { position: absolute; top: 0; left: -.5rem; width: 7rem; color: rgba(255,251,248,.16); }
.feat_quote { font-family: var(--font-brand); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; position: relative; }
.feat_name { margin-top: 1.5rem; font-weight: 600; color: var(--butter); }

/* ---------- 05 Google reviews ---------- */
.section_greviews { background: var(--navy); color: var(--white-warm); padding: 0 0 6rem var(--rail-w); overflow: hidden; }
.greviews_head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 2rem; padding-bottom: 3rem;
}
.greviews_headtext { text-align: right; max-width: 27rem; }
.greviews_headtext p { color: rgba(255,251,248,.72); margin-top: .5rem; }
.greviews_score { display: flex; align-items: center; gap: 1.1rem; }
.greviews_g { display: flex; align-items: center; }
.greviews_rating { display: flex; align-items: center; gap: .7rem; }
.greviews_rating strong { font-size: 2.6rem; line-height: 1; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: #FFC043; }
.greviews_count { color: rgba(255,251,248,.72); font-size: .95rem; margin-top: .15rem; }
.greviews_count strong { color: var(--white-warm); font-weight: 600; }

/* marquee rows */
.marquee {
  --marquee-duration: 60s;
  position: relative; overflow: hidden; padding: .55rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee_track { display: flex; gap: 1.25rem; width: max-content; animation: marqueeScroll var(--marquee-duration) linear infinite; }
.marquee.is-reverse .marquee_track { animation-direction: reverse; }
.marquee:hover .marquee_track, .marquee:focus-within .marquee_track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - .625rem)); } /* half the duplicated set + half the gap */
}

.gcard {
  flex: 0 0 auto; width: 21.5rem;
  background: rgba(255,251,248,.055);
  border: 1px solid rgba(255,251,248,.12);
  border-radius: .5rem; padding: 1.3rem 1.4rem;
  transition: background .3s, border-color .3s, transform .3s;
}
.gcard:hover { background: rgba(255,251,248,.09); border-color: rgba(254,221,127,.45); transform: translateY(-3px); }
.gcard_top { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.gcard_avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--butter); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.05rem;
}
.gcard_who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.gcard_name { font-weight: 600; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard_when { font-size: .8rem; color: rgba(255,251,248,.6); }
.gcard_g { flex-shrink: 0; display: flex; }
.gcard_stars { display: flex; gap: 2px; color: #FFC043; margin-bottom: .6rem; }
.gcard_text {
  font-size: .95rem; line-height: 1.55; color: rgba(255,251,248,.88);
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.greviews_btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }

/* ---------- 06 Doctor spotlight ---------- */
.section_doctor { padding: 7.5rem 0 7.5rem var(--rail-w); }
.doctor_component { display: grid; grid-template-columns: .45fr .55fr; gap: 4.5rem; align-items: center; }
.doctor_image { aspect-ratio: 4 / 5; overflow: hidden; border-radius: .3rem; }
/* Match the source portrait's 4:5 ratio so nothing is cropped off the top. */
.doctor_image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor_name { font-size: 1.6rem; font-weight: 600; margin: 1.2rem 0 1rem; }
.doctor_text p { margin-bottom: 1.1rem; max-width: 34rem; }
.doctor_text .link-arrow { margin-top: .6rem; }

/* ---------- 07 Insurance ---------- */
.section_insurance { position: relative; margin-left: var(--rail-w); overflow: hidden; color: var(--white-warm); }
.insurance_bg { position: absolute; inset: 0; }
.insurance_bg img { width: 100%; height: 100%; object-fit: cover; }
.insurance_overlay { position: absolute; inset: 0; background: rgba(29,58,92,.9); background-image: linear-gradient(rgba(0,0,0,.2), rgba(0,0,0,.2)); }
.insurance_content { position: relative; z-index: 2; text-align: center; padding-top: 6rem; padding-bottom: 6rem; display: grid; justify-items: center; gap: 1.4rem; }
.insurance_content p { max-width: 34rem; font-size: 1.08rem; }

/* ---------- 08 Gallery ---------- */
.section_gallery { padding: 6.5rem 0 6.5rem var(--rail-w); }
.gallery_rows { display: grid; gap: 20px; }
.gallery_row { display: grid; gap: 20px; }
.gallery_row.is-stagger-1 { grid-template-columns: .25fr .45fr .35fr; }
.gallery_row.is-stagger-2 { grid-template-columns: .35fr .45fr .25fr; }
.gallery_item { overflow: hidden; border-radius: .3rem; aspect-ratio: auto; }
.gallery_item img { width: 100%; height: 19.25rem; object-fit: cover; transition: transform .6s ease; }
.gallery_item:hover img { transform: scale(1.045); }

/* ---------- 09 What we offer ---------- */
.section_offer { background: var(--navy); color: var(--white-warm); padding: 6.5rem 0 6.5rem var(--rail-w); }
.offer_heading { margin-bottom: 3rem; }
.offer_component { display: grid; grid-template-columns: .44fr .56fr; gap: 4rem; align-items: start; }
.offer_photo { width: 100%; aspect-ratio: 9 / 10; overflow: hidden; border-radius: .3rem; position: relative; }
/* Two stacked layers crossfade: the incoming image is preloaded and decoded
   before its layer fades up, so there is never a blank frame mid-swap. */
.offer_photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.offer_photo img.is-active { opacity: 1; }
.offer_desc { transition: opacity .18s ease; }
.offer_desc.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .offer_photo img, .offer_desc { transition: none; }
}
.offer_panel { display: flex; flex-direction: column; }
.offer_list { list-style: none; display: grid; gap: .35rem; margin-bottom: 1.8rem; }
.offer_item { width: 100%; text-align: left; font-size: 1.5rem; font-family: var(--font-body); font-weight: 400; color: rgba(255,251,248,.45); padding: .32rem 0; transition: color .3s, padding-left .3s; border: none; min-height: 0; }
.offer_item:hover { color: rgba(255,251,248,.8); }
.offer_item.active { color: var(--white-warm); padding-left: .8rem; border-left: 2px solid var(--butter); }
.offer_detail { margin-bottom: 2rem; }
.offer_desc { max-width: 30rem; margin-bottom: 1.2rem; color: rgba(255,251,248,.85); min-height: 5.5rem; }
.offer_nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.offer_bullets { display: flex; gap: .6rem; align-items: center; }
.offer_bullet { font-size: .85rem; color: rgba(255,251,248,.4); transition: color .3s; padding: .2rem .1rem; min-height: 0; }
.offer_bullet.active { color: var(--butter); font-weight: 600; }
.offer_arrows { display: flex; gap: .8rem; }
.offer_arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,251,248,.4); color: var(--white-warm);
  display: flex; align-items: center; justify-content: center; transition: all .3s;
}
.offer_arrow:hover { border-color: var(--butter); color: var(--butter); }
.offer_arrow:active { transform: scale(.93); }

/* ---------- 10 Locations ---------- */
.section_locations { padding: 7rem 0 7rem var(--rail-w); }
.locations_grid { align-items: stretch; }
.locations_map { min-height: 26rem; border-radius: .3rem; overflow: hidden; }
.locations_map iframe { width: 100%; height: 100%; border: 0; display: block; }
.locations_text h2 { margin-bottom: 1.2rem; }
.locations_text > p { max-width: 32rem; }
.locations_name { font-family: var(--font-body); font-size: 1.38rem; font-weight: 400; margin-bottom: 1.1rem; }
.contact_rows { display: grid; gap: .9rem; }
.icon-row { display: flex; gap: .9rem; align-items: flex-start; }
.icon-row_icon { color: var(--powder); flex-shrink: 0; margin-top: .25rem; width: 18px; display: flex; justify-content: center; }
.section_locations .icon-row_icon { color: #4a7fb5; }

/* ---------- Footer ---------- */
.footer_wrapper { position: relative; color: var(--white-warm); margin-left: var(--rail-w); }
.footer_bg { position: absolute; inset: 0; background: #000 linear-gradient(var(--navy), var(--navy-deep)); }
.footer_cta { position: relative; z-index: 2; text-align: center; padding: 7rem 0 6rem; }
.footer-cta_stack { display: grid; justify-items: center; gap: 1.5rem; }
.brand-heading.is-cta { display: grid; justify-items: center; }
.brand-graphic.is-cta { margin: 0 auto .4rem; }
.footer-cta_p { max-width: 36rem; font-size: 1.06rem; }
.divider.is-cta { position: relative; z-index: 2; }
.footer_meet { position: relative; z-index: 2; display: grid; grid-template-columns: .65fr .35fr; align-items: center; gap: 1.75rem; padding-top: 4.5rem; padding-bottom: 3rem; }
.footer_meet h3 { font-family: var(--font-brand); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.footer_watermark { width: auto; height: 8rem; justify-self: end; opacity: .28; }
.footer_component { position: relative; z-index: 2; padding-bottom: 2rem; }
.footer_cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 1.5rem 0 3rem; }
.footer_col h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.1rem; }
.footer_col .icon-row { margin-bottom: .8rem; }
.footer_text { color: rgba(255,251,248,.82); margin-bottom: .35rem; }
.footer_socials { display: flex; gap: .9rem; margin-top: 1.2rem; }
.footer_social {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,251,248,.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--white-warm); transition: all .3s;
}
.footer_social:hover { border-color: var(--butter); color: var(--butter); }
.footer_end {
  border-top: 1px solid rgba(255,251,248,.14);
  padding: 1.5rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .88rem; color: rgba(255,251,248,.65);
}
.footer_end .text-link:hover { color: var(--butter); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .15s; }
.reveal.d2 { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --rail-w: 0rem; }
  .rail { display: none; }
  .section_hero { padding-left: 2.5rem; }
  .hero_content { max-width: 100%; }
  .grid-50, .feat_component, .doctor_component, .offer_component { grid-template-columns: 1fr; }
  .feat_image, .doctor_image { max-width: 30rem; }
  .offer_photo { max-width: 30rem; aspect-ratio: 4 / 5; }
  .footer_meet { grid-template-columns: 1fr; }
  .footer_watermark { justify-self: start; }
  .footer_cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container-large, .container-medium { padding: 0 1.4rem; }
  .section_hero { padding: 7rem 1.4rem 5rem; min-height: 100svh; }
  .hero_p { font-size: 1.05rem; }
  .section_intro, .section_doctor, .section_gallery, .section_locations { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .section_feat-testimonial { padding-top: 4.5rem; }
  .section_offer { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .gallery_row.is-stagger-1, .gallery_row.is-stagger-2 { grid-template-columns: 1fr; }
  .gallery_item img { height: 15rem; }
  .greviews_head { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .greviews_headtext { text-align: left; }
  .gcard { width: 17.5rem; }
  .offer_item { font-size: 1.2rem; }
  .header_logo .logo_text { font-size: .66rem; }
  .logo_mark { height: 21px; }
  .logo_lockup { height: 30px; }
  .logo_sub { font-size: .44rem; }
  .brand-stacked { height: 8rem; }
  .header_book { display: none; }
  .footer_cols { grid-template-columns: 1fr; }
  .footer_end { flex-direction: column; }
  .section_explore { min-height: 30rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero_video, .explore_video { display: none; }
  .gallery_item img { transition: none; }
  /* marquee becomes a static, scrollable rail */
  .marquee_track { animation: none; width: auto; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================
   Interior pages: header, mega nav, page head, prose, FAQ,
   related links, booking aside
   ========================================================== */

body.is-subpage { padding-top: 0; }

/* solid header on interior pages (no hero video behind it) */
.header.is-solid { position: sticky; background: var(--navy-header); }
.header.is-solid.scrolled { box-shadow: 0 1px 0 rgba(255,251,248,.08); }

/* ---------- mega nav ---------- */
.nav_inner {
  width: min(64rem, calc(100vw - 3rem));
  max-height: calc(100dvh - var(--header-h) - 1rem);
  overflow-y: auto; overscroll-behavior: contain;
  display: grid; gap: 2.5rem; padding: .75rem 0 2rem;
}
.nav-overlay .nav_inner .nav_list { text-align: left; display: grid; gap: .5rem; }
.nav_inner .nav_link { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.nav_cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.nav_col h4 {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--butter); margin-bottom: .8rem; font-weight: 600;
}
.nav_col a {
  display: block; color: rgba(255,251,248,.8); text-decoration: none;
  padding: .3rem 0; font-size: .96rem; transition: color .25s;
}
.nav_col a:hover { color: var(--white-warm); }
.nav-overlay .nav_inner .nav_meta { text-align: left; }

/* ---------- page head ---------- */
.page_head {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white-warm);
  padding: 3.5rem 0 3.25rem var(--rail-w);
}
.page_head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.08;
  max-width: 20ch; margin-bottom: 1rem;
}
.page_lede { font-size: 1.15rem; line-height: 1.6; max-width: 56ch; color: rgba(255,251,248,.9); }
.page_cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.crumbs { font-size: .85rem; color: rgba(255,251,248,.65); margin-bottom: 1.4rem; }
.crumbs a { color: rgba(255,251,248,.8); text-decoration: none; }
.crumbs a:hover { color: var(--butter); }
.crumbs_sep { margin: 0 .5rem; opacity: .5; }
.crumbs [aria-current] { color: var(--butter); }

/* ---------- layout ---------- */
.page_body { padding-left: var(--rail-w); }
.page_grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 20.5rem;
  gap: 3.5rem; align-items: start;
  padding: 4rem 0 5rem;
}

/* ---------- prose ---------- */
.prose { min-width: 0; }
.prose_block { margin-bottom: 2.6rem; }
.prose h2 {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.2;
  color: var(--navy); margin-bottom: .9rem;
}
.prose p { margin-bottom: 1rem; max-width: 68ch; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #2c5a8f; }
.prose_list { list-style: none; margin: .4rem 0 1rem; display: grid; gap: .55rem; max-width: 68ch; }
.prose_list li { position: relative; padding-left: 1.6rem; }
.prose_list li::before {
  content: ""; position: absolute; left: .2rem; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--butter);
  box-shadow: 0 0 0 1px rgba(29,58,92,.25);
}
.prose_steps { list-style: none; counter-reset: s; margin: .4rem 0 1rem; display: grid; gap: 1rem; max-width: 68ch; }
.prose_steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.prose_steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1em;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--navy); color: var(--butter);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 600;
}
.prose_steps strong { display: block; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq { margin: 3rem 0 2.6rem; }
.faq h2 {
  font-family: var(--font-brand); font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: var(--navy); margin-bottom: 1.2rem;
}
.faq_list { border-top: 1px solid rgba(29,58,92,.16); max-width: 68ch; }
.faq_item { border-bottom: 1px solid rgba(29,58,92,.16); }
.faq_item summary {
  list-style: none; cursor: pointer; padding: 1.05rem 2.5rem 1.05rem 0;
  position: relative; font-weight: 500; font-size: 1.05rem; color: var(--navy);
  display: flex; align-items: center; min-height: 44px;
}
.faq_item summary::-webkit-details-marker { display: none; }
.faq_icon {
  position: absolute; right: .2rem; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
}
.faq_icon::before, .faq_icon::after {
  content: ""; position: absolute; background: var(--navy);
  transition: transform .3s, opacity .3s;
}
.faq_icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq_icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq_item[open] .faq_icon::after { transform: rotate(90deg); opacity: 0; }
.faq_a { padding: 0 0 1.15rem; }
.faq_a p { margin: 0; color: rgba(12,26,42,.85); }

/* ---------- related ---------- */
.related { margin-top: 2.5rem; }
.related h2 {
  font-family: var(--font-brand); font-weight: 500; font-size: 1.5rem;
  color: var(--navy); margin-bottom: 1rem;
}
.rel_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .8rem; }
.rel_card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem; border: 1px solid rgba(29,58,92,.18); border-radius: .35rem;
  text-decoration: none; color: var(--navy); background: #fff;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.rel_card:hover {
  border-color: var(--navy); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,26,42,.08);
}
.rel_name { font-weight: 500; }
.rel_go { color: var(--butter); font-size: 1.1rem; }
.rel_card:hover .rel_go { color: var(--navy); }

/* ---------- booking aside ---------- */
.page_aside { position: sticky; top: 6rem; }
.aside_card {
  background: var(--navy); color: var(--white-warm);
  border-radius: .45rem; padding: 1.8rem;
}
.aside_card h3 { font-family: var(--font-brand); font-weight: 500; font-size: 1.45rem; margin-bottom: .6rem; }
.aside_card > p { color: rgba(255,251,248,.82); font-size: .96rem; margin-bottom: 1.2rem; }
.aside_card .btn { width: 100%; justify-content: center; }
.aside_phone {
  display: block; text-align: center; margin-top: .8rem;
  color: rgba(255,251,248,.85); text-decoration: none; font-size: .95rem;
}
.aside_phone:hover { color: var(--butter); }
.aside_proof {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  margin: 1.3rem 0; padding-top: 1.2rem;
  border-top: 1px solid rgba(255,251,248,.18);
  font-size: .92rem; color: rgba(255,251,248,.85);
}
.aside_proof .stars { color: #FFC043; letter-spacing: 1px; }
.aside_hours { display: grid; gap: .35rem; font-size: .92rem; margin-bottom: 1.1rem; }
.aside_hours > div { display: flex; justify-content: space-between; gap: 1rem; }
.aside_hours dt { color: rgba(255,251,248,.7); }
.aside_hours dd { color: var(--white-warm); }
.aside_addr { font-size: .9rem; color: rgba(255,251,248,.7); line-height: 1.5; }

.footer_wrapper.is-page { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .page_grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.8rem 0 3.5rem; }
  .page_aside { position: static; max-width: 26rem; }
  .nav_cols { grid-template-columns: 1fr 1fr; }
  .page_head { padding-top: 2.6rem; padding-bottom: 2.6rem; }
}
@media (max-width: 640px) {
  .nav_cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .nav_inner { gap: 1.6rem; }
  :root { --header-h: 4.5rem; }
  .nav_inner .nav_link { font-size: 1.35rem; }
  .page_head h1 { max-width: 100%; }
  .page_cta .btn { width: 100%; justify-content: center; }
}


/* ---------- page lead figure ---------- */
.page_fig { margin: 0 0 2.2rem; }
.page_fig img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: .5rem; display: block;
}


/* Portrait-orientation lead figures (the doctor photo) keep their own ratio
   instead of being cropped into the 3:2 landscape slot. */
.page_fig img[src$="doctor-v2.jpg"] {
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  object-position: center top;
}

/* Mobile: give body text more breathing room from the screen edge. */
@media (max-width: 640px) {
  .container-large, .container-medium { padding: 0 1.5rem; }
  .prose p, .prose h2, .prose_list, .prose_steps, .faq_list, .page_lede { padding-right: .15rem; }
}
