/* ==========================================================================
   Equilibra — efecte hover și animații discrete (v1.1)
   - Zoom ușor pe imagini (ca la produse), carduri care se ridică la hover
   - Apariție lină a secțiunilor la scroll (doar dacă JS rulează)
   - Umbră pe header la scroll, intrare lină a hero-ului
   Dezactivare completă: ștergi fișierul (sau linia lui din inc/setup.php).
   Utilizatorii cu „reduce motion” activat în sistem nu văd animații
   (regula există deja în style.css).
   ========================================================================== */

/* ---------- Imagini: zoom ușor la hover ---------- */
.hero-art img,
.page-hero-art img,
.split-media img,
.cat-banner img,
.gallery-main img {
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.split-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.gallery-main a {
  cursor: zoom-in;
}

/* ---------- Carduri produs ---------- */
.prod-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.prod-thumb {
  overflow: hidden;
}

/* ---------- Carduri categorii (grila cu iconițe) ---------- */
.cat-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.cat-card .ic img {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Avantaje (bara de sub hero) ---------- */
.trust-item .ic img {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Pași ---------- */
.step {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.step-num {
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

/* ---------- Butoane ---------- */
.btn {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:active {
  transform: translateY(0);
}

/* ---------- Mici detalii ---------- */
.related-category {
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.gallery-thumbs button {
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.accordion-item summary {
  transition: color 0.2s ease;
}

/* ---------- Header: umbră discretă după scroll ---------- */
.site-header {
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(14, 90, 52, 0.08);
}

/* ---------- Hero: intrare lină la încărcarea paginii ---------- */
@keyframes eqFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes eqFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero .container > div:first-child > *,
.page-hero .container > div:first-child > * {
  animation: eqFadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero .container > div:first-child > :nth-child(2),
.page-hero .container > div:first-child > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero .container > div:first-child > :nth-child(3),
.page-hero .container > div:first-child > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero .container > div:first-child > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero-art,
.page-hero-art {
  animation: eqFadeIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

/* ---------- Stări hover — doar pe dispozitive cu mouse (pe telefon nu rămân „agățate”) ---------- */
@media (hover: hover) {
  .hero-art:hover img,
  .page-hero-art:hover img,
  .split-media:hover img,
  .cat-banner:hover img,
  .gallery-main:hover img {
    transform: scale(1.05);
  }
  .prod-card:hover {
    transform: translateY(-4px);
    border-color: var(--leaf);
    box-shadow: 0 16px 32px rgba(14, 90, 52, 0.1);
  }
  .prod-card:hover .prod-thumb img {
    transform: scale(1.1);
  }
  .cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(14, 90, 52, 0.09);
  }
  .cat-card:hover .ic img {
    transform: scale(1.12);
  }
  .trust-item:hover .ic img {
    transform: translateY(-4px) scale(1.06);
  }
  .step:hover {
    transform: translateY(-4px);
    border-color: var(--leaf);
    box-shadow: 0 14px 28px rgba(14, 90, 52, 0.08);
  }
  .step:hover .step-num {
    transform: scale(1.1);
    background: var(--plum);
  }
  .btn:hover {
    transform: translateY(-1px);
  }
  .related-category:hover {
    transform: translateY(-2px);
  }
  .gallery-thumbs button:hover {
    border-color: var(--leaf);
    transform: translateY(-2px);
  }
  .accordion-item summary:hover {
    color: var(--leaf);
  }
}

/* ---------- Apariție la scroll (clasele se pun din main.js) ---------- */
.eq-anim .eq-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--eq-delay, 0s);
}
.eq-anim .eq-reveal.is-visible {
  opacity: 1;
  transform: none;
}
