/* Custom styles for C&K Auto and AC Repair */

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

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(118, 49, 68, 0.12);
}

/* Reveal animations - progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* Navbar scroll shadow */
.nav-scrolled {
  box-shadow: 0 4px 20px rgba(118, 49, 68, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a85a72;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a85a72;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero floating cards animation */
@media (prefers-reduced-motion: no-preference) {
  #hero .group:nth-child(1) {
    animation: float1 4s ease-in-out infinite;
  }
  #hero .group:nth-child(2) {
    animation: float2 4.5s ease-in-out infinite;
  }
  #hero .group:nth-child(3) {
    animation: float3 5s ease-in-out infinite;
  }
  #hero .group:nth-child(4) {
    animation: float4 4.2s ease-in-out infinite;
  }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float4 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

/* Form input focus ring */
input:focus,
select:focus,
textarea:focus {
  border-color: #a85a72 !important;
  box-shadow: 0 0 0 3px rgba(168, 90, 114, 0.15) !important;
}

/* Map container border radius fix */
iframe {
  border-radius: 0 0 16px 16px;
}
