/* ============================================================
   SoCal Cardiology — site styles
   Built on the fluid.glass design system (tokens.css).
   Custom layer: the "vital signs" phosphor-green accent,
   editorial layout, full-bleed medical imagery.
   ============================================================ */

@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
  /* The single living accent — a smoother, less piercing red drawn from the logo */
  --vital:        #d8453d;
  --vital-dim:    #b3342d;
  --vital-glow:   rgba(216, 69, 61, 0.5);

  --bg-deep:      #0c0d0d;   /* deeper band between sections */
  --bg-panel:     #161718;   /* raised panel behind portraits / cards */
  --hair:         rgba(255,255,255,0.10);
  --hair-2:       rgba(255,255,255,0.16);

  --pad-x:        clamp(20px, 4vw, 56px);
  --maxw:         1340px;
  --strip-h:      40px;

  /* ============================================================
     TUNABLE THEME — easy rollback (change these three lines)
     ============================================================ */
  --ui-zoom:       1.08;           /* desktop comfort scale; set 1 to revert */
  --title-weight:  500;            /* heading weight; was 600/700 */
  --title-accent:  var(--vital);   /* coloured heading word; set to inherit to revert */
  --font-title:    'Source Serif 4', Georgia, 'Times New Roman', serif; /* headings; set to var(--font-sans) to revert */
}

/* Desktop comfort scale — makes 100% read like the old ~125% zoom.
   Applied only on wider screens so mobile keeps its native sizing. */
@media (min-width: 921px) {
  body { zoom: var(--ui-zoom); }
  /* keep the rating chip on the same line as Book / Call on desktop */
  .hero-content { max-width: 760px; }
  .hero-cta .button { white-space: nowrap; }
}

/* ============================================================
   LIGHT THEME  (reversible)
   The site is a hybrid: cinematic DARK hero / interlude / insurance
   cover / footer, with a warm off-white BODY in between.
   ROLLBACK → remove class="theme-light" from <body> for full dark.
   The whole system runs on semantic tokens, so we just re-map them.
   ============================================================ */
body.theme-light {
  --bg-1:          #f7f6f4;   /* warm off-white canvas */
  --bg-2:          #ecebe7;   /* button base / deeper surface */
  --bg-3:          #efede9;   /* raised surface (card hover) */
  --bg-deep:       #efece7;   /* deeper warm band (section--deep / book) */
  --bg-panel:      #eceae4;   /* avatar / panel fill */
  --fg-1:          #181b1c;   /* primary text — warm near-black */
  --fg-2:          #44494b;   /* secondary text */
  --fg-3:          #6c7277;   /* tertiary / meta */
  --fg-muted:      #9aa1a5;   /* quietest captions */
  --border-1:      #ddd8d0;   /* card borders */
  --border-2:      #e8e3db;   /* quieter dividers */
  --border-strong: #181b1c;
  --hair:          rgba(0,0,0,0.07);
  --hair-2:        rgba(0,0,0,0.13);
  /* smoother red, deepened a touch so small text/links stay legible on white */
  --vital:         #c63d35;
  --vital-dim:     #a52f28;
}

/* Cinematic DARK islands keep the original dark palette inside the light page.
   Children inherit these token values, so everything in them stays correct. */
body.theme-light .util-strip,
body.theme-light .site-header,
body.theme-light .mobile-drawer,
body.theme-light .hero,
body.theme-light .interlude,
body.theme-light .section--cover,
body.theme-light .site-footer {
  --bg-1:          #121212;
  --bg-2:          #0b1012;
  --bg-3:          #1a1a1a;
  --bg-deep:       #0c0d0d;
  --bg-panel:      #161718;
  --fg-1:          #ffffff;
  --fg-2:          #d1d5db;
  --fg-3:          #9ca3af;
  --fg-muted:      #6b7280;
  --border-1:      #374151;
  --border-2:      #1f2937;
  --border-strong: #ffffff;
  --hair:          rgba(255,255,255,0.10);
  --hair-2:        rgba(255,255,255,0.16);
  --vital:         #d8453d;   /* smoother red on dark */
  --vital-dim:     #b3342d;
}

/* Light-mode ghost-button wash needs to be dark, not white
   (ghost buttons live on dark islands today, but guard anyway) */
body.theme-light .section:not(.section--cover) .button--ghost:hover {
  background: rgba(0,0,0,0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-1);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--vital); color: #fff; }

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

/* ---------------- Layout primitives ---------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.section {
  padding-block: clamp(64px, 11vh, 132px);
  position: relative;
}
.section--deep { background: var(--bg-deep); }
.hair-top { border-top: 1px solid var(--border-2); }

/* ---------------- Type helpers ---------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--vital);
  opacity: 0.8;
}
.kicker--plain::before { display: none; }

.display {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  line-height: 1.05;
  letter-spacing: -0.012em;
  font-size: clamp(38px, 6.4vw, 92px);
  margin: 0;
  text-wrap: balance;
}
.h-lg {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-size: clamp(31px, 5.4vw, 56px);
  margin: 0;
  text-wrap: balance;
}
.t-accent { color: var(--title-accent); }
.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.62;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  max-width: 46ch;
  text-wrap: pretty;
}
.muted { color: var(--fg-3); }
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.vital-text { color: var(--vital); }

/* ---------------- Buttons ---------------- */
.button {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard),
              color var(--dur-base) var(--ease-standard);
}
.button .ar { transition: transform var(--dur-base) var(--ease-standard); }
.button:hover .ar { transform: translateX(4px); }

.button--vital {
  background: var(--vital);
  color: #fff;
  border-color: var(--vital);
}
.button--vital:hover { background: #e4615a; border-color: #e4615a; }

.button--solid { background: #f4f6f5; color: #0b0e0d; }
.button--solid:hover { opacity: 0.86; }

.button--ghost { border-color: var(--hair-2); color: var(--fg-1); background: transparent; }
.button--ghost:hover { border-color: var(--fg-1); background: rgba(255,255,255,0.05); }

.button--sm { padding: 10px 18px; font-size: 14px; }

.linkarrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 3px;
  transition: color var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.linkarrow .ar { transition: transform var(--dur-base) var(--ease-standard); }
.linkarrow:hover { color: var(--vital); border-color: var(--vital); opacity: 1; }
.linkarrow:hover .ar { transform: translateX(4px); }

/* ============================================================
   EMERGENCY UTILITY STRIP
   ============================================================ */
.util-strip {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(8,9,9,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-2);
  transition: transform var(--dur-slow) var(--ease-standard);
}
.util-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 9px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.util-emerg {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.util-emerg b { color: var(--fg-1); font-weight: 600; }
.util-emerg, .util-rest { white-space: nowrap; }
/* The emergency-room line blinks between brand green and its natural colour */
.util-rest { animation: emerg-blink 2.6s ease-in-out infinite; }
@keyframes emerg-blink {
  0%, 100% { color: var(--fg-3); }
  50%      { color: var(--vital); }
}
.util-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--vital);
  box-shadow: 0 0 9px var(--vital-glow);
  flex: none;
  animation: util-pulse 2.4s ease-in-out infinite;
}
@keyframes util-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.util-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
  white-space: nowrap;
}
.util-meta a { color: var(--fg-1); text-decoration: none; }
.util-meta a:hover { color: var(--vital); }
.util-911 { color: var(--vital); text-decoration: none; font-weight: 600; transition: color var(--dur-base) var(--ease-standard); }
.util-911:hover { color: #e4615a; }
.util-sep { width: 1px; height: 12px; background: var(--border-strong); }
body.is-scrolled .util-strip { transform: translateY(-100%); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: var(--strip-h);
  left: 0; right: 0;
  z-index: 50;
  padding-block: 18px;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-slow) var(--ease-standard),
              border-color var(--dur-slow) var(--ease-standard),
              padding var(--dur-slow) var(--ease-standard),
              top var(--dur-slow) var(--ease-standard);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
body.is-scrolled .site-header {
  top: 0;
  background: rgba(12,13,13,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-2);
  padding-block: 13px;
}
.brand { justify-self: start; }
.header-right { justify-self: end; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--fg-1);
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo--foot { height: 36px; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--fg-3);
  margin-top: 4px;
  font-weight: 500;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-standard);
}
.nav a:hover { color: var(--fg-1); opacity: 1; }
.header-right { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-phone:hover { color: var(--vital); opacity: 1; }
.header-phone .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vital); box-shadow: 0 0 8px var(--vital-glow); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hair-2);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard);
}
.nav-toggle:hover { border-color: var(--fg-1); background: rgba(255,255,255,0.05); }
.burger { position: relative; width: 19px; height: 13px; display: block; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.6px;
  background: var(--fg-1); border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-base) var(--ease-standard);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }
.nav-toggle.is-open .burger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.is-open .burger span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .burger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(8,9,9,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 0; width: min(86vw, 440px); }
.drawer-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 24px; }
.mobile-drawer nav a {
  font-family: var(--font-sans);
  font-size: clamp(30px, 8.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  text-decoration: none;
  padding: 15px 0;
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--border-2);
  transition: color var(--dur-base) var(--ease-standard), padding-left var(--dur-base) var(--ease-standard);
}
.mobile-drawer nav a .di { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--vital); font-weight: 400; }
.mobile-drawer nav a:hover, .mobile-drawer nav a:active { color: var(--vital); padding-left: 8px; }
.mobile-drawer .drawer-book {
  margin-top: 28px; padding: 18px 0; justify-content: center; gap: 10px;
  background: var(--vital); color: #fff; border-radius: var(--radius-btn);
  font-size: 20px; border-bottom: 0;
}
.mobile-drawer .drawer-book:hover { background: #e4615a; color: #fff; padding-left: 0; }
.mobile-drawer .drawer-book .ar { transition: transform var(--dur-base) var(--ease-standard); }
.mobile-drawer .drawer-book:hover .ar { transform: translateX(4px); }
.mobile-drawer .drawer-phone {
  font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.04em;
  color: var(--fg-3); justify-content: center; border-bottom: 0; margin-top: 4px;
}
.mobile-drawer .drawer-phone:hover { color: var(--vital); padding-left: 0; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 124px var(--pad-x) 64px;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img,
.hero-media .hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus-x, 58%) center;
  display: block;
}
/* Crop the source watermark off the right edge by zooming in,
   anchored toward the left so the right edge (and its mark) leaves frame.
   --hero-zoom / --hero-focus-x are tunable; set zoom to 1 to revert. */
.hero-media .hero-video {
  transform: scale(var(--hero-zoom, 1.14));
  transform-origin: 22% 50%;
}
/* Green theme wash + micro-grain, sitting above the video, below the text scrim */
.hero-tint {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 95% at 82% 26%, rgba(216,69,61,0.28), rgba(216,69,61,0) 58%),
    linear-gradient(180deg, rgba(216,69,61,0.05) 0%, rgba(40,14,12,0.0) 38%, rgba(30,11,10,0.34) 100%);
  mix-blend-mode: soft-light;
}
.hero-grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,13,13,0.94) 0%, rgba(12,13,13,0.72) 32%, rgba(12,13,13,0.15) 62%, rgba(12,13,13,0.0) 100%),
    linear-gradient(0deg, rgba(12,13,13,0.95) 2%, rgba(12,13,13,0.25) 32%, rgba(12,13,13,0) 60%),
    linear-gradient(180deg, rgba(12,13,13,0.6) 0%, rgba(12,13,13,0) 24%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
}
.hero-content { max-width: 760px; }
.hero h1 {
  margin: 18px 0 0;
  font-weight: var(--title-weight);
  font-size: clamp(33px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.014em;
  max-width: 21ch;
}
.hero .lead { margin-top: 24px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: nowrap; gap: 14px; margin-top: 36px; align-items: center; }
@media (max-width: 920px) { .hero-cta { flex-wrap: wrap; } }

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 14px;
  border: 1px solid var(--hair-2);
  border-radius: var(--radius-pill);
  background: rgba(12,13,13,0.4);
  backdrop-filter: blur(6px);
}
.rating-chip img { height: 18px; width: auto; }
.rating-chip .rc-g { height: 19px; width: 19px; flex: none; }
.stars { display: inline-flex; gap: 2px; color: var(--vital); }
.stars svg { width: 15px; height: 15px; }
.rating-chip .rc-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--fg-2); line-height: 1.3; white-space: nowrap; }
.rating-chip .rc-meta b { color: var(--fg-1); font-weight: 600; }

.hero-corner {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(48px, 8vh, 96px);
  text-align: right;
}
.hero-corner .label { display: block; }

.scroll-cue {
  position: absolute;
  left: var(--pad-x);
  bottom: 30px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue .bar { width: 1px; height: 38px; background: linear-gradient(var(--vital), transparent); position: relative; overflow: hidden; }

/* ============================================================
   TRUST STRIP / STATS
   ============================================================ */
.trust {
  border-block: 1px solid var(--border-2);
  background: var(--bg-deep);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-cell {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--border-2);
}
.trust-cell:first-child { border-left: 0; }
.trust-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--fg-1);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.trust-num .u { color: var(--vital); font-size: 0.5em; font-family: var(--font-mono); letter-spacing: 0; }
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 14px;
}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { max-width: 720px; }
.section-head .h-lg { margin-top: 20px; }
.section-head .lead { margin-top: 22px; max-width: 56ch; }
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy p + p { margin-top: 20px; }
.about-credo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 30px;
  text-wrap: pretty;
}
.about-credo .q { color: var(--vital); }
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 36px;
}
.cred-cell { background: var(--bg-1); padding: 26px; }
.cred-cell h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vital);
  margin: 0 0 12px;
  font-weight: 500;
}
.cred-cell p { font-size: 15px; line-height: 1.55; color: var(--fg-2); }

.about-figure {
  position: relative;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0a0a0a;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure .af-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease-standard);
}
.about-figure .af-img.is-active { opacity: 1; }
.about-figure--photo { aspect-ratio: 5 / 4; }
.about-figure--photo img { filter: grayscale(0.25) brightness(0.92) contrast(1.04); }
.figure-tag {
  position: absolute;
  left: 18px; bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(12,13,13,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
}
.about-mini-stats {
  display: flex;
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--border-1);
  border-top: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

/* ============================================================
   CINEMATIC INTERLUDE (full-bleed render + heartbeat)
   ============================================================ */
.interlude {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid var(--border-2);
}
.interlude-media { position: absolute; inset: 0; }
.il-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease-standard);
}
.il-img.is-active { opacity: 1; }
.il-caption {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.il-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--vital);
  box-shadow: 0 0 8px var(--vital-glow);
  flex: none;
}
.interlude-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,13,13,0.92) 0%, rgba(12,13,13,0.55) 45%, rgba(12,13,13,0.2) 100%);
}
.interlude-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); width: 100%; }
.interlude blockquote {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(33px, 6.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  text-wrap: balance;
}
.il-accent { color: var(--vital); }
.interlude .attr {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.ecg-line { margin-top: 40px; max-width: 420px; }
.ecg-line svg { width: 100%; height: 56px; overflow: visible; }
.ecg-path {
  fill: none;
  stroke: var(--vital);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--vital-glow));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.interlude.in-view .ecg-path { animation: ecg-draw 3.4s var(--ease-standard) forwards, ecg-flicker 2.6s ease-in-out 3.4s infinite; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
@keyframes ecg-flicker { 0%,100% { opacity: 1; } 50% { opacity: 0.72; } }

/* ============================================================
   SERVICES
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-top: 60px;
}
.svc {
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-base) var(--ease-standard);
}
.svc:hover { background: var(--bg-3); }
/* image cover holding the index, title and description */
.svc-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
}
.svc-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,10,10,0.36) 0%, rgba(8,10,10,0) 28%, rgba(8,10,10,0.42) 56%, rgba(8,10,10,0.88) 100%);
}
.svc-media > * { position: relative; z-index: 1; }
.svc-media img { transition: transform var(--dur-slow) var(--ease-standard); }
.svc-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.82);
  transition: color var(--dur-base) var(--ease-standard);
}
.svc:hover .svc-index { color: var(--vital); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.svc-pop {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(216,69,61,0.85);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  backdrop-filter: blur(4px);
}
.svc-head h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
}
.svc-head p { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.88); margin: 0; }
.svc-body { padding: clamp(22px, 2.2vw, 30px); display: flex; flex-direction: column; flex: 1; }
.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.svc-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.svc-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--vital); flex: none; }
.svc-foot { margin-top: auto; padding-top: 22px; }

/* ============================================================
   DOCTORS
   ============================================================ */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-top: 60px;
}
.doc-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  background: var(--bg-1);
}
.doc-photo {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(ellipse 78% 60% at 50% 30%, rgba(216,69,61,0.12), transparent 64%),
    linear-gradient(180deg, #20262a 0%, #14181a 68%, #0e1012 100%);
  overflow: hidden;
}
.doc-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 12%;
  filter: grayscale(0.1) contrast(1.03);
}
.doc-photo .role-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vital);
}
.doc-body { padding: clamp(24px, 2.4vw, 34px); display: flex; flex-direction: column; }
.doc-name { font-family: var(--font-sans); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; margin: 0; }
.doc-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--vital); margin: 8px 0 0; }
.doc-certs { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 11px; }
.doc-certs li { font-size: 14px; color: var(--fg-2); line-height: 1.4; display: flex; gap: 11px; align-items: flex-start; }
.doc-certs li svg { width: 16px; height: 16px; color: var(--vital); flex: none; margin-top: 2px; }
.doc-exp-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 12px; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.doc-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}
.doc-lang { margin-top: auto; padding-top: 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--fg-3); border-top: 1px solid var(--border-2); }
.doc-lang b { color: var(--fg-1); font-weight: 500; }

.docs-foot {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border-2);
}
.docs-foot .cred { display: flex; flex-direction: column; gap: 6px; }
.docs-foot .cred b { font-family: var(--font-sans); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.docs-foot .cred span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }

/* ============================================================
   REVIEWS
   ============================================================ */
.rev-head { display: flex; align-items: center; justify-content: flex-start; gap: clamp(40px, 5vw, 72px); flex-wrap: wrap; }
.rev-head .section-head { flex: 1 1 420px; max-width: 720px; }
.rev-score {
  display: flex; align-items: center; gap: 22px;
  flex: 0 0 auto;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  padding: 20px 26px;
}
.rev-score-g { height: 28px; width: 28px; flex: none; align-self: flex-start; }
.rev-score .big { font-family: var(--font-sans); font-weight: 600; font-size: 46px; letter-spacing: -0.03em; line-height: 1; }
.rev-score .sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--fg-3); line-height: 1.5; margin-top: 6px; }
.rev-score .rev-score-word { height: 17px; margin-top: 8px; }
/* 509+ reviews — highlighted USP */
.rev-score .sub .rev-count { color: var(--vital); font-weight: 700; }
.rev-score .sub .rev-usp { color: var(--fg-1); font-weight: 600; }

.rev-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rev-card {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.rev-card:hover { border-color: var(--hair-2); }
.rev-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rev-card .stars { margin: 0; }
.rev-g { height: 17px; width: 17px; }
.rev-card p { font-size: 15px; line-height: 1.6; color: var(--fg-2); margin: 0 0 22px; letter-spacing: -0.01em; flex: 1 1 auto; }
.rev-who { display: flex; align-items: center; gap: 13px; }
.rev-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--vital); font-weight: 600;
  flex: none;
}
.rev-who .nm { font-size: 14px; font-weight: 500; color: var(--fg-1); display: inline-flex; align-items: center; gap: 6px; }
.rev-who .nm .redact {
  display: inline-block;
  width: 3.1em;
  height: 0.82em;
  border-radius: 2px;
  background: var(--fg-muted);
  opacity: 0.42;
  vertical-align: -0.04em;
}
.rev-who .mt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--fg-muted); margin-top: 2px; }

/* keyword chips */
.rev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.rev-chips span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--fg-3); border: 1px solid var(--border-2); border-radius: var(--radius-pill);
  padding: 7px 13px;
}
.rev-chips span b { color: var(--vital); font-weight: 500; margin-left: 6px; }

/* ============================================================
   INSURANCE
   ============================================================ */
.section--cover { position: relative; overflow: hidden; }
.ins-media { position: absolute; inset: 0; }
.ins-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.ins-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,13,13,0.96) 0%, rgba(12,13,13,0.86) 34%, rgba(12,13,13,0.5) 64%, rgba(12,13,13,0.18) 100%),
    linear-gradient(0deg, rgba(12,13,13,0.9) 0%, rgba(12,13,13,0) 42%),
    linear-gradient(180deg, rgba(12,13,13,0.55) 0%, rgba(12,13,13,0) 26%);
}
.section--cover > .wrap { position: relative; z-index: 2; }
.section--cover .ins-marquee { position: relative; z-index: 2; }
.ins-head { max-width: 640px; }
.ins-marquee {
  margin-top: clamp(48px, 7vh, 80px);
  border-block: 1px solid var(--border-2);
  overflow: hidden;
  padding-block: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.section--cover .ins-marquee {
  background: rgba(9,10,10,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--hair-2);
}
.ins-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: ins-scroll 42s linear infinite;
}
.ins-marquee:hover .ins-track { animation-play-state: paused; }
.ins-track span {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  color: var(--fg-3);
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-standard);
}
.ins-track span:hover { color: var(--fg-1); }
.ins-track .m-dot { color: var(--vital); font-size: 0.7em; opacity: 0.7; }
/* logo tiles */
.ins-track .ins-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-right: 60px;
  flex: none;
}
.ins-track .ins-logo img {
  height: 32px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity var(--dur-base) var(--ease-standard);
}
.ins-track .ins-logo:hover img { opacity: 1; }
.ins-marquee--logos .ins-track { gap: 0; }
@keyframes ins-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   LOCATION
   ============================================================ */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.loc-photo { position: relative; border: 1px solid var(--border-1); border-radius: var(--radius-card); overflow: hidden; min-height: 380px; }
.loc-maplink { position: absolute; inset: 0; display: block; text-decoration: none; }
.loc-maplink:hover { opacity: 1; }
.loc-maplink:hover img { filter: grayscale(0.1) brightness(0.92) contrast(1.05); }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.82) contrast(1.05); }
.loc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,13,0.2), rgba(12,13,13,0.55)); }
.loc-pin {
  position: absolute; z-index: 2; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(12,13,13,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--hair); border-radius: var(--radius-pill);
  padding: 10px 16px;
}
.loc-pin img { height: 20px; width: auto; filter: none; }
.loc-pin span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.9); }

.loc-info { display: flex; flex-direction: column; gap: 0; }
.info-block { padding: 24px 0; border-top: 1px solid var(--border-2); }
.info-block:first-child { padding-top: 0; border-top: 0; }
.info-block h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 12px; font-weight: 500; }
.info-block .big-addr { font-family: var(--font-sans); font-weight: 500; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.25; color: var(--fg-1); }
.info-block a { color: var(--fg-1); text-decoration: none; }
.info-block a:hover { color: var(--vital); opacity: 1; }
.contact-rows { display: grid; gap: 10px; }
.contact-rows .row { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--fg-1); }
.contact-rows .row svg { width: 17px; height: 17px; color: var(--vital); flex: none; }
.hours-table { display: grid; gap: 9px; }
.hours-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }
.hours-row .d { color: var(--fg-2); }
.hours-row .t { color: var(--fg-1); }
.hours-row.closed .t { color: var(--fg-muted); }
.hours-row.today { color: var(--vital); }
.hours-row.today .d, .hours-row.today .t { color: var(--vital); }
.hours-row.today .d::after { content: " · TODAY"; font-size: 10px; letter-spacing: 0.1em; }
.emergency-note { font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.emergency-note b { color: var(--fg-1); font-weight: 500; }

/* ============================================================
   BOOKING
   ============================================================ */
.book { background: var(--bg-deep); border-top: 1px solid var(--border-2); }
.book-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); }
.book-aside .h-lg { margin-top: 18px; }
.book-contacts { margin-top: 40px; display: grid; gap: 22px; }
.book-contacts .bc { display: flex; gap: 15px; align-items: flex-start; }
.book-contacts .bc svg { width: 19px; height: 19px; color: var(--vital); flex: none; margin-top: 3px; }
.book-contacts .bc .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.book-contacts .bc .val { font-size: 17px; color: var(--fg-1); margin-top: 4px; }
.book-contacts .bc .val a { color: inherit; text-decoration: none; }
.book-contacts .bc .val a:hover { color: var(--vital); }

.book-form {
  border: 1px solid var(--border-1);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 44px);
  background: var(--bg-1);
}
.book-call-card { display: flex; flex-direction: column; align-items: flex-start; }
.call-card-title { font-size: clamp(20px, 2vw, 26px); color: var(--fg-1); margin: 0 0 14px; }
.call-card-copy { font-size: 15px; color: var(--fg-3); line-height: 1.6; margin: 0 0 30px; max-width: 46ch; }
.call-card-phone {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(28px, 3vw, 36px); font-weight: 600; color: var(--fg-1);
  text-decoration: none; margin-bottom: 26px;
  transition: color var(--dur-base) var(--ease-standard);
}
.call-card-phone svg { width: 26px; height: 26px; color: var(--vital); flex: none; }
.call-card-phone:hover { color: var(--vital); }
.call-card-hours { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-muted); margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.field label .req { color: var(--vital); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-1);
  background: var(--bg-deep);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-input);
  padding: 13px 14px;
  outline: none;
  transition: border-color var(--dur-base) var(--ease-standard);
  width: 100%;
  min-width: 0;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--vital); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.check-row { display: flex; align-items: center; gap: 11px; margin-top: 4px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--vital); }
.check-row label { font-family: var(--font-sans); font-size: 14px; color: var(--fg-2); text-transform: none; letter-spacing: -0.01em; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.form-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--fg-muted); }
.form-success {
  border: 1px solid var(--vital-dim);
  background: rgba(216,69,61,0.06);
  border-radius: var(--radius-card);
  padding: 22px;
  margin-top: 22px;
  display: none;
  align-items: center;
  gap: 14px;
}
.form-success.show { display: flex; }
.form-success svg { color: var(--vital); width: 22px; height: 22px; flex: none; }
.form-success p { font-size: 14.5px; color: var(--fg-1); margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--border-2); background: var(--bg-1); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: clamp(56px, 8vh, 88px); }
.foot-brand .brand { margin-bottom: 20px; }
.foot-brand p { font-size: 14px; color: var(--fg-3); max-width: 34ch; line-height: 1.6; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 18px; font-weight: 500; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col a { font-size: 14px; color: var(--fg-2); text-decoration: none; transition: color var(--dur-base); }
.foot-col a:hover { color: var(--vital); opacity: 1; }
.foot-contact p { font-size: 14px; color: var(--fg-2); line-height: 1.6; margin: 0 0 12px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--border-2); }
.foot-bottom .cp { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-muted); }
.foot-legal { display: flex; gap: 22px; }
.foot-legal a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-muted); text-decoration: none; }
.foot-legal a:hover { color: var(--fg-2); }

/* ============================================================
   REVEAL ANIMATION
   Default = visible. JS "arms" the hidden start-state only when a
   live compositor is painting (rAF fires). If JS/rAF never runs
   (no-JS, backgrounded iframe), content stays visible.
   ============================================================ */
.reveal { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-standard), transform 0.8s var(--ease-standard); }
.reveal.armed { opacity: 0; transform: translateY(26px); }
.reveal.armed.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .ecg-path { animation: none !important; stroke-dashoffset: 0; }
  .ins-track { animation: none; }
  .util-dot { animation: none; }
}

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */
.button:active { opacity: 0.86; transform: translateY(1px); }
.button { transition: opacity var(--dur-base) var(--ease-standard),
            background var(--dur-base) var(--ease-standard),
            border-color var(--dur-base) var(--ease-standard),
            color var(--dur-base) var(--ease-standard),
            transform var(--dur-fast) var(--ease-standard); }

/* nav underline sweep */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--vital); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-standard);
}
.nav a:hover::after { transform: scaleX(1); }

/* rating chip hover */
.rating-chip { transition: border-color var(--dur-base) var(--ease-standard), background var(--dur-base) var(--ease-standard); text-decoration: none; }
.rating-chip:hover { border-color: var(--vital-dim); }
.rating-chip:hover .rc-meta b { color: var(--vital); }

/* header phone dot pulse */
.header-phone .dot { animation: util-pulse 2.4s ease-in-out infinite; }

/* review cards lift */
.rev-card { transition: border-color var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard); }
.rev-card:hover { border-color: var(--hair-2); transform: translateY(-3px); }
.rev-g { transition: opacity var(--dur-base) var(--ease-standard); }

/* doctor + review chips hover */
.doc-tags span, .rev-chips span {
  transition: border-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard);
}
.doc-tags span:hover { border-color: var(--vital-dim); color: var(--fg-1); }
.rev-chips span:hover { border-color: var(--vital-dim); }

/* doctor card + about figure subtle frame response */
.doc-card { transition: border-color var(--dur-base) var(--ease-standard); }
.doc-card:hover { border-color: var(--hair-2); }
.doc-photo img { transition: transform var(--dur-slow) var(--ease-standard); }
.doc-card:hover .doc-photo img { transform: scale(1.03); }

/* location photo hover */
.loc-photo img { transition: transform var(--dur-slow) var(--ease-standard), filter var(--dur-slow) var(--ease-standard); }
.loc-photo:hover img { transform: scale(1.03); }

/* hours: today row */
.hours-row { transition: color var(--dur-base) var(--ease-standard); }

/* form field lift on focus */
.field input:focus, .field select:focus, .field textarea:focus { background: var(--bg-1); }

/* footer link underline */
.foot-col a, .foot-legal a { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .rev-card:hover, .doc-card:hover .doc-photo img, .loc-photo:hover img { transform: none; }
  .header-phone .dot { animation: none; }
  .button:active { transform: none; }
  .util-rest { animation: none; color: var(--vital); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .section { padding-block: clamp(52px, 7vh, 84px); }
  .nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 16px; }
  .util-meta { display: none; }
  .util-inner { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .ins-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .rev-head { gap: 28px; }
  .rev-score { align-self: flex-start; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-cell:nth-child(3) { border-left: 0; }
  .trust-cell:nth-child(odd) { border-left: 0; }
  .trust-cell:nth-child(2), .trust-cell:nth-child(4) { border-left: 1px solid var(--border-2); }
  .trust-cell:nth-child(3), .trust-cell:nth-child(4) { border-top: 1px solid var(--border-2); }
}
@media (max-width: 680px) {
  .svc-grid { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .util-rest { display: none; }
  .foot-top { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 1fr; }
  .doc-photo { aspect-ratio: 4/3; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-corner { display: none; }
  .ins-logos { grid-template-columns: 1fr; }
  .head-row { gap: 18px; }
  .head-row .lead { max-width: none; }
  .ins-scrim {
    background:
      linear-gradient(90deg, rgba(12,13,13,0.92) 0%, rgba(12,13,13,0.78) 60%, rgba(12,13,13,0.55) 100%),
      linear-gradient(0deg, rgba(12,13,13,0.92) 0%, rgba(12,13,13,0.2) 55%, rgba(12,13,13,0) 100%);
  }
  .docs-foot { gap: 26px 32px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .button { justify-content: center; }
}
@media (max-width: 540px) {
  .header-right .button--vital { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .rating-chip { width: 100%; justify-content: flex-start; }
  .rating-chip .rc-meta { white-space: normal; line-height: 1.35; }
  .rev-score { width: 100%; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .util-emerg { font-size: 11px; }
}
