/* ============================================================
   Styly bloků webu — sdílené mezi stránkou (index.html) a editorem.
   Barvy a písmo se řídí CSS proměnnými v <style id="site-vars">
   v hlavičce index.html (upravuje je editor v Nastavení).
   ============================================================ */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
}

.site-root {
  /* Záložní hodnoty — přepisuje je #site-vars v index.html */
  --c-accent: #2f6f5e;
  --c-bg: #fbfaf7;
  --c-text: #22242a;
  --font: 'Sora', system-ui, sans-serif;

  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-root img { max-width: 100%; }

/* ---------- Společné ---------- */

.nl-block { position: relative; }

.nl-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--pad-top, 64px) 24px var(--pad-bottom, 64px);
}

.nl-block h1, .nl-block h2, .nl-block h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

.nl-block p { margin: 0 0 1em; }
.nl-block p:last-child { margin-bottom: 0; }

.nl-eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.2em;
}

.nl-btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nl-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.nl-hero .nl-inner {
  padding: var(--pad-top, 110px) 24px var(--pad-bottom, 90px);
  text-align: center;
}

.nl-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.nl-hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2em;
  opacity: 0.85;
}

/* ---------- Nadpis + text ---------- */

.nl-text .nl-inner { max-width: 760px; }

.nl-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.nl-text p { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Obrázek ---------- */

.nl-image figure { margin: 0; }

.nl-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.nl-image figcaption {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.65;
  margin-top: 12px;
}

/* ---------- Obrázek + text ---------- */

.nl-split .nl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.nl-split.nl-reverse .nl-media { order: 2; }

.nl-split .nl-media img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.nl-split h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

/* ---------- Přednosti (3 sloupce) ---------- */

.nl-features .nl-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.nl-features h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.nl-features h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

.nl-features .nl-col p { font-size: 0.98rem; opacity: 0.85; }

/* ---------- Galerie ---------- */

.nl-gallery h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.2em;
}

.nl-gallery .nl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nl-gallery.nl-cols-2 .nl-grid { grid-template-columns: repeat(2, 1fr); }
.nl-gallery.nl-cols-4 .nl-grid { grid-template-columns: repeat(4, 1fr); }

.nl-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* ---------- Výzva k akci ---------- */

.nl-cta .nl-inner {
  text-align: center;
  max-width: 720px;
}

.nl-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.nl-cta p { max-width: 540px; margin: 0 auto 1.8em; opacity: 0.85; }

/* ---------- Mezera ---------- */

.nl-spacer { padding: var(--pad-top, 32px) 0 var(--pad-bottom, 32px); }

/* ---------- Patička ---------- */

.nl-footer { margin-top: auto; }

.nl-footer .nl-inner {
  padding: var(--pad-top, 36px) 24px var(--pad-bottom, 36px);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
  border-top: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent);
}

.nl-footer a { color: inherit; }

/* ---------- Mobil ---------- */

@media (max-width: 720px) {
  .nl-inner { padding: var(--pad-top, 44px) 20px var(--pad-bottom, 44px); }

  .nl-hero .nl-inner { padding: var(--pad-top, 72px) 20px var(--pad-bottom, 60px); }

  .nl-split .nl-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nl-split.nl-reverse .nl-media { order: 0; }

  .nl-features .nl-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nl-gallery .nl-grid,
  .nl-gallery.nl-cols-4 .nl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
