/* Push content below fixed navbar */
.nav-spacer {
  height: 100px;
}

/* Intro */
.mech-intro {
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 800px;
  margin: auto;
}

.mech-intro h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

/* ===== BIG IMAGE GALLERY ===== */
.mech-gallery {
  column-count: 4;
  column-gap: 16px;
  padding: 40px 6%;
}

.mech-gallery img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.mech-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}

/* Feature cards */
.mech-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 80px 8%;
}

.feature {
  background: #0b1620;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
}

/* CTA */
.mech-cta {
  text-align: center;
  padding: 100px 20px;
}
/* FORCE SOLID HEADER ON INNER PAGES */
body:not(.home) .navbar {
  background: rgba(5, 12, 18, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
body {
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.65;
  letter-spacing: 0.2px;
  color: #e6edf3;
}

/* Softer headings */
h1, h2, h3 {
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Eye-friendly paragraphs */
p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
}
/* CLEAN PREMIUM GRID */
.mech-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 50px 6%;
}

/* SQUARE IMAGES */
.mech-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}

/* Premium hover */
.mech-gallery img:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
  filter: brightness(1.05);
}
.mech-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 90px 8%;
}

.feature {
  background: linear-gradient(145deg,#0b1620,#0f1e2b);
  padding: 38px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Glow border */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(120deg,transparent,rgba(0,255,200,.25),transparent);
  opacity: 0;
  transition: opacity .35s ease;
}

.feature:hover::before {
  opacity: 1;
}

.feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}

.feature .icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.mech-intro {
  text-align: center;
  padding: 90px 20px 40px;
  max-width: 700px;
  margin: auto;
}

.mech-intro h1 {
  font-size: 46px;
  margin-bottom: 14px;
  background: linear-gradient(90deg,#fff,#bfffe8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mech-intro p {
  font-size: 18px;
}
/* CLEAN PREMIUM TITLE */
.mech-intro h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow:1px 0.2px 0px rgba(0, 0, 0, 0.11)
}

/* Subtle divider line */
.mech-intro h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg,#00ffe1,#00c2ff);
  border-radius: 3px;
}

/* Better paragraph readability */
.mech-intro p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}
/* LIGHTBOX OVERLAY */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9999;
}

/* ACTIVE STATE */
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

/* IMAGE */
.lightbox-img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  transform: scale(.9);
  transition: transform .3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

/* CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox-close:hover {
  opacity: 1;
}
/* Body shop accent */
body:has(.mech-intro h1:contains("Body")) .mech-intro h1::after {
  background: linear-gradient(90deg,#ff4d4d,#ff9a3c);
}
/* =========================
   MOBILE FIX (MECHANICS PAGE)
   ========================= */
@media (max-width: 768px) {

  /* ===== NAVBAR STACK ===== */
  .nav-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .logo { order: 1; }

  .nav-inner nav {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .btn.primary {
    order: 3;
  }

  /* Smaller spacer */
  .nav-spacer {
    height: 80px;
  }

  /* ===== INTRO ===== */
  .mech-intro {
    padding: 50px 20px 20px;
  }

  .mech-intro h1 {
    font-size: 28px;
  }

  .mech-intro p {
    font-size: 15px;
  }

  /* ===== GALLERY ===== */
  .mech-gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 10px;
    padding: 30px 16px;
  }

  .mech-gallery img {
    border-radius: 12px;
  }

  /* ===== FEATURES ===== */
  .mech-features {
    grid-template-columns: 1fr; /* stack cards */
    padding: 50px 20px;
    gap: 20px;
  }

  .feature {
    padding: 24px;
  }

  /* ===== CTA ===== */
  .mech-cta {
    padding: 60px 20px;
  }
}
