/* ================================================================
   Piotr Siegoczyński – styles.css
   Mobile-first | WCAG 2.2 | Dark/Light mode | IntersectionObserver
   ================================================================ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  /* Dark theme (default) */
  --bg:          #0a0a0f;
  --bg2:         #111118;
  --bg3:         #18181f;
  --surface:     #1e1e2a;
  --surface2:    #252536;
  --accent:      #e63329;
  --accent-h:    #ff4a3e;
  --gold:        #f5a623;
  --text:        #f0f0f5;
  --text-muted:  #9ca3af;
  --text-sub:    #6b7280;
  --border:      rgba(255,255,255,0.07);
  --nav-bg:      rgba(10,10,15,0.93);
  --focus:       #3b82f6;

  --font-h: 'Oswald', system-ui, -apple-system, sans-serif;
  --font-b: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --nav-h: 4rem;
  --max-w: 1200px;

  --sh-sm: 0 2px 8px rgba(0,0,0,.45);
  --sh-md: 0 4px 24px rgba(0,0,0,.55);
  --sh-lg: 0 8px 48px rgba(0,0,0,.65);
  --sh-acc: 0 4px 24px rgba(230,51,41,.25);

  --tr-f: .15s ease;
  --tr-m: .3s ease;
  --tr-s: .6s ease;
}

[data-theme="light"] {
  --bg:          #f4f4f8;
  --bg2:         #ffffff;
  --bg3:         #ececf2;
  --surface:     #ffffff;
  --surface2:    #f7f7fb;
  --text:        #0d0d14;
  --text-muted:  #4b5563;
  --text-sub:    #6b7280;
  --border:      rgba(0,0,0,0.09);
  --nav-bg:      rgba(244,244,248,0.93);
  --sh-sm: 0 2px 8px rgba(0,0,0,.1);
  --sh-md: 0 4px 24px rgba(0,0,0,.12);
  --sh-lg: 0 8px 48px rgba(0,0,0,.15);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  transition: background var(--tr-m), color var(--tr-m);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }
ul[class], ol[class] { list-style: none; }

/* ── Skip Link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--accent); color: #fff;
  padding: .5rem 1rem; border-radius: var(--r-sm);
  font-weight: 700; z-index: 10000;
  transition: top var(--tr-f);
}
.skip-link:focus { top: .75rem; }

/* ── Focus ──────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .02em;
}
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-accent { color: var(--accent); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }

/* ── Container ──────────────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Navigation ─────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: background var(--tr-m), box-shadow var(--tr-m);
}
.site-nav.scrolled { box-shadow: var(--sh-md); }

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%; gap: .75rem;
}
.nav-logo {
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 700;
  color: var(--text); flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

/* Mobile menu */
.nav-menu {
  display: none; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: .5rem 0;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  display: block; padding: .7rem 1.25rem;
  color: var(--text); font-family: var(--font-h);
  font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  border-left: 3px solid transparent;
  transition: color var(--tr-f), background var(--tr-f), border-color var(--tr-f);
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent); border-left-color: var(--accent);
  background: rgba(230,51,41,.06);
}

.nav-controls { display: flex; align-items: center; gap: .4rem; }
.btn-theme, .btn-lang, .btn-menu {
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  cursor: pointer; font-size: .8rem; font-family: var(--font-b);
  padding: .3rem .55rem;
  transition: border-color var(--tr-f), color var(--tr-f);
}
.btn-theme:hover, .btn-lang:hover, .btn-menu:hover {
  border-color: var(--accent); color: var(--accent);
}
.btn-menu {
  display: flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem;
}
.hamburger { display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--tr-f), opacity var(--tr-f);
}
.btn-menu[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.btn-menu[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.btn-menu[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop nav */
@media (min-width: 900px) {
  .nav-menu {
    display: flex !important; flex-direction: row;
    position: static; background: none; border: none; padding: 0;
  }
  .nav-menu a {
    padding: .45rem .7rem; border-left: none;
    border-bottom: 2px solid transparent; font-size: .82rem;
  }
  .nav-menu a:hover, .nav-menu a.active {
    background: none; border-left: none;
    border-bottom-color: var(--accent);
  }
  .btn-menu { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem;
  font-family: var(--font-h); font-size: .9rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; transition: all var(--tr-f);
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h); border-color: var(--accent-h); color: #fff;
  transform: translateY(-1px); box-shadow: var(--sh-acc);
}
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
}
.btn-sm { padding: .45rem 1.1rem; font-size: .78rem; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(230,51,41,.11) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(245,166,35,.06) 0%, transparent 50%);
}
/* Ring-line decoration */
.hero-lines {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-lines::before, .hero-lines::after {
  content: ''; position: absolute; background: var(--accent); opacity: .04;
}
.hero-lines::before { width: 2px; height: 100%; left: 34%; }
.hero-lines::after  { width: 100%; height: 2px; top: 67%; }

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-eyebrow {
  font-family: var(--font-h); font-size: .85rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .85rem;
  display: flex; align-items: center; gap: .6rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 2rem; height: 2px; background: var(--accent);
}
.hero h1 { margin-bottom: .75rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted); max-width: 540px; margin-bottom: 2rem;
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem;
}
.stat-num {
  font-family: var(--font-h); font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700; color: var(--accent); line-height: 1;
}
.stat-lbl {
  font-size: .75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── Sections ───────────────────────────────────────────────────── */
section { padding: 5rem 0; }
.section-dark { background: var(--bg2); }
.section-alt  { background: var(--bg3); }

.section-head { margin-bottom: 3rem; }
.section-eyebrow {
  font-family: var(--font-h); font-size: .82rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem;
}
.section-eyebrow::before {
  content: ''; display: block; width: 1.4rem; height: 2px; background: var(--accent);
}
.section-desc { color: var(--text-muted); max-width: 540px; }

/* ── Page hero (inner pages) ────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% 50%, rgba(230,51,41,.07) 0%, transparent 60%);
}
.breadcrumb {
  display: flex; gap: .4rem; align-items: center;
  font-size: .8rem; color: var(--text-sub); margin-bottom: .75rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-sub); transition: color var(--tr-f); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: .4; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 1.5rem;
  transition: transform var(--tr-m), box-shadow var(--tr-m), border-color var(--tr-m);
}
.card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-md);
  border-color: rgba(230,51,41,.28);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ── Badge ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-family: var(--font-h); font-size: .68rem;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; margin-left: .45rem; vertical-align: middle;
}
.badge-gold { background: var(--gold); color: #0a0a0f; }

/* ── Timeline ───────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent 95%);
}
.timeline-item { position: relative; padding-bottom: 3rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.37rem; top: .4rem;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--accent);
  transition: background var(--tr-f);
}
.timeline-item.highlight::before { background: var(--accent); }
.timeline-period {
  font-family: var(--font-h); font-size: .82rem;
  letter-spacing: .1em; color: var(--accent);
  text-transform: uppercase; margin-bottom: .2rem;
}
.timeline-title { font-family: var(--font-h); font-size: 1.2rem; margin-bottom: .4rem; }
.timeline-desc  { color: var(--text-muted); font-size: .93rem; }
.timeline-loc   { font-size: .8rem; color: var(--text-sub); margin-top: .4rem; }
@media (min-width: 768px) {
  .timeline { padding-left: 3rem; }
  .timeline-item::before { left: -3.37rem; }
}

/* ── Bio / Facts ────────────────────────────────────────────────── */
.bio-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .bio-grid { grid-template-columns: 1fr 2fr; } }

.facts-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.facts-box-title {
  font-family: var(--font-h); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted);
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.facts-dl { display: grid; grid-template-columns: auto 1fr; }
.facts-dl dt,
.facts-dl dd {
  padding: .7rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.facts-dl dt {
  font-family: var(--font-h); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); background: var(--surface2);
  white-space: nowrap;
}
.facts-dl dd { color: var(--text); }
.facts-dl dt:last-of-type, .facts-dl dd:last-of-type { border-bottom: none; }

.bio-section { margin-bottom: 2rem; }
.bio-section h3 { margin-bottom: .6rem; font-size: 1.25rem; }

/* ── Quote block ────────────────────────────────────────────────── */
.quote-block {
  position: relative; padding: 4rem 1.5rem;
  background: var(--bg2); border-left: 4px solid var(--accent);
  text-align: center; overflow: hidden;
}
.quote-block::before {
  content: '\201C'; position: absolute; top: -1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, serif; font-size: 9rem;
  color: var(--accent); opacity: .1; line-height: 1; pointer-events: none;
}
.quote-text {
  font-family: var(--font-h); font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  font-style: italic; max-width: 660px; margin: 0 auto .75rem;
  line-height: 1.45; color: var(--text);
}
.quote-author {
  font-size: .85rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .16em;
}

/* ── Photo Gallery ──────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  cursor: pointer; background: var(--surface); aspect-ratio: 4/3;
  border: none; padding: 0; display: block; width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--tr-m);
}
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), transparent);
  padding: 2rem 1rem .75rem; color: #fff; font-size: .83rem;
  opacity: 0; transition: opacity var(--tr-m);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.96);
  align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative; max-width: min(90vw, 960px); max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox-caption {
  color: rgba(255,255,255,.65); font-size: .88rem;
  margin-top: .65rem; text-align: center;
}
.lightbox-close {
  position: absolute; top: -2.8rem; right: 0;
  background: none; border: none; color: #fff;
  font-size: 1.6rem; cursor: pointer; padding: .4rem; line-height: 1;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-size: 1.4rem; cursor: pointer;
  padding: .7rem 1rem; border-radius: var(--r-sm);
  transition: background var(--tr-f);
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: -4.5rem; }
.lb-next { right: -4.5rem; }
@media (max-width: 640px) {
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
  .lightbox-inner { max-width: 100vw; }
}

/* ── Video gallery ──────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  transition: transform var(--tr-m), box-shadow var(--tr-m);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.video-thumb {
  position: relative; aspect-ratio: 16/9;
  background: var(--bg3); overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.38); transition: background var(--tr-f);
}
.video-play svg { width: 3rem; height: 3rem; color: #fff; }
.video-card:hover .video-play { background: rgba(230,51,41,.6); }
.video-info { padding: 1rem; }
.video-title { font-family: var(--font-h); font-size: .98rem; margin-bottom: .2rem; }
.video-desc  { font-size: .83rem; color: var(--text-muted); }

.video-iframe-wrap {
  position: relative; padding-top: 56.25%; background: #000;
}
.video-iframe-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}

/* ── Activities / Events ────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-muted);
  cursor: pointer; font-family: var(--font-h);
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .38rem 1rem; transition: all var(--tr-f);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.events-list { display: flex; flex-direction: column; gap: 1.25rem; }
.event-card {
  display: grid; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform var(--tr-m), box-shadow var(--tr-m);
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.event-img { aspect-ratio: 16/9; background: var(--bg3); overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 1.25rem; }
.event-meta {
  display: flex; flex-wrap: wrap; gap: .45rem;
  align-items: center; margin-bottom: .5rem;
}
.event-date { font-family: var(--font-h); font-size: .83rem; color: var(--accent); letter-spacing: .04em; }
.event-cat  {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); background: var(--surface2);
  padding: .18rem .5rem; border-radius: 100px;
}
.event-status {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: .18rem .5rem; border-radius: 100px;
}
.st-upcoming { background: rgba(230,51,41,.15); color: var(--accent); }
.st-soon     { background: rgba(245,166,35,.15); color: var(--gold); }
.st-ended    { background: var(--surface2);      color: var(--text-sub); }
.event-title { font-family: var(--font-h); font-size: 1.1rem; margin-bottom: .4rem; }
.event-city  { font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.event-desc  { font-size: .9rem; color: var(--text-muted); }

@media (min-width: 640px) {
  .event-card { grid-template-columns: 220px 1fr; }
  .event-img  { aspect-ratio: auto; }
}

/* ── Articles ───────────────────────────────────────────────────── */
.articles-list { display: flex; flex-direction: column; gap: .85rem; }
.article-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; color: var(--text);
  transition: transform var(--tr-m), box-shadow var(--tr-m), border-color var(--tr-m);
}
.article-card:hover {
  transform: translateX(4px); box-shadow: var(--sh-sm);
  border-color: rgba(230,51,41,.28);
}
.article-icon {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem;
  background: rgba(230,51,41,.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.article-src   { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .2rem; }
.article-title { font-family: var(--font-h); font-size: 1rem; color: var(--text); margin-bottom: .2rem; }
.article-desc  { font-size: .83rem; color: var(--text-muted); }
.article-date  { font-size: .72rem; color: var(--text-sub); margin-top: .2rem; }

/* ── Initiatives ────────────────────────────────────────────────── */
.initiative-card { border-left: 3px solid var(--accent); }
.init-icon  { font-size: 2rem; margin-bottom: .85rem; }
.init-tags  { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .85rem; }
.tag {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  padding: .15rem .5rem; border-radius: 100px;
  background: var(--surface2); color: var(--text-sub);
}

.coop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.coop-card {
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  border-top: 3px solid var(--gold);
}
.coop-title { font-family: var(--font-h); font-size: 1.05rem; margin-bottom: .5rem; }

/* ── Contact Form ───────────────────────────────────────────────── */
.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 2fr; } }

.contact-info-item { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-icon {
  flex-shrink: 0; width: 2.4rem; height: 2.4rem;
  background: rgba(230,51,41,.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.1rem;
}

.form-group  { margin-bottom: 1.35rem; }
.form-label  {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: .4rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.form-req    { color: var(--accent); margin-left: .15rem; }
.form-input, .form-select, .form-textarea {
  display: block; width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font-b); font-size: 1rem;
  padding: .7rem 1rem;
  transition: border-color var(--tr-f), box-shadow var(--tr-f);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230,51,41,.14);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-error {
  font-size: .78rem; color: var(--accent); margin-top: .3rem; display: none;
}
.form-error.vis { display: block; }
.form-check-label {
  display: flex; gap: .75rem; align-items: flex-start;
  cursor: pointer; font-size: .88rem; color: var(--text-muted); line-height: 1.5;
}
.form-check {
  flex-shrink: 0; width: 1.2rem; height: 1.2rem;
  margin-top: .12rem; accent-color: var(--accent);
}
.form-note { font-size: .78rem; color: var(--text-sub); margin-top: .85rem; }

.form-success, .form-fail {
  display: none; padding: 1.25rem; border-radius: var(--r-md); margin-top: 1rem;
}
.form-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #22c55e; }
.form-fail    { background: rgba(230,51,41,.1); border: 1px solid rgba(230,51,41,.3); color: var(--accent); }
.form-success.vis, .form-fail.vis { display: block; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 4rem 0 1.5rem;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo { font-family: var(--font-h); font-size: 1.3rem; margin-bottom: .4rem; }
.footer-logo span { color: var(--accent); }
.footer-tag  { color: var(--text-muted); font-size: .88rem; margin-bottom: 1rem; }
.footer-social { display: flex; gap: .6rem; flex-wrap: wrap; }
.soc-link {
  display: flex; align-items: center; gap: .35rem; font-size: .82rem;
  color: var(--text-muted); padding: .35rem .7rem;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: color var(--tr-f), border-color var(--tr-f);
}
.soc-link:hover { color: var(--accent); border-color: var(--accent); }

.footer-nav-title {
  font-family: var(--font-h); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: .85rem;
}
.footer-nav-list { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav-list a {
  font-size: .88rem; color: var(--text-muted);
  transition: color var(--tr-f);
}
.footer-nav-list a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--text-sub);
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-sub); transition: color var(--tr-f); }
.footer-legal a:hover { color: var(--accent); }

/* ── Scroll animations ──────────────────────────────────────────── */
.anim-fade {
  opacity: 0; transform: translateY(1.75rem);
  transition: opacity var(--tr-s), transform var(--tr-s);
}
.anim-fade.in { opacity: 1; transform: translateY(0); }
.anim-left {
  opacity: 0; transform: translateX(-2rem);
  transition: opacity var(--tr-s), transform var(--tr-s);
}
.anim-left.in { opacity: 1; transform: translateX(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ── Utilities ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.img-placeholder {
  background: var(--surface); border: 2px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-sub); font-size: .82rem; text-align: center; min-height: 200px;
  border-radius: var(--r-md);
}
.prose p { margin-bottom: 1.1rem; color: var(--text-muted); }
.prose p:last-child { margin-bottom: 0; }

/* ── prefers-reduced-motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .anim-fade, .anim-left { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── Print ──────────────────────────────────────────────────────── */
@media print {
  .site-nav, .site-footer, .btn, .filter-bar, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
}
