/* Novogodišnja priča u Prijestonici 2026/27 - V2 sistem: blokovi, tačke, Anton */
:root {
  --dark: #062B2E;
  --deep: #04262A;
  --teal-block: #084649;
  --teal: #0E8588;
  --red: #E4281F;
  --gold: #BB8510;
  --gold-light: #EBC46A;
  --white: #ffffff;
  --m: clamp(20px, 6vw, 64px);
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --text: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --shadow: 6px 6px 0 rgba(2, 24, 27, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--white);
  font-family: var(--display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 400; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--m); }

/* --- tekst --- */
.label {
  font-family: var(--display);
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.label--gold { color: var(--gold-light); }
.label--dark { color: var(--dark); }

/* --- blokovi --- */
.block--red  { background: var(--red); color: var(--white); }
.block--gold { background: var(--gold); color: var(--dark); }
.block--teal { background: var(--teal-block); color: var(--white); }
.block--dark { background: var(--deep); color: var(--white); }


/* --- dugmad --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--display); font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(2, 24, 27, 0.55); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 rgba(2, 24, 27, 0.55); }
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--red  { background: var(--red); color: var(--white); }
.btn--big { font-size: clamp(19px, 1.8vw, 26px); padding: 18px 28px; }
.btn svg, .cta__link svg, .place__go svg { flex: none; }
.btn svg { width: 1.2em; height: 1.2em; }
svg path { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: square; }

/* --- gornja traka --- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(6, 43, 46, 0.96); }
.topbar__in { display: flex; align-items: center; gap: 28px; height: 80px; }
.topbar__logo img { width: 64px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 10px 0; transition: color .2s ease; }
.nav a:hover, .nav a.is-active { color: var(--gold-light); }
.burger { display: none; }

/* --- hero --- */
.hero { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); min-height: calc(100vh - 80px); min-height: calc(100svh - 80px); }
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 40px var(--m); min-height: 420px; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.06); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
.hero__shade { position: absolute; inset: 0; background: rgba(6, 43, 46, 0.58); }
.dots { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.dots circle.dg { animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero__logo-wrap { position: relative; width: min(82%, 560px); }
.hero__logo { width: 100%; filter: drop-shadow(0 18px 36px rgba(2, 24, 27, 0.6)); animation: rise .9s cubic-bezier(.2,.8,.2,1) both; cursor: pointer; }
.hero__logo.is-spin { animation: spin .9s cubic-bezier(.3,1.4,.5,1); }
@keyframes spin { 0% { transform: rotate(0) scale(1); } 40% { transform: rotate(-14deg) scale(1.06); } 100% { transform: rotate(0) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }

.hero__body { display: flex; flex-direction: column; }
.hero__dates { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(28px, 4vh, 56px) var(--m); }
.hero__date { display: flex; flex-direction: column; }
.hero__num { font-size: clamp(76px, min(9.6vw, 17vh), 200px); line-height: 0.98; }
.hero__strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: clamp(18px, 2.6vh, 30px) var(--m); }
.hero__place { font-size: clamp(24px, 2.4vw, 40px); line-height: 1.08; text-transform: uppercase; }
.hero__slogan { font-size: clamp(16px, 1.5vw, 24px); line-height: 1.15; letter-spacing: 0.04em; text-transform: uppercase; text-align: right; }
.hero__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(20px, 3vh, 36px) var(--m); }

.cd { display: flex; gap: clamp(10px, 1.6vw, 22px); margin-top: 8px; }
.cd div { display: flex; flex-direction: column; align-items: center; min-width: 1.6em; }
.cd b { font-weight: 400; font-size: clamp(40px, 4vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd div > span { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); margin-top: 4px; }
.countdown.is-done .cd { display: none; }


/* --- sekcije --- */
.sec { padding: clamp(64px, 9vw, 120px) 0 0; }
.sec__head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec__head h2 { font-size: clamp(56px, 8vw, 110px); line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.sec__aside { margin-left: auto; }

/* priča */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.story__text { font-family: var(--text); font-weight: 500; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.4; color: rgba(255, 255, 255, 0.9); }
.story__text p { margin: 0 0 18px; }
.story__lead { font-family: var(--display); font-size: clamp(40px, 5vw, 76px); line-height: 1.04; text-transform: uppercase; color: var(--white); }
.story__photo { margin: 0; position: relative; box-shadow: 14px 14px 0 var(--red); }
.story__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); }
.stat { display: flex; align-items: flex-end; gap: 18px; padding: clamp(22px, 3vw, 40px); min-height: 180px; }
.stat__n { font-size: clamp(80px, 10vw, 150px); line-height: 0.85; }

/* galerija */
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 300px);
  gap: 6px; padding: 0 6px; max-width: 1600px; margin: 0 auto;
}
.g { position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--deep); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.g:hover img, .g:focus-visible img { transform: scale(1.06); }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
.gallery .g:first-child { grid-row: span 2; }
.g__tag {
  position: absolute; left: 14px; bottom: 14px;
  background: var(--red); color: var(--white); padding: 7px 14px 8px;
  font-family: var(--text); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); line-height: 1;
  box-shadow: 5px 5px 0 rgba(2, 24, 27, 0.5);
}
.g__tag--gold { background: var(--gold); color: var(--dark); }

/* lineup */
.lineup { position: relative; margin-top: clamp(64px, 9vw, 120px); background: var(--deep); overflow: hidden; }
.lineup .dots { height: 70%; top: 0; bottom: auto; }
.lineup__in { position: relative; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(48px, 6vw, 88px); }
.kucice__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 480px); gap: clamp(16px, 3vw, 40px); align-items: end; margin-bottom: 8px; }
.kucice__top .sec__head { margin-bottom: 14px; }
.kucice__lead { margin: 0 0 32px; max-width: 30ch; font-family: var(--text); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; color: var(--gold-light); }
.lineup__head { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.lineup__title { font-size: clamp(110px, 20vw, 300px); line-height: 0.82; text-transform: uppercase; letter-spacing: -0.005em; }
.hut { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: grab; touch-action: pan-y; }
.hut:active { cursor: grabbing; }
.hut__canvas { display: block; width: 100%; aspect-ratio: 1 / 0.92; }
.hut__hint { display: block; margin-top: 6px; text-align: center; white-space: nowrap; font-family: var(--text); font-weight: 700; font-size: 18px; color: var(--gold-light); opacity: .85; transition: opacity .3s ease; }
.hut.is-off { display: none; }
.etiketa { display: flex; flex-direction: column; align-items: flex-start; transform: rotate(-6deg); transform-origin: 0 100%; margin-bottom: 0.4em; }
.etiketa__top { background: var(--red); padding: 8px 14px 5px; font-size: clamp(20px, 2vw, 30px); line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: var(--shadow); }
.etiketa__main { background: var(--gold); color: var(--dark); padding: 10px 22px 6px; font-size: clamp(48px, 6vw, 92px); line-height: 1; text-transform: uppercase; box-shadow: var(--shadow); }
.lineup__sub { margin: 22px 0 36px; font-family: var(--text); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); color: var(--gold-light); }
.names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.name { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: clamp(120px, 12vw, 170px); padding: 18px 22px 20px; overflow: hidden; }
.name.block--dark { background: var(--teal); }
.name__no { font-size: 18px; letter-spacing: 0.08em; opacity: 0.85; }
.name__x { display: block; overflow: hidden; padding: 0.14em 0 0.04em; margin: -0.14em 0 -0.04em; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.name__w { display: inline-block; transition: transform .45s cubic-bezier(.6,0,.2,1), opacity .45s ease; }
.name__w.is-out { transform: translateY(-110%); opacity: 0; }
.name__w.is-pre { transform: translateY(110%); opacity: 0; transition: none; }

/* lokacija */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.place { position: relative; display: block; min-height: clamp(280px, 30vw, 420px); overflow: hidden; text-decoration: none; }
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.place::before { content: ''; position: absolute; inset: 0; background: rgba(6, 43, 46, 0.72); z-index: 1; transition: background .3s ease; }
.place:hover img { transform: scale(1.05); }
.place:hover::before { background: rgba(6, 43, 46, 0.6); }
.place__body { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; min-height: inherit; padding: clamp(24px, 3vw, 40px); }
.place__name { font-size: clamp(48px, 6vw, 92px); line-height: 1; text-transform: uppercase; }
.place__go { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; margin-top: 8px; background: var(--red); padding: 10px 16px 8px; font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: var(--shadow); }
.place__go svg { width: 22px; height: 22px; }

/* kućice */
.kucice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.kucice__main { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.kucice__title { font-size: clamp(64px, 8.4vw, 132px); line-height: 0.98; text-transform: uppercase; }
.kucice__title span { color: var(--dark); }
.kucice__range { font-size: clamp(28px, 3vw, 46px); line-height: 1; white-space: nowrap; }
.kucice__facts { display: grid; }
.fact { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 40px); }
.fact__n { font-size: clamp(56px, 6.4vw, 96px); line-height: 0.9; white-space: nowrap; }
.countdown--s .cd b { font-size: clamp(34px, 3.4vw, 52px); }
.cta__link { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(26px, 3.2vw, 44px) clamp(22px, 4vw, 56px); text-decoration: none; transition: background .15s ease; margin-top: 6px; }
.cta__link:hover { background: #A87710; }
.cta__link > span { display: flex; flex-direction: column; gap: 4px; }
.cta__url { font-size: clamp(40px, 5.4vw, 88px); line-height: 1.05; text-transform: uppercase; }
.cta__link svg { width: clamp(44px, 5vw, 80px); height: auto; transition: transform .2s ease; }
.cta__link:hover svg { transform: translateX(8px); }
.kucice__info { grid-column: 1 / -1; margin: 18px 0 0; color: var(--gold-light); }
.kucice__info a { color: var(--white); text-underline-offset: 4px; }
.kucice__info a[href^="mailto"] { text-transform: none; }

/* podnožje */
.footer { margin-top: clamp(80px, 10vw, 140px); background: var(--deep); padding: clamp(40px, 5vw, 64px) 0 clamp(32px, 4vw, 48px); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; }
.footer__mark { width: clamp(120px, 14vw, 180px); }
.footer__partners { display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); flex-wrap: wrap; }
.footer__partners img { height: clamp(64px, 6vw, 88px); width: auto; }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 8px; }
.footer__date { font-size: clamp(30px, 3.4vw, 52px); line-height: 1; }
.footer__place { font-family: var(--text); font-weight: 600; font-size: clamp(20px, 2vw, 28px); margin-top: 6px; }
.footer__slogan { font-size: clamp(15px, 1.4vw, 20px); line-height: 1.18; letter-spacing: 0.05em; color: var(--gold-light); text-align: right; text-transform: uppercase; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(4, 38, 42, 0.96); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: min(1400px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lb__img { max-height: 80vh; width: auto; max-width: 100%; box-shadow: 12px 12px 0 var(--red); }
.lb__cap { background: var(--gold); color: var(--dark); padding: 7px 14px 8px; font-family: var(--text); font-weight: 700; font-size: 22px; }
.lb__close, .lb__nav { flex: none; width: 56px; height: 56px; border: 0; cursor: pointer; background: var(--red); color: var(--white); font-family: var(--display); font-size: 36px; line-height: 1; box-shadow: var(--shadow); }
.lb__close { position: absolute; top: 18px; right: 18px; background: var(--gold); color: var(--dark); }

/* tekst koji se odmotava (carousel) */
.roll { display: block; overflow: hidden; padding: 0.14em 0 0.04em; margin: -0.14em 0 -0.04em; }
.roll__in { display: block; transform: translateY(108%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.is-rolled .roll__in { transform: none; }

/* brojevi */
.cd b { display: inline-block; overflow: hidden; height: 1em; }
.dig { display: inline-block; }
.dig.is-new { animation: digIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes digIn { from { transform: translateY(80%); opacity: 0; } to { transform: none; opacity: 1; } }

/* snijeg */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* --- responsive --- */
@media (max-width: 1080px) {
  .topbar__cta { display: none; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero, .story, .places, .kucice { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__art { min-height: 440px; }
  .hero__logo-wrap { width: min(70%, 420px); }
  .names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kucice__top { grid-template-columns: 1fr; }
  .hut { max-width: 440px; margin: 0 auto; }
  .kucice__lead { margin-bottom: 8px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  .gallery .g:first-child { grid-row: span 1; }

  .burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 48px; height: 48px; margin-left: auto; padding: 0 10px; background: transparent; border: 0; cursor: pointer; }
  .burger span { display: block; height: 3px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .nav { position: absolute; top: 80px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--dark); padding-bottom: 12px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px var(--m); font-size: 26px; }
}
@media (max-width: 560px) {
  .topbar__in { height: 68px; }
  .topbar__logo img { width: 52px; }
  .nav { top: 68px; }
  html { scroll-padding-top: 76px; }
  .hero__art { min-height: 360px; }
  .hero__slogan { text-align: left; }
  .hero__num { font-size: 17vw; }
  .hero__foot .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .names { grid-template-columns: 1fr; }
  .name { min-height: 0; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 64vw; }
  .g--wide { grid-column: span 1; }
  .g--tall { grid-row: span 1; }
  .kucice__range { white-space: normal; }
  .sec__aside { margin-left: 0; }
  .lb { padding: 12px; }
  .lb__nav { position: absolute; bottom: 18px; }
  .lb__prev { left: 18px; } .lb__next { right: 18px; }
  .footer__slogan { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .roll__in { transform: none; }
  .snow { display: none; }
}
