/* Bady — teplé tóny vizsly: okrová, písková, tmavě hnědá */

:root {
  --bg: #faf5ec;
  --surface: #fffdf8;
  --surface2: #f3e9d7;
  --text: #3a2d1f;
  --muted: #8a7358;
  --accent: #c2702a;
  --accent2: #a4581c;
  --gold: #dfa353;
  --line: #e8dcc6;
  --shadow: 0 10px 30px rgba(90, 60, 20, 0.12);
  --nav-bg: rgba(250, 245, 236, 0.85);
}

[data-theme="dark"] {
  --bg: #191310;
  --surface: #231b15;
  --surface2: #2c211a;
  --text: #f2e7d6;
  --muted: #b59e82;
  --accent: #e0914a;
  --accent2: #f0aa63;
  --gold: #d99a4e;
  --line: #3a2d22;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(25, 19, 16, 0.85);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.3s, color 0.3s;
}

section { scroll-margin-top: 70px; }

h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; color: var(--accent); }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- navigace ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.15rem; text-decoration: none; color: var(--text); }
.nav-links { margin-left: auto; display: flex; gap: 0.25rem; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  padding: 0.35rem 0.7rem; border-radius: 999px;
  font-size: 0.95rem; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--accent); background: var(--surface2); }
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; width: 2.3rem; height: 2.3rem;
  font-size: 1.05rem; cursor: pointer; transition: transform 0.2s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.08); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem; text-align: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(223, 163, 83, 0.5), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(164, 88, 28, 0.45), transparent 55%),
    linear-gradient(160deg, #e9c893, #c2702a 55%, #6d431f);
  color: rgba(255, 250, 240, 0.95);
  font-size: 1.1rem;
}
.hero-placeholder .paw { font-size: 5rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3)); }
.hero-placeholder code { background: rgba(0,0,0,0.25); padding: 0.1em 0.4em; border-radius: 6px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 12, 6, 0.72) 0%, rgba(20, 12, 6, 0.25) 45%, rgba(20, 12, 6, 0.15) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 960px; margin: 0 auto;
  padding: 0 1.25rem 14svh;
  color: #fdf6ea;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.85rem; color: var(--gold); font-weight: 600;
}
.hero h1 { font-size: clamp(3.5rem, 12vw, 7rem); letter-spacing: 0.02em; }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.3rem); margin-top: 0.3rem; }
.hero-cta {
  display: inline-block; margin-top: 1.5rem;
  background: var(--accent); color: #fff8ee; text-decoration: none;
  padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 600;
  box-shadow: var(--shadow); transition: transform 0.2s, background 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); background: var(--accent2); }

/* ---------- sekce ---------- */
.section { padding: 5rem 0; }
.section.alt { background: var(--surface2); transition: background 0.3s; }
.section-lead { color: var(--muted); margin-bottom: 2.5rem; max-width: 620px; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding: 0.5rem 0; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: linear-gradient(var(--gold), var(--accent2));
  border-radius: 3px;
}
.tl-item {
  position: relative; width: 50%; padding: 0 2.5rem 2.2rem;
}
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; }
.tl-dot {
  position: absolute; top: 0.35rem; z-index: 2;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 3px solid var(--accent);
  font-size: 1.05rem; box-shadow: var(--shadow);
}
.tl-item:nth-child(odd) .tl-dot { right: -1.2rem; }
.tl-item:nth-child(even) .tl-dot { left: -1.2rem; }
.tl-card {
  display: inline-block; text-align: left;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 1rem 1.2rem; box-shadow: var(--shadow);
}
.tl-date { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: capitalize; }
.tl-title { font-size: 1.15rem; margin: 0.15rem 0 0.3rem; }
.tl-desc { color: var(--muted); font-size: 0.95rem; }

/* ---------- galerie ---------- */
.gallery {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.tile {
  border: 0; padding: 0; cursor: zoom-in;
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--surface);
  box-shadow: var(--shadow);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.tile:hover img { transform: scale(1.06); }
.empty { color: var(--muted); text-align: center; padding: 2rem 0; }

/* ---------- fakta o plemeni ---------- */
.facts {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 1.5rem;
}
.fact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.15rem;
  box-shadow: var(--shadow);
}
.fact-icon { font-size: 1.5rem; }
.fact span:last-child { color: var(--muted); font-size: 0.9rem; }
.prose p { margin-bottom: 0.9rem; max-width: 72ch; }

/* ---------- patička ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem; text-align: center; color: var(--muted); font-size: 0.9rem;
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 8, 4, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-figure { max-width: min(92vw, 1400px); max-height: 88vh; text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lb-figure figcaption { color: #cbb694; margin-top: 0.6rem; font-size: 0.9rem; }
.lb-btn {
  position: absolute; z-index: 101;
  background: rgba(255, 248, 238, 0.12); color: #fdf6ea;
  border: 1px solid rgba(255, 248, 238, 0.25);
  border-radius: 50%; width: 2.8rem; height: 2.8rem;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255, 248, 238, 0.28); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- mobil ---------- */
@media (max-width: 720px) {
  .nav { padding: 0.5rem 0.9rem; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
  .section { padding: 3.5rem 0; }

  .timeline::before { left: 1.1rem; }
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    width: 100%; left: 0; text-align: left;
    padding: 0 0 1.8rem 3.4rem;
  }
  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot { left: 0; right: auto; }

  .gallery { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
}
