/* Edgehaul styles. Written mobile first: the plain rules are for phones,
   and the @media rules further down adjust the layout for wider screens. */

/* ---------- Brand font (headings only) ---------- */
@font-face {
  font-family: "Saira Condensed";
  src: url("../fonts/saira-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Colours and shared values ---------- */
:root {
  --graphite: #1C2023;
  --orange: #F26A1B;
  --chalk: #F4F2ED;
  --steel: #5E666C;
  --white: #FFFFFF;
  --line: #E7E4DC;
  --radius: 10px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Saira Condensed", "Arial Narrow", var(--font-body);
}

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

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; margin-top: 1.6em; }
h4 { font-size: 1.6rem; margin-bottom: 0.15em; }

p { margin: 0 0 1em; }

a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--graphite);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hidden until a keyboard user tabs to it */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--graphite);
  color: var(--white);
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--orange); color: var(--graphite); }
.btn-primary:hover { background: #FF7F33; }

.btn-outline { border-color: var(--graphite); color: var(--graphite); }
.btn-outline:hover { background: var(--graphite); color: var(--white); }

.btn-outline-light { border-color: var(--chalk); color: var(--chalk); }
.btn-outline-light:hover { background: var(--chalk); color: var(--graphite); }

.btn-small { min-height: 44px; padding: 8px 10px; font-size: 0.875rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-top: 6px solid var(--graphite);
  background: var(--chalk);
}

.logo { display: flex; flex-shrink: 0; align-items: center; min-height: 44px; }
.header-actions { display: flex; gap: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: 32px 0 28px;
  border-top: 4px solid var(--orange);
  background: var(--graphite);
  color: var(--chalk);
}

.hero a:focus-visible { outline-color: var(--orange); }

.eyebrow {
  margin-bottom: 0.6em;
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sub { font-size: 1.0625rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.6em;
}

.button-row .btn-primary { flex: 1 1 100%; }
.button-row .btn-outline-light { flex: 1 1 100%; }

.hours { margin: 0; font-size: 0.9375rem; }

.hero-image {
  width: 100%;
  max-width: 340px;
  margin: 24px auto 0;
}

/* ---------- Trust strip ---------- */
.trust { padding: 20px 0 0; }

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
}

.trust-grid li {
  padding: 12px;
  border: 2px solid var(--graphite);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.trust-grid li::before {
  content: "✓";
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--graphite);
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--graphite); color: var(--chalk); }

/* ---------- Product cards ---------- */
.cards {
  display: grid;
  gap: 14px;
  margin-bottom: 8px;
}

.card {
  display: grid;
  grid-template-columns: 88px 1fr;
  overflow: hidden;
  border: 2px solid var(--graphite);
  border-radius: var(--radius);
  background: var(--white);
}

.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: var(--steel);
}

.card-image img { width: auto; max-height: 280px; }

.card-body { min-width: 0; padding: 14px 12px; }

.fit { margin-bottom: 0.6em; font-size: 0.9375rem; line-height: 1.35; }

.specs { margin: 0 0 12px; font-size: 0.875rem; line-height: 1.3; }

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.specs dt { color: var(--steel); }
.specs dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }

.fit-note { margin-top: 1.4em; font-size: 1.0625rem; font-weight: 700; }
.small-print { margin: 0.8em 0 0; color: var(--steel); font-size: 0.875rem; }

/* ---------- How it works ---------- */
.steps {
  margin: 0 0 8px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--graphite);
  border-radius: var(--radius);
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-weight: 600;
  line-height: 1.35;
  counter-increment: step;
}

.steps li:nth-child(odd) { background: var(--line); }

.steps li::before {
  content: counter(step);
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--orange);
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

/* ---------- Who we supply ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 8px 12px;
  border: 2px solid var(--graphite);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.two-col { display: grid; gap: 40px; }

/* ---------- Why Edgehaul ---------- */
.why-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-grid li {
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}

.why-grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.2;
}

/* ---------- Form ---------- */
.form {
  margin-bottom: 1em;
  padding: 16px;
  border: 2px solid var(--graphite);
  border-radius: var(--radius);
  background: var(--white);
}

.form label { display: block; margin-bottom: 4px; font-weight: 700; }

.form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--steel);
  border-radius: 8px;
  background: var(--white);
  color: var(--graphite);
  font: inherit;
}

/* ---------- FAQ ---------- */
details {
  margin-bottom: 10px;
  border: 2px solid var(--graphite);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 14px 14px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0 20px;
  border-top: 4px solid var(--orange);
  background: var(--graphite);
  color: var(--chalk);
  font-size: 0.9375rem;
}

.site-footer p { margin-bottom: 0.7em; }
.site-footer a { display: inline-block; padding: 4px 0; }
.site-footer a:focus-visible { outline-color: var(--orange); }

.footer-name { font-family: var(--font-heading); font-size: 1.45rem; }

/* ---------- Added content sections ---------- */
.hero-dealer { margin: 0.8em 0 0; font-weight: 700; }
.hero-dealer a { display: inline-block; padding: 10px 0; }

.specs-large { font-size: 1rem; margin: 0; }
.specs-large div { padding: 10px 0; }
.specs-large dd { white-space: normal; }

.lead { font-size: 1.125rem; }
.why-button { margin: 24px 0 0; }
.section-dark a:focus-visible { outline-color: var(--orange); }

.plain-list { margin: 0; padding-left: 20px; }

.section-dealers { border-top: 4px solid var(--graphite); }
.eyebrow-dark { color: var(--steel); }
.section-dealers .steps { margin-bottom: 16px; }
.form-title { margin-top: 0; }

.about { max-width: 760px; }
.about p { font-size: 1.0625rem; }

.about-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.about-facts li {
  padding: 12px 14px;
  border: 2px solid var(--graphite);
  border-radius: var(--radius);
  line-height: 1.35;
}

.about-facts strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1.15;
}

.quantities {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quantities legend { margin-bottom: 6px; padding: 0; font-weight: 700; }
.quantities p { margin: 0; }
.quantities label { font-weight: 600; }

details ul { margin: 0; padding: 0 14px 14px 32px; }

/* ---------- Form error ---------- */
.form-error { margin: 0; font-weight: 700; }
.form-error:not(:empty) {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-left: 4px solid var(--orange);
  background: var(--chalk);
}
.form input[aria-invalid="true"] { border-color: var(--orange); }

/* ---------- Sticky WhatsApp button (phones only) ---------- */
.sticky-whatsapp { display: none; }

.sticky-whatsapp.is-visible {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--graphite);
  background: var(--orange);
  color: var(--graphite);
  font-weight: 700;
  text-decoration: none;
}

.sticky-whatsapp:focus-visible { outline: 3px solid var(--graphite); outline-offset: -5px; }

/* ---------- Wider phones and tablets ---------- */
@media (min-width: 600px) {
  h1 { font-size: 3.2rem; }

  .sticky-whatsapp.is-visible { display: none; }

  .button-row .btn-primary, .button-row .btn-outline-light { flex: 0 1 auto; }

  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .about-facts { grid-template-columns: repeat(3, 1fr); }
  .btn-small { padding: 8px 16px; }
  .site-header { padding-left: max(16px, calc((100vw - 1120px) / 2 + 16px)); padding-right: max(16px, calc((100vw - 1120px) / 2 + 16px)); }
}

/* ---------- Laptops ---------- */
@media (min-width: 960px) {
  h1 { font-size: 3.9rem; }
  h2 { font-size: 2.5rem; }

  .hero { padding: 52px 0; }
  .hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; }
  .hero-image { max-width: 440px; margin-top: 0; }

  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .section { padding: 56px 0; }
  .cards:last-of-type { grid-template-columns: repeat(3, 1fr); }
  .card { grid-template-columns: 96px 1fr; }
}
