:root {
  --ink: #17211f;
  --muted-ink: #5c6864;
  --paper: #fbfaf6;
  --soft: #eef1e8;
  --line: #dfe4d7;
  --forest: #1f5a4d;
  --forest-dark: #163d35;
  --copper: #c8743f;
  --gold: #e4b85a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(23, 33, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest-dark);
}

.skip-link:focus {
  left: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(223, 228, 215, 0.9);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.84rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted-ink);
  font-size: 0.76rem;
}

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

.nav-links a {
  padding: 10px 12px;
  color: var(--muted-ink);
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.94rem;
}

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

.nav-links .nav-donate {
  color: var(--white);
  background: var(--forest);
}

.nav-links .nav-donate:hover,
.nav-links .nav-donate.active {
  color: var(--white);
  background: var(--forest-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 18, 17, 0.92) 0%, rgba(12, 18, 17, 0.72) 38%, rgba(12, 18, 17, 0.2) 72%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 52px;
  color: var(--white);
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
}

.eyebrow {
  color: var(--copper);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero-actions,
.cta-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--forest);
}

.button.primary:hover {
  background: var(--forest-dark);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.1);
}

.button.dark {
  background: var(--ink);
}

.button.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 56px 0 0;
}

.hero-stats div,
.card,
.finance-card,
.checkout,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats div {
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted-ink);
}

.section {
  padding: 88px 0;
}

.section.muted,
.intro-band {
  background: var(--soft);
}

.split,
.impact-layout,
.proof-grid,
.finance-layout,
.governance,
.contact-layout,
.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.split p {
  color: var(--muted-ink);
  font-size: 1.08rem;
}

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

.action-grid,
.metric-grid,
.program-grid,
.proof-items,
.governance-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  min-height: 250px;
}

.card p,
.proof-items p,
.program-grid p,
.governance-list p {
  color: var(--muted-ink);
}

.icon {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--copper);
  font-weight: 900;
}

.impact-section {
  color: var(--white);
  background: var(--forest-dark);
}

.impact-section .eyebrow {
  color: var(--gold);
}

.impact-section p {
  color: rgba(255, 255, 255, 0.78);
}

.impact-list {
  display: grid;
  gap: 12px;
}

.impact-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
}

.impact-list strong {
  color: var(--forest);
  font-size: 1.55rem;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.proof-panel {
  padding-right: 20px;
}

.proof-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-items article,
.governance-list article,
.program-grid article {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.cta-band {
  padding: 44px 0;
  color: var(--white);
  background: var(--copper);
}

.cta-content {
  justify-content: space-between;
}

.cta-content h2 {
  margin-bottom: 0;
}

.cta-content .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

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

.site-footer strong,
.site-footer span {
  display: block;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 10px;
}

.site-footer a {
  display: block;
  margin: 6px 0;
}

.page-hero {
  padding: 96px 0 74px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(31, 90, 77, 0.94), rgba(23, 33, 31, 0.96)),
    url("../img/maraude-solidaire.png") center / cover;
}

.page-hero.compact {
  padding-bottom: 60px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  font-weight: 900;
}

.program-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-grid ul,
.finance-card ul,
.contact-card ul {
  padding-left: 20px;
  color: var(--muted-ink);
}

.budget-bars {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.budget-bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.budget-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 10px;
  background: linear-gradient(90deg, var(--forest) var(--w), var(--soft) var(--w));
  border-radius: 999px;
}

.finance-card,
.checkout,
.contact-card {
  padding: 28px;
  box-shadow: var(--shadow);
}

.metric-grid div {
  padding: 26px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
}

.metric-grid strong {
  display: block;
  font-size: 2.2rem;
}

.governance-list {
  grid-template-columns: 1fr;
}

.donation-page {
  padding: 82px 0;
  background:
    radial-gradient(circle at top left, rgba(228, 184, 90, 0.24), transparent 34%),
    var(--soft);
}

.donation-copy {
  position: sticky;
  top: 104px;
}

.donation-copy h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.trust-strip span {
  padding: 8px 10px;
  color: var(--forest-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
}

.compact-list div {
  grid-template-columns: 78px 1fr;
  box-shadow: none;
}

.checkout form,
.contact-form {
  display: grid;
  gap: 22px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 850;
}

.segmented,
.amount-grid,
.payment-choice {
  display: grid;
  gap: 8px;
}

.segmented {
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  background: var(--soft);
  border-radius: 8px;
}

.segmented button,
.amount-grid button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.segmented button.is-selected,
.amount-grid button.is-selected {
  color: var(--white);
  background: var(--forest);
}

.amount-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.amount-grid button {
  background: var(--soft);
}

.amount-input {
  position: relative;
  margin-top: 10px;
}

.amount-input input,
.form-grid input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.amount-input input {
  padding-right: 38px;
  font-size: 1.3rem;
  font-weight: 900;
}

.amount-input span {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-weight: 900;
}

.amount-impact,
.form-note {
  margin: 8px 0 0;
  color: var(--muted-ink);
  font-size: 0.92rem;
}

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

label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

.payment-choice {
  grid-template-columns: 1fr 1fr;
}

.payment-choice label,
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.secure-box {
  padding: 16px;
  background: #f7efe2;
  border: 1px solid #eed4ac;
  border-radius: 8px;
}

.secure-box p {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 31, 0.65);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
  font-size: 1.4rem;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.contact-form {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 84px 0 42px;
  }

  .hero-overlay {
    background: rgba(12, 18, 17, 0.74);
  }

  .hero-stats,
  .split,
  .impact-layout,
  .proof-grid,
  .finance-layout,
  .governance,
  .contact-layout,
  .donation-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .action-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .donation-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .hero-actions,
  .cta-content {
    align-items: stretch;
  }

  .hero-actions .button,
  .cta-content .button {
    width: 100%;
  }

  .hero-stats,
  .action-grid,
  .metric-grid,
  .proof-items,
  .amount-grid,
  .payment-choice,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }
}
