/* ─── Custom Styles for Pits Auto Shop ─── */

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

/* ─── Navigation ─── */
.nav-fixed {
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

/* ─── Scroll Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Service Cards ─── */
.service-card {
  overflow: hidden;
}

/* ─── Form ─── */
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='%2378716c' 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 1rem center;
  padding-right: 2.5rem;
}

/* ─── Custom selection ─── */
::selection {
  background-color: #7B2D3B;
  color: white;
}

/* ─── Responsive adjustments ─── */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .service-card {
    padding: 1.5rem;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  h1 {
    font-size: 2.75rem;
  }
}

/* ─── Focus visible for accessibility ─── */
:focus-visible {
  outline: 2px solid #7B2D3B;
  outline-offset: 2px;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card {
    transition: none;
  }

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