/* Custom styles for Long Bridge Peanut Co */

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

/* Navbar scroll state */
.nav-link {
  position: relative;
}

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

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

/* Navbar glass effect when scrolled */
.navbar-scrolled {
  background: rgba(250, 248, 245, 0.92) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(107, 58, 107, 0.08);
}

/* Mobile menu animation */
.menu-line {
  display: block;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  width: 20px;
  margin-left: 0;
  transform: rotate(-45deg) translate(4px, -4px);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

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

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

/* Feature row hover */
.feature-row {
  border-left: 3px solid transparent;
}

.feature-row:hover {
  border-left-color: #E8B830;
}

/* Testimonial card */
.testimonial-card {
  transition: transform 0.5s ease, background 0.5s ease;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion - ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Selection color */
::selection {
  background: #E8C8E8;
  color: #4a224a;
}

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

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

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

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

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #E8B830;
  outline-offset: 2px;
}

/* Subtle pattern overlay for hero */
.hero-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(107, 58, 107, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}
