/* ============================================================
   Lyle Porter Vehicle Repairs Ltd — Kilwinning, North Ayrshire
   Palette drawn from the logo: carbon black, steel grey,
   signal red, white.
   ============================================================ */

:root {
  --black: #0b0b0d;
  --dark: #131316;
  --dark-2: #1a1a1f;
  --steel: #9aa0a8;
  --grey: #c8ccd2;
  --white: #f5f6f8;
  --red: #e10600;
  --red-bright: #ff2a1e;
  --red-dark: #a80400;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 6px 22px rgba(225, 6, 0, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 6, 0, 0.5);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); }

.btn-light { background: #fff; color: var(--red-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  color: var(--red-bright);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  font-style: italic;
}
.brand-text small {
  color: var(--steel);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
}

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none;
  color: var(--grey);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

.header-call { padding: 9px 18px; background: var(--red); color: #fff; }
.header-call:hover { background: var(--red-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 70px;
  background:
    radial-gradient(ellipse 80% 55% at 70% 0%, rgba(225, 6, 0, 0.16), transparent 60%),
    linear-gradient(180deg, #141416 0%, var(--black) 100%);
  overflow: hidden;
}
/* brushed-metal striping like the logo background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.022) 0 2px,
    transparent 2px 9px
  );
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-gear {
  position: absolute;
  fill: rgba(255, 255, 255, 0.045);
  animation: spin 60s linear infinite;
}
.gear-a { width: 380px; height: 380px; top: -90px; right: -70px; }
.gear-b {
  width: 240px; height: 240px;
  bottom: -50px; left: -50px;
  animation-direction: reverse;
  fill: rgba(225, 6, 0, 0.07);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-content { position: relative; max-width: 760px; }
.hero-kicker {
  color: var(--red-bright);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 18px;
}
.accent { color: var(--red-bright); }
.hero-sub {
  color: var(--grey);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--steel);
  font-size: 0.95rem;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.tick { color: var(--red-bright); }

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 0;
}
.trustbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item .icon {
  width: 2em; height: 2em;
  color: var(--red-bright);
}
.trust-item strong { display: block; font-size: 0.98rem; }
.trust-item span { color: var(--steel); font-size: 0.84rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; background: var(--black); }
.section-dark {
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(225, 6, 0, 0.07), transparent 60%),
    var(--dark);
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-kicker {
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2,
.split-text h2,
.cta-inner h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-head p { color: var(--steel); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 6, 0, 0.55);
  box-shadow: 0 16px 38px rgba(225, 6, 0, 0.14);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.18), rgba(225, 6, 0, 0.05));
  border: 1px solid rgba(225, 6, 0, 0.35);
  margin-bottom: 16px;
}
.card-icon .icon { width: 1.7em; height: 1.7em; color: var(--red-bright); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--steel); font-size: 0.93rem; }
.card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--red-bright);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Split sections (DPF / Carbon) ---------- */
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-visual { order: 1; }
.split-text p { color: var(--grey); margin-bottom: 18px; }
.split-note {
  border-left: 3px solid var(--red);
  padding-left: 14px;
  font-size: 0.93rem;
  color: var(--steel) !important;
  margin-bottom: 24px !important;
}
.split-text .btn { margin-top: 6px; }

.check-list { list-style: none; margin-bottom: 20px; }
.check-list li {
  position: relative;
  padding: 7px 0 7px 32px;
  color: var(--grey);
  font-size: 0.96rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.4-1.4L10 14.2l7.6-7.6L19 8l-9 9z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-2 15-5-5 1.4-1.4L10 14.2l7.6-7.6L19 8l-9 9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.split-visual { display: grid; place-items: center; }
.visual-card {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 24px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 10px),
    linear-gradient(160deg, #1e1e24, #101013);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  gap: 0;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.visual-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% -30%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(225, 6, 0, 0.3), transparent 65%);
}
.visual-icon {
  width: 84px; height: 84px;
  fill: var(--red-bright);
  filter: drop-shadow(0 0 18px rgba(225, 6, 0, 0.55));
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.visual-stat strong {
  display: block;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.04em;
}
.visual-stat span { color: var(--steel); font-size: 0.95rem; }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-item {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.why-item:hover { border-color: rgba(225, 6, 0, 0.5); transform: translateY(-4px); }
.why-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-bright);
  margin-bottom: 10px;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { color: var(--steel); font-size: 0.9rem; }

/* ---------- Areas ---------- */
.areas-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.areas-list li {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--grey);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.areas-list li:hover {
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-big {
  font-size: 1.35rem !important;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: 0.02em;
}
.inline-link { color: var(--red-bright); font-weight: 700; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--red-dark), var(--red-bright));
  padding: 54px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: 6px; color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Footer ---------- */
.site-footer {
  background: #08080a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  width: 110px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-tag { color: var(--steel); font-size: 0.9rem; max-width: 320px; }
.site-footer h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--red-bright);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--grey); text-decoration: none; font-size: 0.92rem; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--red-bright); }
.site-footer address { font-style: normal; color: var(--grey); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--steel);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Floating call button ---------- */
.fab-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.5);
  animation: fab-pulse 2.4s ease-in-out infinite;
}
.fab-call .icon { width: 1.6em; height: 1.6em; }
@keyframes fab-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* Stagger children grids slightly */
.services-grid .reveal:nth-child(2), .trustbar-grid .reveal:nth-child(2),
.why-grid .reveal:nth-child(2), .contact-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services-grid .reveal:nth-child(3), .trustbar-grid .reveal:nth-child(3),
.why-grid .reveal:nth-child(3), .contact-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.trustbar-grid .reveal:nth-child(4), .why-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-gear, .visual-icon, .fab-call { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive — mobile first adjustments
   ============================================================ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-visual { order: 2; }
  .split-visual { order: 2; }
  .visual-card { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 11, 13, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px 16px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav-toggle { display: flex; }
  .header-call span { display: none; }
  .header-call { padding: 10px 12px; border-radius: 50%; }
  .fab-call { display: grid; }
  .section { padding: 62px 0; }
  .hero { padding-top: 108px; }
  .cta-inner { flex-direction: column; text-align: center; justify-content: center; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .trustbar-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .brand-text small { letter-spacing: 0.18em; }
  .hero-cta .btn { width: 100%; }
}
