/* Custom styles for Lavish Nails & Spa */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDF8F6;
}
::-webkit-scrollbar-thumb {
  background: #b5203d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #921a35;
}

/* Selection */
::selection {
  background: #b5203d;
  color: white;
}

/* Reveal animations (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar transition */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
  background-color: rgba(253, 248, 246, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

#navbar.scrolled .font-serif {
  color: #3d1319 !important;
}

#navbar.scrolled a:not(.bg-burgundy-800) {
  color: #5C5555 !important;
}

/* Mobile menu transitions */
#mobileMenu {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

#mobileMenu.open {
  opacity: 1;
  pointer-events: auto;
}

#mobileMenu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Mobile link animation */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Image hover effects */
.group img {
  will-change: transform;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #b5203d;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Input focus */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Prevent layout shift on images */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Subtle gradient text for accent */
.gradient-text {
  background: linear-gradient(135deg, #7B2D3B 0%, #d93d5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover lift */
.group {
  will-change: box-shadow;
}

/* Print styles */
@media print {
  #navbar,
  #mobileMenu,
  .reveal {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
