/* ===== Fundher Dream Empowerment Foundation — shared styles ===== */
/* Palette derived from the organization logo: green (growth), gold (sun/opportunity), charcoal, ivory */

:root {
  --green-900: #1F4A22;
  --green-700: #2E7D32;
  --green-600: #3E8E44;
  --gold-500: #E8A33D;
  --gold-300: #F3C583;
  --ivory: #FAF9F5;
  --ivory-dim: #EFEBE0;
  --charcoal: #201E1A;
  --charcoal-70: rgba(32, 30, 26, 0.7);
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, Segoe UI, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--green-900);
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; max-width: 62ch; }

.lede {
  font-size: 1.15rem;
  color: var(--charcoal-70);
  max-width: 52ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-gold {
  background: var(--gold-500);
  color: var(--green-900);
}
.btn-gold:hover { background: var(--gold-300); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline.dark:hover { background: rgba(31,74,34,0.06); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--ivory-dim);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.15;
}
.logo span { color: var(--gold-500); }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--charcoal-70);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--gold-500);
}
.nav-donate {
  background: var(--green-700);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 3px;
  border-bottom: none !important;
}
.nav-donate:hover { background: var(--green-600); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--green-900);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 32px 24px;
    border-bottom: 1px solid var(--ivory-dim);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-donate { margin-top: 8px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  height: 78vh;
  min-height: 480px;
  max-height: 680px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18,40,20,0.78) 0%, rgba(18,40,20,0.55) 45%, rgba(18,40,20,0.25) 75%, rgba(18,40,20,0.35) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 0 32px;
}
.hero-copy .eyebrow-tag {
  display: inline-block;
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.hero-copy h1 { color: var(--white); margin-bottom: 20px; }
.hero-copy p { color: rgba(255,255,255,0.9); font-size: 1.1rem; }
.hero-actions { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero image carousel (crossfade, auto-rotating, full-bleed background) */
.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-carousel img.active { opacity: 1; }
.hero-carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 32px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.hero-carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-carousel-dots span.active {
  background: var(--gold-500);
  transform: scale(1.2);
}

@media (max-width: 860px) {
  .hero { height: 68vh; min-height: 420px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(18,40,20,0.55) 0%, rgba(18,40,20,0.8) 100%);
  }
  .hero-copy { max-width: 100%; }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Program rows (alternating image/text) ---------- */
.program-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--ivory-dim);
}
.program-row:last-child { border-bottom: none; }
.program-row.reverse .program-media { order: 2; }
.program-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
}
.program-tag {
  display: inline-block;
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.program-text h3 { margin-bottom: 14px; font-size: 1.6rem; }
.program-text .btn { margin-top: 10px; }

@media (max-width: 860px) {
  .program-row, .program-row.reverse { grid-template-columns: 1fr; }
  .program-row.reverse .program-media { order: 0; }
}

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--green-900);
  color: var(--white);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--gold-300);
  display: block;
}
.stat-label {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}
@media (max-width: 700px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--ivory-dim);
  border-radius: 4px;
  overflow: hidden;
}
.card img { height: 200px; width: 100%; object-fit: cover; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { font-size: 0.96rem; color: var(--charcoal-70); }
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote panel ---------- */
.quote-panel {
  background: var(--green-900);
  color: var(--white);
  text-align: center;
}
.quote-panel blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-style: italic;
  max-width: 780px;
  margin: 0 auto 18px;
  line-height: 1.4;
}
.quote-attr { font-weight: 600; opacity: 0.9; color: var(--gold-300); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--gold-500);
  color: var(--green-900);
  text-align: center;
}
.cta-banner h2 { color: var(--green-900); margin-bottom: 14px; }
.cta-banner p { margin: 0 auto 26px; color: rgba(31,74,34,0.85); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--green-700);
  color: var(--white);
  padding: 56px 0;
}
.page-header .eyebrow-tag { color: var(--gold-300); font-weight: 600; }
.page-header h1 { color: var(--white); margin-top: 12px; }
.page-header p { color: rgba(255,255,255,0.85); margin-top: 14px; }

/* ---------- Forms ---------- */
form.stack { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--ivory-dim);
  border-radius: 3px;
  background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--green-600);
  outline-offset: 1px;
}

/* ---------- Two column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier {
  border: 1.5px solid var(--ivory-dim);
  border-radius: 4px;
  padding: 28px 24px;
  background: var(--white);
  text-align: center;
}
.tier.featured { border-color: var(--gold-500); box-shadow: 0 0 0 1px var(--gold-500); }
.tier-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--green-900);
  margin: 10px 0;
}
@media (max-width: 860px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* ---------- Story carousel (desktop) ---------- */
.story-carousel {
  position: relative;
  overflow: hidden;
}
.story-track {
  display: flex;
  transition: transform 0.5s ease;
}
.story-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-slide img {
  border-radius: 4px;
  height: 420px;
  width: 100%;
  object-fit: cover;
}
.story-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}
.story-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--green-700);
  background: var(--white);
  color: var(--green-700);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.story-arrow:hover { background: var(--green-700); color: var(--white); }
.story-dots { display: flex; gap: 8px; }
.story-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ivory-dim);
  border: none;
  cursor: pointer;
  padding: 0;
}
.story-dot.active { background: var(--gold-500); }

@media (max-width: 860px) {
  .story-slide { grid-template-columns: 1fr; }
  .story-slide img { height: 260px; }
}

/* ---------- Sponsor carousel (auto-scrolling marquee) ---------- */
.sponsor-band { background: var(--white); }
.sponsor-track-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sponsor-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: sponsor-scroll 28s linear infinite;
}
.sponsor-track img {
  height: 42px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.sponsor-track img:hover { filter: grayscale(0%); opacity: 1; }
@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-track { animation: none; overflow-x: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo img { height: 38px; width: 38px; border-radius: 50%; object-fit: cover; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
