/* ========================================
   Wheel Master - Custom Styles
   ======================================== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Body defaults */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar shadow when scrolled */
.navbar-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

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

/* Gallery image loading placeholder */
.gallery-item {
  background-color: #f0f0f0;
}

/* Active nav link */
.nav-link-active {
  color: #4A90D9 !important;
  position: relative;
}

.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #F5A623;
  border-radius: 1px;
}

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

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

/* Phone icon pulse on mobile bar */
@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.fa-phone.animate-pulse {
  animation: gentle-pulse 2s infinite;
}

/* Hero section parallax-like feel on larger screens */
@media (min-width: 1024px) {
  #home {
    background-attachment: fixed;
  }
}

/* Review cards hover */
#reviews .bg-gray-50 {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#reviews .bg-gray-50:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* CTA button press effect */
a[href^="tel:"] {
  transition: transform 0.1s ease, background-color 0.2s ease;
}

a[href^="tel:"]:active {
  transform: scale(0.97);
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Map container responsive fix */
#contact iframe {
  border-radius: 12px;
}

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

/* Financing logo marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 25s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Selection color */
::selection {
  background-color: #4A90D9;
  color: white;
}

/* ========================================
   Sales Page
   ======================================== */

/* Sale card hover lift */
.sale-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Modal backdrop fade-in */
#login-modal,
#sale-modal,
#delete-modal {
  animation: modalFadeIn 0.15s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Admin form disabled state */
#sale-form button:disabled,
#login-form button:disabled,
#delete-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Image drop zone active drag */
#image-drop-zone.drag-active {
  border-color: #4A90D9;
  background-color: rgba(232, 241, 251, 0.3);
}
