/* ============================================
   Sweet Pick N Mix Altam — Custom Styles
   ============================================ */

/* ——— Scrollbar ——— */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1F0E27;
}
::-webkit-scrollbar-thumb {
  background: #5B2C6F;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7B3F80;
}

/* ——— Selection ——— */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #F5F0F7;
}

/* ——— Base ——— */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* ——— Navbar transitions ——— */
#navbar.scrolled {
  background: rgba(31, 14, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91, 44, 111, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

#mobileMenu.open .mobile-link {
  animation: fadeSlideIn 0.3s ease forwards;
}
#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

.mobile-link {
  opacity: 0;
}

/* ——— Hamburger animation ——— */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuToggle.active .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
#menuToggle.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menuToggle.active .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.25rem;
}

/* ——— Scroll indicator animation ——— */
@keyframes scrollDot {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(160%); }
}
.animate-scroll-dot {
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* ——— Scroll reveal (progressive enhancement) ——— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Fallback: ensure content is visible without JS */
.no-js .reveal,
.js .reveal {
  /* JS will add .revealed; without JS, content stays visible */
}

/* ——— Image hover zoom ——— */
img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ——— Form select arrow ——— */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D4A017' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ——— Focus visible ——— */
:focus-visible {
  outline: 2px solid #D4A017;
  outline-offset: 2px;
}

/* ——— Print ——— */
@media print {
  #navbar, #menuToggle, .animate-scroll-dot { display: none; }
  body { background: white; color: black; }
}
