/* NGO BESS — light UI aligned with BESS Ukraine logo (white canvas, blue / orange / teal accents) */

:root {
  --bg-page: #ffffff;
  --bg-raised: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --warm: #ea580c;
  --warm-dim: #c2410c;
  --cool: #0d9488;
  --cool-dim: #0f766e;
  --link: #0369a1;
  --link-hover: #c2410c;
  --accent-line: linear-gradient(135deg, #f59e0b 0%, #ea580c 40%, #0369a1 100%);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: #fbbf24;
  color: #0f172a;
  font-weight: 600;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--warm-dim), var(--warm));
  color: #ffffff;
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
  color: #ffffff;
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: #94a3b8;
  color: var(--link);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.nav-cta {
  flex-shrink: 0;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(ellipse at 25% 15%, rgba(3, 105, 161, 0.08), transparent 55%),
    radial-gradient(ellipse at 75% 35%, rgba(234, 88, 12, 0.07), transparent 52%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cool-dim);
  margin: 0 0 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--accent-line);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
}

.hero-card img {
  width: min(280px, 100%);
  border-radius: 12px;
  margin-inline: auto;
}

/* Sections */

.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 65ch;
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card-prompt {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid rgba(3, 105, 161, 0.35);
  padding-left: 0.85rem;
}

.card-accent {
  border-color: rgba(3, 105, 161, 0.22);
  box-shadow: 0 0 0 1px rgba(3, 105, 161, 0.06);
}

.subsection-title {
  margin: 2rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Pills (values, news topics) */

.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.65rem;
}

.pill-list li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

/* Check lists (membership) */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--cool);
  border-bottom: 2px solid var(--cool);
  transform: rotate(-45deg);
}

/* Feature grid (activities, events) */

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 620px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.65rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(3, 105, 161, 0.14));
  color: var(--link);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Benefit grid (why BESS) */

.benefit-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: rgba(13, 148, 136, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.benefit-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cool-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.benefit-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Tile grid (projects, analytics, partners) */

.tile-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tile {
  position: relative;
  padding: 1.1rem 1.25rem 1.1rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent-line);
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

/* CTA row */

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-block--bare {
  background: transparent;
  border: 0;
  padding: 0;
  max-width: none;
}

/* Topics */

.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.topic-card:hover {
  border-color: rgba(234, 88, 12, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.topic-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--warm-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.topic-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.platforms {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.platforms--media {
  margin-top: 1.75rem;
}

.platforms-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.platform-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.platform-links a {
  font-weight: 600;
}

/* Social */

.social-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

.social-card:hover {
  border-color: rgba(3, 105, 161, 0.25);
  background: var(--bg-alt);
}

.social-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.social-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.social-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(3, 105, 161, 0.15));
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.whatsapp-note {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 65ch;
}

/* CTA */

.cta-section {
  text-align: center;
}

.cta-inner .section-intro {
  margin-inline: auto;
}

/* Contact */

.contact-block {
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  max-width: 480px;
}

.contact-block p {
  margin: 0 0 0.5rem;
}

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

.small {
  font-size: 0.85rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-raised);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  border-radius: 10px;
}

.footer-copy {
  margin: 0;
}

/* To top */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 40;
  transition: opacity 0.2s, transform 0.2s;
}

.to-top:hover {
  border-color: var(--link);
  color: var(--link);
}

.to-top[hidden] {
  display: none;
}

/* Mobile nav */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .topic-card,
  .btn,
  .to-top {
    transition: none;
  }
}
