/* CTK Varaždin + Folkofonija — shared styles
   Colours: change --red to re-tint the whole site (design options: #9E2430, #8A1F2B, #B22A33, #7A1C2E) */
:root {
  --red: #9E2430;
  --red-deep: #741A23;
  --paper: #FBF9F7;
  --ink: #1A1413;
  --muted: #5C5450;
  --muted-2: #6B6259;
  --line: rgba(26, 20, 19, 0.14);
  --gutter: clamp(24px, 8vw, 140px);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Jost, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.06;
  margin: 0;
}
.h2-lg { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.05; }
.accent-italic { font-style: italic; color: var(--red); }
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; margin: 0 0 20px; }
.body { font-size: 17px; line-height: 1.7; margin: 0; }
.dim { color: rgba(26, 20, 19, 0.72); }

/* ---------- Layout helpers ---------- */
.section { padding: clamp(80px, 12vh, 150px) var(--gutter); }
.section-bleed { padding: clamp(80px, 12vh, 150px) 0; }
.inset { padding: 0 var(--gutter); }
.bg-white { background: #fff; }
.bg-red { background: var(--red); color: #fff; }
.border-top { border-top: 1px solid rgba(26, 20, 19, 0.1); }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 6vw, 90px);
  align-items: start;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(32px, 6vh, 64px);
}

/* Diagonal "woven" motif + placeholder tiles */
.weave {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(135deg, rgba(158, 36, 48, 0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(45deg, rgba(158, 36, 48, 0.06) 0 1px, transparent 1px 22px);
}
.ph {
  border: 1px solid rgba(26, 20, 19, 0.16);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background-image: repeating-linear-gradient(135deg, rgba(26, 20, 19, 0.05) 0 9px, transparent 9px 18px);
}
.ph-red { background-image: repeating-linear-gradient(135deg, rgba(158, 36, 48, 0.06) 0 10px, transparent 10px 20px); padding: 16px; }
.ph > span, .ph-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* A slot filled from the CMS: the photo replaces the striped placeholder, and the
   caption stays in the markup as the image's alt text. */
.ph.has-image { padding: 0; background-image: none; border-color: transparent; }
.ph.has-image > span { display: none; }

/* Scroll-reveal (only hidden when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Progress bar + nav ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: rgba(26, 20, 19, 0.08);
}
.progress > div { height: 100%; width: 0%; background: var(--red); }

.nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(251, 249, 247, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 20, 19, 0.08);
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--ink); }
.nav-brand img { height: 34px; width: auto; mix-blend-mode: multiply; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-start;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--red); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.btn-outline-red {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--red);
  color: var(--red);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline-red:hover { background: var(--red); color: #fff; }
.btn-outline-red .arrow { font-family: var(--mono); font-size: 11px; }
.btn-pill {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  white-space: nowrap;
}
.btn-pill:hover { color: #fff; background: var(--red-deep); }

/* Generic rectangular buttons (Folkofonija) */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid rgba(26, 20, 19, 0.22);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { border-color: var(--red); color: var(--red); }
.btn-solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-sm { padding: 12px 20px; }

/* ---------- Horizontal hero (CTK) ---------- */
.hero-wrap { position: relative; height: 320vh; background: var(--paper); }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-track {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.panel {
  position: relative;
  width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}
.panel-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-copy {
  max-width: 560px;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.6;
  color: rgba(26, 20, 19, 0.72);
  margin: 0;
}
.scroll-cue {
  position: absolute;
  bottom: 48px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-cue::before {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  background: var(--red);
  animation: bob 2.4s ease-in-out infinite;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(72px, 10vh, 120px) var(--gutter);
  overflow-y: auto;
  color: #fff;
}
.red-card { background: var(--red); padding: clamp(28px, 3.4vw, 52px); }
.red-card .panel-eyebrow { color: inherit; opacity: 0.75; margin-bottom: 22px; }
.red-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  margin: 0 0 24px;
}
.red-card p { max-width: 520px; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.65; margin: 0; }
.instr-caption {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.instr-caption span + span { color: var(--muted-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(16px, 3vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.stat-value { font-family: var(--serif); font-size: clamp(40px, 5.5vw, 84px); line-height: 1; color: var(--red); }
.stat-label { margin-top: 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Lists / rows ---------- */
.timeline { margin-top: 40px; border-top: 1px solid var(--line); }
.timeline-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26, 20, 19, 0.1);
}
.timeline-row .year { font-family: var(--mono); font-size: 13px; color: var(--red); padding-top: 3px; }
.timeline-row .text { font-size: 16px; line-height: 1.55; }

/* Cards (groups, ensembles) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card {
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--red); }
.group-card { padding: 26px 24px 28px; background: var(--paper); }
.group-card .age { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--red); }
.group-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 14px 0 12px; }
.group-card p { font-size: 15px; line-height: 1.6; color: rgba(26, 20, 19, 0.72); margin: 0 0 20px; }
.group-card .when {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Repertoire (red section) */
.repertoire { overflow: hidden; }
.repertoire .eyebrow { color: inherit; opacity: 0.7; }
.repertoire .h2 { margin-bottom: 22px; }
.repertoire .body { opacity: 0.85; }
.rep-list { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.rep-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.rep-row .title { font-size: clamp(18px, 2vw, 26px); font-family: var(--serif); }
.rep-row .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: right;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--serif);
  white-space: nowrap;
}
.marquee-regions { margin-top: clamp(48px, 8vh, 90px); font-size: clamp(38px, 6vw, 92px); opacity: 0.22; }
.marquee-regions span { padding-right: 40px; }

/* Costumes */
.costumes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.costume .ph { aspect-ratio: 3 / 4; }
.costume .name { margin-top: 14px; font-size: 17px; }
.costume .note { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Horizontal strips (gallery, programme). Inset is carried by spacer
   elements rather than padding so the first tile lines up with the heading. */
.strip { display: flex; gap: 16px; overflow-x: auto; padding: 0 0 20px; }
.strip::before { content: ""; flex: 0 0 var(--gutter); margin-right: -16px; }
.strip::after { content: ""; flex: 0 0 clamp(8px, 8vw, 140px); margin-left: -16px; }
.strip-tile { flex: 0 0 auto; width: clamp(240px, 32vw, 420px); aspect-ratio: 4 / 3; }

/* Events */
.events { border-top: 1px solid rgba(26, 20, 19, 0.16); }
.event-row {
  display: grid;
  grid-template-columns: clamp(92px, 12vw, 130px) minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(26, 20, 19, 0.1);
  transition: background 0.3s ease;
}
.event-row:hover { background: rgba(158, 36, 48, 0.04); }
.event-row .date { font-family: var(--mono); font-size: 13px; color: var(--red); }
.event-row .title { font-size: clamp(19px, 2vw, 26px); font-family: var(--serif); }
.event-row .place { margin-top: 6px; font-size: 14px; color: var(--muted); }
.event-row .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* News */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.news .ph { aspect-ratio: 16 / 10; margin-bottom: 18px; }
.news .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.news h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; margin: 12px 0 10px; }
.news p { font-size: 15px; line-height: 1.6; color: rgba(26, 20, 19, 0.7); margin: 0 0 12px; }
.news .more { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Enrolment */
.join { position: relative; padding: clamp(90px, 16vh, 190px) var(--gutter); overflow: hidden; }
.join .weave-light {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 24px);
}
.join-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}
.join .eyebrow { color: inherit; opacity: 0.7; }
.join h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.02;
  margin: 0 0 20px;
}
.join p { max-width: 460px; font-size: 17px; line-height: 1.7; opacity: 0.88; margin: 0; }
.join-form { display: flex; flex-direction: column; gap: 14px; max-width: 420px; width: 100%; }
.field {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field::placeholder { color: rgba(255, 255, 255, 0.7); }
.field:focus { border-color: #fff; }
.join-form button {
  padding: 17px 22px;
  border: none;
  background: #fff;
  color: var(--red);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.join-form button:hover { transform: translateY(-2px); }
.form-note { font-size: 14px; opacity: 0.85; min-height: 1em; }

/* Partners / sponsors */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.logo-tile {
  height: 88px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Footer */
.footer { padding: clamp(60px, 10vh, 120px) var(--gutter) 40px; background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-name { font-family: var(--serif); font-size: 30px; color: #fff; margin-bottom: 14px; }
.footer-grid p { font-size: 15px; line-height: 1.7; margin: 0; opacity: 0.7; }
.footer-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: rgba(255, 255, 255, 0.7); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* ---------- Folkofonija-specific ---------- */
.fk-brand { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; color: var(--ink); }
.fk-brand .name { font-family: var(--serif); font-size: 25px; line-height: 1; color: var(--red); }
.fk-brand .city { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.nav-links a.nav-out { color: var(--muted); }
.lang { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.lang span { padding: 7px 10px; }
.lang .on { background: var(--red); color: #fff; }
.lang .off { border: 1px solid rgba(26, 20, 19, 0.18); color: var(--muted); cursor: not-allowed; }

.fk-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(110px, 16vh, 180px) var(--gutter) clamp(40px, 7vh, 80px);
  overflow: hidden;
}
.fk-hero .motif {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(158, 36, 48, 0.055) 0 1px, transparent 1px 20px);
}
.fk-hero .visual {
  position: absolute;
  top: clamp(90px, 14vh, 150px);
  left: var(--gutter);
  right: var(--gutter);
  height: clamp(180px, 34vh, 400px);
  padding: 16px;
  background-image: repeating-linear-gradient(135deg, rgba(26, 20, 19, 0.05) 0 10px, transparent 10px 20px);
}
.fk-hero .visual span { font-size: 11px; letter-spacing: 0.14em; }
.fk-hero-body { position: relative; margin-top: clamp(200px, 38vh, 440px); }
.fk-hero .eyebrow { margin-bottom: 22px; }
.fk-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 11vw, 190px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
}
.fk-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
}
.fk-hero-grid p {
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.6;
  color: rgba(26, 20, 19, 0.75);
  margin: 0;
}
.fk-dates { display: flex; flex-direction: column; gap: 10px; }
.fk-dates .big { font-family: var(--serif); font-size: clamp(32px, 4vw, 56px); line-height: 1; color: var(--red); }
.fk-dates .small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.fk-quick { margin-top: clamp(28px, 5vh, 52px); display: flex; flex-wrap: wrap; gap: 10px; }

.fk-countries { background: var(--red-deep); color: #fff; overflow: hidden; }
.fk-countries .marquee { animation-duration: 30s; font-size: clamp(26px, 3.4vw, 54px); padding: 18px 0; }

.fk-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: clamp(16px, 3vw, 40px); padding-top: 28px; }
.fk-stats .stat-value { font-size: clamp(34px, 4vw, 58px); }
.fk-stats .stat-label { margin-top: 10px; font-size: 13px; }

.program-head { margin-bottom: clamp(28px, 5vh, 52px); }
.program-head .eyebrow { margin-bottom: 16px; }
.program-head .actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.program-head .actions .meta { font-size: 11px; letter-spacing: 0.16em; }
.day { flex: 0 0 auto; width: clamp(260px, 30vw, 380px); border-top: 2px solid var(--red); padding-top: 18px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.day-head .name { font-family: var(--serif); font-size: 30px; }
.day-head .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--red); }
.slot {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(26, 20, 19, 0.12);
}
.slot .time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.slot .what { display: block; font-size: 17px; line-height: 1.35; }
.slot .where { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.program-extra { padding: clamp(28px, 5vh, 50px) var(--gutter) 0; }
.program-extra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.program-extra-grid .text { font-size: 16px; line-height: 1.8; }
.program-extra-grid .ph { height: 140px; padding: 12px; }

.ensemble .ph { aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--line); padding: 12px; background-image: repeating-linear-gradient(135deg, rgba(158, 36, 48, 0.07) 0 10px, transparent 10px 20px); }
.ensemble .info { padding: 20px 20px 24px; }
.ensemble .country { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.ensemble .name { font-family: var(--serif); font-size: 25px; margin: 10px 0 8px; }
.ensemble .note { font-size: 14px; line-height: 1.6; color: var(--muted); }
.cards-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.archive { margin-top: clamp(32px, 5vh, 56px); border-top: 1px solid var(--line); padding-top: 26px; }
.archive .label { margin-bottom: 16px; }
.years { display: flex; flex-wrap: wrap; gap: 10px; }
.years a {
  padding: 10px 16px;
  border: 1px solid rgba(26, 20, 19, 0.18);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.years a:hover { border-color: var(--red); color: var(--red); }
.years-static span { padding: 10px 16px; border: 1px solid rgba(26, 20, 19, 0.18); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }

.info .eyebrow { color: inherit; opacity: 0.75; }
.info h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.04; margin: 0 0 20px; }
.info p { max-width: 460px; font-size: 17px; line-height: 1.7; margin: 0; }
.info-list { border-top: 1px solid rgba(255, 255, 255, 0.3); }
.info-row { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.info-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; margin-bottom: 8px; }
.info-row .v { font-size: 17px; line-height: 1.55; }

.newsletter { display: flex; gap: 8px; }
.newsletter input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.newsletter input:focus { border-color: #fff; }
.newsletter button {
  flex: 0 0 auto;
  padding: 13px 16px;
  border: none;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* ---------- Detail cards + dialogs ----------
   "Više" instead of extra pages: cards and buttons open a native <dialog>. */
.btn-more {
  padding: 13px 22px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-more:hover { background: var(--red); color: #fff; }
.btn-more-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-more-light:hover { background: #fff; color: var(--red); }

/* The whole card is clickable; the inner button carries keyboard focus. */
.group-card[data-detail] { cursor: pointer; transition: border-color 0.2s ease, transform 0.2s var(--ease-out); }
.group-card[data-detail]:hover { border-color: var(--red); transform: translateY(-3px); }
.card-more {
  display: block;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
}
.news .more { border: 0; background: none; padding: 0; font-family: var(--sans); color: var(--red); cursor: pointer; }

.status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 7px; margin-right: 8px; border: 1px solid currentColor; }
.status-past { color: var(--muted); }
.status-now { color: var(--red); background: rgba(158, 36, 48, 0.08); }
.status-soon { color: var(--ink); opacity: 0.7; }

dialog.detail {
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
dialog.detail-wide { width: min(880px, calc(100vw - 32px)); }
dialog.detail::backdrop { background: rgba(26, 20, 19, 0.55); }
.detail-close {
  float: right;
  margin: -8px -8px 0 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.detail-close:hover { border-color: var(--red); color: var(--red); }
.detail-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
dialog.detail h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 12px 0 22px; }
dialog.detail h3 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
dialog.detail p { font-size: 16px; line-height: 1.7; color: rgba(26, 20, 19, 0.78); margin: 0 0 14px; }
.detail-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail-facts dd { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .scroll-cue::before { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Gallery events + Repozitorij ---------- */
/* CTK gallery tiles link to the event's photo page; the name stays visible on the photo. */
a.strip-tile { position: relative; color: inherit; transition: transform 0.2s var(--ease-out); }
a.strip-tile:hover { transform: translateY(-3px); }
a.strip-tile.has-image > span {
  display: block;
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(26, 20, 19, 0.65));
}
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: clamp(28px, 4vh, 48px); }
.album img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.material audio { width: 100%; margin-top: 14px; }
.event-row[data-detail] { cursor: pointer; }

/* ---------- Subpages (skupine, novosti, o nama …) ---------- */
/* Same text styles the detail pop-ups used, on a normal page. */
.detail-page > p, .detail-page > .detail-facts, .detail-page > .timeline, .detail-page > h3 { max-width: 720px; }
.detail-page h3 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.detail-page p { font-size: 17px; line-height: 1.7; color: rgba(26, 20, 19, 0.78); margin: 0 0 14px; }
.detail-page .h2-lg { margin-bottom: 28px; }
.detail-page .ph { max-width: 720px; aspect-ratio: 16 / 9; margin-bottom: 24px; }
a.group-card { display: block; color: inherit; }
a.group-card:hover { color: inherit; }
a.event-row { color: inherit; }

/* ---------- Nav: Skupine dropdown + small-screen menu ---------- */
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 240px;
  padding: 10px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(26, 20, 19, 0.12);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 400;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 7px 18px; }
.nav-drop-label { padding: 10px 18px 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.nav-toggle { display: none; }
@media (min-width: 1101px) {
  .nav-links { overflow: visible; }
  .nav-drop { padding: 10px 0; margin: -10px 0; }   /* hover bridge to the menu */
}
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle {
    display: block;
    order: 2;
    margin-left: auto;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: 500 13px/1 var(--sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-actions { order: 3; }
  .nav-links {
    order: 4;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    overflow: visible;
    white-space: normal;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav-links > a, .nav-drop > a { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
  .nav-drop-menu { display: block; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 10px 14px; }
  .nav-drop-label { padding-left: 0; }
  .nav-drop-menu a { padding: 6px 0; }
  .js .nav-links { display: none; }
  .js .menu-open .nav-links { display: flex; }
}
@media (max-width: 520px) {
  .nav-actions .btn-outline-red { display: none; }   /* FolkoFonija is the last menu entry instead */
}
.nav-links .nav-only-small { display: none; }
@media (max-width: 520px) { .nav-links .nav-only-small { display: block; } }
