/* Custom styles for Bronx Locksmith */

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

/* Dark mode base */
body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-optical-sizing: auto;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(107, 63, 160, 0.1);
}

#navbar.scrolled .nav-link {
  color: rgb(127, 95, 152);
}

#navbar.scrolled .nav-link:hover {
  color: rgb(217, 119, 6);
}

/* Dark mode navbar */
.dark #navbar.scrolled {
  background: rgba(31, 18, 48, 0.97);
}

.dark #navbar.scrolled .nav-link {
  color: rgb(203, 166, 248);
}

/* Hero stat cards animation */
.stat-card {
  animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -1.5s;
}

.stat-card:nth-child(3) {
  animation-delay: -3s;
}

.stat-card:nth-child(4) {
  animation-delay: -4.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

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

/* FAQ accordion */
.faq-item {
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(107, 63, 160, 0.08);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

/* Mobile nav links */
.mobile-nav-link {
  transition: background 0.2s ease, color 0.2s ease;
}

/* Scroll reveal base — visible by default, enhanced by JS */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: none;
  }
}

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

::-webkit-scrollbar-track {
  background: rgb(245, 240, 249);
}

::-webkit-scrollbar-thumb {
  background: rgb(174, 141, 224);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(139, 79, 160);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgb(245, 158, 11);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: rgb(217, 119, 6);
  color: rgb(31, 18, 48);
}
