/* =========================================================================
   MOMO FITNESS: početna stranica
   ========================================================================= */

/* ── Hero ────────────────────────────────────────────────────────────────── */
/* Telefon: fotografija gore čista, prelaz u crno, tekst ispod lica (ne preko njega).
   Desktop: tekst lijevo, fotografija desno preko cijele visine. */
.hero { position: relative; overflow: hidden; padding-bottom: clamp(40px, 6vw, 56px); }
.hero__media { position: relative; height: 64svh; min-height: 400px; max-height: 620px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 22%),
    linear-gradient(to top, var(--bg) 4%, rgba(10,10,10,.85) 26%, rgba(10,10,10,0) 58%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 36px; margin-top: -21svh; }
.hero__content { display: grid; gap: 16px; justify-items: start; }
.hero__content > * { max-width: 100%; }
.hero__title { font-size: clamp(3.5rem, 16vw, 9.6rem); line-height: .86; }
.hero__title .line { display: block; }
.hero__sub { max-width: 46ch; color: #c9c4bb; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; width: 100%; }
.hero__note { font-size: .82rem; line-height: 1.5; color: var(--muted); max-width: 44ch; padding-left: 12px; border-left: 1px solid var(--accent); }

/* brojke: tri kolone sa linijama između */
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.hero__stats li { padding: 18px 10px; display: grid; align-content: start; gap: 6px; text-align: center; }
.hero__stats li + li { border-left: 1px solid var(--line); }
.hero__stat { font-size: clamp(2.2rem, 9vw, 3.1rem); line-height: .9; display: flex; align-items: baseline; justify-content: center; gap: 5px; white-space: nowrap; }
/* "od" u istom redu ispred broja: sva tri broja poravnata u istoj liniji */
.hero__stat small { font: 600 .6rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hero__stat-label { font-size: .74rem; color: var(--muted); line-height: 1.35; }
.hero__stat-unit { font-size: .55em; margin-left: 2px; }

.hero__video { width: 100%; max-width: 520px; }

@media (max-width: 899px) {
  /* fotografija počinje ispod headera, glava ne ide u navigaciju */
  .hero__media { margin-top: calc(var(--hdr-h) * .5); height: 70svh; max-height: 680px; }
  .hero__bg { object-position: 50% 14%; }
  .hero__actions .btn--primary { width: 100%; }
  .hero__actions .link-arrow { display: none; } /* "Upoznaj trenera" je u meniju i ispod u "Mojoj priči" */
  .hero__stats { order: 2; }
  .hero__video { order: 3; }
}

@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr-h) + 24px) 0 48px; }
  .hero__media { position: absolute; inset: 0; height: auto; min-height: 0; max-height: none; }
  .hero__bg { left: auto; width: 58%; object-position: 50% 22%; }
  .hero__scrim {
    background:
      linear-gradient(90deg, var(--bg) 40%, rgba(10,10,10,.6) 58%, rgba(10,10,10,.05) 80%),
      linear-gradient(to top, var(--bg) 0%, rgba(10,10,10,0) 30%);
  }
  .hero__inner { margin-top: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "content video" "stats video"; align-items: end; column-gap: clamp(32px, 5vw, 80px); gap: 30px; }
  .hero__content { grid-area: content; padding-top: 40px; gap: 18px; }
  .hero__title { font-size: clamp(4.6rem, 7.4vw, 7.4rem); }
  .hero__stats { grid-area: stats; max-width: 560px; }
  .hero__stats li { text-align: left; padding: 16px 20px; }
  .hero__stats li:first-child { padding-left: 0; }
  .hero__stat { justify-content: flex-start; }
  .hero__video { grid-area: video; align-self: end; justify-self: end; max-width: 400px; }
}

/* ── YouTube facade (video se učitava tek na klik) ───────────────────────── */
.yt {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: #000; text-align: left;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform 1.2s var(--ease-out), opacity .5s; }
.yt:hover img { transform: scale(1.04); opacity: 1; }
.yt__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  transition: transform .45s var(--ease-out);
}
.yt__play::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(240,165,0,.5);
  animation: yt-pulse 2.4s var(--ease-out) infinite;
}
@keyframes yt-pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.yt__play svg { width: 26px; height: 26px; margin-left: 3px; }
.yt:hover .yt__play { transform: scale(1.08); }
.yt__play--lg { width: 92px; height: 92px; }
.yt__play--lg svg { width: 34px; height: 34px; }
.yt__label {
  position: absolute; left: 14px; bottom: 12px;
  font: 600 .66rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 999px; background: rgba(10,10,10,.7);
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt.is-playing { cursor: default; }
.yt--wide { max-width: 1040px; margin-inline: auto; }

/* ── Moja priča ──────────────────────────────────────────────────────────── */
.story__grid { display: grid; gap: clamp(48px, 7vw, 96px); align-items: center; }
@media (min-width: 900px) { .story__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.story__visual { position: relative; max-width: 480px; width: 100%; margin-inline: auto; }
.story__frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-lg); background: var(--card);
}
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.story__img--after { clip-path: inset(0 0 0 0); }
.js .story__frame[data-wipe] .story__img--after { clip-path: inset(100% 0 0 0); }
.is-preview .story__frame[data-wipe] .story__img--after { clip-path: inset(0 0 0 0); }
.story__frame::after { /* tamni prelaz pri dnu (pokriva i ostatke Instagram okvira) */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,10,.45), transparent 26%, transparent 70%, rgba(10,10,10,.55));
}
/* indikator Prije ——— Danas: linija se puni dok se skroluje (--p od 0 do 1) */
.story__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.story__step {
  font: 600 .68rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  transition: background-color .4s, color .4s, border-color .4s;
}
.story__step--before { color: var(--ink); background: var(--text); border-color: var(--text); }
.story__visual.is-after .story__step--before { color: var(--muted); background: transparent; border-color: var(--line-2); }
.story__visual.is-after .story__step--after { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.story__step--after { color: var(--muted); }
.story__bar { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.story__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.is-preview .story__bar span { transform: none; }

.story__kg {
  position: absolute; right: 12px; bottom: 16px; z-index: 3;
  padding: 16px 20px; border-radius: var(--r-lg);
  background: var(--accent); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  display: grid; justify-items: start;
}
.story__kg .display { font-size: clamp(2.6rem, 8vw, 3.6rem); line-height: .9; }
.story__kg small { font: 600 .68rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
@media (min-width: 900px) { .story__kg { right: -32px; bottom: 28px; } }

.story__text { display: grid; gap: 22px; justify-items: start; }
.story__quote {
  font: 500 clamp(1.15rem, 2.2vw, 1.45rem)/1.45 var(--body); color: var(--text);
  padding-left: 18px; border-left: 2px solid var(--accent);
}
.story__body { display: grid; gap: 14px; color: var(--muted); max-width: 60ch; }

/* ── Transformacije ──────────────────────────────────────────────────────── */
.tf__count { display: grid; justify-items: start; gap: 4px; }
.tf__count .display { font-size: clamp(4rem, 12vw, 7.5rem); line-height: .8; color: var(--accent); }
.tf__count small { font: 600 .7rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .tf__count { justify-items: end; text-align: right; } }

/* telefon: sve kartice u redu za prevlačenje (kao na Instagramu), sljedeća malo viri */
.tf__grid {
  display: grid; gap: 12px;
  grid-auto-flow: column; grid-auto-columns: 84%;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.tf__grid::-webkit-scrollbar { display: none; }
.tf__grid .tf__item { scroll-snap-align: start; }
@media (max-width: 559px) {
  .tf__grid .tf__item[hidden] { display: block; }
  .tf__more { display: none; }
}
@media (min-width: 560px) {
  .tf__grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (min-width: 1024px) { .tf__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tf__item[hidden] { display: none; }

.tf__card {
  position: relative; display: block; width: 100%;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .4s;
}
.tf__card:hover { border-color: var(--line-2); }
.tf__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tf__half { position: relative; aspect-ratio: 3 / 4.6; overflow: hidden; }
.tf__half img, .tf__single img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transition: transform 1.2s var(--ease-out);
}
.tf__card:hover img { transform: scale(1.04); }
.tf__single { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
.tf__label {
  position: absolute; left: 10px; bottom: 10px;
  font: 600 .62rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: rgba(10,10,10,.78); color: var(--muted);
}
.tf__label--after { background: var(--accent); color: var(--ink); }
.tf__meta {
  position: absolute; left: 10px; top: 10px; display: flex; gap: 8px; align-items: center;
  padding: 7px 11px; border-radius: 999px; background: rgba(10,10,10,.8); font-size: .78rem; color: var(--muted);
}
.tf__meta strong { color: var(--accent); }
.tf__zoom {
  position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10,10,10,.75);
  opacity: 0; transform: scale(.8); transition: opacity .35s, transform .45s var(--ease-out);
}
.tf__zoom svg { width: 18px; height: 18px; }
.tf__card:hover .tf__zoom, .tf__card:focus-visible .tf__zoom { opacity: 1; transform: none; }
@media (hover: none) { .tf__zoom { opacity: 1; transform: none; } }

/* ulaz: mozaik (pojednostavljeno Scroll Animation / 53) */
.js .tf__item[data-reveal] { opacity: 1; transform: none; }
.js .tf__item[data-reveal] .tf__card { clip-path: inset(12% 12% 12% 12% round 14px); opacity: 0; transition: clip-path 1.1s var(--ease-out), opacity .6s; }
.js .tf__item[data-reveal].is-in .tf__card { clip-path: inset(0 0 0 0 round 14px); opacity: 1; }
.js .tf__item[data-reveal-delay="1"] .tf__card { transition-delay: .08s; }
.js .tf__item[data-reveal-delay="2"] .tf__card { transition-delay: .16s; }
.is-preview .tf__item .tf__card { clip-path: none !important; opacity: 1 !important; }

.tf__more { margin-top: 30px; text-align: center; }

/* Lightbox */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(6,6,6,.96); color: var(--text);
}
.lightbox::backdrop { background: rgba(0,0,0,.7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__stage { width: min(92vw, 860px); max-height: 86svh; display: grid; place-items: center; }
.lightbox__stage .tf__card { pointer-events: none; border: 0; background: none; }
.lightbox__stage .tf__pair { max-height: 86svh; }
.lightbox__stage .tf__half { aspect-ratio: auto; height: min(80svh, 720px); }
.lightbox__stage .tf__single { aspect-ratio: auto; max-height: 86svh; }
.lightbox__stage .tf__single img { object-fit: contain; max-height: 86svh; }
.lightbox__stage .tf__zoom { display: none; }
.lightbox__btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(30,30,30,.9); border: 1px solid var(--line-2);
}
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }

/* ── Recenzije: traka koja klizi sama, a može se i prevući prstom ────────── */
.marquee { display: grid; gap: 16px; }
.marquee__row {
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  cursor: grab;
}
.marquee__row::-webkit-scrollbar { display: none; }
.marquee__row.is-dragging { cursor: grabbing; }
.marquee__track { display: flex; gap: 16px; width: max-content; padding-inline: var(--gutter); }
.rv {
  width: min(380px, 80vw); flex: none;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  user-select: none;
}
.rv__stars { color: var(--accent); letter-spacing: .2em; font-size: .85rem; }
.rv__text { color: #d6d1c8; font-size: .95rem; line-height: 1.6; flex: 1; }
.rv__author { display: flex; align-items: center; gap: 12px; }
.rv__author img, .rv__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.rv__avatar { display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); font-weight: 600; color: var(--accent); }
.rv__author strong { display: block; font-size: .92rem; }
.rv__author small { color: var(--muted); font-size: .78rem; }
.marquee__hint { margin-top: 18px; text-align: center; font: 600 .66rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
@media (hover: hover) { .marquee__hint { display: none; } }

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; padding-block: clamp(110px, 16vw, 200px); text-align: center; }
.cta__media { position: absolute; inset: 0; }
.cta__bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: .35; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10,10,10,.35), var(--bg) 75%); }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.cta__title { font-size: clamp(3.4rem, 12vw, 8.4rem); }
.cta .lead { max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
