/* Custom styles for Quality Custom Cabinets */

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

/* Navigation scroll state */
.nav-fixed {
  background: rgba(254, 252, 248, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  background: rgba(254, 252, 248, 0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c94424;
  transition: width 0.2s ease;
}

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

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

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

/* Process steps */
.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -1.5rem;
  width: 3rem;
  height: 2px;
  background: #f9d7cc;
  display: none;
}

@media (min-width: 768px) {
  .process-step:not(:last-child)::after {
    display: block;
  }
}

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

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

/* Mobile menu */
.mobile-menu {
  animation: slideDown 0.2s ease;
}

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

/* Scroll reveal animations (below the fold only) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .gallery-item img,
  .testimonial-card,
  .process-step {
    transition: none;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}
