/* =====================================================================
   BADEN — baden-gsap.css (naslovnica, uz js/baden-gsap.js)
   1. Naslov u glavnom dijelu: linije izlaze iz maske (čisti CSS, radi i bez JS-a)
   2. Maske za riječi koje pravi baden-gsap.js
   3. Lenis (glatki skrol)
   4. Sitni premium detalji: strelice, kartice, krugovi
   Ugasiti: obrisati ovaj fajl i js/baden-gsap.js.
   ===================================================================== */

/* ---------- 1. Naslov liniju po liniju ---------- */
.hh-title .hh-l { display: block; overflow: hidden; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.hh-title .hh-l > span { display: inline-block; }
/* stara tema crta naslov kao "tekst-gradijent" (background-clip: text) — to se ne slaže s maskama, pa boju vraćamo slovima */
.hh-title:has(.hh-l) { background: none !important; -webkit-text-fill-color: currentColor !important; color: #fff !important; }
.hh-title .hh-l > span { -webkit-text-fill-color: currentColor !important; }
@media (prefers-reduced-motion: no-preference) {
  .hh-title:has(.hh-l) { animation: none !important; }
  .hh-title .hh-l > span {
    animation: bd-linija 1.05s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: calc(var(--bd-pomak, 0s) + .08s);
  }
  .hh-title .hh-l + .hh-l > span { animation-delay: calc(var(--bd-pomak, 0s) + .2s); }
}
@keyframes bd-linija { from { transform: translateY(108%); } }

/* ---------- 2. Riječi u naslovima sekcija ---------- */
.bd-r-m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.bd-r { display: inline-block; will-change: transform; }

/* ---------- 3. Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 4. Premium detalji (samo miš) ---------- */
@media (hover: hover) and (pointer: fine) {
  /* strelica u dugmetu klizne naprijed */
  .btn .fa-arrow-right, .hh-pr-btn .fa-arrow-right, .sh-link .fa-arrow-right { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
  .btn:hover .fa-arrow-right, .hh-pr-btn:hover .fa-arrow-right, .sh-link:hover .fa-arrow-right { transform: translateX(5px); }
  /* kartice proizvoda: mirno podizanje i spor zoom slike */
  .pc { transition: transform .55s cubic-bezier(.16, 1, .3, 1), box-shadow .55s cubic-bezier(.16, 1, .3, 1), border-color .3s ease; }
  .pc:hover { transform: translateY(-6px); }
  .pc .pc-img img { transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
  .pc:hover .pc-img img { transform: scale(1.05); }
  /* veličine: tanka zelena linija raste ispod */
  .kv-lista a { position: relative; overflow: hidden; }
  .kv-lista a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--tb-zelena, #155330); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
  .kv-lista a:hover::after { transform: scaleX(1); }
}
.kv-lista a:active, .pc:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .pc, .pc .pc-img img, .kv-lista a::after, .btn .fa-arrow-right { transition: none !important; }
}
