/* ========================================
   THE BERHE GROUP — Billionaire Nonprofit
   Art Direction: Emerson Collective meets 
   Bloomberg Philanthropies. Massive serif type,
   extreme whitespace, cinematic imagery,
   restrained burgundy. Institutional confidence.
   ======================================== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.7rem,  0.65rem + 0.25vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem,    0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl:   clamp(1.5rem,  1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,    1.2rem + 2.5vw,  3.25rem);
  --text-3xl:  clamp(2.25rem, 0.8rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);
  --text-statement: clamp(1.75rem, 1rem + 2.5vw, 3rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-48: 12rem;

  /* Fonts — Cormorant Garamond for that editorial gravitas + Switzer for clean body */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  /* Widths */
  --content-narrow: 680px;
  --content-default: 960px;
  --content-wide: 1280px;

  /* Radius — minimal, refined */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Transitions */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- LIGHT MODE ---- */
:root, [data-theme="light"] {
  --color-bg:             #FFFFFF;
  --color-surface:        #FAFAFA;
  --color-surface-2:      #F2F2F0;
  --color-surface-offset: #EBEBEB;
  --color-surface-warm:   #F7F7F5;
  --color-surface-tint:   #F9F9F8;
  --color-border:         #E0DEDA;
  --color-divider:        #EBEAE7;

  --color-text:           #1A1714;
  --color-text-muted:     #6E665C;
  --color-text-faint:     #ADA89F;
  --color-text-inverse:   #FAFAF6;

  --color-primary:        #6B1527;
  --color-primary-hover:  #521020;
  --color-primary-light:  rgba(107, 21, 39, 0.06);

  --shadow-sm: 0 1px 3px rgba(26, 23, 20, 0.05);
  --shadow-md: 0 4px 16px rgba(26, 23, 20, 0.07);
  --shadow-lg: 0 16px 48px rgba(26, 23, 20, 0.09);
}

/* ---- DARK MODE ---- */
[data-theme="dark"] {
  --color-bg:             #141210;
  --color-surface:        #1C1A17;
  --color-surface-2:      #242220;
  --color-surface-offset: #1A1816;
  --color-border:         #333028;
  --color-divider:        #2A2825;

  --color-text:           #E5E0D8;
  --color-text-muted:     #9A9388;
  --color-text-faint:     #5C574F;
  --color-text-inverse:   #141210;

  --color-primary:        #B5394D;
  --color-primary-hover:  #CC4A5E;
  --color-primary-light:  rgba(181, 57, 77, 0.1);
  --color-surface-warm:   #1E1C19;
  --color-surface-tint:   #1A1816;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141210; --color-surface: #1C1A17; --color-surface-2: #242220;
    --color-surface-offset: #1A1816; --color-border: #333028; --color-divider: #2A2825;
    --color-text: #E5E0D8; --color-text-muted: #9A9388; --color-text-faint: #5C574F;
    --color-text-inverse: #141210;
    --color-primary: #B5394D; --color-primary-hover: #CC4A5E;
    --color-primary-light: rgba(181, 57, 77, 0.1);
    --color-surface-warm: #1E1C19; --color-surface-tint: #1A1816;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.15);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.3);
  }
}

/* ---- LAYOUT ---- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary); color: var(--color-text-inverse);
  text-decoration: none; font-size: var(--text-sm); z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

/* ---- HEADER — Minimal, floating ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: var(--space-5) 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.header.is-scrolled {
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

/* Logo */
.header__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.header__logo-img {
  height: clamp(36px, 2.5vw + 16px, 52px);
  width: auto;
  display: block;
  transition: opacity var(--transition-interactive);
}
.header__logo:hover .header__logo-img {
  opacity: 0.85;
}
/* In dark mode, brighten the burgundy logo for visibility on dark bg */
[data-theme="dark"] .header__logo-img {
  filter: brightness(1.3) saturate(1.1);
}

.header__nav { display: flex; align-items: center; gap: var(--space-8); }

.header__nav-links {
  display: flex; list-style: none; gap: var(--space-6);
}
.header__nav-links a {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text-muted); text-decoration: none;
  letter-spacing: 0.01em;
  transition: color var(--transition-interactive);
}
.header__nav-links a:hover { color: var(--color-text); }

.header__actions { display: flex; align-items: center; gap: var(--space-4); }

/* Theme Toggle Switch */
.theme-switch {
  display: flex; align-items: center; justify-content: center;
  padding: 0; background: none; border: none; cursor: pointer;
}
.theme-switch__track {
  position: relative;
  width: 48px; height: 26px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  display: flex; align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.theme-switch__thumb {
  position: absolute;
  left: 3px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.theme-switch.is-dark .theme-switch__thumb {
  left: 23px;
}
.theme-switch.is-dark .theme-switch__track {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
.theme-switch__icons {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0 5px;
  pointer-events: none; z-index: 1; position: relative;
}
.theme-switch__sun { color: var(--color-text-faint); transition: color 0.3s ease; }
.theme-switch__moon { color: var(--color-text-faint); transition: color 0.3s ease; }
.theme-switch:not(.is-dark) .theme-switch__sun { color: var(--color-primary); }
.theme-switch.is-dark .theme-switch__moon { color: var(--color-primary); }
.theme-switch:hover .theme-switch__track { border-color: var(--color-primary); }

/* Mobile Toggle */
.mobile-toggle {
  display: none; width: 36px; height: 36px;
  align-items: center; justify-content: center; color: var(--color-text);
}
.mobile-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: currentColor; position: relative;
  transition: background 0.2s;
}
.mobile-toggle span::before, .mobile-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%;
  height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after { top: 7px; }
.mobile-toggle[aria-expanded="true"] span { background: transparent; }
.mobile-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--color-bg); z-index: 49;
  padding: 120px var(--space-8) var(--space-8);
  flex-direction: column; gap: var(--space-2);
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.mobile-nav.is-open { display: flex; opacity: 1; }
.mobile-nav a {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 400; color: var(--color-text); text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-primary); }

/* ---- HERO — Cinematic, full-bleed ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 8, 6, 0.75) 0%,
    rgba(10, 8, 6, 0.35) 40%,
    rgba(10, 8, 6, 0.05) 70%,
    transparent 100%
  );
}
.hero__content {
  position: relative; z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-12)) var(--space-16);
  width: 100%; color: #fff;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: var(--space-6);
}
.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.65;
  max-width: 50ch;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-10);
}

/* ---- BUTTONS — Refined, understated ---- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-interactive);
}
.btn--primary {
  background: var(--color-primary); color: #fff;
  border: 1px solid var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }

.btn--ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

.btn--outline {
  background: transparent; color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary); color: var(--color-text-inverse); }

.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---- STATEMENT SECTION — Emerson Collective style massive centered text ---- */
.statement {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  text-align: center;
  background: var(--color-surface-tint);
}
.statement__text {
  font-family: var(--font-display);
  font-size: var(--text-statement);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  max-width: 42ch;
  margin-inline: auto;
  letter-spacing: -0.01em;
}
.statement__text em {
  font-style: italic;
  color: var(--color-primary);
}

/* ---- DIVIDER ---- */
.divider {
  width: 48px; height: 1px;
  background: var(--color-primary);
  margin: var(--space-12) auto;
}

/* ---- SECTIONS ---- */
.section {
  padding: clamp(var(--space-12), 7vw, var(--space-24)) 0;
}
.section--dark {
  background: var(--color-surface-2);
}
.section--warm {
  background: var(--color-surface-warm);
}
.section--tint {
  background: var(--color-surface-tint);
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.section__lead {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 60ch;
  margin-top: var(--space-5);
}

/* ---- IMPACT NUMBERS — Bloomberg style ---- */
.impact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: clamp(var(--space-10), 5vw, var(--space-16)) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.impact-stat { text-align: center; padding: var(--space-6) var(--space-4); }
.impact-stat__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}
.impact-stat__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---- PILLARS — Large editorial grid ---- */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-divider);
  margin-top: var(--space-12);
}
.pillar {
  background: var(--color-surface-warm);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  transition: background 0.3s ease;
}
.pillar:hover { background: var(--color-surface-2); }

.pillar__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  opacity: 0.6;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.pillar__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 45ch;
}

/* ---- FULL-BLEED IMAGE WITH EDITORIAL TEXT ---- */
.editorial-break {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  overflow: hidden;
}
/* Separate consecutive editorial breaks with a subtle divider */
.editorial-break + .editorial-break {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.editorial-break img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.editorial-break__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(107,21,39,0.8) 0%, rgba(10,8,6,0.5) 100%);
}
.editorial-break__content {
  position: relative; z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-24) clamp(var(--space-4), 4vw, var(--space-12));
  color: #fff;
}
.editorial-break__quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.3;
  font-style: italic;
  max-width: 30ch;
}
.editorial-break__attr {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: var(--space-6);
}

/* ---- FACILITIES — Minimal table/list ---- */
.facilities-list {
  margin-top: var(--space-12);
}
.facility-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  transition: background 0.2s ease;
}
.facility-row:first-child {
  border-top: 1px solid var(--color-divider);
}
.facility-row:hover {
  background: var(--color-primary-light);
}
.facility-row__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
}
.facility-row__detail {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.facility-row__detail a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.facility-row__detail a:hover { color: var(--color-primary); }

/* Facility table header */
.facility-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding: var(--space-3) 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  border-bottom: 2px solid var(--color-text);
}

/* ---- APPROACH SECTION — Two column editorial ---- */
.approach-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: start;
  margin-top: var(--space-12);
}
.approach__image {
  overflow: hidden;
}
.approach__image img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
}
.approach__content {
  padding-top: var(--space-4);
}
.approach__item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
}
.approach__item:last-child { border-bottom: none; }
.approach__item-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.approach__item-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---- CONTACT — Understated elegance ---- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: start;
  margin-top: var(--space-12);
}
.contact__info { display: flex; flex-direction: column; gap: var(--space-8); }
.contact__item {}
.contact__item-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}
.contact__item-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
}
.contact__item-value a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
  transition: border-color var(--transition-interactive);
}
.contact__item-value a:hover { border-color: var(--color-primary); }

/* Contact — Compact Layout */
.contact-compact { margin-top: var(--space-10); }

/* Inline Chat Panel */
.inline-chat {
  margin-top: var(--space-8);
  border: 1px solid var(--color-divider);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.inline-chat__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-primary);
  color: #fff;
}
.inline-chat__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.inline-chat__avatar img { width: 22px; height: 22px; object-fit: contain; }
.inline-chat__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
}
.inline-chat__status {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}
.inline-chat__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.inline-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.inline-chat__chip {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.inline-chat__chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-bg);
}
.inline-chat__messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 280px;
  overflow-y: auto;
}
.inline-chat__input-bar {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-divider);
  padding: var(--space-3) var(--space-4);
  gap: var(--space-3);
  background: var(--color-surface);
}
[data-theme="dark"] .inline-chat { border-color: var(--color-divider); }
[data-theme="dark"] .inline-chat__header { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
[data-theme="dark"] .inline-chat__name { color: var(--color-text); }
[data-theme="dark"] .inline-chat__status { color: var(--color-text-muted); opacity: 1; }
[data-theme="dark"] .inline-chat__chip { background: var(--color-bg); border-color: var(--color-divider); }
[data-theme="dark"] .inline-chat__chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* Garland Avatar */
.garland-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}
.garland-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.garland-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: var(--space-2);
  vertical-align: middle;
}
.garland-msg-avatar {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 2px;
}
.garland-msg-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.chat__msg--bot { display: flex; align-items: flex-start; gap: var(--space-2); }
[data-theme="dark"] .garland-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
[data-theme="dark"] .garland-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,0.1); }
.contact-compact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.contact-compact__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease;
}
.contact-compact__card:hover { border-color: var(--color-primary); }
.contact-compact__card svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
.contact-compact__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-1);
}
.contact-compact__value {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}
a.contact-compact__value {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  display: inline-block;
}
a.contact-compact__value:hover { border-color: var(--color-primary); }
.contact-compact__action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.contact-compact__action-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* Contact Form */
.contact__form { padding-top: var(--space-4); }
.contact__form h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-group { margin-bottom: var(--space-5); }
.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: var(--space-3) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--color-text-faint);
}

/* ---- DONATE NAV HIGHLIGHT ---- */
.header__nav-donate {
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}
.header__nav-donate:hover {
  color: var(--color-primary-hover) !important;
}

/* ---- DONATE SECTION — Premium philanthropic CTA ---- */
.donate {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.donate::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.donate__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-4), 4vw, var(--space-12));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: center;
  position: relative;
  z-index: 1;
}
.donate__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}
.donate__lead {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 48ch;
}

/* Donation Card */
.donate__card {
  background: #fff;
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

[data-theme="dark"] .donate {
  background: #1C1A17;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
[data-theme="dark"] .donate::before {
  background: linear-gradient(135deg, rgba(181,57,77,0.08) 0%, transparent 60%);
}
[data-theme="dark"] .donate__title {
  color: var(--color-text);
}
[data-theme="dark"] .donate__lead {
  color: var(--color-text-muted);
}
[data-theme="dark"] .donate__card {
  background: var(--color-surface);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* Type toggle: One-Time / Monthly */
.donate__type-toggle {
  display: flex;
  background: #F3F2ED;
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: var(--space-6);
}
[data-theme="dark"] .donate__type-toggle {
  background: var(--color-surface-2);
}
.donate__type-btn {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-interactive);
  text-align: center;
}
.donate__type-btn.is-active {
  background: #fff;
  color: #1A1714;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .donate__type-btn.is-active {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Amount Grid */
.donate__amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.donate__amount {
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: #1A1714;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-interactive);
  text-align: center;
  cursor: pointer;
}
[data-theme="dark"] .donate__amount {
  color: var(--color-text);
  border-color: var(--color-border);
}
.donate__amount:hover {
  border-color: var(--color-primary);
  background: rgba(107,21,39,0.04);
}
[data-theme="dark"] .donate__amount:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.donate__amount.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Custom Amount */
.donate__custom {
  position: relative;
  margin-bottom: var(--space-4);
}
.donate__currency {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  pointer-events: none;
}
.donate__custom input {
  width: 100%;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  transition: border-color var(--transition-interactive);
}
.donate__custom input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.donate__custom input::placeholder {
  color: var(--color-text-faint);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
/* Hide number spinners */
.donate__custom input::-webkit-outer-spin-button,
.donate__custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donate__custom input[type=number] { -moz-appearance: textfield; }

/* Impact line */
.donate__impact {
  padding: var(--space-3) 0;
  margin-bottom: var(--space-5);
}
.donate__impact-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Donate Button */
.btn--donate {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  background: var(--color-primary);
  cursor: pointer;
  color: #fff;
  border: 1px solid var(--color-primary);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--transition-interactive);
}
[data-theme="dark"] .btn--donate {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--donate:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(107,21,39,0.25);
}

/* Tax note */
.donate__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
  margin-top: var(--space-4);
  text-align: center;
}

/* ---- FOOTER — Restrained, institutional ---- */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-16) 0 var(--space-8);
}
.footer__upper {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}
.footer__logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .footer__logo-img {
  filter: brightness(1.3) saturate(1.1);
}
.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 32ch;
}
.footer__col h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a {
  font-size: var(--text-sm); color: var(--color-text-muted);
  text-decoration: none; transition: color var(--transition-interactive);
}
.footer__col a:hover { color: var(--color-primary); }

.footer__lower {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.6;
}
.footer__lower a { color: var(--color-text-faint); text-decoration: none; }
.footer__lower a:hover { color: var(--color-primary); }

/* ---- BERHE ACRONYM SECTION ---- */
.acronym-grid {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-12);
  border-top: 1px solid var(--color-divider);
}
.acronym-item {
  display: flex;
  align-items: flex-start;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-divider);
}
.acronym-item__letter {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  min-width: 60px;
  flex-shrink: 0;
}
.acronym-item__word {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.acronym-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- GUARANTEES ---- */
.guarantees-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: start;
}
.guarantees-list {
  display: flex;
  flex-direction: column;
}
.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}
.guarantee-item:last-child { border-bottom: none; }
.guarantee-item__mark {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  margin-top: 8px;
}
.guarantee-item p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.65;
}

/* ---- ABOUT / HISTORY ---- */
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: start;
  margin-top: var(--space-12);
}
.about__lede {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.about__main p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.about__main p:last-child { margin-bottom: 0; }

.about__sidebar-card {
  background: var(--color-surface-2);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  margin-bottom: var(--space-4);
}
.about__sidebar-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.about__sidebar-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.about__priority {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.about__priority:last-child { border-bottom: none; }
.about__priority-num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 28px;
}
.about__priority p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-divider);
  margin-top: var(--space-12);
}
.service-card {
  background: var(--color-bg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  transition: background 0.3s ease;
}
.service-card:hover { background: var(--color-surface-2); }
.service-card__icon {
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  opacity: 0.7;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 45ch;
}

/* CPI Callout */
.cpi-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-surface-2);
  border-left: 3px solid var(--color-primary);
}
.cpi-callout__icon {
  color: var(--color-primary);
  flex-shrink: 0;
}
.cpi-callout__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.cpi-callout__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---- MENTAL HEALTH GRID ---- */
.mh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.mh-item {
  padding: var(--space-6);
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  transition: border-color 0.3s ease;
}
.mh-item:hover { border-color: var(--color-primary); }
.mh-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.mh-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- WELLNESS ---- */
.wellness-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-20));
  align-items: start;
}
.wellness-items {
  display: flex;
  flex-direction: column;
}
.wellness-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-divider);
}
.wellness-item:last-child { border-bottom: none; }
.wellness-item__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.wellness-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.testimonial {
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  border: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial--featured {
  grid-column: 1 / -1;
  background: var(--color-primary-light);
  border-color: transparent;
}
.testimonial__text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}
.testimonial--featured .testimonial__text {
  font-size: var(--text-sm);
  line-height: 1.85;
}
.testimonial__attr {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.testimonial__attr cite {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  font-style: normal;
  color: var(--color-text);
}
.testimonial__attr span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---- TEAM GRID ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-divider);
  margin-top: var(--space-12);
}
.team-member {
  background: var(--color-bg);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  transition: background 0.3s ease;
}
.team-member:hover { background: var(--color-surface-2); }
.team-member__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.team-member__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.team-member__note {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

/* Founder tribute */
.founder-tribute {
  margin-top: var(--space-12);
  padding: var(--space-8);
  border-top: 1px solid var(--color-divider);
  text-align: center;
}
.founder-tribute p {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 52ch;
  margin-inline: auto;
}
.founder-tribute strong {
  color: var(--color-text);
  font-weight: 500;
}

/* ---- EVENTS GRID ---- */
.events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-12);
}
.event-item {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  transition: all 0.3s ease;
}
.event-item:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ---- SUBPAGE HERO BANNER ---- */
.page-hero {
  padding-top: clamp(var(--space-32), 12vw, var(--space-48));
  padding-bottom: clamp(var(--space-12), 6vw, var(--space-20));
  background: var(--color-surface-warm);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero .container {
  max-width: var(--content-default);
}
.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}
.page-hero__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 52ch;
}

/* ---- ACTIVE NAV STATE ---- */
.header__nav-links a.is-active {
  color: var(--color-text);
}

/* ---- SECTION DARK btn--outline override ---- */
.section--dark .btn--outline {
  color: var(--color-text);
  border-color: var(--color-border);
  padding: var(--space-3) var(--space-10);
}
.section--dark .btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* ---- SCROLL ANIMATION ---- */
.reveal { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* ---- CHAT WIDGET ---- */
.chat {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-4);
}
.chat__fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(107,21,39,0.35);
  transition: all 0.3s var(--ease-out);
  border: none; cursor: pointer;
}
.chat__fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(107,21,39,0.45);
}
.chat.is-open .chat__fab { display: none; }

.chat__window {
  width: 380px;
  max-height: 520px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s var(--ease-out);
}
.chat.is-open .chat__window { display: flex; }

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--color-primary);
  color: #fff;
}
.chat__header-info {
  display: flex; align-items: center; gap: var(--space-3);
}
.chat__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.chat__avatar img {
  width: 28px; height: 28px; object-fit: contain;
}
.chat__header-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
}
.chat__header-status {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}
.chat__close {
  color: rgba(255,255,255,0.7);
  padding: var(--space-1);
  transition: color 0.2s;
  background: none; border: none; cursor: pointer;
}
.chat__close:hover { color: #fff; }

.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 280px;
  max-height: 340px;
}

.chat__msg { display: flex; }
.chat__msg--bot { justify-content: flex-start; }
.chat__msg--user { justify-content: flex-end; }

.chat__bubble {
  max-width: 80%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.55;
  border-radius: 12px;
}
.chat__bubble--bot {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}
.chat__bubble--user {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat__input-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-tint);
}
.chat__input {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
}
.chat__input::placeholder { color: var(--color-text-faint); }
.chat__input:disabled { opacity: 0.5; }
.chat__send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.chat__send:hover { background: var(--color-primary-hover); }
.chat__send:disabled { opacity: 0.4; cursor: default; }

/* Dark mode chat overrides */
[data-theme="dark"] .chat__header { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
[data-theme="dark"] .chat__header-name { color: var(--color-text); }
[data-theme="dark"] .chat__header-status { color: var(--color-text-muted); }
[data-theme="dark"] .chat__close { color: var(--color-text-muted); }
[data-theme="dark"] .chat__close:hover { color: var(--color-text); }
[data-theme="dark"] .chat__fab { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr; }
  .approach-split, .contact-split, .donate__inner { grid-template-columns: 1fr; }
  .contact-compact__grid { grid-template-columns: 1fr 1fr; }
  .donate__content { text-align: center; }
  .donate__lead { margin-inline: auto; }
  .footer__upper { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .facility-row { grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .facility-header { grid-template-columns: 1fr 1fr; }
  .facility-row__detail:nth-child(3),
  .facility-row__detail:nth-child(4) { display: none; }
  .facility-header span:nth-child(3),
  .facility-header span:nth-child(4) { display: none; }
  .mh-grid { grid-template-columns: repeat(2, 1fr); }
  .guarantees-layout { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .wellness-layout { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .donate__amounts { grid-template-columns: repeat(3, 1fr); }

  .hero { min-height: 85vh; }

  .impact-bar { grid-template-columns: 1fr 1fr; gap: var(--space-2); }

  .services-grid { gap: 0; background: transparent; }
  .service-card { border-bottom: 1px solid var(--color-divider); }
  .service-card:last-child { border-bottom: none; }

  .mh-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 0; background: transparent; }
  .team-member { border-bottom: 1px solid var(--color-divider); }

  .facility-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    padding: var(--space-5) 0;
  }
  .facility-header { display: none; }
  .facility-row__detail:nth-child(3),
  .facility-row__detail:nth-child(4) { display: block; }
  .facility-row__name { margin-bottom: var(--space-1); }

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

  .contact-compact__grid { grid-template-columns: 1fr; }
  .contact-compact__action { flex-direction: column; text-align: center; gap: var(--space-4); }

  .footer__upper { grid-template-columns: 1fr; }
  .footer__lower { flex-direction: column; gap: var(--space-4); text-align: center; }

  .acronym-item__letter { min-width: 44px; }

  .cpi-callout { flex-direction: column; gap: var(--space-4); }

  .events-grid { gap: var(--space-2); }
  .event-item { font-size: var(--text-xs); padding: var(--space-2) var(--space-4); }

  .editorial-break { min-height: 55vh; }
  .editorial-break__content { padding: var(--space-12) clamp(var(--space-4), 4vw, var(--space-12)); }
  .editorial-break__quote { font-size: var(--text-xl); max-width: 22ch; }

  .section--dark .btn--outline { padding: var(--space-3) var(--space-6); }

  .donate__inner { padding: clamp(var(--space-10), 6vw, var(--space-16)) clamp(var(--space-4), 4vw, var(--space-12)); }

  /* Chat widget mobile */
  .chat__window {
    width: calc(100vw - 2rem);
    max-width: 100%;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .chat__fab {
    width: 48px;
    height: 48px;
    right: 1rem;
    bottom: 1rem;
  }
}
