/* =============================================================
   1987 VW Vanagon Westfalia — listing page
   Palette inspired by the van's slate blue + warm cream interior
   ============================================================= */

:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #3d6478;        /* vanagon slate-blue */
  --accent-dark: #2c4a59;
  --warn-bg: #fff4e6;
  --warn-border: #d99548;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 65ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

/* =============== HERO =============== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0) 70%
  );
}

.hero-overlay > * { max-width: 900px; }

.kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
  margin: 0;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
}

.subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.6rem);
  margin: 0.4em 0 1em;
  opacity: 0.95;
}

.price {
  font-family: var(--font-body);
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.price-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.price-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
}
.price-obo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.9rem, 1vw + 0.4rem, 1.1rem);
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0.85rem 1.6rem;
  background: #fff;
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.32);
  background: #fff;
  color: var(--accent-dark);
}

.hero-cta-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}

.hero-cta:hover .hero-cta-arrow {
  transform: translateX(4px);
}

.hero-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* =============== QUICK SPECS =============== */
.quick-specs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--gutter);
}

.quick-specs dl {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem 2rem;
}

.quick-specs dl > div { min-width: 0; }

.quick-specs dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.quick-specs dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

/* =============== QUICK NAV =============== */
.quick-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.9rem var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.2rem;
  background: var(--bg);
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  outline: none;
}

/* =============== STORY =============== */
.story p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

/* =============== GALLERY =============== */
.gallery {
  padding: calc(var(--gutter) * 1.5) var(--gutter);
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.5vw + 0.5rem, 2.4rem);
  margin: 0;
}

.section-sub {
  color: var(--muted);
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.gallery-group + .gallery-group {
  margin-top: 2.5rem;
}

.gallery-group h3 {
  font-size: 1.4rem;
  color: var(--accent-dark);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.gallery-group-intro {
  max-width: 65ch;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.10);
}

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

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* =============== VIDEOS =============== */
.videos {
  padding: 0 var(--gutter) calc(var(--gutter) * 1.5);
  max-width: 1200px;
  margin: 0 auto;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============== DETAILS =============== */
.details {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--gutter);
}

.details section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.details section:last-child { border-bottom: none; }

.details h2 {
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin: 0 0 0.75rem;
}

.details ul {
  margin: 0;
  padding-left: 1.2rem;
}

.details li {
  margin-bottom: 0.4rem;
}

.details li::marker { color: var(--accent); }

.details p { margin: 0 0 1em; }

/* =============== DISCLOSURES =============== */
.disclosures {
  background: var(--warn-bg);
  border-left: 4px solid var(--warn-border);
  padding: 1.25rem 1.5rem !important;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.disclosures h2 {
  color: #8b5a1f;
  font-size: 1.25rem;
  margin-top: 0;
}

/* =============== BUILDER =============== */
.builder {
  padding: calc(var(--gutter) * 1.5) var(--gutter);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--border);
}

.builder .section-head {
  margin-bottom: 2rem;
}

.builder .section-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.builder-hero {
  display: block;
  max-width: 380px;
  margin: 0 auto 2rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.builder-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.10);
}

.builder-hero img {
  width: 100%;
  display: block;
}

.builder-prose {
  max-width: 60ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .builder-grid { grid-template-columns: repeat(2, 1fr); }
}

.builder-grid a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.builder-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.10);
}

.builder-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .builder-grid { grid-template-columns: 1fr; }
}

/* =============== CONTACT =============== */
.contact {
  background: var(--accent);
  color: #fff;
  padding: calc(var(--gutter) * 1.5) var(--gutter);
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.8rem, 3vw + 0.5rem, 2.6rem);
  margin: 0 0 0.5rem;
}

.contact-intro {
  max-width: 42ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field > span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field .req { color: var(--warn-border); margin-left: 0.15rem; }

.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.contact-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: -0.4rem 0 0;
}

.contact-form button {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-form button:hover { background: var(--accent-dark); }
.contact-form button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.4em;
  color: var(--muted);
}
.form-status.error   { color: #b54234; }
.form-status.success { color: #2c8a45; }
.form-status.sending { color: var(--muted); }

/* =============== FOOTER =============== */
footer {
  padding: 2rem var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer p { max-width: 60ch; margin: 0 auto; }
