* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ground: #000;
  --surface: #161616;
  --border: #2b2b2b;
  --text: #f5f5f3;
  --text-secondary: #9c9b96;

  --blue: #2e6ff2;
  --blue-soft: #142348;
  --lime: #c6da2e;
  --lime-soft: #2a2e10;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --card-overlay: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.94) 100%
  );
}

html {
  scroll-behavior: smooth;
}

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

/* Preloader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ground);
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

#loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-right-color: var(--lime);
  animation: loader-spin 0.9s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky header on scroll */
header.is-scrolled {
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(46, 111, 242, 0.35);
}

/* Nav active link */
nav a.is-active {
  color: var(--text);
  position: relative;
}

nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  border-radius: 2px;
}

/* CTA glow pulse */
.btn-primary {
  position: relative;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(46, 111, 242, 0.55);
  animation: btn-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 111, 242, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(46, 111, 242, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 111, 242, 0);
  }
}

/* Image zoom on hover */
.hero-figure-full {
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Animated counters keep layout stable */
.stat-num {
  font-variant-numeric: tabular-nums;
}

body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
}
img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand .logo {
  width: min(100%, 640px);
  height: auto;
  margin: auto;
}

.header-brand .phone-link {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

header nav .wrap {
  height: 52px;
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--text);
}

.phone-link {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--lime);
  color: var(--ground);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--text);
}

@media (min-width: 860px) {
  .phone-link {
    display: inline-block;
  }
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  header nav {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    transition: max-height 0.3s ease;
  }

  header nav.is-open {
    max-height: 320px;
  }

  header nav .wrap {
    height: auto;
    padding: 0.5rem 2rem 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li {
    border-bottom: 1px solid var(--border);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 0.9rem 0;
  }
}

/* Hero */
.hero {
  padding: 2.5rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto;
}

.hero-figure-full {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: 3rem;
}

.hero-figure-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 70%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-headline {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.hero-quickrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.quick-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quick-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.quick-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.quick-card p a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.quick-card p a:hover {
  color: var(--blue);
}

.quick-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.quick-map {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.quick-map h3 {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(10, 10, 10, 0.75);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.quick-map-frame {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  filter: invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

@media (max-width: 860px) {
  .hero-figure-full {
    aspect-ratio: 4/3;
  }
  .hero-quickrow {
    grid-template-columns: 1fr;
  }
}

/* Section shared */
section {
  padding: 5.5rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-head p {
  color: var(--text-secondary);
  max-width: 40ch;
}

@media (max-width: 700px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Services */
.services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-item {
  padding: 2.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--chip);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: 2;
}

.service-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-overlay);
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

.service-item:hover::before {
  transform: scaleX(1);
}

.svc-auto-body::after {
  background-image:
    var(--card-overlay), url("../images/kombi-restoration-2.jpg");
}
.svc-rubbering::after {
  background-image: var(--card-overlay), url("../images/kombi-roof-panel.jpg");
}
.svc-chassis-black::after {
  background-image: var(--card-overlay), url("../images/kombi-interior.jpg");
}
.svc-dent-removal::after {
  background-image: var(--card-overlay), url("../images/orbital-sander.jpg");
}
.svc-chassis-rust::after {
  background-image:
    var(--card-overlay), url("../images/kombi-roof-dramatic.jpg");
}
.svc-aircon::after {
  background-image:
    var(--card-overlay), url("../images/kmc8020-aircon-regas.jpg");
}
.svc-mechanical::after {
  background-image: var(--card-overlay), url("../images/ncc-signage-board.jpg");
}
.svc-hail-damage::after {
  background-image: var(--card-overlay), url("../images/spray-gun-closeup.jpg");
}
.svc-ceramic-polish::after {
  background-image: var(--card-overlay), url("../images/wet-sanding.jpg");
}

.service-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  color: #fff;
}

.service-item p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery-item:first-child {
  grid-row: span 2;
  aspect-ratio: 3/5.4;
}

.gallery-item .tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item:first-child {
    grid-row: span 1;
    aspect-ratio: 3/4;
  }
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.why-item .mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--chip-soft);
  color: var(--chip);
}

.why-item .mark svg {
  width: 22px;
  height: 22px;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 860px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Brands */
.brands {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.brands .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.brands-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-right: auto;
}

.brand-marks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 260px;
}

.brand-plate {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-left: auto;
}

@media (max-width: 700px) {
  .brands .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .brand-marks {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Quote */
.quote {
  position: relative;
  text-align: center;
  max-width: none;
  margin: 0 auto;
  padding: 7rem 2rem;
  isolation: isolate;
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.9) 100%),
    url("../images/paint-panel-banner.jpg");
  background-size: cover;
  background-position: center 30%;
}

.quote p,
.quote-attr {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.quote span {
  color: var(--blue);
}
.quote-attr {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Contact */
.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.contact-lead {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row .ic-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .ic-wrap svg {
  width: 18px;
  height: 18px;
}

.contact-row .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.contact-row .value {
  font-weight: 500;
  font-size: 1.02rem;
}
.contact-row a {
  text-decoration: none;
}
.contact-row a:hover {
  color: var(--blue);
}

.form-card {
  background: var(--ground);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.form-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}
.form-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 860px) {
  .contact .wrap {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  padding: 2.5rem 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}
