/* The Promised Childhood Foundation — site styles
   Palette and type come from the TPCF pitch deck: midnight navy grounds,
   gold arcs, cream panels, a serif display over a clean sans body.
   To change a brand color everywhere, edit the tokens below. */

:root {
  --navy: #0B1622;          /* dark sections, headings */
  --navy-deep: #08111B;     /* footer */
  --navy-raised: #10202F;   /* cards on navy */
  --blue: #12345A;          /* logo blue: primary buttons, links */
  --gold: #D4A85A;          /* accents, buttons on navy (never text on light) */
  --gold-deep: #8A6224;     /* gold text on light backgrounds */
  --gold-line: #5C4A2A;     /* card borders on navy */
  --cream: #F4F2EC;         /* light sections, header */
  --cream-warm: #FBF5EA;
  --white: #FFFFFF;
  --ink: #1A2633;           /* body text */
  --ink-soft: #3E4C5C;      /* secondary text */
  --ink-muted: #5A6878;     /* small notes */
  --on-navy: #F4F2EC;
  --on-navy-soft: #D3DAE2;
  --line: #D8DDE3;
  --field: #C5CCD4;

  --font-display: "Gelasio", Georgia, "Times New Roman", serif;
  --font-body: "Raleway", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: 32px;
  --section: 88px;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.1; }
h2 { font-size: clamp(30px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* ---------- layout ---------- */
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band--navy { background: var(--navy); color: var(--on-navy); }
.band--cream { background: var(--cream); }
.band--white { background: var(--white); }
.band--blue { background: var(--blue); color: var(--on-navy); }
.wrap { max-width: var(--max); margin: 0 auto; padding-block: var(--section); padding-inline: var(--gutter); }
.wrap--narrow { max-width: 920px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--tight { gap: 12px; }
.center { align-items: center; text-align: center; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: center; }
.split--top { align-items: start; }
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.band--navy .eyebrow, .band--blue .eyebrow { color: var(--gold); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.band--navy .lead, .band--blue .lead { color: var(--on-navy-soft); }
.serif-lead { font-family: var(--font-display); font-size: 21px; line-height: 1.6; }
.italic { font-style: italic; }
.note { font-size: 14px; color: var(--ink-muted); }

/* gold arc motif from the deck */
.arcs { position: relative; overflow: hidden; }
.arcs::before, .arcs::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.arcs::before { width: 780px; height: 780px; right: -260px; top: -300px; border: 2px solid var(--gold); opacity: 0.45; }
.arcs::after { width: 640px; height: 640px; left: -360px; bottom: -440px; border: 1px solid var(--gold); opacity: 0.3; }
.arcs > * { position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--navy); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #E2BB74; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-gold { border-color: var(--gold); color: var(--on-navy); background: transparent; }
.btn--outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.band--navy .text-link { color: var(--gold); }

/* ---------- header ---------- */
.site-header { background: var(--cream); border-bottom: 3px solid var(--gold); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .inner { max-width: 1280px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 84px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.15; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--blue); }
.nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--gold); }
.nav .btn { min-height: 46px; padding: 0 24px; margin-left: 10px; font-size: 15px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: var(--blue); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.header-donate { display: none; }
@media (max-width: 900px) {
  .brand img { width: 64px; }
  .brand span { font-size: 15px; }
  .menu-toggle { display: inline-flex; }
  .header-donate { display: inline-flex; min-height: 44px; padding: 0 18px; font-size: 14px; }
  .header-actions { display: flex; align-items: center; gap: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 3px solid var(--gold); flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 20px; gap: 0; box-shadow: 0 12px 24px rgba(11,22,34,.12); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { min-height: 52px; font-size: 17px; border-bottom: 1px solid #E3DFD4; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 16px; }
  .nav .btn { display: none; }
}

/* ---------- hero ---------- */
.hero .wrap { padding-block: 96px; }
.hero h1 { color: var(--on-navy); }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }
.status-line { font-size: 14px; color: #AEB9C6; }

/* ---------- cards ---------- */
.card { background: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card--white { background: var(--white); }
.card--outline { background: transparent; border: 1px solid var(--line); }
.card--navy { background: var(--navy-raised); border: 1px solid var(--gold-line); color: var(--on-navy); }
.card--navy p { color: #C9D1DB; }
.card--blue { background: var(--blue); color: var(--on-navy); }
.card h3 { color: inherit; }
.card .grow { flex-grow: 1; }
.icon-disc { width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list { margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.75; }
.band--navy .list, .card--blue .list { color: #E2E7ED; }
.card--navy .text-link { color: var(--gold); }

.belief { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.55; }
.belief strong { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--gold); line-height: 1; }

.callout { background: var(--blue); color: var(--on-navy); border-radius: 12px; padding: 20px 24px; font-family: var(--font-display); font-size: 19px; line-height: 1.5; }

.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-nav a { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid var(--gold); border-radius: 999px; color: var(--on-navy); text-decoration: none; font-size: 15px; font-weight: 600; }
.pill-nav a:hover { background: var(--gold); color: var(--navy); }

.art-panel { background: var(--cream); border-radius: 18px; display: flex; align-items: center; justify-content: center; padding: 32px; min-height: 360px; }
.band--cream .art-panel { background: var(--white); }
.art-panel svg { width: 100%; max-width: 320px; height: auto; }

blockquote.quote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.35; }
.rule-gold { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0; }

.help-card { text-decoration: none; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; background: var(--cream); color: var(--navy); transition: transform .15s; }
.help-card:hover { transform: translateY(-2px); color: var(--navy); }
.help-card--primary { background: var(--blue); color: var(--white); }
.help-card--primary:hover { color: var(--white); }
.help-card .t { font-family: var(--font-display); font-size: 24px; }
.help-card .d { font-size: 15px; line-height: 1.6; color: var(--ink-soft); flex-grow: 1; }
.help-card--primary .d { color: var(--on-navy-soft); }
.help-card .go { font-weight: 700; color: var(--blue); }
.help-card--primary .go { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .help-card, .help-card:hover { transform: none; transition: none; } }

.founder { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.monogram { width: 96px; height: 96px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 34px; flex-shrink: 0; border: 2px solid var(--gold); }
.role { font-size: 14px; font-weight: 700; color: var(--gold-deep); }

/* ---------- forms ---------- */
.form-panel { background: var(--white); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.band--white .form-panel { background: var(--cream); }
.form-panel--navy { background: var(--navy-raised); border: 1px solid #1F3247; color: var(--on-navy); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 0 14px; border: 1.5px solid var(--field); border-radius: 10px;
  background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 16px; width: 100%;
}
.field textarea { padding: 12px 14px; min-height: 120px; resize: vertical; }
.form-panel--navy .field input, .form-panel--navy .field select, .form-panel--navy .field textarea { background: var(--navy); color: var(--on-navy); border-color: #4A5D73; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blue); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.subform { border: 2px dashed var(--gold); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--cream-warm); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; font-weight: 600; padding: 12px 16px; border-radius: 10px; }
.form-status.ok { background: #E4F1E8; color: #1D5631; }
.form-status.err { background: #FBE9E7; color: #8A2B1E; }
.form-panel button[type="submit"] { align-self: flex-start; }
.form-panel--navy .form-status.ok { background: #183A28; color: #CDEBD6; }
.form-panel--navy .form-status.err { background: #4A1F1A; color: #F6D3CD; }

details.faq { border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
details.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; min-height: 28px; }
details.faq p { margin-top: 12px; color: var(--ink-soft); }

.info-card { background: var(--navy); color: var(--on-navy); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.info-card a { color: var(--on-navy); }
.info-card .muted { color: var(--on-navy-soft); }
.divider { height: 1px; background: #1F3247; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: #C9D1DB; border-top: 3px solid var(--gold); font-size: 15px; }
.site-footer .wrap { padding-block: 64px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer nav a { color: #E2E7ED; text-decoration: none; min-height: 34px; display: flex; align-items: center; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer a { color: #E2E7ED; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .disc { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.foot-brand .disc img { width: 52px; }
.foot-brand span { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--on-navy); }
.newsletter { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input { flex: 1 1 160px; min-width: 0; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid #4A5D73; background: var(--navy-raised); color: var(--on-navy); font-family: var(--font-body); font-size: 15px; }
.newsletter .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.footer-bottom { border-top: 1px solid #1F3247; }
.footer-bottom .wrap { padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9AA8B7; }
.footer-bottom a { color: #C9D1DB; }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  :root { --gutter: 4px; --section: 56px; }
  body { font-size: 16px; }
  .hero .wrap { padding-block: 48px; }
  .hero .btn-row .btn { width: 100%; }
  .form-panel, .info-card { padding: 22px; }
  .art-panel { min-height: 260px; }
  .split { gap: 36px; }
}

/* Zeffy donation form embed */
.donate-embed { background: var(--white); border-radius: 18px; overflow: hidden; min-width: 0; }
.donate-embed iframe { display: block; width: 100%; height: 900px; border: 0; }
@media (max-width: 640px) { .donate-embed iframe { height: 1050px; } }
