/* Easy Repair -- easyroadassist.com
   Rebuilt to match the original site: white chrome, dark photographic hero,
   centred headline, blue pill buttons. Blue #166BE0 and the logo red #EA0A20
   are both sampled off the original pages.
   Deliberately light-only, as the original was. Every colour is painted
   explicitly so the page holds on any host background. */

:root {
  --blue:      #166BE0;
  --blue-dark: #0F55B8;
  --red:       #EA0A20;
  --ink:       #15181C;
  --body:      #4A5158;
  --muted:     #767D85;
  --line:      #E3E6EA;
  --bg:        #FFFFFF;
  --bg-alt:    #F5F7F9;
  --dark:      #15181C;
  --on-dark:   #FFFFFF;
  --on-dark-2: #B9C0C8;

  --f: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --r: 14px;
  --gut: clamp(1.25rem, 5vw, 2.5rem);
  --wrap: 70rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--f);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.125rem, 6.5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }

p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack-tight { gap: 0.6rem; }
.stack-wide { gap: 2rem; }
.centre { text-align: center; align-items: center; }
.centre p { margin-inline: auto; }
.measure { max-width: 42rem; margin-inline: auto; }

section { padding-block: clamp(3rem, 7vw, 5rem); background: var(--bg); }
section.alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
}
.lede { font-size: 1.1875rem; color: var(--body); }
.small { font-size: 0.9375rem; color: var(--muted); }

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.brand { display: block; line-height: 0; }
.brand img { width: 148px; }

.navtoggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}
.navtoggle svg { display: block; }

.masthead nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.masthead nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.masthead nav a:hover { color: var(--blue); }
.masthead nav a[aria-current="page"] { color: var(--blue); }
.masthead nav .btn { font-size: 0.9375rem; padding: 0.6rem 1.25rem; }

@media (max-width: 56rem) {
  .navtoggle { display: block; }
  .masthead nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1.25rem;
  }
  .masthead nav.open { display: flex; }
  .masthead nav a { padding-block: 0.85rem; border-top: 1px solid var(--line); }
  .masthead nav .btn { margin-top: 0.9rem; justify-content: center; border-top: 0; }
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--blue);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--blue-dark); }
.btn .num { font-weight: 600; opacity: 0.92; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.65);
  color: var(--on-dark);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { background: var(--bg-alt); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.centre .actions { justify-content: center; }

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

.hero {
  position: relative;
  padding: 0;
  background: #0C0E11;
  isolation: isolate;
}
.hero .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,12,15,0.62) 0%, rgba(10,12,15,0.72) 55%, rgba(10,12,15,0.82) 100%);
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-block: clamp(3.5rem, 11vw, 7rem);
}
.hero h1 { color: var(--on-dark); max-width: 18ch; }
.hero .lede { color: rgba(255,255,255,0.88); max-width: 34rem; }

.hero-band .wrap { padding-block: clamp(2.5rem, 7vw, 4rem); gap: 1rem; }
.hero-band h1 { max-width: 22ch; }

.stars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.stars .glyphs {
  color: #FFC21A;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  line-height: 1;
}
.stars .cap {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.75rem;
}
section.alt .card { box-shadow: 0 1px 2px rgba(21,24,28,0.04); }
.card .more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue);
  text-decoration: none;
}
.card .more:hover { text-decoration: underline; }

/* ---------------- spec list ---------------- */

.spec { margin: 0; display: grid; gap: 0; }
.spec > div {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 0.35rem 2.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
}
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; color: var(--ink); }
.spec dd { margin: 0; }
@media (max-width: 46rem) { .spec > div { grid-template-columns: 1fr; } }

/* ---------------- price ---------------- */

.pricebox {
  background: var(--dark);
  color: var(--on-dark-2);
  border-radius: var(--r);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.pricebox h2 { color: var(--on-dark); }
.pricebox .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2.5rem;
}
.pricebox .cols > div { display: flex; flex-direction: column; gap: 0.5rem; }
.pricebox .fig {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}
.pricebox em { color: var(--on-dark); font-style: normal; font-weight: 700; }

/* ---------------- quotes ---------------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
blockquote {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
blockquote .glyphs { color: #FFC21A; letter-spacing: 0.16em; line-height: 1; }
blockquote cite { font-style: normal; font-weight: 700; font-size: 0.875rem; color: var(--ink); }

/* ---------------- area ---------------- */

.area {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.area span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}
section.alt .area span { background: var(--bg); }

/* ---------------- checklist ---------------- */

ol.checklist {
  list-style: none;
  counter-reset: c;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
ol.checklist li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.9rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
ol.checklist li:last-child { border-bottom: 1px solid var(--line); }
ol.checklist li::before {
  content: counter(c);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--blue);
  padding-top: 0.25rem;
}

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

form.lead { display: grid; gap: 1rem; max-width: 34rem; }
form.lead label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
form.lead input, form.lead textarea {
  font-family: var(--f);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  width: 100%;
}
form.lead textarea { resize: vertical; min-height: 6rem; }
form.lead .opt {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
form.lead .fallback {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
form.lead pre {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}
.form-status { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

/* ---------------- tbc ---------------- */

.tbc {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.8em;
  letter-spacing: 0.05em;
  background: var(--red);
  color: #FFFFFF;
  border-radius: 6px;
  padding: 0.1em 0.45em;
}

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

footer { background: var(--dark); color: var(--on-dark-2); padding-block: 3rem 5.5rem; }
footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
}
footer .col { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
footer img { width: 132px; margin-bottom: 0.4rem; }
footer a { color: var(--on-dark-2); text-decoration: none; font-size: 0.9375rem; }
footer a:hover { color: var(--on-dark); }
footer .lic { font-size: 0.8125rem; line-height: 1.75; }
footer strong { color: var(--on-dark); }

/* ---------------- sticky phone bar ---------------- */

.actionbar { display: none; }
@media (max-width: 56rem) {
  .actionbar {
    position: fixed;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 50;
    box-shadow: 0 -1px 0 rgba(21,24,28,0.12);
  }
  .actionbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    font-weight: 700;
    text-decoration: none;
  }
  .actionbar .call { background: var(--bg); color: var(--ink); }
  .actionbar .text { background: var(--blue); color: var(--on-dark); }
  body { padding-bottom: 3.75rem; }
}

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