/* Custom styles for GEARHEAD Automotive Sales */

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #FF6B57;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #141619;
}
::-webkit-scrollbar-thumb {
  background: #353942;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B57;
}

/* Selection color */
::selection {
  background: rgba(255, 107, 87, 0.25);
  color: #fff;
}

/* Thin accent line */
.section-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #FF6B57, transparent);
}

/* Subtle gradient border on hover */
.glow-card:hover {
  box-shadow: 0 0 40px -10px rgba(255, 107, 87, 0.08);
}

/* Hero text gradient */
.hero-gradient-text {
  background: linear-gradient(135deg, #fff 0%, #adb0bd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu animation */
.mobile-menu-open #bar1 {
  transform: translateY(5px) rotate(45deg);
}
.mobile-menu-open #bar2 {
  opacity: 0;
}
.mobile-menu-open #bar3 {
  transform: translateY(-4px) rotate(-45deg);
  width: 1.25rem;
}

/* Nav background transition */
.nav-scrolled {
  background: rgba(10, 11, 13, 0.95) !important;
  backdrop-filter: blur(16px) !important;
}

/* Fade-in animation for hero elements */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: fadeUp 0.8s ease forwards;
}

.hero-animate-delay-1 { animation-delay: 0.15s; opacity: 0; }
.hero-animate-delay-2 { animation-delay: 0.3s; opacity: 0; }
.hero-animate-delay-3 { animation-delay: 0.45s; opacity: 0; }
.hero-animate-delay-4 { animation-delay: 0.6s; opacity: 0; }
