:root {
  --navy: #073b68;
  --navy-dark: #042944;
  --blue: #0b74bb;
  --sky: #e9f6ff;
  --green: #2f8f46;
  --green-dark: #206634;
  --gold: #f6c445;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #eef3f7;
  --gray-300: #c7d2de;
  --gray-600: #506174;
  --gray-900: #122334;
  --shadow: 0 18px 45px rgba(4, 41, 68, 0.15);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

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

ul {
  list-style-position: inside;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7, 59, 104, 0.1);
}

.top-bar {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--green));
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--gray-600);
  font-size: 0.78rem;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--green);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  border-radius: 10px;
  background: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #153c5a 0%, #0f3450 55%, #163f5f 100%);
}

/* Centered hero photo layer */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("sam-mwangi.jpg");
  background-repeat: no-repeat;
  background-size: min(78vw, 900px) auto;
  background-position: center 55%;
  opacity: 0.23;
  z-index: 0;
}

/* Dark overlay for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 41, 68, 0.82) 0%,
    rgba(4, 41, 68, 0.62) 40%,
    rgba(4, 41, 68, 0.48) 100%
  );
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 70px 70px;
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: center;
  padding: 90px 0;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 780px;
}

.hero-text {
  max-width: 670px;
  margin: 24px 0 30px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.donation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.donation-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover,
.donation-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Cards */
.hero-card,
.highlight-box,
.info-card,
.campaign-form,
.priority-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.portrait-placeholder {
  min-height: 360px;
  border-radius: 16px;
  display: grid;
  place-items: end start;
  padding: 28px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7, 59, 104, 0.15), rgba(4, 41, 68, 0.55)),
    url("sam-mwangi.jpg") center top / cover no-repeat;
  overflow: hidden;
  position: relative;
}

.portrait-placeholder span {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.hero-card h2 {
  color: var(--navy);
  margin-top: 18px;
  font-size: 1.55rem;
}

.hero-card p {
  color: var(--green);
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-card li {
  margin-top: 8px;
  color: var(--gray-600);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.action-card {
  min-height: 160px;
  padding: 24px;
  color: var(--white);
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.25s ease;
}

.action-card:nth-child(even) {
  background: var(--green);
}

.action-card:hover {
  transform: translateY(-6px);
  background: var(--navy-dark);
}

.action-card span,
.action-card em {
  display: block;
  opacity: 0.82;
  font-style: normal;
  font-size: 0.85rem;
}

.action-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 10px 0;
}

/* General Sections */
.section {
  padding: 100px 0;
}

.two-column,
.contact-grid,
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.section-copy h2,
.section-heading h2,
.cta-copy h2,
.donation-strip h2 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.section-copy p,
.cta-copy p,
.donation-strip p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.03rem;
}

.highlight-box {
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: var(--white);
  padding: 36px;
}

.highlight-box h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.highlight-box p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Priorities */
.dark-section {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(47, 143, 70, 0.35),
      transparent 30%
    ),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.dark-section .section-heading h2 {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.priority-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.priority-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  padding: 26px;
  border-top: 6px solid var(--green);
}

.priority-card span {
  color: var(--green);
  font-size: 2.2rem;
  font-weight: 900;
}

.priority-card h3,
.info-card h3 {
  color: var(--navy);
  margin: 10px 0;
  font-size: 1.25rem;
}

.priority-card p,
.info-card li {
  color: var(--gray-600);
}

.priority-card ul,
.info-card ul {
  margin-top: 14px;
}

.priority-card li,
.info-card li {
  margin-top: 8px;
}

/* Info Cards */
.info-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.story-section {
  background: var(--sky);
}

/* Volunteer Section */
.split-cta {
  background: var(--gray-50);
}

.volunteer-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}

.volunteer-heading {
  max-width: 760px;
  text-align: center;
}

.volunteer-heading h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.volunteer-heading p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.volunteer-heading .eyebrow {
  margin-bottom: 12px;
}

/* Forms */
.campaign-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.campaign-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.campaign-form input,
.campaign-form select,
.campaign-form textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--gray-900);
  background: var(--white);
}

.campaign-form input:focus,
.campaign-form select:focus,
.campaign-form textarea:focus {
  outline: 3px solid rgba(47, 143, 70, 0.2);
  border-color: var(--green);
}

/* Horizontal Volunteer Form */
.volunteer-form {
  width: min(100%, 1050px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: end;
}

.volunteer-form label:has(textarea) {
  grid-column: 1 / -1;
}

.volunteer-form button {
  grid-column: 1 / -1;
  width: min(260px, 100%);
  justify-self: center;
}

.volunteer-form .form-message {
  grid-column: 1 / -1;
  text-align: center;
}

.form-message {
  font-weight: 800;
  color: var(--green);
  min-height: 24px;
}

.form-message.error {
  color: #c62828;
}

.campaign-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Donation Strip */
.donation-strip {
  padding: 84px 0;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 59, 104, 0.96), rgba(47, 143, 70, 0.92)),
    url("sam-mwangi.jpg") center top / cover no-repeat;
}

.donation-strip h2,
.donation-strip p {
  color: var(--white);
}

.donation-buttons {
  justify-content: center;
  margin-top: 28px;
}

.donation-buttons button {
  color: var(--navy);
  background: var(--white);
  border: 0;
}

/* Contact */
.contact-list {
  margin-top: 22px;
  padding: 20px;
  border-left: 6px solid var(--green);
  background: var(--gray-50);
  border-radius: 0 14px 14px 0;
}

.contact-list p {
  margin: 6px 0;
}

/* Footer */
.site-footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.84);
  background: var(--navy-dark);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid strong {
  color: var(--white);
}

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

.footer-links a:hover {
  color: var(--gold);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 1001;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

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

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

/* Responsive */
@media (max-width: 1100px) {
  .hero::before {
    background-size: min(88vw, 760px) auto;
    background-position: center 58%;
    opacity: 0.2;
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-size: min(110vw, 700px) auto;
    background-position: center 120px;
    opacity: 0.18;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(4, 41, 68, 0.88) 0%,
      rgba(4, 41, 68, 0.75) 45%,
      rgba(4, 41, 68, 0.9) 100%
    );
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 0 56px;
  }

  .two-column,
  .contact-grid,
  .cta-grid,
  .reverse {
    grid-template-columns: 1fr;
  }

  .quick-actions,
  .priority-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .volunteer-form label:has(textarea),
  .volunteer-form button,
  .volunteer-form .form-message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container,
  .quick-actions {
    width: min(100% - 28px, 1120px);
  }

  .quick-actions,
  .priority-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    margin-top: -30px;
  }

  .hero::before {
    background-size: 135vw auto;
    background-position: center 90px;
    opacity: 0.16;
  }

  .hero-grid {
    padding: 56px 0 40px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.3rem);
    line-height: 0.95;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section {
    padding: 70px 0;
  }

  .portrait-placeholder {
    min-height: 260px;
  }

  .volunteer-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero::before {
    background-size: 150vw auto;
    background-position: center 100px;
    opacity: 0.15;
  }
}
