/* ==========================================================================
   Green Parenting — стилове
   Съдържание:
   1. Променливи (цветове и т.н.)
   2. Основа и типография
   3. Бутони
   4. Навигация
   5. Начална секция (hero)
   6. Секция "За кампанията"
   7. Секция "Теми"
   8. Секция "Кога и къде"
   9. Регистрация и въпроси
   10. Футър
   11. Анимация при скрол
   12. Мобилна версия
   ========================================================================== */


/* 1. ПРОМЕНЛИВИ — тук се сменят цветовете на целия сайт ------------------- */
:root {
  --ink: #10382a;
  --green: #0a5c3a;
  --green2: #16764c;
  --lime: #d6f06f;
  --sky: #dff5f3;
  --cream: #f7f8ec;
  --white: #fff;
  --muted: #587066;
  --line: #cfe2d8;
  --shadow: 0 22px 55px rgba(5, 55, 34, .13);
}


/* 2. ОСНОВА И ТИПОГРАФИЯ ------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }

section { padding: 100px 0; }

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  letter-spacing: -.045em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.7rem);
  margin-bottom: 24px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.6rem);
  margin-bottom: 24px;
}

h1 em, h2 em {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--green2);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--green2);
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 680px;
}


/* 3. БУТОНИ -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid var(--green);
  transition: .2s;
}

.btn:hover {
  transform: translateY(-2px);
  background: #074a2f;
}

.btn.alt {
  background: transparent;
  color: var(--green);
}

.btn.alt:hover { background: rgba(255, 255, 255, .55); }


/* 4. НАВИГАЦИЯ ----------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(207, 226, 216, .75);
}

nav {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-weight: 900;
  text-decoration: none;
  font-size: 1.12rem;
}

.brand span { color: var(--green2); }

.links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.links a {
  text-decoration: none;
  font-size: .91rem;
  font-weight: 700;
}


/* 5. НАЧАЛНА СЕКЦИЯ (HERO) ----------------------------------------------- */
.hero {
  padding: 0 0 44px;
  background: var(--cream);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* Скрит визуално, но достъпен за търсачки и екранни четци */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 6. СЕКЦИЯ "ЗА КАМПАНИЯТА" ---------------------------------------------- */
.intro {
  background: var(--green);
  color: white;
}

.intro .eyebrow { color: var(--lime); }

.intro h2 { margin: 0; }

.intro p {
  color: #d8ebe2;
  font-size: 1.15rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.pillar {
  border-top: 1px solid rgba(255, 255, 255, .3);
  padding-top: 18px;
}

.pillar strong {
  display: block;
  color: var(--lime);
  font-size: 1.6rem;
}


/* 7. СЕКЦИЯ "ТЕМИ" ------------------------------------------------------- */
.topics { background: var(--cream); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.section-head .lead {
  max-width: 410px;
  margin-bottom: 8px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.topic {
  min-height: 250px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .25s;
}

.topic:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(9, 86, 54, .1);
}

.topic:nth-child(2),
.topic:nth-child(3) { background: var(--sky); }

.topic-num {
  font-size: .82rem;
  font-weight: 900;
  color: var(--green2);
}

.topic h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  margin: 35px 0 10px;
}

.topic p {
  color: var(--muted);
  margin: 0;
}

/* По избор: снимка в карта с тема (вж. коментара в index.html) */
.topic-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 20px;
}


/* 8. СЕКЦИЯ "КОГА И КЪДЕ" ------------------------------------------------ */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.detail-card {
  border-radius: 34px;
  padding: 42px;
  background: var(--green);
  color: white;
}

.detail-card.light {
  background: var(--lime);
  color: var(--ink);
}

.detail-card h3 {
  font-size: 2.1rem;
  line-height: 1.15;
  margin-bottom: 30px;
}

.event-line {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.light .event-line { border-color: rgba(16, 56, 42, .2); }

.event-line span {
  font-weight: 700;
  opacity: .75;
}

.event-line strong { font-size: 1.1rem; }


/* 9. РЕГИСТРАЦИЯ И ЧЕСТО ЗАДАВАНИ ВЪПРОСИ -------------------------------- */
.register {
  background: linear-gradient(125deg, var(--sky), var(--cream));
  text-align: center;
}

.register-box {
  max-width: 850px;
  margin: auto;
}

.register .lead {
  margin-left: auto;
  margin-right: auto;
}

.notice {
  display: inline-flex;
  margin: 20px 0 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 800;
}

.faq { padding-top: 80px; }

.faq-grid {
  max-width: 850px;
  margin: 40px auto 0;
  text-align: left;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.08rem;
}

.faq details p {
  color: var(--muted);
  padding-top: 12px;
  margin: 0;
}


/* 10. ФУТЪР -------------------------------------------------------------- */
footer {
  padding: 36px 0;
  background: #062f20;
  color: #d6e9df;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.foot p { margin: 0; }

.foot small { color: #9fc1b0; }


/* 11. АНИМАЦИЯ ПРИ СКРОЛ (клас .reveal; включва се от js/main.js) --------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: .65s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}


/* 12. МОБИЛНА ВЕРСИЯ ----------------------------------------------------- */

/* Таблети и по-малко */
@media (max-width: 850px) {
  section { padding: 72px 0; }

  .links { display: none; }
  .nav-cta { margin-left: auto; }

  .intro-grid,
  .details-grid { grid-template-columns: 1fr; }

  .section-head { display: block; }
  .section-head .lead { margin-top: 20px; }

  .pillar-row,
  .topic-grid { grid-template-columns: 1fr; }
}

/* Телефони */
@media (max-width: 520px) {
  .wrap { width: min(100% - 26px, 1160px); }

  nav { height: 68px; }

  .nav-cta {
    padding: 8px 14px;
    min-height: 42px;
    font-size: .86rem;
  }

  h1 { font-size: 2.75rem; }

  .hero { padding-bottom: 32px; }
  .hero-actions { margin-top: 24px; }

  .topic,
  .detail-card {
    padding: 26px;
    border-radius: 24px;
  }

  .event-line { grid-template-columns: 80px 1fr; }

  .foot {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* За хора, които са изключили анимациите в системата си */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .topic { transition: none; }
}
