/* Custom styles for Mia Trucking LLC */

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

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

#navbar.scrolled .nav-link {
  color: #1a2846;
}

#navbar.scrolled .nav-link:hover {
  background: rgba(13, 20, 35, 0.06);
  color: #0d1423;
}

#navbar.scrolled .font-serif {
  color: #0d1423;
}

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

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

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

/* Testimonial cards */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Form inputs */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Scroll reveal base state (progressive enhancement) */
.scroll-reveal {
  opacity: 1;
  transform: none;
}

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

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #eda81a;
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(237, 168, 26, 0.2);
  color: #1a2846;
}

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

::-webkit-scrollbar-track {
  background: #f0f3f9;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #8da2cf;
}
