/* ===== Design tokens ===== */
:root {
  --navy: #1B2430;
  --navy-soft: #2A3544;
  --red: #C8313F;
  --cream: #F2EFE9;
  --khaki: #6B7355;
  --steel: #8C9099;
  --steel-light: #C9CCD1;
  --white: #FFFFFF;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 64px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 2.5rem;
}

.header-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  margin-left: 2.5rem;
  transition: border-color 0.2s;
}

.header-nav a:first-child { margin-left: 0; }

.header-nav a:hover { border-color: var(--red); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  max-height: 900px;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,36,48,0.15) 0%, rgba(27,36,48,0.55) 60%, rgba(27,36,48,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem 4rem;
  color: var(--white);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 480px;
  font-size: 1.1rem;
  color: var(--steel-light);
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

/* ===== Section marks (numbered structural device) ===== */
.section-mark {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* ===== Intro ===== */
.intro {
  padding: 6rem 1.5rem;
  border-bottom: 1px solid var(--steel-light);
}

.intro-inner {
  max-width: 680px;
  margin: 0 auto;
}

.intro h2, .shipping h2, .contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.intro p, .shipping p {
  font-size: 1.05rem;
  color: var(--navy-soft);
  margin-bottom: 1rem;
  max-width: 60ch;
}

/* ===== Vehicles ===== */
.vehicles {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.vehicle-card {
  padding: 4rem 0;
  border-bottom: 1px solid var(--steel-light);
}

.vehicle-card:last-child { border-bottom: none; }

.vehicle-header {
  margin-bottom: 2rem;
}

.vehicle-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  line-height: 1;
}

.vehicle-tag {
  font-family: var(--font-mono);
  color: var(--khaki);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* Gallery */
.vehicle-card-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery {
  margin-bottom: 0;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 500px;
  overflow: hidden;
  background: var(--navy);
  margin-bottom: 0.6rem;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.thumb {
  height: 100px;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}

.thumb:hover { opacity: 1; }

.thumb.active {
  opacity: 1;
  border-color: var(--red);
}

/* Spec block — the signature element */
.spec-block {
  background: var(--navy);
  color: var(--cream);
  padding: 2.5rem;
}

.spec-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: var(--red);
  border-bottom: 1px solid var(--navy-soft);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.spec-title-spaced { margin-top: 2.5rem; }

.spec-list { display: flex; flex-direction: column; }

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--navy-soft);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.spec-row dt { color: var(--steel-light); flex-shrink: 0; }
.spec-row dd { text-align: right; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  font-size: 0.95rem;
  padding-left: 1.2rem;
  position: relative;
}

.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--khaki);
}

.btn-secondary {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}

/* ===== Value note ===== */
.value-note {
  background: var(--khaki);
  color: var(--cream);
  padding: 3.5rem 1.5rem;
}

.value-note-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.value-note p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 1rem;
}

.value-note cite {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--cream);
  opacity: 0.8;
}

/* ===== Shipping ===== */
.shipping {
  padding: 6rem 1.5rem;
  border-bottom: 1px solid var(--steel-light);
}

.shipping-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* ===== Contact ===== */
.contact {
  padding: 6rem 1.5rem;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}

.contact-inner { max-width: 600px; margin: 0 auto; }

.contact .section-mark { color: var(--steel); margin: 0 auto 0.75rem; }

.contact h2 { color: var(--white); }

.contact-sub {
  color: var(--steel-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  padding-bottom: 6px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--cream);
  border-top: 3px solid var(--red);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}

.footer-logo {
  height: 56px;
  margin: 0 auto 1rem;
  opacity: 0.95;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy-soft);
}

.footer-legal { margin-top: 0.4rem; opacity: 0.7; }

/* ===== Responsive ===== */
@media (min-width: 800px) {
  .vehicle-card-body {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .header-inner { padding: 0.5rem 1rem; }
  .header-nav { gap: 1rem; }
  .header-nav a { font-size: 0.7rem; margin-left: 1rem; white-space: nowrap; }
  .logo { height: 48px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .spec-row { font-size: 0.85rem; }
  .spec-block { padding: 1.75rem; }
}

@media (max-width: 480px) {
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}
