/* Race Ready Rental
   Colors and fonts live in :root. Change the accent here. */
:root {
  --bg: #0e0f11;
  --bg-2: #16181b;
  --bg-3: #000;
  --line: #2a2d32;
  --text: #e9e9ea;
  --muted: #9a9ca1;
  --accent: #d6281f;
  --accent-dark: #b01f17;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; color: #cfd0d2; max-width: 36em; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: .85em 1.6em;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--text); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--text); color: var(--bg); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 15, 17, .96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand {
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: 1.5rem; letter-spacing: .04em; text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-family: var(--head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; font-size: 1.05rem; text-decoration: none; color: #cfd0d2;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.nav .btn { color: #fff; padding: .6em 1.1em; font-size: 1rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  font-size: 1rem; padding: .45em .8em; border-radius: 2px; cursor: pointer;
}

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav .btn { margin-top: 1rem; text-align: center; border-bottom: 0; padding: .85em 1em; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; }
.hero img {
  object-position: 65% center;
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,15,17,.95) 0%, rgba(14,15,17,.4) 45%, rgba(14,15,17,.1) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 9vh, 96px); }
.hero h1 { max-width: 12em; }
.hero .tagline {
  font-family: var(--head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: clamp(1rem, 2.4vw, 1.3rem); color: #d8d9db; margin-bottom: 2rem;
}

/* Page header for inner pages */
.page-head { padding: clamp(56px, 10vw, 110px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head p { margin-bottom: 0; }

/* Sections */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.band { background: var(--bg-3); }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.15fr 1fr; } .split.flip > :first-child { order: 2; } }

.photo { background: var(--bg-2); }
.photo-wide { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.list li { padding: .7rem 0 .7rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.list li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem; width: .55rem; height: .55rem; background: var(--accent);
}

.steps { display: grid; gap: 2px; background: var(--line); counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--bg); padding: 2rem 1.5rem 2.25rem; }
.step-num {
  font-family: var(--head); font-weight: 700; font-size: 3.5rem; line-height: 1; color: var(--accent); margin-bottom: .75rem;
}

.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.note {
  border-left: 3px solid var(--accent); background: var(--bg-2);
  padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }

.cta { text-align: center; }
.cta p { margin: 0 auto 1.75rem; }

/* Partners */
.logos { display: grid; gap: 1px; background: #000; grid-template-columns: repeat(2, 1fr); border: 1px solid #1c1c1c; }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(4, 1fr); } }
.logos li { list-style: none; background: #000; outline: 1px solid #1c1c1c; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 3vw, 32px); }
.logos img { width: 100%; max-width: 240px; aspect-ratio: 2 / 1; object-fit: contain; }
ul.logos { margin: 0; padding: 0; }

/* Form */
.form { display: grid; gap: 1.1rem; max-width: 720px; }
@media (min-width: 700px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.form .two > div { display: grid; gap: .4rem; }
.field { display: grid; gap: .4rem; }
.form .two { display: grid; gap: 1.1rem; }
label {
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem;
}
label small { font-family: var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 2px; padding: .8rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 150px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.hidden { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer .brand { font-size: 1.3rem; color: var(--text); }
.site-footer p { margin: .35rem 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

@media (max-width: 700px) {
  .hero::after { background: linear-gradient(to top, rgba(14,15,17,.97) 0%, rgba(14,15,17,.75) 55%, rgba(14,15,17,.35) 100%); }
}
.hero .eyebrow { color: #fff; }
.gallery.tall img { aspect-ratio: 3 / 4; }
.form-status { margin: 0; color: var(--muted); min-height: 1.6em; }
.btn:disabled { opacity: .6; cursor: default; }
.logos a { display: flex; align-items: center; justify-content: center; width: 100%; }
.logos a img { transition: opacity .15s; }
.logos a:hover img { opacity: .8; }
.logos a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* Where We Race */
.tracks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 2px; background: var(--line); grid-template-columns: 1fr; }
@media (min-width: 640px) { .tracks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tracks { grid-template-columns: repeat(4, 1fr); } }
.track { background: var(--bg-2); padding: 1.5rem 1.4rem 1.6rem; border-top: 3px solid var(--accent); display: grid; gap: .5rem; align-content: start; }
.track-area { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--muted); }
.track-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; }
.tracks-note { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; margin-bottom: 1.5rem; }

/* Bring Your Sponsor block (How It Works) */
.panel { background: var(--bg-2); border-left: 3px solid var(--accent); padding: clamp(24px, 4vw, 48px); max-width: 860px; }
.panel p { max-width: 40em; }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.8rem; line-height: 1; color: var(--accent); flex: none; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq details p { margin: 0 0 1.4rem; color: #cfd0d2; max-width: 40em; }

/* Button pairs (Apply + Request a Quote) */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btns { justify-content: center; }
.hero .mainline { font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: #fff; max-width: 30em; margin-bottom: .6rem; }
.hero .btn-ghost { box-shadow: inset 0 0 0 2px #fff; color: #fff; }

/* Four step path (The Program) */
@media (min-width: 640px) { .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }

/* Form: apply or quote choice */
.choice { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.choice legend { margin-bottom: .5rem; padding: 0; }
.choice label {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); padding: .7rem 1rem; border-radius: 2px;
}
.choice input { width: auto; accent-color: var(--accent); margin: 0; }
.choice label:has(input:checked) { border-color: var(--accent); }
.choice legend { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; width: 100%; }
.choice label { font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; }

[hidden] { display: none !important; }

/* Our Story: people rows */
.person img { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; object-fit: cover; }
.split.person { grid-template-columns: auto; }
@media (min-width: 860px) { .split.person { grid-template-columns: 420px 1fr; } .split.person.flip { grid-template-columns: 1fr 420px; } }
.nav a { white-space: nowrap; }
