:root {
  --pink: #ec5e87;
  --pink-dk: #de3c6b;
  --blue: #7dabf4;
  --navy: #213e8c;
  --navy-dk: #0e2973;
  --ink: #333333;
  --black: #000;
  --white: #fff;
  --cream: #f7f5e1;
  --muted: #666;
  --header: #333333;
  --line: #ddd;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito Sans", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
  line-height: 1.55;
}

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

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

h1, h2, h3 { font-family: Poppins, sans-serif; font-weight: 600; line-height: 1.15; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 36px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 2px;
}

.brand-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
}

.nav a {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.nav a.active,
.nav a:hover { color: var(--pink); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  background: #242323 center / cover no-repeat;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.28));
}

/* Home header overlays the hero so hair and foreheads show through */
body[data-page="home"] .site-header {
  background: rgba(0, 0, 0, 0.28);
}

body[data-page="home"] .hero {
  margin-top: calc(-1 * var(--header-h));
  height: auto;
  min-height: 0;
  background-color: #fff;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  place-items: end center;
  padding: 38.4% 24px 32px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(32px, 5vw, 60px);
  max-width: 820px;
  color: #000;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 88px 20px;
}

.page-hero h1 { font-size: clamp(42px, 7vw, 70px); color: #fff; }

/* CTA trio */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.cta {
  min-height: 152px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  color: #fff;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.cta p { font-size: 18px; font-weight: 300; color: #fff; }

.cta-mission { background: var(--pink); }
.cta-projects { background: var(--blue); }
.cta-involved { background: var(--navy); }
.cta-row > .white-strip { display: none; }

.cta:hover { filter: brightness(1.06); }

/* Quote */
.quote {
  background: #fff url("../assets/quote-pattern.png?v=tan") center / 180px repeat;
  text-align: center;
  padding: 64px 20px;
}

.quote-card {
  display: inline-block;
  background: #fff;
  padding: 28px 48px;
  max-width: 820px;
}

.quote p {
  font-family: Poppins, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto 8px;
}

.quote .verse {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
}

.quote .attr {
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
}

.white-strip {
  height: 28px;
  background: #fff;
  width: 100%;
}

/* Band */
.band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 72px 20px;
}

.band h2 { font-size: clamp(40px, 6vw, 70px); color: #fff; }

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.split-copy, .split-media {
  min-height: 500px;
  position: relative;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 48px;
}

.split-copy.dark { background: #000; color: #fff; }
.split-copy.navy { background: var(--navy); color: #fff; }
.split-copy.cream { background: var(--cream); }
.split-copy.yellow { background: #f6efb8; }

.split-copy h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 18px; }
.split-copy h3 { font-size: 20px; font-weight: 200; margin-bottom: 16px; }
.split-copy p { font-size: 18px; margin-bottom: 14px; max-width: 540px; }

.split-media {
  background: #111 center / cover no-repeat;
}

.solar-photo {
  background-position: 80% center;
}

.split-media .card {
  position: absolute;
  inset: 12% 10%;
  background: rgba(255,255,255,0.92);
  padding: 28px 32px;
  overflow: auto;
}

.split-media .card h3 { font-weight: 200; font-size: 22px; margin-bottom: 12px; }

.split-media .card.card-side {
  inset: auto;
  top: 8%;
  bottom: 8%;
  left: 4%;
  right: auto;
  width: min(280px, 38%);
  overflow: auto;
}

.split-copy .quote-mark {
  font-size: 72px;
  line-height: 1;
  color: #f0c419;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.split-copy .quote-mark.end {
  margin-top: 4px;
  margin-bottom: 0;
  text-align: right;
  max-width: 540px;
}

.split-copy .daily-text {
  font-style: italic;
}

.overlay-title {
  position: absolute;
  left: 36px;
  bottom: 48px;
  color: #fff;
  max-width: 420px;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

.overlay-title h2 { font-size: clamp(36px, 4vw, 54px); }
.overlay-title h3 {
  display: inline-block;
  background: var(--navy);
  padding: 6px 12px;
  font-size: 28px;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 22px;
  border: 0;
  cursor: pointer;
  width: fit-content;
}

.btn:hover { background: var(--pink-dk); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  padding: 0;
}

.rule {
  width: 80px;
  height: 1px;
  background: #888;
  margin: 18px 0 24px;
}

/* About */
.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
  font-size: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
  padding: 0 24px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .feature {
  grid-column: 4;
  grid-row: 1 / 3;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mission-card {
  min-height: 420px;
  background: center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: #fff;
}

.mission-card h2 { font-size: 40px; margin-bottom: 12px; }
.mission-card p { max-width: 420px; }

.support {
  position: relative;
  min-height: 280px;
  background: #222 center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.support::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}

.support .inner { position: relative; z-index: 1; padding: 48px 20px; }
.support h2 { font-size: clamp(28px, 4vw, 34px); margin-bottom: 18px; }

/* Impact */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  text-align: center;
}

.timeline article { margin-bottom: 40px; }
.timeline h3 { font-size: 22px; margin-bottom: 10px; }
.timeline p { font-size: 17px; }

.past {
  padding: 24px 24px 72px;
  max-width: 1100px;
  margin: 0 auto;
}

.past h2 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 36px;
}

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

.past-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 14px;
}

.past-card h3 { font-size: 15px; letter-spacing: 0.04em; margin-bottom: 6px; }
.past-card p { font-size: 15px; color: var(--muted); }

.boss {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: left;
}

.boss img {
  width: 220px;
  height: 280px;
  object-fit: cover;
}

/* Donate */
.donate-wrap {
  background: #cfcfcf;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.donate-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
  color: #fff;
  background: var(--navy);
}

.donate-copy h1 { font-size: clamp(48px, 7vw, 70px); color: #fff; }
.donate-copy p { margin-top: 12px; font-size: 18px; }

.donate-box {
  background: #fff;
  margin: 48px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.donate-box h2 { font-size: 28px; }
.donate-box p { color: var(--muted); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

.contact-form {
  padding: 56px 48px 72px;
}

.contact-form h2 { font-size: 36px; margin-bottom: 12px; }
.contact-form .meta { color: var(--muted); margin-bottom: 32px; }

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

label {
  display: block;
  margin-bottom: 22px;
  font-size: 14px;
  color: #888;
}

input, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ccc;
  padding: 8px 0;
  font: inherit;
  background: transparent;
  resize: vertical;
}

input:focus, textarea:focus { outline: none; border-color: var(--navy); }

.form-actions { text-align: right; }

.contact-photo {
  background: #ddd center / cover no-repeat;
  min-height: 620px;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal p { margin-bottom: 16px; }

/* Sponsors + footer */
.sponsors {
  padding: 40px 24px 24px;
  text-align: center;
  background: #fff;
}

.sponsors p { margin-bottom: 20px; color: var(--muted); }

.sponsor-track {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.sponsor-track img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 40px 36px 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr auto;
  gap: 32px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto 28px;
}

.site-footer h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.site-footer p, .site-footer a { font-size: 15px; }

.quick a { display: block; margin-bottom: 4px; }
.quick a:hover { color: var(--pink); }

.signup {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.signup input {
  border: 1px solid #ccc;
  padding: 8px 10px;
  min-width: 180px;
}

.copyright {
  text-align: center;
  font-size: 13px;
  padding: 12px 0 8px;
  color: var(--ink);
}

.copyright a:hover { color: var(--pink); }

.note { font-size: 14px; color: var(--navy); margin-top: 10px; display: none; }
.note.show { display: block; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--header);
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .cta-row, .split, .donate-wrap, .contact-grid, .mission-grid, .past-grid, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .cta-row > .white-strip { display: block; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
  .gallery .feature { grid-column: auto; grid-row: auto; min-height: 280px; }
  .donate-box { margin: 0; }
  .boss { grid-template-columns: 1fr; }
  .split-copy, .contact-form { padding: 40px 24px; }
  .split-media .card.card-side {
    width: min(260px, 42%);
    left: 3%;
    right: auto;
    top: 6%;
    bottom: 6%;
    height: auto;
    max-height: none;
  }
}
