/* Rolling Habitat — Bright Clay & Road Line (site) with Concrete Night sections */
:root {
  --asphalt: #50555A;
  --ink: #2E3033;
  --muted: #5C6166;
  --clay: #B8643E;
  --clay-ink: #9A4F2E;
  --line: #E2B23A;
  --sand: #E6DCC8;
  --dust: #F6F4EF;
  --white: #FFFFFF;
  --night: #1E2023;
  --night-2: #2A2D31;
  --concrete: #A9ADB1;
  --border: #D8D1C2;
  --radius: 14px;
  --wrap: 1160px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--dust); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--clay-ink); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 900; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--line); color: var(--ink); padding: 12px 16px; z-index: 50; font-weight: 800; }
.skip:focus { left: 8px; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; text-decoration: none; }
.eyebrow--clay { color: var(--clay-ink); }
.eyebrow--line { color: var(--line); }

/* Buttons: every one at least 48px tall */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px; border: 2px solid transparent; font: 800 1rem/1 var(--font); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--line); color: var(--ink); }
.btn-primary:hover { background: #F0C455; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--dust); }
.btn-dark:hover { background: var(--asphalt); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--dust); background: transparent; }
.btn-ghost:hover { background: rgba(246, 244, 239, .12); color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
/* "Waitlist coming soon": where the waitlist button will go, a tag that is not a link. */
.soon { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--sand); color: var(--ink); font: 800 1rem/1 var(--font); }

/* Header */
.site-header { background: var(--dust); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand img { width: 72px; height: auto; }
.brand span { font-weight: 900; letter-spacing: .08em; font-size: 1.05rem; }
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 8px; }
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { color: var(--clay-ink); }
.site-nav .btn, .site-nav .soon { margin-left: 8px; }
.menu-toggle { display: none; }
/* Tablets just above the phone layout: the links sit closer so the header stays on one row. */
@media (min-width: 761px) and (max-width: 980px) {
  .site-header .wrap { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 56px; }
  .brand span { font-size: .92rem; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0 8px; }
  .site-nav .btn, .site-nav .soon { margin-left: 4px; padding: 0 14px; }
  .site-nav .soon { font-size: .9rem; }
}
@media (min-width: 761px) and (max-width: 820px) {
  .brand img { width: 48px; }
  .brand span { font-size: .8rem; letter-spacing: .06em; }
}
@media (max-width: 760px) {
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav .btn, .site-nav .soon { margin-left: auto; }
  /* With the menu script running, the nav folds behind the Menu button. */
  .has-menu .menu-toggle { display: inline-flex; margin-left: auto; padding: 0 16px; }
  .has-menu .site-nav { display: none; }
  .has-menu.is-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding-bottom: 8px; }
  .has-menu.is-open .site-nav .btn, .has-menu.is-open .site-nav .soon { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 440px) {
  .brand { gap: 10px; }
  .brand img { width: 48px; }
  .brand span { font-size: .8rem; letter-spacing: .06em; }
  .has-menu .menu-toggle { padding: 0 12px; }
}
/* The narrowest phones: the button keeps its icon, and "Menu" stays for screen readers. */
@media (max-width: 359px) {
  .has-menu .menu-toggle { width: 48px; padding: 0; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Tread divider: highway tread meets mud tread at a road-line dot */
.tread-strip { display: block; width: 100%; height: 24px; background: var(--dust); }

/* Hero */
.hero { position: relative; min-height: clamp(540px, 82vh, 780px); display: flex; align-items: center; color: var(--dust); background: var(--night); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 32, 35, .9) 0%, rgba(30, 32, 35, .62) 52%, rgba(30, 32, 35, .2) 100%); }
.hero .wrap { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hero__copy { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero__lede { font-size: 1.2rem; max-width: 560px; color: #E9E6DF; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Sections */
.section { padding: 96px 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--night { background: var(--night); color: var(--dust); }
.section--night h2, .section--night h3 { color: var(--white); }
.section--night .muted { color: var(--concrete); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head p { font-size: 1.12rem; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--flip { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 28px; height: 28px; color: var(--clay); }

/* Will it fit? */
.fit-tool { align-items: start; }
.fit-controls { display: grid; gap: 18px; }
.fit-size { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fit-size legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.fit-size .field label { font-weight: 400; color: var(--muted); }
.fit-result { background: var(--dust); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.fit-result .checklist { margin: 16px 0 18px; }
.fit-note { font-size: .92rem; }
.fit-side { display: grid; gap: 28px; }

/* 3D view (js/ui/van3d.js), inside a .plan-figure */
.van3d canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--dust); cursor: grab; touch-action: pan-y; }
.van3d canvas:active { cursor: grabbing; }
.van3d .loading { display: grid; place-items: center; aspect-ratio: 16 / 10; margin: 0; border-radius: 10px; background: var(--dust); }
.van3d__turn { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Fade-in as you scroll (js/ui/reveal.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-shown { opacity: 1; transform: none; }
@media print { .reveal { opacity: 1; transform: none; transition: none; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; font-weight: 800; font-size: 1.15rem; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 900; line-height: 1; color: var(--clay-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq__a { max-width: 720px; padding-bottom: 12px; color: var(--muted); }

.plan-figure { margin: 0; background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.plan-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; }
.plan-figure img, .plan-figure video { display: block; width: 100%; height: auto; border-radius: 10px; }
.plan-figure video { background: var(--night); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); overflow: hidden; }
.step__media { margin: -28px -28px 24px; aspect-ratio: 16 / 9; background: var(--sand); }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--line); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; margin-bottom: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.feature svg { width: 40px; height: 40px; color: var(--clay); margin-bottom: 14px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.photo { border-radius: var(--radius); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.story-mark { width: min(320px, 70%); margin-bottom: 28px; }

/* Waitlist */
.waitlist { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.waitlist__badge { width: min(360px, 100%); margin: 0 auto; }
.form-card { background: var(--night-2); border-radius: var(--radius); padding: 32px; }
@media (max-width: 900px) { .waitlist { grid-template-columns: minmax(0, 1fr); } .waitlist__badge { width: min(260px, 70%); } }

/* Forms */
.wix-form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .req { color: var(--clay-ink); }
.field-help { font-size: .92rem; color: var(--muted); margin: -2px 0 8px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--border); background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font); }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--line); outline: 3px solid rgba(226, 178, 58, .45); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--clay); }
.field-error { color: var(--clay-ink); font-weight: 700; font-size: .95rem; margin: 6px 0 0; }
.form-status { margin: 0; }
.form-status--error { color: var(--clay-ink); font-weight: 700; }
.form-success { padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success__title { font-size: 1.5rem; font-weight: 900; margin-bottom: .3em; }
.section--night .field label { color: var(--dust); }
.section--night .field .req, .section--night .field-error, .section--night .form-status--error { color: #F2A98A; }
.section--night .field-help { color: var(--concrete); }
.section--night .form-success__title { color: var(--line); }

/* Blog cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__noimg { display: block; width: 100%; height: 100%; }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.25rem; margin-bottom: .45em; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { color: var(--muted); font-size: .98rem; }
.meta { color: var(--muted); font-size: .9rem; margin: auto 0 0; }
.loading { color: var(--muted); }
.section-foot { margin-top: 36px; }

/* Blog index */
.page-head { padding: 72px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--border); color: var(--ink); text-decoration: none; font-weight: 700; background: var(--white); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--dust); }

/* Post */
.post { max-width: 760px; margin: 0 auto; padding: 64px 20px 32px; }
.post-header { margin-bottom: 28px; }
.post-header h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.post-cover { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 36px; aspect-ratio: 16 / 9; object-fit: cover; }
.prose { font-size: 1.12rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li p { margin: 0; }
.prose blockquote { margin: 1.6em 0; padding: 18px 0; border-top: 2px solid var(--clay); border-bottom: 2px solid var(--clay); font-size: 1.4rem; font-weight: 800; color: var(--clay-ink); line-height: 1.35; }
.prose blockquote p { margin: 0; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: 10px; }
.post-cta { margin: 48px 0 0; background: var(--night); color: var(--dust); border-radius: var(--radius); padding: 32px; }
.post-cta__title { font-size: 1.5rem; font-weight: 900; color: var(--white); margin-bottom: .3em; }

/* Vehicles */
.vehicles-page { padding-bottom: 96px; }
.vehicles-page .page-head p:not(.eyebrow) { max-width: 720px; font-size: 1.12rem; }
.vehicle-filter { max-width: 480px; margin-bottom: 12px; }
.vehicle-count { min-height: 1.6em; margin-bottom: 28px; }
.make-group { margin-bottom: 48px; }
.make-group h2 { font-size: 1.6rem; }
.vehicle-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vehicle-link { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.vehicle-link:hover { border-color: var(--ink); color: var(--ink); }
.vehicle-link span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .vehicle-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vehicle-list { grid-template-columns: minmax(0, 1fr); } }
.vehicle { padding-top: 56px; padding-bottom: 96px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 16px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.vehicle__top { align-items: start; }
.vehicle h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.vehicle__lede { font-size: 1.15rem; }
.vehicle__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.vehicle-part { margin-top: 64px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 800; text-align: right; }
@media (max-width: 760px) { .specs { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; padding: 72px 0 96px; }
.contact .form-card { background: var(--white); border: 1px solid var(--border); }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Footer */
.site-footer { background: var(--night); color: var(--concrete); padding: 56px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { width: 120px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a { color: var(--dust); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
.footer-nav a:hover { color: var(--line); }
.footer-legal { width: 100%; border-top: 1px solid #3A3D42; padding-top: 20px; font-size: .9rem; }
