/* ============================================================
   More Than a Dream Foundation — Design System v1.0
   Palette: Foundation Black #0A0A0A · Bright White #FAFAFA
            Heritage Gold #C49A45
   Type: Cinzel (display) · Source Sans 3 (body)
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #1c1a17;
  --white: #fafafa;
  --paper: #ffffff;
  --gold: #c49a45;
  --gold-deep: #8a6420;      /* text-safe gold on white (AA) */
  --gold-soft: #f6efdf;
  --gold-line: #e3d3ae;
  --gray: #55524c;
  --gray-soft: #6f6a60;
  --line: #e7e1d3;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 45px -22px rgba(10, 10, 10, .28);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  color: var(--black);
  margin: 0 0 .6em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1.1em; }

a { color: var(--gold-deep); text-underline-offset: 3px; }
a:hover { color: var(--black); }

::selection { background: var(--gold); color: var(--black); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--black); color: var(--white);
  padding: .7rem 1.2rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

.container { width: min(var(--maxw), 100% - 2.5rem); margin-inline: auto; }

/* ---------- Eyebrow / section headers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--gold); display: inline-block; }

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section--gold-soft { background: var(--gold-soft); }
.section--black { background: var(--black); color: var(--white); }
.section--black h1, .section--black h2, .section--black h3 { color: var(--white); }
.section--black p { color: #d9d4c8; }
.section--black .eyebrow { color: var(--gold); }

.lede { font-size: 1.22rem; line-height: 1.75; color: var(--gray); max-width: 44rem; }
.section--black .lede { color: #cfc9bb; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  padding: .85rem 1.9rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--gold { background: var(--gold); color: var(--black); box-shadow: 0 10px 24px -12px rgba(196, 154, 69, .8); }
.btn--gold:hover { background: #b3893a; color: var(--black); transform: translateY(-2px); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #26221c; color: var(--white); transform: translateY(-2px); }
.btn--outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--outline-light { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 250, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-badge {
  width: 46px; height: 46px; border-radius: 12px; background: var(--black);
  display: grid; place-items: center; overflow: hidden; flex: none;
  box-shadow: 0 6px 16px -8px rgba(10,10,10,.5);
}
.brand-badge img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; color: var(--black); }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-block; padding: .55rem .85rem; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem;
}
.nav-list a:hover { background: var(--gold-soft); color: var(--black); }
.nav-list a[aria-current="page"] { color: var(--gold-deep); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-cta { margin-left: .5rem; }
.nav-cta a { background: var(--black); color: var(--white); border-radius: 999px; padding: .6rem 1.4rem; }
.nav-cta a:hover { background: var(--gold); color: var(--black); }

.menu-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; cursor: pointer; color: var(--black);
}
.menu-toggle svg { display: block; width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: var(--black); color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.88) 20%, rgba(10,10,10,.45) 60%, rgba(10,10,10,.25));
}
.hero-inner { position: relative; z-index: 1; padding: clamp(4.5rem, 10vw, 8rem) 0; max-width: 46rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); }
.hero p.lede { color: #e6e0d2; }

/* Page hero (interior pages) */
.page-hero { background: var(--black); color: var(--white); overflow: clip; position: relative; }
.page-hero .container { padding: clamp(3rem, 7vw, 4.8rem) 0; position: relative; z-index: 1; max-width: 52rem; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--gold); }
.page-hero p.lede { color: #ddd6c6; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 2px solid rgba(196, 154, 69, .35); border-radius: 50%;
}
.page-hero::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px;
  border: 1px solid rgba(196, 154, 69, .2); border-radius: 50%;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin-bottom: .2rem; }
.card p { color: var(--gray); font-size: 1rem; margin-bottom: .6rem; }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft);
  display: grid; place-items: center; margin-bottom: .6rem; flex: none;
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--gold-deep); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media figcaption { font-size: .9rem; color: var(--gray-soft); margin-top: .7rem; font-style: italic; }

/* Quote / pull */
.pull {
  border-left: 4px solid var(--gold); padding: 1rem 0 1rem 1.6rem; margin: 2rem 0;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.55; color: var(--black);
}

/* Notice banners */
.notice {
  border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem; font-size: .98rem; color: #4d4227; margin: 1.6rem 0;
}
.notice strong { color: var(--black); }
.notice--dark { background: #141210; border-color: #3a3226; color: #d8d0bd; }
.notice--dark strong { color: var(--gold); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--black) 55%, #241c0e);
  border-radius: calc(var(--radius) + 6px); color: var(--white);
  padding: clamp(2.4rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: -140px; width: 340px; height: 340px;
  transform: translateX(-50%); border: 1px solid rgba(196,154,69,.35); border-radius: 50%;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d9d2bf; max-width: 38rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 42rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.field label .optional { font-weight: 400; color: var(--gray-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; font: inherit; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid #cfc8b4; background: var(--paper); color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep);
}
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: .4rem; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .98rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .8rem; cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--gold-deep); width: 1.1rem; height: 1.1rem; flex: none; }
.form-note { font-size: .92rem; color: var(--gray-soft); }
.form-success { display: none; border: 1.5px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.form-success.show { display: block; }

/* Donate widget */
.donate-widget { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.6rem); max-width: 40rem; }
.freq-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.2rem; }
.freq-toggle button {
  font: inherit; font-weight: 700; padding: .8rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1.5px solid #cfc8b4; background: var(--white); color: var(--ink);
}
.freq-toggle button[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.amounts button {
  font: inherit; font-weight: 700; font-size: 1.05rem; padding: .85rem .4rem; border-radius: var(--radius-sm);
  border: 1.5px solid #cfc8b4; background: var(--white); cursor: pointer; color: var(--ink);
}
.amounts button[aria-pressed="true"] { border-color: var(--gold-deep); background: var(--gold-soft); color: var(--black); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.custom-amount { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem; }
.custom-amount span { font-weight: 700; font-size: 1.2rem; }
.custom-amount input { font: inherit; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid #cfc8b4; width: 12rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfc9bb; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; padding: 3.5rem 0 2.5rem; }
.footer-brand img { max-width: 230px; border-radius: 8px; margin-bottom: 1rem; }
.footer-brand p { font-size: .95rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; letter-spacing: .06em; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-links a { color: #cfc9bb; text-decoration: none; font-size: .98rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { font-size: .95rem; display: grid; gap: .55rem; }
.footer-contact a { color: #cfc9bb; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #2b2620; padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: .88rem; color: #9a937f; }
.footer-bottom a { color: #9a937f; }

/* Placeholder marker (visible, tasteful) */
.ph { border: 1.5px dashed var(--gold-line); background: #fffdf7; border-radius: var(--radius-sm); padding: 1rem 1.2rem; color: #6b5f45; font-size: .95rem; font-style: italic; }

/* Back-to-top */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--black); color: var(--gold); font-size: 1.3rem; line-height: 1;
  box-shadow: var(--shadow); display: none;
}
.to-top.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: .8rem 1.2rem 1.2rem; gap: .15rem;
    box-shadow: 0 24px 40px -24px rgba(10,10,10,.35);
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: .8rem .6rem; }
  .nav-cta { margin: .4rem 0 0; }
  .nav-cta a { text-align: center; display: block; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; text-align: center; }
}

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

/* Donate & Support band */
.give-band { background: var(--black); position: relative; overflow: hidden; }
.give-band::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border: 1px solid rgba(196,154,69,.35); border-radius: 50%;
}
.give-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px;
  border: 1px solid rgba(196,154,69,.18); border-radius: 50%;
}
.give-band .container { position: relative; z-index: 1; }
.give-band h2 { color: var(--white); }
.give-band .eyebrow { color: var(--gold); }
.btn--lg { padding: 1.1rem 2.6rem; font-size: 1.1rem; }
.give-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 46rem; }
.give-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem;
  border: 1px solid rgba(250,250,250,.16); border-radius: var(--radius);
  background: rgba(250,250,250,.04); color: var(--white);
  font-weight: 600; font-size: 1.05rem; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.give-list a:hover { border-color: var(--gold); background: rgba(196,154,69,.1); transform: translateX(4px); }
.give-check {
  flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: rgba(196,154,69,.16); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
}

.social-links { display: flex; gap: .8rem; margin-top: 1.1rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); transition: background .2s ease, color .2s ease; }
.social-links a:hover, .social-links a:focus-visible { background: var(--gold); color: var(--black); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }
