/* Via-Max Envios — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f6f6f7;
}
::-webkit-scrollbar-thumb {
  background: #c4c6ca;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9fa2a8;
}

/* Selection color */
::selection {
  background: #ff6b3f;
  color: #fff;
}

/* Navbar scroll state */
.navbar-scrolled #navbar {
  box-shadow: 0 1px 0 rgba(26, 28, 31, 0.06);
}

/* Hero image subtle zoom on hover */
.hero-image-wrap {
  overflow: hidden;
}
.hero-image-wrap img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-image-wrap:hover img {
  transform: scale(1.03);
}

/* Service card hover lift */
.service-card {
  will-change: transform;
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial card hover */
#testimonials > div > div > div {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#testimonials > div > div > div:hover {
  transform: translateY(-4px);
}

/* Fade-in animation for scroll reveals */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-image-wrap img {
    transition: none;
  }
  .service-card:hover {
    transform: none;
  }
}

/* Mobile menu animation */
#mobileMenu {
  animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar link underline effect */
nav a:not(.px-5):not(.px-6):not(.px-7) {
  position: relative;
}
nav a:not(.px-5):not(.px-6):not(.px-7)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #ff6b3f;
  transition: width 0.3s ease;
}
nav a:not(.px-5):not(.px-6):not(.px-7):hover::after {
  width: 100%;
}

/* Input focus transitions */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Ensure select arrow is visible */
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="%239fa2a8" 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;
  appearance: none;
  -webkit-appearance: none;
}

/* Contact form button hover state */
button[type="submit"]:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 63, 0.25);
}
