/*
Theme Name: Trauma Institute
Theme URI: https://trauma-institute.com
Author: Dr. Suzana Flores
Description: Kintsugi — broken and repaired with gold. Official theme for the National Trauma Institute.
Version: 6.0.0
Text Domain: trauma-institute
*/



/* === EMERGENCY CACHE BUST v6.0.0 === */
body { background: #0a0a0a !important; color: #f0ede8 !important; }

/* ============================================================
   DESIGN TOKENS — Kintsugi Palette
   Drawn from the blue-slate ceramic + gold-seam imagery
   ============================================================ */
:root {
  /* Core — black body, kintsugi accents */
  --black:          #0a0a0a;
  --black-2:        #111111;
  --black-3:        #161616;

  /* Kintsugi ceramics — blue slate tones from the vase */
  --slate-deep:     #1a2d2d;   /* deepest teal-black */
  --slate-mid:      #2a4040;   /* dark teal */
  --slate-warm:     #3a5555;   /* mid teal */
  --slate-mist:     #527878;   /* lighter teal */
  --slate-light:    #7aa0a0;   /* pale teal highlight */
  --slate-fog:      #a8c4c4;   /* misty blue-white */

  /* Lavender-smoke from the vase image */
  --smoke:          #7a88a8;   /* blue-grey smoke */
  --smoke-light:    #a0b0c8;

  /* Gold — kintsugi repair seams */
  --gold:           #c8a030;   /* rich warm gold */
  --gold-light:     #e0b840;   /* bright gold highlight */
  --gold-dim:       #8a6a18;   /* dark gold shadow */
  --gold-glow:      rgba(200,160,48,0.15);

  /* Text */
  --text-bright:    #f0ede8;
  --text-mid:       #a8b8b8;   /* slate-tinted grey */
  --text-dim:       #5a6868;
  --text-ghost:     #2a3838;

  /* Borders */
  --border:         rgba(122,160,160,0.15);
  --border-gold:    rgba(200,160,48,0.3);
  --border-bright:  rgba(122,160,160,0.35);

  /* Typography */
  --font-display:   'Cormorant Garamond', 'Georgia', serif;
  --font-ui:        'Jost', 'Helvetica Neue', sans-serif;
  --font-body:      'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2.5rem;
  --sp-2xl: 4rem;
  --sp-3xl: 6rem;
  --sp-4xl: 10rem;

  /* Layout */
  --max-w:      1240px;
  --max-w-text: 760px;

  /* Motion */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --fast:   200ms;
  --mid:    400ms;
  --slow:   800ms;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--black);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.78;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--fast) ease; }
a:hover { color: var(--gold-light); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}
.container--text { max-width: var(--max-w-text); }
.section { padding: var(--sp-3xl) 0; }
.section--xl { padding: var(--sp-4xl) 0; }

/* ============================================================
   KINTSUGI GOLD LINE — decorative crack/seam element
   Used as section dividers and accent marks
   ============================================================ */
.gold-seam {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-dim) 15%,
    var(--gold) 40%,
    var(--gold-light) 55%,
    var(--gold) 70%,
    var(--gold-dim) 85%,
    transparent 100%
  );
  position: relative;
}
/* Seam "node" — a wider crack intersection */
.gold-seam::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 38%;
  width: 60px;
  height: 5px;
  background: radial-gradient(ellipse, var(--gold) 0%, transparent 70%);
  opacity: 0.6;
}

/* Vertical gold seam accent */
.gold-seam--v {
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  /* Semi-transparent over the hero image */
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gold);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.97);
  border-color: var(--border-bright);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 0;
}

/* Logo */
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  gap: 2px;
  margin-right: auto;
}
.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.site-logo__sub {
  font-family: var(--font-ui);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Desktop nav */
.primary-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.primary-nav .nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0; padding: 0; gap: 0;
}
.primary-nav .nav-list > li {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
}
.primary-nav .nav-list > li > a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.primary-nav .nav-list > li > a:hover,
.primary-nav .nav-list > li.current-menu-item > a,
.primary-nav .nav-list > li.current-menu-ancestor > a,
.primary-nav .nav-list > li.current_page_item > a {
  color: var(--text-bright);
}

/* Dropdown */
.primary-nav .nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 210px;
  background: var(--black-3);
  border: 1px solid var(--border-gold);
  list-style: none;
  padding: 6px 0; margin: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1100;
}
.primary-nav .nav-list > li:hover > .sub-menu,
.primary-nav .nav-list > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.primary-nav .nav-list .sub-menu li { margin: 0; }
.primary-nav .nav-list .sub-menu li a {
  display: block;
  padding: 9px 20px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--text-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.primary-nav .nav-list .sub-menu li a:hover {
  color: var(--gold-light);
  background: rgba(200,160,48,0.06);
}

/* CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  margin-left: 16px;
  padding: 8px 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: 8px;
  background: none; border: none;
  cursor: pointer; flex-shrink: 0; padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-bright);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  pointer-events: none;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--black);
  border-top: 1px solid var(--border-gold);
  z-index: 990;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}
.mobile-nav-drawer.is-open {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.mobile-nav-drawer__inner { padding: 12px 24px 80px; }
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list > li { margin: 0; }
.mobile-nav-list > li > a {
  display: block;
  padding: 15px 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav-list > li > a:hover { color: var(--gold); }
.mobile-nav-list .sub-menu {
  list-style: none;
  padding: 4px 0 4px 16px; margin: 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-list .sub-menu li { margin: 0; }
.mobile-nav-list .sub-menu li a {
  display: block; padding: 10px 0;
  font-family: var(--font-ui); font-size: 0.85rem;
  color: var(--text-mid); text-decoration: none;
  border-bottom: 1px solid rgba(122,160,160,0.08);
  transition: color 0.2s;
}
.mobile-nav-list .sub-menu li a:hover { color: var(--gold-light); }
.mobile-nav-cta {
  display: block; text-align: center;
  margin-top: 24px; padding: 14px; width: 100%;
}
.mobile-nav-crisis {
  text-align: center; margin-top: 16px;
  font-family: var(--font-ui); font-size: 0.78rem; color: var(--text-dim);
}
.mobile-nav-crisis a { color: var(--gold); }
.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 989;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; display: none;
}
.mobile-nav-overlay.is-open { opacity: 1; pointer-events: auto; }
body.nav-is-open { overflow: hidden; }

@media (max-width: 960px) {
  .primary-nav        { display: none !important; }
  .nav-cta            { display: none !important; }
  .nav-toggle         { display: flex !important; }
  .mobile-nav-drawer  { display: block; }
  .mobile-nav-overlay { display: block; }
}

/* ============================================================
   HERO — KINTSUGI FULL BLEED
   The vase image dominates the entire above-fold space
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Full-bleed background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.72) saturate(0.9);
}

/* Multi-layer gradient overlay:
   - Bottom-heavy dark for text legibility
   - Subtle top vignette
   - Left warmth for gold tones */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(10,10,10,0.97) 0%,
      rgba(10,10,10,0.75) 25%,
      rgba(10,10,10,0.3) 50%,
      rgba(10,10,10,0.1) 75%,
      rgba(10,10,10,0.05) 100%
    ),
    linear-gradient(
      105deg,
      rgba(10,10,10,0.4) 0%,
      transparent 60%
    );
  z-index: 1;
}

/* Gold shimmer — mimics kintsugi crack catching light */
.hero__gold-crack {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
/* Diagonal crack top-left */
.hero__gold-crack--1 {
  top: 15%;
  left: 0;
  width: 45%;
  height: 1px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(200,160,48,0.0) 20%,
    rgba(200,160,48,0.4) 50%,
    rgba(200,160,48,0.1) 80%,
    transparent 100%
  );
  transform: rotate(-12deg);
  transform-origin: left center;
}
/* Vertical crack right side */
.hero__gold-crack--2 {
  top: 0;
  right: 22%;
  width: 1px;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(200,160,48,0.3) 40%,
    rgba(200,160,48,0.5) 60%,
    transparent
  );
}

/* Hero content — anchored to bottom */
.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: var(--sp-3xl);
  padding-top: 120px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: flex-end;
}

.hero__text { padding-bottom: var(--sp-sm); }

/* Kintsugi concept label */
.hero__concept {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-lg);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.3s forwards;
}
.hero__concept-line {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero__concept-text {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1.02;
  margin-bottom: var(--sp-lg);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.5s forwards;
}
.hero__title em {
  font-style: italic;
  /* Gold gradient text */
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--slate-fog);
  line-height: 1.6;
  margin-bottom: var(--sp-sm);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.65s forwards;
}

.hero__desc {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--sp-xl);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.8s forwards;
}

.hero__actions {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.95s forwards;
}

/* Right column — kintsugi philosophy quote */
.hero__philosophy {
  text-align: right;
  padding-bottom: var(--sp-lg);
  opacity: 0;
  animation: fadeIn 1.5s ease 1.2s forwards;
}
.hero__kintsugi-label {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--sp-md);
  display: block;
}
.hero__kintsugi-kanji {
  font-size: 4rem;
  line-height: 1;
  color: rgba(200,160,48,0.15);
  margin-bottom: var(--sp-md);
  display: block;
  font-family: serif;
}
.hero__kintsugi-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--slate-fog);
  line-height: 1.7;
  max-width: 360px;
  margin-left: auto;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 2s ease 2s forwards;
}
.hero__scroll span {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
  animation: scrollPulse 2.5s ease infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30% { opacity: 1; }
  70% { transform: scaleY(1); transform-origin: top; }
  71% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--fast) ease;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--black);
}
.btn--gold:hover {
  background: linear-gradient(135deg, #f0d060 0%, var(--gold-light) 100%);
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(200,160,48,0.3);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-mid);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding: 0;
  font-size: 0.7rem;
}
.btn--ghost::after { content: ' →'; transition: letter-spacing var(--fast) ease; }
.btn--ghost:hover::after { letter-spacing: 0.08em; }

/* ============================================================
   CRISIS BANNER
   ============================================================ */
.crisis-banner {
  background: linear-gradient(90deg, rgba(26,45,45,0.9), rgba(10,10,10,0.95));
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 14px 0;
}
.crisis-banner__inner {
  display: flex; align-items: center;
  gap: var(--sp-lg); flex-wrap: wrap;
}
.crisis-banner__pulse {
  width: 10px; height: 10px;
  background: #cc4444; border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(204,68,68,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(204,68,68,0); }
}
.crisis-banner__text {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  line-height: 1.5;
}
.crisis-banner__text strong { color: var(--text-bright); }
.crisis-banner__number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-bright);
  white-space: nowrap;
  font-weight: 300;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: var(--sp-2xl); }
.section-header--center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-lg);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-header--center .eyebrow::before { display: none; }
.section-header--center .eyebrow::after {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1.12;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-top: var(--sp-lg);
  max-width: 640px;
  line-height: 1.8;
}
.section-header--center .section-desc { margin-left: auto; margin-right: auto; }

/* ============================================================
   STAT BAR
   ============================================================ */
.stat-bar {
  background: var(--slate-deep);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: var(--sp-xl) 0;
}
.stat-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-bar__item {
  padding: var(--sp-lg) var(--sp-xl);
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-bar__item:last-child { border-right: none; }
.stat-bar__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  line-height: 1;
  display: block;
  /* Gold gradient number */
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-bar__label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
  display: block;
}

/* ============================================================
   ABOUT GRID
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}

/* Photo frame — kintsugi inspired: gold-crack border treatment */
.photo-frame {
  position: relative;
  display: block;
}
.photo-frame::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  right: 12px; bottom: 12px;
  border: 1px solid var(--border-gold);
  pointer-events: none;
  z-index: 0;
}
.photo-frame::after {
  content: '';
  position: absolute;
  top: -24px; left: -24px;
  right: 24px; bottom: 24px;
  border: 1px solid rgba(200,160,48,0.08);
  pointer-events: none;
  z-index: 0;
}
.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.05);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.7),
    0 0 0 1px rgba(200,160,48,0.1),
    inset 0 0 60px rgba(200,160,48,0.02);
}
.photo-frame--portrait img { aspect-ratio: 3/4; }
.photo-frame--landscape img { aspect-ratio: 4/3; }

/* Gold label over photo */
.photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 12px;
  padding: 24px var(--sp-lg) var(--sp-md);
  background: linear-gradient(to top, rgba(10,10,10,0.95), transparent);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 2;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--slate-fog);
  line-height: 1.6;
  margin-bottom: var(--sp-xl);
  padding-left: var(--sp-xl);
  border-left: 2px solid var(--gold);
  /* Subtle gold glow behind quote */
  background: linear-gradient(90deg, var(--gold-glow), transparent);
  padding-top: var(--sp-md);
  padding-bottom: var(--sp-md);
}

.credentials-list {
  list-style: none; padding: 0;
  margin-top: var(--sp-xl);
}
.credentials-list li {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 0;
}
.credentials-list li::before {
  content: '◆';
  color: var(--gold);
  font-size: 0.45rem;
  flex-shrink: 0;
  margin-top: 0.35em;
}

/* ============================================================
   TOPIC CARDS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.card {
  background: var(--black);
  padding: var(--sp-2xl) var(--sp-xl);
  position: relative;
  overflow: hidden;
  transition: background var(--mid) ease;
  display: flex;
  flex-direction: column;
}
/* Gold crack line appears on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 0;
  background: linear-gradient(to bottom, var(--gold-light), var(--gold-dim));
  transition: height var(--mid) var(--ease);
}
.card:hover { background: var(--slate-deep); }
.card:hover::before { height: 100%; }

.card__number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-ghost);
  line-height: 1;
  margin-bottom: var(--sp-md);
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-bright);
  margin-bottom: var(--sp-md);
}
.card__desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.72;
  flex: 1;
}
.card__link {
  margin-top: var(--sp-xl);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--fast) ease, color var(--fast) ease;
}
.card:hover .card__link { gap: 12px; color: var(--gold-light); }

/* ============================================================
   TREATMENT LIST
   ============================================================ */
.treatment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
}
.treatment-list { list-style: none; padding: 0; margin: var(--sp-xl) 0; }
.treatment-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--sp-lg);
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--fast) ease;
  margin-bottom: 0;
}
.treatment-item__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-ghost);
  line-height: 1;
  transition: color var(--fast) ease;
}
.treatment-item:hover .treatment-item__num { color: var(--gold); }
.treatment-item__title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 4px;
}
.treatment-item__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--slate-deep);
  position: relative;
  overflow: hidden;
}
.testimonials::before {
  content: '"';
  position: absolute;
  top: -0.15em; left: 0.05em;
  font-family: var(--font-display);
  font-size: 22rem;
  color: rgba(200,160,48,0.04);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic;
  color: var(--text-bright);
  line-height: 1.65;
  margin-bottom: var(--sp-xl);
}
.testimonial-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: var(--sp-xl);
}
.testimonial-dot {
  height: 2px; border-radius: 1px;
  background: var(--border-bright);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.35s ease;
}
.testimonial-dot.active {
  background: var(--gold);
  width: 28px;
}
.testimonial-author {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   RESOURCE PORTAL CARDS
   ============================================================ */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}
.portal-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  padding: var(--sp-xl);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: border-color var(--fast) ease, background var(--fast) ease;
  position: relative;
  overflow: hidden;
}
.portal-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--mid) var(--ease);
}
.portal-card:hover { border-color: var(--border-gold); background: var(--slate-deep); }
.portal-card:hover::after { transform: scaleX(1); }
.portal-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-bright);
}
.portal-card__desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0; flex: 1;
}
.portal-card__arrow {
  font-family: var(--font-ui);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
}

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
}
.post-card {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--sp-xl);
}
.post-card__image {
  aspect-ratio: 16/10; object-fit: cover; width: 100%;
  filter: grayscale(30%) saturate(0.8);
  transition: filter var(--mid) ease;
  border: 1px solid var(--border-gold);
  margin-bottom: var(--sp-lg);
}
.post-card:hover .post-card__image { filter: grayscale(0%) saturate(1); }
.post-card__meta {
  font-family: var(--font-ui);
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--sp-sm);
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: var(--sp-md);
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; flex: 1; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding-top: calc(72px + var(--sp-3xl));
  padding-bottom: var(--sp-2xl);
  background: linear-gradient(to bottom, var(--slate-deep) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 40%, var(--gold-light) 50%, var(--gold) 60%, transparent 100%);
}
.page-hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--sp-lg);
}
.page-hero__eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.page-hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 300;
  color: var(--text-bright);
  max-width: 820px;
}

/* ============================================================
   ENTRY CONTENT (WordPress rich text)
   ============================================================ */
.entry-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-bright);
}
.entry-content h2 {
  font-size: 1.9rem;
  color: var(--text-bright);
  margin: var(--sp-2xl) 0 var(--sp-lg);
  font-weight: 300;
}
.entry-content h3 {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: var(--sp-xl) 0 var(--sp-md);
}
.entry-content blockquote {
  border-left: 2px solid var(--gold);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-2xl) 0;
  background: linear-gradient(90deg, var(--gold-glow), transparent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--slate-fog);
}
.entry-content ul li,
.entry-content ol li { color: var(--text-mid); margin-bottom: 0.5em; }
.entry-content strong { color: var(--text-bright); }
.entry-content a { color: var(--gold); border-bottom: 1px solid var(--border-gold); }
.entry-content a:hover { color: var(--gold-light); border-color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--slate-deep);
  border-top: 1px solid var(--border-gold);
  padding-top: var(--sp-3xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid var(--border);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--text-bright);
  margin-bottom: 4px;
}
.footer-brand__tagline {
  font-family: var(--font-ui);
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--sp-lg);
}
.footer-brand__desc {
  font-size: 0.9rem; color: var(--text-mid);
  line-height: 1.72; max-width: 340px;
}
.footer-col__title {
  font-family: var(--font-ui);
  font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: var(--sp-lg);
}
.footer-nav { list-style: none; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav li a {
  font-size: 0.9rem; color: var(--text-mid);
  transition: color var(--fast) ease;
}
.footer-nav li a:hover { color: var(--gold); }
.footer-bottom {
  padding: var(--sp-xl) 0;
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-xl);
}
.footer-bottom__copy {
  font-family: var(--font-ui);
  font-size: 0.7rem; color: var(--text-dim);
}
.footer-bottom__disclaimer {
  font-family: var(--font-ui);
  font-size: 0.65rem; color: var(--text-dim);
  max-width: 480px; text-align: right; line-height: 1.55;
}
.footer-bottom__disclaimer a { color: var(--text-dim); border-bottom: 1px solid var(--border); }

/* ============================================================
   WIDGET (sidebar)
   ============================================================ */
.widget { margin-bottom: var(--sp-xl); }
.widget__title {
  font-family: var(--font-ui);
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border-gold);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-field { margin-bottom: var(--sp-lg); }
.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mid);
  margin-bottom: 6px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--black-3);
  border: 1px solid var(--border);
  color: var(--text-bright);
  padding: 0.875rem var(--sp-lg);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--fast) ease;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}
.form-textarea { min-height: 140px; resize: vertical; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--sp-2xl) 0; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* WordPress */
.alignleft  { float: left; margin: 0 var(--sp-xl) var(--sp-md) 0; }
.alignright { float: right; margin: 0 0 var(--sp-md) var(--sp-xl); }
.aligncenter { display: block; margin: var(--sp-md) auto; }
.wp-caption { background: var(--black-2); padding: 6px; border: 1px solid var(--border-gold); }
.wp-caption-text { font-family: var(--font-ui); font-size: 0.7rem; color: var(--text-dim); padding: 6px; text-align: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 var(--sp-xl); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__philosophy { display: none; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .portal-grid { grid-template-columns: repeat(2,1fr); }
  .posts-grid { grid-template-columns: repeat(2,1fr); }
  .stat-bar__inner { grid-template-columns: repeat(2,1fr); }
  .stat-bar__item:nth-child(2) { border-right: none; }
  .stat-bar__item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-bar__item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .treatment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sp-3xl: 4rem; --sp-2xl: 2.5rem; }
  .container { padding: 0 var(--sp-lg); }
  .hero__title { font-size: 2.8rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom__disclaimer { text-align: left; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .crisis-banner { display: none; }
  body { background: white; color: black; }
}

/* ============================================================
   CLINICIAN DIRECTORY — additional styles
   ============================================================ */

/* Profile photo hover tilt */
.photo-frame { transition: transform 0.4s var(--ease); }
.photo-frame:hover {
  transform: perspective(800px) rotateY(2deg) rotateX(-1deg);
}

/* Clinician grid card hover gold left border */
[style*="display:flex;flex-direction:column;gap:1rem"] {
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
[style*="display:flex;flex-direction:column;gap:1rem"]:hover {
  border-left-color: var(--gold-dim);
}

/* Comparison table hover row */
table tbody tr { transition: background 0.15s; }
table tbody tr:hover { background: rgba(200,160,48,0.04) !important; }

/* Treatment page step cards */
.step-card {
  border-left: 2px solid var(--gold-dim);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}
.step-card:hover { border-left-color: var(--gold); }

/* Clinician status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid;
}
.status-badge--accepting { color: var(--gold); border-color: rgba(200,160,48,0.4); }
.status-badge--waitlist  { color: var(--slate-light); border-color: rgba(122,160,160,0.4); }
.status-badge--closed    { color: var(--text-dim); border-color: var(--border); }

/* Specialty tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--gold-light); border-color: var(--gold); }
.tag--gold  { color: var(--gold); border-color: var(--gold); }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--black);
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* Pagination */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-mid);
  border: 1px solid var(--border);
  margin: 0 3px;
  text-decoration: none;
  transition: all 0.2s;
}
.page-numbers.current,
.page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* Mobile responsive additions */
@media (max-width: 768px) {
  .about-grid,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:320px 1fr"],
  [style*="grid-template-columns:280px 1fr"],
  [style*="grid-template-columns:240px 1fr"],
  [style*="grid-template-columns:1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="text-align:right"] { text-align: left !important; }
}
