/* GTM Racing - site styles. Dark ground, the car's orange as the accent,
   the logo's red as the line. System fonts only so the site has no
   external dependency. */

:root {
  --bg: #121212;
  --bg-alt: #1b1b1b;
  --panel: #222;
  --line: #333;
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --orange: #ff6a13;
  --red: #e8232a;
  --font: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px;
  background: rgba(18,18,18,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand img { width: 160px; height: auto; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.top nav a {
  color: var(--text); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.top nav a:hover, .top nav a.active { border-bottom-color: var(--orange); text-decoration: none; }

@media (max-width: 520px) {
  .brand img { width: 110px; }
  .top nav { gap: 2px 12px; justify-content: flex-end; }   /* five links wrap to two lines here */
  .top nav a { font-size: 12px; padding: 4px 0; }
}

/* hero */
.hero { position: relative; height: 62vh; min-height: 480px; container-type: size; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0.15) 0%, rgba(18,18,18,0.55) 55%, rgba(18,18,18,0.95) 100%);
}
.hero-text { position: relative; z-index: 1; padding: 48px 16px 40px; max-width: 1100px; margin: 0 auto; width: 100%; }
/* the hero carries one sentence and the button: the title "GTM Racing" and the
   "NHRA Factory Stock Showdown" line both came out on 3 November 2026 evening
   (the line sat above the door logo for one commit, f0bd1e9, if ever wanted back) */
.hero .sub { margin: 12px 0 22px; font-size: 20px; color: #d6d6d6; max-width: 36em; }
.btn {
  display: inline-block; background: var(--orange); color: #111; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 22px; border-radius: 4px;
}
.btn:hover { background: #ff7d33; text-decoration: none; }

/* bands */
.band { padding: 56px 0; }
.band.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  margin: 0 0 18px; font-size: 30px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
  padding-left: 14px; border-left: 4px solid var(--orange); line-height: 1.1;
}
.lede { color: #cfcfcf; margin-top: 0; }
p { max-width: 62em; }

/* the car - the list alone; the side drawing came out 3 November 2026 */
.car-grid { max-width: 720px; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.spec dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; padding-top: 3px; }
.spec dd { margin: 0; }

/* tables */
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
td.num, .slips td:not(.sess):not(.date):not(.noslip):not(.ev) { text-align: right; font-family: var(--mono); font-size: 15px; }
.slips td.sess { white-space: nowrap; }
.slips th:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) { text-align: right; }
.slips th { white-space: nowrap; }
td.blank { color: #555; text-align: right; }
td.noslip { color: var(--muted); font-style: italic; }
td.ev { font-weight: 700; }
.muted { color: var(--muted); }
.season { margin-top: 10px; }
.season td.num { font-size: 17px; }
.table-scroll { overflow-x: auto; }

.bests { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 26px; }
.best { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.best .label { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.best .value { display: block; font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--orange); font-variant-numeric: tabular-nums; }
.best .note { display: block; color: #cfcfcf; font-size: 14px; margin-top: 4px; }

/* slip tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.slips { min-width: 920px; }
.season { min-width: 640px; }
.slips td.date { white-space: nowrap; }
td.et { color: var(--orange); font-weight: 800; }
.top3 td.ev { white-space: nowrap; }
.top3 .rank { display: inline-block; min-width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--orange); color: #111; font-weight: 900; margin-right: 10px; font-size: 14px; }
.top3 .track { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 36px; }
.top3 th:first-child, .top3 td:first-child { width: 26%; }
.small { font-size: 14px; }

/* gallery - photographs, each a link to its full-size file */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 4px; }   /* own shape: a fixed 4:3 clipped the card's text */
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* partners */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; align-items: center; margin: 10px 0 22px; }
.logos img { max-height: 64px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.suppliers { color: var(--muted); letter-spacing: 0.02em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
footer img { width: 120px; }
footer p { margin: 0; }

/* the best-three table stacks into cards on a phone */
@media (max-width: 760px) {
  .top3 { min-width: 0; }
  .top3 thead { display: none; }
  .top3, .top3 tbody { display: block; }
  .top3 tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
  .top3 td { display: block; border: 0; padding: 0; text-align: left !important; }
  .top3 td.ev { grid-column: 1 / -1; white-space: normal; width: auto; }
  .top3 .track { display: inline; margin-left: 8px; }
  .top3 td.sess { grid-column: 1 / 3; color: #cfcfcf; white-space: normal; }
  .top3 td.date { grid-column: 3; color: var(--muted); text-align: right !important; }
  .top3 td.et, .top3 td[data-l="MPH"] { font-size: 30px !important; font-weight: 800; line-height: 1.1; font-family: var(--font) !important; margin-top: 4px; }
  .top3 td[data-l="MPH"] { grid-column: 2 / 4; }
  .top3 td[data-l]::before { content: attr(data-l); display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
  .top3 td[data-l="R/T"], .top3 td[data-l="60 ft"], .top3 td[data-l="330 ft"], .top3 td[data-l="660 ft"], .top3 td[data-l="660 mph"], .top3 td[data-l="1000 ft"] { font-family: var(--mono); font-size: 15px; margin-top: 6px; }
}

/* the car list, Rouven's seven lines */
.spec-list { list-style: none; margin: 0; padding: 0; font-size: 19px; }
.spec-list li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); position: relative; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.spec-list li:first-child { font-weight: 700; font-size: 21px; }

/* contact */
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 20px; }
.contact-list li { padding: 6px 0; }
