/* =========================================================
   Dguetta Foundation — main stylesheet
   Light, warm, colorful NGO theme
   ========================================================= */

:root {
  /* Brand palette */
  --teal: #0e9f9a;
  --teal-dark: #0b7f7b;
  --teal-soft: #e3f6f5;
  --orange: #f7931e;
  --orange-dark: #e07b06;
  --orange-soft: #fff1e0;
  --sun: #ffc93c;
  --sun-soft: #fff8dc;
  --coral: #ff6b6b;
  --coral-soft: #ffe9e9;
  --sky: #3aa9e8;
  --sky-soft: #e5f4fd;
  --leaf: #5cb85c;
  --leaf-soft: #eaf7ea;

  /* Neutrals */
  --bg: #fffdf8;
  --bg-alt: #f6fbfb;
  --white: #ffffff;
  --ink: #1f3a44;
  --ink-soft: #55707a;
  --line: #e7eef0;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(31, 58, 68, 0.08);
  --shadow-lg: 0 20px 50px rgba(31, 58, 68, 0.14);
  --container: 1180px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section--warm { background: linear-gradient(180deg, var(--orange-soft), var(--bg)); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { color: var(--ink-soft); }

.text-teal { color: var(--teal); }
.text-orange { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(247, 147, 30, .35); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14, 159, 154, .3); }
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.9); color: var(--teal-dark); }
.btn--ghost:hover { background: #fff; color: var(--orange-dark); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: #fff; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--teal);
  color: #fff;
  font-size: .9rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--sun); }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--sun));
  box-shadow: 0 6px 16px rgba(247,147,30,.35);
}
.logo__mark svg { width: 26px; height: 26px; }
.logo small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
}
.nav__menu a:hover { color: var(--teal); background: var(--teal-soft); }
.nav__menu a.active { color: var(--teal-dark); background: var(--teal-soft); }
.nav__menu .btn { margin-left: 10px; padding: 11px 24px; color: #fff; }
.nav__menu .btn:hover { background: var(--orange-dark); color: #fff; }

.nav__toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--teal-soft);
  cursor: pointer;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--teal-dark);
  transition: transform .3s, top .3s, opacity .3s;
  content: "";
}
.nav__toggle span { top: 22px; }
.nav__toggle span::before { left: 0; top: -7px; }
.nav__toggle span::after { left: 0; top: 7px; }
.nav-open .nav__toggle span { background: transparent; }
.nav-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 115px);
  min-height: calc(100svh - 115px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  /* Fallback while video loads or if it is missing */
  background: linear-gradient(120deg, var(--teal) 0%, var(--sky) 50%, var(--orange) 100%);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(11, 127, 123, .78) 0%, rgba(14, 159, 154, .45) 45%, rgba(247, 147, 30, .25) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 0;
}
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.15); }
.hero h1 span { color: var(--sun); }
.hero p { font-size: 1.2rem; max-width: 580px; opacity: .95; }
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 70px; }

/* Page hero for inner pages */
.page-hero {
  position: relative;
  padding: 100px 0 120px;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, var(--teal) 0%, var(--sky) 55%, var(--orange) 110%);
  overflow: hidden;
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.page-hero::before { width: 340px; height: 340px; top: -120px; left: -80px; }
.page-hero::after { width: 240px; height: 240px; bottom: -60px; right: 6%; background: rgba(255,201,60,.25); }
.page-hero h1 { color: #fff; position: relative; z-index: 1; }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.15rem; opacity: .95; position: relative; z-index: 1; }
.breadcrumb { position: relative; z-index: 1; font-weight: 700; margin-bottom: 12px; font-size: .95rem; }
.breadcrumb a { color: var(--sun); }
.page-hero .hero__wave svg { height: 60px; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---------- Stats strip ---------- */
.stats {
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.stats__inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1;
  margin-bottom: 8px;
}
.stat:nth-child(1) .stat__num { color: var(--orange); }
.stat:nth-child(2) .stat__num { color: var(--teal); }
.stat:nth-child(3) .stat__num { color: var(--coral); }
.stat:nth-child(4) .stat__num { color: var(--sky); }
.stat__label { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.icon-badge svg { width: 32px; height: 32px; }
.icon-badge--orange { background: var(--orange-soft); color: var(--orange); }
.icon-badge--teal { background: var(--teal-soft); color: var(--teal); }
.icon-badge--coral { background: var(--coral-soft); color: var(--coral); }
.icon-badge--sky { background: var(--sky-soft); color: var(--sky); }
.icon-badge--leaf { background: var(--leaf-soft); color: var(--leaf); }
.icon-badge--sun { background: var(--sun-soft); color: #d9a100; }

.card--top-orange { border-top: 5px solid var(--orange); }
.card--top-teal { border-top: 5px solid var(--teal); }
.card--top-coral { border-top: 5px solid var(--coral); }
.card--top-sky { border-top: 5px solid var(--sky); }
.card--top-leaf { border-top: 5px solid var(--leaf); }
.card--top-sun { border-top: 5px solid var(--sun); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- Visual panels (illustrations instead of photos) ---------- */
.visual {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--sun) 0%, var(--orange) 55%, var(--coral) 100%);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.visual--teal { background: linear-gradient(140deg, var(--leaf) 0%, var(--teal) 55%, var(--sky) 100%); }
.visual__art { width: 70%; max-width: 320px; color: #fff; opacity: .95; }
.visual__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}
.visual__badge strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--orange); display: block; line-height: 1; }
.visual__badge span { font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 22px 0 30px; }
.checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 12px;
  font-weight: 600;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e9f9a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Causes / progress ---------- */
.cause {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.cause:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cause__top {
  height: 180px;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
}
.cause__top svg { width: 72px; height: 72px; }
.cause__top--orange { background: linear-gradient(135deg, var(--sun), var(--orange)); }
.cause__top--teal { background: linear-gradient(135deg, var(--leaf), var(--teal)); }
.cause__top--sky { background: linear-gradient(135deg, #7fd3ff, var(--sky)); }
.cause__top--coral { background: linear-gradient(135deg, #ffb199, var(--coral)); }
.cause__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cause__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.cause__body p { color: var(--ink-soft); }
.progress {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width 1.4s ease;
}
.progress__meta { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.progress__meta b { color: var(--ink); }
.cause .btn { margin-top: 20px; align-self: flex-start; }

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 60px;
  overflow: hidden;
  background: linear-gradient(115deg, var(--orange) 0%, var(--sun) 100%);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.cta > * { position: relative; z-index: 1; }
.cta .btn--teal { box-shadow: 0 8px 20px rgba(11,127,123,.35); }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--line);
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  right: 24px;
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
  color: var(--orange-soft);
}
.quote p { font-style: italic; color: var(--ink-soft); position: relative; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar--orange { background: var(--orange); }
.avatar--teal { background: var(--teal); }
.avatar--coral { background: var(--coral); }
.quote__who strong { display: block; font-family: var(--font-head); }
.quote__who span { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--teal), var(--orange));
}
.timeline__item { position: relative; padding-left: 70px; margin-bottom: 36px; }
.timeline__dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--orange);
}
.timeline__item:nth-child(even) .timeline__dot { border-color: var(--teal); }
.timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--orange-dark); }

/* ---------- Team ---------- */
.member { text-align: center; }
.member__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.member__role { color: var(--teal); font-weight: 700; font-size: .95rem; }

/* ---------- Donate ---------- */
.donate-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border: 1px solid var(--line);
}
.toggle {
  display: inline-flex;
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 24px;
}
.toggle button {
  border: 0;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--teal-dark);
}
.toggle button.is-active { background: var(--teal); color: #fff; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.amount {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 16px 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.amount:hover { border-color: var(--orange); }
.amount.is-active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.impact-note {
  background: var(--sun-soft);
  border-left: 5px solid var(--sun);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  margin: 18px 0 24px;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.form-success {
  display: none;
  background: var(--leaf-soft);
  color: #2f7a2f;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
}
.form-success.is-visible { display: block; }

.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.contact-card .icon-badge { margin: 0; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; }
.contact-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 360px;
}
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 24px auto 0;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
}
.newsletter input:focus { outline: none; border-color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--teal-soft) 0%, #d4efed 100%);
  padding: 80px 0 0;
  color: var(--ink);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.site-footer h4 { font-size: 1.1rem; margin-bottom: 18px; }
.site-footer p { color: var(--ink-soft); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--ink-soft); font-weight: 600; }
.footer-links a:hover { color: var(--orange-dark); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--teal);
  box-shadow: var(--shadow);
  transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--orange); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 60px;
  padding: 22px 0;
  border-top: 1px solid rgba(31,58,68,.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Donation payment methods ---------- */
[hidden] { display: none !important; }
.label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: 8px;
}
.pay-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pay-tab {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pay-tab:hover { border-color: var(--teal); }
.pay-tab.is-active { border-color: var(--teal); background: var(--teal-soft); }
.pay-tab__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.pay-tab__icon--usdt { background: #26a17b; }
.pay-panel {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.pay-panel.is-active { display: block; }
.pay-panel__grid { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.pay-panel__lead { font-weight: 700; margin-bottom: 10px; }
.qr {
  width: 166px;
  height: 166px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.qr:empty { display: none; }
.qr img, .qr canvas { width: 150px; height: 150px; }
.copy-row { display: flex; gap: 8px; margin-bottom: 14px; }
.copy-row input {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: .9rem;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.copy-btn {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  font-family: var(--font-head);
  font-weight: 600;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
}
.copy-btn:hover { background: var(--teal-dark); }
.network-badge {
  display: inline-block;
  background: #e6f6f1;
  color: #1b7a5c;
  font-weight: 800;
  font-size: .85rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.pay-warning {
  margin-top: 16px;
  background: var(--coral-soft);
  border-left: 5px solid var(--coral);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .92rem;
}
.pay-receipt { margin: 16px 0 0; font-size: .92rem; color: var(--ink-soft); }
.hint { display: block; font-size: .88rem; color: var(--ink-soft); }
.hint--ok { color: #2f7a2f; font-weight: 700; }

/* ---------- Relief application form ---------- */
.apply-wrap { max-width: 900px; margin: 0 auto; }
.apply-form { display: grid; gap: 24px; }
.form-section {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.form-section legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section legend + * { clear: both; }
.step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--sun));
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.req { color: var(--coral); }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid { display: grid; gap: 12px; }
.choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
.choice-grid--5 { grid-template-columns: repeat(5, 1fr); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box {
  display: block;
  height: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.choice__box strong { display: block; font-family: var(--font-head); }
.choice__box small { color: var(--ink-soft); font-size: .88rem; }
.choice__box--amount { text-align: center; padding: 18px 8px; }
.choice__box--amount strong { font-size: 1.15rem; }
.choice:hover .choice__box { border-color: var(--orange); }
.choice input:checked + .choice__box { border-color: var(--orange); background: var(--orange-soft); }
.choice input:checked + .choice__box strong { color: var(--orange-dark); }
.choice input:focus-visible + .choice__box { box-shadow: 0 0 0 4px var(--teal-soft); }
.inline-radios { display: flex; gap: 24px; }
.inline-radios label, .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.inline-radios input, .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0; }
.check { font-weight: 400; font-size: .95rem; color: var(--ink-soft); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert {
  display: none;
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
  font-size: 1rem;
}
.alert strong { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.alert.is-visible { display: block; }
.alert--success { background: var(--leaf-soft); border: 2px solid #b9e2b9; color: #24602a; }
.alert--error { background: var(--coral-soft); border: 2px solid #ffc4c4; color: #9b2c2c; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(247,147,30,.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 90;
  display: grid;
  place-items: center;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1140px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s ease, opacity .35s, visibility .35s;
  }
  .nav-open .nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a { padding: 13px 16px; }
  .nav__menu .btn { margin: 10px 0 0; justify-content: center; text-align: center; }
}

@media (max-width: 960px) {

  .split { grid-template-columns: 1fr; gap: 40px; }
  .choice-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .visual { min-height: 340px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .topbar__info span:nth-child(2) { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .choice-grid--3 { grid-template-columns: 1fr; }
  .choice-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .choice-grid--5 .choice:last-child { grid-column: 1 / -1; }
  .form-section { padding: 22px 18px; }
  .pay-panel__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pay-panel__grid > div:last-child { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__content { padding: 60px 0 90px; }
  .hero p { font-size: 1.05rem; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .cta { padding: 40px 26px; }
  .donate-box { padding: 26px 20px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .newsletter { flex-direction: column; }
  .page-hero { padding: 70px 0 100px; }
  .stat { padding: 26px 12px; }
}
