/* ==========================================================================
   Merrimack Valley Dental Clinic — Theme "Tidewater"
   Built on Bootstrap 5.3. Palette derived from the clinic logo.
   ========================================================================== */

:root {
  /* Brand */
  --ink: #0b2b2d;            /* primary text */
  --ink-soft: #3d5658;       /* secondary text */
  --teal-900: #062f31;
  --teal-800: #08484b;
  --teal-700: #0b6f73;       /* AA-safe brand teal for text & buttons */
  --teal-600: #0e8a8f;       /* logo teal */
  --aqua-400: #5fd0ca;
  --aqua-300: #8fe3df;       /* logo aqua */
  --aqua-100: #e2f6f4;
  --aqua-50:  #f1fbfa;
  --cream:    #faf6f0;       /* warm base, echoes the clinic interior */
  --sand:     #f3e9dc;
  --coral:    #e07a5f;       /* sparing accent */
  --coral-ink:#a8442a;
  --white: #ffffff;
  --line: rgba(11, 43, 45, .12);

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-base: 1rem;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 2px 10px rgba(6, 47, 49, .06);
  --shadow-md: 0 14px 40px -12px rgba(6, 47, 49, .18);
  --shadow-lg: 0 30px 70px -20px rgba(6, 47, 49, .28);

  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Bootstrap overrides */
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-link-color: var(--teal-700);
  --bs-link-color-rgb: 11, 111, 115;
  --bs-link-hover-color: var(--teal-900);
  --bs-border-color: var(--line);
  --bs-primary: var(--teal-700);
  --bs-primary-rgb: 11, 111, 115;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, .display-serif {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--ink);
}
h5, h6 { font-family: var(--font-body); font-weight: 700; }
p { color: var(--ink-soft); }
a { color: var(--teal-700); text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--teal-900); }
img { max-width: 100%; height: auto; }
::selection { background: var(--aqua-300); color: var(--teal-900); }

:focus-visible {
  outline: 3px solid var(--coral) !important;
  outline-offset: 3px !important;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 3000;
  background: var(--teal-900); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; color: #fff; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.bg-white { background: var(--white) !important; }
.bg-aqua { background: var(--aqua-50); }
.bg-sand { background: var(--sand); }
.bg-deep { background: var(--teal-900); color: #dcefee; }
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4 { color: #fff; }
.bg-deep p { color: #b9d6d5; }

.container-wide { max-width: 1320px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px;
}
.eyebrow .num { color: var(--coral-ink); }
.bg-deep .eyebrow { color: var(--aqua-300); }
.bg-deep .eyebrow .num { color: var(--aqua-300); opacity: .7; }

.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); margin-bottom: 18px; }
.section-title em, .hero-title em, .page-hero h1 em {
  font-style: italic; color: var(--teal-700); font-weight: 400;
}
.bg-deep .section-title em { color: var(--aqua-300); }
.lead-copy { font-size: 1.125rem; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-weight: 700;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: .975rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn i { font-size: 1.05em; line-height: 1; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--teal-700); color: #fff; border: 2px solid var(--teal-700); box-shadow: 0 10px 24px -10px rgba(11, 111, 115, .7); }
.btn-brand:hover, .btn-brand:focus { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn-ink:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-700); background: #fff; }
.btn-light-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn-light-ghost:hover { background: #fff; color: var(--teal-900); border-color: #fff; }
.btn-aqua { background: var(--aqua-300); color: var(--teal-900); border: 2px solid var(--aqua-300); }
.btn-aqua:hover { background: #fff; border-color: #fff; color: var(--teal-900); }
.btn-sm { padding: 9px 18px; font-size: .875rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--teal-700);
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--teal-900); color: #cfe7e6; font-size: .85rem;
}
.topbar .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar a { color: #e8f6f5; text-decoration: none; }
.topbar a:hover { color: var(--aqua-300); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .tb-item i { color: var(--aqua-300); }
.topbar .tb-group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar .walkin {
  background: rgba(143, 227, 223, .14); color: var(--aqua-300);
  padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; letter-spacing: .04em;
}

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(250, 246, 240, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.94); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.brand-logo { height: 38px; width: auto; display: block; }
@media (min-width: 1200px) { .brand-logo { height: 42px; } }

.main-nav .nav-link {
  font-weight: 650; font-size: .95rem; color: var(--ink);
  padding: 10px 14px !important; border-radius: 999px; position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: var(--teal-700); background: rgba(11, 111, 115, .07); }
.main-nav .nav-link.active, .main-nav .nav-link[aria-current="page"] { color: var(--teal-700); }
.main-nav .nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--coral); transform: translateX(-50%);
}
.main-nav .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; font-size: .7rem; vertical-align: middle; margin-left: 4px; }

/* Mega menu */
.mega-menu {
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 26px; margin-top: 10px !important; background: #fff;
}
@media (min-width: 1200px) {
  .dropdown-mega { position: static; }
  .mega-menu { width: min(980px, calc(100vw - 48px)); left: 50% !important; transform: translateX(-50%); }
}
.mega-menu .mega-title { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.mega-menu .dropdown-item {
  border-radius: var(--r-sm); padding: 8px 10px; font-weight: 600; font-size: .92rem; color: var(--ink);
  display: flex; align-items: center; gap: 10px; white-space: normal;
}
.mega-menu .dropdown-item i { color: var(--teal-700); font-size: 1rem; }
.mega-menu .dropdown-item:hover, .mega-menu .dropdown-item:focus { background: var(--aqua-50); color: var(--teal-700); }
.mega-feature {
  background: var(--teal-900); border-radius: var(--r-md); padding: 22px; color: #cfe7e6; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(circle at 100% 0, rgba(143,227,223,.25), transparent 55%);
}
.mega-feature h3 { color: #fff; font-size: 1.35rem; }
.mega-feature p { color: #b9d6d5; font-size: .9rem; }

/* Compact nav dropdown (e.g. Company) */
.nav-dropdown {
  min-width: 280px; padding: 10px; margin-top: 10px !important;
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); background: #fff;
}
.nav-dropdown .dropdown-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); white-space: normal; color: var(--ink);
}
.nav-dropdown .dropdown-item strong { display: block; font-size: .93rem; font-weight: 700; line-height: 1.25; }
.nav-dropdown .dropdown-item small { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.3; }
.nav-dropdown .dd-ic {
  width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--aqua-100); color: var(--teal-700); font-size: 1.05rem; transition: background .2s, color .2s;
}
.nav-dropdown .dropdown-item:hover, .nav-dropdown .dropdown-item:focus { background: var(--aqua-50); color: var(--teal-700); }
.nav-dropdown .dropdown-item:hover .dd-ic, .nav-dropdown .dropdown-item:focus .dd-ic { background: var(--teal-700); color: #fff; }
.nav-dropdown .dropdown-item[aria-current="page"] strong { color: var(--teal-700); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.15;
}
.header-phone .ring {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--aqua-100); color: var(--teal-700); font-size: 1.05rem;
}
.header-phone small { display: block; font-weight: 600; font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

.nav-toggler {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: inline-grid; place-items: center; font-size: 1.4rem; color: var(--ink);
}

/* Offcanvas mobile nav */
.offcanvas.mobile-nav { background: var(--cream); width: min(400px, 92vw) !important; }
.mobile-nav .offcanvas-header { border-bottom: 1px solid var(--line); justify-content: space-between; }
.mobile-nav .offcanvas-header .nav-toggler { margin-left: auto; flex: none; }
.mobile-nav .m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 1.05rem; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
}
.mobile-nav .m-link[aria-current="page"] { color: var(--teal-700); }
.mobile-nav .m-sub { list-style: none; padding: 6px 0 10px 8px; margin: 0; columns: 2; column-gap: 14px; }
.mobile-nav .m-sub a { display: block; padding: 6px 0; font-size: .92rem; color: var(--ink-soft); text-decoration: none; break-inside: avoid; }
.mobile-nav .m-sub a:hover { color: var(--teal-700); }

/* ==========================================================================
   HERO (Home)
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  background:
    radial-gradient(900px 500px at 92% 10%, rgba(143, 227, 223, .45), transparent 60%),
    radial-gradient(700px 420px at -10% 100%, rgba(243, 233, 220, 1), transparent 60%),
    var(--cream);
}
.hero::before { /* fine contour lines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-radial-gradient(circle at 78% 46%, transparent 0 46px, rgba(11,111,115,.07) 46px 47px);
  mask-image: radial-gradient(circle at 78% 46%, #000 0, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 78% 46%, #000 0, transparent 65%);
}
.hero .container-wide { position: relative; z-index: 1; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 16px 6px 6px; font-size: .86rem; font-weight: 650; color: var(--ink);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-pill .dot {
  background: var(--teal-700); color: #fff; border-radius: 999px; padding: 4px 12px;
  font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-pill .dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-300);
  box-shadow: 0 0 0 0 rgba(143,227,223,.8); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(143,227,223,.8);} 70% { box-shadow: 0 0 0 8px rgba(143,227,223,0);} 100% { box-shadow: 0 0 0 0 rgba(143,227,223,0);} }

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  line-height: 1.06; letter-spacing: -.02em; margin-bottom: 24px;
}
.hero-title .underline {
  position: relative; white-space: nowrap;
}
.hero-title .underline svg {
  position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .32em; color: var(--aqua-400);
}
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 44px; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); padding-top: 26px; max-width: 560px; }
.hero-proof .proof { flex: 1 1 33%; min-width: 140px; padding-right: 18px; }
.hero-proof .proof + .proof { padding-left: 18px; border-left: 1px solid var(--line); }
.hero-proof .num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.hero-proof .num sup { font-size: .55em; top: -.7em; color: var(--teal-700); }
.hero-proof .lbl { font-size: .85rem; color: var(--ink-soft); font-weight: 600; margin-top: 6px; }

/* Hero visual: arch frame */
.hero-visual { position: relative; max-width: 560px; margin-left: auto; padding: 0 0 0 30px; }
.hero-arch {
  position: relative; border-radius: 999px 999px var(--r-xl) var(--r-xl);
  overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
  border: 10px solid #fff; background: var(--sand);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.hero-visual:hover .hero-arch img { transform: scale(1.08); }
.hero-arch::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,47,49,.45));
}
.hero-arch-back {
  position: absolute; z-index: -1; right: -24px; top: 40px; width: 80%; height: 92%;
  border-radius: 999px 999px var(--r-xl) var(--r-xl); background: var(--teal-700);
  opacity: .9;
}

.float-card {
  position: absolute; z-index: 2; background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card .ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--aqua-100); color: var(--teal-700); font-size: 1.3rem;
}
.float-card strong { display: block; font-size: .98rem; color: var(--ink); line-height: 1.2; }
.float-card span { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.float-card.fc-hours { left: -10px; top: 18%; }
.float-card.fc-offer { right: -18px; bottom: 16%; animation-delay: -3s; }
.float-card.fc-offer .ic { background: #fde7df; color: var(--coral-ink); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-badge {
  position: absolute; z-index: 3; left: 0; bottom: -10px; width: 132px; height: 132px; border-radius: 50%;
  background: var(--teal-900); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-badge text { font-family: var(--font-body); font-size: 10.5px; font-weight: 800; letter-spacing: 2.6px; fill: var(--aqua-300); text-transform: uppercase; }
.hero-badge i { font-size: 2rem; color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
  .hero-visual { margin: 48px auto 0; padding: 0 12px; }
  .float-card.fc-hours { left: 0; }
  .float-card.fc-offer { right: 0; }
  .hero-badge { width: 108px; height: 108px; left: 10px; }
}
@media (max-width: 575.98px) {
  .float-card { padding: 10px 12px; gap: 10px; }
  .float-card .ic { width: 38px; height: 38px; font-size: 1.1rem; }
  .float-card strong { font-size: .86rem; }
  .hero-proof .proof { min-width: 0; flex: 1 1 0; padding: 0 10px !important; }
  .hero-proof .proof:first-child { padding-left: 0 !important; }
  .hero-proof .num { font-size: 1.5rem; }
  .hero-proof .lbl { font-size: .74rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}
.main-nav .nav-link, .btn, .header-phone { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .main-nav .nav-link { padding: 10px 10px !important; font-size: .9rem; }
  .brand-logo { height: 36px; }
}

/* Insurance strip under hero */
.ins-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ins-strip .label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 54px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.svc-feature {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; text-decoration: none;
  min-height: 420px; color: #fff; isolation: isolate; box-shadow: var(--shadow-sm);
}
.svc-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.svc-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,47,49,0) 30%, rgba(6,47,49,.88) 100%); }
.svc-feature:hover img { transform: scale(1.06); }
.svc-feature .svc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.svc-feature .svc-idx { position: absolute; top: 20px; left: 22px; font-family: var(--font-display); font-size: .95rem; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 4px 12px; border-radius: 999px; }
.svc-feature h3 { color: #fff; font-size: 1.85rem; margin-bottom: 8px; }
.svc-feature p { color: rgba(255,255,255,.85); margin-bottom: 14px; font-size: .96rem; }
.svc-feature .go {
  position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--teal-900);
  display: grid; place-items: center; font-size: 1.15rem; transition: transform .35s var(--ease), background .3s;
}
.svc-feature:hover .go { transform: rotate(-45deg); background: var(--aqua-300); }

.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 650; font-size: .92rem;
  transition: all .25s var(--ease);
}
.svc-chip i { color: var(--teal-700); }
.svc-chip:hover { background: var(--teal-700); border-color: var(--teal-700); color: #fff; transform: translateY(-2px); }
.svc-chip:hover i { color: var(--aqua-300); }

/* Service card (listing) */
.svc-card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); position: relative;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.svc-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; position: relative; margin: 10px 10px 0; border-radius: calc(var(--r-lg) - 8px); }
.svc-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .thumb img { transform: scale(1.06); }
.svc-card .tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--teal-800); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.svc-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; } /* full-card click */
.svc-card p { font-size: .95rem; flex: 1; }
.svc-card .link-arrow { position: relative; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-bar button {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: .9rem;
  transition: all .2s;
}
.filter-bar button[aria-pressed="true"], .filter-bar button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-collage { position: relative; padding: 0 0 60px 0; }
.about-collage .img-main { border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 8px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/4; }
.about-collage .img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-collage .img-sub {
  position: absolute; right: -10px; bottom: 0; width: 46%; border-radius: var(--r-lg); overflow: hidden; border: 8px solid var(--cream); box-shadow: var(--shadow-md); aspect-ratio: 1;
}
.about-collage .img-sub img { width: 100%; height: 100%; object-fit: cover; }
.about-collage .stat {
  position: absolute; left: 24px; bottom: 10px; background: var(--teal-700); color: #fff; border-radius: var(--r-md); padding: 18px 22px; box-shadow: var(--shadow-md);
}
.about-collage .stat .n { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.about-collage .stat .t { font-size: .85rem; color: #d2efed; font-weight: 600; }

.pull-quote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.3;
  color: var(--teal-800); border-left: 3px solid var(--aqua-400); padding: 4px 0 4px 22px; margin: 26px 0;
}

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.check-list i { color: var(--teal-700); font-size: 1.15rem; line-height: 1.5; }

/* ==========================================================================
   OFFER (ticket)
   ========================================================================== */
.ticket {
  display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md);
  position: relative;
}
.ticket .t-media { position: relative; min-height: 360px; }
.ticket .t-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticket .t-body { padding: clamp(28px, 4vw, 56px); position: relative; border-left: 2px dashed var(--line); }
.ticket .t-body::before, .ticket .t-body::after {
  content: ""; position: absolute; left: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--aqua-50);
}
.ticket .t-body::before { top: -16px; }
.ticket .t-body::after { bottom: -16px; }
.price-tag { display: flex; align-items: flex-start; gap: 6px; font-family: var(--font-display); color: var(--ink); line-height: .9; margin: 10px 0 14px; }
.price-tag .cur { font-size: 2rem; margin-top: 10px; color: var(--teal-700); }
.price-tag .amt { font-size: clamp(4.5rem, 9vw, 6.5rem); letter-spacing: -.05em; }
.price-tag .only { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); }
.fine-print { font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 767.98px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .t-media { min-height: 240px; }
  .ticket .t-body { border-left: 0; border-top: 2px dashed var(--line); }
  .ticket .t-body::before, .ticket .t-body::after { display: none; }
}

/* ==========================================================================
   DOCTOR
   ========================================================================== */
.doc-portrait { position: relative; max-width: 460px; margin: 0 auto; }
.doc-portrait .frame {
  border-radius: 50% 50% var(--r-xl) var(--r-xl) / 40% 40% var(--r-xl) var(--r-xl);
  background: linear-gradient(160deg, var(--aqua-100), var(--aqua-300)); overflow: hidden; aspect-ratio: 544/625;
}
.doc-portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-portrait .cred {
  position: absolute; right: -16px; bottom: 32px; background: #fff; border-radius: var(--r-md); padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; gap: 12px; align-items: center; max-width: 250px;
}
.doc-portrait .cred i { font-size: 1.7rem; color: var(--teal-700); }
.doc-portrait .cred strong { display: block; font-size: .92rem; line-height: 1.25; }
.doc-portrait .cred span { font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 575.98px) { .doc-portrait .cred { right: 0; } }

.doctor-card {
  background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm);
}
.doctor-card .d-img { background: linear-gradient(160deg, var(--aqua-100), var(--sand)); height: 100%; min-height: 380px; position: relative; }
.doctor-card .d-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-card .d-body { padding: clamp(28px, 4vw, 52px); }
.doctor-card .role { display: inline-flex; gap: 8px; align-items: center; background: var(--aqua-100); color: var(--teal-800); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.cred-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cred-row span { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; font-weight: 700; color: var(--ink); background: var(--cream); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.cred-row i { color: var(--teal-700); }

/* ==========================================================================
   WHY CHOOSE US (dark)
   ========================================================================== */
.why-section { overflow: hidden; }
.why-section::after {
  content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143,227,223,.18), transparent 70%); pointer-events: none;
}
.why-item { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.12); height: 100%; display: flex; gap: 18px; }
.why-item .wi-ic {
  width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: rgba(143,227,223,.12); color: var(--aqua-300); font-size: 1.45rem; border: 1px solid rgba(143,227,223,.25);
  transition: background .3s, color .3s;
}
.why-item:hover .wi-ic { background: var(--aqua-300); color: var(--teal-900); }
.why-item h3 { font-family: var(--font-body); font-weight: 750; font-size: 1.08rem; letter-spacing: 0; color: #fff; margin-bottom: 6px; }
.why-item p { font-size: .93rem; margin: 0; }
.why-item .idx { font-family: var(--font-display); font-size: .85rem; color: var(--aqua-300); opacity: .6; display: block; margin-bottom: 4px; }

/* ==========================================================================
   MEDIA & TESTIMONIAL VIDEO CARDS
   ========================================================================== */
.video-card {
  position: relative; display: block; width: 100%; border: 0; padding: 0; background: var(--teal-900);
  border-radius: var(--r-lg); overflow: hidden; text-align: left; isolation: isolate; box-shadow: var(--shadow-sm);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease), opacity .3s; }
.video-card.ratio-wide { aspect-ratio: 16/9; }
.video-card.ratio-tall { aspect-ratio: 7/10; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6,47,49,.8)); z-index: 0; }
.video-card:hover img { transform: scale(1.05); }
.video-card .play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--teal-800);
  display: grid; place-items: center; font-size: 1.9rem; box-shadow: 0 0 0 10px rgba(255,255,255,.25); transition: transform .3s var(--ease), box-shadow .3s;
}
.video-card .play i { margin-left: 4px; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 16px rgba(255,255,255,.18); }
/* caption sits top-left so it never covers text burned into the video stills */
.video-card .vc-cap {
  position: absolute; z-index: 1; left: 14px; top: 14px; color: #fff; font-weight: 700; font-size: .82rem;
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: rgba(6, 47, 49, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.video-card .vc-cap i { color: var(--aqua-300); }

.media-modal .modal-content { background: #000; border: 0; border-radius: var(--r-lg); overflow: hidden; }
.media-modal .btn-close-media {
  position: absolute; right: 12px; top: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.3rem;
}
.media-modal video { width: 100%; max-height: 82vh; display: block; background: #000; }

/* Review cards */
.review-card { background: #fff; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.review-card .stars { color: #d9902f; letter-spacing: 2px; margin-bottom: 14px; }
.review-card blockquote { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.45; color: var(--ink); flex: 1; margin: 0 0 18px; }
.review-card .who { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .92rem; }
.review-card .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--aqua-100); color: var(--teal-800); display: grid; place-items: center; font-weight: 800; }

/* ==========================================================================
   INSURANCE GRID
   ========================================================================== */
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.ins-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; place-items: center; aspect-ratio: 438/254;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ins-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ins-tile img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }

.step-card { background: #fff; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--line); height: 100%; position: relative; }
.step-card .step-n { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--aqua-300); position: absolute; right: 22px; top: 18px; }
.step-card .s-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--aqua-100); color: var(--teal-700); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 18px; }
.step-card h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 750; letter-spacing: 0; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.post-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); position: relative; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .78rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; display: flex; gap: 14px; margin-bottom: 10px; }
.post-card .meta i { color: var(--teal-700); }
.post-card h3 { font-size: 1.28rem; line-height: 1.25; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { font-size: .93rem; flex: 1; }
.post-card.featured { display: grid; grid-template-columns: 1.2fr 1fr; }
.post-card.featured .thumb { aspect-ratio: auto; min-height: 340px; }
.post-card.featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 767.98px) { .post-card.featured { grid-template-columns: 1fr; } .post-card.featured .thumb { min-height: 220px; } }

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: radial-gradient(700px 380px at 100% 0, rgba(143, 227, 223, .5), transparent 60%), var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(11,111,115,.15); box-shadow: 0 0 0 40px rgba(11,111,115,.04), 0 0 0 80px rgba(11,111,115,.03);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 14px; }
.page-hero p.lead-copy { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; padding: 0; margin: 0 0 22px; font-size: .85rem; font-weight: 650; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal-700); }
.crumbs li + li::before { content: "\F285"; font-family: "bootstrap-icons"; font-size: .65rem; color: var(--ink-soft); margin-right: 8px; opacity: .6; }
.crumbs [aria-current] { color: var(--teal-700); }
.page-hero .hero-thumb { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 3/2; border: 8px solid #fff; }
.page-hero .hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   ARTICLE / PROSE
   ========================================================================== */
.prose { font-size: 1.06rem; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.8em 0 .6em; color: var(--ink); }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose h4 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 750; letter-spacing: 0; margin: 1.4em 0 .4em; }
.prose strong, .prose b { color: var(--ink); font-weight: 750; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.4em; list-style: none; display: grid; gap: 12px; }
.prose ul li { position: relative; padding: 14px 16px 14px 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose ul li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 16px; top: 14px; color: var(--teal-700); font-size: 1.15rem; line-height: 1.6;
}
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose ol li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--font-display); color: var(--teal-700); font-size: 1.15rem; line-height: 1.6;
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; background: #fff; border-radius: var(--r-md); overflow: hidden; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; }
.prose th { background: var(--aqua-50); color: var(--ink); }
.prose blockquote { border-left: 3px solid var(--aqua-400); padding-left: 18px; font-style: italic; }

.legal-prose h2 { font-size: 1.55rem; margin-top: 2em; }
.legal-prose ul li { background: transparent; border: 0; padding: 4px 0 4px 32px; }
.legal-prose ul li::before { left: 0; top: 4px; font-size: 1rem; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.legal-toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.legal-toc a:hover { color: var(--teal-700); }
.updated-chip { display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; }

/* Sidebar */
.side-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); padding: 24px; }
.side-card h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; margin-bottom: 14px; }
.side-card.dark { background: var(--teal-900); color: #cfe7e6; border: 0; background-image: radial-gradient(circle at 100% 0, rgba(143,227,223,.25), transparent 60%); }
.side-card.dark h3 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -.02em; }
.side-card.dark p { color: #b9d6d5; }
.side-links { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.side-links a:hover, .side-links a[aria-current="page"] { color: var(--teal-700); }
.side-links a i { font-size: .8rem; color: var(--ink-soft); }
.hours-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours-list li span:last-child { font-weight: 700; color: var(--ink); text-align: right; }
.hours-list li.today { color: var(--teal-700); }
.hours-list li.today span:first-child::after { content: " (today)"; font-size: .75rem; font-weight: 800; }
.bg-deep .hours-list li, .footer .hours-list li { border-color: rgba(255,255,255,.12); }
.bg-deep .hours-list li span:last-child, .footer .hours-list li span:last-child { color: #fff; }

.mini-post { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px 0; }
.mini-post img { width: 70px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.mini-post span { font-weight: 700; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.mini-post:hover span { color: var(--teal-700); }

.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; font-weight: 650; color: var(--ink-soft); }
.article-meta i { color: var(--teal-700); margin-right: 6px; }
.article-cover { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); margin-top: -40px; position: relative; z-index: 2; aspect-ratio: 16/8; background: var(--sand); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.medical-note {
  display: flex; gap: 14px; background: var(--aqua-50); border: 1px solid rgba(11,111,115,.2); border-radius: var(--r-md); padding: 16px 18px; font-size: .88rem; color: var(--ink-soft); margin-top: 32px;
}
.medical-note i { color: var(--teal-700); font-size: 1.3rem; }

/* ==========================================================================
   CONTACT & FORMS
   ========================================================================== */
.contact-panel { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.contact-info { background: var(--teal-900); color: #cfe7e6; padding: clamp(28px, 4vw, 52px); height: 100%; position: relative; overflow: hidden; }
.contact-info::before { content: ""; position: absolute; left: -120px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(143,227,223,.2); box-shadow: 0 0 0 40px rgba(143,227,223,.05); }
.contact-info h2, .contact-info h3 { color: #fff; }
.contact-info p { color: #b9d6d5; }
.ci-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.ci-row .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(143,227,223,.12); color: var(--aqua-300); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.ci-row small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-300); opacity: .85; }
.ci-row a, .ci-row span.v { color: #fff; text-decoration: none; font-weight: 650; }
.ci-row a:hover { color: var(--aqua-300); }
.contact-form-wrap { padding: clamp(28px, 4vw, 52px); }

.form-label { font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.form-label .req { color: var(--coral-ink); }
.form-control, .form-select {
  border-radius: 14px; border: 1.5px solid var(--line); padding: 13px 16px; font-size: 1rem; background-color: var(--cream); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(11,111,115,.14); background-color: #fff; }
.form-control::placeholder { color: #7d8f90; }
.form-check-input { width: 1.2em; height: 1.2em; border: 1.5px solid #7d8f90; margin-top: .2em; }
.form-check-input:checked { background-color: var(--teal-700); border-color: var(--teal-700); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(11,111,115,.18); border-color: var(--teal-700); }
.form-check-label { font-size: .86rem; color: var(--ink-soft); line-height: 1.55; }
.form-text { font-size: .8rem; color: var(--ink-soft); }
.invalid-feedback { font-weight: 600; color: #b42318; }
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: #b42318; }
.phi-warning { display: flex; gap: 10px; font-size: .82rem; background: #fff6ea; border: 1px solid #f1d3a8; color: #6b4a16; border-radius: 12px; padding: 10px 14px; }
.phi-warning i { color: #b26a00; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.map-consent {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 380px; background: var(--teal-800);
  display: grid; place-items: center; text-align: center; color: #fff; padding: 32px;
  background-image: linear-gradient(rgba(6,47,49,.82), rgba(6,47,49,.82)), url("../images/site/sl2.webp"); background-size: cover; background-position: center;
}
.map-consent p { color: #cfe7e6; max-width: 440px; margin: 10px auto 20px; font-size: .92rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   CTA BAND & FOOTER
   ========================================================================== */
.cta-band {
  position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(36px, 5vw, 64px);
  background: var(--teal-700); color: #fff; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px 300px at 100% 0, rgba(143,227,223,.45), transparent 60%), radial-gradient(400px 260px at 0 100%, rgba(6,47,49,.6), transparent 60%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.cta-band p { color: #d6f1ef; }

.footer { background: var(--teal-900); color: #b9d6d5; padding-top: 0; position: relative; overflow: hidden; }
.footer a { color: #dcefee; text-decoration: none; }
.footer a:hover { color: var(--aqua-300); text-decoration: underline; }
.footer-top { padding: 72px 0 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { background: #fff; display: inline-block; padding: 12px 16px; border-radius: var(--r-md); }
.footer-logo img { height: 34px; width: auto; display: block; }
.footer h2.f-title { font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--aqua-300); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 5px 0; }
.footer ul.f-links a { font-size: .94rem; }
.footer .f-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .94rem; }
.footer .f-contact i { color: var(--aqua-300); margin-top: 3px; }
.footer p { color: #a9c9c8; font-size: .92rem; }
.footer-legal { padding: 26px 0 34px; font-size: .82rem; }
.footer-legal .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal .legal-links a, .footer-legal .legal-links button { font-size: .82rem; color: #cfe7e6; background: none; border: 0; padding: 0; text-decoration: none; }
.footer-legal .legal-links button:hover { color: var(--aqua-300); text-decoration: underline; }
.footer-disclaimer { font-size: .78rem; color: #8fb3b2; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; margin-top: 18px; line-height: 1.6; }
.footer-wordmark {
  font-family: var(--font-display); font-size: clamp(3rem, 11vw, 10rem); line-height: .8; letter-spacing: -.05em; color: rgba(143,227,223,.07);
  white-space: nowrap; text-align: center; user-select: none; margin-bottom: -.12em; pointer-events: none;
}
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); color: #fff; }
.social-row a:hover { background: var(--aqua-300); color: var(--teal-900); border-color: var(--aqua-300); text-decoration: none; }

/* Back to top + mobile action bar */
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 1040; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-700); }

.mobile-actions { display: none; }
@media (max-width: 767.98px) {
  .mobile-actions {
    display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(6,47,49,.08);
  }
  .mobile-actions a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; font-size: .74rem; font-weight: 750; color: var(--ink); text-decoration: none; }
  .mobile-actions a i { font-size: 1.2rem; color: var(--teal-700); }
  .mobile-actions a.primary { background: var(--teal-700); color: #fff; }
  .mobile-actions a.primary i { color: #fff; }
  body { padding-bottom: 64px; }
  .to-top { bottom: 80px; }
  .a11y-fab { bottom: 80px !important; }
  .cookie-banner { bottom: 72px !important; }
}

/* ==========================================================================
   ACCESSIBILITY WIDGET
   ========================================================================== */
.a11y-fab {
  position: fixed; left: 20px; bottom: 24px; z-index: 1060; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
  background: #1d4ed8; color: #fff; font-size: 1.7rem; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(29,78,216,.6);
  transition: transform .25s var(--ease);
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-panel {
  position: fixed; left: 20px; bottom: 92px; z-index: 1061; width: min(380px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow: auto;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  font-family: var(--font-body);
}
.a11y-panel[hidden] { display: none; }
.a11y-head { background: #1d4ed8; color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; }
.a11y-head h2 { color: #fff; font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; letter-spacing: 0; margin: 0; display: flex; gap: 10px; align-items: center; }
.a11y-head button { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; }
.a11y-body { padding: 18px; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-opt {
  border: 1.5px solid var(--line); background: #f8fafc; border-radius: 14px; padding: 14px 10px; text-align: center; font-weight: 700; font-size: .84rem; color: #0f172a;
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .2s; line-height: 1.25;
}
.a11y-opt i { font-size: 1.4rem; color: #1d4ed8; }
.a11y-opt:hover { border-color: #1d4ed8; }
.a11y-opt[aria-pressed="true"] { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.a11y-opt[aria-pressed="true"] i { color: #fff; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-weight: 700; font-size: .9rem; }
.a11y-size .ctrl { display: flex; gap: 8px; align-items: center; }
.a11y-size button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-weight: 800; }
.a11y-size button:hover { border-color: #1d4ed8; color: #1d4ed8; }
.a11y-size output { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: .84rem; }
.a11y-foot button { border: 0; background: #0f172a; color: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: .84rem; }

/* Applied a11y modes */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast body *:not(img):not(video):not(svg):not(path):not(.a11y-panel *):not(.a11y-fab) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast a:not(.a11y-panel a), html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast .btn { border: 2px solid #ffeb3b !important; }
html.a11y-contrast .hero::before, html.a11y-contrast .svc-feature::before, html.a11y-contrast .video-card::after, html.a11y-contrast .hero-arch::after { display: none; }
html.a11y-grayscale body > *:not(.a11y-panel):not(.a11y-fab) { filter: grayscale(1); }
html.a11y-links a:not(.a11y-panel a) { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4, html.a11y-readable p, html.a11y-readable a, html.a11y-readable li, html.a11y-readable button, html.a11y-readable input, html.a11y-readable textarea {
  font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif !important; letter-spacing: .02em !important;
}
html.a11y-spacing body p, html.a11y-spacing body li { line-height: 2 !important; letter-spacing: .06em !important; word-spacing: .12em !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.5' d='M5 2l14 10-6 1.5L16 21l-3 1.2-3-7.5L5 19z'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-pause *, html.a11y-pause *::before, html.a11y-pause *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-headings h1, html.a11y-headings h2, html.a11y-headings h3 { outline: 2px solid #1d4ed8; outline-offset: 4px; background: rgba(29,78,216,.06); }
html.a11y-hideimg img:not(.brand-logo):not(.footer-logo img) { opacity: .05 !important; }
.reading-guide { position: fixed; left: 0; right: 0; height: 14px; background: rgba(29,78,216,.25); border-top: 2px solid #1d4ed8; border-bottom: 2px solid #1d4ed8; pointer-events: none; z-index: 2000; display: none; }
html.a11y-guide .reading-guide { display: block; }

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */
.cookie-banner {
  position: fixed; z-index: 1070; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(980px, calc(100vw - 32px));
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 22px 24px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .ck-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--aqua-100); color: var(--teal-700); display: grid; place-items: center; font-size: 1.5rem; }
.cookie-banner h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: 0; margin: 0 0 4px; }
.cookie-banner p { font-size: .86rem; margin: 0; line-height: 1.55; }
.cookie-banner .ck-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 860px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .cookie-banner .ck-ic { display: none; }
  .cookie-banner .ck-actions { justify-content: stretch; }
  .cookie-banner .ck-actions .btn { flex: 1 1 auto; }
}
.consent-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.consent-row:last-child { border-bottom: 0; }
.consent-row h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; letter-spacing: 0; margin: 0 0 4px; }
.consent-row p { font-size: .86rem; margin: 0; }
.form-switch .form-check-input { width: 2.8em; height: 1.5em; }
.modal-content { border-radius: var(--r-lg); border: 0; }

/* ==========================================================================
   THANK YOU & 404
   ========================================================================== */
.ty-wrap { min-height: 70vh; display: grid; place-items: center; padding: 80px 0; }
.ty-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(32px, 5vw, 64px); text-align: center; max-width: 760px; margin: 0 auto; position: relative; overflow: hidden; }
.ty-check { width: 104px; height: 104px; margin: 0 auto 24px; border-radius: 50%; background: var(--aqua-100); display: grid; place-items: center; position: relative; }
.ty-check svg { width: 56px; height: 56px; }
.ty-check svg path { stroke: var(--teal-700); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s .3s var(--ease) forwards; }
.ty-check::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--aqua-300); animation: ring 1.6s .2s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.ty-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; text-align: left; }
.ty-steps div { background: var(--cream); border-radius: var(--r-md); padding: 18px; }
.ty-steps i { font-size: 1.4rem; color: var(--teal-700); }
.ty-steps strong { display: block; margin: 8px 0 4px; font-size: .95rem; }
.ty-steps span { font-size: .84rem; color: var(--ink-soft); }
@media (max-width: 640px) { .ty-steps { grid-template-columns: 1fr; } }
.big-404 { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 14rem); line-height: .9; color: var(--teal-700); letter-spacing: -.06em; }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Include placeholders: reserve space to limit layout shift */
#site-header:empty { min-height: var(--header-h); }

/* Print: show content only */
@media print {
  #site-header, #site-footer, .a11y-fab, .a11y-panel, .cookie-banner, .mobile-actions, .to-top, .cta-band, .side-sticky .dark, .reading-guide { display: none !important; }
  body { background: #fff; padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; }

/* Dark contact card: hours list + eyebrow need light colors (all screen sizes) */
.contact-info .eyebrow { color: var(--aqua-300); }
.contact-info .hours-list li { border-color: rgba(255,255,255,.12); color: #cfe7e6; }
.contact-info .hours-list li span:last-child { color: #fff; }
.contact-info .hours-list li.today { color: var(--aqua-300); }
.footer .hours-list li.today, .bg-deep .hours-list li.today { color: var(--aqua-300); }

/* Footer link color must not override button colors (all screen sizes) */
.footer .btn-aqua, .footer .btn-aqua:hover, .footer .btn-aqua:focus { color: var(--teal-900); }
.footer .btn-light-ghost { color: #fff; }
.footer .btn-light-ghost:hover, .footer .btn-light-ghost:focus { color: var(--teal-900); }
.footer .btn:hover, .footer .btn:focus { text-decoration: none; }

/* Wide tables scroll inside their own box instead of stretching the page */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.4em; border-radius: var(--r-md); }
.table-scroll table { margin-bottom: 0; min-width: 520px; }

/* Accessibility button sits under open menus/modals (Bootstrap backdrop = 1040) */
.a11y-fab { z-index: 1039; }

/* ==========================================================================
   MOBILE REFINEMENTS
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Bootstrap g-5/gx-5 gutters (3rem) are wider than the 12px container padding and cause sideways scroll */
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
  .row.g-5 { --bs-gutter-y: 2rem; }

  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-title { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  .lead-copy { font-size: 1.02rem; }

  /* Header: keep logo + menu button on one line */
  .site-header .navbar > .container { flex-wrap: nowrap; gap: 12px; }
  .site-header .navbar-brand { min-width: 0; flex: 1 1 auto; margin-right: 0; }
  .brand-logo { height: 30px; max-width: 100%; object-fit: contain; object-position: left center; }
  .nav-toggler { width: 44px; height: 44px; flex: none; }
  :root { --header-h: 68px; }

  /* Mobile menu panel */
  .mobile-nav .offcanvas-header { gap: 16px; }
  .mobile-nav .offcanvas-header .brand-logo { height: 22px !important; max-width: calc(100% - 70px); }

  /* Hero */
  .hero { padding-top: 28px; }
  .hero-pill { font-size: .78rem; border-radius: 18px; padding: 6px 12px 6px 6px; gap: 8px; margin-bottom: 20px; }
  .hero-pill .dot { font-size: .66rem; padding: 3px 9px; }
  .hero-title { margin-bottom: 18px; }
  .hero-sub { margin-bottom: 26px; }
  .hero-actions { margin-bottom: 30px; }
  .hero-visual { max-width: 380px; }

  /* Cards & sections */
  .svc-feature { min-height: 300px; }
  .svc-feature h3 { font-size: 1.5rem; }
  .svc-feature .svc-body { padding: 22px; }
  .about-collage .img-sub { width: 42%; right: 0; }
  .about-collage .stat { left: 12px; padding: 12px 16px; }
  .about-collage .stat .n { font-size: 1.8rem; }
  .ticket .t-body { padding: 26px 22px; }
  .doctor-card .d-img { min-height: 320px; }
  .doctor-card .d-body { padding: 26px 22px; }
  .contact-info, .contact-form-wrap { padding: 28px 20px; }
  .page-hero { padding: 36px 0 40px; }
  .page-hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .page-hero .hero-thumb { border-width: 5px; }
  .article-cover { margin-top: -24px; border-radius: var(--r-lg); }
  .side-card { padding: 20px; }
  .cta-band { padding: 30px 22px; border-radius: var(--r-lg); }
  .cta-band .btn { flex: 1 1 100%; }
  .why-item { padding: 22px 0; }
  .map-consent { min-height: 320px; padding: 24px 18px; }
  .legal-prose h2 { font-size: 1.35rem; }
  .ty-card { padding: 32px 20px; }

  /* Smaller play buttons so narrow video cards stay readable */
  .video-card .play { width: 56px; height: 56px; font-size: 1.5rem; box-shadow: 0 0 0 7px rgba(255,255,255,.25); }
  .video-card.ratio-tall .play { width: 44px; height: 44px; font-size: 1.2rem; box-shadow: 0 0 0 5px rgba(255,255,255,.25); }
  .video-card .vc-cap { font-size: .74rem; padding: 4px 10px; left: 10px; top: 10px; }

  /* Keep the treatment pill list short on phones; "View All Services" covers the rest */
  .svc-chips .svc-chip:nth-child(n+9) { display: none; }

  /* Comfortable tap targets (min 24px, WCAG 2.5.8) */
  .footer-legal .legal-links a, .footer-legal .legal-links button { display: inline-block; padding: 6px 0; }
  .ins-strip .label { display: inline-block; padding: 6px 0; }
  .footer ul.f-links a { display: inline-block; padding: 4px 0; }
  .footer-wordmark { font-size: 3.4rem; }
}

@media (max-width: 380px) {
  .brand-logo { height: 26px; }
  .hero-title { font-size: 2.15rem; }
  .hero-proof .num { font-size: 1.3rem; }
  .float-card strong { font-size: .8rem; }
  .float-card span { font-size: .72rem; }
  .hero-badge { width: 92px; height: 92px; }
  .hero-badge text { font-size: 9px; letter-spacing: 2px; }
}
