/* ===========================================================
   Kirkstall Autocentre — light "job card" theme
   Third build. Deliberately unlike the Maple Tire (dark
   industrial) and CadServAuto (dark technical) sites:
   paper background, hard 2px rules, offset shadows.
   No framework, no external requests.
   =========================================================== */

:root {
  --paper: #f7f5f0;
  --paper-2: #efece4;
  --ink: #14140f;
  --ink-2: #55524a;
  --ink-3: #85817a;
  --rule: #14140f;
  --hair: #d6d2c8;
  --green: #0a5c36;
  --green-2: #084026;
  --signal: #e8590c;
  --white: #fff;
  --red: #b3261e;

  --ff: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-num: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;

  --shell: 1160px;
  --pad: 1.25rem;
  --pop: 4px 4px 0 var(--ink);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  padding-bottom: 60px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 { margin: 0 0 .55rem; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.08rem, 2vw, 1.3rem); }

p { margin: 0 0 1.05rem; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2rem; margin: 0 0 1.05rem; }
li { margin-bottom: .4rem; }
hr { border: 0; border-top: 2px solid var(--rule); margin: 2.4rem 0; }
small { font-size: .85rem; color: var(--ink-3); }
strong { font-weight: 700; }

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

.jump {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .8rem 1.2rem; font-weight: 700;
}
.jump:focus { left: .5rem; top: .5rem; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.shell--tight { max-width: 780px; }

.slab { padding-block: clamp(2.5rem, 5.5vw, 4.25rem); }
.slab--thin { padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.slab--ink { background: var(--ink); color: var(--paper); }
.slab--ink h1, .slab--ink h2, .slab--ink h3 { color: var(--white); }
.slab--ink a { color: #7fdcb0; }
.slab--tone { background: var(--paper-2); }
.slab--green { background: var(--green); color: var(--white); }
.slab--green h2 { color: var(--white); }
.slab--green a { color: #d9f2e5; }

.kicker {
  display: inline-block; font-family: var(--ff-num); font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em; font-size: .9rem;
  background: var(--ink); color: var(--paper); padding: .2rem .6rem; margin-bottom: .9rem;
}
.slab--ink .kicker { background: var(--signal); color: var(--ink); }
.slab--green .kicker { background: var(--white); color: var(--green); }

.stand { font-size: 1.14rem; color: var(--ink-2); max-width: 64ch; }
.slab--ink .stand { color: #c8c4b8; }
.slab--green .stand { color: #d9f2e5; }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .7rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 1rem;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  text-decoration: none; cursor: pointer; box-shadow: var(--pop);
  transition: transform .1s, box-shadow .1s;
}
.cta:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }
.cta--go { background: var(--signal); }
.cta--dark { background: var(--ink); color: var(--white); }
.cta--dark:hover { color: var(--white); }
.slab--ink .cta { border-color: var(--paper); box-shadow: 4px 4px 0 var(--signal); }
.slab--green .cta { box-shadow: 4px 4px 0 var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }

/* ---------- top strip ---------- */
.strip { background: var(--ink); color: var(--paper); font-size: .86rem; }
.strip .shell { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; padding-block: .5rem; }
.strip a { color: var(--white); text-decoration: none; font-weight: 700; }
.strip a:hover { color: var(--signal); }
.strip .fill { margin-left: auto; }
.now { font-weight: 700; }
.now.yes { color: #6ede9f; }
.now.no { color: #ff9c8a; }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 90; background: var(--paper); border-bottom: 2px solid var(--rule); }
.head .shell { display: flex; align-items: center; gap: 1rem; min-height: 74px; }

.mark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.mark svg { width: 40px; height: 40px; flex: none; }
.mark b { display: block; font-size: 1.16rem; line-height: 1.1; letter-spacing: -.02em; }
.mark span { display: block; font-family: var(--ff-num); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-3); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; position: relative; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .7rem; font: inherit; font-weight: 700; font-size: .97rem;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { border-bottom-color: var(--signal); color: var(--ink); }
.nav svg.ar { width: 9px; height: 9px; }

.sub {
  position: absolute; top: 100%; left: 0; display: none; min-width: 300px; z-index: 5;
  background: var(--white); border: 2px solid var(--ink); box-shadow: var(--pop); padding: .4rem;
}
.nav li.on .sub { display: block; }
.sub a { display: block; width: 100%; padding: .55rem .7rem; border-bottom: 0; font-weight: 700; }
.sub a:hover { background: var(--paper-2); }
.sub a em { display: block; font-style: normal; font-weight: 400; font-size: .84rem; color: var(--ink-3); }

.head-cta { display: none; }
.burg { margin-left: auto; width: 46px; height: 46px; border: 2px solid var(--ink); background: var(--white); display: grid; gap: 5px; place-content: center; cursor: pointer; box-shadow: var(--pop); }
.burg i { display: block; width: 20px; height: 2.5px; background: var(--ink); }

@media (max-width: 1023px) {
  .nav { position: fixed; inset: 74px 0 0; background: var(--paper); overflow-y: auto; padding: 1rem var(--pad) 5rem; display: none; }
  .nav.on { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a, .nav button { width: 100%; justify-content: space-between; padding: .9rem .2rem; border-bottom: 1px solid var(--hair); }
  .sub { position: static; display: none; border: 0; box-shadow: none; background: transparent; padding: .2rem 0 .8rem .8rem; min-width: 0; }
}
@media (min-width: 1024px) { .burg { display: none; } .head-cta { display: flex; gap: .6rem; } }

/* ---------- hero ---------- */
.hero { border-bottom: 2px solid var(--rule); }
.hero__in { display: grid; gap: 2rem; padding-block: clamp(2.25rem, 5vw, 3.75rem); }
@media (min-width: 920px) { .hero__in { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } }
.hero h1 mark { background: var(--signal); color: var(--ink); padding: 0 .15em; }
.hero figure { margin: 0; border: 2px solid var(--ink); box-shadow: var(--pop); background: var(--paper-2); }
.hero figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; list-style: none; padding: 0; }
.badges li { margin: 0; border: 2px solid var(--ink); background: var(--white); padding: .45rem .8rem; font-weight: 700; font-size: .9rem; }
.badges li b { font-family: var(--ff-num); color: var(--green); }

/* ---------- price banner ---------- */
.deal { background: var(--signal); border-block: 2px solid var(--rule); }
.deal .shell { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; padding-block: 1rem; }
.deal p { margin: 0; flex: 1 1 26ch; font-weight: 700; }
.deal .cta { background: var(--ink); color: var(--white); }

/* ---------- crumbs ---------- */
.trail { border-bottom: 1px solid var(--hair); font-size: .86rem; }
.trail ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: .7rem 0; }
.trail li { margin: 0; color: var(--ink-3); }
.trail li + li::before { content: "›"; margin-right: .4rem; }
.trail a { color: var(--ink-2); }

/* ---------- layout ---------- */
.row { display: grid; gap: 1.5rem; }
.row--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.row--3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.row--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.duo { display: grid; gap: 2rem; }
@media (min-width: 920px) { .duo { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.duo--wide { grid-template-columns: 1fr; }
@media (min-width: 980px) { .duo--wide { grid-template-columns: 1.55fr 1fr; gap: 3rem; align-items: start; } }

/* ---------- tiles ---------- */
.tile {
  background: var(--white); border: 2px solid var(--ink); box-shadow: var(--pop);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .4rem;
}
.tile--go { text-decoration: none; color: inherit; transition: transform .1s, box-shadow .1s; }
.tile--go:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); color: inherit; }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.tile .from { margin-top: auto; padding-top: .9rem; font-family: var(--ff-num); font-weight: 700; font-size: 1.25rem; color: var(--green); }
.tile .idx { font-family: var(--ff-num); font-weight: 700; font-size: .82rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.slab--ink .tile { background: #1f1f18; border-color: var(--paper); box-shadow: 4px 4px 0 var(--signal); }
.slab--ink .tile p { color: #c8c4b8; }
.slab--ink .tile .from { color: #7fdcb0; }

/* ---------- point lists ---------- */
.pts { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.pts li { display: grid; grid-template-columns: 22px 1fr; gap: .65rem; align-items: start; margin: 0; }
.pts li::before { content: "✓"; font-weight: 700; color: var(--green); line-height: 1.5; }
.pts--no li::before { content: "✕"; color: var(--red); }
.pts--num { counter-reset: p; }
.pts--num li::before { counter-increment: p; content: counter(p); font-family: var(--ff-num); color: var(--ink); background: var(--signal); text-align: center; }
.slab--ink .pts li::before { color: #7fdcb0; }

/* ---------- tables ---------- */
.tbl { overflow-x: auto; border: 2px solid var(--ink); background: var(--white); box-shadow: var(--pop); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
caption { text-align: left; font-family: var(--ff-num); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .88rem; padding-bottom: .6rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--hair); }
thead th { background: var(--ink); color: var(--paper); font-family: var(--ff-num); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; border-bottom: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfaf7; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
.qty { font-family: var(--ff-num); font-weight: 700; font-size: 1.1rem; color: var(--green); }

/* ---------- accordion ---------- */
.ask details { border: 2px solid var(--ink); background: var(--white); margin-bottom: .7rem; box-shadow: var(--pop); }
.ask summary { cursor: pointer; list-style: none; padding: .95rem 3rem .95rem 1.1rem; position: relative; font-weight: 700; }
.ask summary::-webkit-details-marker { display: none; }
.ask summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-family: var(--ff-num); font-size: 1.6rem; line-height: 1; color: var(--signal);
}
.ask details[open] summary::after { content: "–"; }
.ask details > div { padding: 0 1.1rem 1rem; max-width: 80ch; color: var(--ink-2); }

/* ---------- notes ---------- */
.flag { border: 2px solid var(--ink); background: var(--white); padding: 1rem 1.15rem; box-shadow: var(--pop); font-size: .96rem; }
.flag--law { background: #f2f6f3; }
.flag--warn { background: #fdf3e8; }
.flag p:last-child { margin-bottom: 0; }

/* ---------- gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.shots figure { margin: 0; border: 2px solid var(--ink); box-shadow: var(--pop); background: var(--white); }
.shots img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shots figcaption { padding: .55rem .8rem; font-family: var(--ff-num); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; border-top: 2px solid var(--ink); }

/* ---------- forms ---------- */
.frm { display: grid; gap: .95rem; }
.fr { display: grid; gap: .3rem; }
.fr label { font-weight: 700; font-size: .93rem; }
.fr .req { color: var(--red); }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: .7rem .8rem; min-height: 50px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink); width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; }
.fr--tick { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.fr--tick input { width: 22px; height: 22px; min-height: 22px; margin-top: .3rem; accent-color: var(--green); }
.fr--tick label { font-weight: 400; font-size: .88rem; color: var(--ink-2); }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: .84rem; color: var(--ink-3); margin: 0; }
.panel { background: var(--white); border: 2px solid var(--ink); box-shadow: var(--pop); padding: 1.5rem; }

/* ---------- reg plate lookup ---------- */
.plate {
  display: flex; align-items: stretch; border: 2px solid var(--ink); background: #ffd600;
  box-shadow: var(--pop); max-width: 420px; overflow: hidden;
}
.plate__gb {
  background: #0a3d91; color: #ffd600; width: 42px; flex: none;
  display: grid; place-content: center; font-family: var(--ff-num); font-weight: 700; font-size: .9rem;
  border-right: 2px solid var(--ink);
}
.plate input {
  border: 0; background: transparent; min-height: 58px; font-family: var(--ff-num);
  font-size: 1.6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.plate input:focus { outline: 0; }
.plate input::placeholder { color: rgb(20 20 15 / .35); }

/* ---------- map ---------- */
.mapwrap { border: 2px solid var(--ink); background: var(--white); box-shadow: var(--pop); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 2rem; }
.mapwrap iframe { width: 100%; min-height: 320px; border: 0; }

/* ---------- article ---------- */
.copy { max-width: 72ch; }
.copy h2 { margin-top: 2.1rem; }
.copy h3 { margin-top: 1.5rem; }
.meta { font-family: var(--ff-num); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--ink-3); margin-bottom: 1.5rem; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c8c4b8; padding-block: 3rem 1.4rem; font-size: .94rem; border-top: 2px solid var(--rule); }
.foot h2, .foot h3 { color: var(--white); font-size: 1rem; margin-bottom: .75rem; }
.foot a { color: #c8c4b8; text-decoration: none; }
.foot a:hover { color: var(--signal); }
.foot .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .35rem; }
.foot .end { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid #35342c; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .82rem; color: var(--ink-3); }
.foot .end .fill { margin-left: auto; }

/* ---------- mobile bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); border-top: 3px solid var(--signal);
}
.bar a { display: grid; place-items: center; min-height: 56px; color: var(--white); text-decoration: none; font-weight: 700; font-size: .92rem; border-right: 1px solid #35342c; }
.bar a:last-child { border-right: 0; }
@media (min-width: 900px) { .bar { display: none; } }

/* ---------- consent ---------- */
.cook {
  position: fixed; z-index: 120; left: 1rem; right: 1rem; bottom: 72px; max-width: 560px;
  background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 1.25rem; display: none;
}
.cook.show { display: block; }
.cook p { font-size: .92rem; }
.cook .cta { min-height: 44px; padding: .5rem 1rem; font-size: .93rem; box-shadow: 3px 3px 0 var(--ink); }
@media (min-width: 900px) { .cook { bottom: 1.25rem; left: 1.25rem; right: auto; } }

@media print {
  .strip, .head, .bar, .cook, .foot, .cta { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12pt; }
  .tile, .tbl, .flag { box-shadow: none; }
}
