/*
Theme Name: SNOV Foundation
Description: Custom Ukrainian theme for Благодійний фонд «СНОВ».
Version: 1.0.0
Text Domain: snov
*/
:root {
  --ink: #081119;
  --paper: #f7f4ef;
  --line: #c7c9c5;
  --accent: #d7fa2c;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
.site-header {
  height: 66px;
  background: #071018;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 8px 4vw;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-menu {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0;
}
.header-menu:before {
  content: "☰";
  font-size: 20px;
  vertical-align: -2px;
  margin-right: 10px;
}
.brand {
  margin-left: auto;
  height: 50px;
  display: flex;
  align-items: center;
}
.brand img {
  max-height: 50px;
  width: auto;
  display: block;
}
.nav-drawer {
  display: none;
  position: absolute;
  left: 0;
  top: 66px;
  background: #071018;
  width: 100%;
  padding: 22px 4vw;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}
.nav-drawer.is-open {
  display: block;
}
.nav-drawer a {
  display: block;
  padding: 8px 0;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.hero {
  min-height: 600px;
  background: #071018;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 7vw 6vw;
  color: #fff;
  overflow: hidden;
}
.hero__slides,
.hero__slides:after {
  position: absolute;
  inset: 0;
}
.hero__slides:after {
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.12));
}
.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: snov-slide 16s infinite;
}
.hero__slide:nth-child(2) {
  animation-delay: 4s;
}
.hero__slide:nth-child(3) {
  animation-delay: 8s;
}
.hero__slide:nth-child(4) {
  animation-delay: 12s;
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #071018;
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(44px, 7.3vw, 106px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 0 0 26px;
}
.hero p {
  font-size: 19px;
  max-width: 570px;
  margin: 0 0 32px;
}
.button {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 13px 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 0.2s;
}
.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #071018;
}
.section {
  padding: 80px 6vw;
  border-top: 1px solid var(--line);
}
.section--dark {
  background: #071018;
  color: #fff;
  border: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.lead {
  grid-column: span 7;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
}
.copy {
  grid-column: 9 / span 4;
}
.card {
  grid-column: span 4;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}
.card h3 {
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 400;
}
.card p {
  margin: 0;
}
.feature-image {
  min-height: 480px;
  background: center/cover no-repeat;
}
.cta {
  padding: 90px 6vw;
  background: var(--accent);
  color: #071018;
}
.cta h2 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.05em;
  margin: 0 0 28px;
}
.site-footer {
  background: #071018;
  color: #fff;
  padding: 45px 4vw 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  width: 190px;
  max-width: 100%;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}
.footer-meta {
  margin-top: 42px;
  border-top: 1px solid #526068;
  padding-top: 16px;
  font-size: 12px;
  color: #cbd1d4;
}
.page-hero {
  padding: 110px 6vw 70px;
  background: #071018;
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(46px, 7vw, 90px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
}
.entry {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 6vw;
}
.entry h2 {
  font-size: 32px;
  font-weight: 400;
}
.post-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 6vw 90px;
}
.post {
  border-top: 1px solid var(--ink);
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(210px, 32%) 1fr;
  gap: 28px;
  align-items: center;
}
.post-thumb {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #071018;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-thumb:hover img {
  transform: scale(1.04);
}
.post h2 {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.post time {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.entry-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #071018;
  margin: 0 0 32px;
}
.legal {
  font-size: 15px;
}
.legal p {
  max-width: 720px;
}
@keyframes snov-slide {
  0%,
  23% {
    opacity: 1;
  }
  25%,
  98% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    animation: none;
  }
  .hero__slide:not(:first-child) {
    display: none;
  }
}
@media (max-width: 720px) {
  .site-header {
    height: 60px;
  }
  .nav-drawer {
    top: 60px;
  }
  .brand,
  .brand img {
    max-height: 44px;
  }
  .hero {
    min-height: 520px;
  }
  .grid,
  .footer-grid {
    display: block;
  }
  .lead,
  .copy,
  .card {
    margin: 0 0 32px;
  }
  .section,
  .cta {
    padding: 55px 6vw;
  }
  .feature-image {
    min-height: 320px;
  }
  .post {
    display: block;
  }
  .post-thumb {
    margin-bottom: 20px;
  }
  .footer-grid > div {
    margin-bottom: 30px;
  }
}

.page-hero--image {
  min-height: 510px;
  position: relative;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-size: cover;
}
.about-hero { background-position: 35% 22%; }
.partners-hero { background-position: 55% 28%; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.15)); }
.page-hero__content { position: relative; max-width: 760px; }
.page-hero__content > p:last-child { max-width: 590px; font-size: 19px; margin: 24px 0 0; }
.about-approach-image { grid-column: 1 / span 7; grid-row: span 2; min-height: 450px; background: center / cover no-repeat; }
.partner-form-section { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(420px, 1.2fr); gap: 70px; padding: 90px 6vw; background: var(--accent); color: var(--ink); }
.partner-form-intro h2 { margin: 0 0 18px; font-size: clamp(38px, 4.5vw, 64px); font-weight: 400; line-height: .98; letter-spacing: -.05em; }
.partner-form-intro p:last-child { max-width: 460px; }
.partner-form-wrap { background: var(--paper); padding: 30px; }
.partner-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.partner-form label { display: grid; gap: 7px; font-size: 13px; letter-spacing: .02em; }
.partner-form input, .partner-form textarea { width: 100%; border: 1px solid #687178; border-radius: 0; background: #fff; color: var(--ink); padding: 11px 12px; font: inherit; }
.partner-form textarea { resize: vertical; }
.partner-form__wide { grid-column: 1 / -1; }
.partner-form .button { justify-self: start; background: var(--ink); color: var(--white); cursor: pointer; }
.partner-form .button:hover { background: var(--accent); color: var(--ink); }
.form-notice { margin: 0 0 22px; padding: 12px 14px; background: #e0f5a2; }
.form-notice--error { background: #ffd9d6; }
@media (max-width: 720px) { .page-hero--image { min-height: 430px; } .partner-form-section { display: block; padding: 55px 6vw; } .partner-form-intro { margin-bottom: 34px; } .partner-form-wrap { padding: 20px; } .partner-form { grid-template-columns: 1fr; } .partner-form__wide { grid-column: auto; } }
@media (max-width: 720px) { .about-approach-image { min-height: 300px; margin-bottom: 32px; } }

/* Fill the wide feature block edge-to-edge, keeping the group in frame. */
.feature-image {
  background-size: cover;
  background-position: center 72%;
  background-color: #071018;
}
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Prominent, proportional header logo. */
.site-header {
  height: 116px;
}
.brand img {
  max-height: 100px;
  width: auto;
  display: block;
}
.nav-drawer {
  top: 116px;
}
@media (max-width: 720px) {
  .site-header {
    height: 82px;
  }
  .nav-drawer {
    top: 82px;
  }
  .brand img {
    max-height: 68px;
    width: auto;
    display: block;
  }
}

/* Compact navigation and page headings; content remains visible without JS. */
.site-header { height: 76px; }
.brand img { max-height: 60px; }
.nav-drawer { top: 76px; }
.page-hero { padding: 68px 6vw 50px; }
.page-hero--image { min-height: 410px; }
@media (max-width: 720px) { .site-header { height: 66px; } .brand img { max-height: 52px; } .nav-drawer { top: 66px; } .page-hero { padding: 56px 6vw 42px; } .page-hero--image { min-height: 360px; } }

/* Partner CTA: a distinct invitation card rather than a single flat colour block. */
.partner-form-section {
  grid-template-columns: minmax(280px, .76fr) minmax(460px, 1.24fr);
  gap: 0;
  padding: clamp(34px, 5vw, 72px);
  background: #071018;
  position: relative;
  overflow: hidden;
}
.partner-form-section:before { content: ''; position: absolute; width: 38vw; height: 38vw; min-width: 420px; min-height: 420px; border: 1px solid rgba(215,250,44,.35); border-radius: 50%; left: -18vw; bottom: -24vw; pointer-events: none; }
.partner-form-intro { position: relative; z-index: 1; padding: clamp(34px, 5vw, 72px); background: var(--accent); display: flex; flex-direction: column; justify-content: space-between; min-height: 510px; }
.partner-form-intro .eyebrow { font-weight: 700; margin-bottom: 48px; }
.partner-form-intro h2 { max-width: 530px; font-size: clamp(44px, 5vw, 76px); }
.partner-form-intro p:last-child { margin: 40px 0 0; font-size: 17px; line-height: 1.45; }
.partner-form-intro p:last-child:before { content: '01'; display: block; border-top: 1px solid currentColor; padding-top: 13px; margin-bottom: 14px; font-size: 12px; letter-spacing: .15em; }
.partner-form-wrap { position: relative; z-index: 1; margin: clamp(16px, 3vw, 42px) 0 clamp(16px, 3vw, 42px) clamp(16px, 0vw, 0px); padding: clamp(28px, 4vw, 54px); background: #f7f4ef; box-shadow: 16px 16px 0 rgba(215,250,44,.9); }
.partner-form-wrap:before { content: 'СТВОРИМО ЗМІНИ РАЗОМ'; display: block; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid #aab0ad; font-size: 11px; letter-spacing: .15em; font-weight: 700; }
.partner-form { gap: 22px; }
.partner-form label { gap: 9px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.partner-form input, .partner-form textarea { border: 0; border-bottom: 1px solid #657078; background: transparent; padding: 13px 0; transition: border-color .2s, background .2s; }
.partner-form textarea { border: 1px solid #657078; padding: 14px; min-height: 130px; }
.partner-form input:focus, .partner-form textarea:focus { outline: 0; border-color: var(--ink); background: #fff; }
.partner-form .button { padding: 17px 26px; background: var(--ink); border-color: var(--ink); letter-spacing: .12em; }
.partner-form .button:hover { background: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) { .partner-form-section { padding: 20px; } .partner-form-intro { min-height: 0; padding: 34px 28px; } .partner-form-intro .eyebrow { margin-bottom: 28px; } .partner-form-intro p:last-child { margin-top: 28px; } .partner-form-wrap { margin: 0; padding: 28px; box-shadow: 8px 8px 0 rgba(215,250,44,.9); } }

/* Cropped header asset fills the existing compact header without adding height. */
.site-header .brand { height: 56px; }
.site-header .brand img { height: 46px; max-height: 46px; width: auto; max-width: 280px; }
.site-header .header-menu { font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.site-header .header-menu:before { font-size: 24px; margin-right: 12px; }
@media (max-width: 720px) { .site-header .brand { height: 48px; } .site-header .brand img { height: 38px; max-height: 38px; max-width: 230px; } .site-header .header-menu { font-size: 13px; } .site-header .header-menu:before { font-size: 22px; } }

/* News archive */
.news-hero { position: relative; overflow: hidden; }
.news-hero:after { content: 'SNOV'; position: absolute; right: 5vw; bottom: -42px; color: rgba(255,255,255,.06); font-size: clamp(120px, 20vw, 330px); font-weight: 700; letter-spacing: -.1em; pointer-events: none; }
.news-hero > * { position: relative; z-index: 1; }
.news-hero > p:last-child { max-width: 510px; margin: 22px 0 0; font-size: 18px; }
.post-list { max-width: 1240px; padding-top: 0; }
.news-list-heading { display: flex; align-items: start; justify-content: space-between; gap: 30px; padding: 42px 0 28px; border-bottom: 1px solid var(--ink); }
.news-list-heading .eyebrow { margin: 0; font-weight: 700; }
.news-list-heading > p:last-child { max-width: 450px; margin: 0; }
.post { gap: 44px; padding: 38px 0; transition: background .25s, padding .25s; }
.post--featured { grid-template-columns: minmax(360px, 1.1fr) minmax(300px, .9fr); border-top: 0; padding: 48px 0 52px; }
.post--featured .post-thumb { aspect-ratio: 4 / 3; }
.post:not(.post--featured) .post-thumb { aspect-ratio: 3 / 2; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.post-meta span { padding: 5px 8px; background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.post-meta time { margin: 0; color: #4c585e; }
.post--featured h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: .97; margin: 0 0 18px; }
.post h2 a { background-image: linear-gradient(currentColor, currentColor); background-position: 0 100%; background-repeat: no-repeat; background-size: 0 1px; transition: background-size .3s ease; }
.post:hover h2 a { background-size: 100% 1px; }
.post-copy > p { max-width: 520px; margin: 0 0 23px; font-size: 17px; }
.post .button { padding: 11px 16px; }
.post .button span { font-size: 18px; margin-left: 8px; vertical-align: -1px; }
@media (max-width: 720px) { .news-list-heading { display: block; padding: 30px 0 20px; } .news-list-heading > p:last-child { margin-top: 14px; } .post, .post--featured { display: block; padding: 32px 0; } .post-thumb, .post--featured .post-thumb, .post:not(.post--featured) .post-thumb { aspect-ratio: 4 / 3; margin-bottom: 22px; } .post--featured h2 { font-size: clamp(34px, 11vw, 52px); } }

.entry .entry-lead { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 32px; }
.entry h2 { margin-top: 48px; margin-bottom: 16px; letter-spacing: -.03em; }
.entry ul { padding: 0; margin: 24px 0 32px; list-style: none; }
.entry li { padding: 15px 0 15px 28px; border-top: 1px solid var(--line); position: relative; }
.entry li:before { content: '→'; position: absolute; left: 0; font-weight: 700; }

/* About: core directions */
.impact-section { padding-top: 48px; padding-bottom: 56px; background: #071018; }
.impact-heading { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 35px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.28); }
.impact-heading .eyebrow { margin: 0; color: var(--accent); font-weight: 700; }
.impact-heading > p:last-child { max-width: 440px; margin: 0; color: #d9e0e3; }
.impact-section .grid { gap: 14px; }
.impact-section .card { position: relative; min-height: 255px; margin: 0; padding: 25px 25px 28px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.03); transition: background .25s ease, transform .25s ease, border-color .25s ease; }
.impact-section .card:before { content: ''; position: absolute; left: 25px; right: 25px; top: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.impact-section .card:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(255,255,255,.08); }
.impact-section .card:hover:before { transform: scaleX(1); }
.impact-number { display: block; margin-bottom: 42px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.impact-section .card h3 { margin-bottom: 13px; color: #fff; font-size: clamp(28px, 2.6vw, 42px); }
.impact-section .card p { max-width: 340px; color: #d9e0e3; }
@media (max-width: 720px) { .impact-section { padding-top: 38px; } .impact-heading { display: block; } .impact-heading > p:last-child { margin-top: 12px; } .impact-section .card { min-height: 0; margin-bottom: 12px; } .impact-number { margin-bottom: 25px; } }
