/* ==========================================================================
   Wheels and Waves Automotive
   One stylesheet, no framework. Design language ported from the transport
   site's Salient child theme so the two read as siblings.

   Contrast, checked — do not "fix" without rechecking:
     #f4881c on #111111 ....  7.54:1  PASS AA
     #ffffff on #111111 .... 18.88:1  PASS AA
     #111111 on #f4881c ....  7.54:1  PASS AA   <- button text
     #ffffff on #f4881c ....  2.50:1  FAIL      <- never
     #f4881c on #ffffff ....  2.50:1  FAIL      <- no light sections
   ========================================================================== */

:root {
  --brand:            #f4881c;
  --brand-hover:      #ff9633;
  --brand-ink:        #111111;

  --surface:          #111111;
  --surface-raised:   #1a1a1a;
  --surface-sunken:   #0b0b0b;
  --header-scrolled:  rgba(17,17,17,.9);
  --hero-scrim:       rgba(0,0,0,.667);

  --text:             #ffffff;
  --text-muted:       #b8b8b8;
  --text-subtle:      #8a8a8a;

  --line:             rgba(255,255,255,.13);
  --line-strong:      rgba(255,255,255,.22);

  --field-bg:         rgba(255,255,255,.06);
  --field-bg-focus:   rgba(255,255,255,.10);
  --field-border:     rgba(255,255,255,.18);

  --ok:               #4ade80;
  --error:            #f87171;

  --skew:             polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);

  /* TODO: swap to the Salient heading face once confirmed */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: var(--font-body);

  --step--1: clamp(0.83rem, 0.79rem + 0.20vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.93rem + 0.33vw, 1.19rem);
  --step-1:  clamp(1.20rem, 1.09rem + 0.54vw, 1.50rem);
  --step-2:  clamp(1.44rem, 1.27rem + 0.85vw, 1.89rem);
  --step-3:  clamp(1.73rem, 1.47rem + 1.29vw, 2.38rem);
  --step-4:  clamp(2.07rem, 1.70rem + 1.88vw, 3.00rem);
  --step-5:  clamp(2.49rem, 1.94rem + 2.71vw, 3.79rem);

  --tracking-caps: .06em;

  --space-3xs: .25rem;
  --space-2xs: .5rem;
  --space-xs:  .75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2rem;
  --space-xl:  3rem;
  --space-2xl: 4rem;
  --space-3xl: clamp(4rem, 3rem + 4vw, 6.25rem);

  --measure:   68ch;
  --container: 1200px;
  --radius:    0;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur:  200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 var(--space-s);
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); color: var(--brand); }

p { margin: 0 0 var(--space-s); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

ul, ol { margin: 0 0 var(--space-s); padding-left: 1.25em; }

:where(a, button, input, textarea, select, summary, details):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: var(--brand-ink);
  padding: var(--space-xs) var(--space-m); z-index: 999; font-weight: 700;
}
.skip:focus { left: var(--space-s); top: var(--space-s); }

/* ------------------------------------------------------------- layout */

.wrap {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--space-3xl); }
.section--alt { background: var(--surface-sunken); }
.section--tall { padding-block: calc(var(--space-3xl) * 1.5); }

.measure { max-width: var(--measure); }

.lead {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.55;
}

.eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: var(--space-2xs);
}

/* -------------------------------------------------------------- motifs */

.skew { clip-path: var(--skew); }

/* Section heading with the skewed orange rule. The signature element. */
.h-rule {
  position: relative;
  margin-top: var(--space-l);
  margin-bottom: var(--space-xl);
  padding-top: var(--space-s);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}

.h-rule::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 6px;
  background: var(--brand);
  clip-path: var(--skew);
}

/* -------------------------------------------------------------- button */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  /* generous horizontal padding: the skew eats ~10% of each end, so the
     visible tap target is narrower than the box */
  padding: var(--space-xs) var(--space-l);
  min-height: 48px;
  background: var(--brand);
  color: var(--brand-ink);        /* never #fff — see contrast note */
  font-size: var(--step-0);
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: var(--skew);
  transition: background-color var(--dur) var(--ease);
}

.btn:hover, .btn:focus-visible { background: var(--brand-hover); color: var(--brand-ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--sm { min-height: 40px; padding: var(--space-2xs) var(--space-m); font-size: var(--step--1); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line-strong);
  clip-path: none;              /* a clipped outline reads as broken */
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: transparent; }

/* -------------------------------------------------------------- header */

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-scrolled);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex; align-items: center; gap: var(--space-m);
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: var(--space-2xs); text-decoration: none; margin-right: auto; }

/* Full lockup. Height-constrained; width follows the 2109:406 aspect ratio.
   The logo already contains the wordmark, so no separate .brand__text. */
.brand__logo {
  height: 42px;
  width: auto;
  max-width: min(58vw, 300px);
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 520px) {
  .brand__logo { height: 34px; }
}

.brand__mark--pending {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 800; font-size: .8rem;
  clip-path: var(--skew);
}

.brand__text {
  display: flex; flex-direction: column;
  font-family: var(--font-head);
  font-weight: 800; line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: .95rem;
  color: var(--text);
}
.brand__text span { color: var(--brand); font-size: 1.15em; letter-spacing: .06em; }

.nav { display: flex; gap: var(--space-m); }
.nav a {
  color: var(--text); text-decoration: none;
  font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  padding-block: var(--space-2xs);
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: var(--space-2xs); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 28px; height: 28px; color: var(--text); }

.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: var(--space-s) 1.25rem var(--space-l);
}
.menu__panel a {
  color: var(--text); text-decoration: none;
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--step-1); font-weight: 600;
}
.menu__panel a:last-child { border-bottom: 0; }

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .menu { display: block; }
}

/* ------------------------------------------------------------ pagehead */

.pagehead { position: relative; display: grid; }
.pagehead > * { grid-area: 1 / 1; }

.pagehead__bg { width: 100%; height: 100%; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.pagehead::after {
  content: ""; grid-area: 1 / 1;
  background: var(--hero-scrim);
}

.pagehead__inner {
  position: relative; z-index: 1;
  align-self: center;
  padding-block: clamp(3rem, 8vw, 7rem);
}
.pagehead h1 { text-transform: uppercase; }
.pagehead .lead { max-width: 46ch; margin-top: var(--space-s); }

.pagehead__actions {
  display: flex; flex-wrap: wrap; gap: var(--space-s);
  margin-top: var(--space-l);
}

/* --------------------------------------------------------------- cards */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m); }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card { background: var(--surface-raised); border: 1px solid var(--line); }
.card__link {
  display: flex; flex-direction: column; gap: var(--space-2xs);
  height: 100%; padding: var(--space-l);
  text-decoration: none; color: var(--text);
  border-top: 4px solid var(--brand);
  transition: background-color var(--dur) var(--ease);
}
.card__link:hover { background: #222; color: var(--text); }
.card h3 { color: var(--brand); font-size: var(--step-1); margin: 0; }
.card p { color: var(--text-muted); font-size: var(--step--1); flex: 1; }
.card__more { font-weight: 700; font-size: var(--step--1); color: var(--brand); text-transform: uppercase; letter-spacing: var(--tracking-caps); }

/* --------------------------------------------------------------- split */

.split { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split__text p { color: var(--text-muted); }

/* --------------------------------------------------------------- steps */

.steps { list-style: none; margin: var(--space-l) 0 0; padding: 0; display: grid; gap: var(--space-m); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }

.step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-s) var(--space-m); align-items: start; }
.step__n {
  grid-row: 1 / 3;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 800; font-size: var(--step-1);
  clip-path: var(--skew);
}
.step h3 { font-size: var(--step-1); margin: 0; align-self: center; }
.step p { color: var(--text-muted); font-size: var(--step--1); margin: 0; }

/* ------------------------------------------------------------ linklist */

.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.linklist a {
  display: block; padding: var(--space-s) var(--space-m);
  background: var(--surface-raised); border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  text-decoration: none; color: var(--text); font-weight: 600;
  transition: background-color var(--dur) var(--ease);
}
.linklist a:hover { background: #222; color: var(--brand); }

/* --------------------------------------------------------------- prose */

.prose__block { margin-top: var(--space-2xl); }
.prose__block p { color: var(--text-muted); max-width: var(--measure); }

/* ----------------------------------------------------------------- faq */

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none;
  padding: var(--space-s) var(--space-l) var(--space-s) 0;
  font-weight: 700; font-size: var(--step-0);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--brand); font-size: var(--step-2); line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__body { padding-bottom: var(--space-m); }
.faq__body p { color: var(--text-muted); margin: 0; }

/* ------------------------------------------------------------ ticklist */

.list-ticks { list-style: none; padding-left: 0; }
.list-ticks li { padding-left: 1.75em; position: relative; margin-bottom: var(--space-2xs); }
.list-ticks li::before { content: "\2714"; position: absolute; left: 0; color: var(--brand); }

/* ----------------------------------------------------------------- cta */

.cta { background: var(--surface-raised); border-top: 1px solid var(--line); padding-block: var(--space-3xl); }
.cta__inner { text-align: center; }
.cta .h-rule::before { left: 50%; transform: translateX(-50%); }
.cta .lead { margin-inline: auto; max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); justify-content: center; margin-top: var(--space-l); }

/* ---------------------------------------------------------------- form */

.contact { display: grid; gap: var(--space-2xl); }
@media (min-width: 900px) { .contact { grid-template-columns: 1.4fr 1fr; } }

.form__row { margin-bottom: var(--space-m); }
.form__grid { display: grid; gap: var(--space-m); }
@media (min-width: 560px) { .form__grid { grid-template-columns: 1fr 1fr; } }

.form label { display: block; margin-bottom: var(--space-3xs); font-weight: 600; font-size: var(--step--1); }
.form label span { color: var(--brand); }

.form input, .form select, .form textarea {
  width: 100%;
  padding: var(--space-xs) var(--space-s);
  min-height: 48px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  color: var(--text);
  font: inherit;
  font-size: var(--step-0);
  border-radius: var(--radius);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  background: var(--field-bg-focus); border-color: var(--brand); outline: none;
}
.form input::placeholder, .form textarea::placeholder { color: var(--text-subtle); }

.form__row--check { display: flex; align-items: center; gap: var(--space-2xs); }
.form__row--check input { width: auto; min-height: auto; }
.form__row--check label { margin: 0; }

.form__hint { font-size: var(--step--1); color: var(--text-subtle); margin-top: var(--space-3xs); }

/* honeypot — hidden from people, visible to bots */
.form__hp { position: absolute; left: -9999px; }

.form__status { margin-top: var(--space-s); font-weight: 600; min-height: 1.5em; }
.form__status.is-ok    { color: var(--ok); }
.form__status.is-error { color: var(--error); }

.contact__list { list-style: none; padding: 0; }
.contact__list li { margin-bottom: var(--space-xs); }
.contact__list a { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--text); text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--brand); }
.contact__list svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.contact__aside h3 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--brand); margin-top: var(--space-l); }
.contact__aside p { color: var(--text-muted); }

/* -------------------------------------------------------------- footer */

.footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: var(--space-3xl); }
.footer__grid { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h4 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: var(--space-2xs); }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--brand); }
.footer__blurb, .footer__addr, .footer__hours { color: var(--text-muted); font-size: var(--step--1); }
.footer__note { display: block; color: var(--text-subtle); margin-top: var(--space-3xs); }
.contact__addr { font-style: normal; }
.contact__note { color: var(--text-subtle); font-size: var(--step--1); }
.footer__contact a { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.footer__contact svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.footer__logo {
  height: 46px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-s);
}

.footer__legal {
  margin-top: var(--space-2xl);
  padding-block: var(--space-m);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: var(--step--1);
  color: var(--text-subtle);
}
.footer__links { display: flex; gap: var(--space-m); justify-content: center; flex-wrap: wrap; }
.footer__credit { margin-top: var(--space-2xs); }

/* ----------------------------------------------------------- actionbar */

.actionbar { display: none; }

@media (max-width: 760px) {
  .actionbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--surface-raised);
    border-top: 1px solid var(--line-strong);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .actionbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: var(--space-2xs);
    min-height: 56px; justify-content: center;
    color: var(--text); text-decoration: none;
    font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
  }
  .actionbar svg { width: 22px; height: 22px; color: var(--brand); }
  body { padding-bottom: 56px; }
}

/* ---------------------------------------------------- pending markers
   Deliberately loud. These should be uncomfortable to look at so they
   cannot quietly survive to launch. */

.pending {
  background: #ff0055; color: #fff;
  padding: 0 .35em; font-weight: 700;
  font-family: ui-monospace, monospace; font-size: .9em;
}

.ph {
  display: grid; place-items: center;
  width: 100%;
  background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 12px, #222 12px, #222 24px);
  border: 2px dashed #ff0055;
  color: #ff88aa;
  text-align: center;
  font-size: var(--step--1);
  padding: var(--space-m);
}
.ph strong { color: #fff; font-size: var(--step-0); display: block; }
