/* Five Star Car Accessories — global styles */
:root {
  --brand-red: #e10600;
  --brand-red-dark: #9d0400;
  --gold: #fbbf24;
  --ink: #09090b;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--ink);
  color: #f4f4f5;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: "Bebas Neue", "Arial Narrow", sans-serif; letter-spacing: 0.04em; }

/* Frosted glass chrome */
.glass {
  background: rgba(9, 9, 11, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(24, 24, 27, 0.45); /* zinc-900/40-ish */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Racing red accent */
.text-racing { color: var(--brand-red); }
.bg-racing { background-color: var(--brand-red); }
.border-racing { border-color: var(--brand-red); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fff; font-weight: 600;
  padding: 0.875rem 1.75rem; border-radius: 9999px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(225, 6, 0, 0.5); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
  padding: 0.875rem 1.75rem; border-radius: 9999px; font-weight: 600;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.45); transform: translateY(-2px); }

/* Nav links */
.nav-link {
  position: relative; font-weight: 500; font-size: 0.9rem;
  color: #d4d4d8; padding: 0.375rem 0; transition: color .2s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brand-red); transition: width .25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-link[aria-current="page"] { color: #fff; }

/* Product / service cards */
.product-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(39,39,42,.55), rgba(9,9,11,.7));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-red);
  box-shadow: 0 16px 40px rgba(225, 6, 0, 0.18);
}
.product-icon {
  width: 3.25rem; height: 3.25rem; border-radius: 0.9rem;
  display: grid; place-items: center;
  background: rgba(225, 6, 0, 0.12); color: var(--brand-red);
  border: 1px solid rgba(225, 6, 0, 0.35);
}

/* Stars */
.star { color: var(--gold); }

/* Page transition fallback */
#page-veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: rgba(9, 9, 11, 1);
  opacity: 0; transition: opacity .28s ease, backdrop-filter .28s ease;
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
}
#page-veil.veil-in { opacity: 1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: auto; }

/* View Transitions */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .28s ease both; }
  ::view-transition-new(root) { animation: vt-in .32s ease both; }
}
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in  { from { opacity: 0; filter: blur(6px); } }

/* Reveal preset initial states (GSAP takes over) */
.reveal { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Big display headings */
.hero-title { line-height: 0.95; text-transform: uppercase; }
.stroke-text {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}

/* Safe padding for sticky mobile bar */
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
}
