/* ===== CUSTOM STYLES ===== */

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

/* Navbar scroll state */
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(128, 0, 32, 0.08);
}

/* Nav link hover */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #800020;
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

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

/* Mobile nav link */
.mobile-nav-link {
  display: block;
}

/* Service cards */
.service-card {
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial cards */
.testimonial-card {
  transform: translateY(0);
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Back to top */
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* Selection color */
::selection {
  background: #f8c2cf;
  color: #6b001a;
}

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

::-webkit-scrollbar-track {
  background: #fffbf7;
}

::-webkit-scrollbar-thumb {
  background: #f191a8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55878;
}

/* Form 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='%23800020' 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;
}

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

/* Subtle page load animation for hero only */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero > div {
  animation: fadeUp 0.8s ease forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .service-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
  #hero > div {
    animation: none;
  }
  .back-to-top {
    transition: none;
  }
}
