:root {
  --navy: #12286b;
  --blue: #1f5fd6;
  --sky: #e8f1ff;
  --red: #e0262f;
  --yellow: #ffcf1f;
  --ink: #1a2238;
  --muted: #55607a;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(18, 40, 107, 0.14);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3 {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

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

a { color: var(--blue); }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--yellow); color: var(--navy); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--yellow);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.brand img { height: 92px; width: auto; }

.nav-toggle { display: none; }
.nav-burger {
  display: none; cursor: pointer; padding: 0.5rem 0.8rem;
  border: 2px solid var(--navy); border-radius: 12px;
  font-family: "Baloo 2", sans-serif; font-weight: 700; color: var(--navy);
}
.nav-links { display: flex; gap: 0.3rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.55rem 0.95rem; border-radius: 999px;
  text-decoration: none; color: var(--navy); font-weight: 800;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sky); }
.nav-links a.cta { background: var(--red); color: var(--white); }
.nav-links a.cta:hover { background: #bd1a23; }

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; }
  .nav-burger { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 0.8rem; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .brand img { height: 64px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 999px;
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.15rem;
  text-decoration: none; border: 3px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-red { background: var(--red); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px;
  background: var(--white); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; padding-bottom: 2rem; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: 1.3rem; max-width: 36ch; }
.hero-art { background: var(--white); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-art img { border-radius: 14px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { transform: none; }
}

/* ---------- Sections ---------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.band-sky { background: var(--sky); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy a:not(.btn) { color: var(--yellow); }
.band-navy a.btn-yellow { color: var(--navy); }
.center { text-align: center; }
.narrow { max-width: 62ch; margin-inline: auto; }
.eyebrow {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-family: "Baloo 2", sans-serif; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.85rem;
  padding: 0.2rem 0.9rem; border-radius: 999px; margin-bottom: 0.8rem;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow); border-top: 8px solid var(--yellow);
}
.card:nth-child(2) { border-top-color: var(--red); }
.card:nth-child(3) { border-top-color: var(--blue); }
.card:nth-child(4) { border-top-color: var(--navy); }
.card .num {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy); color: var(--yellow); font-family: "Baloo 2", sans-serif;
  font-weight: 800; font-size: 1.5rem; margin-bottom: 0.8rem;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.photo { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: var(--white); }
.photo figcaption { padding: 0.7rem 1rem; font-size: 0.95rem; color: var(--muted); }
figure { margin: 0; }

.big-quote {
  font-family: "Baloo 2", sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25; max-width: 24ch; margin-inline: auto;
}
.big-quote span { color: var(--yellow); }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 2rem; position: relative; margin-bottom: 0.6rem; }
.ticks li::before { content: "\2605"; position: absolute; left: 0; color: var(--red); font-size: 1.2rem; }
.band-navy .ticks li::before { color: var(--yellow); }

.partner {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.6rem; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); margin-bottom: 1.4rem;
}
.partner .logo-box { background: var(--sky); border-radius: 16px; padding: 1rem; display: grid; place-items: center; min-height: 140px; text-align: center; font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--navy); font-size: 1.3rem; line-height: 1.2; }
.partner .logo-box img { max-height: 120px; max-width: 100%; width: auto; height: auto; margin-inline: auto; }
.partner .logo-box--white { background: var(--white); border: 3px solid var(--sky); }
.partner--feature { grid-template-columns: 240px 1fr; }
.partner--feature .logo-box { min-height: 180px; }
.partner--feature .logo-box img { max-height: 170px; width: 100%; }
@media (max-width: 640px) { .partner, .partner--feature { grid-template-columns: 1fr; } }

.donors { text-align: center; margin-top: 2.4rem; }
.donors > p { max-width: 60ch; margin-inline: auto; }
.donor-logos { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; }
.donor { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.donor img { width: 100%; height: 200px; object-fit: cover; display: block; }
.donor--light img { object-fit: contain; padding: 1rem; }
.donor--dark img { object-fit: contain; padding: 0.8rem; background: #0b0b0d; }
.donor span { font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--navy); padding: 0.7rem 1rem; }

.credit-big { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(5rem, 18vw, 10rem); line-height: 0.9; color: var(--red); text-align: center; }
.credit-big span { display: block; font-size: 0.22em; color: var(--navy); margin-top: 0.6rem; }
.credit-steps { padding-left: 1.3rem; margin: 1rem 0; }
.credit-steps li { margin-bottom: 0.5rem; padding-left: 0.3rem; }
.credit-steps li::marker { color: var(--red); font-weight: 800; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }
.code-callout { margin: 2.5rem auto 0; max-width: 560px; text-align: center; background: var(--sky); border: 3px dashed var(--red); border-radius: var(--radius); padding: 1.8rem 1.4rem; }
.code-callout p { margin: 0 0 0.6rem; }
.code-label { font-weight: 700; color: var(--navy); }
.code { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(2rem, 7vw, 3rem); letter-spacing: 0.08em; color: var(--red); line-height: 1.1; user-select: all; }

.notice {
  border: 3px dashed var(--yellow); border-radius: var(--radius); padding: 1.4rem 1.6rem;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #dbe5ff; padding: 2.5rem 0 2rem; border-top: 6px solid var(--yellow); }
.site-footer .foot { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--yellow); }
.site-footer img { height: 70px; width: auto; background: var(--white); border-radius: 14px; padding: 4px 8px; }
.small { font-size: 0.9rem; opacity: 0.85; margin-top: 1.2rem; }

:focus-visible { outline: 4px solid var(--red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Card donation: drop-off finder & postal ---------- */
button.btn { cursor: pointer; font-family: "Baloo 2", sans-serif; }
button.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.dropoff, .postal {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.3rem, 4vw, 2.2rem); margin-top: 2rem;
}
.dropoff { border-top: 8px solid var(--yellow); }
.postal { border-top: 8px solid var(--red); max-width: 720px; margin-inline: auto; text-align: center; }
.dropoff h3, .postal h3 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); }

.dropoff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.dropoff-grid > * { min-width: 0; }
@media (max-width: 820px) { .dropoff-grid { grid-template-columns: minmax(0, 1fr); } }

.dropoff-map {
  height: 440px; border-radius: 16px; overflow: hidden; border: 3px solid var(--sky);
  background: var(--sky); z-index: 0;
}
@media (max-width: 820px) { .dropoff-map { height: 320px; } }

.finder { margin-top: 1.4rem; background: var(--sky); border-radius: 16px; padding: 1.1rem 1.2rem; }
.finder label { display: block; font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-bottom: 0.5rem; }
.finder-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.finder input {
  flex: 1 1 180px; min-width: 0; font: inherit; font-weight: 700; text-transform: uppercase;
  padding: 0.7rem 1rem; border: 3px solid var(--navy); border-radius: 999px; color: var(--ink); background: var(--white);
}
.finder input::placeholder { text-transform: none; font-weight: 400; color: var(--muted); }
.finder .btn { padding: 0.6rem 1.5rem; }

.finder-out:empty { display: none; }
.finder-out { margin-top: 1rem; }
.finder-msg { margin: 0; font-weight: 700; color: var(--navy); }
.finder-msg--error { color: var(--red); }
.finder-result { border-left: 6px solid var(--red); padding: 0.3rem 0 0.3rem 1rem; }
.finder-result p { margin: 0 0 0.4rem; }
.finder-addr { color: var(--muted); }
.finder-far { margin-top: 0.8rem !important; font-size: 0.95rem; }

.shop-list-title { font-family: "Baloo 2", sans-serif; color: var(--navy); font-size: 1.25rem; margin: 2rem 0 0.8rem; }
.shop-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.shop { background: var(--sky); border-radius: 16px; padding: 1rem 1.2rem; }
.shop h4 { font-family: "Baloo 2", sans-serif; color: var(--navy); font-size: 1.2rem; margin: 0 0 0.3rem; }
.shop address { font-style: normal; line-height: 1.5; margin-bottom: 0.6rem; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-weight: 800; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: var(--blue); text-decoration: underline; cursor: pointer; }

.postal-address { margin: 1.2rem auto 0; display: inline-block; background: var(--sky); border: 3px dashed var(--red); border-radius: 16px; padding: 1.1rem 1.8rem; text-align: left; }
.postal-address:focus { outline: none; }
.postal-label { margin: 0 0 0.3rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.postal-address address { font-style: normal; font-size: 1.15rem; line-height: 1.55; user-select: all; }

/* Map pins */
.map-pin { background: none; border: 0; }
.map-pin span {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  border: 3px solid var(--white); box-shadow: 0 4px 10px rgba(18, 40, 107, 0.35);
  font-family: "Baloo 2", sans-serif; font-weight: 800;
}
.map-pin--shop span { background: var(--red); color: var(--yellow); font-size: 1.2rem; }
.map-pin--you span { background: var(--navy); color: var(--white); font-size: 0.8rem; }
.map-pin span b { transform: rotate(45deg); line-height: 1; font-weight: 800; }
.map-popup { display: grid; gap: 0.2rem; font-family: "Nunito", sans-serif; font-size: 0.95rem; }
.map-popup strong { color: var(--navy); font-family: "Baloo 2", sans-serif; font-size: 1.1rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--navy); }

/* ---------- Donation terms page ---------- */
.terms { max-width: 760px; }
.terms h2 { margin-top: 2.2rem; }
.terms h2:first-child { margin-top: 0; }
.terms-thanks { margin-top: 2.8rem; background: var(--sky); border-top: 8px solid var(--red); border-radius: var(--radius); padding: 1.8rem 1.6rem; text-align: center; }
.terms-thanks h2 { margin-top: 0; }
