/* ═══════════════════════════════════════════
   EVSLA MEDICAL — style.css
   Fonts: Barlow Semi Condensed (headings) + Figtree (body)
   ═══════════════════════════════════════════ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --brand:       oklch(38% 0.13 255);
  --brand-dark:  oklch(30% 0.13 255);
  --accent:      oklch(42% 0.22 27);
  --accent-dark: oklch(34% 0.22 27);

  /* Surface */
  --bg:          oklch(98% 0.004 255);
  --surface:     oklch(100% 0 0);
  --surface-soft:oklch(96% 0.006 255);

  /* Text */
  --text:        oklch(18% 0.02 255);
  --muted:       oklch(44% 0.02 255);
  --muted-light: oklch(60% 0.015 255);

  /* Border */
  --border:      oklch(90% 0.008 255);

  /* Shadows */
  --shadow-sm:   0 2px 8px oklch(18% 0.02 255 / 0.06);
  --shadow-md:   0 8px 24px oklch(18% 0.02 255 / 0.10);
  --shadow-lg:   0 20px 48px oklch(18% 0.02 255 / 0.14);

  /* Drawer */
  --drawer-bg:   oklch(14% 0.04 255);
  --drawer-w:    340px;

  /* Nav */
  --nav-height:  108px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}
html.has-gsap-scroll { scroll-behavior: auto; }

body {
  background: var(--bg);
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; letter-spacing: 0.03em; }

p { color: var(--muted); line-height: 1.7; max-width: 68ch; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-2xl) 0;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.bg-light { background: var(--surface-soft); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem;
  z-index: 2000;
  background: #fff;
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  font-family: 'Figtree', sans-serif;
}

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.eyebrow-blue { color: var(--brand); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}
.btn-outline-dark:hover {
  background: var(--brand);
  color: #fff;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Scrolled state — fully opaque white */
.site-nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { text-decoration: none; flex-shrink: 0; }
.logo-img {
  height: 80px;
  width: auto;
  transition: height 0.3s ease;
}

/* Once scrolled, logo shrinks slightly */
.site-nav.is-scrolled .logo-img {
  height: 52px;
}

/* Hamburger — always visible */
.nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}
.nav-toggle:hover {
  background: rgba(255,255,255,0.8);
  border-color: var(--brand);
}

.site-nav.is-scrolled .nav-toggle {
  border-color: var(--border);
  background: var(--surface);
}
.site-nav.is-scrolled .nav-toggle:hover {
  background: var(--surface-soft);
  border-color: var(--brand);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.site-nav.is-scrolled .nav-toggle span {
  background: var(--text);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DRAWER BACKDROP ── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(14% 0.04 255 / 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* ── DRAWER ── */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: var(--drawer-w);
  max-width: 90vw;
  height: 100%;
  z-index: 300;
  background: var(--drawer-bg);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  gap: var(--space-md);
  min-height: 100%;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}

.drawer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.drawer-close {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid oklch(100% 0 0 / 0.12);
  background: oklch(100% 0 0 / 0.06);
  border-radius: 0.25rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}
.drawer-close:hover {
  background: oklch(100% 0 0 / 0.12);
  border-color: oklch(100% 0 0 / 0.24);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: oklch(85% 0.01 255);
  border-radius: 0.25rem;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.drawer-link:hover {
  background: oklch(100% 0 0 / 0.06);
  color: #fff;
  border-color: oklch(100% 0 0 / 0.08);
}

.drawer-link--page {
  color: oklch(78% 0.08 255);
}
.drawer-link--page::after {
  content: '→';
  font-size: 0.9rem;
  opacity: 0.5;
}

.drawer-link--active {
  background: oklch(100% 0 0 / 0.08);
  color: #fff;
  border-color: oklch(100% 0 0 / 0.12);
}

.drawer-cta {
  padding-top: var(--space-sm);
  border-top: 1px solid oklch(100% 0 0 / 0.08);
}

.drawer-btn {
  width: 100%;
  justify-content: center;
}

.drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.drawer-contact a {
  font-size: 0.875rem;
  color: oklch(70% 0.01 255);
  text-decoration: none;
  transition: color 0.16s ease;
}
.drawer-contact a:hover { color: #fff; }

.drawer-tagline {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(45% 0.02 255);
  padding-top: var(--space-sm);
  border-top: 1px solid oklch(100% 0 0 / 0.05);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 0;
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a0f1e;
}

.hero-video,
.hero-fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-fallback-image { z-index: 0; }
.hero-video { z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      oklch(9% 0.04 255 / 0.52) 0%,
      oklch(9% 0.04 255 / 0.30) 50%,
      oklch(9% 0.04 255 / 0.10) 100%
    );
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-content {
  max-width: 780px;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(85% 0.06 255);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid oklch(100% 0 0 / 0.2);
  border-radius: 0.2rem;
}

.hero-content h1 {
  color: #fff;
  line-height: 1.05;
}

.hero-content p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: oklch(88% 0.005 255);
  max-width: 64ch;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* ── SECTION INTRO ── */
.section-intro {
  margin-bottom: var(--space-lg);
  max-width: 640px;
}

.section-cta {
  margin-top: var(--space-lg);
}

/* ── WHY US — numbered list layout ── */
.why-us { background: var(--bg); }

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.why-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}
.why-item:nth-child(even) { border-right: none; }
.why-item:hover { background: var(--surface-soft); }

.why-num {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: oklch(90% 0.008 255);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.why-body h3 { color: var(--text); margin-bottom: 0.5rem; }
.why-body p { max-width: none; }

/* ── CLINICS SHOWCASE ── */
.clinics-showcase { background: var(--surface); }

.clinics-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.clinics-copy {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.lead-text {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 1rem 0 var(--space-lg);
  max-width: none;
}

.clinic-points { display: grid; gap: 1rem; }

.clinic-point {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background: var(--bg);
}
.clinic-point h3 { color: var(--text); font-size: 1rem; letter-spacing: 0; margin-bottom: 0.35rem; }
.clinic-point p { max-width: none; font-size: 0.9rem; }

.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  min-height: 220px;
  background: var(--surface-soft);
  border: 0;
  padding: 0;
  cursor: zoom-in;
  isolation: isolate;
  will-change: transform;
  transition: box-shadow 0.22s ease;
  box-shadow: var(--shadow-sm);
}
.gallery-card:hover { box-shadow: var(--shadow-lg); }
.gallery-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-card:hover img { transform: scale(1.04); }

.gallery-tall { grid-row: span 2; min-height: 460px; }
.gallery-wide { grid-column: span 2; min-height: 220px; }

/* Gallery modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gallery-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: oklch(9% 0.04 255 / 0.88);
  backdrop-filter: blur(8px);
}
.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1160px);
  max-height: 88vh;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #0a0f1e;
  box-shadow: 0 40px 80px oklch(9% 0.04 255 / 0.5);
}
.gallery-modal-media {
  width: 100%;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
}
.gallery-modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 40px; height: 40px;
  border: 1px solid oklch(100% 0 0 / 0.2);
  border-radius: 0.25rem;
  background: oklch(100% 0 0 / 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s ease;
}
.gallery-modal-close:hover { background: oklch(100% 0 0 / 0.2); }
body.gallery-open { overflow: hidden; }

/* ── PHYSICIANS ── */
.physicians-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.physician-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.physician-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-soft);
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.physician-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.physician-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
}

.physician-name {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.physician-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.physician-info p { max-width: 60ch; }

/* ── CONDITIONS PREVIEW ── */
.conditions-preview { background: var(--text); }

.conditions-preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.conditions-preview-copy { color: #fff; }
.conditions-preview-copy .eyebrow { color: oklch(75% 0.08 255); }
.conditions-preview-copy h2 { color: #fff; }
.conditions-preview-copy p { color: oklch(75% 0.01 255); margin-bottom: var(--space-lg); max-width: 48ch; }

.conditions-preview-list {
  display: flex;
  flex-direction: column;
}

.cond-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid oklch(100% 0 0 / 0.1);
  text-decoration: none;
  color: oklch(82% 0.01 255);
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.cond-item:first-child { border-top: 1px solid oklch(100% 0 0 / 0.1); }
.cond-item:hover { color: #fff; padding-left: 0.75rem; }

.cond-name {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.cond-arrow { flex-shrink: 0; transition: transform 0.18s ease; }
.cond-item:hover .cond-arrow { transform: translateX(4px); }

/* ── REFER BANNER ── */
.refer-banner {
  background: var(--surface-soft);
  padding: var(--space-xl) 0;
}

.refer-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
}

.refer-banner-copy .eyebrow { margin-bottom: 0.5rem; }
.refer-banner-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.refer-banner-copy p { max-width: 56ch; }

/* ── LOCATIONS ── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.location-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
}

.location-num {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.location-name {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.location-address {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.location-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.location-contact a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 500;
  transition: color 0.16s ease;
}
.location-contact a:hover { color: var(--brand-dark); }
.location-contact span { color: var(--muted); font-size: 0.9rem; }

/* ── CONTACT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-copy { padding-top: var(--space-sm); }
.contact-copy h2 { margin-bottom: 1rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: var(--space-lg);
}
.contact-details a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--brand);
  font-weight: 500;
  transition: color 0.16s ease;
}
.contact-details a:hover { color: var(--brand-dark); }

/* ── FORMS ── */
.contact-form,
.referral-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  font-family: 'Barlow Semi Condensed', sans-serif;
  letter-spacing: 0.02em;
}

.req { color: var(--accent); }

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.25rem;
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(38% 0.13 255 / 0.12);
}
.form-input::placeholder { color: var(--muted-light); }

.form-select { cursor: pointer; }

.form-fieldset {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-legend {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 0 0.5rem;
}

.form-submit { align-self: flex-start; }

.form-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-status.is-success { color: oklch(38% 0.14 162); }
.form-status.is-error { color: var(--accent); }

.form-note {
  font-size: 0.8rem;
  color: var(--muted-light);
  max-width: none;
}

/* ── PAGE HERO ── */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background: var(--surface);
  position: relative;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: end;
}

.page-hero-copy {
  max-width: 680px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.16s ease;
}
.breadcrumb:hover { color: var(--brand); }

.page-hero-copy h1 {
  margin-bottom: 1.25rem;
  line-height: 1;
}

.page-hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 56ch;
}

.page-hero-stat-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-left: var(--space-xl);
  border-left: 1px solid var(--border);
}

.hero-stat-num {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--brand);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 12ch;
  line-height: 1.3;
  margin-top: 0.25rem;
}

.page-hero-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 60%, transparent 100%);
  margin-top: var(--space-xl);
}

/* ── CONDITIONS PAGE ── */
.condition-section { padding: var(--space-2xl) 0; }

.condition-layout {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.condition-label-col {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.condition-index {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  color: oklch(90% 0.008 255);
}
.bg-light .condition-index { color: oklch(86% 0.008 255); }

.condition-tag {
  display: inline-block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.condition-content { max-width: 860px; }

.condition-header {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}
.condition-header h2 { margin-bottom: 1rem; }
.condition-intro { font-size: 1.05rem; color: var(--muted); max-width: 64ch; }

.condition-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
}

.condition-symptoms h3,
.condition-treatments h3 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.symptom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.symptom-list li {
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.symptom-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.treatment-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.treatment-item {
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--brand);
  background: var(--surface);
}
.bg-light .treatment-item { background: var(--bg); }

.treatment-name {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.treatment-item p { font-size: 0.875rem; max-width: none; line-height: 1.6; }

/* Conditions CTA */
.conditions-cta {
  background: var(--text);
  padding: var(--space-xl) 0;
}
.conditions-cta-inner {
  text-align: left;
  max-width: 760px;
}
.conditions-cta-inner h2 { color: #fff; margin-bottom: 1rem; }
.conditions-cta-inner p { color: oklch(72% 0.01 255); margin-bottom: var(--space-lg); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── REFER PAGE ── */
.refer-process { background: var(--bg); }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--space-md);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0.375rem;
}

.process-connector {
  width: 2.5rem;
  flex-shrink: 0;
  height: 2px;
  background: var(--border);
  align-self: center;
  margin-top: -1rem;
}

.process-step-num {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--brand);
  line-height: 1;
}
.process-step h3 { font-size: 1.1rem; margin: 0; }
.process-step p { font-size: 0.875rem; max-width: none; }

.refer-why { padding: var(--space-2xl) 0; }

.refer-why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.refer-why-copy h2 { margin-bottom: 1rem; }

.refer-why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.refer-why-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.refer-why-num {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 2rem;
  margin-top: 0.1rem;
}
.refer-why-item h3 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.35rem; }
.refer-why-item p { font-size: 0.875rem; max-width: none; }

.refer-form-section { background: var(--bg); padding: var(--space-2xl) 0; }

.refer-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: start;
}

.refer-form-copy {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.refer-form-copy h2 { margin-bottom: 1rem; }

.refer-direct {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.refer-direct-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.refer-direct-label {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.refer-direct-item a,
.refer-direct-item span {
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.refer-direct-item a:hover { color: var(--brand); }

/* ── FOOTER ── */
footer {
  background: oklch(14% 0.04 255);
  color: oklch(70% 0.01 255);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-lg);
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-lg);
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: oklch(48% 0.02 255);
  max-width: none;
}

.footer-col h4 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(55% 0.01 255);
  margin-bottom: 0.75rem;
}

.footer-col p {
  font-size: 0.875rem;
  color: oklch(65% 0.01 255);
  line-height: 1.6;
  margin-bottom: 0.4rem;
  max-width: none;
}

.footer-col a {
  text-decoration: none;
  color: oklch(65% 0.01 255);
  transition: color 0.16s ease;
}
.footer-col a:hover { color: #fff; }

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav li a {
  font-size: 0.875rem;
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) 0;
  font-size: 0.8rem;
  color: oklch(40% 0.01 255);
  text-align: left;
}

/* ── REVEAL ── */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); }
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .clinics-layout { grid-template-columns: 1fr; }
  .locations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clinics-copy { position: static; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .conditions-preview-layout,
  .contact-layout,
  .refer-why-layout,
  .refer-form-layout,
  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-stat-col {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: var(--space-md);
  }

  .hero-stat { flex: 1; min-width: 120px; }

  .refer-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .condition-body { grid-template-columns: 1fr; }
  .condition-layout { grid-template-columns: 60px 1fr; gap: var(--space-md); }
  .condition-label-col { position: static; flex-direction: row; align-items: center; }
  .condition-tag { writing-mode: horizontal-tb; transform: none; }

  .process-steps { flex-direction: column; }
  .process-connector { width: 2px; height: 1.5rem; align-self: flex-start; margin-left: 1.5rem; }

  .refer-form-copy { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-height: 90px; }

  .why-list { grid-template-columns: 1fr; }
  .why-item { border-right: none; }
  .why-item:nth-child(even) { border-right: none; }

  .locations-grid { grid-template-columns: 1fr; }
  .physician-card { grid-template-columns: 1fr; text-align: center; }
  .physician-img { margin: 0 auto; }

  .clinic-gallery { grid-template-columns: 1fr; }
  .gallery-tall,
  .gallery-wide { grid-column: auto; grid-row: auto; min-height: 240px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; }

  section { padding: var(--space-xl) 0; }

  .hero { min-height: 88svh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .conditions-cta-inner { text-align: left; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { align-self: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .gallery-modal { padding: 0.75rem; }
  .gallery-modal-dialog { border-radius: 0.375rem; }
  .form-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, html.js .reveal { opacity: 1 !important; transform: none !important; }
}
