/* ===== Custom Styles for White House Black Market Sarasota ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf8f0;
}
::-webkit-scrollbar-thumb {
  background: #6B0F1A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #931833;
}

/* Primary button */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after {
  opacity: 1;
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6B0F1A;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Scroll animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll down animation */
@keyframes scrollDown {
  0% { top: 0; opacity: 1; }
  100% { top: 48px; opacity: 0; }
}
.animate-scroll-down {
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* Mobile nav links */
.mobile-nav-link {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

/* Navbar scrolled state */
.nav-scrolled {
  background: rgba(254, 253, 251, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(107, 15, 26, 0.08);
}
.nav-scrolled .nav-link {
  color: #4a3528 !important;
}

/* Image hover parallax */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #6B0F1A;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .fade-up, .fade-up.visible {
    opacity: 1;
    transform: none;
  }
  .stagger-children.visible > * {
    opacity: 1;
    transform: none;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
  }
  #hero h1 span {
    font-size: 2.25rem;
  }
  .rounded-3xl {
    border-radius: 1.5rem;
  }
}
