/* ═══════════════════════════════════════════
   Sugar Daddy Shaved Ice — Custom Styles
   ═══════════════════════════════════════════ */

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

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

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background: rgba(253, 242, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(157, 23, 77, 0.08);
}

/* ── Floating animation cards ── */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-5px) translateX(4px); }
}

.animate-float-slow    { animation: float-slow   4s ease-in-out infinite; }
.animate-float-medium  { animation: float-medium  3s ease-in-out infinite; }
.animate-float-fast    { animation: float-fast    2.5s ease-in-out infinite; }

/* ── Scroll reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  /* stagger children */
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* When JS is disabled, all reveals are visible by default */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ── Mobile menu transition ── */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.25s ease;
  opacity: 0;
}
#mobileMenu.open {
  max-height: 400px;
  opacity: 1;
}

/* ── Form focus rings ── */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.15);
}

/* ── Smooth image loading ── */
img {
  display: block;
  max-width: 100%;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f8;
}
::-webkit-scrollbar-thumb {
  background: #f9a8d4;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f472b6;
}
