/* Car Key Hero — site styles */
:root {
  --ink: #15171a;
  --ink-2: #262a31;
  --paper: #f2f3f5;
  --white: #ffffff;
  --red: #d4251c;
  --red-dark: #a81b14;
  --steel: #58606c;
  --rule: #d9dce1;
  --brass: #8a6410;
  --focus: #0b57d0;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.7rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.45rem; line-height: 1.15; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.measure { max-width: 40em; }
.muted { color: var(--steel); }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 50px; padding: 0.7rem 1.4rem;
  border: 2px solid transparent; border-radius: 4px;
  font: 700 1.0625rem/1.2 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--red-dark); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-line-white { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-line-white:hover { background: #fff; color: var(--red-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar and header */
.topbar { background: var(--ink); color: #d5d9df; font-size: 0.92rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { min-height: 44px; padding: 0.4rem 1rem; }
.nav-toggle { display: none; min-width: 44px; min-height: 44px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; }

/* Hero */
.hero { background: #fff; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 52px 0 60px; align-items: start; }
.hero h1 { margin-bottom: 0.35em; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.hero-photo figcaption { font-size: 0.9rem; color: var(--steel); margin-top: 8px; }

/* The finder is the one bold element on the page */
.finder {
  margin: 28px 0 22px; padding: 20px 22px 22px;
  border: 2px solid var(--ink); border-left-width: 8px; border-left-color: var(--red);
  border-radius: 4px; background: var(--paper);
}
.finder h2 { font-size: 1.7rem; margin-bottom: 0.15em; }
.finder p { margin-bottom: 14px; color: var(--steel); font-size: 0.98rem; }
.finder-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
select, input[type="text"], input[type="number"], input[type="tel"], textarea {
  width: 100%; min-height: 50px; padding: 0.55rem 0.8rem;
  font: 500 1rem var(--body); color: var(--ink);
  background: #fff; border: 2px solid var(--ink); border-radius: 4px;
}
select:disabled { background: #e9ebee; color: var(--steel); border-color: #aeb3bb; }
textarea { min-height: 90px; resize: vertical; }
label { font-weight: 600; display: block; margin-bottom: 4px; }

/* Facts strip */
.facts { background: var(--ink); color: #fff; }
.facts ul { list-style: none; margin: 0; padding: 16px 0; display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts svg { width: 18px; height: 18px; color: #ff6a5e; flex: none; }

/* Sections */
.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .muted, .section-ink .lede { color: #c5cad1; }
.section-head { margin-bottom: 34px; }
.section-head p { max-width: 38em; margin-bottom: 0; color: var(--ink-2); }

/* Services as an index, not a card grid */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.svc { display: block; padding: 22px 0 24px; border-top: 2px solid var(--ink); text-decoration: none; color: inherit; }
.svc h3 { margin-bottom: 0.25em; }
.svc p { margin: 0; color: var(--ink-2); }
.svc:hover h3 { color: var(--red-dark); text-decoration: underline; text-underline-offset: 5px; }

/* Photo strip */
.strip-wrap { background: var(--ink); color: #fff; padding: 64px 0 56px; }
.strip-wrap .section-head p { color: #c5cad1; }
.strip {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(20px, calc((100vw - 1180px) / 2)) 16px;
  scrollbar-width: thin; scrollbar-color: #666 transparent;
}
.strip figure { flex: 0 0 min(290px, 76vw); margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: #222; }
.strip figcaption { font-size: 0.92rem; margin-top: 8px; color: #d5d9df; }

/* Brand directory */
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 36px; }
.dir-brand { border-top: 2px solid var(--ink); padding-top: 12px; }
.dir-brand h3 { margin-bottom: 0.3em; font-size: 1.65rem; }
.dir-brand h3 a { color: var(--ink); text-decoration: none; }
.dir-brand h3 a:hover { color: var(--red-dark); text-decoration: underline; }
.dir-models { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 0.98rem; }
.dir-models a { text-decoration: none; color: var(--ink-2); }
.dir-models a:hover { color: var(--red-dark); text-decoration: underline; }
.dir-models .all a { font-weight: 700; color: var(--red-dark); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font: 700 3.4rem/1 var(--display); color: var(--red); margin-bottom: 6px; }
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin: 0; color: var(--ink-2); }

/* Two column prose */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.defs { margin: 0; }
.defs div { padding: 16px 0; border-top: 1px solid var(--rule); }
.defs dt { font: 700 1.3rem/1.2 var(--display); margin-bottom: 4px; }
.defs dd { margin: 0; color: var(--ink-2); }
.checks { list-style: none; margin: 0 0 1em; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 32px; border-top: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.review { margin: 0; padding: 22px 0 26px; border-top: 2px solid var(--ink); }
.stars { color: var(--brass); letter-spacing: 0.1em; font-size: 1.1rem; margin-bottom: 8px; }
.review blockquote { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.6; }
.review blockquote p { margin: 0; }
.review figcaption { font-weight: 700; }
.review figcaption span { font-weight: 500; color: var(--steel); }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.rating-line .stars { margin: 0; font-size: 1.4rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font: 700 1.3rem/1.25 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 600 1.8rem/1 var(--body); color: var(--red); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 18px; max-width: 44em; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Areas */
.areas { list-style: none; margin: 0; padding: 0; columns: 4 170px; column-gap: 28px; }
.areas li { padding: 5px 0; break-inside: avoid; border-bottom: 1px solid var(--rule); }

/* CTA band */
.cta { background: var(--red); color: #fff; padding: 64px 0; text-align: center; }
.cta h2 { color: #fff; margin-bottom: 0.2em; }
.cta p { color: #fff; opacity: 0.94; max-width: 32em; margin-inline: auto; }
.cta .phone { display: block; font: 800 clamp(2.8rem, 8vw, 5rem)/1 var(--display); color: #fff; text-decoration: none; margin: 10px 0 24px; letter-spacing: 0.01em; }
.cta .phone:hover { text-decoration: underline; color: #fff; }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: #c5cad1; padding: 56px 0 28px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: 0.7em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #d5d9df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 84px; height: 84px; margin-bottom: 12px; background: #fff; border-radius: 50%; }
.footer-phone { font: 700 1.7rem/1 var(--display); color: #fff !important; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid #3a3f47; font-size: 0.88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Mobile call bar */
.callbar { display: none; }

/* Breadcrumb */
.crumbs { font-size: 0.92rem; color: var(--steel); padding: 18px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #9aa1ab; }
.crumbs a { color: var(--steel); }

/* Page head (inner pages) */
.page-head { padding: 22px 0 40px; background: #fff; border-bottom: 1px solid var(--rule); }
.page-head h1 { margin-top: 18px; max-width: 16em; }

/* Key tag: the shape of a key-cutting job tag */
.keytag {
  position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  background: var(--ink); color: #fff; padding: 16px 28px 16px 64px;
  border-radius: 6px 30px 30px 6px; margin-top: 18px;
}
.keytag::before {
  content: ""; position: absolute; left: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--red);
}
.keytag-name { font: 700 1.9rem/1 var(--display); }
.keytag-name small { display: block; font: 500 0.82rem/1.2 var(--body); color: #c5cad1; margin-bottom: 4px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 1px 11px; border: 1.5px solid currentColor; border-radius: 99px; font-size: 0.88rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.chip-smart { background: var(--red); border-color: var(--red); color: #fff; }
.keytag .chip { color: #fff; }
.keytag .chip-smart { background: var(--red); border-color: var(--red); }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 700 1.05rem var(--display); background: #f7f8f9; }
tr:last-child td { border-bottom: 0; }
td.yrs { white-space: nowrap; font-weight: 600; }
tr.is-match { background: #fff1ef; box-shadow: inset 5px 0 0 var(--red); }
.year-check { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin: 0 0 18px; }
.year-check .field { width: 170px; }
.year-result { flex: 1 1 260px; margin: 0; padding: 10px 0; font-weight: 600; min-height: 1.6em; }

/* Prose pages */
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.notice { padding: 14px 18px; border-left: 6px solid var(--red); background: #fff; border-radius: 0 4px 4px 0; margin: 20px 0; }

/* Photo grid on car pages */
.photo-row { display: flex; flex-wrap: wrap; gap: 16px; }
.photo-row figure { margin: 0; flex: 0 1 240px; }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.photo-row figcaption { font-size: 0.9rem; color: var(--steel); margin-top: 6px; }

.link-cols { list-style: none; margin: 0; padding: 0; columns: 4 190px; column-gap: 28px; }
.link-cols li { padding: 4px 0; break-inside: avoid; }
.link-cols a { color: var(--ink); text-decoration: none; font-weight: 500; }
.link-cols a:hover { color: var(--red-dark); text-decoration: underline; }

.glossary { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.glossary div { padding: 16px 0; border-top: 1px solid var(--rule); }
.glossary dt { margin-bottom: 6px; }
.glossary dd { margin: 0; color: var(--ink-2); }

.contact-box { background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 24px; }
.field { margin-bottom: 14px; }
.field .hint { font-size: 0.9rem; color: var(--steel); margin-top: 4px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: center; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .svc-list, .reviews, .glossary { grid-template-columns: 1fr; gap: 0; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rule); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 16px; }
  .js .nav-links.open { display: flex; }
  .js .nav-links li { width: 100%; }
  .js .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .no-js .site-header .container { flex-wrap: wrap; }
  .no-js .nav-links { flex-wrap: wrap; gap: 4px 18px; }
  .header-cta .btn-red { display: none; }
}
@media (max-width: 760px) {
  body { padding-bottom: 58px; }
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -2px 14px rgba(0,0,0,0.3); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; font-weight: 700; font-size: 1.1rem; color: #fff; text-decoration: none; }
  .callbar .call { background: var(--red); }
  .callbar .text { background: var(--ink); }
  .callbar svg { width: 20px; height: 20px; }
  .finder-row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .topbar .hide-sm { display: none; }
  .topbar .container { justify-content: center; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .keytag { padding-right: 20px; border-radius: 6px 24px 24px 6px; }
  th, td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .topbar, .site-header, .callbar, .cta, .site-footer, .finder { display: none; }
}

/* Immobiliser level tags */
.level { display: inline-block; padding: 0 9px; border-radius: 3px; font: 700 0.8rem/1.6 var(--body); letter-spacing: 0.02em; vertical-align: middle; }
.level-1 { background: #e3efe6; color: #1d5a2f; }
.level-2 { background: #fdf0d0; color: #6d4b00; }
.level-3 { background: #f8dcd9; color: #8c1a12; }
.immo-cell { min-width: 14em; font-size: 0.95rem; }
.immo-cell div + div { margin-top: 6px; }


.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.jobs-grid figure { margin: 0; }
.jobs-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: #dfe2e6; }
.jobs-grid figcaption { font-size: 0.9rem; color: var(--steel); margin-top: 6px; }
@media (max-width: 560px) { .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.keyguide { margin: 14px 0 0; padding: 12px 16px; background: #fff; border-left: 6px solid var(--red); border-radius: 0 4px 4px 0; font-size: 0.97rem; color: var(--ink-2); max-width: 52em; }

.job-card { margin: 0; }
.job-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: #dfe2e6; }
.job-card h2 { font-size: 1.25rem; margin: 10px 0 4px; }
.job-card h2 a { color: var(--ink); text-decoration: none; }
.job-card h2 a:hover { color: var(--red-dark); text-decoration: underline; }
.job-card p { margin: 0; color: var(--steel); font-size: 0.95rem; }
.job-photo { margin: 0 0 24px; }
.job-photo img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 4px; }
.job-photo figcaption { font-size: 0.92rem; color: var(--steel); margin-top: 8px; }
.photo-row figcaption a { color: var(--steel); }
.strip figcaption a { color: #d5d9df; text-decoration: none; }
.strip figcaption a:hover { color: #fff; text-decoration: underline; }

.job-more { margin: 0 0 26px; }
.job-more figure { flex: 0 1 200px; }

.dir-count { margin: 0; font-size: 0.95rem; }
