@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #f4f7f1;
  --paper: #ffffff;
  --ink: #0f1f16;
  --muted: #516158;
  --muted-light: #7a8d82;
  --line: #d4ddd5;
  --green: #1a7a3a;
  --green-dark: #0e4d24;
  --green-light: #e8f5ec;
  --green-glow: rgba(26, 122, 58, 0.15);
  --gold: #b8892a;
  --blue: #1e6b8a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 31, 22, 0.06), 0 1px 2px rgba(15, 31, 22, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 31, 22, 0.06), 0 2px 6px rgba(15, 31, 22, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 31, 22, 0.1), 0 4px 12px rgba(15, 31, 22, 0.04);
  --shadow-xl: 0 24px 64px rgba(15, 31, 22, 0.14), 0 8px 20px rgba(15, 31, 22, 0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a {
  color: inherit;
  transition: color var(--transition);
}

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

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Topbar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 60px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(212, 221, 213, 0.6);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  transition: box-shadow var(--transition), background var(--transition);
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 12px rgba(15, 31, 22, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  min-width: 0;
  color: var(--green-dark);
  transition: opacity var(--transition);
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

nav a:hover {
  color: var(--green-dark);
  background: var(--green-light);
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(238, 243, 236, 0.7);
}

.lang-switch button {
  min-width: 40px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: inherit;
  transition: all var(--transition);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px var(--green-glow);
}

/* ─── Main ─── */
main {
  overflow: hidden;
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  min-height: calc(100vh - 70px);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 7vw, 100px) clamp(20px, 6vw, 84px) 56px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(26, 122, 58, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(30, 107, 138, 0.06), transparent),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(184, 137, 42, 0.06), transparent),
    var(--bg);
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--green);
  border-radius: 1px;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.lead {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--green);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px var(--green-glow);
}

.button.primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 6px 20px rgba(14, 77, 36, 0.25);
  transform: translateY(-2px);
}

.button.secondary {
  background: var(--paper);
  color: var(--green-dark);
}

.button.secondary:hover {
  background: var(--green-light);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

.hero-media {
  margin: 0;
  position: relative;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  background: var(--green-light);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media:hover img {
  transform: scale(1.02);
}

figcaption {
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* ─── Facts ─── */
.facts,
.programs,
.section,
.sources {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transform: translateY(-32px);
  position: relative;
  z-index: 2;
}

.facts article,
.programs article,
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.facts article:hover,
.programs article:hover,
a.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.facts span,
.contact-card span {
  display: block;
  color: var(--muted-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facts strong,
.contact-card strong {
  display: block;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.facts p,
.programs p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ─── Sections ─── */
.section {
  padding: 80px 0;
}

.split,
.finance,
.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.body-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ─── Programs ─── */
.programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 60px;
}

.programs article {
  position: relative;
  overflow: hidden;
  padding-top: 28px;
}

.programs article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.programs article:nth-child(1)::before { background: var(--green); }
.programs article:nth-child(2)::before { background: var(--gold); }
.programs article:nth-child(3)::before { background: var(--blue); }

.programs h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.programs article:nth-child(1) h3 { color: var(--green); }
.programs article:nth-child(2) h3 { color: var(--gold); }
.programs article:nth-child(3) h3 { color: var(--blue); }

/* ─── Finance ─── */
.finance {
  width: 100%;
  max-width: none;
  padding: 84px clamp(20px, 6vw, 84px);
  background: linear-gradient(160deg, #0a1e14 0%, #122a1c 40%, #0e2318 100%);
  color: #fff;
}

.finance .eyebrow {
  color: #7dd39a;
}

.finance .eyebrow::before {
  background: #7dd39a;
}

.finance p,
.finance dd {
  color: rgba(255, 255, 255, 0.7);
}

.finance dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.finance dl div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition);
}

.finance dl div:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.finance dt {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.finance dd {
  margin: 10px 0 0;
  line-height: 1.7;
}

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

a.contact-card::after {
  content: '→';
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--green);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

a.contact-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Sources ─── */
.sources {
  padding: 0 0 80px;
}

.sources h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.sources ul {
  margin: 20px 0 0;
  padding-left: 0;
  list-style: none;
}

.sources li {
  position: relative;
  padding: 10px 0 10px 20px;
}

.sources li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  transform: translateY(-50%);
}

.sources li + li {
  border-top: 1px solid var(--line);
}

.sources a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.sources a:hover {
  color: var(--green);
}

/* ─── Partners ─── */
.partners {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 80px;
  text-align: center;
}

.partners .eyebrow {
  margin: 0 0 28px;
  color: var(--muted-light);
  justify-content: center;
}

.partners .eyebrow::before {
  display: none;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
}

.partners-row .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  opacity: 0.45;
  filter: grayscale(1);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partners-row .logo svg {
  height: 22px;
  width: auto;
  flex: 0 0 auto;
  fill: currentColor;
}

.partners-row .logo:hover {
  opacity: 1;
  color: var(--ink);
  filter: grayscale(0);
  transform: scale(1.08);
}

/* ─── Footer ─── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  background: var(--paper);
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

footer p:first-child {
  font-weight: 700;
  color: var(--green-dark);
}

/* ─── Responsive ─── */
@media (max-width: 880px) {
  .topbar {
    position: sticky;
    flex-wrap: wrap;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 32px;
  }

  .hero-media::before {
    inset: 8px -8px -8px 8px;
  }

  .facts,
  .programs,
  .contact-grid,
  .split,
  .finance,
  .contact {
    grid-template-columns: 1fr;
  }

  .facts {
    transform: none;
    margin-top: 32px;
  }

  .programs article::before {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 0.85rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .eyebrow::before {
    width: 14px;
  }
}

/* ─── Selection ─── */
::selection {
  background: var(--green-light);
  color: var(--green-dark);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-light);
}
