/* ===== Custom Styles for Wild Flower Salon ===== */

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

/* Navbar transition */
#navbar {
  background: rgba(255, 255, 255, 0.0);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

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

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

/* Hamburger animation */
#menu-btn.active #hamburger span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
#menu-btn.active #hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#menu-btn.active #hamburger span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Service cards */
.service-card {
  border: 1px solid transparent;
}
.service-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(13, 148, 136, 0.2);
}

/* Gallery hover */
.gallery-item {
  position: relative;
  overflow: hidden;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 148, 136, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.gallery-item:hover::after {
  opacity: 1;
}

/* Nav links underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Fade-in on scroll (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .fade-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
}

/* Selection color */
::selection {
  background: rgba(13, 148, 136, 0.2);
  color: #134e4a;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid #0d9488;
  outline-offset: 2px;
}

/* Mobile menu link hover */
.mobile-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}
