/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #1b2a3d;
  --navy-dark: #141f2e;
  --navy-deep: #0f1923;
  --red: #c8232c;
  --red-dark: #a01c23;
  --red-light: #e02d37;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-400: #ced4da;
  --gray-600: #868e96;
  --gray-800: #343a40;
  --gray-900: #212529;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --content-max: 1200px;
  --content-pad: 40px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ===== Sticky Header (hidden by default, shown on scroll) ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  height: 80px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-header-inner img {
  height: 56px;
  width: auto;
}

/* ===== Donate Button ===== */
.btn-donate {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--red);
  background: var(--white);
  padding: 14px 36px;
  border-radius: 6px;
  text-align: center;
  transition: var(--transition);
  margin-top: 18px;
  letter-spacing: 0.02em;
}

.btn-donate:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-donate-sm {
  font-size: 0.9rem;
  padding: 10px 24px;
  margin-top: 0;
  border-radius: 5px;
  background: var(--red);
  color: var(--white);
}

.btn-donate-sm:hover {
  background: var(--red-dark);
  box-shadow: 0 4px 12px rgba(200, 35, 44, 0.3);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: auto;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
}

/* Logo sitting on the hero background (not on white bar) */
.hero-top-logo {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 5;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

.hero-top-logo img {
  height: 140px;
  width: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-top: 140px;
}

.hero-text-box {
  background: rgba(200, 35, 44, 0.6);
  padding: 36px 44px 32px;
  width: 520px;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  text-align: center;
}

.hero-text-box h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-logo {
  height: 90px;
  width: auto;
  margin: 0 auto 16px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-style: italic;
}

.hero-headshot {
  position: relative;
  z-index: 4;
  margin-left: -60px;
  align-self: flex-end;
}

.hero-headshot img {
  height: 520px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

/* ===== Name Banner ===== */
.name-banner {
  background: var(--white);
  text-align: center;
  padding: 64px 24px;
  border-bottom: 4px solid var(--red);
}

.name-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--red);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.name-banner p {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--red);
  font-style: italic;
}

/* ===== Promise Section ===== */
.promise {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0;
}

.promise h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 32px;
}

.promise-text {
  max-width: 820px;
}

.promise-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
}

.promise-text p:last-child {
  margin-bottom: 0;
}

.promise-text .signature {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
}

/* ===== Platform / Pillars ===== */
.platform {
  background: var(--navy-dark);
  padding: 80px 0;
}

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

.pillar-card {
  background: var(--navy);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.pillar-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--navy-deep);
}

.pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-image img {
  transform: scale(1.05);
}

.pillar-body {
  padding: 24px 22px 28px;
  background: var(--white);
  flex: 1;
}

.pillar-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.pillar-body ul {
  list-style: disc;
  padding-left: 18px;
}

.pillar-body li {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 8px;
}

.pillar-body li:last-child {
  margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-light);
  margin-bottom: 14px;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.footer-email {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-email:hover {
  color: var(--white);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 11px 14px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
  padding: 11px 22px;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--red);
  color: var(--white);
}

.footer-bottom {
  padding: 20px 0;
  text-align: left;
}

.footer-disclaimer {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.pillar-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.pillar-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.pillar-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.pillar-card.reveal:nth-child(5) { transition-delay: 0.4s; }
.pillar-card.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero-text-box {
    width: 500px;
    padding: 52px 56px 44px;
  }

  .hero-text-box h1 {
    font-size: 3rem;
  }

  .hero-logo {
    height: 100px;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .hero-headshot img {
    height: 440px;
  }

  .hero-headshot {
    margin-left: -50px;
  }
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --content-pad: 24px;
  }

  .hero-content {
    padding: 100px 20px 0;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    width: 100%;
  }

  .hero-headshot {
    margin-left: 0;
    order: -1;
  }

  .hero-headshot img {
    height: 360px;
  }

  .hero-text-box {
    width: 100%;
    max-width: 440px;
    padding: 40px 32px 36px;
    margin-bottom: 0;
    margin-top: -50px;
    z-index: 5;
  }

  .hero-text-box h1 {
    font-size: 2.4rem;
  }

  .hero-logo {
    height: 80px;
    margin-bottom: 20px;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }

  .hero-top-logo img {
    height: 100px;
  }

  .sticky-header-inner img {
    height: 44px;
  }

  .btn-donate {
    font-size: 1rem;
    padding: 12px 28px;
  }
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .promise,
  .platform {
    padding: 56px 0;
  }

  .name-banner {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-top: 80px;
  }

  .hero-text-box {
    padding: 32px 24px 28px;
    max-width: 100%;
    margin-top: -40px;
  }

  .hero-text-box h1 {
    font-size: 2rem;
  }

  .hero-logo {
    height: 60px;
    margin-bottom: 16px;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-headshot img {
    height: 280px;
  }

  .hero-top-logo img {
    height: 88px;
  }

  .sticky-header-inner img {
    height: 38px;
  }

  .name-banner h2 {
    font-size: 2.4rem;
  }

  .btn-donate {
    font-size: 0.95rem;
    padding: 12px 24px;
    margin-top: 20px;
  }

  .btn-donate-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}
