:root {
  --teal-50: #effcf9;
  --teal-100: #d4f5ee;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-900: #0b3d3a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --coral-500: #f0643c;
  --coral-600: #dc4d26;
  --cream: #fffaf2;
  --ink: #1d2a2f;
  --ink-soft: #4a5a60;
  --line: #e7e1d6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 61, 58, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(15, 61, 58, 0.35);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--teal-700); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; color: var(--teal-900); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--teal-700); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; }
.btn-primary { --bg: var(--teal-700); }
.btn-primary:hover { --bg: var(--teal-600); }
.btn-alert { --bg: var(--coral-500); }
.btn-alert:hover { --bg: var(--coral-600); }
.btn-light { --bg: #fff; --fg: var(--teal-900); }
.btn-ghost { --bg: transparent; --fg: var(--teal-700); border-color: var(--teal-700); }
.btn-ghost:hover { --bg: var(--teal-50); }
.btn-lg { font-size: 1.08rem; padding: 0.95em 1.7em; }
.btn-small { font-size: 0.92rem; padding: 0.55em 1.05em; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, 0.3); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font: 700 1.45rem/1 var(--font-display); color: var(--teal-900); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.site-nav > a:not(.btn):hover { color: var(--teal-700); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(80vh, 720px);
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 85% 50%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 36, 34, 0.78) 0%, rgba(8, 36, 34, 0.5) 38%, rgba(8, 36, 34, 0) 62%),
    linear-gradient(0deg, rgba(8, 36, 34, 0.6) 0%, rgba(8, 36, 34, 0) 45%);
}
.hero-content { padding: 120px 0 90px; color: #fff; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero-lead { font-size: clamp(1.08rem, 1.8vw, 1.3rem); max-width: 34ch; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font: 700 0.8rem/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow-light { color: var(--amber-400); }

/* ---------- Promise strip ---------- */
.promise { background: var(--teal-900); color: #fff; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise-item { padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.promise-item:first-child { border-left: 0; }
.promise-big { font: 700 1.9rem/1.1 var(--font-display); color: var(--amber-400); }
.promise-text { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-tint { background: var(--teal-50); }
.section-dark { background: var(--teal-900); color: rgba(255, 255, 255, 0.9); }
.section-dark h2 { color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-form { align-items: start; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split-copy > p { color: var(--ink-soft); }
.section-dark .split-copy > p { color: rgba(255, 255, 255, 0.82); }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.inline-photo { margin: 28px 0 0; }
.inline-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); padding-bottom: 22px;
}
.step figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.step:hover figure img { transform: scale(1.05); }
.step-num {
  position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber-400); color: var(--teal-900);
  font: 700 1.1rem/1 var(--font-display); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.step h3 { margin: 20px 20px 8px; }
.step p { margin: 0 20px; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Forms ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.form { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 16px; color: var(--ink); }
.form h3 { margin-bottom: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.form .optional { font-weight: 400; color: var(--ink-soft); }
.form input,
.form select,
.form textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-sans); color: var(--ink);
  padding: 0.75em 0.9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfbf8; transition: border-color 0.15s, box-shadow 0.15s;
}
.form textarea { resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18); background: #fff; }
.form .invalid { border-color: var(--coral-500); box-shadow: 0 0 0 4px rgba(240, 100, 60, 0.14); }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.form label.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal-700); flex: none; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; font-size: 0.95rem; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status.ok { color: var(--teal-700); }
.form-status.err { color: var(--coral-600); }

/* ---------- Lost tips ---------- */
.tips { counter-reset: tip; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tips li { counter-increment: tip; position: relative; padding-left: 44px; color: rgba(255, 255, 255, 0.85); }
.tips li strong { color: #fff; }
.tips li::before {
  content: counter(tip); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral-500); color: #fff; font-weight: 700; font-size: 0.9rem;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.g-item {
  padding: 0; border: 0; cursor: zoom-in; border-radius: var(--radius); overflow: hidden;
  background: var(--teal-100); box-shadow: var(--shadow);
}
.g-item:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6, 22, 21, 0.92);
  display: grid; place-items: center; padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- Donate ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tier { position: relative; padding: 34px 28px; display: flex; flex-direction: column; text-align: center; }
.tier p { color: var(--ink-soft); flex: 1; }
.tier-icon { font-size: 2.4rem; margin-bottom: 10px; }
.tier-featured { outline: 3px solid var(--teal-500); transform: translateY(-8px); }
.tier-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--amber-400); color: var(--teal-900); padding: 4px 14px; border-radius: 999px;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; white-space: nowrap;
}
.volunteer { margin-top: 32px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.volunteer h3 { margin-bottom: 6px; }
.volunteer p { margin: 0; color: var(--ink-soft); }
.volunteer .btn { flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: 0 4px 16px -10px rgba(15, 61, 58, 0.25); border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--teal-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal-700); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact > div > p { color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255, 255, 255, 0.75); padding: 56px 0 26px; font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-inner > div { max-width: 420px; }
.footer-brand { font: 700 1.5rem/1 var(--font-display); color: #fff; margin-bottom: 12px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--amber-400); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 36px; padding-top: 20px; font-size: 0.87rem; }
.footer-legal p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.tier-featured.reveal.in { transform: translateY(-8px); }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .step figure img, .g-item img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.2s ease;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 8px; }
  .split, .contact { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .tier-featured, .tier-featured.reveal.in { transform: none; }
  .volunteer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 640px; }
  .hero-bg { object-position: 66% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 36, 34, 0.9) 0%, rgba(8, 36, 34, 0.55) 55%, rgba(8, 36, 34, 0.15) 100%); }
  .hero-content { padding: 100px 0 56px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 4px; }
  .promise-item:first-child { border-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 10px; }
  .g-wide { grid-column: span 2; }
}
