/* ==========================================================================
   Cosples 2027 — styly
   --------------------------------------------------------------------------
   Barvy, písma, zaoblení a stíny se mění v sekci 1 (proměnné v :root).
   Zbytek souboru je rozdělený podle sekcí stránky ve stejném pořadí,
   v jakém jsou v index.html / eng.html.
   ========================================================================== */


/* 1. PROMĚNNÉ (design tokens) ============================================== */
:root {
  /* hlavní barvy */
  --color-bg: #f5ead8;          /* pozadí stránky */
  --color-surface: #ebddc5;     /* pozadí střídavých sekcí, karet */
  --color-text: #201e1d;        /* text */
  --color-accent: #c67139;      /* hlavní akcent (tlačítka, odkazy) */
  --color-accent-2: #7a8a5e;    /* druhý akcent (horní lišta) */
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  /* odstíny neutrální */
  --color-neutral-100: #f9f4ed;
  --color-neutral-600: #82796a;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25; /* patička */

  /* odstíny akcentu */
  --color-accent-100: #fff2eb;
  --color-accent-400: #f6a06b;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;

  /* odstíny druhého akcentu */
  --color-accent-2-100: #f0fae1;

  /* písma (načítají se z Google Fonts v <head>) */
  --font-heading: "Baloo 2", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  /* zaoblení */
  --radius-md: 16px;
  --radius-lg: 28px;

  /* stíny */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  /* šířky obsahu */
  --width-wide: 1160px;
  --width-mid: 1040px;
  --width-narrow: 900px;
}


/* 2. ZÁKLAD ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
h2 { font-size: 30px; }
p { margin: 0 0 12px; }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.icon { width: 16px; height: 16px; flex: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* obal sekcí: .section = normální, .section-alt = s barevným pozadím přes celou šířku */
.section-alt { background: var(--color-surface); }
.container { max-width: var(--width-wide); margin: 0 auto; padding: 64px 32px; }
.container-mid { max-width: var(--width-mid); }
.container-narrow { max-width: var(--width-narrow); padding-block: 56px; }
.lead { font-size: 15px; opacity: 0.85; max-width: 640px; }
.note { font-size: 14px; opacity: 0.7; max-width: 640px; font-style: italic; margin-bottom: 30px; }


/* 3. TLAČÍTKA A ŠTÍTKY ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 15px; line-height: 1.2;
  color: var(--color-text); text-decoration: none;
  background: transparent; border: 1px solid transparent;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
}
.btn-small { font-size: 14px; padding: 9px 16px; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  padding: 8px 16px; border-radius: 999px;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); font-size: 12px; padding: 6px 14px; }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-neutral .icon { color: var(--color-accent); }


/* 4. HORNÍ LIŠTA S OZNÁMENÍM ============================================== */
.announcement {
  background: var(--color-accent-2);
  color: var(--color-accent-2-100);
  text-align: center;
  padding: 9px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.announcement a { color: inherit; font-weight: 600; }


/* 5. NAVIGACE ============================================================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; flex-wrap: wrap; gap: 13px 22px;
  padding: 13px 18px;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-divider);
}
.nav-brand { margin-right: auto; }
.nav-brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { color: var(--color-text); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--color-accent); }

/* přepínač jazyka */
.lang {
  display: inline-flex; overflow: hidden;
  border: 1px solid var(--color-divider); border-radius: 999px;
}
.lang a {
  padding: 7px 12px; font-size: 13px;
  color: var(--color-text); text-decoration: none;
}
.lang a + a { border-left: 1px solid var(--color-divider); }
.lang a:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.lang a.active { background: var(--color-accent); color: var(--color-bg); }

/* hamburger tlačítko — zobrazuje se jen na mobilu (viz sekce 14) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; padding: 8px;
  color: var(--color-text); background: transparent;
  border: 1px solid var(--color-divider); border-radius: 999px; cursor: pointer;
}
.nav-toggle svg { width: 100%; height: 100%; display: block; }


/* 6. ÚVOD (hero) =========================================================== */
.hero { padding-top: 64px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero-sub { font-size: 18px; max-width: 520px; opacity: 0.85; margin-bottom: 26px; }
.hero-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-social { margin-top: 30px; }
.hero-poster {
  display: block;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--color-surface);
  aspect-ratio: 3 / 4;
}
.hero-poster img { width: 100%; height: 100%; object-fit: contain; }


/* 7. AFTERMOVIE ============================================================ */
.video {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 16 / 9; margin-bottom: 14px;
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.more-link { font-size: 14px; font-weight: 600; }
#aftermovie h2 { font-size: 26px; }


/* 8. PROGRAM =============================================================== */
.program {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-neutral-100); box-shadow: var(--shadow-sm);
}
.program-row {
  display: grid; grid-template-columns: 80px 1fr 1fr; gap: 8px;
  padding: 16px 24px; border-bottom: 1px solid var(--color-divider);
  font-size: 15px;
}
.program-row:last-child { border-bottom: 0; }
.program-row:nth-child(even) { background: var(--color-bg); }
.program-head {
  padding-block: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-600);
}
.program-head:nth-child(even) { background: none; }
.program-time { font-family: var(--font-heading); font-size: 16px; color: var(--color-accent-700); }
.program-row > div:last-child:not(.program-time) { opacity: 0.85; }


/* 9. VSTUPENKY ============================================================= */
.tickets {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-bottom: 26px;
}
.ticket {
  display: flex; flex-direction: column; gap: 9px;
  padding: 28px; border-radius: calc(var(--radius-lg) * 1.15);
  background: var(--color-bg); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.ticket:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.ticket-name { font-family: var(--font-heading); font-size: 22px; color: var(--color-accent-700); }
.ticket-price { font-family: var(--font-heading); font-size: 32px; line-height: 1.2; }
.ticket ul {
  margin: 0; padding-left: 18px; font-size: 14px; opacity: 0.85;
  display: flex; flex-direction: column; gap: 6px;
}


/* 10. DRESSCODE ============================================================ */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px; margin-top: 26px;
}
.gallery a {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface); box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%; height: 100%; object-fit: contain;
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
  transition: filter 0.2s;
}
.gallery a:hover img { filter: saturate(0.85) contrast(0.95) brightness(1.03); }


/* 11. MÍSTO KONÁNÍ ========================================================= */
.venue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.venue-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.venue-grid p:not(.venue-name) { font-size: 15px; opacity: 0.85; }
.map {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 4 / 3;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }


/* 12. PARTNEŘI ============================================================= */
.partners-group { margin-bottom: 34px; }
.partners-group h3 {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-600);
}
.logos { display: flex; flex-wrap: wrap; gap: 14px; }
.logos a {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 64px; padding: 8px;
  background: var(--color-neutral-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.logos a:hover { box-shadow: var(--shadow-md); }
.logos img { max-width: 100%; max-height: 100%; object-fit: contain; }


/* 13. PATIČKA / KONTAKT ==================================================== */
.footer { background: var(--color-neutral-900); color: var(--color-neutral-100); }
.footer .container {
  padding-block: 56px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-logo { height: 28px; width: auto; filter: invert(1); margin-bottom: 12px; }
.footer p { font-size: 14px; opacity: 0.75; margin-bottom: 4px; }
.footer a { color: var(--color-accent-400); }
.footer-note { font-size: 13px; opacity: 0.6; max-width: 320px; }
.archive { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; }


/* 14. MOBILNÍ ZOBRAZENÍ ==================================================== */
@media (max-width: 820px) {
  .container { padding: 48px 16px; }
  .hero-grid, .venue-grid { grid-template-columns: 1fr; }
  .hero-poster-wrap { order: -1; max-width: 360px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 16px; border-top: 1px solid var(--color-divider); }
  .program-row { grid-template-columns: 52px 1fr 1fr; padding: 12px 14px; font-size: 13px; }
}
