/* ============================================================
   SILVIAN MOTORS — Design tokens
   Palette: concrete off-white, graphite ink, steel blue-grey,
   safety yellow accent. Display: Oswald. Body: IBM Plex Sans.
   Utility/mono: IBM Plex Mono (spec plates, eyebrows, data).
   ============================================================ */

:root {
  --concrete: #eae6de;
  --concrete-dark: #ddd7cb;
  --graphite: #1c1e21;
  --graphite-soft: #2a2d31;
  --steel: #4b5a67;
  --steel-light: #8b98a3;
  --safety: #f0ac00;
  --safety-deep: #c98e00;
  --rivet-line: rgba(28, 30, 33, 0.16);
  --white: #ffffff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  font-weight: 600;
  color: var(--graphite);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--safety);
  display: inline-block;
}

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

/* ---------------- Nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite);
  border-bottom: 3px solid var(--safety);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand .brand-mark {
  color: var(--safety);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--concrete);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--safety);
}

.nav-cta {
  background: var(--safety);
  color: var(--graphite) !important;
  padding: 10px 18px;
  font-weight: 600;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--safety-deep);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--concrete);
  color: var(--concrete);
  padding: 8px 12px;
  font-family: var(--font-mono);
  cursor: pointer;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(20, 22, 24, 0.35) 0%, rgba(18, 20, 22, 0.78) 62%, rgba(16, 18, 20, 0.94) 100%),
    url("assets/hero-bg.jpg") center 30% / cover no-repeat;
  color: var(--white);
}

.hero-content {
  width: 100%;
  padding-bottom: 64px;
}

.hero .eyebrow {
  color: var(--concrete-dark);
  margin-bottom: 18px;
}

.hero .eyebrow::before {
  background: var(--safety);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.02;
  max-width: 820px;
}

.hero h1 span {
  color: var(--safety);
}

.hero p.lede {
  margin-top: 22px;
  max-width: 540px;
  font-size: 18px;
  color: var(--concrete-dark);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--safety);
  color: var(--graphite);
  border-color: var(--safety);
  font-weight: 600;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  border-color: var(--white);
}

.btn-dark {
  background: var(--graphite);
  color: var(--white);
  border-color: var(--graphite);
}

.btn-dark:hover {
  background: transparent;
  color: var(--graphite);
}

/* ---------------- Sections ---------------- */

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rivet-line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--steel);
  font-size: 17px;
}

/* ---------------- About / stat plates ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.about-copy p {
  font-size: 17px;
  color: #33383c;
}

.about-copy p + p {
  margin-top: 16px;
}

.plate-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.plate {
  position: relative;
  background: var(--graphite);
  color: var(--white);
  padding: 22px 20px;
  border: 1px solid var(--steel);
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel-light);
  top: 8px;
}

.plate::before {
  left: 8px;
}

.plate::after {
  right: 8px;
}

.plate .plate-value {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--safety);
  font-weight: 600;
}

.plate .plate-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--concrete-dark);
  margin-top: 8px;
}

/* ---------------- Vehicles ---------------- */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.vehicle-card {
  background: var(--white);
  border: 1px solid var(--rivet-line);
  display: flex;
  flex-direction: column;
}

.vehicle-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--graphite-soft);
}

.vehicle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vehicle-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--safety-deep);
  font-weight: 600;
}

.vehicle-body h3 {
  font-size: 22px;
  margin-top: 8px;
}

.vehicle-body p {
  color: var(--steel);
  font-size: 15px;
  margin-top: 10px;
  flex: 1;
}

.vehicle-facts {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--graphite);
  border-top: 1px dashed var(--rivet-line);
  padding-top: 14px;
}

.vehicle-facts div span {
  display: block;
  color: var(--steel-light);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vehicle-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--graphite);
  font-weight: 600;
}

.vehicle-link::after {
  content: "→";
}

.vehicle-link:hover {
  color: var(--safety-deep);
}

/* ---------------- Investment ---------------- */

.investment {
  background: var(--graphite);
  color: var(--white);
}

.investment .eyebrow {
  color: var(--concrete-dark);
}

.investment .section-head h2 {
  color: var(--white);
}

.investment .section-head p {
  color: var(--steel-light);
}

.invest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.invest-plate {
  border: 1px solid var(--steel);
  padding: 26px 20px;
  position: relative;
}

.invest-plate::before,
.invest-plate::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel-light);
  bottom: 8px;
}

.invest-plate::before {
  left: 8px;
}

.invest-plate::after {
  right: 8px;
}

.invest-plate .value {
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--safety);
  font-weight: 600;
}

.invest-plate .label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--concrete-dark);
}

.invest-note {
  max-width: 700px;
  color: var(--steel-light);
  font-size: 15px;
  border-left: 3px solid var(--safety);
  padding-left: 20px;
}

/* ---------------- Team ---------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.team-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--rivet-line);
  border-top: 3px solid var(--safety);
}

.team-card h3 {
  font-size: 22px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.team-card p.bio {
  margin-top: 14px;
  color: #33383c;
  font-size: 15px;
}

/* ---------------- Contact ---------------- */

.contact {
  text-align: center;
}

.contact .wrap {
  max-width: 640px;
}

.contact h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.contact p {
  margin-top: 18px;
  color: var(--steel);
  font-size: 17px;
}

.contact-email {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 18px;
  padding: 20px 32px;
  border: 2px solid var(--graphite);
  text-decoration: none;
  color: var(--graphite);
  font-weight: 600;
}

.contact-email:hover {
  background: var(--graphite);
  color: var(--white);
}

/* ---------------- Footer ---------------- */

footer {
  background: var(--graphite);
  color: var(--concrete-dark);
  padding: 36px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}

footer a {
  color: var(--safety);
  text-decoration: none;
}

/* ---------------- Specs page ---------------- */

.specs-hero {
  background: var(--graphite);
  color: var(--white);
  padding: 70px 0 50px;
}

.specs-hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
}

.specs-hero p {
  color: var(--steel-light);
  margin-top: 14px;
  max-width: 560px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--concrete-dark);
  margin-bottom: 24px;
}

.back-link::before {
  content: "←";
}

.back-link:hover {
  color: var(--safety);
}

.vehicle-spec-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--rivet-line);
}

.spec-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.spec-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spec-photos img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--rivet-line);
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--safety-deep);
  font-weight: 600;
}

.spec-top h2 {
  font-size: 34px;
  margin-top: 8px;
}

.spec-top p {
  margin-top: 14px;
  color: var(--steel);
}

.spec-tables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.spec-table {
  border: 1px solid var(--rivet-line);
}

.spec-table h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  background: var(--graphite);
  color: var(--safety);
  padding: 12px 16px;
  text-transform: uppercase;
}

.spec-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table td {
  padding: 10px 16px;
  border-top: 1px solid var(--rivet-line);
}

.spec-table td:first-child {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.spec-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.chassis-block {
  margin-top: 40px;
}

.chassis-block .eyebrow {
  margin-bottom: 16px;
}

.chassis-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chassis-photos img {
  border: 1px solid var(--rivet-line);
  background: var(--white);
}

.notes-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--steel);
  border-left: 3px solid var(--safety);
  padding-left: 16px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 920px) {
  .about-grid,
  .spec-top {
    grid-template-columns: 1fr;
  }

  .vehicle-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .invest-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--graphite);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
    border-bottom: 3px solid var(--safety);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  section {
    padding: 64px 0;
  }

  .plate-row {
    grid-template-columns: 1fr 1fr;
  }

  .invest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chassis-photos {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
