/* МБФ «Молодість» — базові стилі сайту
   Бренд-концепція «Паросток»: Ліс #2F6B4F, Хвоя #1C2E22, Золото #C89B3C, Льон #F6F3EA, Текст #2B2620
   Шрифти: PT Serif (заголовки), Manrope (текст) */

:root {
  --forest: #2F6B4F;
  --pine: #1C2E22;
  --pine-dark: #14201A;
  --gold: #C89B3C;
  --gold-hover: #b4872f;
  --linen: #F6F3EA;
  --linen-soft: #EFEADB;
  --ink: #2B2620;
  --muted: #4A443B;
  --card-border: rgba(47, 107, 79, 0.15);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3 { font-family: 'PT Serif', serif; color: var(--pine); margin: 0; }

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

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--forest); color: var(--linen); }
.btn-primary:hover { background: var(--pine); color: var(--linen); }
.btn-outline { border: 1.5px solid var(--forest); color: var(--forest); background: transparent; padding: 12.5px 26.5px; }
.btn-outline:hover { background: var(--forest); color: var(--linen); }
.btn-gold { background: var(--gold); color: var(--pine); }
.btn-gold:hover { background: var(--gold-hover); color: var(--pine); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--linen);
  border-bottom: 1px solid var(--card-border);
}
.site-header .container {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px; background: var(--forest);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--muted); }
.brand-name { font-family: 'PT Serif', serif; font-size: 19px; font-weight: 700; color: var(--pine); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink); }
.nav-links a:hover { color: var(--forest); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--pine);
  position: relative; transition: transform .15s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero {
  padding: 72px 0;
  background: linear-gradient(180deg, var(--linen) 0%, #F1ECE0 100%);
}
.hero .container { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.hero-accent { width: 56px; height: 4px; background: var(--gold); border-radius: 2px; }
.hero h1 { font-size: 46px; line-height: 1.15; }
.hero p.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.hero-media {
  flex: 1 1 380px; min-height: 360px; border-radius: 16px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--pine) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(246,243,234,0.55); font-size: 14px; text-align: center; padding: 24px;
}

/* Highlight strip */
.highlights { background: var(--pine); padding: 48px 0; }
.highlights .container {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px;
}
.highlight-item {
  border-left: 1px solid rgba(200,155,60,0.35); padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.highlight-item strong { font-family: 'PT Serif', serif; font-size: 19px; color: var(--linen); }
.highlight-item span { font-size: 14px; color: rgba(246,243,234,0.75); line-height: 1.5; }

/* Section spacing */
.section { padding: 80px 0; }
.section-soft { background: var(--linen-soft); }
.section-header { max-width: 640px; margin: 0 auto 40px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.section-header.left { margin: 0 0 32px; text-align: left; align-items: flex-start; }
.section h2 { font-size: 32px; line-height: 1.25; }

/* About */
.about-grid { display: flex; gap: 64px; flex-wrap: wrap; align-items: center; }
.about-grid > div { flex: 1 1 380px; }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-text p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.checklist { display: flex; flex-direction: column; gap: 16px; }
.checklist li { list-style: none; display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.checklist { padding: 0; margin: 0; }
.dot { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* Cards grid */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.card {
  background: #fff; border: 1px solid var(--card-border); border-radius: 14px;
  padding: 30px 24px; display: flex; flex-direction: column; gap: 12px;
}
.card-icon {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(47,107,79,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.card h3 { font-size: 18px; }
.card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Quote / person */
.person-quote { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.person-photo {
  width: 240px; height: 240px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(160deg, var(--forest), var(--pine));
  display: flex; align-items: center; justify-content: center;
  color: rgba(246,243,234,0.55); font-size: 13px; text-align: center; padding: 16px;
}
.quote-mark { font-family: 'PT Serif', serif; font-size: 56px; color: var(--gold); line-height: 0.5; }
.person-quote blockquote { margin: 14px 0 0; font-family: 'PT Serif', serif; font-size: 21px; line-height: 1.6; font-style: italic; max-width: 700px; }
.person-name { font-weight: 700; font-size: 16px; margin-top: 14px; }
.person-role { font-size: 14px; color: var(--muted); }

/* News */
.news-media { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.news-date { font-size: 13px; color: var(--gold); font-weight: 700; }
.news-body h3 { font-size: 17px; }

/* Placeholder badge */
.placeholder-note {
  display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--gold-hover);
  background: rgba(200,155,60,0.12); border: 1px dashed rgba(200,155,60,0.5);
  border-radius: 6px; padding: 4px 10px;
}

/* Partners */
.partners-row { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.partner-slot {
  width: 140px; height: 48px; border: 1px dashed rgba(43,38,32,0.25); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(43,38,32,0.4);
}

/* Donate banner */
.donate-banner { background: var(--pine); padding: 64px 0; text-align: center; }
.donate-banner h2 { color: var(--linen); font-size: 30px; max-width: 640px; margin: 0 auto 22px; }

/* Footer */
.site-footer { background: var(--pine-dark); color: rgba(246,243,234,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-name { color: var(--linen); }
.footer-brand .brand-sub { color: rgba(246,243,234,0.55); }
.footer-col span.col-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 14px;
}
.footer-col a, .footer-col p, .footer-col span.line { display: block; font-size: 14px; color: rgba(246,243,234,0.75); margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(246,243,234,0.12); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: rgba(246,243,234,0.45);
}

/* Documents page */
.doc-list { display: flex; flex-direction: column; gap: 16px; }
.doc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 20px 24px;
}
.doc-row .doc-title { font-family: 'PT Serif', serif; font-size: 17px; color: var(--pine); }
.doc-row .doc-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.status-pill {
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.status-draft { background: rgba(200,155,60,0.15); color: #8a6a24; }
.status-approved { background: rgba(47,107,79,0.14); color: var(--forest); }
.doc-actions a { font-size: 14px; font-weight: 700; }

/* Programs page */
.program-card { display: flex; flex-direction: column; gap: 14px; }
.program-goal-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.progress-track { height: 8px; border-radius: 999px; background: rgba(47,107,79,0.12); overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); border-radius: 999px; width: 0%; }

/* Page hero (inner pages) */
.page-hero { background: var(--pine); padding: 64px 0; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: var(--linen); font-size: 38px; margin-top: 8px; }
.page-hero p { color: rgba(246,243,234,0.8); margin-top: 14px; max-width: 640px; font-size: 16px; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 760px) {
  .nav-links, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav-links {
    display: flex; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--linen); flex-direction: column; padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--card-border);
  }
  .highlights .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .person-quote { flex-direction: column; align-items: flex-start; }
  .hero .container { flex-direction: column; }
  .section { padding: 56px 0; }
}
