/* Kapela Parkán — společné styly (header, nav, kontejnery, breakpointy) */

:root {
  --red: #d7192f;
  --red2: #ff2a3f;
  --bg: #050506;
  --panel: #101014;
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.84);
  --muted: rgba(255,255,255,.58);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  /* `clip` zabraňuje horizontálnímu úniku, ale neperpetuje scroll-container,
     takže position:sticky na vnořených prvcích funguje proti viewportu. */
  overflow-x: clip;
}

a { color: inherit; }

/* ===== HLAVIČKA + MENU (jednotné pro všechny stránky) ===== */

.site-header {
  position: relative;
  z-index: 10;
  /* Stejný kontejner jako obsah stránky → menu vpravo i logo vlevo zarovnáno se zbytkem webu. */
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header .brand {
  display: flex;
  align-items: center;
}

.site-header .brand img {
  display: block;
  width: clamp(150px, 15vw, 245px);
  height: auto;
  aspect-ratio: 1790 / 925; /* prevence layout shiftu při loadu */
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.55vw, 25px);
  flex-wrap: nowrap;
  /* Lehký posun nahoru oproti vertikálnímu středu loga. */
  transform: translateY(-12px);
}

.nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: clamp(11px, .9vw, 13px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: #fff; }

.nav a.active {
  color: #fff;
  border-bottom-color: var(--red);
}

/* === Hamburger ikona (3 pruhy → X po kliknutí) === */
.hamburger {
  display: none;
  position: relative;
  z-index: 60; /* nad overlayem, aby šel zavřít */
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === Fullscreen mobilní menu === */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 80px 24px 60px;
  background: rgba(5,5,6,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: navFadeIn .22s ease;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.mobile-nav-close:hover {
  background: rgba(215,25,47,.18);
  border-color: var(--red);
  transform: rotate(90deg);
}
.mobile-nav a {
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(22px, 6vw, 30px);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 12px;
  border: 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--red2);
}
@keyframes navFadeIn {
  from { opacity: 0; transform: scale(.98); }
  to   { opacity: 1; transform: scale(1); }
}
/* Když je menu otevřené, zamknout scroll body */
body.no-scroll { overflow: hidden; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: flex; }
}

/* ===== Stránkový kontejner (mimo home) ===== */

.page-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 82px auto 90px;
}

.page-wrap.narrow {
  width: min(900px, calc(100% - 48px));
}

/* Hero / kicker / h1 — sekundární stránky */

.page-hero {
  display: block;
  margin-bottom: 34px;
}
.page-hero > div { margin-bottom: 24px; }

.kicker {
  margin: 0 0 14px;
  color: var(--red2);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .25em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .9;
  letter-spacing: -.06em;
  color: rgba(255,255,255,.92);
  font-weight: 950;
}

/* Společný styl perexu pod h1 — totožný se .pribeh-hero .hero-text na Náš příběh */
.claim {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  font-weight: 400;
}

/* Patička */

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 60px auto 32px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  color: rgba(255,255,255,.40);
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .page-hero { display: block; }
  .claim { margin-top: 18px; }
  .page-wrap { margin: 56px auto 60px; }
}

@media (max-width: 760px) {
  .site-header { padding-top: 16px; }            /* posunout celý header výš */
  .site-header .brand img { width: 115px; }
  .nav { transform: none; }                       /* zruší desktop posun, hamburger zůstane v centru řádku */
}
@media (max-width: 520px) {
  .site-header,
  .page-wrap,
  .site-footer { width: calc(100% - 28px); }
  .site-header { padding-top: 14px; }
  .site-header .brand img { width: 100px; }
}
