/* =========================================================
   МРІЮ.ДІЮ — стилі
   Шрифт: Open Sans (ідентично оригіналу Google Sites)
   Палітра витягнута під типовий м'який-теплий look сайту
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f3ee;
  --color-text: #222222;
  --color-muted: #5b5b5b;
  --color-primary: #d64a2a;      /* теплий акцент (кнопки, підкреслення) */
  --color-primary-dark: #b73b1f;
  --color-accent: #2d4a3e;       /* глибокий зелений для заголовків */
  --color-border: #e6e1d8;

  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,.12);

  --container: 1160px;
  --space: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

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

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: .02em;
}
.brand__logo { width: 36px; height: 36px; object-fit: contain; }
.brand__name { font-size: 18px; }

.primary-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.primary-nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
}
.primary-nav a:hover { color: var(--color-primary); }

.nav__cta { white-space: nowrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  border: 0;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn--lg { padding: 16px 30px; font-size: 17px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  color: #fff;
  overflow: hidden;
}
.hero__image {
  position: absolute; inset: 0;
  background-image: url("/assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__overlay {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  display: flex;
  align-items: flex-end;
}
.hero__content {
  padding: 70px 24px 90px;
  max-width: 860px;
}
.hero__title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__subtitle {
  font-size: clamp(18px, 2.2vw, 26px);
  max-width: 720px;
  margin: 0 0 28px;
  color: #f7f3ec;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 80px 0;
}
.section--alt { background: var(--color-bg-alt); }

.section__title {
  font-size: clamp(28px, 3vw, 42px);
  color: var(--color-accent);
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: .02em;
}
.section__lead {
  font-size: 19px;
  max-width: 820px;
  color: var(--color-muted);
  margin: 0 auto 40px;
  text-align: center;
}
#who .section__title,
#mission .section__title { text-align: center; }

#who .section__lead { text-align: center; }

/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.card__body { padding: 26px 26px 30px; }
.card__title {
  color: var(--color-accent);
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 700;
}
.card__body p { margin: 0; color: var(--color-muted); }

/* ---------- SPLIT SECTIONS ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.split__text p { color: var(--color-muted); font-size: 18px; }

.stats {
  list-style: none;
  padding: 0;
  margin: 28px 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
}
.stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border-left: 4px solid var(--color-primary);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.stats__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
}
.stats__label { color: var(--color-muted); font-size: 15px; }

.impact__closing { margin-top: 18px; font-size: 19px; color: var(--color-text); }

/* ---------- COMMUNITY / PATREON BANNER ---------- */
.community {
  position: relative;
  padding: 0;
  color: #fff;
  overflow: hidden;
}
.community__image {
  position: absolute; inset: 0;
  background-image: url("/assets/images/community.jpg");
  background-size: cover;
  background-position: center;
}
.community__overlay {
  position: relative;
  background: linear-gradient(180deg, rgba(45,74,62,.75), rgba(45,74,62,.9));
  padding: 90px 0;
}
.community__content { text-align: center; max-width: 780px; margin: 0 auto; }
.community__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 18px;
}
.community__text {
  font-size: 18px;
  margin: 0 0 28px;
  color: #f3ead9;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: #14221c;
  color: #c9d4cf;
  padding: 40px 0 30px;
  margin-top: 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}
.footer__brand img { width: 32px; height: 32px; }
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  transition: background .15s ease, transform .15s ease;
}
.footer__social a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.footer__social img { width: 20px; height: 20px; }
.footer__copy { margin: 0; font-size: 14px; color: #8fa097; width: 100%; text-align: center; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split__media { order: 0; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { min-height: 68vh; }
  .hero__content { padding: 40px 20px 56px; }
}

@media (max-width: 520px) {
  .nav__cta { display: none; }
}
