/* Bennett Tire, Brake & Oil — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F0FBF5;
}
::-webkit-scrollbar-thumb {
  background: #7EDDB5;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52C99A;
}

/* Selection */
::selection {
  background: #D6F5E4;
  color: #0A2540;
}

/* Hero image animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Service card stagger animation */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(10, 37, 64, 0.08);
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

#mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

/* Subtle pattern for hero background */
.hero-pattern {
  background-image: radial-gradient(circle, #D6F5E4 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7EDDB5;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.5s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .service-card {
    padding: 1.5rem;
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  #hero h1 span {
    font-size: 1.75rem;
  }
}

/* Print styles */
@media print {
  #navbar,
  #mobile-menu,
  .service-card,
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  body {
    background: white;
  }
}
