/* Custom styles for Salon Beautiful */

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

/* Selection color */
::selection {
  background: #c9a84c;
  color: #0f1d30;
}

/* Mobile menu animations */
.menu-line {
  transform-origin: center;
}

#menu-btn.active .menu-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:last-child {
  transform: rotate(-45deg) translate(0px, 0px);
}

/* Mobile menu slide-in */
#menu.slide-in {
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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);
  }

  /* Stagger children */
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Reduced motion - content always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Custom select dropdown styling */
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='%2394a3b8' 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 0 center;
}

/* Nav scroll state */
nav.scrolled {
  box-shadow: 0 1px 0 rgba(15, 29, 48, 0.06);
}

/* Image hover container */
.overflow-hidden {
  position: relative;
}

.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 29, 48, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Gallery grid gap fix */
.grid-cols-2 > :nth-child(even) {
  transform: translateY(24px);
}

@media (min-width: 768px) {
  .grid-cols-2 > :nth-child(even) {
    transform: translateY(0);
  }
}

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

/* Button press effect */
button, a {
  -webkit-tap-highlight-color: transparent;
}

button:active, a:active {
  transform: scale(0.98);
}
