/* Preview-only layout for the simplified RAV4 page. */
:root {
  --bg: #09090b;
  --bg-raise: #121216;
  --card: #151519;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f6f3ee;
  --muted: #b7b1a8;
  --faint: #8d877e;
  --red: #e30613;
  --red-hot: #ff2a22;
  --bronze: #c4a574;
  --line-green: #06c755;
  --line-green-ink: #06240f;
  --font: "PingFang TC", "Hiragino Sans CNS", "Noto Sans TC", "Microsoft JhengHei", "WenQuanYi Micro Hei", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", "Noto Sans TC", sans-serif;
  --header: 56px;
  --banner: 0px;
  --radius: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #ff5a4f; outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

.visually-hidden, .hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 80;
  background: var(--red); color: #fff; padding: 8px 12px; text-decoration: none;
}
.skip:focus { top: 12px; }
.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }

.preview-banner {
  background: #3a2a0a;
  color: #f3e2b0;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  border-bottom: 1px solid #c4a57466;
  position: relative;
  z-index: 50;
}
.preview-banner strong { color: #fff; }
.preview-banner .en { display: inline; color: #e8d7a4; margin-left: 0.4em; }
@media (max-width: 719px) {
  .preview-banner .en { display: block; margin: 0.25em 0 0; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header);
  padding: 8px 16px;
  background: #09090bcc;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.logo-word {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  line-height: 1;
}
.primary-nav { display: flex; gap: 4px; }
.primary-nav a {
  text-decoration: none;
  padding: 8px 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.primary-nav a:hover { color: #fff; }
.header-line {
  text-decoration: none;
  background: var(--line-green);
  color: var(--line-green-ink);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero { padding: 0 0 8px; }
.hero-figure { margin: 0; background: #000; }
.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1478 / 1108;
  object-fit: cover;
  object-position: 50% 55%;
  max-height: min(62vh, 620px);
}
@media (max-width: 799px) {
  .hero-figure img { max-height: min(30vh, 200px); }
  .hero-copy { margin-top: 10px; }
  .hero-copy h1 { font-size: 1.85rem; }
  .lede { font-size: 0.95rem; }
  .hero-points { margin-top: 8px; padding-top: 8px; gap: 4px; font-size: 0.92rem; }
  .hero-actions { margin-top: 10px; padding-bottom: 6px; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { padding: 12px 8px; font-size: 0.9rem; }
}
.hero-figure figcaption {
  color: var(--faint);
  font-size: 0.8rem;
  padding: 8px 16px 0;
}
.hero-copy {
  width: min(720px, calc(100% - 32px));
  margin: 18px auto 0;
}
.kicker {
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.hero-copy h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin-bottom: 10px; }
.lede { color: var(--muted); font-size: 1.02rem; }
.hero-points {
  list-style: none;
  padding: 12px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.98rem;
}
.hero-points li { padding-left: 0; }
.hero-points strong { color: #fff; }
.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 13px 18px;
  min-height: 48px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-hot); }
.btn-line { background: var(--line-green); color: var(--line-green-ink); border-color: var(--line-green); }
.btn-ghost { border-color: var(--line-strong); }
.btn-block { width: 100%; }
button.btn { appearance: none; }

.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 8px;
  scroll-margin-top: 110px;
}
.section-tight { padding-top: 24px; }
.sec-head { margin-bottom: 18px; max-width: 40rem; }
.sec-head h2, #faq-title { font-size: 1.6rem; margin-bottom: 8px; }
.sec-head p, .shared-lead { color: var(--muted); }
.subhead {
  font-size: 1.05rem;
  margin: 22px 0 10px;
  color: var(--bronze);
  letter-spacing: 0.04em;
}

.kit-pick { border: 0; padding: 0; margin: 0 0 8px; }
.kit-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 700px) {
  .kit-grid { grid-template-columns: 1fr 1fr; }
}
.kit-card {
  display: block;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
}
.kit-card input { position: absolute; opacity: 0; pointer-events: none; }
.kit-card-body {
  display: grid;
  gap: 4px;
  padding: 16px 16px 18px;
}
.kit-card:hover { border-color: var(--line-strong); }
.kit-card:has(input:checked) {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
  background: #1a0c0e;
}
.kit-card:has(input:focus-visible) { outline: 2px solid #ff5a4f; outline-offset: 3px; }
.kit-tag {
  font-family: var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 600;
}
.kit-card-body strong { font-size: 1.2rem; }
.kit-price {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.kit-note { color: var(--muted); font-size: 0.92rem; }
.form-hint { color: var(--faint); font-size: 0.88rem; margin-top: 10px; }

.part-list { display: grid; gap: 12px; }
@media (min-width: 800px) {
  .part-list { grid-template-columns: 1fr 1fr; }
  #part-front-chin, #part-side-skirts { /* stay full width, not in part-list */ }
}
.part-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 12px;
}
.part-list .part-card { margin: 0; }
.part-choice { display: grid; min-width: 0; }
.part-photo {
  background: #0c0c0f;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  min-width: 0;
}
@media (max-width: 799px) {
  .part-photo { aspect-ratio: 16 / 10; max-height: 200px; }
}
.part-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.part-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--card);
  min-width: 0;
  position: relative;
}
@media (min-width: 880px) {
  #part-front-chin .part-choice,
  #part-side-skirts .part-choice {
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
  }
}
.part-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.part-title { font-size: 1.12rem; }
.part-price {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin: 0;
}
.part-spec-line { font-size: 0.95rem; }
.spec-label {
  display: inline-block;
  font-weight: 700;
  color: var(--bronze);
  margin-right: 6px;
  letter-spacing: 0.06em;
}
.bolt-on {
  display: inline-block;
  justify-self: start;
  background: #2a1a0c;
  color: #f3e2b0;
  border: 1px solid #c4a57488;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.part-note { color: var(--muted); font-size: 0.9rem; }
.part-add { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.part-add input { width: 18px; height: 18px; accent-color: var(--red); }
.part-colour-field { display: grid; gap: 6px; }
.part-colour-field label { font-weight: 700; font-size: 0.9rem; color: var(--bronze); }
.part-colour-field select,
.field input,
.field textarea,
.choice {
  width: 100%;
  background: #0c0c0f;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  min-height: 44px;
}
.part-colour-field select:disabled { opacity: 0.5; }
.part-choice.is-kit-disabled { opacity: 0.45; }
.part-choice.is-kit-disabled .part-add { pointer-events: none; }

.material-block {
  margin: 24px 0 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: var(--radius);
}
.material-block h3 { font-size: 1.2rem; margin-bottom: 10px; }
.material-list { display: grid; gap: 0; }
.material-list div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.9fr) 1.2fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.material-list div:first-child { border-top: 0; }
.material-list dt { font-weight: 600; }
.material-list dd { color: var(--muted); margin: 0; }

.terms {
  background: #14090b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  margin-bottom: 20px;
}
.terms h3 { font-size: 1.05rem; margin-bottom: 8px; }
.terms ul { margin: 0; padding: 0 0 0 1.15rem; color: var(--muted); }
.terms li { margin: 5px 0; }

.form-grid { display: grid; gap: 14px; max-width: 36rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.intent-pick, .choice-row { border: 0; padding: 0; margin: 0; }
.intent-pick legend { font-weight: 700; margin-bottom: 8px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
}
.choice input { accent-color: var(--red); }
.choice:has(input:checked) {
  border-color: var(--red);
  background: #1a0c0e;
}
.extra { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.extra summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.extra .field { margin-top: 10px; }
.form-error { color: #ffb4ae; background: #2a0c0c; border: 1px solid #e3061366; padding: 10px 12px; border-radius: 8px; }
.form-actions { display: grid; gap: 10px; }
.form-foot { color: var(--faint); font-size: 0.9rem; }
.form-foot a { color: var(--text); }

.result {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  max-width: 36rem;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#inquiry-output {
  width: 100%;
  background: #0c0c0f;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 10px;
  border-radius: 8px;
}

.faq { display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 2px 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.faq details p { color: var(--muted); padding: 0 0 14px; }

.site-footer {
  padding: 32px 0 120px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.footer-contact { margin-bottom: 16px; }
.footer-contact p { margin: 4px 0; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.footer-links a, .site-footer a { color: var(--text); }
.legal { color: var(--faint); font-size: 0.82rem; margin-top: 8px; }

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #09090be6;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.dock.is-hidden { display: none; }
body.has-dock { padding-bottom: 84px; }

@media (min-width: 800px) {
  .dock { display: none; }
  body.has-dock { padding-bottom: 40px; }

  .hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 0;
    width: min(1120px, calc(100% - 32px));
    margin: 16px auto 0;
  }
  .hero-figure { border-radius: 0 0 0 4px; overflow: hidden; }
  .hero-figure img { max-height: 640px; aspect-ratio: auto; height: 100%; }
  .hero-copy { margin: 0; padding: 24px 8px 24px 28px; width: auto; }
  .hero-actions { grid-template-columns: 1fr; }
}
