:root {
  --navy: #0e2a47;
  --navy-900: #0a1e33;
  --blue: #1e88e5;
  --blue-600: #1565c0;
  --blue-400: #29a0f5;
  --ink: #1f2d3d;
  --muted: #5b6b7d;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --border: #e3e8ef;
  --max: 1120px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, .06), 0 2px 8px rgba(15, 42, 71, .06);
  --shadow-md: 0 8px 24px rgba(15, 42, 71, .10);
  --shadow-lg: 0 18px 50px rgba(15, 42, 71, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 10px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: .95rem;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: none;
  /* no shadow at rest so the header dissolves into the hero gradient;
     content below will still read through the backdrop blur. */
  box-shadow: none;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand-tagline {
  display: block;
  width: 140px;
  font-family: 'Inter', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .82;
  text-align: center;
  line-height: 1.2;
}
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: var(--navy); font-weight: 500; }
.site-nav a.btn { color: #fff; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--navy);
  background: transparent;
  border: 1.5px solid rgba(14,42,71,.18);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.social-link:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  text-decoration: none;
  transform: translateY(-1px);
}
.social-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-socials .social-link {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.22);
}
.footer-socials .social-link:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% 50%, rgba(30,136,229,.28), transparent 70%),
    radial-gradient(900px 480px at 18% 30%, rgba(30,136,229,.16), transparent 75%),
    radial-gradient(700px 380px at 50% 110%, rgba(21,101,192,.18), transparent 70%),
    linear-gradient(180deg, #eaf1f9 0%, #f1f5fa 35%, #edf3f9 70%, #f5f8fb 100%);
  padding: 24px 0 8px;
  overflow: hidden;
  isolation: isolate;
}
/* First section after the hero: collapse the top padding so the
   gradient pulls straight into the next section's content. */
.hero + .section { padding-top: 24px; }
/* Top-edge blend: long, gradual fade from white (matching the sticky
   header) into the hero tint so no line is visible at the seam. */
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 220px;
  background: linear-gradient(180deg,
    rgba(255,255,255,1)    0%,
    rgba(255,255,255,.92)  20%,
    rgba(248,251,254,.7)   45%,
    rgba(238,244,250,.35)  75%,
    rgba(234,241,249,0)    100%);
  pointer-events: none;
  z-index: 1;
}
/* Bottom blend: long, gradual fade into the next section so the blob
   motion dissolves instead of being clipped. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 260px;
  background: linear-gradient(180deg,
    rgba(245,248,251,0)    0%,
    rgba(245,248,251,.25)  30%,
    rgba(245,248,251,.6)   65%,
    rgba(245,248,251,.92)  88%,
    #f5f8fb                100%);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy .lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero art is absolutely positioned so blobs + balls can roam the full
   hero width (including behind the headline) rather than being confined
   to the right column. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ---- atmospheric blurred blobs ---- */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform, border-radius;
  pointer-events: none;
}
.hero-blob-1 {
  width: 48%;
  aspect-ratio: 1 / 1;
  top: 12%;
  right: 4%;
  background:
    radial-gradient(circle at 30% 25%, #29a0f5 0%, #1565c0 45%, #0e2a47 100%);
  filter: blur(10px);
  opacity: .42;
  box-shadow: 0 24px 60px rgba(15,42,71,.22);
  animation: blob-morph 14s cubic-bezier(.37,.01,.36,.99) infinite,
             blob-roam-a 28s ease-in-out infinite;
}
.hero-blob-2 {
  width: 42%;
  aspect-ratio: 1 / 1;
  top: -4%;
  left: 8%;
  background: radial-gradient(circle at 60% 40%, rgba(41,160,245,.55), rgba(30,136,229,.10) 70%, transparent 100%);
  filter: blur(28px);
  opacity: .7;
  animation: blob-morph 18s cubic-bezier(.5,.05,.4,1) infinite reverse,
             blob-roam-b 34s ease-in-out infinite;
}
.hero-blob-3 {
  width: 38%;
  aspect-ratio: 1 / 1;
  bottom: -4%;
  left: 24%;
  background: radial-gradient(circle at 30% 70%, rgba(14,42,71,.35), rgba(14,42,71,.05) 60%, transparent 100%);
  filter: blur(32px);
  animation: blob-morph 22s ease-in-out infinite,
             blob-roam-c 40s ease-in-out infinite;
}

/* ---- crisp 3D-looking balls layered on top ---- */
.ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #8dc7f2 0%, #29a0f5 38%, #1565c0 78%, #0e2a47 100%);
  box-shadow:
    0 14px 28px rgba(15,42,71,.28),
    0 4px 10px rgba(15,42,71,.18),
    inset -6px -10px 16px rgba(8,22,40,.45),
    inset 4px 6px 10px rgba(255,255,255,.10);
  will-change: transform;
  pointer-events: none;
  opacity: .82;
}
.ball::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 16%;
  width: 32%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255,255,255,.75), rgba(255,255,255,.12) 60%, transparent 80%);
  filter: blur(.5px);
}
.ball-1 { width: 78px;  height: 78px;  top:  4%;  left:  4%; animation: ball-roam-a 22s ease-in-out infinite; }
.ball-2 { width: 110px; height: 110px; top:  18%; right: 6%; animation: ball-roam-b 26s ease-in-out infinite; }
.ball-3 { width: 54px;  height: 54px;  top:  56%; left:  3%; animation: ball-roam-c 18s ease-in-out infinite; }
.ball-4 { width: 38px;  height: 38px;  top:  72%; left: 44%; animation: ball-roam-a 15s ease-in-out infinite 2s; }
.ball-5 { width: 88px;  height: 88px;  bottom: 6%; right: 18%; animation: ball-roam-b 28s ease-in-out infinite; }
.ball-6 { width: 46px;  height: 46px;  top:  30%; left: 52%; animation: ball-roam-c 20s ease-in-out infinite 3s; }
.ball-7 { width: 28px;  height: 28px;  top:  10%; left: 68%; animation: ball-roam-a 14s ease-in-out infinite 1s; }
.ball-8 { width: 62px;  height: 62px;  bottom: 22%; left: 30%; animation: ball-roam-b 24s ease-in-out infinite 1.5s; }

@keyframes blob-morph {
  0%   { border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; }
  20%  { border-radius: 60% 40% 48% 52% / 45% 56% 44% 55%; }
  40%  { border-radius: 52% 48% 38% 62% / 58% 42% 58% 42%; }
  60%  { border-radius: 46% 54% 62% 38% / 40% 60% 40% 60%; }
  80%  { border-radius: 56% 44% 45% 55% / 52% 46% 54% 48%; }
  100% { border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; }
}
/* Blobs drift laterally across the full hero — wide arcs, slow. */
@keyframes blob-roam-a {
  0%   { transform: translate3d(0,     0,    0) rotate(0deg); }
  25%  { transform: translate3d(-22%,  4%,   0) rotate(90deg); }
  50%  { transform: translate3d(-40%,  -6%,  0) rotate(180deg); }
  75%  { transform: translate3d(-15%,  8%,   0) rotate(270deg); }
  100% { transform: translate3d(0,     0,    0) rotate(360deg); }
}
@keyframes blob-roam-b {
  0%   { transform: translate3d(0,     0,    0) rotate(0deg); }
  33%  { transform: translate3d(38%,   10%,  0) rotate(-120deg); }
  66%  { transform: translate3d(18%,   -6%,  0) rotate(-240deg); }
  100% { transform: translate3d(0,     0,    0) rotate(-360deg); }
}
@keyframes blob-roam-c {
  0%   { transform: translate3d(0,     0,    0) rotate(0deg); }
  50%  { transform: translate3d(-30%,  -12%, 0) rotate(180deg); }
  100% { transform: translate3d(0,     0,    0) rotate(360deg); }
}

/* Balls drift across the whole hero width/height, passing behind the copy. */
@keyframes ball-roam-a {
  0%   { transform: translate3d(0,     0,   0) rotate(0deg); }
  25%  { transform: translate3d(80px,  -30px, 0) rotate(90deg); }
  50%  { transform: translate3d(180px, 20px, 0) rotate(180deg); }
  75%  { transform: translate3d(90px,  60px, 0) rotate(270deg); }
  100% { transform: translate3d(0,     0,   0) rotate(360deg); }
}
@keyframes ball-roam-b {
  0%   { transform: translate3d(0,     0,    0) rotate(0deg); }
  25%  { transform: translate3d(-100px, 40px, 0) rotate(-90deg); }
  50%  { transform: translate3d(-220px, -20px,0) rotate(-180deg); }
  75%  { transform: translate3d(-120px,-50px, 0) rotate(-270deg); }
  100% { transform: translate3d(0,     0,    0) rotate(-360deg); }
}
@keyframes ball-roam-c {
  0%   { transform: translate3d(0,    0,    0) rotate(0deg); }
  33%  { transform: translate3d(140px, 40px, 0) rotate(120deg); }
  66%  { transform: translate3d(60px, -50px, 0) rotate(240deg); }
  100% { transform: translate3d(0,    0,    0) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob, .ball { animation: none !important; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt {
  /* Flat bg that matches the hero's final gradient stop exactly — any
     blue tint above that color belongs to the hero so there's no
     discontinuity at the boundary. */
  background: var(--bg-alt);
}
.section-title { margin-top: 6px; }
.section-lede { color: var(--muted); max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Procedure cards (photo as full-bleed background) ---------- */
.treatment-grid {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.treatment-grid > li { display: flex; }
/* With 10 items in 4 cols, the last row has 2 cards — shove them to
   columns 2 and 3 so they sit centered under the 4-wide rows above. */
.treatment-grid > li:nth-child(9) { grid-column-start: 2; }
.treatment {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 340px;
  padding: 28px 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.treatment:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.treatment-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.treatment-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.treatment:hover .treatment-photo img { transform: scale(1.08); }
.treatment::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,42,71,.35) 0%, rgba(14,42,71,.65) 55%, rgba(10,30,51,.92) 100%);
  transition: background .25s ease;
}
.treatment:hover::before {
  background:
    linear-gradient(180deg, rgba(14,42,71,.45) 0%, rgba(14,42,71,.72) 55%, rgba(10,30,51,.95) 100%);
}
.treatment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.treatment-icon svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.treatment-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  width: 100%;
}
.treatment-body h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.treatment-body p {
  color: rgba(255,255,255,.88);
  margin: 0 0 16px;
  font-size: .92rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.treatment-link {
  margin-top: auto;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.5);
  transition: transform .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.treatment:hover .treatment-link {
  transform: translateX(4px);
  background: rgba(255,255,255,.24);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px;
  align-items: stretch;
}
.doctor {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: stretch;
}
.doctor-photo-link {
  display: block;
  height: 100%;
  overflow: hidden;
  line-height: 0;       /* kill descender whitespace */
  font-size: 0;          /* belt-and-suspenders */
}
.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  vertical-align: top;   /* kill any baseline gap */
}
/* Harmonize face framing across the two source portraits.
   Anchor both near the top so faces sit at a similar vertical position in
   the card, and let object-fit: cover handle the rest — no zoom. */
.doctor-photo[src*="dr-cohen"]   { object-position: 30% 25%; }
.doctor-photo[src*="dr-ahoubim"] { object-position: center 30%; }
.doctor-body h3 a { color: inherit; }
.doctor-body h3 a:hover { color: var(--blue-600); text-decoration: none; }
.doctor-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
}
.doctor-body h3 { font-size: 1.4rem; margin: 0 0 2px; }
.doctor-spec { color: var(--blue); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.doctor-body .badge-board-cert { align-self: flex-start; margin: 0 0 12px; }
.doctor-body p { color: var(--muted); margin: 0 0 14px; }
.doctor-body .link-arrow { margin-top: auto; }
.link-arrow { font-weight: 600; }

/* ---------- CTA band ---------- */
.section-cta {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}
.section-cta h2 { color: #fff; margin-bottom: 6px; }
.section-cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 55ch; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.section-cta .btn-ghost { color: #fff; border-color: #fff; }
.section-cta .btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Visit + contact form ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.contact-list dt { font-weight: 600; color: var(--navy); }
.contact-list dd { margin: 0; color: var(--muted); }

.contact-form { display: grid; gap: 14px; background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--navy); }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Footer (encino style) ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.75);
  padding: 56px 0 20px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.footer-logo-tagline {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-align: center;
  line-height: 1.2;
  margin-top: 8px;
}
.footer-tagline {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  margin: 0;
  max-width: 28ch;
}
.footer-col h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.footer-col a {
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-col li.footer-address {
  line-height: 1.5;
}
.footer-col li.footer-address strong a {
  color: #fff;
  font-size: .9rem;
}
.footer-col li.footer-address > a {
  font-style: normal;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.footer-copy { color: rgba(255,255,255,.4); font-size: .78rem; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-legal a {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  transition: color .15s ease;
}
.footer-legal a:hover { color: #fff; text-decoration: none; }
@media (max-width: 820px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
.footer-shak {
  display: inline-flex;
  align-items: center;
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-shak:hover { opacity: 1; transform: translateY(-1px); text-decoration: none; }
.footer-shak img { height: 24px; width: auto; display: block; }

/* ---------- Credential badges & insurance note ---------- */
.badge-board-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30,136,229,.08);
  color: var(--blue-600);
  border: 1px solid rgba(30,136,229,.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.badge-board-cert svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.insurance-banner {
  background: linear-gradient(90deg, rgba(30,136,229,.06), rgba(30,136,229,.02));
  border-top: 1px solid rgba(30,136,229,.15);
  border-bottom: 1px solid rgba(30,136,229,.15);
  padding: 18px 0;
}
.insurance-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.insurance-banner .banner-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.insurance-banner .sep {
  color: var(--blue-600);
  opacity: .6;
  font-weight: 700;
}
.insurance-banner strong {
  color: var(--navy);
  font-weight: 700;
}
.insurance-banner svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-600);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Physician CV page ---------- */
.physician-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 16px;
}
.physician-hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}
.physician-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.physician-title {
  color: var(--blue);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 14px;
}
.physician-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 22px;
  font-size: .92rem;
  color: var(--muted);
}
.physician-meta strong { color: var(--navy); font-weight: 600; }
.physician-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-top: 48px;
}
.cv-block { margin-top: 48px; }
.cv-block:first-child, .cv-grid > .cv-block { margin-top: 0; }
.cv-block h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.cv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cv-list > li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
}
.cv-list > li:not(:has(.cv-years)) { grid-template-columns: 1fr; }
.cv-years {
  color: var(--blue);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  padding-top: 2px;
}
.cv-list div { color: var(--ink); font-size: .95rem; line-height: 1.5; }
.cv-list strong { color: var(--navy); }

.cv-pubs {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.55;
}
.cv-pubs > li { margin-bottom: 12px; }
.cv-pubs em { color: var(--muted); }

/* ---------- Location page ---------- */
.location-hero { grid-template-columns: 1fr; }
.location-hero .physician-ctas { margin-top: 20px; }
.location-procs,
.location-physicians {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.location-procs > li a,
.location-physicians > li a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.location-procs > li a:hover,
.location-physicians > li a:hover {
  border-color: rgba(30,136,229,.4);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none;
}
.location-physicians { grid-template-columns: 1fr; }
.location-physicians .arrow { color: var(--blue-600); font-weight: 600; font-size: .88rem; }
@media (max-width: 720px) {
  .location-procs { grid-template-columns: 1fr; }
}

/* ---------- Treatment subpage layout ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(800px 360px at 82% 50%, rgba(30,136,229,.20), transparent 70%),
    radial-gradient(600px 280px at 12% 20%, rgba(30,136,229,.10), transparent 70%),
    linear-gradient(180deg, #f5f8fb 0%, #ffffff 22%, #ffffff 78%, #f5f8fb 100%);
  padding: 48px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(245,248,251,0), #f5f8fb);
  pointer-events: none;
  z-index: 1;
}
.page-hero .hero-art { z-index: 0; }
.page-hero > .container { position: relative; z-index: 2; }
.breadcrumbs {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs span[aria-current="page"] { color: var(--navy); font-weight: 500; }

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}
.page-hero h1 { margin: 8px 0 12px; }
.page-hero p.lede { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 0; }

.page-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.page-content { padding: 64px 0; }
.page-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-top: 0;
}
.page-content h2:not(:first-child) { margin-top: 48px; }
.page-content p { color: var(--ink); margin: 0 0 14px; }
.page-content ul { margin: 0 0 14px; padding-left: 1.2rem; color: var(--ink); }
.page-content ul li { margin-bottom: 6px; }
.page-content .two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .treatment-grid { grid-template-columns: repeat(3, 1fr); }
  /* 10 items in 3 cols -> last row has 1 card; center it. */
  .treatment-grid > li:nth-child(9) { grid-column-start: auto; }
  .treatment-grid > li:nth-child(10) { grid-column-start: 2; }
}
@media (max-width: 960px) {
  .ball-4, .ball-6, .ball-7 { display: none; }
}
@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; min-height: 460px; }
  .hero-inner { grid-template-columns: 1fr; }
  /* 10 items in 2 cols -> rows are already balanced. */
  .treatment-grid > li:nth-child(9),
  .treatment-grid > li:nth-child(10) { grid-column-start: auto; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { display: none; }
  .treatment-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; }
  .doctor-photo-link { aspect-ratio: 4 / 3; max-height: 380px; }
  .visit-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-image { max-width: 520px; }
  .page-content .two-col { grid-template-columns: 1fr; gap: 24px; }
  .physician-hero { grid-template-columns: 1fr; gap: 24px; }
  .physician-hero-photo { max-width: 260px; }
  .cv-grid { grid-template-columns: 1fr; gap: 32px; }
  .cv-list > li { grid-template-columns: 90px 1fr; gap: 10px; }
}
@media (max-width: 560px) {
  .treatment-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Accessibility menu widget ---------- */
.a11y-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--blue-600);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15,42,71,.28);
  cursor: pointer;
  font: 600 .82rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: .04em;
}
.a11y-fab:hover, .a11y-fab:focus-visible {
  background: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30,136,229,.45), 0 6px 20px rgba(15,42,71,.28);
}
.a11y-fab svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.a11y-fab-label { white-space: nowrap; }
@media (max-width: 480px) {
  .a11y-fab-label { display: none; }
  .a11y-fab { padding: 12px; }
}

.a11y-panel {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 9999;
  width: 320px;
  max-width: calc(100vw - 36px);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15,42,71,.25), 0 0 0 1px rgba(15,42,71,.08);
  padding: 16px 16px 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
.a11y-panel.is-open { opacity: 1; transform: translateY(0); }
.a11y-panel[hidden] { display: none; }
.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.a11y-panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
}
.a11y-close {
  background: transparent;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.a11y-close:hover, .a11y-close:focus-visible {
  background: var(--bg-alt);
  color: var(--navy);
  outline: none;
}
.a11y-options {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.a11y-options li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.a11y-option {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-alt);
  color: var(--ink);
  border: 1.5px solid transparent;
  border-radius: 8px;
  font: 500 .82rem/1.3 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.a11y-option:hover { background: #eaf2fb; }
.a11y-option:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,136,229,.28);
}
.a11y-option.is-on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue-600);
}
.a11y-panel-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.a11y-reset {
  background: transparent;
  color: var(--blue-600);
  border: 0;
  padding: 6px 8px;
  font: 600 .78rem 'Inter', system-ui, sans-serif;
  cursor: pointer;
  border-radius: 6px;
}
.a11y-reset:hover, .a11y-reset:focus-visible {
  background: var(--bg-alt);
  outline: none;
}
.a11y-statement-link {
  font-size: .78rem;
  color: var(--muted);
  text-decoration: underline;
}
.a11y-statement-link:hover { color: var(--navy); }
.a11y-live {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- Accessibility modes (applied to <html>) ---------- */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }

html.a11y-readable-font,
html.a11y-readable-font body,
html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font h4,
html.a11y-readable-font p,
html.a11y-readable-font li,
html.a11y-readable-font a,
html.a11y-readable-font button,
html.a11y-readable-font input,
html.a11y-readable-font textarea,
html.a11y-readable-font label {
  font-family: Verdana, Tahoma, 'Trebuchet MS', Arial, sans-serif !important;
  letter-spacing: .01em;
}

html.a11y-high-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-high-contrast .site-header,
html.a11y-high-contrast .section,
html.a11y-high-contrast .section-alt,
html.a11y-high-contrast .page-hero,
html.a11y-high-contrast .page-content,
html.a11y-high-contrast .insurance-banner,
html.a11y-high-contrast .site-footer,
html.a11y-high-contrast .hero,
html.a11y-high-contrast .cv-block,
html.a11y-high-contrast .doctor,
html.a11y-high-contrast .treatment,
html.a11y-high-contrast .treatment-body,
html.a11y-high-contrast .a11y-panel,
html.a11y-high-contrast .contact-form,
html.a11y-high-contrast .physician-hero,
html.a11y-high-contrast .footer-bottom {
  background: #000 !important;
  color: #fff !important;
  border-color: #ffeb3b !important;
}
html.a11y-high-contrast h1,
html.a11y-high-contrast h2,
html.a11y-high-contrast h3,
html.a11y-high-contrast h4,
html.a11y-high-contrast p,
html.a11y-high-contrast li,
html.a11y-high-contrast dd,
html.a11y-high-contrast dt,
html.a11y-high-contrast strong,
html.a11y-high-contrast span,
html.a11y-high-contrast label,
html.a11y-high-contrast .eyebrow,
html.a11y-high-contrast .lede,
html.a11y-high-contrast .footer-copy,
html.a11y-high-contrast .footer-tagline,
html.a11y-high-contrast .doctor-spec,
html.a11y-high-contrast .brand-tagline,
html.a11y-high-contrast .footer-logo-tagline { color: #fff !important; }
html.a11y-high-contrast a,
html.a11y-high-contrast .btn,
html.a11y-high-contrast .link-arrow,
html.a11y-high-contrast .site-nav a { color: #ffeb3b !important; }
html.a11y-high-contrast .btn-primary { background: #ffeb3b !important; color: #000 !important; border-color: #ffeb3b !important; }
html.a11y-high-contrast .btn-ghost { background: transparent !important; color: #ffeb3b !important; border-color: #ffeb3b !important; }
html.a11y-high-contrast img:not(.a11y-keep) { filter: grayscale(100%) contrast(110%); }

html.a11y-invert { filter: invert(100%) hue-rotate(180deg); background: #fff; }
html.a11y-invert img, html.a11y-invert video, html.a11y-invert svg { filter: invert(100%) hue-rotate(180deg); }

html.a11y-grayscale { filter: grayscale(100%); }

html.a11y-underline a { text-decoration: underline !important; }
html.a11y-underline .btn { text-decoration: none !important; }

html.a11y-pause-motion *,
html.a11y-pause-motion *::before,
html.a11y-pause-motion *::after {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><path d='M6 4l26 16-12 2 8 16-6 2-8-16-8 8V4z' fill='black' stroke='white' stroke-width='2' stroke-linejoin='round'/></svg>") 2 2, auto !important;
}
html.a11y-big-cursor a,
html.a11y-big-cursor button,
html.a11y-big-cursor [role="button"],
html.a11y-big-cursor input[type="submit"] {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'><path d='M18 4h8v14h10v8h-10v14h-8V26H8v-8h10z' fill='black' stroke='white' stroke-width='2' stroke-linejoin='round'/></svg>") 22 22, pointer !important;
}

@media print {
  .a11y-fab, .a11y-panel { display: none !important; }
}

/* ============ COOKIE CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9997;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  color: var(--navy);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner-text { flex: 1 1 320px; min-width: 0; }
.cookie-banner-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.cookie-banner-text p { margin: 0; color: #475569; }
.cookie-banner-text a { color: inherit; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-banner-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
@media (max-width: 640px) {
  .cookie-banner {
    left: 0.5rem;
    right: 5rem;
    bottom: 0.75rem;
    padding: 0.95rem 1rem;
  }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}
@media print {
  .cookie-banner { display: none !important; }
}
