/* Custom styles for Sheetz Sales and Service */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0a0f;
}
::-webkit-scrollbar-thumb {
  background: #4a1e4d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #702f74;
}

/* Selection color */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #f5d060;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(8, 6, 10, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(133, 64, 138, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Service card hover effects */
.service-card {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(133, 64, 138, 0.15),
              0 0 40px rgba(212, 160, 23, 0.05);
}

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

/* Menu button animation */
.menu-open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}

/* Gold gradient animation */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.gold-gradient {
  background: linear-gradient(90deg, #d4a017, #f5d060, #c9950f, #f5d060, #d4a017);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .gold-gradient {
    animation: none;
    background: #d4a017;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .service-card {
    transition: none;
  }
  .service-card:hover {
    transform: none;
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #0d0a0f inset !important;
  -webkit-text-fill-color: #f5f0f7 !important;
}
