/* ==========================================================================
   Dečiji eko šumarak — stilizacija
   Paleta izvedena iz logotipa: šumsko zelena, lila, terakota, krem
   ========================================================================== */

:root {
  --green-900: #1e5b2b;
  --green-700: #2c8140;
  --green-600: #37a052;
  --lime:      #8dc63f;
  --lime-soft: #eaf4d8;
  --lavender:  #9a86c9;
  --lav-soft:  #efeaf8;
  --terra:     #e07a3c;
  --terra-soft:#fbe9dc;

  --cream:     #faf7ef;
  --cream-2:   #f3eede;
  --paper:     #ffffff;

  --ink:       #263029;
  --muted:     #5d6a5f;
  --line:      #e6e1d2;

  --shadow-sm: 0 2px 8px rgba(30, 60, 30, .06);
  --shadow-md: 0 10px 30px rgba(30, 60, 30, .10);
  --shadow-lg: 0 24px 60px rgba(30, 60, 30, .18);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw:      1180px;

  --font-head: "Fredoka", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--terra); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tint { background: var(--cream-2); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--lime-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-900); color: #fff; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn--outline { background: #fff; color: var(--green-700); border-color: var(--line); }
.btn--outline:hover { border-color: var(--green-600); color: var(--green-900); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 239, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; color: var(--green-900); font-size: 1.12rem; }
.brand img { height: 46px; width: auto; }
.brand span small { display: block; font-size: .72rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 400; color: var(--ink);
  padding: 9px 15px; border-radius: 999px; font-size: .98rem; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--lime-soft); color: var(--green-900); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--green-900); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: -14% 0; z-index: 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20,60,30,.82) 0%, rgba(30,80,40,.55) 55%, rgba(20,50,30,.35) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 90px; max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero p { font-size: 1.25rem; color: rgba(255,255,255,.94); max-width: 620px; margin-bottom: 30px; }
.hero__badge { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 18px; font-size: 26px;
}
.ic-green { background: var(--lime-soft); }
.ic-lav   { background: var(--lav-soft); }
.ic-terra { background: var(--terra-soft); }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.split--reverse .split__media { order: 2; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 20px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--terra); line-height: 1; }
.stat span { color: var(--muted); font-size: .96rem; }

/* ---------- Activity cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--font-head); font-weight: 400; font-size: .92rem; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
  padding: 8px 18px; border-radius: 999px; transition: .15s;
}
.chip:hover { border-color: var(--green-600); }
.chip.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; height: 100%;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--lime-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green-600), var(--lime)); color: #fff; font-size: 42px; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-head); font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  background: rgba(255,255,255,.94); color: var(--green-900); padding: 5px 12px; border-radius: 999px;
}
.card__count { position: absolute; bottom: 12px; right: 12px; z-index: 2; background: rgba(20,50,30,.72); color:#fff; font-size:.78rem; padding: 4px 11px; border-radius: 999px; display:flex; gap:6px; align-items:center; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35em; }
.card__body p { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.card__more { font-family: var(--font-head); font-weight: 500; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.card:hover .card__more { color: var(--terra); }

/* ---------- Gallery (activity detail) ---------- */
.breadcrumb { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--green-700); }
.gallery { columns: 4; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery img {
  width: 100%; border-radius: var(--radius-sm); cursor: zoom-in; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.videos video { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background:#0d1a12; aspect-ratio: 9/16; object-fit: cover; }

.act-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.act-nav a { font-family: var(--font-head); font-weight: 500; }

/* ---------- Founder / bio ---------- */
.bio-grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.bio-card { position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); text-align: center; }
.bio-card img { border-radius: var(--radius-sm); margin-bottom: 18px; }
.bio-card h3 { margin-bottom: .2em; }
.bio-card .role { color: var(--terra); font-family: var(--font-head); font-size: .95rem; }
.bio-contact { text-align: left; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; }
.bio-contact div { margin-bottom: 8px; color: var(--muted); }
.prose h3 { color: var(--green-800, var(--green-900)); margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose .tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.tag { background: var(--lav-soft); color: #5a4a86; padding: 6px 14px; border-radius: 999px; font-size: .88rem; }

/* ---------- Values list ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.value .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 8px; background: var(--lime); }
.value p { margin: 0; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.team-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); text-align: center; transition: transform .2s, box-shadow .2s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card__photo { aspect-ratio: 1/1; overflow: hidden; background: var(--lime-soft); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-card__body { padding: 20px 20px 26px; }
.team-card h3 { margin-bottom: .12em; }
.team-card .role { color: var(--terra); font-family: var(--font-head); font-size: .92rem; display: block; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Intro quote ---------- */
blockquote.intro { border-left: 4px solid var(--lime); background: var(--paper); padding: 24px 28px; margin: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.14rem; line-height: 1.7; color: var(--muted); font-style: italic; box-shadow: var(--shadow-sm); }

/* ---------- Program list ---------- */
.prog-list { list-style: none; padding: 0; margin: 12px 0 0; }
.prog-list li { position: relative; padding-left: 20px; margin-bottom: 7px; color: var(--muted); font-size: .94rem; }
.prog-list li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

/* ---------- Legal info ---------- */
.legal { font-size: .86rem; color: var(--muted); line-height: 1.7; }
.legal b { color: var(--green-900); font-family: var(--font-head); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .ci { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--lime-soft); display: grid; place-items: center; font-size: 22px; }
.contact-list b { display: block; font-family: var(--font-head); color: var(--green-900); }
.contact-list a { color: var(--muted); }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Blog ---------- */
.post-date { display: block; font-family: var(--font-head); font-weight: 500; font-size: .82rem; color: var(--terra); margin-bottom: 6px; letter-spacing: .02em; }
.article { max-width: 760px; margin: 0 auto; }
.article h1 { margin-top: .1em; }
.post-cover { max-width: 900px; margin: 0 auto 10px; }
.post-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); max-height: 460px; object-fit: cover; }
.prose > h2 { color: var(--green-900); margin-top: 1.6em; font-size: 1.55rem; }
.prose > h3 { margin-top: 1.4em; }
.prose > p { margin-bottom: 1.1rem; }
.prose blockquote { border-left: 4px solid var(--lime); background: var(--cream-2); margin: 1.4em 0; padding: 16px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--muted); }
.prose .post-fig { margin: 1.6em 0; }
.prose .post-fig img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.prose .post-fig figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #1b3323; color: #cfe0d2; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.site-footer a { color: #cfe0d2; }
.site-footer a:hover { color: var(--lime); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 54px; background: #fff; border-radius: 12px; padding: 5px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .88rem; color: #9fb6a5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(15,28,18,.94); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lb__btn { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.lb__btn:hover { background: rgba(255,255,255,.28); }
.lb__close { top: 22px; right: 22px; }
.lb__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cfe0d2; font-size: .9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hero background slow drift (Ken Burns) */
.hero__bg img { animation: kenburns 22s ease-in-out infinite alternate; }

/* Hero content staggered entrance */
.hero__inner > * { opacity: 0; animation: heroUp .8s cubic-bezier(.22,.61,.36,1) forwards; }
.hero__inner > *:nth-child(1) { animation-delay: .15s; }
.hero__inner > *:nth-child(2) { animation-delay: .30s; }
.hero__inner > *:nth-child(3) { animation-delay: .45s; }
.hero__inner > *:nth-child(4) { animation-delay: .60s; }

/* Gentle float on feature icons */
.feature:hover .feature__icon { animation: floaty 1.8s ease-in-out infinite; }

/* Chip / button press feedback */
.btn:active { transform: translateY(0) scale(.98); }
.chip:active { transform: scale(.96); }

/* Nav link underline grow */
.nav-links a { position: relative; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__inner > * { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .contact-grid, .bio-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .bio-card { position: static; }
  .gallery { columns: 3; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 14px 22px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2, .cards, .stats, .values, .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .videos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }
  .hero__inner { padding-top: 64px; padding-bottom: 64px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .act-nav { flex-direction: column; text-align: center; gap: 10px; }
  .act-nav a { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
  .footer-bottom { flex-direction: column; }
  blockquote.intro { font-size: 1.05rem; padding: 20px 22px; }
}
