/* ============================================
   Humanity365 — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --teal-deep: #0A3D3F;
  --teal-mid: #115A5C;
  --coral: #FF6B5B;
  --coral-dark: #E5503F;
  --mint: #D4F4E8;
  --mint-soft: #EAFAF3;
  --cream: #FBF8F3;
  --ink: #10201F;
  --ink-soft: #3D5452;
  --line: #D8E8E4;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
}

p { color: var(--ink-soft); }
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 107, 91, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 107, 91, 0.4); }

.btn-ghost {
  background: transparent;
  border-color: var(--teal-deep);
  color: var(--teal-deep);
}
.btn-ghost:hover { background: var(--teal-deep); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--teal-deep);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.18); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--teal-deep);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo span { color: var(--coral); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--coral-dark); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--teal-deep);
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 18px; display: block; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 em {
  font-style: italic;
  color: var(--coral);
}
.hero-copy .lede { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-trust span { display: flex; align-items: center; gap: 7px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); display: inline-block; }

/* ---------- 365-Day Calendar Motif (signature element) ---------- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.calendar-grid .day {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--mint);
}
.calendar-grid .day.filled {
  background: var(--coral);
  animation: fillIn 0.5s ease backwards;
}
.calendar-grid .day.filled.alt { background: var(--teal-mid); }

@keyframes fillIn {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hero-visual {
  position: relative;
  background: var(--white);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 24px 60px rgba(10, 61, 63, 0.12);
}
.hero-visual-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}
.hero-visual-label .count {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--teal-deep);
  font-weight: 600;
}
.hero-visual-label .count small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 6px;
}
.hero-visual-caption {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- Sections (generic) ---------- */
section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }

.bg-mint { background: var(--mint-soft); }
.bg-teal {
  background: var(--teal-deep);
  color: var(--white);
}
.bg-teal h2, .bg-teal h3, .bg-teal .eyebrow { color: var(--white); }
.bg-teal p { color: #BFE0DC; }
.bg-teal .eyebrow { color: var(--coral); }

/* ---------- Problem cards ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.problem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 10px 30px rgba(10,61,63,0.06);
}
.problem-card .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 18px;
  display: block;
}
.problem-card h3 { margin-bottom: 12px; }
.problem-card p { font-size: 0.96rem; }

/* ---------- Give Grow Gain pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar {
  border-radius: var(--radius);
  padding: 38px 32px;
  position: relative;
}
.pillar.give { background: #FFEDEA; }
.pillar.grow { background: #FFF4E0; }
.pillar.gain { background: var(--mint); }
.pillar .pillar-label {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.pillar.give .pillar-label { color: var(--coral-dark); }
.pillar.grow .pillar-label { color: #C9821C; }
.pillar.gain .pillar-label { color: var(--teal-mid); }
.pillar h4 { font-size: 1.05rem; color: var(--ink); margin-bottom: 16px; }
.pillar ul li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  margin-bottom: 9px;
}
.pillar ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- How it works (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  text-align: left;
}
.step .step-index {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--mint);
  -webkit-text-stroke: 1.5px var(--teal-deep);
  color: transparent;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 30px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
}
.stat .stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--coral);
  display: block;
  margin-bottom: 6px;
}
.stat .stat-label {
  font-size: 0.85rem;
  color: #BFE0DC;
  font-weight: 600;
}

/* ---------- Strategy cards (grid of 6) ---------- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strategy-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.strategy-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.strategy-card .icon-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.strategy-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.strategy-card p { font-size: 0.9rem; }

/* ---------- Roadmap (timeline) ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.roadmap-month {
  padding: 0 28px 0 0;
  border-left: 2px solid var(--line);
  padding-left: 28px;
  position: relative;
}
.roadmap-month:first-child { border-left: 2px solid var(--coral); }
.roadmap-month .month-tag {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-dark);
  margin-bottom: 8px;
  display: block;
}
.roadmap-month h3 { margin-bottom: 16px; }
.roadmap-month ul li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
  margin-bottom: 11px;
}
.roadmap-month ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-mid);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(10,61,63,0.06);
}
.team-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--mint);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--teal-deep);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coral-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.team-card p { font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-deep);
}
.faq-question:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.faq-icon {
  font-size: 1.4rem;
  color: var(--coral);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding-bottom: 22px; font-size: 0.96rem; max-width: 65ch; }

/* ---------- Donate form section ---------- */
.donate-panel {
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 24px 60px rgba(10, 61, 63, 0.14);
  max-width: 560px;
  margin: 0 auto;
}
.donate-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
}
.amount-btn {
  padding: 18px 8px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal-deep);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.amount-btn:hover { border-color: var(--coral); }
.amount-btn.selected {
  border-color: var(--coral);
  background: #FFEDEA;
  color: var(--coral-dark);
}
.amount-btn span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 2px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-group input, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--cream);
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--coral);
}
.donate-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A8C2BF;
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2A3F3D;
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 32ch; color: #8FAEAB; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col a {
  font-size: 0.9rem;
  color: #A8C2BF;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
  color: #6F8C89;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--teal-deep);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-header .eyebrow { color: var(--coral); margin-bottom: 14px; display: block; }
.page-header h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 14px; }
.page-header p { color: #BFE0DC; max-width: 56ch; font-size: 1.08rem; }

/* ---------- Utility ---------- */
.center-cta { text-align: center; }
.mt-48 { margin-top: 48px; }
.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto; }
  .problem-grid, .pillars, .steps, .strategy-grid, .roadmap, .team-grid, .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .problem-grid, .pillars, .steps, .strategy-grid, .roadmap, .team-grid, .stats-band {
    grid-template-columns: 1fr;
  }
  .roadmap-month { border-left: 2px solid var(--coral); padding-left: 22px; margin-bottom: 36px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .donate-panel { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--cream);
  z-index: 99;
  padding: 32px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--teal-deep);
}
.mobile-nav .btn { margin-top: 24px; width: 100%; justify-content: center; }
