/* =========================
   Richer Repairs – Styles
   ========================= */

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background: radial-gradient(circle at top, #f9fafb, #eef2f7);
}

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

/* Improve keyboard accessibility */
:focus-visible {
  outline: 3px solid rgba(16,185,129,.7);
  outline-offset: 3px;
}

/* =========================
   Header / Nav
   ========================= */
header {
  background: #111827;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px;    /* slightly taller header */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navlinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlinks a {
  text-decoration: none;
  opacity: .95;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  white-space: nowrap; /* prevents "on." wrapping */
}

.navlinks a:hover {
  opacity: 1;
  background: rgba(255,255,255,.08);
}

/* Optional: on very small screens, keep nav usable without ugly wraps */
@media (max-width: 420px) {
  .navlinks {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .navlinks::-webkit-scrollbar { display: none; }
}

/* =========================
   Layout
   ========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   Hero
   ========================= */
.hero {
  background:
    linear-gradient(135deg, rgba(17,24,39,0.95), rgba(31,41,55,0.9)),
    url("/assets/engine-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 0;
}

.kicker {
  font-weight: 800;
  color: #34d399;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.hero p {
  margin-top: 12px;
  opacity: .92;
  max-width: 70ch;
}

/* =========================
   Buttons
   ========================= */
.ctaRow {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}

/* Primary */
.btnPrimary {
  background: #10b981;
  color: #ffffff;
}

.btnPrimary:hover { background: #059669; }

/* Ghost – adaptive (light backgrounds) */
.btnGhost {
  border: 1px solid rgba(17,24,39,.25);
  color: #111827;
  background: transparent;
}

.btnGhost:hover { background: rgba(17,24,39,.06); }

/* Ghost on dark backgrounds */
.hero .btnGhost,
header .btnGhost {
  border-color: rgba(255,255,255,.45);
  color: #ffffff;
}

.hero .btnGhost:hover,
header .btnGhost:hover {
  background: rgba(255,255,255,.12);
}

/* Urgent / Thanks page */
.btnThanksCall {
  background: #10b981;
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px rgba(16,185,129,.35);
}

.btnThanksCall:hover { background: #059669; }

/* =========================
   Sections / Cards
   ========================= */
.section { padding: 55px 0; }

.section h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.small {
  color: #4b5563;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 8px 22px rgba(0,0,0,.07);
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card a { text-decoration: none; display: block; }

.card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/* Badges */
.badges {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 12px;
  color: #111827;
  background: #eef2ff;
  border: 1px solid rgba(17,24,39,.06);
  padding: 5px 9px;
  border-radius: 999px;
}

/* =========================
   Split Layout
   ========================= */
.split {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* Lists */
.list {
  margin-top: 10px;
  padding-left: 18px;
}
.list li { margin: 6px 0; }

/* =========================
   Brand Logos
   ========================= */
.logoGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  align-items: center;
  justify-items: center;
}

.logoCard {
  width: 100%;
  max-width: 220px;
  height: 120px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border: 1px solid rgba(17,24,39,.06);
}

.logoCard img {
  max-width: 100%;
  max-height: 64px;
  filter: grayscale(100%);
  opacity: .85;
  transition: filter .15s ease, opacity .15s ease;
}

.logoCard:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* =========================
   Header Logo
   ========================= */
.site-logo {
  height: 84px;          /* 🔼 was ~48–64px */
  width: auto;
  display: block;
}

/* =========================
   Footer + Floating Call
   ========================= */
.footer {
  margin-top: 30px;
  padding: 28px 0;
  background: #111827;
  color: #ffffff;
}

.footer p { opacity: .9; }

.callFloat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #10b981;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.callFloat:hover { background: #059669; }

/* =========================
   Mobile Tweaks
   ========================= */
@media (max-width: 520px) {
  .container { padding: 0 16px; }

  .nav {
    padding: 14px 16px;   /* slightly taller for the bigger logo */
  }

  .site-logo {
    height: 64px;        /* bigger logo on mobile, still safe */
  }
}
