/* Custom styles for Precision Spa */

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

/* Section label */
.section-label {
  letter-spacing: 0.25em;
}

/* Hero animations */
.hero-title {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-stats {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-badge {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.6s ease forwards 0.1s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service cards */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.5s ease, border-color 0.5s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial cards */
.testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
}

.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(13, 13, 13, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 154, 63, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: rgba(196, 154, 63, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(196, 154, 63, 0.5);
}

/* Selection */
::selection {
  background: rgba(200, 90, 44, 0.3);
  color: #faf6f0;
}

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

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Gradient text utility */
.text-transparent {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

/* Prevent layout shift on select */
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 12px center;
  padding-right: 36px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
