:root {
  --bg: #0f1115;
  --bg-card: #181c24;
  --surface: #1e2430;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-soft: #fb923c;
  --blue: #2563eb;
  --green: #16a34a;
  --navy: #1e3a5f;
  --line: rgba(248, 250, 252, 0.1);
  --font: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --mobile-cta-h: 4.25rem;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
.hero-bg,
.material-media img,
.category-ring img,
.truck-banner-img,
.truck-card img {
  image-rendering: -webkit-optimize-contrast;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.65rem; z-index: 2; }
.logo-mark {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.logo-text em { font-style: normal; color: var(--orange-soft); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-size: 0.92rem; font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav-cta {
  padding: 0.5rem 1.1rem;
  background: var(--orange);
  color: #fff !important;
  font-weight: 700;
  border-radius: 4px;
}
.header-actions { display: none; align-items: center; gap: 0.5rem; z-index: 2; }
.header-query {
  padding: 0.45rem 0.85rem;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 4px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.4rem; height: 2.4rem;
  background: none; border: none; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 1.35rem; height: 2px;
  background: var(--text); margin-inline: auto;
  transition: transform 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero — reference banner style */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) clamp(1rem, 5vw, 4rem) 3rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,17,21,0.92) 0%, rgba(15,17,21,0.7) 45%, rgba(15,17,21,0.35) 100%),
    linear-gradient(to top, rgba(15,17,21,0.85) 0%, transparent 50%);
}
.hero-inner { position: relative; z-index: 1; max-width: 34rem; }
.hero-tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--orange); display: inline; }
.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-primary {
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  color: #fff;
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #fdba74, var(--orange-dark));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(249, 115, 22, 0.45);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; min-height: 3.1rem; }

/* Sections */
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { text-align: center; max-width: 36rem; margin-inline: auto; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.eyebrow.light { color: rgba(255,255,255,0.85); }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}
.section-lead { color: var(--text-muted); font-size: 1.02rem; }

/* Category hub — infographic circles */
.categories {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(249,115,22,0.08), transparent 60%),
    var(--bg);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  max-width: 56rem;
  margin-inline: auto;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.3s var(--ease);
}
.category-card:hover { transform: translateY(-6px); }
.category-ring {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.category-card:hover .category-ring {
  border-color: var(--orange);
  box-shadow: 0 16px 48px rgba(249,115,22,0.2);
}
.category-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-label {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.55rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 3px;
}
.label-blue { background: var(--blue); }
.label-orange { background: var(--orange); }
.label-green { background: var(--green); }
.label-navy { background: var(--navy); }

/* Material detail rows */
.materials {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 72rem;
  margin-inline: auto;
}
.material-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.material-row.reverse { direction: rtl; }
.material-row.reverse > * { direction: ltr; }
.material-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.material-media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.material-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.6rem 1.2rem;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}
.material-copy .eyebrow { margin-bottom: 0.4rem; }
.material-copy h2 { margin-bottom: 0.75rem; }
.material-copy > p { color: var(--text-muted); margin-bottom: 1rem; }
.material-copy ul {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.material-copy li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.material-copy li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 0.45rem; height: 0.45rem;
  background: var(--orange);
  border-radius: 1px;
}

/* Truck stock */
.truck {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  background: var(--bg-card);
  border-block: 1px solid var(--line);
}
.truck-banner {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
  max-width: 72rem;
  margin-inline: auto;
}
.truck-banner-img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
  min-height: 200px;
}
.truck-banner-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(to top, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.4) 60%, transparent 100%);
}
.truck-banner-text h2 { max-width: 28rem; }
.truck-banner-text p { color: var(--text-muted); max-width: 32rem; }
.truck-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 72rem;
  margin-inline: auto 2rem;
  margin-bottom: 2rem;
}
.truck-card {
  background: var(--surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.truck-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249,115,22,0.4);
}
.truck-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.truck-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.truck-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.truck-card-body p { font-size: 0.9rem; color: var(--text-muted); }
.truck-cta { text-align: center; }

/* Query */
.query {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  scroll-margin-top: var(--header-h);
}
.query-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 68rem;
  margin-inline: auto;
  align-items: start;
}
.query-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.25rem 0 1.5rem;
}
.query-tags span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--orange-soft);
  border-radius: 3px;
}
.query-meta { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; }
.query-meta a { color: var(--orange-soft); }
.query-meta span { color: var(--text-muted); font-size: 0.92rem; }
.query-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2394a3b8' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.form-status { font-size: 0.92rem; min-height: 1.3em; }
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }
.query-form.is-sending .btn-label { display: none; }
.query-form.is-sending .btn-loading { display: inline !important; }
.query-form.is-sending .btn-primary { opacity: 0.75; pointer-events: none; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand strong { font-family: var(--font-display); display: block; }
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); }
.footer-query {
  display: none;
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 4px;
}
.footer-copy { grid-column: 1 / -1; font-size: 0.82rem; color: var(--text-muted); }

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 0.65rem 1rem calc(0.65rem + var(--safe-bottom));
  background: rgba(15,17,21,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transition: transform 0.35s var(--ease), opacity 0.35s;
}
.mobile-cta.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(249,115,22,0.35);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .material-row, .material-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .truck-grid { grid-template-columns: 1fr; margin-inline: auto; }
  .query-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 3.85rem; }
  .header-actions { display: flex; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 1.4rem;
    background: rgba(15,17,21,0.98);
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    padding: 5rem 1.5rem 6rem;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--text); }
  .nav .nav-cta {
    display: inline-flex; width: fit-content;
    background: var(--orange) !important;
    color: #fff !important;
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
    border-radius: 6px;
  }
  .hero { padding-bottom: calc(var(--mobile-cta-h) + var(--safe-bottom) + 2rem); }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .query { padding-bottom: calc(4rem + var(--mobile-cta-h) + var(--safe-bottom)); }
  .field-row { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: calc(1.5rem + var(--mobile-cta-h) + var(--safe-bottom)); }
  .footer-query { display: inline-flex; }
  .mobile-cta { display: block; }
  .category-grid { gap: 1.25rem; }
  .truck-banner-img { aspect-ratio: 16/10; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
