/* Custom styles for Lasting Beauty */

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

/* Custom selection color */
::selection {
  background-color: rgba(77, 128, 82, 0.3);
  color: #1b3320;
}

/* Navbar transition */
#navbar.scrolled {
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(45, 80, 50, 0.08);
}

#navbar.scrolled .menu-line {
  background-color: #2d5032;
}

/* Mobile menu animations */
.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-line {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

#menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* FAQ interactions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-content {
  max-height: 200px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .group img,
  .aspect-square img {
    transition: none;
  }
  
  .group:hover img,
  .aspect-square:hover img {
    transform: none;
  }
  
  .faq-content {
    transition: none;
  }
  
  #mobile-menu .mobile-link {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
