/*
Theme Name: Dalia Eleven Temple
Theme URI: https://dalia11.org
Author: Dalia Eleven Temple
Author URI: https://dalia11.org
Description: Warm, community-centered nonprofit theme for Dalia Eleven Temple — food access, seniors, immigrant & bilingual services, wellness, and community garden programs across the greater Chicago region. A pixel-faithful classic theme that auto-creates its pages, menu, and front page on activation.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dalia
Tags: nonprofit, charity, community, custom-menu, featured-images, full-width-template, translation-ready
*/

/* =============================================================
   DALIA ELEVEN TEMPLE — Design System
   Warm, community-centered nonprofit. Built to match design 1:1.
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --cream:        #FBF7F1;   /* page background, warm off-white */
  --cream-2:      #F8F2EA;   /* alternate section bg */
  --cream-top:    #FDFBF7;   /* header / very top */
  --paper:        #FFFFFF;   /* cards */
  --blush:        #F6E9E4;   /* mission panel / footer */
  --blush-2:      #F1DBD4;   /* deeper blush */
  --blush-soft:   #FBEEE8;   /* soft peach panel */

  /* Ink & text */
  --ink:          #46423E;   /* headings, warm charcoal-brown */
  --ink-soft:     #5A554F;
  --body:         #7C746C;   /* paragraph text, warm grey */
  --muted:        #9B928A;   /* meta text */

  /* Brand terracotta */
  --terra:        #C77E69;   /* primary brand */
  --terra-ink:    #BC6F58;   /* links / eyebrows (a touch richer) */
  --terra-deep:   #AB614A;   /* hover */
  --terra-soft:   #E7C6BB;

  /* Programme icon tints */
  --ic-food:      #D18E79;
  --ic-senior:    #C59A67;
  --ic-immig:     #A6A079;
  --ic-well:      #D09583;
  --ic-garden:    #A2A076;

  /* Gold (logo) */
  --gold:         #C2A26A;
  --gold-deep:    #A8884F;

  /* Lines & shadows */
  --line:         #ECE3D7;
  --line-strong:  #DFD4C5;
  --shadow-sm:    0 4px 14px rgba(120, 84, 64, .06);
  --shadow-md:    0 14px 36px rgba(120, 84, 64, .10);
  --shadow-lg:    0 26px 60px rgba(120, 84, 64, .13);

  /* Layout */
  --container:    1200px;
  --gutter:       clamp(20px, 5vw, 40px);
  --radius:       16px;
  --radius-lg:    26px;

  /* Type */
  --serif:  "Playfair Display", Georgia, "Times New Roman", serif;
  --logo:   "Cinzel", "Playfair Display", serif;
  --sans:   "Mulish", "Segoe UI", system-ui, sans-serif;

  --ease:   cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section--cream { background: var(--cream); }
.section--cream2 { background: var(--cream-2); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .9rem; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--terra-ink);
  font-family: var(--sans); font-weight: 700;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 26px; height: 1px;
  background: currentColor; opacity: .55;
}
.eyebrow--start::before { display: none; }
.eyebrow--start { gap: 0; }
.eyebrow--start::after { margin-left: .7rem; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--ink);
  line-height: 1.2;
}
.section-head p { margin-top: 1rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .95rem 1.7rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .35s;
  white-space: nowrap;
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 24px rgba(174, 97, 74, .28); }
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(174, 97, 74, .34); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--terra); color: var(--terra-ink); transform: translateY(-2px); }
.btn-terra { background: transparent; color: var(--terra-ink); border-color: var(--terra-soft); }
.btn-terra:hover { background: var(--terra); color: #fff; border-color: var(--terra); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; }

/* ---------- "Learn more" link ---------- */
.link-more {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--terra-ink);
  font-family: var(--sans); font-weight: 700;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.link-more .arr { transition: transform .35s var(--ease); }
.link-more:hover { color: var(--terra-deep); }
.link-more:hover .arr { transform: translateX(5px); }

/* =============================================================
   HEADER / NAV
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 251, 247, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .4s, border-color .4s, background .4s;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(120, 84, 64, .07);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px; position: relative;
}
.nav-menu {
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.05rem);
  margin-left: auto;
}
.nav-links {
  display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.05rem);
}
.nav-links a {
  font-family: var(--sans); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft);
  position: relative; padding: .35rem 0;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--terra);
  transition: width .35s var(--ease);
}
.nav-links a:hover { color: var(--terra-ink); }
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--terra-ink); }
.nav-cta { margin-left: .6rem; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo .mark { width: 50px; height: 50px; flex: none; }
.logo .word { display: flex; flex-direction: column; line-height: 1; }
.logo .word .name {
  font-family: var(--logo); font-weight: 600;
  font-size: 1.55rem; letter-spacing: .14em;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .word .sub {
  font-family: var(--sans); font-weight: 600;
  font-size: .58rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted); margin-top: .32rem; padding-left: .12em;
}

/* Mobile nav */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero { position: relative; background: var(--cream-2); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0 0 0 47%; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: saturate(1.02) contrast(1.02); }
/* warm amber grade + left fade into cream */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--cream-2) 0%, rgba(248,242,234,.85) 9%, rgba(248,242,234,0) 34%),
    linear-gradient(180deg, rgba(248,242,234,.45) 0%, rgba(248,242,234,0) 22%),
    linear-gradient(0deg, rgba(199,126,105,.20), rgba(214,160,96,.16));
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(3.2rem, 7vw, 6.2rem); }
.hero-copy { max-width: 600px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.45rem);
  line-height: 1.16; color: var(--ink); font-weight: 600;
  letter-spacing: -.015em;
}
.hero-divider { display: flex; align-items: center; gap: .5rem; margin: 1.5rem 0; }
.hero-divider i { height: 1px; width: 46px; background: var(--terra-soft); }
.hero-divider b { width: 7px; height: 7px; transform: rotate(45deg); background: var(--terra); display: block; }
.hero-lead { font-size: 1.02rem; color: var(--body); max-width: 430px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.hero-actions .btn { padding: .9rem 1.4rem; font-size: .73rem; letter-spacing: .12em; }

/* faint botanical decoration top-left of hero */
.hero-botanical { position: absolute; left: -40px; top: 40px; width: 200px; opacity: .4; z-index: 0; pointer-events: none; color: var(--terra-soft); }

/* =============================================================
   WHAT WE DO — programme cards
   ============================================================= */
.programs-grid {
  display: grid; gap: 1.4rem; margin-top: 3rem;
  grid-template-columns: repeat(5, 1fr);
}
.program-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
  display: flex; flex-direction: column; align-items: center;
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.prog-icon {
  width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.4rem;
  position: relative; transition: transform .45s var(--ease);
  box-shadow: 0 8px 18px rgba(120, 84, 64, .14);
}
.prog-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--line); opacity: .8; }
.program-card:hover .prog-icon { transform: scale(1.06) rotate(-3deg); }
.prog-icon svg { width: 32px; height: 32px; color: #fff; }
.icon-food   { background: var(--ic-food); }
.icon-senior { background: var(--ic-senior); }
.icon-immig  { background: var(--ic-immig); }
.icon-well   { background: var(--ic-well); }
.icon-garden { background: var(--ic-garden); }
.program-card h3 { font-size: 1.18rem; margin-bottom: .7rem; line-height: 1.25; }
.program-card p { font-size: .9rem; color: var(--body); margin-bottom: 1.3rem; flex: 1; }
.program-card .link-more { margin-top: auto; }

/* =============================================================
   MISSION
   ============================================================= */
.mission { position: relative; background: var(--blush); overflow: hidden; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.mission-media { position: relative; min-height: 420px; }
.mission-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mission-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(199,126,105,.28), rgba(168,136,79,.12)); mix-blend-mode: multiply; }
.mission-body {
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter);
  padding-right: clamp(2rem, 8vw, 7rem);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.mission-body .inner { max-width: 520px; }
.mission-body .eyebrow { margin-bottom: 1.2rem; }
.mission-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); line-height: 1.22; margin-bottom: 1.2rem; }
.mission-body p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.mission-body .btn { margin-top: 1rem; align-self: flex-start; }
/* decorative line-art lotus on the right */
.mission-lotus { position: absolute; right: -30px; bottom: 10px; width: 230px; opacity: .5; color: var(--terra-soft); pointer-events: none; }

/* =============================================================
   GET INVOLVED
   ============================================================= */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.involve-item { display: flex; gap: 1.3rem; align-items: flex-start; }
.involve-icon { flex: none; width: 54px; height: 54px; color: var(--terra); }
.involve-icon svg { width: 100%; height: 100%; }
.involve-item h3 { font-family: var(--sans); font-weight: 800; font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .6rem; }
.involve-item p { font-size: .92rem; margin-bottom: 1rem; }

/* =============================================================
   EVENTS
   ============================================================= */
.events-head { display: flex; align-items: center; justify-content: center; margin-bottom: 2.6rem; }
.events-row { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 1.8rem; align-items: center; }
.event-card { display: flex; gap: 1.1rem; align-items: flex-start; padding-right: 1.6rem; border-right: 1px solid var(--line); }
.events-row .event-card:nth-child(3) { border-right: 0; }
.event-date {
  flex: none; width: 66px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: .55rem 0 .6rem; background: var(--paper);
}
.event-date .m { display: block; font-family: var(--sans); font-weight: 700; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); }
.event-date .d { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.event-info h3 { font-size: 1.06rem; margin-bottom: .35rem; line-height: 1.25; }
.event-info .meta { font-size: .82rem; color: var(--body); line-height: 1.55; }
.event-info .link-more { margin-top: .7rem; }
.events-row .btn { justify-self: end; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer { position: relative; background: linear-gradient(180deg, var(--blush) 0%, var(--blush-2) 100%); color: var(--ink-soft); margin-top: 2rem; }
.footer-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; transform: translateY(-99%); display: block; color: var(--blush); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.15fr 1.5fr .9fr;
  gap: 2.2rem;
  padding-block: clamp(3rem, 5vw, 4.2rem);
}
.footer-brand .logo { margin-bottom: 1.2rem; }
.footer-brand p { font-size: .92rem; color: var(--ink-soft); max-width: 250px; }
.footer-col h4 { font-family: var(--sans); font-weight: 800; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul a { font-size: .9rem; color: var(--ink-soft); transition: color .25s, padding-left .25s; }
.footer-col ul a:hover { color: var(--terra-ink); padding-left: 4px; }
.footer-contact .row { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .9rem; font-size: .89rem; }
.footer-contact .row svg { flex: none; width: 17px; height: 17px; margin-top: .2rem; color: var(--terra); }
.footer-contact .row span b { display: block; font-weight: 400; }
.social { display: flex; gap: .6rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: var(--terra); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.social a:hover { transform: translateY(-3px); background: var(--terra-deep); }
.social a svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(174, 97, 74, .18);
  padding-block: 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .8rem; color: var(--muted);
}
.footer-bottom .links { display: flex; gap: 1.6rem; }
.footer-bottom a:hover { color: var(--terra-ink); }
.footer-brand .logo .word .sub { color: #b59a8e; }

/* =============================================================
   SUBPAGE BANNER + CONTENT
   ============================================================= */
.page-hero { position: relative; background: linear-gradient(180deg, var(--cream-2) 0%, var(--blush-soft) 100%); padding-block: clamp(3.2rem, 6vw, 5rem); overflow: hidden; text-align: center; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.page-hero p { max-width: 620px; margin: 1.1rem auto 0; color: var(--body); }
.page-hero .leaf-deco { position: absolute; opacity: .35; color: var(--terra-soft); }
.page-hero .leaf-deco.l { left: -20px; bottom: -10px; width: 170px; }
.page-hero .leaf-deco.r { right: -20px; top: -10px; width: 170px; transform: scaleX(-1); }
.breadcrumb { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--terra-ink); }

.prose { max-width: 760px; }
.prose.center { margin-inline: auto; }
.prose p { margin-bottom: 1.1rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }

.feature-list { display: grid; gap: 1rem; margin: 1.4rem 0; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .55rem; transform: rotate(45deg); background: var(--terra); border-radius: 2px; }

/* Two-column detail rows for program / value blocks */
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.detail-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.detail-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.detail-card .pill { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; place-items: center; justify-content: center; margin-bottom: 1.1rem; color: #fff; }
.detail-card .pill svg { width: 28px; height: 28px; }
.detail-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.6rem; }
.value-card { text-align: center; padding: 2rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.1rem; background: var(--blush); color: var(--terra); }
.value-card .ic svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.value-card p { font-size: .9rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--terra) 0%, var(--terra-deep) 100%); color: #fff; text-align: center; border-radius: var(--radius-lg); padding: clamp(2.6rem, 5vw, 4rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .8rem; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 540px; margin: 0 auto 1.8rem; }
.cta-band .btn-light { background: #fff; color: var(--terra-deep); }
.cta-band .btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.cta-band .glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); }
.cta-band .glow.a { top: -140px; left: -80px; }
.cta-band .glow.b { bottom: -160px; right: -60px; }

/* Contact specifics */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; margin-top: 2.6rem; align-items: start; }
.contact-method { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.contact-method:last-child { border-bottom: 0; }
.contact-method .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--blush); color: var(--terra); display: grid; place-items: center; }
.contact-method .ic svg { width: 22px; height: 22px; }
.contact-method h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.contact-method a { color: var(--terra-ink); font-weight: 600; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .8rem .95rem; transition: border-color .3s, box-shadow .3s; font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(199,126,105,.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* =============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================= */
/* Only hide when JS can reveal — no-JS users always see content */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* hero load animation */
.js .hero-anim { opacity: 0; transform: translateY(22px); animation: heroUp .9s var(--ease) forwards; }
.hero-anim.d1 { animation-delay: .1s; }
.hero-anim.d2 { animation-delay: .25s; }
.hero-anim.d3 { animation-delay: .4s; }
.hero-anim.d4 { animation-delay: .55s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }
.hero-media { animation: heroMedia 1.4s var(--ease) both; }
@keyframes heroMedia { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 2 / 3; }
  .footer-follow { grid-column: 3 / 4; }
}
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    background: var(--cream-top); padding: 1.5rem var(--gutter) 1.9rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    margin-left: 0;
    clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
    transition: clip-path .42s var(--ease), opacity .3s;
  }
  .nav.open .nav-menu { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.1rem; width: 100%; }
  .nav-links a { font-size: .92rem; }
  .nav-cta { margin-left: 0; margin-top: .4rem; }

  .hero-media { position: relative; inset: auto; height: 320px; width: 100%; order: -1; }
  .hero-media::after { background: linear-gradient(0deg, var(--cream-2), rgba(248,242,234,0) 55%), linear-gradient(0deg, rgba(199,126,105,.18), rgba(214,160,96,.12)); }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { padding-top: 2.5rem; }
  .hero-copy { max-width: 100%; }

  .mission-grid { grid-template-columns: 1fr; }
  .mission-media { min-height: 280px; }
  .involve-grid { grid-template-columns: 1fr; gap: 1.8rem; max-width: 520px; margin-inline: auto; }
  .events-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .event-card { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.3rem; padding-right: 0; }
  .events-row .btn { justify-self: start; }
  .detail-grid, .values-grid, .contact-grid { grid-template-columns: 1fr; }
  .values-grid { gap: 1.2rem; }
}
@media (max-width: 620px) {
  .programs-grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .logo .word .name { font-size: 1.3rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================
   WORDPRESS INTEGRATION
   ============================================================= */
/* wp_nav_menu outputs <ul class="nav-links"><li><a>… — map WP state classes */
.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a,
.nav-links .current-page-ancestor > a { color: var(--terra-ink); }
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after,
.nav-links .current-menu-ancestor > a::after,
.nav-links .current-page-ancestor > a::after { width: 100%; }

/* Admin bar offset for the sticky header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 940px) { .admin-bar .nav-menu { top: 100%; } }

/* Accessibility: skip link + screen-reader text */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--terra); color: #fff; padding: .7rem 1.2rem; border-radius: 8px;
  font-family: var(--sans); font-weight: 700; font-size: .85rem;
}
.skip-link:focus { left: 12px; }

/* WordPress core content classes (for editable page bodies) */
.prose img { border-radius: var(--radius); height: auto; }
.aligncenter { display: block; margin-inline: auto; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.page-content-block { margin-top: 1.5rem; }

/* =============================================================
   DONATE / PAYPAL (coming soon)
   ============================================================= */
.donate-card {
  position: relative; max-width: 580px; margin: 3rem auto 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.2rem);
  text-align: center; box-shadow: var(--shadow-md); overflow: hidden;
}
.donate-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #002F86 0%, #0091D6 55%, #00C6E6 100%);
}
.donate-badge {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: var(--blush); color: var(--terra-deep);
  font-family: var(--sans); font-weight: 800; font-size: .64rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px;
}
.paypal-logo { width: 168px; height: auto; margin: .4rem auto 1.5rem; display: block; }
.donate-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: .7rem; }
.donate-card > p { color: var(--body); max-width: 430px; margin: 0 auto 1.6rem; }
.paypal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: #FFC439; color: #002F86;
  font-family: var(--sans); font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  padding: .95rem 1.9rem; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 47, 134, .16); user-select: none;
}
.paypal-btn .pp-ic { width: 18px; height: 18px; flex: none; }
.paypal-btn.is-soon { filter: grayscale(.2); opacity: .72; cursor: not-allowed; }
.donate-note { font-size: .85rem; color: var(--muted); margin: 1.4rem auto 0; max-width: 410px; }
.donate-note a { color: var(--terra-ink); font-weight: 700; }

/* Contact-form alerts */
.form-alert {
  padding: .95rem 1.15rem; border-radius: 12px; font-size: .92rem;
  font-weight: 600; margin-bottom: 1.3rem; line-height: 1.5;
}
.form-alert--ok  { background: #EAF4EC; color: #2C6B3F; border: 1px solid #C4E1CC; }
.form-alert--err { background: #FBEAE6; color: #A23B29; border: 1px solid #F1C9BF; }
