/* ==========================================================================
   WERC — Western Energy and Resource Club
   styles.css

   Contents
   01. Design tokens (brand colours come straight off the logo)
   02. Reset & base
   03. Layout helpers
   04. Typography
   05. Buttons
   06. Header & navigation
   07. Hero
   08. About
   10. Events
   11. Team
   12. Sponsors
   14. Contact
   15. Footer
   16. Reveal animations
   17. Responsive
   ========================================================================== */

/* ---------- 01. DESIGN TOKENS ---------- */
:root {
  /* Brand — sampled from the WERC mark */
  --forest-900: #0F1F15;
  --forest-800: #1D3422;   /* logo: dark arch */
  --forest-700: #27462F;
  --sage-600:   #3E7550;   /* darkened from the logo mid-green so small
                              uppercase labels clear WCAG AA on cream */
  --sage-500:   #67A97B;   /* logo: mid green */
  --lime-500:   #A4C868;   /* logo: lime green */
  --lime-600:   #8CB550;

  /* Semantic — light theme */
  --bg:        #FAFAF6;
  --bg-alt:    #F1F4EC;
  --surface:   #FFFFFF;
  --surface-2: #F7F9F4;
  --ink:       #14211A;
  --ink-2:     #3B4B41;
  --muted:     #67776B;
  --line:      rgba(29, 52, 34, 0.13);
  --line-strong: rgba(29, 52, 34, 0.26);
  --accent:    var(--forest-800);
  --accent-ink: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(15, 31, 21, .06), 0 2px 6px rgba(15, 31, 21, .05);
  --shadow-md: 0 2px 4px rgba(15, 31, 21, .05), 0 10px 24px rgba(15, 31, 21, .08);
  --shadow-lg: 0 4px 8px rgba(15, 31, 21, .06), 0 24px 56px rgba(15, 31, 21, .12);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
}

/* Dark theme — applied by data-theme, or by system preference when
   the visitor has not chosen one (see :root:not([data-theme]) below). */
:root[data-theme="dark"] {
  --bg:        #0C1310;
  --bg-alt:    #111A14;
  --surface:   #15201A;
  --surface-2: #1A2720;
  --ink:       #EBF1E9;
  --ink-2:     #C3D0C5;
  --muted:     #8DA093;
  --line:      rgba(164, 200, 104, 0.16);
  --line-strong: rgba(164, 200, 104, 0.32);
  --accent:    var(--lime-500);
  --accent-ink: #102016;
  /* The 600 shade flips light in dark mode: it carries small uppercase
     labels (eyebrows, tags, roles) that must stay legible on near-black. */
  --sage-600:  #86C298;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .34);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, .45), 0 28px 60px rgba(0, 0, 0, .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg:        #0C1310;
    --bg-alt:    #111A14;
    --surface:   #15201A;
    --surface-2: #1A2720;
    --ink:       #EBF1E9;
    --ink-2:     #C3D0C5;
    --muted:     #8DA093;
    --line:      rgba(164, 200, 104, 0.16);
    --line-strong: rgba(164, 200, 104, 0.32);
    --accent:    var(--lime-500);
    --accent-ink: #102016;
    --sage-600:  #86C298;
  }
}

/* ---------- 02. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

::selection { background: var(--lime-500); color: var(--forest-900); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  background: var(--forest-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 03. LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }

.section-dark {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(164, 200, 104, .18), transparent 60%),
    linear-gradient(160deg, var(--forest-800), var(--forest-900) 70%);
  color: #EDF3E9;
}
.section-dark .eyebrow { color: var(--lime-500); }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: rgba(237, 243, 233, .78); }

.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 14px 0 0; }

/* ---------- 04. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin: 0 0 14px;
}

.lead { font-size: 1.14rem; color: var(--ink-2); }

.tick-list { display: grid; gap: 10px; margin-top: 22px; }
.tick-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: .97rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 17px; height: 10px;
  border-left: 2.5px solid var(--sage-500);
  border-bottom: 2.5px solid var(--sage-500);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* ---------- 05. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .16s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--forest-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--forest-700); box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .btn-primary { background: var(--lime-500); color: var(--forest-900); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--lime-600); }

.btn-lime { background: var(--lime-500); color: var(--forest-900); }
.btn-lime:hover { background: #B4D57E; }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--forest-800); background: var(--surface); }
:root[data-theme="dark"] .btn-ghost:hover { border-color: var(--lime-500); }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 15px; font-size: .86rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .icon-moon { display: block; }
}

/* ---------- 06. HEADER & NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(15, 31, 21, .06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }

/* The mark has a dark-green base, so a cream version is swapped in
   whenever the header sits on a dark background. */
.mark-on-dark { display: none; }
:root[data-theme="dark"] .mark-on-light { display: none; }
:root[data-theme="dark"] .mark-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .mark-on-light { display: none; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .mark-on-dark { display: block; }
}
.brand-text { display: grid; line-height: 1.1; }
.brand-abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: .1em;
}
.brand-full {
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: .94rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .18s, background-color .18s;
}
.nav-list a:hover { color: var(--ink); background: var(--surface-2); }
.nav-list a.is-current { color: var(--ink); font-weight: 600; }
.nav-list a.is-current::after {
  content: "";
  display: block;
  height: 2px;
  width: 16px;
  margin: 3px auto -5px;
  border-radius: 2px;
  background: var(--sage-500);
}

.header-tools { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.bars { display: grid; gap: 4px; }
.bars i {
  display: block;
  width: 17px; height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .18s;
}
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--sage-500), var(--lime-500));
  transition: width .1s linear;
}

/* ---------- 07. HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(64px, 11vw, 132px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }

.ridges { position: absolute; inset: auto 0 0; width: 100%; height: 62%; }
.ridge { stroke: none; }
.r1 { fill: var(--lime-500); opacity: .30; }
.r2 { fill: var(--sage-500); opacity: .34; }
.r3 { fill: var(--forest-800); opacity: .10; }
:root[data-theme="dark"] .r1 { opacity: .16; }
:root[data-theme="dark"] .r2 { opacity: .18; }
:root[data-theme="dark"] .r3 { opacity: .34; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(115% 82% at 50% 0%, #000 6%, transparent 62%);
  -webkit-mask-image: radial-gradient(115% 82% at 50% 0%, #000 6%, transparent 62%);
  opacity: .7;
}

.hero-glow {
  position: absolute;
  top: -22%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 110%);
  aspect-ratio: 1.6;
  background: radial-gradient(ellipse at center, rgba(164, 200, 104, .28), transparent 62%);
  filter: blur(6px);
}
:root[data-theme="dark"] .hero-glow { background: radial-gradient(ellipse at center, rgba(103, 169, 123, .22), transparent 62%); }

.hero-inner { position: relative; text-align: center; }

.hero-title {
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  font-weight: 700;
  max-width: 22ch;
  margin-inline: auto;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--sage-600), var(--lime-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
:root[data-theme="dark"] .hero-title em {
  background: linear-gradient(100deg, var(--sage-500), var(--lime-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 56ch;
  margin: 22px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(52px, 7vw, 82px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stats li {
  display: grid;
  gap: 4px;
  padding: 22px 16px;
  background: var(--surface);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest-800);
}
:root[data-theme="dark"] .stat-num { color: var(--lime-500); }
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- 08. ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}
.about-card > h3 {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.pillars { display: grid; }
.pillars li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pillars li:last-child { border-bottom: 0; padding-bottom: 0; }
.pillar-index {
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--sage-500);
  padding-top: .25em;
}
.pillars h4 { font-size: 1.04rem; }
.pillars p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---------- 10. EVENTS ---------- */
.filter-bar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 26px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filter {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.event-list { display: grid; gap: 12px; }
.event {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.event:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateX(3px); }
.event[hidden] { display: none; }

.event-date {
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 10px 6px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(164, 200, 104, .20), rgba(103, 169, 123, .14));
  text-align: center;
}
.event-date .month {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-600);
}
.event-date .day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--forest-800);
}
.event-date .year { font-size: .68rem; color: var(--muted); }
:root[data-theme="dark"] .event-date .day { color: var(--lime-500); }
:root[data-theme="dark"] .event-date .month { color: var(--sage-500); }

.event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag-speaker  { background: rgba(103, 169, 123, .16); color: var(--sage-600); border-color: transparent; }
.tag-workshop { background: rgba(164, 200, 104, .22); color: #566F28; border-color: transparent; }
.tag-comp     { background: rgba(29, 52, 34, .10);  color: var(--forest-800); border-color: transparent; }
.tag-trek     { background: rgba(76, 140, 97, .14); color: var(--sage-600); border-color: transparent; }
.tag-social   { background: rgba(164, 200, 104, .16); color: #566F28; border-color: transparent; }
:root[data-theme="dark"] .tag-workshop,
:root[data-theme="dark"] .tag-social { color: var(--lime-500); }
:root[data-theme="dark"] .tag-comp { background: rgba(235, 241, 233, .10); color: #D6E3CF; }

.event-body h3 { margin-bottom: 6px; }
.event-body p { font-size: .94rem; color: var(--muted); margin: 0; }
.event-meta { margin-top: 8px !important; font-size: .85rem !important; color: var(--ink-2) !important; font-weight: 500; }
.event-done { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.event-empty { margin-top: 20px; color: var(--muted); }

/* ---------- 11. TEAM ---------- */
.team-group + .team-group { margin-top: 44px; }
.team-group-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.team-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.member {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.avatar {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(145deg, var(--sage-500), var(--lime-500));
  color: var(--forest-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.avatar::before { content: attr(data-initials); }
img.avatar::before { content: none; }

.member h4 { font-size: 1.05rem; }
.member .role {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--sage-600);
}
:root[data-theme="dark"] .member .role { color: var(--lime-500); }
.member-mail {
  margin-top: auto;
  padding-top: 14px;
  font-size: .82rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  word-break: break-all;
  transition: color .2s, border-color .2s;
}
.member-mail:hover { color: var(--ink); border-color: var(--sage-500); }


/* ---------- 12. SPONSORS ---------- */
.partner-list { display: grid; gap: 16px; }
.partner {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.partner-logo {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s;
}
.partner-logo:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.partner-logo img { width: 100%; max-width: 190px; height: auto; }
.partner-copy h3 { margin-bottom: 8px; }
.partner-copy p { margin: 0; color: var(--muted); font-size: .96rem; max-width: 58ch; }
.partner-link {
  display: inline-block;
  margin-top: 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--sage-600);
  border-bottom: 1px solid var(--line-strong);
}
.partner-link:hover { border-color: var(--sage-500); }
:root[data-theme="dark"] .partner-link { color: var(--lime-500); }

/* ---------- 14. CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.contact-card:not(.is-static):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--sage-600);
}
:root[data-theme="dark"] .contact-icon { color: var(--lime-500); }
.contact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-size: 1.02rem; }
.contact-card > p { margin: 6px 0 0; font-size: .94rem; color: var(--ink-2); }

/* ---------- 15. FOOTER ---------- */
.site-footer {
  background: var(--forest-900);
  color: rgba(237, 243, 233, .8);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.4fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 44px;
}
.footer-brand img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; max-width: 36ch; color: rgba(237, 243, 233, .62); }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-500);
  margin-bottom: 14px;
}
.footer-nav ul { display: grid; gap: 9px; }
.footer-nav a {
  font-size: .92rem;
  color: rgba(237, 243, 233, .72);
  transition: color .18s;
}
.footer-nav a:hover { color: #fff; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid rgba(237, 243, 233, .12);
}
.footer-base p { margin: 0; font-size: .8rem; color: rgba(237, 243, 233, .5); }
.footer-ack { max-width: 52ch; }

/* ---------- 16. REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1040px) {
  .about-grid { grid-template-columns: 1fr; }
  .brand-full { display: none; }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px var(--gutter) 26px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 13px 14px; font-size: 1.02rem; border-radius: var(--r-md); }
  .nav-list a.is-current { background: var(--surface-2); }
  .nav-list a.is-current::after { display: none; }
  .nav-cta { margin-top: 10px; align-self: start; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .event { grid-template-columns: 62px 1fr; gap: 16px; align-items: start; }
  .partner { grid-template-columns: 1fr; }
  /* 25 full-size team cards make a very long scroll; switch to compact rows. */
  .team-grid { gap: 10px; }
  .member {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
  }
  .avatar { grid-row: span 3; width: 46px; height: 46px; margin: 0; font-size: .9rem; }
  .member-mail { margin-top: 0; padding-top: 6px; justify-self: start; }
  .event-date { padding: 8px 4px; }
  .event-date .day { font-size: 1.3rem; }
  .event-action { grid-column: 2; margin-top: 12px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .filter { padding: 8px 14px; font-size: .85rem; }

  /* The hero headline is long; let it shrink further than the fluid
     clamp allows so it stays around four lines on a phone. */
  .hero-title { font-size: clamp(1.9rem, 8.2vw, 2.6rem); max-width: none; }
  .hero-lede { font-size: 1rem; }
  .eyebrow { letter-spacing: .1em; font-size: .74rem; }
  .section-head { margin-bottom: 30px; }
}

@media (max-width: 359px) {
  .stats { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .hero-bg, .filter-bar, .icon-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 24px; page-break-inside: avoid; }
}
