/* Custom styles for Motorcycle Depot */

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

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Service card hover effect */
.service-card {
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #426d2f;
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.service-card:hover::after {
  width: 60%;
}

/* Navigation scroll state */
nav.scrolled {
  background: rgba(250, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(66, 109, 47, 0.1);
}

/* Mobile menu transitions */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Mobile hamburger animation */
.mobile-line {
  transition: all 0.3s ease;
}

#mobile-toggle.active .mobile-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

#mobile-toggle.active .mobile-line:nth-child(2) {
  opacity: 0;
}

#mobile-toggle.active .mobile-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Custom form focus styles */
input:focus,
textarea:focus {
  border-bottom-color: #426d2f !important;
}

/* Subtle image zoom on scroll */
img {
  transition: transform 0.7s ease;
}

/* Gallery grid images */
.overflow-hidden {
  overflow: hidden;
}

/* Selection color */
::selection {
  background: #c7deb8;
  color: #243b1c;
}

/* Remove default button styles */
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Prevent layout shift on images */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile menu link hover */
.mobile-link {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #365727;
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: #568a3d;
}

/* Loading state for form */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Print styles */
@media print {
  nav,
  #mobile-menu,
  button {
    display: none !important;
  }
}
