/* =========================================================
   FERI-TB — Foundation for Equity, Recovery & Initiative in TB
   Premium dark theme — navy & forest green with gold accents
   ========================================================= */

:root {
  /* Core dark palette */
  --navy: #0B2233;
  --navy-deep: #071726;
  --navy-panel: #0E2B3D;
  --forest: #0D3B2E;
  --forest-deep: #082A20;
  --forest-panel: #10362A;

  /* Accents */
  --emerald: #3DBE8B;
  --emerald-bright: #57D6A2;
  --sage: #9DC3B4;
  --gold: #CBA96A;
  --gold-soft: #E0C98A;

  /* Text */
  --cream: #F3F1E9;
  --cream-dim: #D5DCD8;
  --mist: #9FB2AE;
  --line: rgba(203, 169, 106, 0.18);
  --line-soft: rgba(157, 195, 180, 0.14);

  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--cream-dim);
  background: var(--navy-deep);
  background-image:
    radial-gradient(1200px 800px at 15% -5%, rgba(61, 190, 139, 0.10), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(30, 96, 145, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 40%, var(--forest-deep) 100%);
  background-attachment: fixed;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--emerald-bright);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--gold); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--cream);
  font-weight: 500;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 23, 38, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}
.brand img {
  width: 44px; height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 4px 18px rgba(0,0,0,0.35);
}
.brand-text {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: .3rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a.active {
  color: var(--emerald-bright);
  border-bottom-color: var(--emerald);
}
.nav .btn-donate {
  background: linear-gradient(135deg, var(--emerald) 0%, #2A9C6F 100%);
  color: var(--navy-deep);
  padding: .55rem 1.2rem;
  border-radius: 3px;
  border: 0;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(61, 190, 139, 0.25);
}
.nav .btn-donate:hover {
  color: var(--navy-deep);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(61, 190, 139, 0.38);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: transform .2s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .9rem 1.7rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, #2A9C6F 100%);
  color: var(--navy-deep);
  box-shadow: 0 8px 24px rgba(61, 190, 139, 0.28);
}
.btn-primary:hover {
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(61, 190, 139, 0.42);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 241, 233, 0.4);
}
.btn-secondary:hover {
  background: var(--cream);
  color: var(--navy-deep);
  border-color: var(--cream);
}
.btn-outline {
  background: transparent;
  color: var(--emerald-bright);
  border-color: var(--emerald);
}
.btn-outline:hover {
  background: var(--emerald);
  color: var(--navy-deep);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #B8965A 100%);
  color: var(--navy-deep);
}
.btn-gold:hover {
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(203, 169, 106, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.3rem);
  line-height: 1.03;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--cream);
}
.hero h1 em {
  color: var(--emerald-bright);
  font-style: italic;
  font-weight: 700;
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  font-size: 1.18rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.5rem 0 2rem;
}
.hero-meta {
  font-size: .85rem;
  color: var(--mist);
  letter-spacing: .04em;
}
.hero-meta strong { color: var(--cream); font-weight: 800; }
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-side {
  border-top: 2px solid var(--gold);
  padding-top: 1.8rem;
}
.hero-side .stat {
  margin-bottom: 2.2rem;
}
.hero-side .stat:last-child { margin-bottom: 0; }
.hero-side .stat-num {
  font-family: var(--serif);
  font-size: 2.9rem;
  color: var(--emerald-bright);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-side .stat-label {
  font-size: .84rem;
  color: var(--cream-dim);
  margin-top: .6rem;
  line-height: 1.5;
}
.hero-side .stat-source {
  font-size: .72rem;
  color: var(--mist);
  margin-top: .4rem;
  font-style: italic;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  position: relative;
}
section.tinted {
  background: linear-gradient(180deg, rgba(13, 59, 46, 0.35) 0%, rgba(8, 42, 32, 0.5) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
section.deep {
  background: linear-gradient(160deg, rgba(11, 34, 51, 0.6), rgba(7, 23, 38, 0.85));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 800px;
  margin-bottom: 3rem;
}

/* ---------- Cards / Grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }

.card {
  background: linear-gradient(165deg, var(--navy-panel) 0%, rgba(16, 54, 42, 0.55) 100%);
  border: 1px solid var(--line-soft);
  padding: 2.2rem;
  border-radius: 8px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card h3 { color: var(--cream); margin-bottom: .8rem; }
.card p { color: var(--cream-dim); }
.card p:last-child { margin-bottom: 0; }

.card-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}

/* ---------- Barriers list ---------- */
.barrier-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.barrier-list li {
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  transition: padding-left .2s;
}
.barrier-list li:hover { padding-left: .5rem; }
.barrier-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.barrier-list .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 800;
}
.barrier-list .title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  display: block;
  margin-bottom: .3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.barrier-list .desc {
  color: var(--mist);
  font-size: .98rem;
  line-height: 1.6;
}

/* ---------- Founder + Board ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 3rem;
}
.founder-name {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--cream);
  margin-bottom: .3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.founder-cred {
  font-size: .95rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: .02em;
}
.founder-card p { color: var(--cream-dim); }
.founder-card strong { color: var(--emerald-bright); }
.founder-photo-placeholder {
  background: linear-gradient(165deg, var(--navy-panel), var(--forest-panel));
  border: 1px dashed var(--line);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mist);
  font-size: .8rem;
  font-style: italic;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.board-member {
  padding: 1.5rem 0;
  border-top: 2px solid var(--emerald);
}
.board-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: .3rem;
}
.board-cred {
  font-size: .85rem;
  color: var(--emerald-bright);
  font-weight: 700;
  letter-spacing: .02em;
}
.board-role {
  font-size: .82rem;
  color: var(--gold);
  margin-top: .4rem;
  font-style: italic;
  font-weight: 600;
}

/* ---------- Data callout (signature) ---------- */
.data-callout {
  background: linear-gradient(150deg, var(--forest-panel) 0%, var(--navy-panel) 100%);
  border: 1px solid var(--line);
  padding: 2.8rem;
  margin: 3rem 0;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  overflow: hidden;
}
.data-callout::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle at top right, rgba(61,190,139,0.18), transparent 70%);
  pointer-events: none;
}
.data-callout::before {
  content: 'DATA';
  position: absolute;
  top: 1.4rem;
  left: 2.8rem;
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--gold);
  font-weight: 800;
}
.data-figure {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 4.4rem);
  color: var(--emerald-bright);
  line-height: 1;
  margin: 1.4rem 0 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.data-context {
  color: var(--cream);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 60ch;
  position: relative;
  z-index: 1;
}
.data-source {
  font-size: .78rem;
  color: var(--mist);
  font-style: italic;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Approach pillars ---------- */
.pillar {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.pillar:last-child { border-bottom: 0; }
.pillar-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 800;
  line-height: 1;
}
.pillar h3 { color: var(--cream); margin-bottom: .8rem; }
.pillar p { color: var(--mist); margin: 0; max-width: 65ch; }

/* ---------- Donate ---------- */
.donate-hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.donate-hero .lede { max-width: 640px; margin: 0 auto; color: var(--cream); }

.donate-panel {
  background: linear-gradient(165deg, var(--navy-panel) 0%, var(--forest-panel) 100%);
  border: 1px solid var(--line);
  padding: 3rem;
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.donate-panel h2 { color: var(--cream); }
.donate-panel p { color: var(--cream-dim); }
.donate-panel .paypal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--emerald) 0%, #2A9C6F 100%);
  color: var(--navy-deep);
  padding: 1.05rem 2.6rem;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  margin: 1.5rem 0;
  transition: all .2s;
  box-shadow: 0 10px 28px rgba(61,190,139,0.3);
}
.donate-panel .paypal-btn:hover {
  transform: translateY(-2px);
  color: var(--navy-deep);
  box-shadow: 0 14px 36px rgba(61,190,139,0.45);
}
.donate-info {
  font-size: .9rem;
  color: var(--mist);
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}
.donate-info strong { color: var(--cream); }

.give-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.give-methods .card h3 { color: var(--emerald-bright); font-size: 1.15rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.contact-info-block { margin-bottom: 2rem; }
.contact-info-block .label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.contact-info-block .value {
  font-size: 1.1rem;
  color: var(--cream);
}
.contact-info-block .value a { color: var(--emerald-bright); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--forest) 0%, var(--navy) 100%);
  padding: clamp(3.5rem, 6vw, 4.5rem) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(61,190,139,0.14), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: var(--cream-dim); max-width: 640px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  font-weight: 800;
}
.site-footer p, .site-footer li {
  color: var(--mist);
  font-size: .9rem;
  line-height: 1.6;
}
.site-footer h4 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 800;
}
.site-footer a { color: var(--cream-dim); text-decoration: none; }
.site-footer a:hover { color: var(--emerald-bright); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--mist);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-prose { max-width: 68ch; }
.emphasis {
  background: linear-gradient(135deg, rgba(13,59,46,0.5), rgba(11,34,51,0.5));
  border-left: 4px solid var(--gold);
  padding: 1.6rem 2rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--cream);
  font-weight: 600;
  border-radius: 0 8px 8px 0;
}

.credential-strip {
  background: rgba(7, 23, 38, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 0;
  font-size: .82rem;
  color: var(--mist);
  letter-spacing: .04em;
}
.credential-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.credential-strip span { display: inline-flex; align-items: center; gap: .5rem; }
.credential-strip strong { color: var(--gold); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .grid-2, .contact-grid, .founder-card { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3, .grid-4, .board-grid, .give-methods { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-side { border-top: 0; padding-top: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; background-attachment: scroll; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,23,38,0.98); flex-direction: column;
    padding: 1.5rem var(--gutter); gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .board-grid, .give-methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .brand-sub { display: none; }
  .founder-card { padding: 2rem 0; }
  .donate-panel { padding: 2rem 1.5rem; }
  .data-callout { padding: 2rem 1.5rem; }
  .barrier-list li { grid-template-columns: 44px 1fr; gap: 1rem; }
  .pillar { grid-template-columns: 54px 1fr; gap: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
