/* ============================================================
   A Sibling's Love Foundation
   Founded in loving memory of Gavin Springsteen (2016–2026) — "Gavin Strong"
   Modern, foundation-forward refresh.
   Palette + scale live in :root — change once, updates sitewide.
   ============================================================ */

:root {
  --navy: #14304c;
  --indigo: #1f4d7a;     /* hero gradient depth */
  --gold: #ffc233;       /* sunny, hopeful */
  --gold-soft: #ffe7a6;
  --teal: #14a597;       /* fresh secondary accent */
  --teal-soft: #d4f3ef;
  --red: #d62f2f;        /* Gavin's favorite color — woven throughout */
  --red-soft: #fbe2e0;
  --cream: #fcfaf6;
  --cream-2: #f5f1e9;
  --card: #ffffff;
  --ink: #1d2935;
  --ink-soft: #5b6b79;
  --line: #ece6da;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 48, 76, .06);
  --shadow: 0 14px 40px rgba(20, 48, 76, .10);
  --shadow-lg: 0 28px 70px rgba(20, 48, 76, .18);
  --maxw: 1160px;

  --head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;   /* heartfelt handwritten accent */
}

/* Handwritten accent — for warm, personal touches (à la Rally for Reid / ALSF) */
.script { font-family: var(--hand); font-weight: 700; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: 1.02rem;
  text-decoration: none; padding: 15px 30px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(255,194,51,.4); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(255,194,51,.5); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(20,165,151,.32); }
.btn-teal:hover { background: #0f8d80; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(214,47,47,.32); }
.btn-red:hover { background: #b81f1f; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0e2438; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 246, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(140deg, var(--gold), var(--red));
  display: grid; place-items: center; color: #fff; font-family: var(--head);
  font-weight: 700; font-size: 1.2rem; box-shadow: var(--shadow-sm); flex: none;
  transform: rotate(-4deg);
}
.brand b { font-family: var(--head); color: var(--navy); font-size: 1.08rem; line-height: 1.05; display: block; letter-spacing: -.01em; }
.brand span { font-size: .76rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; flex: none; }
.feature-logo { width: 190px; height: auto; display: block; margin: 0 auto 30px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-family: var(--head);
  font-weight: 500; font-size: .96rem; padding: 9px 14px; border-radius: 11px;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.nav-links a.cta { background: var(--gold); color: var(--navy); }
.nav-links a.cta:hover { background: var(--gold-soft); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 3px; transition: .2s; }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, var(--indigo) 0%, var(--navy) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 420px at 88% -5%, rgba(255,194,51,.30), transparent 60%),
    radial-gradient(620px 420px at -5% 110%, rgba(214,47,47,.30), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 84px 0;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.22rem; color: rgba(255,255,255,.92); max-width: 40ch; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; letter-spacing: .04em;
  font-size: .82rem; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { margin-top: 22px; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; color: var(--gold-soft); }

/* Photo frame */
.photo-frame {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 7px solid rgba(255,255,255,.92);
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--gold-soft), var(--red));
  display: grid; place-items: center; text-align: center;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame .placeholder { color: var(--navy); padding: 24px; font-family: var(--head); font-weight: 600; }
.photo-frame .placeholder small { display: block; font-weight: 400; opacity: .8; margin-top: 8px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 56px 0; gap: 32px; }
  .hero p.lead { max-width: none; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 52px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.14rem; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  font-size: .8rem; color: var(--red); margin-bottom: 12px;
}
.band-cream { background: var(--cream); }
.band-cream2 { background: var(--cream-2); }
.band-white { background: #fff; }
.band-navy { background: linear-gradient(150deg, var(--indigo), var(--navy)); color: #fff; }
.band-navy h2, .band-navy h3, .band-navy .eyebrow { color: #fff; }
.band-navy .eyebrow { color: var(--gold); }
.band-gold { background: linear-gradient(135deg, var(--gold) 0%, #ffd35e 100%); position: relative; overflow: hidden; }
.band-gold h2 { color: var(--navy); }
/* Playful organic "blobs" — an ALSF-style sunny texture */
.band-gold::before, .band-gold::after {
  content: ""; position: absolute; border-radius: 46% 54% 60% 40% / 50% 44% 56% 50%;
  background: rgba(255,255,255,.22); pointer-events: none;
}
.band-gold::before { width: 280px; height: 280px; top: -90px; left: -60px; }
.band-gold::after { width: 220px; height: 220px; bottom: -80px; right: -40px; border-radius: 56% 44% 38% 62% / 46% 58% 42% 54%; }
.band-gold .wrap { position: relative; z-index: 1; }
.band-teal { background: linear-gradient(135deg, var(--teal) 0%, #1bb6a7 100%); color:#fff; }
.band-teal h2 { color: #fff; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 18px; background: var(--gold-soft); color: var(--navy);
}
.card .icon.teal { background: var(--teal-soft); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 32px; } }
.stat .num { font-family: var(--head); font-weight: 700; font-size: 2.9rem; color: var(--gold); line-height: 1; letter-spacing: -.02em; }
.stat .label { margin-top: 8px; }
.band-navy .stat .label { color: rgba(255,255,255,.82); }

/* ---------- Inspiration / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.chip {
  font-family: var(--head); font-weight: 500; font-size: .92rem;
  background: var(--teal-soft); color: #0f6f66; padding: 7px 16px; border-radius: 999px;
}
.band-navy .chip { background: rgba(255,255,255,.14); color:#fff; }

/* ---------- Quote ---------- */
.quote {
  max-width: 820px; margin: 0 auto; text-align: center;
  font-family: var(--head); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.4; color: var(--navy);
}
.quote .mark { color: var(--gold); font-size: 2.4em; line-height: 0; vertical-align: -.35em; margin-right: .05em; }
.quote cite { display: block; margin-top: 20px; font-size: .95rem; font-style: normal; color: var(--ink-soft); font-weight: 400; }

/* ---------- Story / memory ---------- */
.memorial-banner { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; font-family: var(--head); }
.memorial-banner .dates {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color:#fff;
  border-radius: 999px; padding: 9px 22px; font-weight: 600;
}
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.13rem; }
.note {
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 16px 20px; color: var(--navy); font-size: .98rem;
}
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .ph {
  aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-soft), #f7d2cb); color: var(--navy);
  font-family: var(--head); font-size: .85rem; text-align: center; padding: 10px;
  border: 2px dashed rgba(20,48,76,.22);
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-sm); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- CTA strip ---------- */
.cta-strip { text-align: center; }
.cta-strip .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Forms ---------- */
.form { max-width: 620px; margin: 0 auto; }
.form label { display: block; font-family: var(--head); font-weight: 600; color: var(--navy); margin: 18px 0 6px; }
.form input, .form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  font: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--teal-soft); border-color: var(--teal); }
.form textarea { min-height: 150px; resize: vertical; }
.form-status { max-width: 620px; margin: 18px auto 0; font-family: var(--head); font-weight: 600; font-size: 1.02rem; }

/* Multi-section / care-package request form */
.form .form-section {
  font-family: var(--head); color: var(--navy); font-size: 1.18rem; font-weight: 600;
  margin: 34px 0 4px; padding-top: 26px; border-top: 1px solid var(--line);
}
.form .form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.form .hint { color: var(--ink-soft); font-size: .92rem; margin: 2px 0 8px; }
.form .check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-family: var(--body); font-weight: 400; color: var(--ink); cursor: pointer; }
.form .check input { width: auto; margin: 3px 0 0; }
.form fieldset.child {
  border: 1px solid var(--line); border-radius: 16px; padding: 8px 22px 22px; margin: 16px 0; background: #fff;
}
.form fieldset.child legend { font-family: var(--head); font-weight: 700; color: var(--navy); padding: 0 10px; }
.link-remove { background: none; border: 0; color: var(--red); font-family: var(--head); font-weight: 600; cursor: pointer; padding: 10px 0 0; font-size: .9rem; }
#add-child { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0e2438; color: rgba(255,255,255,.78); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 22px;
  font-size: .86rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: rgba(255,255,255,.6); align-items: center;
}
.footer-bottom span:last-child { font-family: var(--hand); font-weight: 700; font-size: 1.25rem; color: var(--gold-soft); }

/* ---------- Utility ---------- */
.pill {
  display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 5px 14px; border-radius: 999px; font-size: .85rem; font-family: var(--head);
}
.lift { box-shadow: var(--shadow-lg); }
