/* Custom styles for Royal Outdoor Solutions */

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

/* Service card hover effects */
.service-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Gallery item hover */
.gallery-item {
  transition: transform 0.3s ease;
}

/* Navbar scroll effect */
#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .reveal.revealed {
    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; }
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #627d98;
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #e5b02c 0%, #d99b18 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle pattern backgrounds */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(16, 42, 67, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Button ripple effect */
button, a {
  position: relative;
  overflow: hidden;
}

/* Selection color */
::selection {
  background-color: #e5b02c;
  color: #102a43;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}
