/* Tokens: driveway concrete, coverall navy, form-ink blue, carbon-copy yellow and pink, serial red. */
:root {
  --concrete: #e8ecef;
  --ink: #13202e;
  --blue: #1e4e9c;
  --yellow: #f9e27d;
  --pink: #f3b9c2;
  --red: #c4342b;
  --white: #ffffff;
  --muted: #4a5868;
  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }
a:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1, h2 {
  margin: 0;
  font-stretch: 68%;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.25rem, 9.5vw, 7rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: -999px;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.notice {
  background: var(--yellow);
  padding: 0.6rem 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

/* Top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  font-weight: 800;
  font-stretch: 80%;
  font-size: 1.3rem;
  text-decoration: none;
}
.top-phone {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  text-align: center;
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); }
.btn-line:hover { background: var(--white); }
.btn-ink { background: var(--blue); border-color: var(--blue); color: var(--white); display: block; }
.btn-ink:hover { background: var(--ink); border-color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem);
}
.hero-copy { padding-top: clamp(0rem, 3vw, 2.5rem); }
.lede {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.4;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Work order ticket: the yellow customer copy, with the pink copy underneath */
.ticket-stack { position: relative; }
.ticket-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink);
  transform: rotate(2.2deg) translate(6px, 8px);
}
.ticket {
  position: relative;
  background: var(--yellow);
  color: var(--blue);
  padding: 1.5rem 1.5rem 1.25rem;
  transform: rotate(-1.1deg);
  box-shadow: 0 1px 0 rgba(19, 32, 46, 0.25);
  font-size: 1rem;
  scroll-margin-top: 1.5rem;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.6rem;
  border-bottom: 3px double var(--blue);
}
.ticket-head h2 { font-size: 2rem; }
.ticket-no {
  color: var(--red);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.ticket-help { margin-top: 0.6rem; font-size: 0.95rem; }

.ticket .line {
  display: block;
  margin-top: 0.9rem;
}
.ticket .line span,
.ticket legend,
.ticket-preview span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ticket input[type="text"] {
  width: 100%;
  padding: 0.3rem 0 0.25rem;
  border: 0;
  border-bottom: 1.5px solid var(--blue);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 500;
}
.ticket input[type="text"]::placeholder { color: rgba(30, 78, 156, 0.5); }
.ticket input[type="text"]:focus-visible { outline: 0; border-bottom-width: 3px; }

.checks {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}
.checks legend { padding: 0; margin-bottom: 0.4rem; }
.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 500;
  padding-block: 0.15rem;
}
.checks input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--blue);
  flex: none;
}

.ticket-preview {
  margin-top: 1.1rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--blue);
}
.ticket-preview p {
  margin-top: 0.25rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ticket .btn { margin-top: 1rem; }
.ticket-foot { margin-top: 0.6rem; font-size: 0.85rem; }

/* Services */
.services { padding-block: clamp(3rem, 6vw, 5rem); border-top: 2px solid var(--ink); }
.service-list {
  margin-top: 2rem;
  columns: 2;
  column-gap: 3rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  font-stretch: 88%;
}
.service-list li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(19, 32, 46, 0.25);
}
.aside { margin-top: 1.5rem; color: var(--muted); }
.aside a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* Toyota and Honda band */
.specialty {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.specialty h2 { font-size: clamp(2.4rem, 6.5vw, 5rem); max-width: 18ch; }
.specialty p {
  margin-top: 1.75rem;
  max-width: 56ch;
  font-size: 1.2rem;
  color: #d5dde6;
}

/* Steps: a real sequence, so it is numbered */
.steps { padding-block: clamp(3rem, 6vw, 5rem); }
.steps ol {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding-top: 0.9rem;
  border-top: 4px solid var(--blue);
  font-size: 1.2rem;
  max-width: 30ch;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 3.2rem;
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

/* Area and hours */
.where {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 2px solid var(--ink);
}
.towns {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.towns li {
  padding: 0.3rem 0.8rem;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
}
.hours { margin-top: 1.5rem; font-size: 1.2rem; }
.hours li { padding-block: 0.2rem; }

/* Footer */
.foot {
  background: var(--yellow);
  padding-block: clamp(3rem, 7vw, 5rem) 2.5rem;
}
.foot-ask { font-size: 1.3rem; font-weight: 600; }
.foot-phone {
  display: inline-block;
  font-size: clamp(2.8rem, 11vw, 7rem);
  font-weight: 800;
  font-stretch: 68%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  margin-block: 0.25rem 1rem;
}
.foot-phone:hover { color: var(--blue); }
.fine { margin-top: 2rem; font-size: 0.9rem; }

/* Phone dock: call and text always within thumb reach on small screens */
.dock { display: none; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .ticket, .ticket-stack::before { transform: none; }
  .ticket-stack::before { transform: translate(6px, 6px); }
  .service-list { columns: 1; }
  .where { grid-template-columns: 1fr; }
  .top-phone { display: none; }

  body { padding-bottom: 4rem; }
  .dock {
    position: fixed;
    inset: auto 0 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 5;
    border-top: 2px solid var(--ink);
  }
  .dock a {
    padding: 1rem;
    text-align: center;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    background: var(--ink);
    color: var(--white);
  }
  .dock a + a { background: var(--white); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
