/* Weiher-Verein Menziken – main stylesheet */

/* Self-hosted fonts (SIL Open Font License) – no requests to Google */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green-900: #15302a;
  --green-800: #1f3d36;
  --green-600: #2f5e52;
  --green-100: #e3ece6;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --text: #1d2925;
  --muted: #5b6b65;
  --accent: #e08a2e;
  --accent-dark: #b86a17;
  --border: #dcd6c8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 48, 42, 0.12);
  --max: 1160px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

a { color: var(--green-600); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.8rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 100;
  background: var(--paper); padding: 8px 14px; border-radius: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-900);
}
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-logo { width: auto; height: 40px; flex: none; }
.brand-badge { display: inline-flex; flex: none; padding: 6px 10px; border-radius: 12px; background: var(--cream); }
.brand-badge .brand-logo { height: 34px; }
@media (max-width: 420px) { .site-header .brand-logo { height: 32px; } }
.brand-text { line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; display: block; }
.brand-sub { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav a:hover { background: var(--green-100); color: var(--green-900); }
.nav a[aria-current="page"] { background: var(--green-800); color: #fff; }
.nav .nav-cta { background: var(--accent); color: #fff; }
.nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--green-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 4px; }
  .nav a { border-radius: 10px; padding: 12px 14px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-900); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 21, 0.6) 0%, rgba(10, 25, 21, 0.2) 60%, rgba(10, 25, 21, 0) 100%),
    linear-gradient(180deg, rgba(10, 25, 21, 0.1) 0%, rgba(10, 25, 21, 0.25) 45%, rgba(10, 25, 21, 0.75) 100%);
}
.hero .container { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p { font-size: 1.2rem; max-width: 46ch; color: rgba(255, 255, 255, 0.92); }
.hero .eyebrow { color: #ffc98a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.page-hero {
  position: relative;
  color: #fff;
  padding: clamp(80px, 14vh, 140px) 0 56px;
  overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 21, 0.35), rgba(10, 25, 21, 0.75));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255, 255, 255, 0.9); max-width: 55ch; font-size: 1.12rem; margin: 0; }
.page-hero .eyebrow { color: #ffc98a; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 10vw, 112px) 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--green-800); color: #e9f0ec; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-head p { color: #bcd0c7; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
}
.stat-value { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: #fff; line-height: 1.1; }
.stat-label { color: #bcd0c7; font-size: 0.97rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.section-alt .card { background: var(--cream); }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before {
  content: "";
  position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--paper);
}
.timeline strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--green-900); }
.timeline span { color: var(--muted); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery a { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 18, 15, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* CTA band */
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: 22px;
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.25em; }
.cta-band p { margin: 0; max-width: 52ch; color: rgba(255, 255, 255, 0.95); }
.cta-band .btn { background: var(--green-900); color: #fff; }
.cta-band .btn:hover { background: #0c1f1a; }

.price-tag {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-head); color: var(--green-900);
}
.price-tag strong { font-size: 2.6rem; font-weight: 600; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3d36' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Forms ---------- */

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .zip { grid-column: span 1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 6px; color: var(--green-900); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(47, 94, 82, 0.15);
}

.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .radio-group { grid-template-columns: 1fr; } }
.radio-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; background: #fff;
}
.radio-card:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }
.field .radio-card input { width: auto; padding: 0; margin-top: 5px; accent-color: var(--green-800); flex: none; }
.radio-card strong { display: block; color: var(--green-900); }
.radio-card span { font-size: 0.9rem; color: var(--muted); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--green-800); flex: none; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

.alert {
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-weight: 500;
}
.alert-error { background: #fbe9e6; color: #8a2a1b; border: 1px solid #f0c3ba; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .card-icon { margin: 0; flex: none; }
.info-list strong { display: block; color: var(--green-900); }
.info-list span { color: var(--muted); }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .checkbox-grid { grid-template-columns: 1fr; } }
.check-chip,
.field label.check-chip {
  display: flex; gap: 10px; align-items: center; margin: 0; font-weight: 500; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 12px; background: #fff; cursor: pointer; font-size: 0.95rem;
}
.check-chip:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }
.field .check-chip input { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--green-800); }

.fieldset-reset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset-reset legend { font-weight: 600; font-size: 0.93rem; margin-bottom: 8px; color: var(--green-900); padding: 0; }

/* FAQ */
.faq { margin-top: 28px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-900);
  list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Join section */
.join-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .join-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .join-grid { grid-template-columns: 1fr; } }
.join-card {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 26px;
}
.join-card .card-icon { background: rgba(255, 255, 255, 0.1); color: #ffc98a; }
.join-card p { color: #bcd0c7; flex: 1; }
.join-card .link {
  font: inherit; color: #ffc98a; font-weight: 600; text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.join-card .link:hover { color: #fff; }

.mail-link { word-break: break-all; }

/* TWINT donation */
.twint-card {
  margin: 0 auto;
  max-width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
  text-align: center;
}
.twint-card img { width: 100%; height: auto; }
.twint-card figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.twint-card.small { max-width: 200px; margin: 12px 0 0; padding: 12px 12px 8px; box-shadow: none; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 1.2em; }
.steps li { counter-increment: step; position: relative; padding: 6px 0 6px 44px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-800); color: #fff; font-weight: 600; font-size: 0.9rem;
}

/* ---------- Visual refresh ---------- */

/* Slow zoom on the hero photo */
.hero img { animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.hero .scroll-hint {
  position: absolute; left: 50%; bottom: 74px; z-index: 1;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 14px;
}
.hero .scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: #fff; animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 860px) { .hero .scroll-hint { display: none; } }

/* Wave dividers between sections */
.wave { display: block; width: 100%; height: clamp(36px, 6vw, 80px); position: relative; z-index: 2; }
.wave-hero { position: absolute; left: 0; right: 0; bottom: -1px; }
.wave-top { margin-bottom: -1px; }
.wave-bottom { margin-top: -1px; }

/* Overlapping photo collage */
.collage { position: relative; padding: 0 0 70px 0; }
.collage img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.collage .main { width: 82%; aspect-ratio: 4 / 3; }
.collage .inset {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4;
  border: 6px solid var(--cream);
}
.section-alt .collage .inset { border-color: var(--paper); }
.collage .badge {
  position: absolute; left: -18px; bottom: 40px;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-head); line-height: 1.05;
  box-shadow: var(--shadow); transform: rotate(-8deg);
}
.collage .badge small { display: block; font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.collage .badge strong { font-size: 2rem; font-weight: 600; }
@media (max-width: 560px) { .collage .badge { left: 8px; width: 96px; height: 96px; } .collage .badge strong { font-size: 1.6rem; } }

/* Photo cards */
.photo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .photo-cards { grid-template-columns: 1fr; } }
.photo-card {
  position: relative; overflow: hidden; border-radius: 18px;
  min-height: 420px; display: flex; align-items: flex-end;
  color: #fff; box-shadow: var(--shadow);
}
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.photo-card:hover img { transform: scale(1.05); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 21, 0) 35%, rgba(10, 25, 21, 0.88) 100%); }
.photo-card .body { position: relative; z-index: 1; padding: 26px; }
.photo-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.3em; }
.photo-card p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.photo-card .tag {
  display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
}

/* Project cards */
.project-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.project-cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1040px) { .project-cards, .project-cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .project-cards, .project-cards.three { grid-template-columns: 1fr; } }
.project-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-card .body { padding: 22px 24px 26px; }
.project-card .tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 99px;
  background: var(--green-100); color: var(--green-800); font-size: 0.8rem; font-weight: 600;
}
.project-card p { color: var(--muted); margin: 0; }

/* Join section with photo */
.join-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
.join-layout .join-grid { grid-template-columns: 1fr 1fr; }
.join-photo { position: relative; }
.join-photo img { border-radius: 20px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.join-photo figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  background: rgba(247, 244, 236, 0.95); color: var(--green-900);
  padding: 12px 16px; border-radius: 12px; font-size: 0.92rem; font-weight: 500;
}
@media (max-width: 960px) {
  .join-layout { grid-template-columns: 1fr; }
  .join-photo { max-width: 460px; }
}
@media (max-width: 600px) { .join-layout .join-grid { grid-template-columns: 1fr; } }

/* Gallery filter and captions */
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 28px; }
.gallery-filter button {
  font: inherit; font-size: 0.95rem; font-weight: 500;
  padding: 8px 18px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
}
.gallery-filter button[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
/* Masonry gallery: images keep their natural aspect ratio, no gaps when filtering */
.gallery { display: block; columns: 3 280px; column-gap: 14px; }
.gallery a { margin-bottom: 14px; break-inside: avoid; }
.gallery img { height: auto; }
.gallery a span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 25, 21, 0.8));
  color: #fff; font-size: 0.9rem; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s;
}
.gallery a:hover span, .gallery a:focus-visible span { opacity: 1; transform: none; }
@media (hover: none) { .gallery a span { opacity: 1; transform: none; } }

/* CTA with photo */
.cta-photo {
  display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden;
  border-radius: 24px; background: var(--accent); color: #fff; box-shadow: var(--shadow);
}
.cta-photo .text { padding: clamp(32px, 5vw, 60px); align-self: center; }
.cta-photo h2 { color: #fff; }
.cta-photo p { color: rgba(255, 255, 255, 0.95); max-width: 46ch; }
.cta-photo .btn { background: var(--green-900); color: #fff; margin-top: 8px; }
.cta-photo .btn:hover { background: #0c1f1a; }
.cta-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
@media (max-width: 760px) { .cta-photo { grid-template-columns: 1fr; } .cta-photo img { max-height: 340px; } }

@media (prefers-reduced-motion: reduce) {
  .hero img, .hero .scroll-hint::after { animation: none; }
}

/* ---------- Sponsors ---------- */

.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .sponsor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sponsor-grid { grid-template-columns: 1fr; } }
.sponsor-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 230px; padding: 32px 24px; text-align: center;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  text-decoration: none; color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
}
a.sponsor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.sponsor-card img { max-width: 220px; max-height: 110px; object-fit: contain; }
.sponsor-card .meta { font-size: 0.9rem; color: var(--muted); }
.sponsor-card .meta strong { display: block; color: var(--green-900); font-size: 1rem; }
.sponsor-card .visit { font-size: 0.88rem; font-weight: 600; color: var(--accent-dark); }
/* Text logo used until an official logo file is available */
.wordmark { font-family: var(--font-head); color: var(--green-800); line-height: 1.05; }
.wordmark big { display: block; font-size: 2.6rem; font-weight: 600; letter-spacing: 0.04em; }
.wordmark small { display: block; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); font-family: var(--font-body); font-weight: 600; margin-top: 4px; }
.sponsor-card.open {
  background: transparent; border: 2px dashed var(--border); color: var(--muted);
}
.sponsor-card.open:hover { border-color: var(--accent); }
.sponsor-card.open .plus {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 2rem; line-height: 1;
}

.need-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .need-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .need-grid { grid-template-columns: 1fr; } }
.need-card { position: relative; overflow: hidden; border-radius: 18px; min-height: 260px; display: flex; align-items: flex-end; color: #fff; }
.need-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.need-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 21, 0.05) 20%, rgba(10, 25, 21, 0.85) 100%); }
.need-card .body { position: relative; z-index: 1; padding: 22px; }
.need-card h3 { color: #fff; margin-bottom: 0.25em; }
.need-card p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 0.97rem; }
.need-card.plain { background: var(--green-800); }
.need-card.plain::after { display: none; }
.need-card.plain .card-icon { background: rgba(255, 255, 255, 0.1); color: #ffc98a; }

.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.benefit-list li { display: flex; gap: 16px; align-items: flex-start; }
.benefit-list .card-icon { margin: 0; flex: none; background: rgba(255, 255, 255, 0.1); color: #ffc98a; }
.benefit-list strong { display: block; color: #fff; font-size: 1.08rem; }
.benefit-list span { color: #bcd0c7; }

.sponsor-strip { text-align: center; }
.sponsor-strip .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; margin: 22px 0 18px; }
.sponsor-strip .sponsor-card { min-height: 0; padding: 20px 32px; }
.sponsor-strip .wordmark big { font-size: 1.8rem; }
.sponsor-strip .wordmark small { font-size: 0.78rem; }

/* ---------- History page ---------- */

.split:has(.sticky-media) { align-items: start; }
.sticky-media { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 860px) {
  .sticky-media { position: static; }
  .sticky-media img:not(:first-child) { display: none; }
}

/* ---------- Animals page ---------- */

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -16px; }
.chip-nav a {
  padding: 8px 18px; border-radius: 99px; text-decoration: none;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  font-size: 0.95rem; font-weight: 500;
}
.chip-nav a:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; }

.species-list { display: grid; gap: 28px; }
.species {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--paper); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  scroll-margin-top: 96px;
}
.section-alt .species { background: var(--cream); }
.species:nth-child(even) .species-media { order: 2; }
.species-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.species-body { padding: clamp(24px, 4vw, 40px); }
.species-body h3 { font-size: 1.7rem; margin-bottom: 0.15em; }
.species-body .latin { font-style: italic; color: var(--muted); margin-bottom: 1em; }
.species-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.species-facts li {
  background: var(--green-100); color: var(--green-800);
  border-radius: 99px; padding: 4px 12px; font-size: 0.86rem;
}
.fun-fact {
  margin: 0; padding: 12px 16px; font-size: 0.97rem;
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  background: rgba(224, 138, 46, 0.09);
}
.fun-fact strong { color: var(--accent-dark); }
@media (max-width: 860px) {
  .species { grid-template-columns: 1fr; }
  .species:nth-child(even) .species-media { order: 0; }
  .species-media img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* Thank-you */
.thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.thanks .card-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px; }
.thanks .card-icon svg { width: 36px; height: 36px; }

/* Legal text */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-900);
  color: #b9cbc3;
  padding: 64px 0 28px;
  font-size: 0.97rem;
}
.site-footer a { color: #e6efe9; text-decoration: none; }
.site-footer a:hover { color: #ffc98a; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h3 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-sub { color: #8fa89e; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.88rem; color: #8fa89e;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
