/* The CODE, landing "Naša priča". Mobile first, bez frameworka.
   Boje i fontovi su varijable na :root; za CMS je dovoljno kopirati cijelu datoteku.
   Fontovi (Oswald, Inter, Google Fonts, OFL licenca) su lokalno u assets/fonts, bez render-blocking poziva. */

@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(assets/fonts/oswald-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(assets/fonts/oswald-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0e0e0e;
  --bg-2: #161513;
  --line: #2a2825;
  --gold: #f5c542;
  --gold-soft: rgba(245, 197, 66, 0.14);
  --text: #f2efe8;
  --muted: #a9a49b;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1120px;
  --sticky-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: hidden;
  /* mjesto za sticky traku na mobitelu, da ne prekrije sadržaj */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom));
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.1rem, 9vw, 4rem); }
h2 { font-size: clamp(1.75rem, 7vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: 0.02em; }
p { margin: 0 0 14px; }

/* blagi "neon" sjaj kao natpis THE CODE */
.glow { text-shadow: 0 0 18px rgba(245, 197, 66, 0.28), 0 0 2px rgba(245, 197, 66, 0.35); }
.gold { color: var(--gold); text-shadow: 0 0 22px rgba(245, 197, 66, 0.35), 0 0 2px rgba(245, 197, 66, 0.4); }

.lead { font-size: 1.1rem; color: var(--text); max-width: 34em; }
.small { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.eyebrow, .kicker {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 14px;
}

.section { padding: 64px var(--gutter); max-width: var(--max); margin: 0 auto; }

/* ---------- 1. HERO: video, naslov, CTA ---------- */
.hero {
  padding: 14px var(--gutter) 44px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  background: radial-gradient(120% 50% at 50% 0%, rgba(245, 197, 66, 0.12), transparent 60%);
}
/* video je visok koliko stane, da naslov i gumb ostanu na prvom ekranu mobitela */
.vsl__frame {
  position: relative;
  width: min(100%, calc(58vh * 9 / 16));
  width: min(100%, calc(58svh * 9 / 16));
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(245, 197, 66, 0.08);
}
.vsl__frame video, .vsl__frame img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.vsl__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 0 22%;
  border: 0; background: none; color: var(--text); cursor: pointer;
}
.vsl__play[hidden] { display: none; }
.vsl__play-icon {
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold); color: var(--bg);
  box-shadow: 0 0 0 8px rgba(245, 197, 66, 0.18), 0 0 40px rgba(245, 197, 66, 0.45);
  transition: transform 0.2s ease;
}
.vsl__play-icon svg { margin-left: 4px; }
.vsl__play:hover .vsl__play-icon { transform: scale(1.06); }

.hero__text { padding-top: 22px; }
.hero h1 { font-size: clamp(1.6rem, 7vw, 3.3rem); margin-bottom: 8px; }
.hero__answer { font: 600 clamp(1.25rem, 5.4vw, 2.2rem)/1.1 var(--font-head); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 20px; }
.hero .reassure { margin-top: 12px; }


/* ---------- 4. ZAŠTO ---------- */
.why h2 { max-width: 18em; }

/* ---------- 2. PROBLEM ---------- */
.problem h2 { max-width: 18em; }
.reasons { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.reason { border-left: 3px solid var(--gold); padding: 2px 0 2px 18px; }
.reason h3 { margin-bottom: 6px; }
.reason p { color: #dcd8cf; margin: 0; }
.problem__close { margin-top: 32px; font-size: 1.1rem; color: var(--text); max-width: 34em; }
.cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px 20px;
  overflow: hidden;
}
.card h3 { color: var(--gold); margin-bottom: 8px; }
.card p { color: #dcd8cf; margin: 0; position: relative; }
.card::after {
  content: attr(data-num);
  position: absolute; right: 14px; top: -6px;
  font: 600 5rem/1 var(--font-head);
  color: rgba(245, 197, 66, 0.08);
  pointer-events: none;
}

/* ---------- 5. KAKO ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__icon { flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.step h3 { margin-bottom: 4px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }
.step__n { color: var(--gold); margin-right: 8px; }

/* ---------- 6. GALERIJA ---------- */
.gallery { padding-right: 0; }
.gallery h2 { padding-right: var(--gutter); }
.hint { color: var(--muted); font-size: 0.85rem; margin: -6px 0 16px; }
.gallery__track {
  list-style: none; margin: 0; padding: 0 var(--gutter) 8px 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track li { scroll-snap-align: start; }
.gallery__item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.gallery__item picture { display: block; }
.gallery__item img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 0.4s ease; }
.gallery__item:hover img { transform: scale(1.03); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 480px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; border-radius: 8px; }
.lightbox__close {
  position: absolute; top: -14px; right: -6px; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--gold); color: var(--bg);
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* ---------- 7. PRAKTIČNO ---------- */
.info__grid { display: grid; gap: 14px; margin: 24px 0 0; }
.info__item { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.info__item dt { font: 500 0.8rem/1 var(--font-head); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.info__item dd { margin: 0; font-size: 1.05rem; }
.info__item .btn { margin-top: 14px; }
.prices { list-style: none; margin: 0; padding: 0; }
.prices li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.prices li:last-child { border-bottom: 0; }
.prices li { align-items: baseline; }
.prices small { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.prices strong { white-space: nowrap; flex-shrink: 0; font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; color: var(--text); }

/* ---------- 8. FAQ ---------- */
.faq__list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font: 400 1.6rem/1 var(--font-head);
  color: var(--gold);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: #dcd8cf; padding: 0 0 18px; margin: 0; }

/* ---------- 9. ZAVRŠNI CTA ---------- */
.final {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 88px;
  background: radial-gradient(70% 60% at 50% 40%, rgba(245, 197, 66, 0.12), transparent 70%);
  max-width: none;
}
.final h2 { max-width: 14em; margin-left: auto; margin-right: auto; }
.final .lead { margin: 0 auto 28px; color: #dcd8cf; }

/* ---------- CTA blok (ponavlja se kroz stranicu) ---------- */
.cta-block { text-align: center; margin-top: 36px; }
.reassure { color: var(--muted); font-size: 0.88rem; margin: 12px auto 0; max-width: 30em; }
.final .reassure { margin-top: 14px; }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font: 600 1rem/1.1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary { background: var(--gold); color: var(--bg); box-shadow: 0 0 24px rgba(245, 197, 66, 0.25); }
.btn--primary:hover { box-shadow: 0 0 34px rgba(245, 197, 66, 0.45); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--gold); color: var(--gold); background: transparent; font-size: 0.9rem; }
.btn--ghost:hover { background: var(--gold-soft); }
.btn--big { font-size: 1.15rem; padding: 18px 32px; min-height: 60px; width: 100%; max-width: 420px; }

/* ---------- Footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 24px var(--gutter) 32px; border-top: 1px solid var(--line); }
.footer p { margin: 0; }

/* ---------- 0. STICKY CTA (mobitel) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--sticky-h);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(14, 14, 14, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__text { font: 500 0.95rem/1.2 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; }
.sticky-cta__text small { display: block; font: 400 0.78rem/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 2px; }
.sticky-cta .btn { min-height: 46px; padding: 10px 20px; }

/* ---------- Tablet i desktop ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .step:nth-last-child(2) { border-bottom: 0; }
  .info__grid { grid-template-columns: 1fr 1fr; }
  .info__item--wide { grid-column: 1 / -1; }
  .gallery__track { grid-auto-columns: 32%; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 18px; }
  .sticky-cta { display: none; }
  .section { padding-top: 96px; padding-bottom: 96px; }

  .hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 64px;
    text-align: left;
    padding-top: 48px;
    padding-bottom: 80px;
    background: radial-gradient(70% 70% at 25% 30%, rgba(245, 197, 66, 0.12), transparent 65%);
  }
  .vsl__frame { width: min(380px, calc(78vh * 9 / 16)); }
  .hero__text { padding-top: 0; }
  .hero .btn--big { width: auto; }
  .hero .reassure { margin-left: 0; }

  .reasons { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; border-bottom: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .info__grid { grid-template-columns: 1fr 1fr 1.4fr; }
  .info__item--wide { grid-column: auto; }

  .gallery { padding-right: var(--gutter); }
  .gallery h2 { padding-right: 0; }
  .hint { display: none; }
  .gallery__track {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    padding: 0;
  }
  /* 7 kadrova: prvi je velik i zauzima dva reda */
  .gallery__track li:first-child { grid-row: span 2; }
  .gallery__track li:not(:first-child) .gallery__item img { aspect-ratio: 3 / 4; }
  .gallery__track li:first-child .gallery__item,
  .gallery__track li:first-child picture,
  .gallery__track li:first-child img { height: 100%; }
}

/* Privola za kolačiće (consent.js). Iznad sticky trake dok je otvorena. */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 16px; display: flex; justify-content: center; }
.cookie__box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; max-width: 640px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.cookie__box p { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.cookie__box a { color: var(--gold); }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie__actions .btn { min-height: 44px; padding: 10px 18px; font-size: 0.9rem; }
.has-cookie .sticky-cta { visibility: hidden; }
.footer__link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
