/* Custom styles for Johnny G's Sound Shop */

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

/* Scroll reveal base — always visible by default */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar styles */
.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;
  border-radius: 1px;
}

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

/* Navbar scrolled state */
nav.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

nav.scrolled .nav-logo-text {
  color: #1e293b;
}

nav.scrolled .nav-link {
  color: #475569;
}

/* Hero gradient text effect */
h1 {
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

/* Custom select arrow */
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.5' 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;
}

/* Subtle hover glow on service cards */
.group:hover .w-14 {
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.3);
}

/* Selection color */
::selection {
  background: #99f6e4;
  color: #134e4a;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

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

/* Map container responsive */
iframe {
  max-width: 100%;
}

/* Image loading placeholder */
img {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
