/* Esquerra Foundation — New Dawn brand */
:root {
  --green: #0F2A1E;
  --green-2: #173a2a;
  --gold: #C8A24A;
  --gold-text: #8A6A1E;     /* gold that passes contrast on light backgrounds */
  --gold-bright: #E6C467;   /* gold on dark green */
  --cream: #F7F3EA;
  --sand: #EFE7D6;
  --ink: #1d2a23;
  --muted: #4d5a52;
  --white: #FFFFFF;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 10px 30px rgba(15, 42, 30, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--gold-text); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--green); letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; display: block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--green); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.ph { background: rgba(200, 162, 74, .22); border-radius: 4px; padding: 0 4px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #ece6d8; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: 2.5px; line-height: 1; }
.brand-sub { font-size: .62rem; font-weight: 600; letter-spacing: 1.6px; color: var(--gold-text); margin-top: 5px; line-height: 1; }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px; }
.menu a[aria-current="page"] { color: var(--gold-text); }
.menu a:hover { background: var(--cream); }
.menu .btn { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 2px solid var(--green); border-radius: 8px; min-height: 44px; padding: 0 14px; font: inherit; font-weight: 700; color: var(--green); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--green); }
.btn-gold:hover { background: var(--gold-bright); color: var(--green); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-2); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--green); background: transparent; }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--green); }
.menu .btn { min-height: 44px; padding: 0 20px; }

/* ---------- hero ---------- */
.hero { background: var(--green); color: var(--white); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 88px 20px 96px; max-width: var(--max); margin: 0 auto; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold-bright); }
.hero p { color: #e4ebe6; font-size: 1.2rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { justify-self: center; width: min(360px, 80vw); }
.hero-art svg { width: 100%; height: auto; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); }

.page-hero { background: var(--green); color: var(--white); padding: 72px 0 64px; border-bottom: 6px solid var(--gold); }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .eyebrow { color: var(--gold-bright); }
.page-hero p { color: #e4ebe6; font-size: 1.2rem; max-width: 760px; margin: 0; }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
section.alt { background: var(--cream); }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid #e6dfcf; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 28px; height: 28px; stroke: var(--gold-bright); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pillars { counter-reset: p; }
.pillar { border-top: 4px solid var(--gold); padding-top: 18px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-slot { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--sand); border: 2px dashed #cdbf9c; display: grid; place-items: center; text-align: center; color: var(--gold-text); font-weight: 600; padding: 24px; }

.band { background: var(--green); color: var(--white); padding: 72px 0; }
.band h2 { color: var(--white); }
.band p { color: #e4ebe6; }
.band .eyebrow { color: var(--gold-bright); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin: 8px 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }

/* programs page */
.program { display: grid; grid-template-columns: 280px 1fr; gap: 36px; padding: 36px 0; border-bottom: 1px solid #e6dfcf; }
.program:last-child { border-bottom: 0; }
.program .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: var(--cream); color: var(--gold-text); border-radius: 999px; padding: 4px 12px; margin-bottom: 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: var(--muted); margin: 6px 0 14px; }
.meta b { color: var(--green); }
.notice { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 8px; padding: 18px 22px; color: var(--muted); font-size: .98rem; }

/* give page */
.give-card { text-align: left; }
.give-card .amount { font-size: 2.2rem; font-weight: 800; color: var(--green); }
.legal { font-size: .92rem; color: var(--muted); }

/* forms */
form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
label { font-weight: 600; font-size: .95rem; color: var(--green); }
input, select, textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #cfc6b2; border-radius: 10px; background: var(--white); color: var(--ink); min-height: 48px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(200, 162, 74, .45); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status { margin-top: 12px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: #dfe7e2; border-top: 6px solid var(--gold); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer h3 { color: var(--gold-bright); font-size: .85rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.foot-brand svg { width: 48px; height: 48px; }
.foot-brand .brand-name { color: var(--white); }
.foot-brand .brand-sub { color: var(--gold-bright); }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #c3cfc8; }
.foot-legal .board { color: var(--gold-bright); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; padding: 64px 20px 72px; }
  .hero-art { width: 220px; justify-self: start; order: -1; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .program { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--white); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid #ece6d8; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a { padding: 0 8px; }
  .menu .btn { margin: 8px 0 0; }
  .brand-sub { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  section.block { padding: 64px 0; }
  .g2, .g3, .g4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* brand panel (stands in for photos until real ones arrive) */
.brand-panel { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--green); display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.brand-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--gold); }
.brand-panel svg { width: 58%; height: auto; }
@media (max-width: 980px) { .brand-panel { aspect-ratio: 16 / 9; } .brand-panel svg { width: 34%; } }
