/* ─────────────────────────────────────────────
   Sonja Safe Spot — Custom Styles
   Plum + Amber · Warm & Friendly
   ───────────────────────────────────────────── */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #a820e8;
  color: #fff;
}

/* ── Navbar scroll state ── */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background: rgba(44, 7, 64, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

#navbar.scrolled .nav-link:hover {
  color: #fbbf24 !important;
}

/* ── Floating stat cards ── */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.stat-card-1 {
  animation-delay: 0s;
}

.stat-card-2 {
  animation-delay: 1.3s;
}

.stat-card-3 {
  animation-delay: 2.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
}

@keyframes float-medium {
  0%, 100% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
}

@keyframes float-fast {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* ── Gallery scroll strip ── */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll {
  display: flex;
  gap: 1rem;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

/* ── Reveal animations (below-the-fold only) ── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-active .reveal-up {
  opacity: 0;
  transform: translateY(32px);
}

.js-active .reveal-left {
  opacity: 0;
  transform: translateX(-32px);
}

.js-active .reveal-right {
  opacity: 0;
  transform: translateX(32px);
}

.js-active .reveal-up.visible,
.js-active .reveal-left.visible,
.js-active .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Mobile menu ── */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Smooth focus outlines ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate-scroll { animation: none; }
}

/* ── Tablet & up ── */
@media (min-width: 768px) {
  .stat-card-1 { animation: float-slow 5s ease-in-out infinite; }
  .stat-card-2 { animation: float-medium 4s ease-in-out infinite; }
  .stat-card-3 { animation: float-fast 3.5s ease-in-out infinite; }
}

/* ── Wide screens ── */
@media (min-width: 1024px) {
  .stat-card-1 { animation: float-slow 5s ease-in-out infinite; }
  .stat-card-2 { animation: float-medium 4.5s ease-in-out infinite; }
  .stat-card-3 { animation: float-fast 3.5s ease-in-out infinite; }
}
