/* ============================================================
   JÁN SLÁVIK – style.css  v20260301
   Modern editorial redesign · Space Grotesk + Inter
   ============================================================ */

/* ── CSS VARIABLES ────────────────────────── */
:root {
  --bg:       #060606;
  --bg2:      #0f0f0f;
  --bg3:      #181818;
  --white:    #f2f0ee;
  --muted:    rgba(242,240,238,0.42);
  --gold:     #b8913f;
  --gold-dim: rgba(184,145,63,0.14);
  --border:   rgba(242,240,238,0.08);
  --display:  'Space Grotesk', system-ui, sans-serif;
  --sans:     'Inter', system-ui, sans-serif;
  --max-w:    1200px;
  --pad-x:    5%;
  --section-pad: 7rem 0;
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── FADE-IN ──────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── CONTAINER ────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ── SECTION SHARED ───────────────────────── */
.section      { padding: var(--section-pad); }
.section-alt  { background: var(--bg2); }
.section-dark { background: var(--bg3); }

/* ── SECTION HEAD ─────────────────────────── */
.section-head { margin-bottom: 3.5rem; }
.section-head.centered { text-align: center; }
.section-head.centered .gold-rule { margin: 0 auto; }

.section-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}
.gold-rule {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}
.section-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAV
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(6,6,6,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2.2rem;
  margin-left: auto;
}

/* ── Language toggle ──────────────────────── */
.lang-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  margin-left: 1.6rem;
  padding: 0.32rem 0.6rem;
  font-family: var(--display);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: rgba(184,145,63,0.4); }
.lt-sep { opacity: 0.3; font-size: 0.55rem; }
.lang-toggle[data-active="sk"] .lt-sk,
.lang-toggle[data-active="en"] .lt-en { color: var(--gold); }
.nav-links a {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,240,238,0.55);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 580px;
  background: #030303;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: url('img2/js1.jpg') 62% center / cover no-repeat;
  animation: heroPan 24s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes heroPan {
  0%   { transform: scale(1.00) translate( 0%,    0%  ); }
  100% { transform: scale(1.10) translate(-2.5%,  1.3%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(6,6,6,0.92) 0%, rgba(6,6,6,0.55) 38%, rgba(6,6,6,0.08) 72%, rgba(6,6,6,0.0) 100%),
    linear-gradient(to bottom, rgba(6,6,6,0.40) 0%, rgba(6,6,6,0.0) 28%,
                               rgba(6,6,6,0.50) 68%, rgba(6,6,6,0.97) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 6% 5.5rem;
}
.hero-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero-name {
  font-family: var(--display);
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: #fff;
  margin-bottom: 2rem;
}
.hero-meta {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(242,240,238,0.58);
  line-height: 1.8;
}

/* scroll line */
.hero-scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BIO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.bio-section { padding: 0; }

.bio-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  align-items: start;
}
.bio-photo {
  position: sticky;
  top: 64px;
  height: calc(100svh - 64px);
  overflow: hidden;
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.bio-slideshow .bio-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.bio-slideshow .bio-slide.active {
  opacity: 1;
}

/* Ken Burns – bio slideshow */
@keyframes kbBio1 {
  from { transform: scale(1.00) translate( 0%,    0%  ); }
  to   { transform: scale(1.08) translate(-1.5%, -0.8%); }
}
@keyframes kbBio2 {
  from { transform: scale(1.00) translate( 0%,    0%  ); }
  to   { transform: scale(1.08) translate( 1.2%, -0.6%); }
}
@keyframes kbBio3 {
  from { transform: scale(1.00) translate( 0%,    0%  ); }
  to   { transform: scale(1.08) translate(-0.8%,  1.2%); }
}
.bio-slideshow .bio-slide:nth-child(1).active { animation: kbBio1 10s ease-in-out forwards; }
.bio-slideshow .bio-slide:nth-child(2).active { animation: kbBio2 10s ease-in-out forwards; }
.bio-slideshow .bio-slide:nth-child(3).active { animation: kbBio3 10s ease-in-out forwards; }
.bio-text {
  background: var(--bg2);
  padding: 6rem var(--pad-x) 6rem 5%;
}
.bio-text .section-head { margin-bottom: 2.2rem; }
.bio-text p {
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 2;
  color: rgba(242,240,238,0.72);
  margin-bottom: 1.4rem;
  max-width: 580px;
  text-align: justify;
}
.bio-text p:last-child { margin-bottom: 0; }
.bio-text strong { color: var(--white); font-weight: 500; }
.bio-text a {
  color: inherit;
  border-bottom: 1px solid rgba(184,145,63,0.45);
  transition: border-color 0.2s, color 0.2s;
}
.bio-text a:hover { color: var(--gold); border-color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DISKOGRAFIA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.album-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}
.album-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  cursor: default;
}
.album-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.album-card:hover img { transform: scale(1.07); }
.album-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 0.85rem 0.85rem;
  background: linear-gradient(to top, rgba(6,6,6,0.95) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.album-card:hover .album-info { transform: translateY(0); }
.album-title {
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}
.album-composer {
  font-size: 0.65rem;
  color: var(--gold);
  margin-top: 0.25rem;
  font-weight: 300;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GALÉRIA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.gallery-grid {
  columns: 4 180px;
  column-gap: 0.65rem;
}
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 0.65rem;
  overflow: hidden;
  cursor: pointer;
  border-radius: 1px;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,6,0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(6,6,6,0.32); }
.gallery-zoom {
  color: rgba(255,255,255,0);
  font-size: 1.6rem;
  transition: color 0.25s;
}
.gallery-item:hover .gallery-zoom { color: rgba(255,255,255,0.9); }

.load-more-wrap { text-align: center; margin-top: 3rem; }
.btn-outline {
  display: inline-block;
  padding: 0.8rem 3rem;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 1px;
  transition: border-color 0.25s, color 0.25s;
  background: none;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline.hidden { display: none; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIGHTBOX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.97);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lb-close {
  position: absolute; top: 1.5rem; right: 2rem;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.lb-close:hover { color: #fff; }
.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.35);
  padding: 1.5rem 1rem;
  transition: color 0.2s;
}
.lb-nav:hover { color: #fff; }
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AUDIO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.audio-list {
  max-width: 800px;
  margin: 0 auto;
}
.audio-item {
  display: grid;
  grid-template-columns: 2.4rem 32px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.audio-item:first-child { border-top: 1px solid var(--border); }

.audio-num {
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: right;
}
.audio-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(242,240,238,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.audio-play:hover,
.audio-play.playing {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}
.audio-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}
.audio-title {
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.audio-item.active-track .audio-title { color: var(--gold); }
.audio-composer {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.audio-duration {
  font-size: 0.67rem;
  font-weight: 300;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.audio-progress-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  cursor: pointer;
}
.audio-progress {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.1s linear;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   AKTUALITY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.4rem;
}
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: default;
}
.event-card img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.event-card:hover img { transform: scale(1.04); }
.event-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 0.9rem 0.85rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.event-card:hover .event-info { transform: translateY(0); }
.event-title {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}
.event-year { font-size: 0.66rem; color: var(--gold); margin-top: 0.15rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PARTNERI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem 3.5rem;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: rgba(242,240,238,0.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s;
}
.partner-card:hover {
  background: rgba(242,240,238,0.08);
  border-color: rgba(184,145,63,0.3);
}
.partner-item {
  height: 42px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
  opacity: 0.4;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-card:hover .partner-item {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   KONTAKT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.kontakt-wrap {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.kontakt-intro {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2.8rem;
}
.kontakt-email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
  border-bottom: 1px solid rgba(184,145,63,0.3);
  padding-bottom: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
}
.kontakt-email:hover { color: var(--gold); border-color: var(--gold); }
.kontakt-adr {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1.3rem;
  letter-spacing: 0.1em;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad-x);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.footer-copy {
  font-size: 0.68rem;
  color: var(--muted);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE ≤ 960px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 960px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo {
    position: relative;
    top: auto;
    height: 65vw;
    max-height: 500px;
  }
  .bio-text { padding: 4.5rem var(--pad-x); }
  .bio-text p { max-width: 100%; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE ≤ 768px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
  :root { --section-pad: 5rem 0; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 90;
    margin-left: 0;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  /* Keď je menu otvorené, backdrop-filter by spôsobil, že position:fixed overlay
     by bol orezaný na výšku navu — zrušíme ho a dáme plné nepriehľadné pozadie */
  #nav.menu-open,
  #nav.menu-open.scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links a { font-size: 0.95rem; letter-spacing: 0.16em; }
  .lang-toggle {
    margin-left: auto;
    margin-right: 0.8rem;
  }

  .hero-name { font-size: clamp(3.8rem, 15vw, 7rem); }
  .hero-content { padding: 0 6% 4.5rem; }

  .album-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .gallery-grid { columns: 2 140px; }
  .events-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .partners-row { gap: 1.5rem 2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE ≤ 480px
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 480px) {
  .hero-name { font-size: clamp(3rem, 18vw, 5rem); }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .audio-num { display: none; }
  .audio-item { grid-template-columns: 32px 1fr auto; }
}
