/* ============================================================
   Essex Car Finance — site stylesheet
   Rebuilt 2026. One file, no frameworks, no build step.
   Palette: stone paper / charcoal ink / ECF signal red
   Type:    Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (plates)
   ============================================================ */

:root {
  --paper: #f3f4f2;
  --ink: #17181a;
  --slate: #4b5058;
  --red: #b3231f;
  --red-dark: #8e1b18;
  --line: #d9dbd6;
  --panel: #1c1d20;
  --panel-line: #33353a;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

.site-header {
  background: var(--ink);
  color: #e8e8e6;
  border-bottom: 3px solid var(--red);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.brand img { width: 52px; height: auto; }

.brand-name {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-name span { color: var(--red); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  color: #c9cac7;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 3px;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: #fff; background: #26272b; }

.site-nav a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--red);
  border-radius: 3px 3px 0 0;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- redress notice band ---------- */

.notice {
  background: var(--red);
  color: #fff;
  font-size: 0.95rem;
}

.notice .wrap {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.notice strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice a { color: #fff; text-decoration: underline; }

/* ---------- hero ---------- */

.hero { padding: 64px 0 48px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.hero p.lead { font-size: 1.15rem; color: var(--slate); margin: 0 0 28px; }

/* Showcase: photos shot on black studio backgrounds. The container is
   pure black so it seamlessly extends the backdrop, echoing the dark
   header/footer instead of clashing with the light page. */
.hero-img {
  background: #000;
  border-radius: 6px;
  border-top: 3px solid var(--red);
  padding: 28px 24px;
  overflow: hidden;
}

.hero-img img {
  margin: 0 auto;
  width: auto;
  max-width: 100%;   /* shrink to fit, never upscale past native size */
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- spec plates (signature element) ----------
   Thin-bordered plates set in mono type, like a vehicle
   data plate. Used for key facts, dates and figures.  */

.plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  /* container draws top+left; plates draw right+bottom, so borders
     never double no matter how the grid wraps */
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin: 40px 0;
}

.plate {
  padding: 18px 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: "IBM Plex Mono", monospace;
  min-width: 0; /* let grid cells shrink below content width */
}

.plate .k {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}

.plate .v {
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere; /* long emails/URLs wrap instead of overflowing */
}

/* stacked variant: one plate per row, for narrow columns */
.plates-stack { grid-template-columns: 1fr; max-width: 420px; }

/* ---------- sections ---------- */

section.band { padding: 56px 0; }
section.band + section.band { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 10px;
}

h2 {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

h3 {
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: #fff;
}

.card p { color: var(--slate); margin-bottom: 0; }

/* dark info panel */
.panel {
  background: var(--panel);
  color: #d6d7d4;
  border-radius: 6px;
  padding: 32px;
  border: 1px solid var(--panel-line);
}

.panel h2, .panel h3 { color: #fff; }
.panel a { color: #f2a6a3; }
.panel a:hover { color: #fff; }

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

.prose { max-width: 760px; }
.prose p { color: #2c2e33; }
.prose ul { color: #2c2e33; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

.smallprint {
  font-size: 0.88rem;
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 32px;
}

.reviewed {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 18px 0 6px;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b9bcb5;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

form input:focus, form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}

form button {
  margin-top: 22px;
  cursor: pointer;
  font: inherit;
}

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

.site-footer {
  margin-top: 64px;
  background: var(--ink);
  color: #a7a8a5;
  font-size: 0.9rem;
}

.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}

.site-footer h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9cac7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  border-top: 1px solid var(--panel-line);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #85868a;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ (redress page) ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-family: "Archivo", Arial, sans-serif;
  list-style-position: inside;
}

.faq summary:hover { color: var(--red); }

.faq details > div { padding: 0 20px 16px; color: #2c2e33; }
