/* Custom styles for Midwest Speed LLC */

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

/* Service card hover glow */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card:hover::before {
  opacity: 1;
}

/* Subtle gold gradient on hover for cards */
.service-card:hover {
  box-shadow: 0 0 40px rgba(212, 168, 38, 0.08);
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(7, 14, 21, 0.97) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
  background: #0d1823;
}

::-webkit-scrollbar-thumb {
  background: #1a2b46;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #273e69;
}

/* Selection color */
::selection {
  background: rgba(212, 168, 38, 0.3);
  color: #f0f3f9;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card,
  .group {
    transition: none;
  }

  .service-card:hover,
  .group:hover {
    transform: none;
  }
}

/* Select dropdown 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='%23d4a826' stroke-width='2' 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 12px center;
  padding-right: 36px;
}

/* Form focus animations */
input:focus,
textarea:focus,
select:focus {
  animation: none;
}

/* Map invert fix for dark theme */
iframe[title*="Google Maps"] {
  border-radius: 0 0 0.5rem 0.5rem;
}
