/*
Theme Name: Moonauto Header V4.3
Template: motors
Version: 4.3.0
Description: Replaces the actual standard Motors header; keeps the parent navigation.
Text Domain: moonauto-header-v37
*/
#header .moonauto32{position:relative!important;background:#10161c!important;min-height:170px;padding:23px 0;overflow:hidden}
#header .moonauto32:before{content:"";position:absolute;inset:0 0 0 38%;background:linear-gradient(90deg,#10161c 0%,rgba(16,22,28,.55) 35%,rgba(16,22,28,.35) 100%),url('assets/car-banner.jpg') center center/cover no-repeat;opacity:.8;pointer-events:none}
#header .moonauto32:after{content:"";position:absolute;bottom:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#a8b2ba,transparent)}
#header .moonauto32-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:32px;min-height:124px}
#header .moonauto32-logo{flex:0 0 auto;max-width:34%}
#header .moonauto32-logo img{display:block;width:287px;max-width:100%;height:auto;object-fit:contain}
#header .moonauto32-contact{display:flex;flex-direction:column;gap:8px;align-items:flex-start;background:rgba(8,12,17,.66);padding:15px 21px;border:1px solid rgba(220,230,240,.22);border-radius:8px;backdrop-filter:blur(5px)}
#header .moonauto32-contact a,#header .moonauto32-address{display:flex;align-items:center;gap:12px;text-decoration:none;color:#f4f6f8!important;font-size:14px;line-height:1.25}
#header .moonauto32-contact small{display:block;color:#bbc4cc;font-size:11px;font-weight:400;letter-spacing:.07em;text-transform:uppercase}
#header .moonauto32-contact strong{font-size:14px;color:#fff;font-weight:600}
#header .moonauto32-icon{color:#cbd3db;font-size:19px;width:23px;text-align:center}
#header .moonauto32 .mobile-menu-trigger{position:relative;z-index:4}
#header .moonauto32 .mobile-menu-holder{display:none}
#header .header-nav-fixed{position:relative!important;top:auto!important}
@media(max-width:991px){#header .moonauto32{padding:14px 0;min-height:0}#header .moonauto32-inner{min-height:0;flex-wrap:wrap;gap:12px}#header .moonauto32-logo{max-width:65%}#header .moonauto32-logo img{max-height:78px;width:auto}#header .moonauto32-contact{width:100%;padding:10px 12px;gap:6px}#header .moonauto32:before{left:15%;opacity:.45}#header .moonauto32 .mobile-menu-trigger{margin-left:auto}#header .moonauto32 .mobile-menu-holder{width:100%;order:5}#header .moonauto32 .mobile-menu-holder.active{display:block}}


/* V3.4: ONLY align the existing upper banner content to the site's
   Bootstrap container. Do not change navigation/menu styles. */
#header .moonauto32 > .moonauto32-inner {
  box-sizing:border-box;
  width:100%;
  max-width:1170px;
  padding-left:15px;
  padding-right:15px;
  margin-left:auto;
  margin-right:auto;
}
#header .moonauto32 .moonauto32-logo {margin-left:0!important;padding-left:0!important;}
#header .moonauto32 .moonauto32-contact {margin-left:auto;margin-right:0!important;}
@media(min-width:992px) and (max-width:1199px){#header .moonauto32 > .moonauto32-inner{max-width:970px}}
@media(min-width:768px) and (max-width:991px){#header .moonauto32 > .moonauto32-inner{max-width:750px}}
@media(max-width:767px){#header .moonauto32 > .moonauto32-inner{max-width:100%;}}

/* V3.5: Change ONLY the orange/red active navigation tab and hover state
   to a brushed silver finish. Keep layout, spacing and other components. */
#header .main-menu .header-menu > li.current-menu-item > a,
#header .main-menu .header-menu > li.current_page_item > a,
#header .main-menu .header-menu > li.current-menu-ancestor > a,
#header .main-menu .header-menu > li:hover > a {
  background: linear-gradient(180deg,#f3f5f7 0%,#cbd1d6 48%,#aab3bb 100%) !important;
  background-color: #cbd1d6 !important;
  color: #202830 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

/* V3.7: compact textual content ONLY. Header, navigation, filters,
   vehicle cards and their typography are deliberately excluded. */
body .entry-content > p,
body .wpb_text_column .wpb_wrapper > p,
body .elementor-widget-text-editor .elementor-widget-container > p {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.55;
}
body .entry-content > h1, body .entry-content > h2,
body .entry-content > h3, body .entry-content > h4,
body .wpb_text_column .wpb_wrapper > h1,
body .wpb_text_column .wpb_wrapper > h2,
body .wpb_text_column .wpb_wrapper > h3 {
  margin-bottom: 12px;
}
body .entry-content > p + p,
body .wpb_text_column .wpb_wrapper > p + p { margin-top: 0; }

/* V4.0: desktop upper banner only. */
@media(min-width:992px){
 #header .moonauto32{box-sizing:border-box;min-height:125px;padding:8px 0;}
 #header .moonauto32 > .moonauto32-inner{min-height:109px;gap:24px;align-items:center;}
 #header .moonauto32 .moonauto32-contact{box-sizing:border-box;gap:4px;padding:7px 15px;align-self:center;}
 #header .moonauto32 .moonauto32-contact a,#header .moonauto32 .moonauto32-address{gap:10px;line-height:1.15;}
 #header .moonauto32 .moonauto32-contact small{font-size:10px;}
 #header .moonauto32 .moonauto32-contact strong{font-size:13px;}
}

/* V4.2: mobile header and menu only */
@media (max-width:991px){
 #header .moonauto32 > .moonauto32-inner{justify-content:center;}
 #header .moonauto32 .moonauto32-logo{flex:0 0 100%;max-width:100%;margin:0!important;text-align:center;}
 #header .moonauto32 .moonauto32-logo img{margin:0 auto;max-width:85%;}
 #header .moonauto32 .mobile-menu-trigger{box-sizing:border-box;float:none!important;display:flex!important;flex-direction:column;justify-content:center;align-items:flex-end;gap:5px;width:100%!important;height:44px!important;margin:0!important;padding:8px 15px!important;background:transparent!important;border:0;order:4;}
 #header .moonauto32 .mobile-menu-trigger span{display:block;width:27px!important;height:3px!important;margin:0!important;background:#E8EDF0!important;border-radius:2px;box-shadow:0 1px 2px #75818a;}
 #header .moonauto32 .mobile-menu-holder,#header .moonauto32 .mobile-menu-holder .header-menu,#header .moonauto32 .mobile-menu-holder .sub-menu{background:#B9C2C8!important;}
 #header .moonauto32 .mobile-menu-holder a{color:#202830!important;}
}
