/* ===== Design tokens ===== */
:root {
  --green-900: #1b2e21;
  --green-800: #1b4332;
  --green-700: #2d6a4f;
  --green-600: #40916c;
  --green-500: #52b788;
  --green-100: #d8f0e0;
  --cream: #f7f8f3;
  --sand: #efeee6;
  --ink: #1c2620;
  --muted: #5b6b61;
  --line: #e2e6dd;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(27, 67, 50, .35);
  --shadow-sm: 0 8px 22px -16px rgba(27, 67, 50, .4);
  --maxw: 1140px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; color: var(--green-900); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; }

p { color: var(--muted); }
a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: .98rem; padding: .85em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-600); }
.btn-ghost:hover { background: var(--green-100); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--cream); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 243, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -20px rgba(0,0,0,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green-700); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.18rem; color: var(--green-900); display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: "Inter", sans-serif; font-weight: 500; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > a { padding: .5em .85em; border-radius: 999px; font-weight: 500; font-size: .96rem; color: var(--ink); transition: background .2s, color .2s; }
.main-nav > a:hover { background: var(--green-100); color: var(--green-800); }
.nav-cta { color: #fff; }
.nav-cta:hover { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(70px, 11vw, 130px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-trees { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-trees .layer { fill: var(--green-500); }
.hero-trees .l1 { fill: #9ccfab; opacity: .55; }
.hero-trees .l2 { fill: #6fbf91; opacity: .5; }
.hero-trees .l3 path { fill: #4ba578; opacity: .5; }
.hero-fog { position: absolute; inset: 0; background: radial-gradient(120% 80% at 20% 0%, rgba(247,248,243,.9), rgba(247,248,243,.2) 60%, transparent 80%); }

.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.eyebrow { font-weight: 600; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-700); margin-bottom: 18px; }
.hero h1 { margin-bottom: 22px; }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.28rem); max-width: 60ch; color: #3c4d43; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 44px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats div { min-width: 120px; }
.hero-stats dt { font-family: "Fraunces", serif; font-size: 1.7rem; font-weight: 600; color: var(--green-800); }
.hero-stats dd { font-size: .9rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tint { background: linear-gradient(180deg, var(--sand), #f3f4ec); }
.section-tag { display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-lede { font-size: 1.1rem; }

.grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-2.reverse > div:first-child { order: 2; }

h2 + p, .section-lede + *, .grid-2 p + p { margin-top: 16px; }
.grid-2 h2 { margin-bottom: 18px; }

.value-list, .check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.value-list li, .check-list li { position: relative; padding-left: 32px; color: #3c4d43; }
.value-list li::before, .check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px;
  background: var(--green-600); border-radius: 6px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/72% no-repeat;
}

.media-card { display: flex; justify-content: center; }
.illus { width: 100%; max-width: 460px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-500); }
.step-num { position: absolute; top: 22px; right: 24px; font-family: "Fraunces", serif; font-size: 1.1rem; font-weight: 600; color: var(--green-100); }
.step:hover .step-num { color: var(--green-500); }
.step-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; margin-bottom: 18px; }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { margin-bottom: 10px; }
.step p { font-size: .96rem; }

/* ===== Callout ===== */
.callout {
  margin-top: 40px; background: var(--green-800); color: #eaf3ec; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start;
}
.callout h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.callout > div p { color: #b9d4c4; }
.callout .check-list { margin-top: 0; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.callout .check-list li { color: #dcebe1; }
.callout .check-list li::before { background: var(--green-500); }

/* ===== Grant grid ===== */
.grant-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grant-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 18px; font-weight: 600; color: var(--green-900); display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s;
}
.grant-card:hover { transform: translateY(-3px); border-color: var(--green-500); }
.grant-ico { font-size: 1.5rem; }
.note { background: var(--green-100); border-left: 4px solid var(--green-600); padding: 14px 18px; border-radius: 10px; color: #2c4538; margin-top: 18px; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--green-800), var(--green-600)); color: #fff; padding: clamp(56px, 8vw, 90px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.cta-inner { text-align: center; max-width: 640px; margin-inline: auto; position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; margin-bottom: 14px; }
.cta-inner p { color: #d8ece0; font-size: 1.1rem; margin-bottom: 28px; }

/* ===== Contact ===== */
.contact-cards { display: grid; gap: 16px; margin-top: 28px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-bottom: 4px; }
.contact-card .role { font-size: .85rem; color: var(--green-600); font-weight: 600; margin-bottom: 12px; letter-spacing: .02em; }
.contact-line { display: block; font-weight: 600; color: var(--green-800); padding: 4px 0; transition: color .2s; }
.contact-line:hover { color: var(--green-500); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--green-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .98rem; color: var(--ink); background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(82,183,136,.2); background: #fff; }
.field textarea { resize: vertical; }
.form-note { font-size: .82rem; text-align: center; margin-top: 14px; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--green-900); color: #c5d6cb; padding: 64px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-light { color: var(--green-500); }
.brand-light .brand-text { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 36ch; color: #9fb6a8; font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: #c5d6cb; font-weight: 500; transition: color .2s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--green-500); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: .85rem; color: #8aa295; }

/* ===== Interactive tabs (dotace) ===== */
.tabs { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: 10px; }
.tab {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 18px; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--green-900);
  cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s;
}
.tab:hover { transform: translateX(3px); border-color: var(--green-500); }
.tab.is-active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.tab-ico { font-size: 1.3rem; line-height: 1; }

.tab-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: var(--shadow); min-height: 340px; }
.tab-panel:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; }
.tab-content { display: none; animation: fadeUp .4s var(--ease); }
.tab-content.is-active { display: block; }
.tab-content-ico { font-size: 2.4rem; display: block; margin-bottom: 14px; }
.tab-content h3 { font-size: 1.6rem; margin-bottom: 14px; }
.tab-content p + p, .tab-content p + .check-list { margin-top: 16px; }
.tab-content .check-list { margin-top: 18px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item svg { display: block; width: 100%; height: auto; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  color: #fff; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(27,46,33,.9), rgba(27,46,33,.35) 60%, transparent);
}
.cap-title { font-weight: 700; font-size: 1.08rem; }
.cap-sub { font-weight: 500; font-size: .9rem; color: #cde6d6; }
.gallery-item::after {
  content: "⤢"; position: absolute; top: 12px; right: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9);
  color: var(--green-800); font-size: 1.1rem; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s;
}
.gallery-item:hover::after { opacity: 1; transform: scale(1); }
.gallery-note { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--muted); font-style: italic; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; gap: 8px; padding: 24px;
  background: rgba(15, 26, 19, .9); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 760px; width: 100%; text-align: center; animation: fadeUp .35s var(--ease); }
.lightbox-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.lightbox-media svg { display: block; width: 100%; height: auto; }
.lightbox-caption { margin-top: 18px; text-align: left; }
.lightbox-caption h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.lightbox-caption p { color: #d4e6da; font-size: 1.02rem; line-height: 1.6; }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: .85; transition: opacity .2s, transform .2s; }
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }
.lightbox-nav {
  flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .callout { grid-template-columns: 1fr; }
  .callout .check-list { grid-template-columns: 1fr 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .tab-list { flex-direction: row; flex-wrap: wrap; }
  .tab { width: auto; flex: 1 1 auto; justify-content: center; }
  .tab:hover { transform: translateY(-2px); }
  .tab-panel { min-height: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 18px 24px 26px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .35s var(--ease); z-index: 40;
  }
  .main-nav.open { transform: none; }
  .main-nav > a { padding: .85em 1em; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2.reverse > div:first-child { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .callout .check-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .brand-text small { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .tab { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .step:hover, .grant-card:hover { transform: none; }
}
