/* ============================================================
   My Mechanic — mymechaniconline.com
   Mobile Automotive Diagnostics & Repair
   Built by Logical Online Solutions — 2026
   Brand: deep blue/black gradient, chrome silver, yellow accents
   ============================================================ */

:root {
  --navy-deep: #05070f;
  --navy: #0a1230;
  --blue: #16307a;
  --blue-glow: #1d47c7;
  --yellow: #ffd719;
  --yellow-dark: #e6bf00;
  --silver: #c9ccd4;
  --text: #e8eaf0;
  --text-dim: #9aa0b0;
  --card-bg: #0d1530;
  --card-border: rgba(255, 255, 255, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--yellow); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.nav-logo img { height: 46px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--yellow); }

.nav-phone {
  background: var(--yellow);
  color: #131313 !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.nav-phone:hover { background: #ffe45c; color: #131313; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(29, 71, 199, 0.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(22, 48, 122, 0.3), transparent 60%),
    linear-gradient(150deg, #0c1642 0%, #070b22 45%, #05070f 100%);
  padding: 84px 24px 96px;
  text-align: center;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-logo img {
  width: min(480px, 78vw);
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 10px 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #d4d8e2 55%, #8d93a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: 1.08rem;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary { background: var(--yellow); color: #131313; }
.btn-primary:hover { background: #ffe45c; transform: translateY(-2px); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }

.section-alt { background: #070c1d; }

.section-eyebrow {
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 18px;
  color: #fff;
}

.section-lead {
  color: var(--text-dim);
  max-width: 760px;
  font-size: 1.05rem;
}

.center { text-align: center; }
.center .section-lead { margin: 0 auto; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-4px); border-color: rgba(255, 215, 25, 0.35); }

.card-icon {
  font-size: 1.9rem;
  margin-bottom: 14px;
  display: block;
}

.card h3 { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 10px; }

.card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  margin-top: 20px;
}

.split-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  display: block;
}

.split-body h2 { margin-bottom: 16px; }
.split-body p { color: var(--text-dim); margin-bottom: 14px; }
.split-body p strong { color: var(--text); }

.checklist { list-style: none; margin: 18px 0 8px; }

.checklist li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text);
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 800;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.trust-item { text-align: center; max-width: 240px; }

.trust-item img { height: 84px; width: auto; margin-bottom: 12px; }

.trust-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.1;
}

.trust-label { color: var(--text-dim); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--card-border);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.gallery-grid a:hover img { transform: scale(1.045); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 9, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 4vh 4vw;
  cursor: zoom-out;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.8);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 34px 26px;
  text-align: center;
}

.contact-card .card-icon { font-size: 2rem; }

.contact-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }

.contact-card a.big {
  color: var(--yellow);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.contact-card a.big:hover { text-decoration: underline; }

.contact-card p { color: var(--text-dim); font-size: 0.92rem; margin-top: 8px; }

/* ---------- Map ---------- */
.map-wrap { width: 100%; height: 420px; display: block; line-height: 0; }

/* ---------- Footer ---------- */
footer {
  background: #04060c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 56px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }

.footer-grid p, .footer-grid li {
  color: var(--text-dim);
  font-size: 0.93rem;
  list-style: none;
  margin-bottom: 8px;
}

.footer-grid a { color: var(--text-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--yellow); }

/* social brand icons */
.fa-brands { width: 18px; margin-right: 7px; text-align: center; font-size: 1rem; }
.fa-instagram { color: #e4405f; }
.fa-facebook { color: #1877f2; }
.fa-yelp { color: #ff1a1a; }

.footer-hours strong { color: var(--yellow); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 24px 0;
  text-align: center;
  color: #5a6070;
  font-size: 0.8rem;
}

/* LOS signature — house standard, do not modify values */
.footer-powered{text-align:center;padding:12px 24px 22px;display:flex;align-items:center;justify-content:center;gap:8px}
.footer-powered span{font-family:'Inter',sans-serif;font-size:.65rem;letter-spacing:2.5px;text-transform:uppercase;color:#444}
.footer-powered img{height:28px;opacity:.42;filter:brightness(1.5);transition:opacity .25s}
.footer-powered img:hover{opacity:.85}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 70% 80% at 75% 0%, rgba(29, 71, 199, 0.3), transparent 60%),
    linear-gradient(150deg, #0b143a 0%, #05070f 90%);
  padding: 64px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 0%, #d4d8e2 55%, #8d93a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p { color: var(--text-dim); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    background: #070b1a;
    flex-direction: column;
    width: min(78vw, 320px);
    height: calc(100vh - 72px);
    padding: 34px 30px;
    gap: 24px;
    align-items: flex-start;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s, visibility 0.3s;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links.open { transform: translateX(0); visibility: visible; }
  .nav-toggle { display: block; }
  .nav-phone { padding: 9px 16px; font-size: 0.85rem; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 60px 20px 72px; }
  .section { padding: 58px 0; }
}
