:root {
  --ink: #111318;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --gold: #d6a238;
  --gold-2: #f4d58d;
  --red: #c72032;
  --steel: #27313f;
  --shadow: 0 24px 70px rgba(17, 19, 24, .14);
}

* { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

h1,
h2,
h3,
.btn,
.tag,
.site-nav a,
.filter-row span,
.section-heading a,
.text-link {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 0 5vw;
  width: 100%;
  color: #fff;
  background: rgba(12, 15, 20, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: auto;
  height: 64px;
  max-width: 132px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .34));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.site-nav a {
  color: rgba(255, 255, 255, .82);
  padding: 26px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  border-color: var(--gold);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.header-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  color: #fff;
  background: #10141b;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, .92), rgba(9, 11, 15, .5) 48%, rgba(9, 11, 15, .2)),
    linear-gradient(0deg, rgba(9, 11, 15, .65), transparent 45%);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
}

.missing-image {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .22), transparent 28%, rgba(255, 255, 255, .2) 45%, transparent 56%),
    radial-gradient(circle at 78% 18%, rgba(214, 162, 56, .5), transparent 28%),
    linear-gradient(135deg, #0e1117 0%, #242b36 48%, #12161d 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 92vw);
  padding: 0 0 12vh 5vw;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

.hero h1,
.page-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.btn-primary {
  color: #151515;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 16px 34px rgba(214, 162, 56, .25);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
}

.btn-glass.dark {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.icon-btn {
  gap: 10px;
}

.icon-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.section {
  padding: 90px 5vw;
}

.intro-band {
  color: #fff;
  background: linear-gradient(135deg, #151a22, #2c3542);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) 1.35fr;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}

.section h2,
.split-copy h2,
.cta-band h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.22;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-list article,
.process article,
.contact-panel,
.lead-form {
  padding: 28px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
}

.feature-list span,
.process span {
  color: var(--gold);
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading a,
.text-link {
  color: var(--red);
  font-weight: 800;
}

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

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

.car-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(17, 19, 24, .08);
}

.car-image {
  height: 260px;
  background: var(--soft);
}

.car-image img[src*="save-"] {
  object-fit: contain;
  padding: 34px;
  background: linear-gradient(135deg, #ffffff, #f2f5fa);
}

.car-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  color: #7a4d00;
  background: #fff0ca;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.car-body h2,
.car-body h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.car-body p:not(.tag) {
  color: var(--muted);
}

.car-body strong {
  display: block;
  margin: 16px 0 10px;
  color: var(--red);
  font-size: 24px;
}

.inventory-card .car-body {
  display: grid;
  gap: 14px;
}

.car-specs {
  display: grid;
  gap: 10px;
  margin: 0;
}

.car-specs div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.car-specs dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.car-specs dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.inventory-card .car-specs div:last-child dd {
  color: var(--red);
  font-size: 20px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 70px 5vw;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 18, 24, .92), rgba(15, 18, 24, .72)),
    linear-gradient(135deg, #1b212b, #3b4655);
}

.cert-band {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
  padding: 62px 5vw;
  background: linear-gradient(135deg, #fff7dc, #ffffff);
  border-top: 1px solid #f2dfaf;
  border-bottom: 1px solid #f2dfaf;
}

.cert-band > div:first-child {
  display: grid;
  place-items: center;
}

.cert-band img {
  width: min(210px, 70vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(17, 19, 24, .16));
}

.cert-band h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.24;
}

.cert-band p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.page-hero {
  padding: 110px 5vw 90px;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 12, 18, .92), rgba(10, 12, 18, .55)),
    linear-gradient(135deg, #111721, #3b4652);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.filter-row span {
  padding: 9px 14px;
  color: var(--steel);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

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

.process article {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(17, 19, 24, .07);
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding: 90px 5vw;
  background: var(--soft);
}

.split-section.reverse {
  background: #fff;
}

.split-image {
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split-copy {
  max-width: 560px;
}

.split-copy p {
  color: var(--muted);
  font-size: 17px;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  color: #fff;
  background: #2f3744;
}

.stats-band div {
  padding: 38px 5vw;
  background: #161b23;
}

.stats-band strong {
  display: block;
  color: var(--gold);
  font-size: 34px;
}

.stats-band span {
  color: rgba(255, 255, 255, .78);
}

.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  padding: 90px 5vw;
  background: var(--soft);
}

.contact-panel,
.lead-form {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(17, 19, 24, .07);
}

.contact-panel ul {
  padding-left: 20px;
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
}

.thanks-hero {
  min-height: calc(100vh - 86px);
  display: grid;
  align-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 5vw;
  color: rgba(255, 255, 255, .72);
  background: #0d1015;
  font-size: 14px;
}

.site-footer p { margin: 0; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

.footer-social img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-header {
    gap: 12px;
    padding: 0 4vw;
  }
  .site-nav {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5vw;
    background: rgba(12, 15, 20, .96);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; }
  .header-social {
    margin-left: auto;
  }
  .hero-content { padding: 0 5vw 10vh; }
  .hero h1,
  .page-hero h1,
  .section h2,
  .split-copy h2,
  .cta-band h2,
  .cert-band h2 {
    text-wrap: pretty;
  }
  .section-grid,
  .feature-list,
  .car-grid,
  .car-grid.large,
  .cert-band,
  .process,
  .split-section,
  .contact-layout,
  .stats-band {
    grid-template-columns: 1fr;
  }
  .section-heading,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .cta-band h2 {
    max-width: 760px;
  }
  .split-image { min-height: 320px; }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
    justify-content: flex-start;
  }
  .brand-logo {
    height: 48px;
    max-width: 96px;
  }
  .nav-toggle {
    width: 48px;
    height: 48px;
    margin-left: auto;
  }
  .header-social {
    gap: 8px;
    margin-left: 0;
  }
  .header-social a {
    width: 44px;
    height: 44px;
  }
  .header-social img {
    width: 26px;
    height: 26px;
  }
  .site-nav { top: 72px; }
  .page-hero {
    padding: 72px 5vw 64px;
  }
  .hero { min-height: 680px; }
  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(27px, 7vw, 32px);
    line-height: 1.28;
    overflow-wrap: anywhere;
  }
  .section h2,
  .split-copy h2,
  .cta-band h2,
  .cert-band h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.28;
  }
  .hero p:not(.eyebrow),
  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }
  .section,
  .split-section,
  .contact-layout {
    padding: 64px 5vw;
  }
  .car-image { height: 220px; }
}
