/* Mike Ingram Motors — shared site-wide refinements */
:root{
  --site-blue:#248cf3;
  --site-blue-deep:#1c79c9;
  --site-navy:#10253a;
  --site-white:#fff;
}

/* Shared navigation state */
.nav a[aria-current="page"],
.nav a.active{
  color:var(--site-blue) !important;
}

/* Shared closing CTA */
.cta{
  padding:32px 0 74px !important;
}
.cta .cta-box{
  position:relative;
  overflow:hidden;
  background:linear-gradient(110deg,var(--site-blue-deep),var(--site-blue)) !important;
  color:var(--site-white) !important;
  border-radius:18px !important;
  padding:44px 46px !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:30px !important;
  box-shadow:0 16px 38px rgba(16,37,58,.10);
}
.cta .cta-box::after{
  content:"";
  position:absolute;
  right:-65px;
  top:-90px;
  width:260px;
  height:260px;
  border-radius:50%;
  border:42px solid rgba(255,255,255,.12);
  pointer-events:none;
}
.cta .cta-box > *{
  position:relative;
  z-index:1;
}
.cta .cta-box h2{
  margin:0 0 8px !important;
  font-size:36px !important;
  line-height:1.08 !important;
  color:#fff !important;
}
.cta .cta-box p{
  margin:0 !important;
  color:#e7f3ff !important;
}
.cta .cta-actions,
.cta .buttons{
  display:flex !important;
  gap:12px !important;
  flex-wrap:wrap !important;
}
.cta .btn.primary,
.cta .btn.secondary{
  background:#fff !important;
  color:var(--site-navy) !important;
  border-color:#fff !important;
}
.cta .btn.ghost{
  background:transparent !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.38) !important;
}

/* Give closing sections consistent breathing room before the footer */
main > .cta:last-child{
  margin-top:0;
}

footer .footer-links{
  row-gap:8px;
}

@media(max-width:850px){
  .cta{
    padding:24px 0 58px !important;
  }
  .cta .cta-box{
    display:block !important;
    padding:32px 28px !important;
  }
  .cta .cta-box h2{
    font-size:30px !important;
  }
  .cta .cta-actions,
  .cta .buttons{
    margin-top:20px;
  }
}


/* Shared back-to-top control */
.back-to-top{
  position:fixed;
  right:22px;
  bottom:22px;
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#10253a;
  color:#fff;
  text-decoration:none;
  font-size:24px;
  font-weight:800;
  line-height:1;
  box-shadow:0 8px 24px rgba(16,37,58,.22);
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
  z-index:999;
}
.back-to-top:hover,
.back-to-top:focus{
  background:#248cf3;
  color:#fff;
}
.back-to-top.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
@media (max-width:700px){
  .back-to-top{
    right:16px;
    bottom:16px;
    width:42px;
    height:42px;
    font-size:22px;
  }
}


/* Form submission popup */
.popup-open{overflow:hidden}
.form-popup[hidden]{display:none}
.form-popup{
  position:fixed;
  inset:0;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.form-popup__backdrop{
  position:absolute;
  inset:0;
  background:rgba(16,37,58,.72);
  backdrop-filter:blur(3px);
}
.form-popup__panel{
  position:relative;
  width:min(480px,100%);
  background:#fff;
  border-radius:22px;
  padding:38px 34px 32px;
  text-align:center;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  animation:formPopupIn .22s ease-out;
}
.form-popup__close{
  position:absolute;
  top:12px;
  right:14px;
  border:0;
  background:transparent;
  color:#6d7780;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.form-popup__icon{
  width:66px;
  height:66px;
  margin:0 auto 18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#248cf3;
  color:#fff;
  font-size:34px;
  font-weight:900;
}
.form-popup h2{
  margin:0 0 10px;
  color:#10253a;
  font-size:30px;
  line-height:1.05;
}
.form-popup p{
  margin:0 auto 24px;
  max-width:380px;
  color:#5f6b75;
  font-size:18px;
  line-height:1.45;
}
.form-popup__button{
  min-width:130px;
  cursor:pointer;
}
.form-popup.is-error .form-popup__icon{
  background:#10253a;
}
@keyframes formPopupIn{
  from{opacity:0;transform:translateY(12px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media (max-width:600px){
  .form-popup{padding:16px}
  .form-popup__panel{padding:34px 22px 26px;border-radius:18px}
  .form-popup h2{font-size:26px}
  .form-popup p{font-size:17px}
}


/* GLOBAL SITE HEADER — single source of truth */
.site-header{
  position:sticky !important;
  top:0 !important;
  z-index:1000 !important;
  background:rgba(255,255,255,.96) !important;
  border-bottom:1px solid #e4e7ea !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.site-header .site-header__inner{
  width:min(1180px,calc(100% - 40px)) !important;
  min-height:82px !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:28px !important;
}
.site-header .site-brand{
  flex:0 0 auto !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:25px !important;
  line-height:.86 !important;
  letter-spacing:-.02em !important;
  font-weight:900 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.site-header .site-brand__mike{
  color:#10253a !important;
  font-weight:900 !important;
}
.site-header .site-brand__ingram{
  color:#248cf3 !important;
  font-weight:900 !important;
}
.site-header .site-brand__motors{
  color:#155f9e !important;
  font-weight:900 !important;
  letter-spacing:-.01em !important;
}
.site-header .site-nav{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:26px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.site-header .site-nav a{
  color:#17212b !important;
  text-decoration:none !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.site-header .site-nav a:hover,
.site-header .site-nav a:focus,
.site-header .site-nav a[aria-current="page"]{
  color:#248cf3 !important;
}
.site-header .site-header__call{
  flex:0 0 auto !important;
  background:#248cf3 !important;
  color:#fff !important;
  padding:12px 16px !important;
  border-radius:7px !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.site-header .site-header__call:hover,
.site-header .site-header__call:focus{
  background:#1c79c9 !important;
  color:#fff !important;
}
@media(max-width:900px){
  .site-header .site-header__inner{
    width:min(1180px,calc(100% - 26px)) !important;
    min-height:70px !important;
    gap:16px !important;
  }
  .site-header .site-brand{
    font-size:19px !important;
  }
  .site-header .site-nav{
    display:none !important;
  }
  .site-header .site-header__call{
    margin-left:auto !important;
    font-size:12px !important;
    padding:10px 12px !important;
  }
}

/* Legal pages */
.legal-page{padding:70px 0 82px}
.legal-copy{max-width:850px}
.legal-copy h1{margin:8px 0 16px;color:#10253a}
.legal-copy .lead{max-width:720px;margin-bottom:42px}
.legal-copy h2{margin:32px 0 10px;color:#10253a;font-size:24px}
.legal-copy p{color:#5f6b75;line-height:1.7}
.legal-copy a{color:#248cf3}
.legal-updated{margin-top:42px;padding-top:22px;border-top:1px solid #e4e7ea}
@media(max-width:700px){.legal-page{padding:48px 0 62px}}
