/* Custom styles for Purple Salon and Spa */

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

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

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

::-webkit-scrollbar-track {
  background: #f6f6f7;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #71717a;
}

/* Navbar transitions */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-serif,
#navbar.scrolled .text-charcoal-900 {
  color: #18181b;
}

#navbar.scrolled .text-charcoal-500,
#navbar.scrolled .text-charcoal-600 {
  color: #52525b;
}

#navbar.scrolled .nav-link {
  color: #52525b;
}

#navbar.scrolled .nav-link:hover {
  color: #ff6b3f;
}

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

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

/* Hamburger animation */
#menu-btn.active #menu-icon-1 {
  transform: rotate(45deg);
  top: 50%;
  transform-origin: center;
}

#menu-btn.active #menu-icon-2 {
  opacity: 0;
}

#menu-btn.active #menu-icon-3 {
  transform: rotate(-45deg);
  top: 50%;
  transform-origin: center;
}

/* Service card hover effects */
.group:hover .group-hover\\:bg-coral-500 {
  background-color: #ff6b3f;
}

.group:hover .group-hover\\:bg-coral-500 svg {
  stroke: white;
}

/* Scroll reveal base state - content is visible by default */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 0;
  transform: translateY(30px);
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
  }

  .reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form select 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='%2371717a' 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;
}

/* Image hover zoom */
.group img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* Pulse dot for live indicator */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #ff6b3f, #c07b9c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle pattern overlay */
.pattern-overlay {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2H0V0h2v16h18V0h2v18h2v2H20v2.5zM0 20h2v18H0V20zm20 0h2v18H20V20zm0-20h2v2h-2V0zm0 38h2v2h-2v-2zM0 0h2v2H0V0zm0 18h2v2H0v-2z' fill='%23ff6b3f' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}
