/* Base reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050607;
  color: #f5f5f5;
}

/* THEME MODES */
html[data-theme="dark"] body {
  background: #050607;
  color: #f5f5f5;
}

html[data-theme="light"] body {
  background: #e4e6ea;
  color: #16181a;
}

/* Contained layout */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Page fade transitions */
.page-fade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #050607;
  opacity: 0;
  transition: opacity 250ms ease;
  z-index: 999;
}

html[data-theme="light"] .page-fade {
  background: #e4e6ea;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(5,6,7,0.95), rgba(5,6,7,0.7));
  transition: transform 200ms ease, background 150ms ease;
}

html[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(228,230,234,0.95), rgba(228,230,234,0.7));
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245,245,245,0.7);
  position: relative;
  padding-bottom: 0.2rem;
}

html[data-theme="light"] .nav-link {
  color: rgba(22,24,26,0.75);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #cfd2d6, #f5f7fa);
  transition: width 180ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(207,210,214,0.7);
  background: radial-gradient(circle at top left, #ffffff, #aeb3bd);
  color: #111318;
  font-weight: 600;
}

html[data-theme="light"] .nav-cta {
  background: radial-gradient(circle at top left, #fdfdfd, #c6cbd3);
  border-color: rgba(60,64,72,0.4);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

/* Logo */
.logo-wrap {
  display: flex;
  justify-content: center;
}

.logo-img {
  height: 52px;
  width: auto;
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(160,165,175,0.8);
  background: linear-gradient(135deg, #181b20, #343840);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

html[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, #ccd2dc, #f2f4f7);
  border-color: rgba(80,84,92,0.5);
}

.theme-toggle-knob {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #aeb2ba);
  margin-left: 3px;
  transition: transform 180ms ease;
}

html[data-theme="light"] .theme-toggle-knob {
  transform: translateX(22px);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, #5f6b7a, transparent 55%),
              radial-gradient(circle at 100% 100%, #9aa4b2, transparent 55%),
              radial-gradient(circle at 100% 0%, #4b5563, transparent 40%),
              radial-gradient(circle at 0% 100%, #6b7280, transparent 40%);
  filter: saturate(1.2);
  animation: chromeFlow 16s ease-in-out infinite alternate;
}

html[data-theme="light"] .hero-gradient {
  background: radial-gradient(circle at 0% 0%, #cfd3da, transparent 55%),
              radial-gradient(circle at 100% 100%, #e5e7eb, transparent 55%),
              radial-gradient(circle at 100% 0%, #d1d5db, transparent 40%),
              radial-gradient(circle at 0% 100%, #e0e3ea, transparent 40%);
}

@keyframes chromeFlow {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1.02);
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1%, 1%, 0) scale(1.03);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-logo {
  max-width: 420px;
  width: 70vw;
  height: auto;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,0.6));
}

/* Section titles */
.section-title {
  font-size: 2.25rem;
  margin: 0 0 1.5rem;
}

/* Chrome text for dark mode */
.chrome-text {
  background: linear-gradient(120deg, #f9fafb 0%, #d1d5db 25%, #6b7280 50%, #d1d5db 75%, #f9fafb 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chromeSheen 8s linear infinite;
}

@keyframes chromeSheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Alternate chrome for subheaders, simplified in light mode */
.chrome-text-alt {
  background: linear-gradient(120deg, #f3f4f6 0%, #cbd5e1 40%, #4b5563 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .chrome-text,
html[data-theme="light"] .chrome-text-alt {
  animation: none;
  background: none;
  color: #16181a;
}

/* Services overview */
.section-services-overview {
  padding-top: 3.5rem;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: radial-gradient(circle at top left, #181b20, #050607);
  border-radius: 1.1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

html[data-theme="light"] .service-card {
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  border-color: rgba(148,163,184,0.55);
  box-shadow: 0 12px 30px rgba(15,23,42,0.18);
}

.hover-elevate:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
  border-color: rgba(229,231,235,0.85);
}

.service-card h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Service icons (simple geometric shapes styled to feel metallic) */
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  background: radial-gradient(circle at 20% 20%, #f9fafb, #9ca3af);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.5);
  position: relative;
}

.service-icon-diagnostics::before,
.service-icon-adas::before,
.service-icon-repair::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 0.35rem;
  border: 2px solid rgba(15,23,42,0.8);
}

/* Unique details per icon */
.service-icon-diagnostics::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, #4b5563, #111827);
  transform: translateY(-50%);
}

.service-icon-adas::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,0.85);
}

.service-icon-repair::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border-left: 3px solid rgba(15,23,42,0.85);
  border-bottom: 3px solid rgba(15,23,42,0.85);
}

/* Chrome panel */
.chrome-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.25rem 1.8rem 2.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(156,163,175,0.65);
  background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(31,41,55,0.98));
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

html[data-theme="light"] .chrome-panel {
  background: linear-gradient(145deg, rgba(241,245,249,0.96), rgba(209,213,219,0.98));
  box-shadow: 0 18px 48px rgba(15,23,42,0.2);
  border-color: rgba(148,163,184,0.9);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.why-item h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.why-item p {
  margin: 0;
  font-size: 0.98rem;
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.philosophy-step {
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: 1.1rem;
  border: 1px solid rgba(75,85,99,0.7);
  padding: 1.4rem 1.3rem;
}

html[data-theme="light"] .philosophy-step {
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  border-color: rgba(148,163,184,0.75);
}

.philosophy-step h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.philosophy-step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Page header section */
.section-page-header {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.section-lead {
  max-width: 640px;
  font-size: 1.02rem;
  color: rgba(229,231,235,0.85);
}

.section-lead.secondary {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: rgba(209,213,219,0.85);
}

html[data-theme="light"] .section-lead,
html[data-theme="light"] .section-lead.secondary {
  color: rgba(31,41,55,0.85);
}

/* Services detail layout */
.services-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.service-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: flex-start;
}

.service-detail-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 20% 20%, #f9fafb, #9ca3af);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.65);
}

.service-icon-electrical,
.service-icon-engine,
.service-icon-brakes,
.service-icon-hvac,
.service-icon-maintenance {
  position: relative;
}

/* Simple internal details to differentiate icons */
.service-icon-electrical::before,
.service-icon-engine::before,
.service-icon-brakes::before,
.service-icon-hvac::before,
.service-icon-maintenance::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 0.4rem;
  border: 2px solid rgba(15,23,42,0.8);
}

.service-icon-engine::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, #111827, #4b5563);
  transform: translateY(-50%);
}

.service-icon-brakes::after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 999px;
  border: 3px solid rgba(15,23,42,0.9);
}

.service-icon-hvac::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 999px;
  border-left: 3px solid rgba(15,23,42,0.9);
  border-top: 3px solid rgba(15,23,42,0.9);
}

.service-icon-maintenance::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  height: 3px;
  background: linear-gradient(90deg, #111827, #4b5563);
}

.service-detail-title {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.service-detail p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.services-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(148,163,184,0.9);
}

html[data-theme="light"] .services-note {
  color: rgba(75,85,99,0.98);
}

/* Completed jobs */
.jobs-category-title {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.job-card {
  background: radial-gradient(circle at top left, #0b0f14, #020617);
  border-radius: 1rem;
  border: 1px solid rgba(75,85,99,0.65);
  padding: 0.9rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

html[data-theme="light"] .job-card {
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  border-color: rgba(148,163,184,0.85);
}

.job-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.7);
  border-color: rgba(229,231,235,0.9);
}

.job-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(209,213,219,0.9);
}

html[data-theme="light"] .job-tag {
  color: rgba(55,65,81,0.95);
}

.job-thumb {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-top: 0.4rem;
  margin-bottom: 0.45rem;
}

.job-title {
  margin: 0;
  font-size: 0.98rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.lightbox.active {
  display: block;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.lightbox-content {
  position: absolute;
  inset: 5%;
  max-width: 1000px;
  margin: auto;
  background: #050608;
  border-radius: 1.2rem;
  border: 1px solid rgba(148,163,184,0.65);
  padding: 1.5rem 1.5rem 1.1rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lightbox-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.8rem;
  cursor: pointer;
}

.lightbox-image-wrap {
  max-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #020617;
}

.lightbox-image {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lightbox-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.4rem;
  cursor: pointer;
  opacity: 0.75;
  border: 1px solid transparent;
}

.lightbox-thumbs img.active-thumb {
  opacity: 1;
  border-color: rgba(251,191,36,0.9);
}

.lightbox-caption {
  font-size: 0.9rem;
}

.lightbox-caption p {
  margin: 0.15rem 0;
}

.lightbox-misdiag-line {
  display: none;
}

/* Request form */
.section-request-form {
  padding-top: 2rem;
}

.request-form-panel {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 1.4rem;
  border: 1px solid rgba(148,163,184,0.65);
  background: radial-gradient(circle at top left, #111827, #020617);
  padding: 2.2rem 1.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

html[data-theme="light"] .request-form-panel {
  background: radial-gradient(circle at top left, #f9fafb, #e5e7eb);
  border-color: rgba(148,163,184,0.9);
  box-shadow: 0 18px 50px rgba(15,23,42,0.25);
}

.embed-placeholder {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(209,213,219,0.9);
}

html[data-theme="light"] .embed-placeholder {
  color: rgba(55,65,81,0.95);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #050607;
  color: #d1d5db;
}

html[data-theme="light"] .site-footer {
  background: #111827;
  color: #e5e7eb;
}

.footer-chrome-strip {
  height: 3px;
  background: linear-gradient(90deg, #f9fafb, #9ca3af, #f9fafb);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-slogan {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
}

.footer-phone {
  font-weight: 600;
}

.footer-meta {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.scroll-top::before {
  content: "▲";
  font-size: 0.8rem;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(15,23,42,1);
}

/* Scroll animation */
.observe {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.observe.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 1rem;
  }
  .nav-left,
  .nav-right {
    justify-content: center;
  }
  .logo-wrap {
    grid-column: 1 / -1;
  }

  .service-overview-grid,
  .philosophy-grid,
  .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3rem 1.1rem;
  }

  .service-overview-grid,
  .philosophy-grid,
  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .lightbox-content {
    inset: 6%;
    padding: 1.1rem 1rem 0.9rem;
  }

  .hero {
    min-height: 65vh;
  }

  .hero-logo {
    max-width: 78vw;
  }
}
