/* GFX Solutions PPF — main.css
   Utility-first. This is a parts catalogue, not a brand site.
   System fonts only: users are on workshop wifi.
   Palette matches the live gfxppf.com brand (blue accent, dark grey
   copyright band). Header is white rather than blue — suits the new logo. */

:root {
  --accent: #0878be;
  --accent-dark: #065a94;

  --header-bg: #ffffff;
  --footer-bg: #0878be;
  --footer-ink: #ffffff;
  --copyright-bg: #373b3d;
  --copyright-ink: #d0d0d0;

  --ink: #16181c;
  --ink-muted: #5a6069;
  --rule: #d9dce1;
  --surface: #ffffff;
  --surface-sunk: #efeeee;

  --focus: #b8541c;

  --step: 0.5rem;
  --measure: 68ch;
  --tap: 3rem; /* minimum tap target — gloved hands */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

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

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

h1, h2, h3 { line-height: 1.2; text-wrap: balance; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 0 0 calc(var(--step) * 2); color: var(--accent); }
h2 { font-size: clamp(1.375rem, 3.5vw, 1.75rem); color: var(--accent); }
h3 { font-size: 1.125rem; color: var(--ink); letter-spacing: 0.01em; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

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

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

.skip-link {
  position: absolute;
  left: var(--step); top: calc(var(--step) * -8);
  padding: var(--step) calc(var(--step) * 2);
  background: var(--ink);
  color: #fff;
  z-index: 100;
  transition: top 0.15s;
}
.skip-link:focus { top: var(--step); }

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

.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--rule);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--step);
  max-width: 78rem;
  margin: 0 auto;
  padding: var(--step) calc(var(--step) * 2);
}

.header__logo { margin-right: auto; display: flex; }
.header__logo img { display: block; height: 2.5rem; width: auto; }

.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
  margin-inline: auto;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav { display: none; width: 100%; }
.nav[data-open] {
  display: block;
  background: var(--copyright-bg);
  margin: var(--step) calc(var(--step) * -2) calc(var(--step) * -1);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav__list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 calc(var(--step) * 2);
  border-top: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9375rem;
}
.nav[data-open] .nav__list a {
  color: #fff;
  border-top-color: rgba(255, 255, 255, 0.15);
}
.nav__list a[aria-current="page"] { color: var(--accent); }
.nav[data-open] .nav__list a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }

@media (min-width: 48rem) {
  .nav-toggle { display: none; }
  .nav { display: block; width: auto; }
  .nav[data-open] { background: none; margin: 0; }
  .nav__list { flex-direction: row; gap: calc(var(--step) * 2); }
  .nav__list a {
    border-top: 0;
    padding: 0;
    color: var(--ink);
  }
  .nav[data-open] .nav__list a { color: var(--ink); background: none; }
  .nav__list a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--accent);
  }
  .nav[data-open] .nav__list a[aria-current="page"] { color: var(--accent); }
}

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

.hero { background: var(--surface-sunk); }
.hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- guides */

.guides {
  max-width: 78rem;
  margin: 0 auto;
  padding: calc(var(--step) * 4) calc(var(--step) * 2);
}

.guides__intro {
  max-width: var(--measure);
  color: var(--ink-muted);
  margin-top: 0;
}

.jump {
  margin: calc(var(--step) * 3) 0;
  padding: calc(var(--step) * 2);
  background: var(--surface-sunk);
  border-radius: 6px;
}
.jump__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--step);
}
.jump__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 calc(var(--step) * 1.5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.vehicle {
  padding-top: calc(var(--step) * 4);
  scroll-margin-top: var(--step);
}

.vehicle__name {
  margin: calc(var(--step) * 2) 0 calc(var(--step) * 1.5);
}

.kit { margin-bottom: calc(var(--step) * 4); }

.kit__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--step);
  margin: 0 0 calc(var(--step) * 1.5);
}

/* The part number is what technicians actually search for, so it reads as
   data rather than as a subtitle. */
.kit__part {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-muted);
  padding: 0.15rem 0.4rem;
  background: var(--surface-sunk);
  border-radius: 3px;
}

.downloads {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--step);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.download {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap);
  padding: calc(var(--step) * 1.25) calc(var(--step) * 1.5);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  color: var(--accent);
  background: var(--surface);
}

.download:hover { background: var(--surface-sunk); border-color: var(--accent); }

.download--pending {
  color: var(--ink-muted);
  background: var(--surface-sunk);
}

.download__lang { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 0.9375rem; }

.download__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5ch;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.download__part { font-family: var(--font-mono); }
.download__format::before { content: "· "; }

/* ----------------------------------------------------------- dealer note */

.dealer-note {
  background: var(--surface-sunk);
}
.dealer-note__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: calc(var(--step) * 4) calc(var(--step) * 2);
}
.dealer-note h2 { margin-top: 0; }
.dealer-note p { max-width: var(--measure); }

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

.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-size: 0.9375rem;
}

.footer__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: calc(var(--step) * 4) calc(var(--step) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--step) * 3);
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--step);
}

.footer__logo img { height: 2.125rem; width: auto; }
.footer__title { font-weight: 700; margin: 0 0 var(--step); }
.footer address { font-style: normal; color: var(--footer-ink); }
.footer__inner a { color: var(--footer-ink); }

.footer__nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(var(--step) * 1.25);
}
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer__former {
  display: block;
  margin-top: 0.25rem;
}

@media (min-width: 48rem) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* -------------------------------------------------------------- copyright */

.copyright {
  background: var(--copyright-bg);
  color: var(--copyright-ink);
  font-size: 0.875rem;
}

.copyright__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: calc(var(--step) * 2.5) calc(var(--step) * 2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--step) calc(var(--step) * 2);
}

.copyright__nav {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--step) calc(var(--step) * 2);
}
.copyright__nav a {
  color: var(--copyright-ink);
  text-decoration: none;
}
.copyright__nav a:hover { color: #fff; }

/* ----------------------------------------------------------------- print */

@media print {
  .header, .hero, .footer, .copyright, .nav-toggle, .skip-link, .jump { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .download { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------------- prose */

.prose {
  max-width: 78rem;
  margin: 0 auto;
  padding: calc(var(--step) * 4) calc(var(--step) * 2);
}

.prose > p,
.prose > h2,
.prose > h3,
.prose > ul,
.prose > .notice { max-width: var(--measure); }

.prose h2 { margin-top: calc(var(--step) * 5); }
.prose h3 { margin-top: calc(var(--step) * 3); }

.lead { font-size: 1.125rem; color: var(--ink-muted); }

.notice {
  padding: calc(var(--step) * 2);
  background: var(--surface-sunk);
  border-left: 4px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.inline-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--step);
}
.inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 calc(var(--step) * 1.5);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

/* --------------------------------------------------------------- contact */

.contact-grid {
  display: grid;
  gap: calc(var(--step) * 2);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: calc(var(--step) * 3) 0;
}

.contact-card {
  padding: calc(var(--step) * 2);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
}
.contact-card h2 {
  margin: 0 0 var(--step);
  font-size: 1rem;
  border: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.contact-card p { margin: 0 0 var(--step); }
.contact-card address { font-style: normal; }

.contact-card__action {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 1.0625rem;
  word-break: break-word;
}

.contact-card__hint {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------- sitemap */

.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--step);
  border-bottom: 1px solid var(--rule);
}
.sitemap-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  flex: 1;
}
.sitemap-list__count { font-size: 0.875rem; color: var(--ink-muted); }
