/* ===== VG Motorsports ===== */
:root {
  /* Palette pulled from the VG crest: gunmetal, brushed silver, chrome */
  --black: #0B0C0E;
  --char-900: #111317;
  --char-800: #1A1D22;
  --char-700: #262A31;
  --steel-500: #6E7580;
  --silver-400: #A9AFB8;
  --silver-300: #C9CED5;
  --silver-100: #EEF0F3;
  --chrome: linear-gradient(180deg, #F4F5F7 0%, #C3C8CF 45%, #8E949C 55%, #D9DDE2 100%);
  --ink: #15171B;
  --muted: #5C636E;
  --line: #E1E4E8;
  --bg: #FFFFFF;
  --bg-soft: #F3F4F6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 12, 16, .08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel-500); margin-bottom: .9rem;
}
.accent { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: var(--font-body);
}
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-primary { background: var(--chrome); color: var(--black); border-color: rgba(255,255,255,.5); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.section:not(.community) .btn-primary, .contact-form .btn-primary { background: var(--char-900); color: #fff; border-color: var(--char-900); box-shadow: none; }
.section:not(.community) .btn-primary:hover, .contact-form .btn-primary:hover { background: var(--char-700); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-light { background: var(--chrome); color: var(--black); }
.btn-light:hover { filter: brightness(1.08); transform: translateY(-1px); }
.text-link { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--silver-400); }
.text-link:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(11, 12, 14, .92); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: auto; height: 48px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand-text { font-family: var(--font-head); font-size: 1.1rem; letter-spacing: .02em; }
.brand-text strong { font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: rgba(255,255,255,.85); font-size: .93rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a.btn { color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  background: var(--black); color: #fff; overflow: hidden; padding: 120px 0 60px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,12,14,.88) 0%, rgba(11,12,14,.55) 45%, rgba(11,12,14,.2) 100%),
    linear-gradient(0deg, rgba(11,12,14,.85) 0%, transparent 35%),
    linear-gradient(180deg, rgba(11,12,14,.65) 0%, transparent 22%);
}

/* Fallback animated road (CSS only) */
.road-scene { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #0B0C0E 0%, #1A1D22 48%, #0B0C0E 100%); }
.road-glow { position: absolute; left: 0; right: 0; top: 30%; height: 30%; background: radial-gradient(50% 60% at 60% 60%, rgba(201,206,213,.22), transparent 70%); }
.road {
  position: absolute; left: 50%; bottom: 0; width: 140%; height: 150%;
  transform: translateX(-38%) perspective(600px) rotateX(62deg); transform-origin: 50% 100%;
  background:
    linear-gradient(90deg, transparent 18%, rgba(201,206,213,.5) 18% 18.6%, transparent 18.6% 81.4%, rgba(201,206,213,.5) 81.4% 82%, transparent 82%),
    linear-gradient(90deg, transparent 15%, #16181C 15% 85%, transparent 85%);
  -webkit-mask-image: linear-gradient(0deg, #000 20%, transparent 75%); mask-image: linear-gradient(0deg, #000 20%, transparent 75%);
}
.road::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 49.4%; width: 1.2%;
  background: repeating-linear-gradient(0deg, rgba(238,240,243,.85) 0 60px, transparent 60px 120px);
  animation: road .9s linear infinite;
}
@keyframes road { to { background-position: 0 120px; } }
.streaks span {
  position: absolute; height: 2px; width: 30vw; left: -30vw; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(238,240,243,.7));
  animation: streak 3.2s linear infinite;
}
.streaks span:nth-child(1) { top: 58%; animation-delay: 0s; }
.streaks span:nth-child(2) { top: 64%; animation-delay: 1.1s; animation-duration: 2.6s; }
.streaks span:nth-child(3) { top: 70%; animation-delay: .5s; animation-duration: 3.8s; opacity: .6; }
.streaks span:nth-child(4) { top: 52%; animation-delay: 2s; animation-duration: 4.4s; opacity: .4; }
@keyframes streak { to { transform: translateX(160vw); } }
.hero-content { position: relative; max-width: 980px; margin-left: max(20px, calc((100% - 1200px) / 2)); }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .eyebrow { color: var(--silver-300); }

.search-panel {
  position: relative; margin-top: 64px;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 0; align-items: stretch;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); backdrop-filter: blur(12px); overflow: hidden;
}
.search-field { padding: 16px 22px; border-right: 1px solid rgba(255,255,255,.1); }
.search-field label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.search-field span { font-weight: 600; }
.search-btn { border-radius: 0; padding-inline: 34px; }

/* ===== About ===== */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about-logo { margin-top: 32px; padding: 36px; border-radius: 20px; background: radial-gradient(circle at 50% 40%, var(--char-700), var(--black) 75%); display: grid; place-items: center; overflow: hidden; }
.about-logo img { width: min(100%, 340px); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }

/* ===== Mission & Vision ===== */
.mv { background: var(--bg-soft); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card {
  background: linear-gradient(145deg, var(--char-700), var(--black)); color: #fff; border-radius: 20px; padding: 48px 44px; border: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.mv-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.07) 0 25%, transparent 0 50%) 0 0 / 28px 28px; border-radius: 0; transform: rotate(12deg); mask-image: radial-gradient(circle, #000, transparent 70%);
}
.mv-label { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--silver-400); }
.mv-card blockquote { margin: 18px 0 0; font-family: var(--font-head); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.35; position: relative; z-index: 1; }

/* ===== Values ===== */
.values-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.value-card {
  grid-column: span 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:nth-child(4) { grid-column: 2 / span 2; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value-num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1px #8E949C; display: block; margin-bottom: 12px; }
.value-card p { color: var(--muted); margin: 0; }

/* ===== Brands ===== */
.brands { background: var(--bg-soft); }
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 48px; }
.brand-tile {
  aspect-ratio: 3 / 2; border: 1.5px dashed #C9D1E0; border-radius: 12px; background: #fff;
  display: grid; place-items: center; color: #9AA4B8; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.feature p { color: var(--muted); }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--char-700); background: var(--silver-100); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

/* ===== Community ===== */
.community { background: linear-gradient(120deg, var(--black), var(--char-700)); color: #fff; position: relative; overflow: hidden; }
.community::before { content: ""; position: absolute; inset: 0 0 0 55%; background: repeating-conic-gradient(rgba(255,255,255,.05) 0 25%, transparent 0 50%) 0 0 / 48px 48px; mask-image: linear-gradient(to right, transparent, #000); }
.community-inner { position: relative; }
.community-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.community-inner > div { max-width: 680px; }
.community p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.community .eyebrow { color: var(--silver-400); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list span { width: 80px; color: var(--muted); font-size: .9rem; }
.contact-list a { color: var(--ink); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { background: var(--bg-soft); border-radius: 20px; padding: 36px; display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--steel-500); border-color: transparent; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: .82rem; margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand img { height: 44px; }
.footer-tag { margin-top: 16px; max-width: 340px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .footer-grid > div > a:not(.brand) { display: block; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .road::before, .streaks span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); padding: 12px 20px 24px; transform: translateY(-120%); transition: transform .3s ease;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .site-nav.open { transform: none; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .site-nav a.btn { margin-top: 16px; border: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-field:nth-child(2n) { border-right: 0; }
  .search-field { border-bottom: 1px solid rgba(255,255,255,.1); }
  .search-btn { grid-column: 1 / -1; padding: 16px; }

  .split, .mv-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-card, .value-card:nth-child(4) { grid-column: auto; }
  .value-card:last-child { grid-column: 1 / -1; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: 1fr; }
  .community-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .mv-card { padding: 36px 28px; }
  .contact-form { padding: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
