/* Integrity Auto Service — the stamped shop plate.
   Tokens first; then base, chrome, hero, sections, motion. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --navy: #12212e;
  --steel: #1e3648;
  --amber: #f2a20c;
  --red: #c63a22;
  --limestone: #ede9e1;
  --paper: #f7f5f1;
  --ink: #0c141c;

  --display: "Archivo", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius-plate: 14px;
  --shadow-plate: 0 18px 40px -18px rgba(12, 20, 28, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--amber);
}
a:hover {
  text-decoration-color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  font-weight: 800;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 750;
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.wrap {
  width: min(1180px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--navy);
  padding: 0.6em 1em;
  font-weight: 700;
  z-index: 20;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---- hazard stripe divider ---------------------------------------- */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 14px,
    var(--navy) 14px 28px
  );
}
.hazard--thin {
  height: 6px;
}

/* ---- header ------------------------------------------------------- */
.site-head {
  background: var(--navy);
  color: var(--paper);
}
.site-head__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 1.02rem;
  line-height: 1.1;
  max-width: 12.5rem;
}
.brand svg {
  flex: none;
}
.brand:hover {
  color: var(--amber);
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}
.site-nav a:not(.btn) {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.35em 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) {
  border-bottom-color: var(--amber);
  color: var(--amber);
}

/* ---- buttons: flat slab with a punched corner --------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--display);
  font-weight: 750;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.85em 1.35em;
  border: 3px solid var(--navy);
  background: var(--amber);
  color: var(--navy);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.18s var(--ease-out), background 0.18s,
    box-shadow 0.18s;
  min-height: 48px;
}
.btn:hover {
  transform: translateY(-2px);
  background: #ffb72e;
  box-shadow: 0 10px 22px -12px rgba(242, 162, 12, 0.8);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--amber);
}
.btn--ghost:hover {
  background: rgba(242, 162, 12, 0.14);
  color: var(--amber);
}
.btn--onlight {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.btn--onlight:hover {
  background: var(--steel);
  color: var(--amber);
}
.btn__phone {
  font-variant-numeric: tabular-nums;
}

/* ---- hero: the stamped plate -------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
  }
}
.hero__plate {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 3px solid var(--amber);
  border-radius: var(--radius-plate);
  background: linear-gradient(160deg, var(--steel), var(--navy) 70%);
  box-shadow: var(--shadow-plate);
}
/* rivet ring */
.hero__plate::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  border: 1px dashed rgba(242, 162, 12, 0.45);
  pointer-events: none;
}
.hero__tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.hero__tag::before {
  content: "";
  width: 26px;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 5px,
    transparent 5px 10px
  );
}
.hero h1 {
  color: var(--paper);
  overflow-wrap: break-word;
  font-size: clamp(2.15rem, 8vw, 5.5rem);
}
.hero h1 .accent {
  color: var(--amber);
  display: block;
}
.hero__lede {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  color: rgba(247, 245, 241, 0.92);
  max-width: 42ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}
.hero__cta .btn {
  flex: 1 1 15rem;
  justify-content: center;
}
@media (min-width: 480px) {
  .hero__cta .btn {
    flex: 0 1 auto;
  }
}
.hero__art {
  justify-self: center;
  width: min(340px, 78vw);
}
@media (min-width: 900px) {
  .hero__art {
    width: min(420px, 100%);
    margin-bottom: -6rem;
    position: relative;
    z-index: 3;
  }
}

/* the ignition sweep */
.sweep {
  display: block;
  height: 5px;
  background: var(--amber);
  margin-top: 1.4rem;
  transform-origin: left center;
  animation: sweep 0.65s var(--ease-out) both;
}
@keyframes sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.shield-wrench {
  transform-origin: 50% 60%;
  animation: settle 0.65s var(--ease-out) 0.12s both;
}
@keyframes settle {
  from {
    transform: rotate(-8deg);
    opacity: 0;
  }
  to {
    transform: rotate(0deg);
    opacity: 1;
  }
}
.rise {
  animation: rise 0.5s var(--ease-out) both;
}
@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ---- sections ------------------------------------------------------ */
.band {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.band--paper {
  background: var(--paper);
}
.band--steel {
  background: var(--steel);
  color: var(--paper);
}
.band--steel h2 {
  color: var(--paper);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.section-head__no {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.03em;
}
.band--steel .section-head__no {
  color: var(--amber);
}

/* ---- work-order rows (services) ------------------------------------ */
.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem clamp(1rem, 3vw, 2rem);
  padding: clamp(1.35rem, 3vw, 1.9rem) 0;
  border-top: 3px solid var(--navy);
  align-items: start;
}
.band--steel .order {
  border-top-color: rgba(247, 245, 241, 0.28);
}
.order:last-child {
  border-bottom: 3px solid var(--navy);
}
.band--steel .order:last-child {
  border-bottom-color: rgba(247, 245, 241, 0.28);
}
.order__no {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.85;
  color: var(--red);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.band--steel .order__no {
  color: var(--amber);
}
.order__body h3 {
  margin-bottom: 0.3em;
}
.order__body p {
  margin-bottom: 0.9em;
}
.order .btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.45em;
}
@media (min-width: 720px) {
  .order {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .order .btn {
    grid-column: 3;
    justify-self: end;
  }
}

/* ---- hours ticket --------------------------------------------------- */
.ticket {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--navy);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  box-shadow: var(--shadow-plate);
}
/* perforated top edge */
.ticket::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 12px;
  right: 12px;
  height: 10px;
  background-image: radial-gradient(circle at 7px 7px, var(--limestone) 5px, transparent 5.5px);
  background-size: 18px 14px;
  background-repeat: repeat-x;
}
.ticket__label {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: var(--red);
  margin: 0 0 0.75rem;
}
.hours-line {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}
.hours-line a {
  color: var(--navy);
  text-decoration-color: var(--amber);
  white-space: nowrap;
}

/* ---- address plate -------------------------------------------------- */
.address {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) {
  .address {
    grid-template-columns: 1.2fr 1fr;
  }
}
.address__number {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.band--steel .address__number {
  color: var(--amber);
}
.address__street {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0.35rem 0 0.25rem;
}
.address__city {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.address__plate {
  border: 3px dashed var(--amber);
  border-radius: var(--radius-plate);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  background: rgba(12, 20, 28, 0.22);
}
.band--paper .address__plate,
.band--limestone .address__plate {
  background: var(--paper);
  border-color: var(--navy);
}

/* ---- why call first -------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}
.pull {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  border-left: 6px solid var(--amber);
  padding-left: 1.15rem;
  margin: 0;
}
.pull strong {
  color: var(--red);
  font-weight: 800;
}
.band--steel .pull strong {
  color: var(--amber);
}

/* ---- footer ----------------------------------------------------------- */
.site-foot {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 3rem) 0 1.5rem;
}
.site-foot a {
  color: var(--amber);
}
.foot-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot-grid h2 {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-list li {
  margin-bottom: 0.55rem;
}
.preview-line {
  margin-top: 2rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid rgba(242, 162, 12, 0.55);
  border-radius: 8px;
  font-size: 0.98rem;
  color: var(--paper);
  background: rgba(242, 162, 12, 0.1);
}
.colophon {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.7);
}

/* ---- inner page hero -------------------------------------------------- */
.page-hero {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(2.25rem, 6vw, 3.75rem) 0;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  color: var(--paper);
  font-size: clamp(2.15rem, 7vw, 4.4rem);
}
.page-hero .hero__tag {
  margin-bottom: 0.9rem;
}
.page-hero__lede {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  color: rgba(247, 245, 241, 0.92);
  max-width: 46ch;
}
.page-hero__art {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 220px;
  opacity: 0.28;
  pointer-events: none;
}
@media (min-width: 900px) {
  .page-hero__art {
    width: 320px;
    right: 4vw;
    bottom: -70px;
    opacity: 1;
  }
}

/* ---- contact number as the design ------------------------------------- */
.phone-slab {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.65rem, 5vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  border-bottom: 6px solid var(--amber);
  padding-bottom: 0.12em;
}
.band--steel .phone-slab,
.page-hero .phone-slab {
  color: var(--amber);
  border-bottom-color: var(--paper);
}
.phone-slab:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.band--steel .phone-slab:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---- misc -------------------------------------------------------------- */
.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.5;
}
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sweep,
  .shield-wrench,
  .rise,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover {
    transform: none;
  }
}

/* ---- drawn textures (no photographs, no stock) ------------------------ */
.texture-dots {
  background-image: radial-gradient(rgba(12, 20, 28, 0.12) 1.4px, transparent 1.5px);
  background-size: 14px 14px;
}
.band--steel.texture-dots {
  background-image: radial-gradient(rgba(247, 245, 241, 0.12) 1.4px, transparent 1.5px);
}
.road-rule {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 26px,
    transparent 26px 46px
  );
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 0.85rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--amber);
  clip-path: polygon(14% 46%, 0 60%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
}
.stack-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.end-note {
  border-left: 6px solid var(--red);
  padding: 0.25rem 0 0.25rem 1.15rem;
  margin: 0;
}
