:root {
  --ink: #163b63;
  --text: #283640;
  --muted: #66747d;
  --paper: #fffdf8;
  --cream: #fff4df;
  --teal: #139aa0;
  --teal-dark: #08777d;
  --aqua: #72c8c7;
  --green: #73a942;
  --coral: #ef6672;
  --yellow: #f6b21a;
  --blue: #3f83c5;
  --line: rgba(22, 59, 99, 0.13);
  --shadow: 0 18px 50px rgba(22, 59, 99, 0.12);
  --radius: 26px;
  --radius-small: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: ui-rounded, "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 14px;
}

.brand span { max-width: 260px; line-height: 1.2; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  border-radius: 10px;
}

.nav-toggle svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  padding: 10px 13px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: rgba(19, 154, 160, 0.1);
  color: var(--teal-dark);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 8px 20px rgba(239, 102, 114, 0.25);
}

.nav-links .nav-cta:hover { background: #dc5260; color: #fff; }
.nav-links.simple-nav { display: flex; position: static; box-shadow: none; border: 0; padding: 0; }

main { overflow: hidden; }

.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

.hero {
  position: relative;
  padding: 72px 0 82px;
  background:
    radial-gradient(circle at 92% 12%, rgba(246,178,26,.24) 0 6%, transparent 6.2%),
    radial-gradient(circle at 83% 28%, rgba(239,102,114,.18) 0 8%, transparent 8.2%),
    linear-gradient(145deg, #fffdf8 5%, #eefafa 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -34px;
  height: 68px;
  background: var(--paper);
  border-radius: 50% 50% 0 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 66px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 4px;
  background: var(--yellow);
  border-radius: 99px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.12; margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.75rem, 6vw, 5.4rem); letter-spacing: -.045em; }
h2 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.35rem; }

.hero h1 .green { color: var(--green); }
.hero h1 .coral { color: var(--coral); }

.lead { max-width: 720px; font-size: clamp(1.08rem, 2vw, 1.28rem); color: #465660; }
.hero .lead { max-width: 650px; margin-bottom: 30px; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row.centered { justify-content: center; margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--coral); box-shadow: 0 10px 24px rgba(239,102,114,.25); }
.button-primary:hover { background: #dc5260; }
.button-secondary { color: var(--ink); background: #fff; border-color: rgba(22,59,99,.14); box-shadow: 0 8px 20px rgba(22,59,99,.07); }
.button-teal { color: #fff; background: var(--teal); box-shadow: 0 10px 24px rgba(19,154,160,.24); }
.button-small { min-height: 42px; padding: 9px 16px; font-size: .95rem; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.logo-card {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 34px;
  background: #fff;
  border: 1px solid rgba(22,59,99,.08);
  border-radius: 42% 58% 44% 56% / 54% 40% 60% 46%;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.logo-card img { width: 100%; border-radius: 24px; }
.float-dot { position: absolute; border-radius: 50%; }
.dot-a { width: 75px; height: 75px; top: 3%; right: 0; background: var(--yellow); }
.dot-b { width: 48px; height: 48px; bottom: 9%; left: 4%; background: var(--coral); }
.dot-c { width: 26px; height: 26px; top: 25%; left: 0; background: var(--blue); }

.section { padding: 90px 0; }
.section-soft { background: #eff9f8; }
.section-cream { background: var(--cream); }
.section-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 62px; align-items: center; }
.intro-quote {
  padding: 38px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 9px solid var(--green);
}
.intro-quote p { margin: 0; color: var(--ink); font-size: 1.48rem; font-weight: 750; line-height: 1.45; }
.intro-quote small { display: block; margin-top: 16px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22,59,99,.07);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--teal);
  border-radius: 22px 18px 24px 16px;
  transform: rotate(-3deg);
}
.card-icon svg { width: 32px; height: 32px; transform: rotate(3deg); }
.card:nth-child(2) .card-icon { background: var(--yellow); }
.card:nth-child(3) .card-icon { background: var(--coral); }
.card p { margin-bottom: 0; color: var(--muted); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(22,59,99,.08);
}
.project-visual {
  min-height: 195px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
}
.project:nth-child(2) .project-visual { background: linear-gradient(135deg, var(--yellow), #ffcf64); }
.project:nth-child(3) .project-visual { background: linear-gradient(135deg, var(--coral), #f59da5); }
.project-visual svg { width: 88px; height: 88px; opacity: .92; }
.project-body { flex: 1; padding: 26px; }
.status {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  color: var(--teal-dark);
  background: rgba(19,154,160,.11);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status.done { color: #8e3a43; background: rgba(239,102,114,.12); }
.project-body p { color: var(--muted); }
.project-title { font-size: 1.65rem; }
.project-cta { margin-top: 42px; text-align: center; }

.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.support-card {
  padding: 38px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}
.support-card.donate { background: linear-gradient(145deg, #fff, #fff4f5); }
.support-card.join { background: linear-gradient(145deg, #fff, #edfafa); }
.support-card p { color: var(--muted); }
.donate-flex { display: flex; align-items: center; gap: 26px; }
.qr { width: 145px; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }

.page-hero { padding: 70px 0 54px; background: linear-gradient(145deg, #eefafa, #fffdf8); text-align: center; }
.page-hero .lead { margin: 0 auto; }

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}
.form-card { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-section { margin: 0 0 34px; padding: 0 0 32px; border: 0; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section legend { width: 100%; margin-bottom: 22px; color: var(--ink); font-size: 1.35rem; font-weight: 850; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-full { grid-column: 1 / -1; }
label { display: block; color: var(--ink); font-weight: 750; }
.label-note { color: var(--muted); font-size: .84rem; font-weight: 500; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #b9c7cc;
  border-radius: 12px;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(19,154,160,.12); }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 12px;
  text-align: center;
  background: #f8fbfb;
  border: 2px solid transparent;
  border-radius: 15px;
  cursor: pointer;
}
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice:has(input:checked) { border-color: var(--teal); background: #eaf8f7; }
.choice strong { font-size: 1.28rem; color: var(--ink); }
.check-row { display: flex; align-items: flex-start; gap: 11px; margin: 14px 0; font-weight: 550; }
.check-row input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
.form-note { padding: 16px 18px; background: var(--cream); border-radius: 14px; color: #654c21; font-size: .93rem; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.sidebar { position: sticky; top: 104px; }
.sidebar-box { padding: 26px; background: #eff9f8; border-radius: var(--radius); }
.sidebar-box + .sidebar-box { margin-top: 18px; background: var(--cream); }
.sidebar-box ul { margin: 0; padding-left: 20px; }
.sidebar-box p:last-child { margin-bottom: 0; }
.hp-field { position: absolute !important; left: -9999px !important; }

.legal { max-width: 840px; }
.legal h2 { margin-top: 44px; font-size: 1.7rem; }
.legal h3 { margin-top: 30px; font-size: 1.2rem; }
.legal p, .legal li { color: #45535c; }
.legal-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-small); }
.legal-card > :first-child { margin-top: 0; }
.download-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }

.site-footer { padding: 54px 0 28px; color: #e9f4f5; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 36px; }
.footer-logo { width: 92px; margin-bottom: 15px; background: #fff; border-radius: 16px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #e9f4f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 7px 0; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: #bdd1d4; font-size: .9rem; }
.footer-bottom.compact { margin-top: 0; }

.success, .error { max-width: 760px; margin: 50px auto; padding: 30px; border-radius: var(--radius); }
.success { background: #eaf8f1; border: 1px solid #a9d9bc; }
.error { background: #fff0f1; border: 1px solid #efb2b7; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 82px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { justify-content: center; }
  .hero-grid, .intro-grid, .form-shell { grid-template-columns: 1fr; }
  .hero-art { min-height: 400px; }
  .cards, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
}

@media (max-width: 700px) {
  .brand span { display: none; }
  .hero { padding-top: 48px; }
  .hero-grid { gap: 28px; }
  .hero-art { min-height: 330px; }
  .logo-card { width: min(86%, 360px); padding: 22px; }
  .section { padding: 66px 0; }
  .cards, .project-grid, .support-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: auto; }
  .donate-flex { align-items: flex-start; flex-direction: column; }
  .form-card, .support-card { padding: 24px; }
  .footer-grid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
