/* ============ Tokens ============ */
:root {
  --bg: #faf8f4;
  --bg-alt: #f1ece2;
  --dark: #15130f;
  --dark-2: #201c15;
  --gold: #c19a49;
  --gold-dark: #a17f34;
  --gold-light: #e4c583;
  --text: #2a2620;
  --text-muted: #6b6459;
  --text-on-dark: #f4f1ea;
  --text-on-dark-muted: #c9c3b6;
  --border: #e4ddd0;
  --border-dark: #3a352b;
  --radius: 2px;
  --font-head: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: inherit; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); text-transform: uppercase; letter-spacing: 0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff;
  padding: 12px 20px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--gold-light); }
.muted { font-size: 0.6em; font-weight: 500; color: var(--text-muted); text-transform: none; letter-spacing: 0; margin-left: 0.5em; }
.section-dark .muted { color: var(--text-on-dark-muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline-light { border-color: rgba(244,241,234,0.5); color: var(--text-on-dark); }
.btn-outline-light:hover { border-color: var(--text-on-dark); background: rgba(244,241,234,0.08); color: var(--text-on-dark); }
.btn-small { padding: 10px 20px; font-size: 0.74rem; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; }
.logo-eyebrow { display: block; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 3px; }
.logo-name { position: relative; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--text); padding-right: 16px; }
.logo-slash { position: absolute; right: 0; top: -2px; width: 2px; height: 24px; background: var(--gold); transform: rotate(18deg); display: inline-block; }
.logo:hover .logo-name,
.logo:hover .logo-eyebrow { color: var(--text); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--gold-dark); border-color: var(--gold); }

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 22px; background: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--text-on-dark);
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
}
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block;
  opacity: 0;
  filter: saturate(1.05) contrast(1.02);
  transition: opacity 2.4s ease;
}
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}
.hero-scrim {
  position: absolute; inset: 0;
  background-color: rgba(12,10,8,0.58);
  background-image: radial-gradient(120% 90% at 85% 15%, rgba(193,154,73,0.14), transparent 60%);
}
.hero-inner {
  position: relative;
  max-width: 560px;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero-lead { font-size: 1.05rem; color: var(--text-on-dark-muted); max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.8em; }

/* decorative gradient used behind the Kontakt section (no photo) */
.hero-texture {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(70% 90% at 15% 20%, rgba(193,154,73,0.16), transparent 60%),
    linear-gradient(160deg, #100e0b 0%, #1c1811 55%, #171310 100%);
}
.hero-texture--footer { opacity: 0.9; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
#o-nadaci { padding-top: 56px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--text-on-dark); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 0.4em; }
.section-intro { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2em; }

/* ============ O nadaci ============ */
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; margin: 1.4em 0 3.5em; }
.two-col-text p:last-child { margin-bottom: 0; }
.lead-quote {
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1.5;
  color: var(--text); padding-left: 22px; border-left: 3px solid var(--gold);
}
.two-col-visual { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.two-col-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.two-col-visual::after {
  content: ""; position: absolute; inset: 14px; border: 1px solid rgba(244,241,234,0.55);
  pointer-events: none;
}

.board h3, .how-help h3, .support-cta h3 { margin-top: 0; }
.board { margin-bottom: 3em; }
.board-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 1.2em; }
.board-item {
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}
.board-info { display: flex; flex-direction: column; gap: 4px; font-size: 0.92rem; }
.board-info strong { color: var(--text); font-family: var(--font-head); font-size: 1rem; }
.board-info span { color: var(--text-muted); font-size: 0.85rem; }

.how-help { margin-bottom: 3em; }
.check-list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 1.2em; }
.check-list li {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text); font-size: 0.95rem;
}
.check-list li .dot {
  flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
}
@media (min-width: 640px) {
  .check-list { grid-template-columns: repeat(2, 1fr); }
}

.support-cta {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 28px 30px;
}
.support-cta p:last-child { margin-bottom: 0; }
.link-arrow { font-weight: 600; }

/* ============ Podpořené projekty ============ */
.supported-project { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.supported-project-body h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 0.5em; }
.photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.photo-strip-item {
  padding: 0; width: 64px; height: 64px; flex: 0 0 auto;
  border: 2px solid transparent; border-radius: var(--radius); overflow: hidden;
  background: none; cursor: pointer; opacity: 0.7;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-strip-item:hover { opacity: 1; }
.photo-strip-item.is-active { border-color: var(--gold); opacity: 1; }
@media (max-width: 900px) {
  .supported-project { grid-template-columns: 1fr; }
}

/* ============ Podpořené projekty (empty state) ============ */
.empty-state {
  background: #fff; border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.empty-state-icon { color: var(--gold-dark); width: 48px; margin: 0 auto 20px; }
.empty-state h3 { margin-bottom: 0.5em; }
.empty-state-template { font-weight: 700; font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin: 1.6em 0 0.8em; }
.template-list { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.template-list li {
  font-size: 0.82rem; color: var(--text-muted);
  background: var(--bg-alt); border-radius: 20px; padding: 6px 14px;
}

/* ============ Plánované projekty ============ */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.project-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(21,19,15,0.08); }
.project-card-visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); }
.project-card-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.4s ease;
}
.project-card-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,14,11,0) 45%, rgba(16,14,11,0.32) 100%);
}
.project-card:hover .project-card-visual img { transform: scale(1.05); }
.project-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-card-body h3 { margin-bottom: 0.4em; text-transform: uppercase; font-size: 1rem; letter-spacing: 0.01em; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.9em; }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--gold-dark); }
.project-budget { font-size: 0.92rem; margin-top: auto; margin-bottom: 0; padding-top: 0.9em; border-top: 1px solid var(--border); color: var(--text); }
.project-budget strong { color: var(--gold-dark); }

/* ============ Kontakt ============ */
.kontakt-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
.kontakt-list { margin-top: 1.6em; display: flex; flex-direction: column; gap: 12px; }
.kontakt-list li { display: flex; align-items: center; gap: 14px; font-size: 0.98rem; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.kontakt-list li .icon { width: 18px; height: 18px; color: var(--gold-dark); }
.kontakt-list li span { flex: 0 0 140px; font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.kontakt-list li a { color: var(--text); }
.kontakt-list li a:hover { color: var(--gold-dark); }
.kontakt-cta {
  align-self: center;
  margin-top: 2.2em;
  padding-left: 32px; border-left: 3px solid var(--gold);
}
.kontakt-cta p { color: var(--text-muted); }

/* ============ Footer ============ */
.site-footer { background: var(--bg-alt); color: var(--text-muted); padding: 28px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }
.footer-inner p { margin: 0; }
.photo-credits { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.72rem; color: var(--text-muted); opacity: 0.8; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .kontakt-inner { grid-template-columns: 1fr; }
  .kontakt-cta { margin-top: 0; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .main-nav {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    transform-origin: top; transform: scaleY(0); opacity: 0;
    pointer-events: none; transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .main-nav.is-open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 70px 0 60px; }
  .section { padding: 64px 0; }
  .board-list { grid-template-columns: 1fr; }
}
