/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a3a5c;
  --primary-foreground: hsl(45, 100%, 96%);
  --accent: rgba(232, 186, 48, 1);
  --accent-foreground: #ffffff;
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: hsl(210 20% 94%);
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --font-display: 'Montserrat', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.2s ease;
  --radius: 0.5rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;   /* variable font — всі ваги */
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5,h6 { margin: 0; line-height: 1.25; font-weight: 700; font-family: var(--font-display)}
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* CONTAINER */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.container-md { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 1rem; }

/* NAVBAR */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }
#navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--primary);
  cursor: pointer; border: none; background: none; padding: 0;
}
.nav-links { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 0; }
.nav-links a {
  display: block; padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground);
  transition: color var(--transition); border-radius: var(--radius);
}
.nav-links a:hover { color: var(--foreground); }
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.btn-lang {
  line-height: 34px;  
  font-size: 0.75rem; font-weight: 600; padding: 0 0.75rem; height: 36px;
  border: 1px solid var(--border); background: var(--background);
  border-radius: var(--radius); cursor: pointer; color: var(--foreground);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-lang:hover { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }
.btn-hamburger { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; color: var(--foreground); }
.btn-hamburger svg { display: block; }
#mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  z-index: 999; padding: 1rem; box-shadow: var(--shadow-lg);
}
#mobile-nav.open { display: block; }
#mobile-nav a {
  display: block; padding: 0.75rem 1rem; font-size: 0.95rem;
  font-weight: 500; color: var(--muted-foreground); border-radius: var(--radius);
}
#mobile-nav a:hover { background: var(--muted); color: var(--foreground); }
#mobile-nav .btn-lang { width: 100%; margin-top: 0.75rem; }

/* HERO */
#hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--primary); padding-top: 64px;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding: 2rem 1rem; max-width: 900px; margin: 0 auto;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-content.animated { opacity: 1; transform: translateY(0); }
.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--primary-foreground); margin-bottom: 1.5rem; line-height: 1.05;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.1rem); color: hsl(45, 100%, 96%);
  margin-bottom: 2.5rem; max-width: 680px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0 2rem; height: 44px;
  font-size: 1rem; font-weight: 600; border-radius: var(--radius);
  cursor: pointer; border: none; white-space: nowrap;
  transition: background var(--transition), color var(--transition), opacity var(--transition), border-color var(--transition);
}
.a-download {
    font-size: .875rem;
    line-height: 1.25rem;
}
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { opacity: 0.9; color: var(--accent-foreground) !important;
    background: rgba(255,255,255,0.1);
    border-color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
    }
.btn-outline-light { background: transparent; color: var(--primary-foreground); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); 
    border-color: var(--accent) !important;
    color: var(--primary-foreground) !important; 
    border: 2px solid var(--accent) !important;
}
.btn-outline { background: hsl(210 20% 98%); color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); border-color: var(--accent); }

/* SECTIONS */
section { padding: 6rem 0; }
.section-bg-muted { background: var(--muted); }
.section-bg-primary { background: var(--primary); color: var(--primary-foreground); position: relative; overflow: hidden; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); text-align: center; margin-bottom: 3rem; }
.section-subtitle { text-align: center; color: var(--muted-foreground); margin-top: -2.5rem; margin-bottom: 3rem; }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-right { opacity: 0; transform: translateX(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.fade-in-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-bottom { opacity: 0; transform: translateY(-20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in-bottom.visible { opacity: 1; transform: translateY(0); }

/* MISSION */
.mission-bg, .values-bg, .who-grid-bg, .reports-bg { background-color: hsl(210 20% 98%); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.mission-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 2rem; }
.mission-text p { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.625; }
.mission-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.vision-box { background: var(--muted); border-radius: var(--radius); padding: 3rem; }
.vision-box h3 { font-size: clamp(1.4rem, 2.5vw, 1.875rem); margin-bottom: 1rem; }
.vision-box p { font-size: 1.1rem; color: var(--muted-foreground); line-height: 1.625; }

/* PROGRAMS */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.program-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
   height: 100%;
}
.program-card:hover { box-shadow: var(--shadow-lg); }
.program-icon {
  width: 56px; height: 56px; background-color: rgba(232, 186, 48, 0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.program-icon svg { color: var(--accent); width: 28px; height: 28px; }
.program-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.program-card p { font-size: 0.875rem; color: var(--muted-foreground); }
.programs-img-wrap img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: 320px; object-fit: cover; }

/* VALUES */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-item { background: var(--muted); border-radius: var(--radius); padding: 1.25rem; }
.value-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.value-header svg { color: var(--accent); flex-shrink: 0; width: 20px; height: 20px; }
.value-header span { font-weight: 600; font-size: 0.975rem; }
.value-item p { font-size: 0.875rem; color: var(--muted-foreground); padding-left: 2rem; margin: 0; }

/* IMPACT */
.impact-overlay { position: absolute; inset: 0; opacity: 0.3; }
.impact-overlay img { max-width: 100%; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.impact-inner { position: relative; z-index: 2; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.impact-item { text-align: center; }
.impact-item svg { width: 40px; height: 40px; margin: 0 auto 1rem; color: var(--accent); display: block; }
.impact-item p { font-size: 1.1rem; font-weight: 600; }

/* WHO WE HELP */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.who-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.who-card:hover { box-shadow: var(--shadow-lg); }
.who-card svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: 0.75rem; display: block; }
.who-card h3 { font-weight: 600; margin-bottom: 0.25rem; font-size: 1rem; }
.who-card p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

/* REPORTS */
.reports-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.report-stat { text-align: center; padding: 1.5rem; background: var(--muted); border-radius: var(--radius); }
.report-stat .stat-num { font-size: 2rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.report-stat p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }
.reports-btn-wrap { text-align: center; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.team-avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin: 0 auto 1rem; }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.team-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role { font-size: 0.875rem; color: var(--accent); font-weight: 500; margin-bottom: 0.75rem; display: block; }
.team-card p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); height: 100%; }
.quote-icon { width: 32px; height: 32px; color: rgba(200,151,58,0.4); margin-bottom: 0.75rem; display: block; }
.testimonial-card blockquote { font-style: italic; color: var(--muted-foreground); margin: 0 0 1rem; line-height: 1.65; }
.testimonial-card .author { font-weight: 600; display: block; }
.testimonial-card .author-role { font-size: 0.875rem; color: var(--accent); }

/* CONTACTS */
.contacts-bg {background-color: hsl(210 20% 98%);}
.contacts-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-item svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.contact-item a:hover { color: var(--accent); }

/* FOOTER */
footer { background: var(--primary); color: var(--primary-foreground); padding: 3rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
footer h3 { font-size: 1.25rem; }
footer p { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin: 0; }
main { margin-top: 64px; }
/* RESPONSIVE */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-hamburger { display: block; }
  .mission-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; }
  .vision-box { padding: 2rem; }
}
@media (max-width: 480px) {
  .impact-grid { grid-template-columns: 1fr; }
  .reports-grid { grid-template-columns: 1fr; }
}
