/* ========================================
   C&R Professional Auto Sales
   Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
  background: #1B4332;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a5432;
}

/* Selection color */
::selection {
  background: #1B4332;
  color: #FDFCF8;
}

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

/* Mobile menu link hover */
.mobile-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease;
}
.mobile-link:hover {
  padding-left: 8px;
  color: #2a5432;
}

/* Navbar active state */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* Subtle image shimmer on hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .group-hover\:scale-105,
  .transition-all {
    transition: none;
    transform: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tablet breakpoint adjustments */
@media (max-width: 767px) {
  .font-display {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

/* Print styles */
@media print {
  #navbar, #mobile-menu, button {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
