/* ============================================
   SEBANIM8 — Salus International (salusint.pl)
   Ambient + micro-interactions + accessibility
   ============================================ */

:root {
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zapobiega poziomemu scrollowi przy animacjach wejścia */
body { overflow-x: hidden; }

/* --- Floating (delikatne unoszenie — np. akcent w panelu CTA) --- */
@keyframes badge-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1.5deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
  75% { transform: translateY(-14px) rotate(2deg); }
}
.seba-float { animation: badge-float 5s ease-in-out infinite; }
.seba-float--slow { animation-duration: 7s; }
.seba-float--fast { animation-duration: 3s; }

/* --- Pulse (kropki statusu, np. tag "Komunikat") --- */
@keyframes seba-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
.seba-pulse { animation: seba-pulse 2s ease-in-out infinite; }

/* --- Przyciski: lift + cień --- */
.seba-btn {
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring),
              background 0.2s var(--spring), border-color 0.2s var(--spring),
              color 0.2s var(--spring);
  will-change: transform;
}
.seba-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(16 29 69 / 0.18);
}
.seba-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgb(16 29 69 / 0.12);
}

/* --- Nav links: rozwijane podkreślenie --- */
.seba-nav-link { position: relative; text-decoration: none; }
.seba-nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width 0.25s var(--spring);
}
.seba-nav-link:hover::after { width: 100%; }

/* ============================================
   SEBANIM8 — Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-anim], .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  section {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
