:root {
  --bg: oklch(0.990 0.000 0);
  --ink: oklch(0.165 0.024 168);
  --muted: oklch(0.430 0.023 170);
  --soft: oklch(0.955 0.008 165);
  --line: oklch(0.865 0.010 168);
  --graphite: oklch(0.105 0.014 165);
  --graphite-2: oklch(0.170 0.018 165);
  --primary: oklch(0.500 0.125 158);
  --primary-bright: oklch(0.675 0.150 162);
  --accent: oklch(0.760 0.125 205);
  --warning: oklch(0.765 0.135 74);
  --white: oklch(1.000 0.000 0);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.brand,
button,
input,
select,
textarea {
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(4.1rem, 11vw, 6rem);
  font-weight: 800;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.7rem);
  font-weight: 800;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

p {
  color: var(--muted);
  text-wrap: pretty;
}

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

.hero {
  min-height: 82svh;
  color: var(--white);
  background-image:
    linear-gradient(90deg, oklch(0.095 0.014 165 / 0.94) 0%, oklch(0.095 0.014 165 / 0.78) 42%, oklch(0.095 0.014 165 / 0.20) 100%),
    url("assets/volttorque-ev-workshop.png");
  background-size: cover;
  background-position: center;
}

.site-nav {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.02rem;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--graphite);
  background: var(--primary-bright);
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: oklch(0.930 0.004 165);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding-block: 0.35rem;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: 8px;
  background: oklch(1 0 0 / 0.08);
  color: var(--white);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 0.24rem;
  background: currentColor;
}

.hero-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
}

.signal,
.section-label {
  margin-bottom: 0.8rem;
  color: var(--primary-bright);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 43rem;
  color: oklch(0.930 0.004 165);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease-out, background-color 160ms ease-out;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--primary);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: oklch(0.440 0.125 158);
}

.button-secondary {
  color: var(--white);
  border: 1px solid oklch(1 0 0 / 0.42);
  background: oklch(1 0 0 / 0.08);
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: 46rem;
}

.hero-strip span {
  padding: 0.5rem 0.72rem;
  border: 1px solid oklch(1 0 0 / 0.28);
  border-radius: 999px;
  color: oklch(0.940 0.004 165);
  background: oklch(0.105 0.014 165 / 0.58);
  font-size: 0.95rem;
  font-weight: 700;
}

main > section,
footer {
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.intro-band {
  padding-block: clamp(2.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.section-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(18rem, 1.05fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.section-grid p:last-child {
  max-width: 64ch;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}

.section-heading p:not(.section-label) {
  max-width: 47rem;
  font-size: 1.08rem;
}

.section-heading.compact h2 {
  max-width: 58rem;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
}

.fault-board {
  background: var(--graphite);
  color: var(--white);
}

.fault-board p {
  color: oklch(0.840 0.012 165);
}

.fault-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.fault-list-wrap,
.fault-detail {
  border: 1px solid oklch(1 0 0 / 0.18);
  border-radius: var(--radius);
  background: var(--graphite-2);
}

.fault-list-wrap {
  padding: 1rem;
}

.search-label {
  display: block;
  margin-bottom: 0.45rem;
  color: oklch(0.900 0.008 165);
  font-weight: 800;
}

.fault-search,
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.fault-search {
  margin-bottom: 0.9rem;
  border-color: oklch(1 0 0 / 0.25);
  color: var(--white);
  background: oklch(0.105 0.014 165);
}

.fault-search::placeholder {
  color: oklch(0.805 0.012 165);
}

.fault-list {
  display: grid;
  gap: 0.55rem;
}

.fault-empty {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: 8px;
  color: oklch(0.850 0.010 165);
  background: oklch(1 0 0 / 0.05);
}

.fault-button {
  width: 100%;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: 8px;
  color: oklch(0.930 0.004 165);
  background: oklch(1 0 0 / 0.05);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.fault-button span:first-child {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 8px;
  color: var(--graphite);
  background: var(--accent);
  font-size: 0.8rem;
}

.fault-button:hover,
.fault-button:focus-visible,
.fault-button[aria-selected="true"] {
  border-color: var(--primary-bright);
  background: oklch(0.245 0.052 160);
}

.fault-detail {
  min-height: 100%;
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-index,
.detail-system {
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-weight: 800;
}

.detail-index {
  color: var(--graphite);
  background: var(--primary-bright);
}

.detail-system {
  color: var(--white);
  border: 1px solid oklch(1 0 0 / 0.22);
}

.fault-detail h3 {
  max-width: 52rem;
  margin-bottom: 1.35rem;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.fault-detail dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.fault-detail dl div {
  padding-top: 1rem;
  border-top: 1px solid oklch(1 0 0 / 0.16);
}

.fault-detail dt {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
}

.fault-detail dd {
  margin: 0;
  color: oklch(0.910 0.006 165);
  font-size: 1.05rem;
}

.services {
  background: var(--bg);
}

.service-grid,
.parts-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.service-grid article,
.parts-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--white);
}

.service-grid p,
.parts-grid p {
  margin-bottom: 0;
}

.process {
  display: grid;
  width: min(var(--max), calc(100% - 2rem));
  grid-template-columns: minmax(18rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin: 0 auto;
  padding-inline: 0;
}

.process-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.process-number {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--primary);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
}

.process-list strong {
  display: block;
  color: var(--ink);
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.process-list span {
  color: var(--muted);
}

.parts {
  background: var(--soft);
}

.parts-grid article span {
  display: block;
  width: 2.5rem;
  height: 0.35rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--warning);
}

.contact {
  display: grid;
  width: min(var(--max), calc(100% - 2rem));
  grid-template-columns: minmax(18rem, 0.85fr) minmax(18rem, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin: 0 auto;
  padding-inline: 0;
}

.contact-methods {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
}

.contact-methods a {
  width: max-content;
  color: var(--primary);
  font-weight: 800;
}

.contact-methods span,
.contact-methods address {
  color: var(--muted);
}

.contact-methods address {
  font-style: normal;
}

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--white);
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row.full,
.enquiry-form .button,
.form-status {
  grid-column: 1 / -1;
}

.form-row label {
  color: var(--ink);
  font-weight: 800;
}

.enquiry-form textarea {
  resize: vertical;
}

.form-status {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

footer {
  color: var(--white);
  background: var(--graphite);
}

.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
  color: oklch(0.850 0.010 165);
}

.footer-brand {
  color: var(--white);
}

@media (max-width: 820px) {
  h1 {
    font-size: clamp(3.3rem, 16vw, 4.5rem);
  }

  .site-nav {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 5rem 1rem auto 1rem;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid oklch(1 0 0 / 0.16);
    border-radius: 8px;
    color: var(--white);
    background: var(--graphite);
  }

  .nav-links a {
    padding: 0.8rem;
  }

  .menu-open .nav-links {
    display: flex;
  }

  .section-grid,
  .fault-layout,
  .process,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    background-position: 62% center;
  }

  .enquiry-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-inner {
    padding-top: 2.6rem;
  }

  .hero-actions,
  .hero-actions .button,
  .enquiry-form .button {
    width: 100%;
  }

  .button {
    padding-inline: 1rem;
  }

  .fault-button {
    grid-template-columns: 1.9rem 1fr;
  }

  .fault-button span:first-child {
    width: 1.9rem;
    height: 1.9rem;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }
}

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