:root{ 
  --primary:#0b1f33;
  --accent:#cfa24a;
  --bg:#f6f7f9;
  --text:#1f2937;

  --panel:#ffffff;
  --shadow:0 10px 25px rgba(0,0,0,.06);
  --radius:12px;

  --heroText:#ffffff;
  --heroMuted:rgba(255,255,255,.88);

  /* Premium steel accents */
  --steel: rgba(220,230,242,.92);
  --steelSoft: rgba(220,230,242,.18);
  --navyGlass1: rgba(8,22,36,.72);
  --navyGlass2: rgba(11,31,51,.62);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
  color:var(--text);
  background:var(--bg);
}

a{text-decoration:none;color:inherit}

header,footer{
  background:var(--primary);
  color:#fff;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:1rem;
}

/* ================= NAV ================= */
.nav nav{
  display:flex;
  align-items:center;
  gap:.25rem;
  flex-wrap:wrap;
}

.nav a{
  margin:0 .15rem;
  font-weight:600;
  opacity:.92;
  padding:.45rem .65rem;
  border-radius:999px;
  transition: background .2s ease, opacity .2s ease, transform .05s ease;
}

.nav a:hover{
  background:rgba(255,255,255,.10);
  opacity:1;
}

.nav a[aria-current="page"]{
  background:rgba(255,255,255,.16);
  opacity:1;
}

/* =========================================================
   HEADER LOGO — SURGICAL OVERRIDES (NO HERO IMPACT)
========================================================= */
header .nav{
  align-items:flex-start !important;
  justify-content:space-between !important;
}

header .brand{
  align-items:flex-start !important;
  justify-content:flex-start !important;
  flex-direction:column !important;
  gap:0 !important;
  padding:0 !important;
  margin:0 !important;
  min-width:0 !important;
}

header .brand-slogan{
  display:none !important;
}

header .brand-mark{
  height:136px !important;
  width:auto !important;
  overflow:hidden !important;
}

header .brand-mark img{
  height:136px !important;
  width:auto !important;
  display:block !important;
  filter:none !important;
  box-shadow:none !important;
}

header .brand:hover,
header .brand:focus,
header .brand:focus-visible,
header .brand-mark:hover,
header .brand-mark:focus,
header .brand-mark:focus-visible,
header .brand-mark img:hover,
header .brand-mark img:focus{
  filter:none !important;
  box-shadow:none !important;
  text-shadow:none !important;
  outline:none !important;
}

@media (max-width:768px){
  header .brand-mark{ height:96px !important; }
  header .brand-mark img{ height:96px !important; }
}

/* ================= LEGACY HERO (older pages) ================= */
.hero{
  min-height:55vh;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
}

.hero .overlay{
  width:100%;
  position:relative;
  padding:3.2rem 0;
  background:
    linear-gradient(
      90deg,
      rgba(11,31,51,.65),
      rgba(11,31,51,.40) 55%,
      rgba(11,31,51,.65)
    );
}

.hero h1{
  color:var(--heroText);
  font-size:clamp(2rem,4vw,3rem);
  line-height:1.05;
  letter-spacing:-.03em;
  margin:.25rem 0 .75rem;
  text-shadow:0 12px 32px rgba(0,0,0,.45);
}

.hero p{
  color:var(--heroMuted);
  max-width:700px;
  line-height:1.6;
  margin:0;
}

/* ================= CARDS / GRID ================= */
.grid{display:grid;gap:1rem}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}

.card{
  background:var(--panel);
  border-radius:var(--radius);
  padding:1rem;
  box-shadow:var(--shadow);
}

.small-muted{
  color:#6b7280;
  font-size:.92rem;
}

/* ================= BUTTONS ================= */
button,.btn{
  background:var(--accent);
  border:none;
  color:#111;
  padding:.75rem 1.25rem;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  transition: filter .15s ease, transform .05s ease;
}

button:hover,.btn:hover{filter:brightness(1.05)}
button:active,.btn:active{transform:translateY(1px)}

.btn.outline{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.35);
}
.btn.outline:hover{background:rgba(255,255,255,.10)}

/* ================= FOOTER ================= */
footer{margin-top:3rem}

/* ================= MOBILE ================= */
@media(max-width:768px){
  .hero .overlay{padding:2.2rem 0}
}

/* =========================================================
   Mi Tech Modern Hero System (HOME + STATIC PAGES)
========================================================= */
.mitech-hero{
  position:relative;
  min-height:58vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background:#0b1f33;
}

.mitech-hero__slides{
  position:absolute;
  inset:0;
  z-index:0;
}

.mitech-hero__slide{
  position:absolute;
  inset:0;
  background-image:var(--bg);
  background-size:cover;
  background-position:center;
  opacity:0;

  filter:contrast(1.10) saturate(1.10) brightness(1.03);

  transform:scale(1.01);
  transition:opacity 700ms ease, transform 1400ms ease;
  will-change:opacity, transform;
}

.mitech-hero__slide.is-active{
  opacity:1;
  transform:scale(1);
}

.mitech-hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(207,162,74,.10), transparent 64%),
    radial-gradient(900px 520px at 88% 18%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(
      90deg,
      rgba(11,31,51,.44),
      rgba(11,31,51,.18) 55%,
      rgba(11,31,51,.44)
    );
}

.mitech-hero__overlay::after{
  content:"";
  position:absolute;
  inset:-40%;
  background:linear-gradient(120deg, transparent 35%, rgba(255,255,255,.06) 50%, transparent 65%);
  transform:rotate(-10deg);
  opacity:.12;
  pointer-events:none;
}

.mitech-hero__content{
  position:relative;
  z-index:2;
  padding:3.2rem 1rem;
}

.mitech-hero__kicker{
  display:inline-block;
  color:var(--accent);
  font-weight:800;
  letter-spacing:.04em;
  margin-bottom:.35rem;
}

.mitech-hero__title{
  color:#fff;
  font-size:clamp(2rem,4.2vw,3.25rem);
  line-height:1.03;
  letter-spacing:-.03em;
  margin:.25rem 0 .75rem;
  text-shadow:0 16px 44px rgba(0,0,0,.55);
}

.mitech-hero__desc{
  color:rgba(255,255,255,.88);
  max-width:680px;
  line-height:1.65;
  margin:0;
}

.mitech-hero__nav{
  position:absolute;
  z-index:3;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(11,31,51,.35);
  color:#fff;
  font-size:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.mitech-hero__nav:hover{background:rgba(11,31,51,.55)}
.mitech-hero__prev{left:14px}
.mitech-hero__next{right:14px}

.mitech-hero__dots{
  position:absolute;
  z-index:3;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
}

.mitech-hero__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.15);
  cursor:pointer;
}
.mitech-hero__dot.is-active{
  background:var(--accent);
  border-color:rgba(0,0,0,.15);
}

/* HOME: top band — TRUE “NOT BLOCKING” GLASS */
.mitech-hero--home{
  padding-top:84px;
}

.mitech-hero--home .mitech-homeband{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:4;

  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

/* blur layer (strong at top, fades out to nothing) */
.mitech-hero--home .mitech-homeband::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.03) 0%,
    rgba(255,255,255,.015) 36%,
    rgba(255,255,255,0) 100%
  );

  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,0) 100%);

  backdrop-filter: blur(18px) saturate(108%);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
}

/* keep layout untouched */
.mitech-hero--home .mitech-homeband__inner{
  position:relative;
  padding-top:14px;
  padding-bottom:14px;
}

.mitech-hero--home .mitech-homeband__text{
  text-align:center;
  max-width:920px;
  margin:0 auto;

  background:transparent !important;
  box-shadow:none !important;
  border:none !important;
}

/* readability without blocking image */
.mitech-hero--home .mitech-homeband__title{
  color:#fff;
  font-weight:950;
  letter-spacing:-.02em;
  line-height:1.12;
  margin:0 0 6px;
  font-size:clamp(1.25rem, 2.25vw, 1.85rem);
  text-shadow:
    0 10px 30px rgba(0,0,0,.55),
    0 2px 6px rgba(0,0,0,.35) !important;
}

.mitech-hero--home .mitech-homeband__kicker{
  color:rgba(255,255,255,.88);
  font-weight:800;
  font-size:.82rem;
  letter-spacing:.06em;
  margin:0 0 6px;
  text-shadow: 0 4px 14px rgba(0,0,0,.45) !important;
}

.mitech-hero--home .mitech-homeband__sub{
  color:rgba(255,255,255,.84);
  font-size:.92rem;
  line-height:1.45;
  margin:0;
  text-shadow: 0 2px 8px rgba(0,0,0,.35) !important;
}

@media(max-width:768px){
  .mitech-hero{min-height:54vh}
  .mitech-hero__nav{display:none}
}

@media (max-width:680px){
  .mitech-hero--home{ padding-top:72px; }
  .mitech-hero--home .mitech-homeband__inner{ padding-top:12px; padding-bottom:12px; }
  .mitech-hero--home .mitech-homeband__sub{ display:none; }

  /* mobile: slightly stronger blur but still no tint */
  .mitech-hero--home .mitech-homeband::before{
    backdrop-filter: blur(20px) saturate(108%);
    -webkit-backdrop-filter: blur(20px) saturate(108%);
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .mitech-hero__slide{ transition:none; }
}

/* =========================================================
   PAGE HERO TITLE BAND (Inventory/Bodyshop/etc)
========================================================= */
.mitech-hero--page .mitech-homeband{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:4;
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

/* bluish glass fade */
.mitech-hero--page .mitech-homeband::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;

  background: linear-gradient(
    180deg,
    rgba(11,31,51,.56) 0%,
    rgba(11,31,51,.30) 45%,
    rgba(11,31,51,0) 100%
  );

  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.65) 45%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,.65) 45%, rgba(0,0,0,0) 100%);

  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.mitech-hero--page .mitech-homeband__inner{
  position:relative;
  padding-top:12px;
  padding-bottom:12px;
}

.mitech-hero--page .mitech-homeband__text{
  text-align:center;
  max-width:920px;
  margin:0 auto;
}

.mitech-hero--page .mitech-homeband__title{
  color:#fff;
  font-weight:950;
  letter-spacing:-.02em;
  line-height:1.12;
  margin:0;
  font-size:clamp(1.2rem, 2.0vw, 1.6rem);
  text-shadow:
    0 10px 28px rgba(0,0,0,.55),
    0 2px 6px rgba(0,0,0,.35);
}

.mitech-hero--page .mitech-homeband__sub{
  color:rgba(255,255,255,.88);
  font-size:.95rem;
  line-height:1.35;
  margin:6px 0 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

@media (max-width:768px){
  .mitech-hero--page .mitech-homeband__sub{ display:none; }
  .mitech-hero--page .mitech-homeband__inner{ padding-top:12px; padding-bottom:12px; }
}

@media (max-width:680px){
  .mitech-hero--page .mitech-homeband::before{
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
  }
}

/* =========================================================
   SEO LOCAL FOOTER (SAFE, SUBTLE, GOOGLE-FRIENDLY)
   Add this class to the small location/service paragraph
   we inject site-wide (sales pages) and only bodyshop pages
   for bodywork keywords.
========================================================= */
.seo-local-footer{
  max-width:1200px;
  margin:18px auto 0;
  padding:0 16px 18px;
}

/* Default: light pages */
.seo-local-footer p{
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:#6b7280;
}

/* If you place it inside the dark <footer>, this auto-adjusts */
footer .seo-local-footer p{
  color:rgba(255,255,255,.70);
}

@media (max-width: 640px){
  .seo-local-footer p{font-size:11px}
}
