:root {
  --ink: #292a2d;
  --muted: #636363;
  --white: #ffffff;
  --cream: #fef7e6;
  --warm-white: #fbf6ef;
  --green: #00996f;
  --green-soft: #469d7c;
  --deep-green: #00523c;
  --footer-green: #1c5843;
  --navy: #214f79;
  --yellow: #ffc425;
  --border: #cac1b6;
  --error: #b42318;
  --shadow: 0 18px 48px rgba(41, 42, 45, 0.12);
  --content: 1360px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(41,42,45,.1);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(calc(100% - 48px), var(--content));
  min-height: 118px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand img { width: 185px; height: auto; }
.site-navigation {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.5vw, 48px);
}
.site-navigation a {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.site-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--green);
  transition: right .2s ease;
}
.site-navigation a:hover::after,
.site-navigation a:focus-visible::after,
.site-navigation a[aria-current="page"]::after { right: 0; }

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(41,42,45,.16); }
.button:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(255,196,37,.9);
  outline-offset: 3px;
}
.button-green { background: var(--green-soft); color: var(--white); }
.button-green:hover { background: var(--green); }
.button-yellow { background: var(--yellow); }
.header-donate { min-height: 54px; padding: 13px 22px; }
.menu-toggle { display: none; }

.hero {
  min-height: clamp(610px, calc(100vh - 118px), 820px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  padding: clamp(54px, 5vw, 76px) max(32px, calc((100vw - var(--content)) / 2)) 64px;
  background: url("assets/rasuwa-hero.jpg") center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 14, 17, .82) 0%, rgba(7, 14, 17, .68) 38%, rgba(7, 14, 17, .2) 69%, rgba(7, 14, 17, .06) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: left;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--green);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow-mark {
  width: 29px;
  height: 29px;
  display: inline-block;
  background: linear-gradient(90deg, transparent 45%, var(--green-soft) 46% 54%, transparent 55%),
              linear-gradient(25deg, transparent 45%, var(--green-soft) 46% 54%, transparent 55%),
              linear-gradient(-25deg, transparent 45%, var(--green-soft) 46% 54%, transparent 55%);
}
.hero h1 {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--white);
  font-size: clamp(3.5rem, 5.4vw, 6rem);
  text-wrap: balance;
}
.hero h1::before {
  content: "";
  display: block;
  width: 42px;
  height: 34px;
  margin: 0 0 20px -18px;
  background: linear-gradient(25deg, transparent 43%, var(--yellow) 44% 51%, transparent 52%) 0 2px / 22px 18px no-repeat,
              linear-gradient(78deg, transparent 43%, var(--yellow) 44% 51%, transparent 52%) 11px 0 / 22px 18px no-repeat;
}
.hero-intro { max-width: 680px; margin: 0 0 24px; font-size: 1.18rem; line-height: 1.68; }
.hero-emphasis { margin-bottom: 36px; font-size: 1.08rem; font-weight: 700; }
.hero .button-green { border-color: rgba(255,255,255,.8); }

.section-shell { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; }
.crisis-section {
  position: relative;
  padding: clamp(76px, 8vw, 128px) clamp(24px, 7vw, 100px);
  border-radius: 22px;
  background: var(--navy);
  color: var(--white);
}
.crisis-section h2 {
  max-width: 1100px;
  margin: 0 auto clamp(44px, 5vw, 72px);
  text-align: center;
  font-size: clamp(2.65rem, 5vw, 5rem);
}
.crisis-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 92px);
}
.crisis-copy {
  font-size: clamp(1.22rem, 1.55vw, 1.5rem);
  line-height: 1.58;
}
.crisis-copy p { margin: 0 0 24px; }
.crisis-copy p:first-child { font-weight: 600; }
.crisis-copy p:last-child { margin-bottom: 0; }
.crisis-image { margin: 0; }
.crisis-image img { display: block; width: 100%; height: auto; border-radius: 20px; }

.donation-section { padding: clamp(90px, 10vw, 160px) 24px; }
.donation-layout {
  width: min(100%, var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(560px, 1.05fr);
  gap: clamp(48px, 6vw, 94px);
  align-items: start;
  padding: clamp(28px, 4vw, 60px);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}
.donation-gallery { position: sticky; top: 150px; overflow: hidden; border-radius: 22px; background: var(--ink); }
.donation-gallery > img { width: 100%; min-height: 720px; object-fit: cover; opacity: .94; transition: opacity .25s ease; }
.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.gallery-dot { width: 15px; height: 15px; padding: 0; border: 2px solid white; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(0,0,0,.35); }
.gallery-dot.is-active { border-color: var(--yellow); background: var(--yellow); }
.donation-form-wrap h2 { margin-bottom: 12px; font-size: clamp(2.5rem, 4vw, 4rem); }
.donation-form-wrap > p:not(.eyebrow) { color: var(--muted); }

#donation-form { margin-top: 34px; }
.field-group { margin: 0 0 32px; padding: 0; border: 0; }
.field-group legend { margin-bottom: 12px; font-weight: 500; }
.field-group.compact { margin-bottom: 24px; }
.segmented-control { width: min(100%, 350px); display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--green-soft); }
.segmented-control label, .title-options label { position: relative; margin: 0; }
.segmented-control input, .title-options input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-control span {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  text-align: center;
  cursor: pointer;
}
.segmented-control input:checked + span { background: white; color: var(--ink); }
.segmented-control input:focus-visible + span, .title-options input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.amount-options { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.amount-button {
  min-width: 92px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-weight: 500;
}
.amount-button.is-selected { background: var(--green-soft); color: white; }
.custom-amount { display: grid; grid-template-columns: 54px 1fr; margin: 0; }
.custom-amount .currency { display: grid; place-items: center; border: 1px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px; background: var(--warm-white); color: var(--muted); }
.custom-amount input { border-radius: 0 12px 12px 0; }
.divider { height: 1px; margin: 36px 0; background: repeating-linear-gradient(90deg, var(--border) 0 5px, transparent 5px 10px); }
.title-options { display: flex; flex-wrap: wrap; gap: 10px; }
.title-options span { display: block; min-width: 60px; padding: 9px 14px; border: 1px solid var(--green-soft); border-radius: 10px; text-align: center; cursor: pointer; }
.title-options input:checked + span { background: var(--green-soft); color: white; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: .95rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f6f6;
  color: var(--ink);
}
input[aria-invalid="true"] { border-color: var(--error); background: #fff7f6; }
.field-error { display: block; min-height: 1.4em; color: var(--error); font-size: .88rem; }
.check-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 24px; color: var(--muted); font-size: .93rem; line-height: 1.45; }
.check-row input { width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--green); }
.check-row a { color: var(--deep-green); font-weight: 600; }
.submit-button { margin-top: 32px; border: 1px solid var(--ink); }
.checkout-note { margin: 16px 0 0; color: var(--muted); font-size: .84rem; }
.form-status { margin-top: 20px; padding: 16px 18px; border-left: 4px solid var(--yellow); border-radius: 8px; background: var(--cream); }

.support-section { padding: clamp(85px, 9vw, 140px) 24px; background: var(--green-soft); color: white; }
.support-inner { width: min(100%, 1180px); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(64px, 10vw, 150px); align-items: center; }
.support-inner h2 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
.support-inner ul { margin: 28px 0; padding-left: 24px; }
.support-inner li { margin: 8px 0; }
.support-image { position: relative; margin: 0; }
.support-image::before { content: "↝"; position: absolute; top: -76px; left: -40px; color: var(--yellow); font-size: 4rem; transform: rotate(18deg); }
.support-image img { width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; object-fit: cover; }

.final-cta {
  min-height: 720px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 90px 24px;
  overflow: hidden;
  background: url("assets/rasuwa-debris.jpg") center / cover no-repeat;
  color: white;
  text-align: center;
}
.final-cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: grayscale(1); }
.final-cta-content { position: relative; z-index: 1; max-width: 920px; }
.final-cta h2 { padding: 42px 60px; border: 3px solid var(--yellow); border-radius: 50%; font-size: clamp(2.2rem, 4.3vw, 4.5rem); }
.final-cta .spark { position: absolute; top: 5px; left: 20px; color: var(--yellow); font-size: 3.4rem; }

.site-footer { background: var(--footer-green); color: white; }
.footer-inner { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; padding: 82px 0 62px; }
.footer-brand { display: block; width: 246px; margin: 0 auto 68px; }
.footer-brand img { width: 100%; height: auto; }
.footer-grid { display: grid; grid-template-columns: .8fr 1fr 1.35fr 1.15fr; gap: 46px; }
.footer-grid > div + div { padding-left: 36px; border-left: 1px solid rgba(255,196,37,.25); }
.footer-grid h2 { margin-bottom: 22px; color: var(--yellow); font-size: 1.35rem; font-weight: 500; }
.footer-grid a { display: block; margin: 8px 0; color: white; text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-grid address { margin-bottom: 16px; font-style: normal; }
.footer-appeal p { margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; margin-top: 22px; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; margin: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-weight: 600; }
.footer-bottom { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px max(24px, calc((100vw - var(--content)) / 2)); background: var(--green-soft); font-size: .85rem; letter-spacing: .04em; }

@media (max-width: 1180px) {
  .header-inner { min-height: 94px; }
  .header-donate { display: none; }
  .site-navigation { gap: 25px; }
  .donation-layout { grid-template-columns: .8fr 1.2fr; gap: 42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div + div { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .header-inner { width: min(calc(100% - 32px), var(--content)); }
  .menu-toggle { width: 48px; height: 48px; margin-left: auto; display: grid; place-content: center; gap: 5px; border: 1px solid var(--ink); border-radius: 50%; background: white; }
  .menu-toggle span:not(.sr-only) { width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-navigation { position: absolute; top: 94px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 24px 28px; background: white; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-navigation.is-open { display: flex; }
  .site-navigation a { padding: 12px 0; }
  .site-navigation a::after { display: none; }
  .hero { min-height: 660px; padding: 64px 32px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(7,14,17,.88) 0%, rgba(7,14,17,.74) 62%, rgba(7,14,17,.28) 100%); }
  .hero-content { max-width: 610px; }
  .crisis-layout { grid-template-columns: 1fr; }
  .crisis-copy { max-width: 720px; margin: 0 auto; text-align: center; }
  .crisis-image { max-width: 720px; margin: 0 auto; }
  .donation-layout { grid-template-columns: 1fr; }
  .donation-gallery { position: relative; top: auto; }
  .donation-gallery > img { min-height: 420px; }
  .support-inner { grid-template-columns: 1fr; }
  .support-image { max-width: 430px; margin: 0 auto; }
  .final-cta { min-height: 600px; }
  .final-cta h2 { padding: 36px 28px; border-radius: 40%; }
}

@media (max-width: 620px) {
  .header-inner { min-height: 82px; }
  .brand img { width: 145px; }
  .site-navigation { top: 82px; }
  .hero { min-height: 640px; padding: 52px 22px; background-position: 62% center; }
  .hero::before { background: rgba(7,14,17,.68); }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero h1::before { margin-left: 0; }
  .hero-intro { font-size: 1rem; line-height: 1.6; }
  .section-shell { width: calc(100% - 24px); }
  .crisis-section { padding: 58px 22px; border-radius: 16px; }
  .crisis-section h2 { margin-bottom: 34px; }
  .crisis-copy { font-size: 1.12rem; text-align: left; }
  .donation-section { padding: 70px 12px; }
  .donation-layout { gap: 32px; padding: 14px 14px 34px; border-radius: 18px; }
  .donation-gallery > img { min-height: 310px; }
  .donation-form-wrap { padding: 0 6px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .segmented-control { width: 100%; }
  .support-section { padding: 70px 22px; }
  .support-inner { gap: 62px; }
  .final-cta { min-height: 560px; }
  .final-cta h2 { padding: 32px 18px; border-radius: 32px; }
  .final-cta .spark { top: -28px; left: 0; }
  .footer-inner { width: calc(100% - 40px); padding-top: 64px; }
  .footer-brand { width: 205px; margin-bottom: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: center; }
}

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