:root {
  --ink: #161a1d;
  --muted: #5d666f;
  --paper: #f7f8f7;
  --panel: #ffffff;
  --line: #dde3e1;
  --red: #ce2624;
  --green: #1f7a63;
  --amber: #d99d32;
  --steel: #7f8c93;
  --shadow: 0 22px 60px rgba(22, 26, 29, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 247, 0.92);
  border-bottom: 1px solid rgba(22, 26, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand img { width: 188px; height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.nav-toggle,
.button,
.filter-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-nav a {
  padding: 10px 14px;
  color: #30373c;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--ink);
  color: white;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 14px;
}

.hero {
  min-height: calc(100vh - 72px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0f1113;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  opacity: 0.9;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 14, 16, 0.88) 0%, rgba(12, 14, 16, 0.62) 42%, rgba(12, 14, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(12, 14, 16, 0.82) 0%, rgba(12, 14, 16, 0) 45%);
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding: 92px 0 120px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}
h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}
h3 { margin: 0; font-size: 1.05rem; }

.hero-content p:not(.eyebrow),
.page-hero p,
.section-heading p,
.section-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
}
.button:hover,
.filter-button:hover { transform: translateY(-2px); }
.button.primary { background: var(--red); color: white; box-shadow: 0 12px 30px rgba(206, 38, 36, 0.25); }
.button.ghost { border-color: rgba(255, 255, 255, 0.46); color: white; }
.button.ghost.dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.text-link { color: var(--red); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.quick-strip {
  width: min(1120px, calc(100% - 36px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-strip div { padding: 24px; border-right: 1px solid var(--line); }
.quick-strip div:last-child { border-right: 0; }
.quick-strip strong { display: block; font-size: 1.15rem; }
.quick-strip span { color: var(--muted); }

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split.alt { align-items: center; }
.section-copy p,
.section-heading p { color: var(--muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.process-step,
.contact-card,
.inquiry-form,
.lookup-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(22, 26, 29, 0.06);
}

.service-card {
  min-height: 190px;
  padding: 22px;
}
.service-card span,
.process-step span {
  color: var(--red);
  font-weight: 900;
}
.service-card p,
.process-step p,
.contact-card p,
.inquiry-form p,
.lookup-form p { color: var(--muted); }

.band {
  width: 100%;
  max-width: none;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
  background: #e8eeeb;
}
.band .section-heading { width: min(900px, 100%); margin: 0 auto 32px; text-align: center; }
.logo-cloud {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.logo-cloud span {
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 900;
  color: #3f484d;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  margin-bottom: 80px;
  color: white;
  background: linear-gradient(110deg, var(--ink), #23302d 68%, #45201f);
  border-radius: 8px;
}
.cta-panel h2 { max-width: 800px; font-size: clamp(1.8rem, 4vw, 3.6rem); }

.page-hero {
  min-height: 48vh;
  display: grid;
  align-items: end;
  padding: 110px clamp(18px, 6vw, 76px) 62px;
  color: white;
  background:
    linear-gradient(120deg, rgba(18, 21, 23, 0.9), rgba(18, 21, 23, 0.76)),
    url("images/repair-bench-hero.png") center/cover;
}
.gallery-hero { background-position: center; }
.contact-hero { background-position: right center; }
.page-hero h1 { max-width: 980px; }
.page-hero p { color: rgba(255, 255, 255, 0.8); }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.process-step { padding: 24px; min-height: 240px; }
.process-step span { font-size: 2rem; }

.feature-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-tools {
  width: min(1180px, calc(100% - 36px));
  margin: 32px auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
}
.filter-button.active { background: var(--ink); color: white; border-color: var(--ink); }
.gallery-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 90px;
  columns: 4 230px;
  column-gap: 14px;
}
.gallery-item {
  break-inside: avoid;
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  width: 100%;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(22, 26, 29, 0.09);
  cursor: zoom-in;
  text-align: left;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span {
  display: block;
  padding: 12px;
  color: var(--ink);
  font-weight: 800;
}

.lightbox {
  width: min(94vw, 1080px);
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: white;
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(10, 12, 14, 0.82); }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #111; }
.lightbox p { margin: 12px 0 0; font-weight: 900; }
.lightbox-close {
  float: right;
  min-height: 38px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}
.contact-card,
.inquiry-form,
.lookup-form { padding: 24px; }
.lookup-form { grid-column: 2; }
label { display: grid; gap: 7px; margin: 14px 0; font-weight: 800; color: #30373c; }
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: #fbfcfc;
}
input:focus,
textarea:focus {
  outline: 3px solid rgba(206, 38, 36, 0.18);
  border-color: var(--red);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 44px clamp(18px, 5vw, 64px);
  color: white;
  background: var(--ink);
}
.site-footer h2,
.site-footer h3 { margin: 0 0 8px; }
.site-footer p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.site-footer a { color: white; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

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

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; }
  .site-header { align-items: flex-start; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { justify-content: flex-start; }
  .hero { min-height: 760px; }
  .hero-content { margin: 0 auto; padding-top: 110px; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(12, 14, 16, 0.86), rgba(12, 14, 16, 0.66));
  }
  .quick-strip,
  .split,
  .process,
  .contact-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .quick-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-strip div:last-child { border-bottom: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .cta-panel { align-items: flex-start; flex-direction: column; padding: 24px; }
  .lookup-form { grid-column: auto; }
  .page-hero { min-height: 420px; }
}

@media (max-width: 520px) {
  .brand img { width: 150px; }
  .hero-actions,
  .button {
    width: 100%;
  }
  .gallery-grid { columns: 1; }
}
