/* One Life At A Time — shared stylesheet
   Warm, friendly, interactive theme for an education nonprofit */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --ink: #25304a;          /* warm dark for text */
  --navy: #1b3a8f;         /* deep brand blue (headings, footer) */
  --navy-2: #21459e;
  --slate: #4d5a73;
  --muted: #7382a0;
  --line: #ece3d8;         /* warm hairline */
  --bg: #fffdf9;           /* warm off-white */
  --bg-soft: #fcf6ec;      /* cream (keeps the warmth) */
  --bg-soft-2: #e9f0fd;    /* soft blue */
  --accent: #2b5fd0;       /* friendly brand blue */
  --accent-dark: #1f47a8;
  --coral: #e23b34;        /* brand red / donate pop */
  --coral-dark: #c52d27;
  --sun: #ffb338;          /* sunny amber keeps it friendly */
  --sky: #5b9df9;          /* light playful blue */
  --amber: #e23b34;        /* alias kept for existing markup -> brand red */
  --white: #ffffff;
  --shadow: 0 2px 6px rgba(19,78,74,.06), 0 14px 34px rgba(19,78,74,.08);
  --shadow-hover: 0 10px 20px rgba(19,78,74,.10), 0 22px 50px rgba(19,78,74,.14);
  --radius: 20px;
  --maxw: 1140px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--mint { background: var(--bg-soft-2); }
.center { text-align: center; }
.lead { font-size: 1.22rem; color: var(--slate); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--accent); margin-bottom: .6em; font-family: var(--font); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,249,.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); font-size: 1.05rem; font-family: var(--display); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 48px; width: auto; max-width: 250px; object-fit: contain; display: block; }
.brand-logo.logo-missing { display: none; }
.brand-text { display: none; align-items: center; gap: 12px; }
.brand-logo.logo-missing + .brand-text { display: flex; }
@media (max-width: 640px) { .brand-logo { height: 38px; max-width: 200px; } }
.brand .mark {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: linear-gradient(135deg, var(--sun), var(--coral));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 6px 14px rgba(255,111,89,.35); transform: rotate(-4deg);
  font-family: var(--font);
}
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .01em; font-family: var(--font); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active:not(.btn) { color: var(--accent); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 800; font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease; font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 18px rgba(15,158,146,.3); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 10px 22px rgba(15,158,146,.4); }
.btn--amber { background: var(--coral); color: #fff; box-shadow: 0 8px 18px rgba(255,111,89,.35); }
.btn--amber:hover { background: var(--coral-dark); color: #fff; box-shadow: 0 10px 24px rgba(255,111,89,.45); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #2b5fd0 0%, #1f47a8 55%, #15307a 100%);
}
.hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,179,56,.5), rgba(255,179,56,0) 70%);
  top: -120px; right: -80px; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(226,59,52,.45), rgba(226,59,52,0) 70%);
  bottom: -160px; left: -100px; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.28rem; max-width: 54ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.page-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #2b5fd0, #15307a); color: #fff; }
.page-hero::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,56,.45), rgba(255,179,56,0) 70%);
  top: -120px; right: -60px;
}
.page-hero .container { padding-top: 66px; padding-bottom: 66px; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.18rem; max-width: 60ch; margin: 0; }
.crumb { color: rgba(255,255,255,.75); font-size: .85rem; margin-bottom: 1em; }
.crumb a { color: rgba(255,255,255,.9); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.stat .num { font-family: var(--display); font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat:nth-child(2) .num { color: var(--coral); }
.stat:nth-child(3) .num { color: var(--sun); }
.stat:nth-child(4) .num { color: var(--sky); }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: 10px; font-weight: 600; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card .icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--bg-soft-2); color: var(--accent);
  transition: transform .2s ease;
}
.card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); margin-bottom: 0; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--accent-dark); }
.card a.more:hover { text-decoration: none; color: var(--coral-dark); }

/* colorful top accent on program/feature cards via modifier */
.card--accent { border-top: 5px solid var(--accent); }
.card--coral { border-top: 5px solid var(--coral); }
.card--sun  { border-top: 5px solid var(--sun); }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.media {
  border-radius: var(--radius); min-height: 320px; box-shadow: var(--shadow);
  background: linear-gradient(135deg, #d7f0ea, #cfe7fb);
  display: grid; place-items: center; color: var(--slate); text-align: center; padding: 24px;
  border: 2px dashed #b7d8d0; position: relative;
}
.media .placeholder-note { font-size: .9rem; max-width: 28ch; font-weight: 600; }
.media--art { border: 1px solid var(--line); background: linear-gradient(135deg, var(--bg-soft-2), #ffffff); padding: 22px; overflow: hidden; }
.media--art svg { width: 100%; height: auto; max-height: 340px; display: block; }

/* Photos */
.photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.photo--tall { aspect-ratio: 4 / 3; object-fit: cover; }
.photo--wide { aspect-ratio: 16 / 9; object-fit: cover; }
.photo-cap { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.team-photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; aspect-ratio: 21 / 9; object-fit: cover; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); transition: transform .2s ease; }
.gallery img:hover { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--slate); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/15px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/15px no-repeat;
}

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: 28px; padding: 52px; text-align: center;
}
.cta::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,179,56,.4), rgba(255,179,56,0) 70%);
  top: -120px; right: -60px; pointer-events: none;
}
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.92); max-width: 52ch; margin: 0 auto 24px; position: relative; }
.cta .btn { position: relative; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 700; color: var(--navy); font-size: .92rem; margin-bottom: 4px; display: block; }
.form input, .form textarea {
  width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-soft);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); background: #fff; }

.info-block { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 3px; }
.info-item div { color: var(--slate); }
.info-item strong { color: var(--navy); display: block; }

/* ---------- Notice ---------- */
.notice {
  border: 1px solid var(--line); border-left: 5px solid var(--sun);
  background: var(--bg-soft); border-radius: 12px; padding: 18px 22px; color: var(--slate); font-size: .95rem;
}
.notice strong { color: var(--navy); }

/* ---------- Impact calculator (donate) ---------- */
.calc { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); }
.calc input[type=range]{ -webkit-appearance:none; width:100%; height:10px; border-radius:999px;
  background:linear-gradient(90deg,var(--accent) 0%,var(--accent) 50%,var(--bg-soft-2) 50%); outline:none; margin:18px 0 10px; }
.calc input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:30px; height:30px; border-radius:50%;
  background:var(--coral); border:4px solid #fff; box-shadow:0 3px 10px rgba(255,111,89,.5); cursor:pointer; }
.calc input[type=range]::-moz-range-thumb{ width:26px; height:26px; border-radius:50%; background:var(--coral); border:4px solid #fff; cursor:pointer; }
.calc .calc-amount { font-family:var(--display); font-size:2.6rem; font-weight:700; color:var(--coral); line-height:1; }
.calc .calc-impact { background:var(--bg-soft-2); border-radius:14px; padding:18px 20px; margin-top:18px; color:var(--navy); font-weight:700; min-height:84px; display:flex; align-items:center; gap:14px; }
.calc .calc-impact .emoji { font-size:1.8rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--display); font-size: 1rem; letter-spacing: .02em; margin: 0 0 16px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--sun); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .95rem; max-width: 38ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 42px; padding-top: 22px; font-size: .85rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .stats { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; }
  .nav-links a.active:not(.btn) { border-bottom: 0; }
  .nav-toggle { display: block; }
  .stats, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta { padding: 34px 22px; }
  .section { padding: 54px 0; }
}
