/* ============================================================
   KOLOVALT — hlavní stylesheet
   Paleta: teal #1E6B62 | oranžová #D4622A | krémová #DDD5B0 | tmavá #122420
   Fonty: Bebas Neue | Crimson Pro | DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500;700&display=swap');

/* ── Proměnné ─────────────────────────────────────────────── */
:root {
  --teal:    #1E6B62;
  --orange:  #D4622A;
  --cream:   #DDD5B0;
  --dark:    #122420;
  --dark2:   #1c332a;
  --white:   #f5f0e8;

  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Crimson Pro', serif;
  --font-ui:   'DM Sans', sans-serif;
}

/* ── Reset & základ ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow: hidden;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  height: 100vh;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Navigační lišta nahoře ──────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 48px;
  background: rgba(12, 26, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 107, 98, 0.2);
  overflow: visible;
  transition: background 0.3s;
}

.site-nav-logo {
  grid-column: 2;
  justify-self: center;
  position: relative;
  display: flex;
  align-items: center;
  height: 120px;
  overflow: visible;
}

/* ── Loučící stužka u loga ─────────────────────────────────
   Kotvící bod (left/top) je nad středem loga, výš nad jeho
   viditelnou kresbou (top:18%, left:50%), posunutý o jednu
   vlastní výšku dolů (žádné translateY posunutí nahoru). ── */
#season-ribbon {
  position: absolute;
  top: 18%;
  left: 50%;
  z-index: 2;
  white-space: nowrap;
  transform-origin: left bottom;
  transform: rotate(8deg);
  background: #a13328;
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: font-size 0.45s ease, padding 0.45s ease, letter-spacing 0.45s ease, left 0.45s ease, top 0.45s ease, transform 0.45s ease, transform-origin 0.45s ease;
}

/* Velká varianta na hero sekci — zvětšená a vystředěná
   (ne přes roh loga jako jinde). */
body.hero-active #season-ribbon {
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(8deg);
  font-size: 18px;
  letter-spacing: 0.08em;
  padding: 9px 22px;
}

.site-nav-logo img {
  height: 108px;
  width: auto;
  display: block;
  transition: opacity 0.45s ease;
}

body.hero-active .site-nav-logo img {
  opacity: 0;
  pointer-events: none;
}

/* Nav-links vlevo */
.nav-links {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: opacity 0.45s ease;
}

.nav-links a {
  position: relative;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s ease, color 0.2s;
}

.nav-links a:hover {
  color: var(--cream);
  border-bottom-color: var(--orange);
}


/* Tlačítko "Sleduj nás" */
.btn-sleduj {
  grid-column: 3;
  justify-self: end;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--orange);
  padding: 9px 22px;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-sleduj:hover {
  background: #c0541f;
  transform: translateY(-1px);
}

/* ── Navigační tečky (pravý bok) ─────────────────────────── */
#nav-dots {
  position: fixed;
  right: 20px;
  top: calc(60px + 50vh); /* střed v oblasti pod navbarem (120px) */
  transform: translateY(-50%);
  z-index: 201; /* nad navbarem (z-index: 200) */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#nav-dots a {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(221, 213, 176, 0.35);
  border: 1.5px solid rgba(221, 213, 176, 0.6);
  transition: background 0.3s, transform 0.3s;
}

#nav-dots a.active,
#nav-dots a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.3);
}

/* ── Společné styly sekcí ─────────────────────────────────── */
.section {
  scroll-snap-align: start;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Placeholder pro fotky — bude nahrazen skutečným <img> */
.photo-bg {
  position: absolute;
  inset: 0;
  background: var(--dark2);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Tmavý overlay přes fotografie */
.photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 26, 22, 0.55) 0%,
    rgba(12, 26, 22, 0.35) 40%,
    rgba(12, 26, 22, 0.75) 100%
  );
}

.section > .content {
  position: absolute;
  bottom: 48px;
  left: 48px;
  right: 48px;
  z-index: 1;
}

/* ── Sekce 1: HERO ───────────────────────────────────────── */
#hero .photo-bg {
  /* Placeholder — nahraď: background-image: url('../images/hero-silueta.jpg'); */
  background-image: linear-gradient(160deg, #0c1a16 0%, #1a3528 40%, #0d2218 100%);
}

#hero .content {
  top: 80px; /* pod navbar (120px) */
  bottom: auto; /* výška podle obsahu, ať dole zůstane viditelná mezera */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Velké logo v hero sekci */
.hero-logo {
  margin-bottom: 0;
}

.hero-logo img {
  height: auto;
  max-height: clamp(280px, 46vh, 560px);
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 80px rgba(0,0,0,1))
    drop-shadow(0 6px 32px rgba(0,0,0,0.95))
    drop-shadow(0 2px 8px rgba(0,0,0,0.9));
}

.hero-pretitle {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  margin-top: -3px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9), 0 0px 60px rgba(0,0,0,0.6);
  margin-top: 10px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 21px;
  border: 2px solid rgba(221, 213, 176, 0.4);
  border-radius: 2px;
  color: var(--cream);
  background: rgba(12, 26, 22, 0.5);
}

.tag svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tag.highlight {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.hero-story {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  color: var(--cream);
  opacity: 0.85;
}

.btn-hero-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 32px;
  background: var(--orange);
  color: #fff;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}

.btn-hero-cta:hover {
  background: #c0541f;
  transform: translateY(-2px);
}

.hero-countdown {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--cream);
  opacity: 0.75;
}

.cd-unit {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.cd-num {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.cd-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.cd-sep {
  opacity: 0.4;
}

.hero-scroll-hint {
  margin-top: 24px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(221, 213, 176, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-scroll-hint::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 28px;
  background: rgba(221, 213, 176, 0.3);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(0.6); }
}

/* Nižší desktop obrazovky (např. 1366×768) — zmenši doprovodné prvky,
   ať se hero i s větším logem vejde bez oříznutí a pod scroll hintem
   zůstala mezera. Logo se zmenšuje nejméně ze všeho. */
@media (min-width: 769px) and (max-height: 1050px) {
  #hero .content { top: 76px; gap: 0; }

  .hero-logo img { max-height: clamp(240px, 42vh, 460px); }

  .hero-pretitle { font-size: 12px; margin-top: -2px; }

  .hero-title { font-size: clamp(38px, 6.4vw, 76px); margin-top: 8px; }

  .hero-tags { margin-top: 6px; }
  .tag { font-size: 15px; padding: 6px 14px; }

  .hero-countdown { font-size: 11px; gap: 12px; }

  .hero-scroll-hint { margin-top: 14px; font-size: 10px; gap: 6px; }
  .hero-scroll-hint::before { height: 18px; }
}

/* ── Sekce 2: CO ZAŽIJEŠ ─────────────────────────────────── */
#zazij .photo-bg {
  /* Placeholder — nahraď: background-image: url('../images/zazij-kolekce.jpg'); */
  background-image: linear-gradient(180deg, #0d2218 0%, #112b20 100%);
}

.section-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 48px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: rgba(30, 107, 98, 0.15);
  border: 1px solid rgba(30, 107, 98, 0.35);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.card-photo {
  height: 320px;
  background: var(--dark2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(221, 213, 176, 0.3);
  letter-spacing: 0.1em;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
}

.card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.card-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  color: var(--orange);
}

.card-title {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 8px;
}

.card-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(221, 213, 176, 0.75);
  line-height: 1.5;
}

/* ── Sekce 3: KDO JSME ───────────────────────────────────── */
#kdojsme .photo-bg {
  /* Placeholder — nahraď: background-image: url('../images/kdo-jsme-vedouci.jpg'); */
  background-image: linear-gradient(135deg, #0a1c13 0%, #1E6B62 200%);
}

.kdojsme-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.kdojsme-text p {
  font-size: 19px;
  line-height: 1.75;
  color: var(--cream);
  margin-bottom: 16px;
}

.stamps-row {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.stamp {
  text-align: center;
}

.stamp-num {
  font-family: var(--font-head);
  font-size: 64px;
  line-height: 1;
  color: var(--orange);
}

.stamp-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(221, 213, 176, 0.6);
  margin-top: 4px;
}

.kdojsme-photo {
  height: clamp(260px, 38vh, 380px); /* responzivní — 38vh ≈ 410px na 1080p, clamped na 380px */
  background: rgba(30, 107, 98, 0.2);
  border: 1px solid rgba(30, 107, 98, 0.4);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: opacity 0.25s, border-color 0.25s;
}

.kdojsme-photo:hover {
  opacity: 0.9;
  border-color: var(--orange);
}

.kdojsme-photo::after {
  content: '↗';
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  transition: opacity 0.2s;
}

.kdojsme-photo:hover::after { opacity: 1; }

/* ── Sekce 4: GALERIE ────────────────────────────────────── */
#galerie {
  background: var(--dark);
  overflow-y: auto;
}

#galerie > .content {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  padding: 136px 48px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Galerie má nejvíce obsahu — zmenšit mezeru pod nadpisem */
#galerie .section-title {
  margin-bottom: 24px;
}

.galerie-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

/* Masonry rozložení 5 fotek */
.galerie-grid .gfoto {
  background: var(--dark2);
  border: 1px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: opacity 0.25s, border-color 0.25s;
}

.galerie-grid .gfoto:hover {
  opacity: 0.85;
  border-color: var(--orange);
}

.galerie-grid .gfoto::after {
  content: '↗';
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.2s;
}

.galerie-grid .gfoto:hover::after { opacity: 1; }

.gfoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder foto boxy */
.gfoto-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(221, 213, 176, 0.25);
  letter-spacing: 0.1em;
}

/* Řada 1: foto 1–3 (5+4+3=12), Řada 2: foto 4–7 (4+3+3+2=12) */
.galerie-grid .gfoto:nth-child(1) { grid-column: span 5; height: clamp(120px, 20vh, 210px); }
.galerie-grid .gfoto:nth-child(2) { grid-column: span 4; height: clamp(120px, 20vh, 210px); }
.galerie-grid .gfoto:nth-child(3) { grid-column: span 3; height: clamp(120px, 20vh, 210px); }
.galerie-grid .gfoto:nth-child(4) { grid-column: span 4; height: clamp(110px, 18vh, 190px); }
.galerie-grid .gfoto:nth-child(5) { grid-column: span 3; height: clamp(110px, 18vh, 190px); }
.galerie-grid .gfoto:nth-child(6) { grid-column: span 3; height: clamp(110px, 18vh, 190px); }
.galerie-grid .gfoto:nth-child(7) { grid-column: span 2; height: clamp(110px, 18vh, 190px); }

/* ── Archiv ročníků ─────────────────────────────────────── */
.archiv-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(221, 213, 176, 0.5);
  margin-bottom: 16px;
}

.rocniky-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.rocnik-btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1.5px solid rgba(30, 107, 98, 0.5);
  border-radius: 2px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.rocnik-btn:hover {
  background: rgba(212, 98, 42, 0.15);
  border-color: var(--orange);
}

.rocnik-btn.active,
.rocnik-btn.rocnik-btn--all {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
}

.rocnik-btn.active:hover,
.rocnik-btn.rocnik-btn--all:hover {
  background: #c0541f;
  border-color: #c0541f;
}

.rocnik-btn.rocnik-btn--all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rocnik-btn.rocnik-btn--all .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.rocnik-btn.rocnik-btn--all:hover .arrow {
  transform: translateX(3px);
}

/* ── Lightbox ───────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(12, 26, 22, 0.95);
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 3px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  opacity: 0;
  transition: opacity 0.25s;
  touch-action: none;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-in;
}

#lightbox-img[hidden] { display: none; }
#lightbox-img.loaded { opacity: 1; }
#lightbox-img.lb-zoomed { cursor: grab; }
#lightbox-img.lb-dragging { cursor: grabbing; }

/* Placeholder pro lightbox */
#lightbox-placeholder {
  width: 800px;
  max-width: 90vw;
  height: 500px;
  max-height: 85vh;
  background: var(--dark2);
  border: 1px solid rgba(30, 107, 98, 0.4);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(221, 213, 176, 0.4);
}

#lightbox-placeholder[hidden] { display: none; }

#lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 32px;
  color: var(--cream);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  background: none;
  border: none;
  line-height: 1;
}

#lightbox-close:hover { opacity: 1; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 42px;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--cream);
  opacity: 0.6;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s, color 0.2s;
}

.lb-arrow:hover {
  opacity: 1;
  color: var(--orange);
}

.lb-prev { left: 8px; }
.lb-next { right: 8px; }

#lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(221, 213, 176, 0.6);
}


/* ── Praktické informace — sloučeno do #zazij, stejný rámeček
   jako .card v Co zažiješ (vlastní border na každé dlaždici,
   ne sdílený hairline rozdělovač) ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-cell {
  background: rgba(30, 107, 98, 0.15);
  border: 1px solid rgba(30, 107, 98, 0.35);
  border-radius: 4px;
  padding: 16px;
  transition: border-color 0.3s, transform 0.3s;
}

.info-cell:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.info-cell-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.info-cell-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.info-cell-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.info-cell-value {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.info-cell-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(221, 213, 176, 0.6);
  line-height: 1.35;
}

/* ── Praktické informace — samostatný scroll-snap bod hned za
   #zazij (přímé dítě body, ne vnořené uvnitř sekce), ať ho
   scroll-snap má kde "chytit" i při rychlejším scrollování
   a nepřeskočí ho rovnou na #galerie. Vizuálně plynule
   navazuje na #zazij, žádná vlastní nav-dot/nav-link položka. ── */
.zazij-info {
  scroll-snap-align: start;
  /* Přesně navazuje na barvu na konci #zazij .photo-bg (#112b20),
     ať mezi sekcemi není vidět žádný švih/skok — jeden plynulý
     přechod dolů do --dark2. */
  background: linear-gradient(180deg, #112b20 0%, var(--dark2) 160px);
  padding: 20px 48px 56px;
}

/* ── Obsah mírně nad středem — #kdojsme, #info-rodice ── */
#kdojsme > .content,
#info-rodice > .content {
  top: 50%;
  bottom: auto;
  transform: translateY(-45%);
}

/* ── #zazij: sekce plyne na výšku podle obsahu (větší karty),
   místo pevných 100vh — ať karty i patička navazují bez
   zbytečné prázdné mezery a sekce může být klidně vyšší. ── */
@media (min-width: 769px) {
  #zazij {
    height: auto;
    overflow: visible;
  }

  #zazij > .content {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    padding: 140px 48px 32px;
  }
}

/* ── Sekce 6: INFO PRO RODIČE ────────────────────────────── */
#info-rodice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#info-rodice .photo-bg {
  /* Placeholder — nahraď: background-image: url('../images/cta-ohen.jpg'); */
  background-image: linear-gradient(180deg, #0a1c13 0%, #1a2e1a 100%);
}

#info-rodice .content {
  text-align: center;
  align-items: center;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 110px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-sub {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 44px);
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 48px;
  background: var(--orange);
  color: #fff;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: #c0541f;
  transform: translateY(-2px);
}

/* ── Krátký text pod podtitulkem (#info-rodice) ──────────── */
.cta-story {
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ── Kontaktní kanály — WhatsApp / telefon / e-mail (#info-rodice) ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: left;
}

.contact-cell {
  display: block;
  background: var(--dark2);
  border: 1px solid rgba(221, 213, 176, 0.18);
  border-radius: 4px;
  padding: 22px 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.contact-cell:hover {
  background: rgba(30, 107, 98, 0.15);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.contact-cell-icon {
  margin-bottom: 10px;
}

.contact-cell-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--orange);
}

.contact-cell-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.contact-cell-value {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* WhatsApp — zvýrazněná (oranžová) karta */
.contact-cell--featured {
  background: var(--orange);
  border-color: var(--orange);
}

.contact-cell--featured:hover {
  background: #c0541f;
  border-color: #c0541f;
}

.contact-cell--featured .contact-cell-icon svg { color: #fff; }
.contact-cell--featured .contact-cell-label { color: rgba(255, 255, 255, 0.75); }
.contact-cell--featured .contact-cell-value { color: #fff; }

/* Odkaz na fotogalerii proběhlého ročníku — stejný jazyk jako
   "Všechny ročníky →" v archivu, ale jako menší, tlumenější odkaz */
.cta-gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
  opacity: 0.8;
  margin-bottom: 28px;
  transition: color 0.2s, opacity 0.2s;
}

.cta-gallery-link:hover {
  color: var(--orange);
  opacity: 1;
}

/* ── Logo watermark — malé logo vlevo nahoře v sekcích ─── */
.watermark-logo {
  position: absolute;
  top: 136px; /* pod nav lištou (120px) + mezera */
  left: 48px;
  z-index: 2;
  pointer-events: none;
}

.watermark-logo img {
  height: 114px;
  width: auto;
  display: block;
  opacity: 0.45;
}

/* CSS filtry pro přebarvení loga (aplikuje se na <img> element)
   Použití: přidej třídu na <img src="images/logo.png"> */
.logo-filter-cream {
  /* Přebarví logo na #DDD5B0 — pro tmavá pozadí */
  filter: brightness(0) saturate(100%) invert(91%) sepia(9%) saturate(398%) hue-rotate(10deg) brightness(97%) contrast(85%);
}

.logo-filter-teal {
  /* Přebarví logo na #1E6B62 — pro světlá pozadí */
  filter: brightness(0) saturate(100%) invert(34%) sepia(24%) saturate(706%) hue-rotate(127deg) brightness(88%) contrast(95%);
}

/* ── Placeholder pro logo (dokud neexistuje images/logo.png) ─ */
.logo-placeholder {
  background: rgba(30, 107, 98, 0.25);
  border: 1px dashed rgba(221, 213, 176, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(221, 213, 176, 0.4);
  border-radius: 3px;
}

/* Velikost pro navigační lištu */
.logo-placeholder--nav {
  height: 36px;
  width: 108px;
  font-size: 10px;
}

/* Velikost pro velké hero logo */
.logo-placeholder--hero {
  height: 140px;
  width: 340px;
  font-size: 16px;
  max-width: 80vw;
}

/* Velikost pro watermark */
.logo-placeholder--watermark {
  height: 34px;
  width: 96px;
  font-size: 9px;
  opacity: 0.5;
}

/* Velikost pro links.html */
.logo-placeholder--links {
  height: 88px;
  width: 260px;
  font-size: 14px;
  margin: 0 auto;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #060e0b;
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  scroll-snap-align: none;
}

#site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(221, 213, 176, 0.4);
}

.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(221, 213, 176, 0.25);
}

/* ── Responzivita ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kdojsme-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .kdojsme-photo {
    height: 320px;
  }
}

@media (max-width: 768px) {
  html { overflow: auto; height: auto; }

  body { height: auto; overflow-y: auto; scroll-snap-type: none; }

  #site-nav { height: 64px; padding: 0 16px; }
  .nav-links { display: none; }
  .site-nav-logo { height: 64px; }
  .site-nav-logo img { height: 52px; opacity: 1 !important; }
  body.hero-active .site-nav-logo img { opacity: 1 !important; }
  .btn-sleduj { padding: 6px 12px; font-size: 11px; }

  /* Mobil: vždy kompaktní roh loga, i na hero (žádný vystředěný velký stav).
     Kotví se zprava (right:100% = levý okraj loga), aby stužka celá stála
     nalevo od loga — tam je na mobilu prázdno (skryté .nav-links) — a
     nezasahovala ani do loga, ani do tlačítka Sleduj nás napravo. */
  #season-ribbon,
  body.hero-active #season-ribbon {
    top: 18%;
    left: auto;
    right: 100%;
    margin-right: 8px;
    transform-origin: right bottom;
    transform: rotate(-8deg);
    font-size: 11px;
    letter-spacing: 0.025em;
    padding: 2px 6px;
  }

  .lb-arrow { font-size: 30px; padding: 8px 10px; }
  #lightbox-close { font-size: 26px; top: 14px; right: 16px; }

  .section {
    height: auto;
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    display: block;
    isolation: isolate;
  }

  .photo-bg {
    position: absolute;
    inset: 0;
    min-height: 100%;
    z-index: 0;
  }

  .section > .content {
    position: relative;
    z-index: 1;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 64px 20px 40px;
  }

  .section-title { font-size: clamp(32px, 9vw, 44px); margin-bottom: 18px; }
  .section-label { margin-bottom: 8px; }

  #galerie { overflow: hidden; }
  #galerie > .content { padding: 64px 20px 24px; }
  #galerie .section-title { margin-bottom: 12px; }

  /* Karty na mobilu nevyplní 100svh — nenatahovat sekci na celou
     výšku obrazovky, ať za posledni kartou nevznikne mezera do
     info dlaždic. */
  #zazij { min-height: auto; }

  .cards-grid { grid-template-columns: 1fr; gap: 10px; }
  .card { max-width: 100%; }
  .card-photo { height: 100px; }
  .card-body { padding: 10px; }
  .card-icon { font-size: 20px; margin-bottom: 4px; }
  .card-icon svg { width: 20px; height: 20px; }
  .card-title { font-size: 17px; margin-bottom: 3px; }
  .card-text { font-size: 12px; line-height: 1.3; }

  .zazij-info { padding: 20px 20px 32px; }

  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .info-cell { padding: 10px; }
  .info-cell-icon { font-size: 18px; margin-bottom: 4px; }
  .info-cell-icon svg { width: 18px; height: 18px; }
  .info-cell-label { font-size: 9px; margin-bottom: 3px; }
  .info-cell-value { font-size: 16px; margin-bottom: 2px; }
  .info-cell-note { font-size: 11px; line-height: 1.25; }

  .cta-title { margin-bottom: 6px; }
  .cta-sub { margin-bottom: 18px; }

  .cta-story { margin-bottom: 20px; }

  .contact-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
  .contact-cell { padding: 14px 16px; }
  .contact-cell-icon svg { width: 20px; height: 20px; }
  .contact-cell-label { font-size: 10px; margin-bottom: 3px; }
  .contact-cell-value { font-size: 13px; }

  .cta-gallery-link { font-size: 12px; margin-bottom: 16px; }

  .hero-title { font-size: 52px; }
  .hero-story { font-size: 17px; }
  .hero-countdown { font-size: 11px; gap: 10px; }
  .cd-num { font-size: 15px; }
  .tag { font-size: 14px; padding: 6px 14px; }

  .stamps-row { gap: 20px; flex-wrap: wrap; }
  .stamp-num { font-size: 48px; }

  .kdojsme-layout { grid-template-columns: 1fr; }
  .kdojsme-photo { height: 280px; }

  .galerie-grid { margin-bottom: 14px; }
  .galerie-grid .gfoto:nth-child(1) { grid-column: span 12; height: 140px; }
  .galerie-grid .gfoto:nth-child(2) { grid-column: span 6; height: 110px; }
  .galerie-grid .gfoto:nth-child(3) { grid-column: span 6; height: 110px; }
  .galerie-grid .gfoto:nth-child(n+4) { display: none; }

  .archiv-title { margin-bottom: 8px; }
  .rocniky-row { gap: 8px; margin-bottom: 8px; }
  .rocnik-btn { padding: 7px 14px; font-size: 12px; }

  #nav-dots { display: none; }

  #site-footer {
    position: relative;
    padding: 24px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  footer { padding: 24px; flex-direction: column; text-align: center; }

  #hero .content {
    top: auto !important;
    position: relative !important;
    padding-top: 72px !important;
  }

  #hero .photo-bg {
    background-position: center center !important;
  }

  #kdojsme .content,
  #zazij .content,
  #galerie .content,
  #info-rodice .content {
    top: auto !important;
    bottom: auto !important;
    position: relative !important;
    transform: none !important;
  }

  .section > .content {
    position: relative !important;
  }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
}

/* ── Mobilní spodní navigace ─────────────────────────────── */
#mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  #mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    background: rgba(12, 26, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(30, 107, 98, 0.3);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  }

  .mob-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 2px;
    color: rgba(221, 213, 176, 0.5);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
    text-decoration: none;
  }

  .mob-nav-icon { font-size: 18px; line-height: 1; }
  .mob-nav-icon svg { display: block; width: 18px; height: 18px; }
  .mob-nav-label { font-size: 9px; }
  .mob-nav-item.active { color: var(--orange); }
  .mob-nav-item.mob-nav-cta { color: var(--orange); }
  .mob-nav-item:hover { color: var(--cream); }
  .section > .content { padding-bottom: 80px !important; }
  /* #zazij pokračuje rovnou do .zazij-info (ne do spodní mobilní
     navigace) — nepotřebuje její odsazení, jinak vzniká zbytečná
     mezera před info dlaždicemi. */
  #zazij > .content { padding-bottom: 20px !important; }
  .zazij-info { padding-bottom: 80px; }
}
