/* Hogan's Salon — Custom Styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }

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

/* Navigation links */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3d6e3d;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Service cards */
.service-card {
  cursor: default;
}

/* Gallery items */
.gallery-item {
  cursor: pointer;
}

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Fade-in animation for scroll-reveal (below fold only) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery-item img {
    transition: none;
  }
  .gallery-item img:hover {
    transform: none;
  }
  .testimonial-card {
    transition: none;
  }
  .testimonial-card:hover {
    transform: none;
  }
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5e8f5a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f5ef; }
::-webkit-scrollbar-thumb { background: #b0ccaa; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #82ae7e; }
