/* ============================================================
   Glenview Neighborhood Association — Design System
   glenview20902.org
   Vanilla CSS, no dependencies. Brand: green / blue / gold.
   ============================================================ */

/* ----------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------- */
:root {
  /* Brand */
  --green: #2c5f2d;
  --green-light: #3a7d3e;
  --green-dark: #1e4420;
  --green-darker: #163218;
  --green-bg: #f0f7f0;
  --green-bg-2: #e6f1e6;

  --blue: #1a5276;
  --blue-light: #2471a3;
  --blue-dark: #133b54;

  --gold: #8b6914;
  --gold-light: #a37e1f;
  --gold-bg: #fdf8ee;
  --gold-border: #e8dfc6;

  /* Neutrals */
  --ink: #232826;
  --text: #3a403d;
  --text-light: #5c6360;
  --text-muted: #6b726e;
  --line: #e7eae8;
  --line-strong: #d4dad6;
  --bg: #ffffff;
  --bg-off: #f6f8f6;
  --bg-tint: #fbfcfb;
  --white: #ffffff;

  /* Type */
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --fs-eyebrow: 0.78rem;
  --lh-tight: 1.18;
  --lh-snug: 1.4;
  --lh-body: 1.68;

  /* Space scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(3.5rem, 7vw, 6rem);

  /* Shape */
  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 3px rgba(20, 40, 25, 0.06);
  --shadow-sm: 0 2px 10px rgba(20, 40, 25, 0.07);
  --shadow: 0 6px 22px rgba(20, 40, 25, 0.10);
  --shadow-lg: 0 16px 48px rgba(20, 40, 25, 0.16);

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --nav-h: 70px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s var(--ease);
  --t: 0.28s var(--ease);
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh-body);
  font-size: 1.0625rem; /* 17px */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--green-light); }

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

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

strong, b { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--green-bg-2); color: var(--green-dark); }

/* ----------------------------------------------------------
   3. LAYOUT HELPERS
   ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: var(--container-narrow); }

section { padding-block: var(--section-y); position: relative; }
.bg-off { background: var(--bg-off); }
.bg-green { background: var(--green-bg); }
.bg-tint { background: var(--bg-tint); }

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  top: 8px; z-index: 2000; background: var(--green); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
  transition: transform var(--t);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Section headers */
.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3.25rem); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block; font-size: var(--fs-eyebrow); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.65rem;
}
.eyebrow.green { color: var(--green); }
.eyebrow.blue { color: var(--blue); }
.section-head p { color: var(--text-light); font-size: 1.1rem; margin-top: 0.6rem; }
.section-head h2 { color: var(--green-dark); }

/* Grids */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ----------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.6em; border: 2px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.1em; height: 1.1em; }

.btn-green { --btn-bg: var(--green); }
.btn-green:hover { background: var(--green-light); }
.btn-blue { --btn-bg: var(--blue); }
.btn-blue:hover { background: var(--blue-light); }
.btn-gold { --btn-bg: var(--gold); }
.btn-gold:hover { background: var(--gold-light); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--green-dark); }
.btn-white:hover { background: #f3f6f3; color: var(--green-dark); }
.btn-outline {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; transform: translateY(-2px); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--green); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--green-bg); border-color: var(--green); color: var(--green-dark); }
.btn-lg { padding: 1.02em 2em; font-size: 1.05rem; }
.btn-sm { padding: 0.6em 1.1em; font-size: 0.875rem; }
.btn-block { width: 100%; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 0.35em; }
.link-arrow::after { content: '→'; transition: transform var(--t-fast); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------------
   5. HEADER / NAV
   ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  background: rgba(255,255,255,0.88); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  transition: box-shadow var(--t), background var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.96); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .brand-text { display: none; font-weight: 700; color: var(--green); font-size: 1.05rem; line-height: 1.1; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink); padding: 0.4rem 0;
  position: relative;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav a:not(.btn):hover::after, .nav a.active:not(.btn)::after { transform: scaleX(1); }
.nav a.active { color: var(--green); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem;
  width: 44px; height: 44px; position: relative; z-index: 1100;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 5px auto; transition: transform var(--t), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { display: none; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; padding: 0.5rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); visibility: hidden;
    transition: transform 0.28s var(--ease), visibility 0s linear 0.28s;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); visibility: visible; transition: transform 0.28s var(--ease), visibility 0s linear 0s; }
  .nav a { padding: 0.95rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }
  .nav-backdrop.show {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(20,30,22,0.35);
    z-index: 900; animation: fade 0.2s ease;
  }
}
@media (min-width: 420px) { .brand .brand-text { display: block; } }
@media (max-width: 420px) { .brand img { height: 34px; } }

/* ----------------------------------------------------------
   6. HERO
   ---------------------------------------------------------- */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(4.5rem, 11vw, 8rem);
  display: grid; place-items: center; isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(22,50,24,0.62) 0%, rgba(22,50,24,0.42) 45%, rgba(20,45,22,0.78) 100%),
    linear-gradient(110deg, rgba(30,68,32,0.55), rgba(26,82,118,0.30));
}
.hero-content { position: relative; max-width: 880px; padding-inline: 1.25rem; }
.hero .eyebrow { color: #ffe9b8; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.28); margin-bottom: 0.6rem; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: rgba(255,255,255,0.94); font-weight: 300; margin-bottom: 0.5rem; }
.hero .meta { font-size: 0.98rem; color: rgba(255,255,255,0.82); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 1.5rem; animation: bob 2.4s ease-in-out infinite;
}

/* Trust / stats strip */
.stats { background: var(--green-darker); color: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2.2rem; text-align: center; }
.stat .num { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; color: #fff; line-height: 1; }
.stat .num span { color: #ffd98a; }
.stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.78); margin-top: 0.4rem; letter-spacing: 0.02em; }

/* ----------------------------------------------------------
   7. PAGE HERO (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  position: relative; color: #fff; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); text-align: center;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,50,24,0.72), rgba(20,45,22,0.82));
}
.page-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.3); }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0.75rem auto 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.78); margin-bottom: 0.9rem; }
.breadcrumb a { color: rgba(255,255,255,0.92); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.6; margin: 0 0.4rem; }

/* ----------------------------------------------------------
   8. CARDS
   ---------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about-text p { color: var(--text-light); margin-bottom: 1.1rem; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.1rem 0.85rem;
  background: linear-gradient(transparent, rgba(20,40,22,0.82)); color: #fff; font-size: 0.85rem;
}

.boundaries {
  background: var(--green-bg); border: 1px solid #d4e8d4; border-radius: var(--radius); padding: 1.5rem;
}
.boundaries h3 { color: var(--green-dark); font-size: 1.05rem; margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.boundary-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed #cfe3cf; font-size: 0.95rem; }
.boundary-row:last-child { border-bottom: 0; }
.boundary-row .dir { font-weight: 700; color: var(--green); }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--green-bg); color: var(--green-dark);
  font-size: 0.82rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: var(--radius-pill);
  border: 1px solid #d4e8d4;
}
.pill.gold { background: var(--gold-bg); color: var(--gold); border-color: var(--gold-border); }
.pill.blue { background: #eaf3f9; color: var(--blue); border-color: #cfe2ee; }

/* Board */
.board-card { padding: 1.6rem 1.5rem; border-top: 4px solid var(--green); text-align: left; }
.board-card .avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); color: var(--green-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem;
  border: 1px solid #d4e8d4;
}
.board-card .role { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 700; }
.board-card .name { font-size: 1.18rem; font-weight: 700; color: var(--ink); margin: 0.2rem 0 0.6rem; }
.board-card .bio { font-size: 0.92rem; color: var(--text-light); line-height: 1.55; }

/* Committees */
.committee { padding: 1.5rem; border-left: 4px solid var(--gold); background: var(--gold-bg); border-radius: var(--radius); }
.committee h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 0.4rem; }
.committee p { font-size: 0.92rem; color: var(--text-light); }

/* Events */
.event-card { display: flex; flex-direction: column; }
.event-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--green-bg); }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.event-card.lift:hover .event-media img { transform: scale(1.04); }
.event-tag {
  position: absolute; top: 0.85rem; left: 0.85rem; background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.event-tag.recurring { background: var(--blue); }
.event-tag.featured { background: var(--gold); }
.event-tag.past { background: var(--text-muted); }
.event-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.event-date { font-size: 0.82rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.45rem; }
.event-name { font-size: 1.22rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.event-loc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; display: flex; align-items: flex-start; gap: 0.4rem; }
.event-desc { font-size: 0.93rem; color: var(--text-light); margin-bottom: 1rem; }
.event-actions { margin-top: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* Involve */
.involve-card { padding: 1.7rem 1.6rem; height: 100%; }
.involve-card .icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-bg); color: var(--green); margin-bottom: 1rem;
}
.involve-card .icon-badge svg { width: 24px; height: 24px; }
.involve-card h3 { font-size: 1.2rem; color: var(--green-dark); margin-bottom: 0.6rem; }
.involve-card p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 1rem; }
.involve-card ul { padding-left: 1.1rem; margin-bottom: 1.1rem; }
.involve-card li { font-size: 0.92rem; color: var(--text-light); }

/* Quick links / resource cards */
.qlink {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.qlink:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--green); }
.qlink .icon-badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.qlink .icon-badge svg { width: 22px; height: 22px; }
.qlink h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.25rem; }
.qlink p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ----------------------------------------------------------
   9. ACCORDION (resources)
   ---------------------------------------------------------- */
.accordion { max-width: 860px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.75rem; background: #fff; overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.acc-item.open { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.acc-header {
  width: 100%; background: none; border: 0; padding: 1.15rem 1.4rem; font: inherit; font-weight: 600;
  font-size: 1.05rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; text-align: left; transition: background var(--t-fast);
}
.acc-header:hover { background: var(--bg-off); }
.acc-header .acc-icon { flex-shrink: 0; width: 26px; height: 26px; position: relative; }
.acc-header .acc-icon::before, .acc-header .acc-icon::after {
  content: ''; position: absolute; background: var(--green); border-radius: 2px; transition: transform var(--t);
}
.acc-header .acc-icon::before { top: 50%; left: 4px; right: 4px; height: 2px; transform: translateY(-50%); }
.acc-header .acc-icon::after { left: 50%; top: 4px; bottom: 4px; width: 2px; transform: translateX(-50%); }
.acc-item.open .acc-icon::after { transform: translateX(-50%) scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height var(--t); }
.acc-body-inner { padding: 0 1.4rem 1.3rem; color: var(--text-light); }
.acc-body-inner ul { padding-left: 1.1rem; margin: 0.3rem 0; }
.acc-body-inner li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.acc-body-inner a { font-weight: 500; }

/* Definition-style resource list */
.res-list { list-style: none; padding: 0; }
.res-list li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); margin: 0; }
.res-list li:last-child { border-bottom: 0; }

/* ----------------------------------------------------------
   10. GALLERY + LIGHTBOX
   ---------------------------------------------------------- */
.gallery { columns: 3; column-gap: 1rem; }
.gallery figure {
  break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: zoom-in; box-shadow: var(--shadow-xs);
}
.gallery img { width: 100%; display: block; transition: transform var(--t); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(20,40,22,0.55));
  opacity: 0; transition: opacity var(--t);
}
.gallery figure:hover::after { opacity: 1; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 0.9rem 0.75rem; color: #fff;
  font-size: 0.85rem; z-index: 1; opacity: 0; transform: translateY(8px); transition: opacity var(--t), transform var(--t);
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
@media (max-width: 820px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(15,25,17,0.94);
  display: none; place-items: center; padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: grid; animation: fade 0.2s ease; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox .lb-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.9rem; padding: 0 1rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.12); border: 0; color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; display: grid; place-items: center;
  transition: background var(--t-fast);
}
.lightbox button:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 1.2rem; transform: none; } .lb-prev { left: 1.2rem; } }

/* ----------------------------------------------------------
   11. FORMS
   ---------------------------------------------------------- */
.form-grid { display: grid; gap: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.field label .req { color: #c0392b; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(44,95,45,0.14);
}
.field .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-note { font-size: 0.85rem; color: var(--text-muted); }

/* Newsletter band */
.newsletter { background: linear-gradient(135deg, var(--blue-dark), var(--blue) 60%, var(--blue-light)); color: #fff; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.9); }
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 520px; margin: 1.5rem auto 0; }
.newsletter-form input { flex: 1 1 240px; padding: 0.9rem 1rem; border: 0; border-radius: var(--radius-sm); font-size: 1rem; }
.newsletter-form input:focus { outline: 3px solid #ffd98a; }

/* ----------------------------------------------------------
   12. DONATE
   ---------------------------------------------------------- */
.donate { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #1d6a99 100%); color: #fff; text-align: center; }
.donate h2 { color: #fff; }
.donate p { color: rgba(255,255,255,0.9); }
.donate .amount { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; line-height: 1; margin: 1.25rem 0 0.25rem; }
.donate .amount span { font-size: 0.4em; vertical-align: super; opacity: 0.8; }
.donate .amount-label { opacity: 0.85; margin-bottom: 1.75rem; }
.donate .fineprint { font-size: 0.82rem; opacity: 0.7; margin-top: 1.5rem; font-style: italic; }
.callout {
  background: var(--gold-bg); border: 1px solid var(--gold-border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; font-size: 0.92rem; color: var(--text);
}
.callout strong { color: var(--gold); }

/* CTA band (green) */
.cta-band { background: linear-gradient(135deg, var(--green-dark), var(--green) 55%, var(--green-light)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 600px; margin: 0.6rem auto 1.6rem; }

/* ----------------------------------------------------------
   13. MAP EMBED
   ---------------------------------------------------------- */
.map-embed { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--green-bg); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ----------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------- */
.site-footer { background: var(--green-darker); color: rgba(255,255,255,0.82); padding-block: clamp(3rem, 6vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.site-footer img.flogo { height: 44px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 700; }
.site-footer p { font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.6rem; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { font-size: 0.92rem; }
.social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); display: grid; place-items: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.social a:hover { background: var(--gold); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-size: 0.82rem; opacity: 0.7; }

/* ----------------------------------------------------------
   15. BACK TO TOP
   ---------------------------------------------------------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 800; width: 46px; height: 46px;
  border-radius: 50%; background: var(--green); color: #fff; border: 0; cursor: pointer; display: grid;
  place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), background var(--t-fast); font-size: 1.2rem;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-light); }

/* ----------------------------------------------------------
   16. REVEAL ANIMATIONS
   ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------
   17. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
}

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

@media print {
  .site-header, .nav-toggle, .to-top, .hero-scroll, .lightbox, .newsletter, .donate { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  section { padding-block: 1rem; }
}
