:root {
  --ink: #171717;
  --muted: #5f625d;
  --paper: #f7f8f6;
  --surface: #ffffff;
  --surface-strong: #ededeb;
  --line: #d8dbd4;
  --carbon: #23211d;
  --carbon-soft: #302d28;
  --green: #18a058;
  --green-dark: #0d6f42;
  --gold: #efb64a;
  --red: #d84a3a;
  --blue: #245ca8;
  --shadow: 0 18px 60px rgba(23, 23, 23, 0.16);
  --radius: 8px;
  --header-height: 76px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(24, 160, 88, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: var(--header-height);
  padding: 0 34px;
  color: #ffffff;
  background: rgba(23, 23, 23, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 23, 23, 0.08);
  box-shadow: 0 8px 28px rgba(23, 23, 23, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0, 0, 0, 0.18));
}

.site-header.scrolled .brand img {
  filter: none;
}

.brand span {
  display: inline-block;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.82;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: currentColor;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.16);
}

.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a.active {
  color: #ffffff;
  background: var(--carbon);
}

.header-cta,
.button,
.icon-button,
.testimonial-controls button,
.modal-close {
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.header-cta {
  min-width: 118px;
  padding: 0 20px;
  color: var(--ink);
  background: #ffffff;
}

.site-header.scrolled .header-cta {
  color: #ffffff;
  background: var(--green);
}

.header-cta:hover,
.button:hover,
.icon-button:hover,
.testimonial-controls button:hover,
.modal-close:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  align-items: end;
  gap: 28px;
  padding: calc(var(--header-height) + 58px) 34px 34px;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.88) 0%, rgba(18, 17, 15, 0.52) 48%, rgba(18, 17, 15, 0.2) 100%),
    linear-gradient(0deg, rgba(18, 17, 15, 0.7) 0%, rgba(18, 17, 15, 0.1) 58%),
    url("assets/hero-shop.jpeg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 140px;
  background: linear-gradient(0deg, var(--paper), rgba(247, 248, 246, 0));
}

.hero-content {
  max-width: 840px;
  padding-bottom: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-size: 5rem;
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.button {
  min-width: 156px;
  padding: 0 22px;
  border: 1px solid transparent;
  text-align: center;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 16px 34px rgba(24, 160, 88, 0.28);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 690px;
  margin: 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.hero-rail {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.rail-heading span {
  color: rgba(255, 255, 255, 0.74);
}

.rail-track {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.rail-car {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 12px;
  background: rgba(21, 20, 18, 0.58);
}

.rail-car img {
  width: 86px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.rail-car strong,
.rail-car span {
  display: block;
}

.rail-car span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.rail-car .price {
  color: var(--gold);
  font-weight: 900;
}

.section {
  padding: 92px 34px;
}

.section-heading {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.compact {
  max-width: 720px;
}

.section-heading h2,
.about-grid h2,
.proof-panel h2,
.contact-info h2 {
  margin-bottom: 16px;
  font-size: 2.65rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p,
.contact-info p,
.about-copy p {
  color: var(--muted);
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(23, 23, 23, 0.08);
}

.filter-panel label,
.contact-form label {
  display: grid;
  gap: 7px;
}

.filter-panel span,
.contact-form span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.range-field span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

input[type="range"] {
  accent-color: var(--green);
  padding: 0;
}

.icon-button {
  width: 100%;
  color: #ffffff;
  background: var(--carbon);
}

.inventory-results {
  min-width: 0;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.results-bar span {
  color: var(--muted);
  font-size: 0.92rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vehicle-card,
.values-grid article,
.blog-grid article,
.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(23, 23, 23, 0.08);
}

.vehicle-card {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 160, 88, 0.38);
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.12);
}

.vehicle-media {
  position: relative;
  background: var(--surface-strong);
}

.vehicle-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vehicle-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 10px;
  color: #ffffff;
  background: rgba(23, 23, 23, 0.76);
  font-size: 0.8rem;
  font-weight: 900;
}

.vehicle-body {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.vehicle-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.vehicle-card h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.12;
}

.vehicle-card .price {
  color: var(--green-dark);
  font-size: 1.18rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.spec-grid div {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.spec-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.spec-grid strong {
  font-size: 0.92rem;
}

.vehicle-summary {
  color: var(--muted);
  min-height: 48px;
}

.vehicle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vehicle-actions .button {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
}

.vehicle-actions .button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.service-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 26px;
}

.service-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.service-tab {
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 16px;
  text-align: left;
  font-weight: 900;
}

.service-tab.active {
  color: #ffffff;
  border-color: var(--carbon);
  background: var(--carbon);
}

.service-stage {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--carbon);
  box-shadow: var(--shadow);
}

.service-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(24, 160, 88, 0.45) 32% 42%, transparent 42% 62%, rgba(239, 182, 74, 0.42) 62% 70%, transparent 70%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), transparent);
  animation: serviceSweep 12s linear infinite;
}

.service-content {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 36px;
}

.service-content span {
  color: var(--gold);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}

.service-content h3 {
  margin: 12px 0;
  font-size: 2.3rem;
  line-height: 1.08;
}

.service-content p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.service-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.service-points strong {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
}

.section-about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto 34px;
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 12px;
  font-size: 1.08rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.values-grid article,
.blog-grid article {
  padding: 22px;
}

.values-grid span,
.blog-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green);
  font-weight: 900;
}

.values-grid h3,
.blog-grid h3,
.proof-list h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.values-grid p,
.blog-grid p,
.proof-list p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.proof-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) 1fr;
  gap: 32px;
  padding: 34px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--carbon);
}

.proof-panel .eyebrow {
  color: var(--gold);
}

.proof-panel h2 {
  color: #ffffff;
}

.proof-list {
  display: grid;
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.proof-list article {
  padding: 22px;
  background: var(--carbon-soft);
}

.proof-list p {
  color: rgba(255, 255, 255, 0.74);
}

.testimonial {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: 26px;
}

.testimonial p {
  font-size: 1.2rem;
  color: var(--ink);
}

.testimonial strong {
  color: var(--green-dark);
}

.testimonial-controls {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-controls button {
  min-width: 82px;
  min-height: 42px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--carbon);
}

.section-blog {
  background: #ffffff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.section-contact {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(300px, 540px);
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.contact-info address {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-style: normal;
}

.contact-info address a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 26px 34px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--carbon);
}

.site-footer img {
  width: 150px;
  height: auto;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 900;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.vehicle-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.vehicle-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.68);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(820px, calc(100svh - 48px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 2;
  width: 42px;
  min-height: 42px;
  margin: 14px;
  color: #ffffff;
  background: var(--carbon);
}

.modal-vehicle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 0;
}

.modal-main-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.modal-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px;
}

.modal-copy h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.05;
}

.modal-price {
  color: var(--green-dark);
  font-size: 1.8rem;
  font-weight: 900;
}

.modal-summary {
  color: var(--muted);
}

.modal-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.modal-list li {
  padding: 10px 12px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper);
}

.vehicle-documents {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.document-heading {
  display: grid;
  gap: 2px;
}

.document-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-heading strong {
  font-size: 1rem;
}

.document-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  color: #ffffff;
  background: var(--carbon);
  font-weight: 900;
  text-align: center;
}

.carfax-viewer {
  display: grid;
  gap: 8px;
}

.carfax-viewer[hidden] {
  display: none;
}

.carfax-viewer iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.document-open-link {
  color: var(--green-dark);
  font-weight: 900;
  text-align: center;
}

.before-repair-panel {
  display: grid;
  gap: 10px;
}

.before-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font-weight: 900;
  text-align: center;
}

.before-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.before-gallery[hidden] {
  display: none;
}

.before-thumb {
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 0;
}

.before-thumb.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 160, 88, 0.16);
}

.before-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.before-photo-viewer {
  display: grid;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.before-photo-viewer[hidden] {
  display: none;
}

.before-photo-viewer img {
  width: 100%;
  max-height: min(620px, 70svh);
  object-fit: contain;
  background: #111111;
}

.before-viewer-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 12px;
}

.before-viewer-caption span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.before-viewer-caption button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0 12px;
  font-weight: 900;
}

.loan-calculator {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(24, 160, 88, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24, 160, 88, 0.12), rgba(239, 182, 74, 0.1));
}

.loan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.loan-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.loan-head strong {
  color: var(--green-dark);
  font-size: 1.35rem;
}

.loan-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.loan-fields label {
  display: grid;
  gap: 5px;
}

.loan-fields span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.loan-fields input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 0 10px;
}

.loan-calculator p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.modal-actions .button {
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
}

.modal-actions .button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
  backdrop-filter: none;
}

.no-results {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

@keyframes serviceSweep {
  0% {
    transform: translateX(-12%);
  }
  50% {
    transform: translateX(12%);
  }
  100% {
    transform: translateX(-12%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
    gap: 14px;
    padding: 0 20px;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    order: 3;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: calc(var(--header-height) + 10px);
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    color: var(--ink);
    background: var(--paper);
  }

  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-rail {
    max-width: 720px;
    width: 100%;
  }

  .inventory-layout,
  .service-shell,
  .about-grid,
  .section-proof,
  .proof-panel,
  .section-contact {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 0 14px;
  }

  .brand img {
    width: 148px;
  }

  .hero {
    min-height: 78svh;
    padding: calc(var(--header-height) + 30px) 18px 18px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1.04rem;
    margin-bottom: 18px;
  }

  .hero-actions {
    margin-bottom: 16px;
  }

  .hero-rail {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats div {
    min-height: 64px;
    padding: 10px;
  }

  .hero-stats dt {
    font-size: 1.22rem;
  }

  .hero-stats dd {
    font-size: 0.72rem;
  }

  .inventory-grid,
  .values-grid,
  .blog-grid,
  .filter-panel,
  .modal-vehicle {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .results-bar,
  .vehicle-title-row,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .section {
    padding: 66px 18px;
  }

  .section-heading h2,
  .about-grid h2,
  .proof-panel h2,
  .contact-info h2 {
    font-size: 2.05rem;
  }

  .rail-car {
    grid-template-columns: 74px 1fr;
  }

  .rail-car .price {
    grid-column: 2;
  }

  .service-content {
    padding: 24px;
  }

  .service-content h3 {
    font-size: 1.78rem;
  }

  .proof-panel,
  .modal-copy,
  .contact-form {
    padding: 22px;
  }

  .modal-main-image {
    min-height: 280px;
  }

  .before-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carfax-viewer iframe {
    min-height: 420px;
  }

  .loan-head,
  .loan-fields {
    grid-template-columns: 1fr;
  }

  .loan-head {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer img {
    margin: 0 auto;
  }
}
