/* ── Terra Fortis Foundation — Stylesheet ── */
:root {
  --terra: #c1440e;
  --terra-light: #e05a24;
  --terra-pale: #fdf0ea;
  --green: #2d5a3d;
  --green-light: #3d7a54;
  --cream: #faf6f0;
  --warm-white: #ffffff;
  --brown: #4a2f1a;
  --text: #2c1f14;
  --muted: #7a6558;
  --border: rgba(193,68,14,0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(193,68,14,0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(44,31,20,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px; height: 42px;
  background: var(--terra);
  color: var(--warm-white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.logo-tagline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--terra);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--terra);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--terra); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-donate {
  background: var(--terra);
  color: var(--warm-white);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-donate:hover {
  background: var(--terra-light);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* ── BUTTONS ── */
.btn-terra {
  display: inline-block;
  background: var(--terra);
  color: var(--warm-white);
  text-decoration: none;
  padding: 15px 36px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-terra:hover {
  background: var(--terra-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(193,68,14,0.3);
}

.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--warm-white); }

.btn-large { padding: 18px 48px; font-size: 15px; }
.btn-full { width: 100%; text-align: center; border-radius: 8px; }

/* ── HERO ── */
.hero {
  background: var(--green);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-shapes { position: absolute; inset: 0; overflow: hidden; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.shape-1 {
  width: 600px; height: 600px;
  background: var(--terra);
  top: -200px; right: -100px;
}

.shape-2 {
  width: 400px; height: 400px;
  background: #f5f0e8;
  bottom: -150px; left: -100px;
}

.shape-3 {
  width: 200px; height: 200px;
  background: var(--terra-light);
  top: 40%; left: 35%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 48px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 99px;
  margin-bottom: 28px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-content h1 em {
  font-style: italic;
  color: #f5c896;
}

.hero-content > p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero-btns { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-impact {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.impact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 160px;
  backdrop-filter: blur(8px);
  transition: background 0.25s;
}

.impact-card:hover { background: rgba(255,255,255,0.13); }

.impact-icon {
  font-size: 22px;
  color: #f5c896;
}

.impact-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--warm-white);
}

.impact-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── MISSION STRIP ── */
.mission-strip {
  background: var(--terra);
  padding: 36px 0;
  text-align: center;
}

.mission-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0 40px;
}

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 24px; height: 3px;
  background: var(--terra);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 56px;
  line-height: 1.2;
}

/* ── PROGRAMS ── */
.what-we-do {
  padding: 100px 0;
  background: var(--cream);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--warm-white);
  border-radius: 16px;
  padding: 36px 28px;
  border: 1px solid rgba(193,68,14,0.08);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(193,68,14,0.1);
  border-color: rgba(193,68,14,0.2);
}

.program-icon {
  font-size: 28px;
  color: var(--terra);
  margin-bottom: 18px;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.program-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}

/* ── WHY IT MATTERS ── */
.why-it-matters {
  padding: 100px 0;
  background: var(--warm-white);
}

.matters-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.matters-text .section-label { margin-bottom: 16px; }

.matters-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.matters-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.matters-text .btn-terra { margin-top: 12px; }

.matters-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visual-block {
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s;
}

.visual-block:hover { transform: translateY(-4px); }

.vb-1 { background: var(--terra-pale); }
.vb-2 { background: rgba(45,90,61,0.08); }
.vb-3 { background: #fef9e7; }
.vb-4 { background: var(--terra-pale); }

.vb-icon { font-size: 24px; color: var(--terra); }

.vb-2 .vb-icon { color: var(--green); }
.vb-3 .vb-icon { color: #c9952a; }

.vb-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.vb-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── GET INVOLVED ── */
.get-involved {
  padding: 100px 0;
  background: var(--cream);
}

.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.involved-card {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 44px 36px;
  border: 2px solid transparent;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.involved-card:hover {
  border-color: rgba(193,68,14,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(193,68,14,0.08);
}

.involved-card.featured {
  background: var(--green);
  border-color: var(--green);
}

.involved-card.featured h3,
.involved-card.featured .inv-num { color: var(--warm-white); }
.involved-card.featured p { color: rgba(255,255,255,0.65); }
.involved-card.featured .inv-link { color: #f5c896; }

.inv-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: rgba(193,68,14,0.15);
  line-height: 1;
  margin-bottom: 18px;
}

.involved-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.involved-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

.inv-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--terra);
  text-decoration: none;
  transition: color 0.2s;
}

.inv-link:hover { color: var(--terra-light); }

/* ── CTA ── */
.cta-foundation {
  background: var(--green);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-foundation::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(193,68,14,0.12) 0%, transparent 70%);
}

.cta-inner { position: relative; z-index: 2; }

.cta-foundation h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.cta-foundation h2 em {
  font-style: italic;
  color: #f5c896;
}

.cta-foundation p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

/* ── PAGE HERO ── */
.page-hero {
  background: var(--green);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(193,68,14,0.1) 0%, transparent 60%);
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-label { color: #f5c896; }
.page-hero .section-label::before { background: #f5c896; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-title em { font-style: italic; color: #f5c896; }

.page-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.8;
  font-weight: 400;
}

/* ── ABOUT ── */
.about-story {
  padding: 100px 0;
  background: var(--warm-white);
}

.story-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}

.story-content h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.story-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 18px;
}

.story-values { display: flex; flex-direction: column; gap: 16px; }

.sv-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 28px;
  border-left: 4px solid var(--terra);
}

.sv-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.sv-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── BUILD STEPS ── */
.how-we-build {
  padding: 100px 0;
  background: var(--cream);
}

.build-steps { display: flex; flex-direction: column; gap: 0; }

.build-step {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(193,68,14,0.1);
  transition: background 0.25s;
  border-radius: 0;
}

.build-step:last-child { border-bottom: none; }
.build-step:hover { background: rgba(193,68,14,0.04); }

.bs-num {
  width: 90px;
  flex-shrink: 0;
  padding: 36px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--terra);
  opacity: 0.4;
  display: flex;
  align-items: flex-start;
}

.bs-content {
  padding: 36px 48px 36px 0;
  flex: 1;
}

.bs-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.bs-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── VALUES ── */
.values-section {
  padding: 100px 0;
  background: var(--warm-white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(193,68,14,0.1);
}

.vc-icon {
  font-size: 28px;
  color: var(--terra);
  margin-bottom: 16px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── CONTACT ── */
.contact-section {
  padding: 80px 0 100px;
  background: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.contact-left > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.ways-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }

.way-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.way-icon {
  width: 40px; height: 40px;
  background: var(--terra-pale);
  color: var(--terra);
  border-radius: 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.way-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.way-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.contact-details {
  background: var(--warm-white);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(193,68,14,0.1);
}

.cd-row { display: flex; flex-direction: column; gap: 2px; }

.cd-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}

.cd-val {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.form-wrap {
  background: var(--warm-white);
  border-radius: 20px;
  padding: 48px;
  border: 1px solid rgba(193,68,14,0.1);
  box-shadow: 0 8px 32px rgba(44,31,20,0.06);
}

.form-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
}

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

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid rgba(74,47,26,0.12);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 10px;
  appearance: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  background: var(--warm-white);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.form-success {
  text-align: center;
  padding: 48px 20px;
}

.success-icon {
  font-size: 48px;
  color: var(--terra);
  margin-bottom: 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── FOOTER ── */
.footer {
  background: var(--brown);
  padding: 48px 0;
}

.footer-inner { display: flex; flex-direction: column; gap: 24px; }

.footer-brand { display: flex; align-items: center; gap: 14px; }

.footer-icon {
  width: 44px; height: 44px;
  background: var(--terra);
  color: var(--warm-white);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--warm-white);
}

.footer-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}

.footer-links { display: flex; gap: 32px; }

.footer-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover { color: #f5c896; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .matters-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .involved-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--warm-white);
    padding: 20px 40px;
    gap: 16px;
    border-bottom: 1px solid rgba(193,68,14,0.1);
    box-shadow: 0 8px 24px rgba(44,31,20,0.08);
  }
  .hamburger { display: block; }
  .nav-inner { position: relative; }
  .nav-donate { display: none; }
  .programs-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .matters-visual { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 28px 24px; }
  .container { padding: 0 24px; }
  .bs-num { width: 60px; padding: 24px 20px; font-size: 20px; }
  .bs-content { padding: 24px 20px 24px 0; }
}
