/* ========================================
   Manestylez Salon — Custom Styles
   ======================================== */

/* Base */
html {
  scroll-behavior: smooth;
}

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

/* Selection */
::selection {
  background: #ff5a1a;
  color: #1e1e23;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-delay {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-2deg); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
  animation: float-delay 8s ease-in-out infinite;
  animation-delay: -2s;
}

/* Scroll Reveal (progressive enhancement — only when JS is enabled) */
.js-enabled .js-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .js-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .js-reveal:not(.revealed) {
  opacity: 0;
  transform: translateY(30px);
}

/* Staggered delays for grid items */
.js-enabled .js-reveal:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .js-reveal:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .js-reveal:nth-child(3) { transition-delay: 0.15s; }
.js-enabled .js-reveal:nth-child(4) { transition-delay: 0.2s; }
.js-enabled .js-reveal:nth-child(5) { transition-delay: 0.25s; }
.js-enabled .js-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(17, 17, 20, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e1e23;
}

::-webkit-scrollbar-thumb {
  background: #42424a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff5a1a;
}

/* Select dropdown arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b9ba5' 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;
  background-size: 16px;
  padding-right: 2.5rem;
}

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

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

/* Print styles */
@media print {
  nav, #back-to-top, .js-reveal { display: none; }
  body { background: white; color: black; }
}
