/* ============================================================
   Terrapulse — Design System
   BEM naming throughout. Mobile-first, responsive.
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --color-forest:      #1f4d3a;
  --color-forest-dark: #143226;
  --color-moss:        #3a7d5d;
  --color-leaf:        #6ca583;
  --color-ocean:       #1d5b7a;
  --color-ocean-light: #3a8bb0;
  --color-sky:         #cfe6e3;
  --color-sand:        #f4f1e8;
  --color-cream:       #fbfaf6;
  --color-ink:         #1c2620;
  --color-ash:         #5b6b62;
  --color-line:        #e0ddd2;
  --color-white:       #ffffff;

  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(20, 50, 38, 0.08);
  --shadow-md: 0 10px 30px rgba(20, 50, 38, 0.14);
  --shadow-lg: 0 20px 50px rgba(20, 50, 38, 0.20);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 0.2s;
  --t-med: 0.35s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
  overflow-x: hidden;
}

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

a { color: var(--color-ocean); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--color-forest-dark);
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--color-ocean-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-forest-dark);
  color: #fff;
  padding: 12px 18px;
  z-index: 1200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Section primitives ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--color-sand); }
.section--forest { background: var(--color-forest-dark); color: var(--color-sky); }
.section--forest h2,
.section--forest h3 { color: #fff; }

.section__head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-moss);
  margin-bottom: 14px;
}
.section--forest .section__eyebrow { color: var(--color-leaf); }
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section__lead { font-size: 1.1rem; color: var(--color-ash); }
.section--forest .section__lead { color: var(--color-sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-moss);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-forest); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-moss);
}
.btn--outline:hover { background: var(--color-moss); color: #fff; }

.btn--block { width: 100%; justify-content: center; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              height var(--t-med) var(--ease);
}
.header--scrolled {
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 64px;
}
/* On interior pages (no hero) header always solid */
.header--solid {
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  transition: color var(--t-med) var(--ease);
}
.header--scrolled .header__brand,
.header--solid .header__brand { color: var(--color-forest-dark); }
.header__brand:hover { text-decoration: none; }

.header__logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--color-leaf), var(--color-ocean));
  display: grid;
  place-items: center;
  flex: none;
}
.header__logo::after {
  content: "";
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { text-decoration: none; background: rgba(255,255,255,0.16); }
.nav__link--active { background: rgba(255,255,255,0.2); }
.header--scrolled .nav__link,
.header--solid .nav__link { color: var(--color-ink); }
.header--scrolled .nav__link:hover,
.header--solid .nav__link:hover { background: rgba(31,77,58,0.1); color: var(--color-forest-dark); }
.header--scrolled .nav__link--active,
.header--solid .nav__link--active { background: rgba(31,77,58,0.12); color: var(--color-forest-dark); }

.nav__cta { margin-left: 10px; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1100;
}
.burger__bar {
  display: block;
  width: 26px; height: 2.5px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease),
              opacity var(--t-fast) var(--ease),
              background var(--t-med) var(--ease);
}
.header--scrolled .burger__bar,
.header--solid .burger__bar { background: var(--color-forest-dark); }
.burger.is-open .burger__bar { background: #fff; }
.burger.is-open .burger__bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.is-open .burger__bar:nth-child(2) { opacity: 0; }
.burger.is-open .burger__bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: -2;
  will-change: transform;
}
.hero__img {
  width: 100%; height: 120%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20,50,38,0.55) 0%, rgba(20,50,38,0.35) 40%, rgba(20,50,38,0.75) 100%);
}
.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 120px 22px 60px;
}
.hero__content { max-width: 720px; }
.hero__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-sky);
  margin-bottom: 18px;
}
.hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 0.4em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero__text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
}
.hero__scroll-dot {
  display: block;
  width: 22px; height: 36px;
  margin: 0 auto 8px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-dot::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; }
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  position: relative;
  margin-top: 0;
  padding: calc(var(--header-h) + 70px) 0 70px;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.page-banner__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,50,38,0.6), rgba(29,91,122,0.7));
}
.page-banner__title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.page-banner__text { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,0.92); font-size: 1.1rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.9); }

/* ============================================================
   Mission / Intro
   ============================================================ */
.mission { display: grid; gap: 40px; align-items: center; }
.mission__text p { font-size: 1.12rem; color: var(--color-ash); }
.mission__figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mission__figure img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.stat {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.stat__num { font-family: var(--font-head); font-size: 2rem; color: var(--color-moss); }
.stat__label { font-size: 0.9rem; color: var(--color-ash); }

/* ============================================================
   Topics grid
   ============================================================ */
.topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.topic-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.topic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); text-decoration: none; }
.topic-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.topic-card:hover .topic-card__img { transform: scale(1.07); }
.topic-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,50,38,0) 30%, rgba(20,50,38,0.85) 100%);
}
.topic-card__body { position: relative; z-index: 1; padding: 26px; }
.topic-card__title { color: #fff; font-size: 1.45rem; margin-bottom: 6px; }
.topic-card__text { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin: 0; }

/* ============================================================
   Articles grid
   ============================================================ */
.articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.article-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.article-card__media { overflow: hidden; aspect-ratio: 16 / 10; }
.article-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.article-card:hover .article-card__img { transform: scale(1.06); }
.article-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-moss);
  background: rgba(108,165,131,0.16);
  padding: 4px 11px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.article-card__title { font-size: 1.25rem; margin-bottom: 8px; }
.article-card__title a { color: var(--color-forest-dark); }
.article-card__title a:hover { color: var(--color-moss); text-decoration: none; }
.article-card__excerpt { color: var(--color-ash); font-size: 0.97rem; margin-bottom: 16px; }
.article-card__meta {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--color-ash);
  display: flex;
  gap: 8px;
  align-items: center;
}
.article-card__readmore { color: var(--color-moss); font-weight: 600; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.cta-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(31,77,58,0.85), rgba(29,91,122,0.8)); }
.cta-band__inner { padding: 80px 22px; max-width: 720px; margin: 0 auto; }
.cta-band__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band__text { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 28px; }

/* ============================================================
   Values / Team (about)
   ============================================================ */
.values { display: grid; grid-template-columns: 1fr; gap: 24px; }
.value {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-moss);
}
.value__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(108,165,131,0.18);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.value__title { font-size: 1.2rem; }
.value__text { color: var(--color-ash); margin: 0; font-size: 0.97rem; }

.team { display: grid; grid-template-columns: 1fr; gap: 28px; }
.member {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.member__media { aspect-ratio: 1 / 1; overflow: hidden; }
.member__img { width: 100%; height: 100%; object-fit: cover; }
.member__body { padding: 20px; }
.member__name { font-size: 1.15rem; margin-bottom: 2px; }
.member__role { color: var(--color-moss); font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.member__bio { color: var(--color-ash); font-size: 0.9rem; margin: 0; }

/* ============================================================
   Topics page filters
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-ash);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.filter:hover { border-color: var(--color-moss); color: var(--color-forest); }
.filter--active { background: var(--color-moss); border-color: var(--color-moss); color: #fff; }

/* ============================================================
   Article body
   ============================================================ */
.article {
  max-width: 760px;
  margin: 0 auto;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--color-ash);
  font-size: 0.9rem;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}
.article__author { display: flex; align-items: center; gap: 10px; }
.article__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article__lede { font-size: 1.25rem; color: var(--color-forest); font-family: var(--font-head); line-height: 1.5; }
.article__figure { margin: 36px 0; }
.article__figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article__caption { font-size: 0.85rem; color: var(--color-ash); margin-top: 10px; text-align: center; }
.article h2 { font-size: 1.7rem; margin-top: 40px; }
.article h3 { font-size: 1.3rem; margin-top: 28px; }
.article blockquote {
  margin: 32px 0;
  padding: 18px 26px;
  border-left: 4px solid var(--color-moss);
  background: var(--color-sand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--color-forest);
}
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0; }
.article__tag {
  font-size: 0.8rem; padding: 5px 14px; border-radius: 50px;
  background: var(--color-sand); color: var(--color-ash); font-weight: 600;
}

/* ============================================================
   Forms (contact)
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.form { display: grid; gap: 18px; }
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-weight: 600; font-size: 0.92rem; color: var(--color-forest-dark); }
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.97rem;
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-moss);
  box-shadow: 0 0 0 3px rgba(108,165,131,0.25);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__hint { font-size: 0.8rem; color: var(--color-ash); }
.form__status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(108,165,131,0.16);
  color: var(--color-forest);
  font-weight: 600;
}
.form__status.is-visible { display: block; }
.form__checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--color-ash); }
.form__checkbox input { margin-top: 4px; }

.info-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.info-list__item { display: flex; gap: 14px; }
.info-list__icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(29,91,122,0.14);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.info-list__label { font-weight: 700; color: var(--color-forest-dark); display: block; font-size: 0.9rem; }
.info-list__value { color: var(--color-ash); font-size: 0.95rem; }
.info-list__value a { color: var(--color-ocean); }

.map-frame { border-radius: var(--radius); overflow: hidden; margin-top: 24px; box-shadow: var(--shadow-sm); }
.map-frame iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ============================================================
   Legal / prose pages
   ============================================================ */
.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 { font-size: 1.55rem; margin-top: 40px; }
.prose h3 { font-size: 1.2rem; margin-top: 26px; }
.prose p, .prose li { color: var(--color-ink); }
.prose__updated { color: var(--color-ash); font-style: italic; margin-bottom: 28px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border: 1px solid var(--color-line); }
.prose th { background: var(--color-sand); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-forest-dark);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.footer__about { font-size: 0.95rem; max-width: 320px; }
.footer__col-title { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 16px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__link { color: rgba(255,255,255,0.78); font-size: 0.93rem; }
.footer__link:hover { color: #fff; }
.footer__contact-item { font-size: 0.93rem; margin-bottom: 8px; }
.footer__contact-item a { color: rgba(255,255,255,0.85); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.footer__legal a { color: rgba(255,255,255,0.78); }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1300;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  max-width: 880px;
  margin: 0 auto;
  transform: translateY(160%);
  transition: transform var(--t-med) var(--ease);
  border: 1px solid var(--color-line);
}
.cookie.is-visible { transform: translateY(0); }
.cookie__title { font-size: 1.1rem; margin-bottom: 6px; }
.cookie__text { font-size: 0.9rem; color: var(--color-ash); margin-bottom: 16px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie__actions .btn { padding: 10px 20px; font-size: 0.9rem; }

.cookie-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}
.cookie-settings.is-open { display: block; }
.cookie-option { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.cookie-option__label { font-weight: 700; font-size: 0.92rem; }
.cookie-option__desc { font-size: 0.82rem; color: var(--color-ash); margin: 0; }
.cookie-option input { margin-top: 4px; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 600px) {
  .topics { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .mission { grid-template-columns: 1.1fr 0.9fr; }
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .topics--four { grid-template-columns: repeat(4, 1fr); }
  .articles { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 859px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82%, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 20px) 26px 40px;
    background: var(--color-forest-dark);
    transform: translateX(100%);
    transition: transform var(--t-med) var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__link { color: #fff; padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav__link:hover, .nav__link--active { background: rgba(255,255,255,0.12); color: #fff; }
  .nav__cta { margin: 18px 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(20,50,38,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }
}
