/* ═══════════════ GRAY'S SERVICE STATION — Custom Styles ═══════════════ */

/* === SAFETY FALLBACK: AOS elements always visible === */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* === GRAIN OVERLAY === */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' 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: 200px 200px;
}

/* === MARQUEE === */
.marquee-strip {
  pointer-events: none;
}

.marquee-inner {
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-inner:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* === TYPOGRAPHY === */
.font-display { letter-spacing: 0.02em; }

/* === NAV SCROLL STATE === */
#top-nav.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
}

/* === NAV LINK HOVER UNDERLINE === */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #E84A1A;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* === HAMBURGER ANIMATION === */
#hamburger.open .ham-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 24px;
}

/* === HERO HEADLINE CLIP === */
.hero-headline {
  background: linear-gradient(180deg, #F5F0E8 0%, rgba(245,240,232,0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* === STAT CARDS === */
.stat-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 74, 26, 0.3);
}

/* === SERVICE CARDS === */
.service-card {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
}

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

/* === GEAR DECO ANIMATION === */
.gear-deco {
  animation: gear-rotate 40s linear infinite;
  transform-origin: center center;
}

@keyframes gear-rotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* === ABOUT IMAGE COMPOSITION === */
.about-img-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,74,26,0.08) 0%, rgba(26,26,26,0) 50%, rgba(232,74,26,0.08) 100%);
  z-index: 2;
  pointer-events: none;
}

.about-img-main .garage-scene {
  transition: transform 0.6s ease;
}

.about-img-main:hover .garage-scene {
  transform: scale(1.03);
}

/* === FORM INPUTS === */
input:focus, textarea:focus, select:focus {
  border-color: #E84A1A !important;
  box-shadow: 0 0 0 3px rgba(232, 74, 26, 0.1);
}

/* === SCROLL PROGRESS BAR === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #E84A1A, #ff7043);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 640px) {
  .hero-headline {
    word-break: break-word;
  }
  
  .stat-card {
    min-width: auto;
  }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
  background: #E84A1A;
  border-radius: 2px;
}

/* === LINK DEFAULT RESET === */
a {
  text-decoration: none;
}

/* === SMOOTH SCROLL BEHAVIOR === */
html {
  scroll-behavior: smooth;
}

/* === SELECTION COLOR === */
::selection {
  background: rgba(232, 74, 26, 0.3);
  color: #F5F0E8;
}

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid #E84A1A;
  outline-offset: 4px;
}

/* === BUTTON TRANSITIONS === */
button, a {
  transition-property: color, background-color, border-color, transform, opacity;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* === SECTION DIVIDER LINE === */
.section-divider {
  width: 48px;
  height: 2px;
  background: #E84A1A;
}

/* === FLOATING BADGE ANIMATION === */
.hero-badge {
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 74, 26, 0); }
  50% { box-shadow: 0 0 0 8px rgba(232, 74, 26, 0); }
}

/* === GRID GAP FIX === */
.grid > * {
  min-width: 0;
}


