/* SG-Tronic Motorsport V8.5 — robust desktop navigation and 800px hero height.
   Overrides V8.4 last. Existing page URLs, SEO, content and logo preserved. */
/* True wide-desktop single-row navigation */
@media (min-width:1501px) {
 body.sgtm-v4 .v82-header .v82-header-wrap{width:min(1780px,calc(100% - 52px));gap:clamp(8px,.7vw,14px);height:100px}
 body.sgtm-v4 .v82-header .v82-brand{flex:0 0 300px!important;max-width:300px!important}
 body.sgtm-v4 .v82-header .v82-nav{display:flex;position:static;flex:1 1 auto;gap:clamp(2px,.45vw,9px);min-width:0;align-items:stretch;height:100%}
 body.sgtm-v4 .v82-header .v82-nav-link,body.sgtm-v4 .v82-header .v82-drop>summary{font-size:clamp(10px,.59vw,12px);padding:0 clamp(4px,.45vw,9px)}
 body.sgtm-v4 .v82-header .v82-quote{min-width:158px;white-space:nowrap}
 body.sgtm-v4 .v82-header .v82-mobile-btn{display:none!important}
}
/* Medium/zoomed desktop: keep all navigation visible on its own bar instead of hamburger.
   The top row balances the logo and quote; second row has full-width service menus. */
@media (min-width:1101px) and (max-width:1500px) {
 body.sgtm-v4 .v82-header .v82-header-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:87px 52px;align-items:center;width:calc(100% - 44px);height:139px!important;gap:0 14px!important;max-width:1460px;position:relative}
 body.sgtm-v4 .v82-header .v82-brand{grid-column:1;grid-row:1;flex:0 0 auto!important;width:306px!important;max-width:306px!important}
 body.sgtm-v4 .v82-header .v82-nav-actions{grid-column:2;grid-row:1;justify-self:end;align-items:center}
 body.sgtm-v4 .v82-header .v82-mobile-btn{display:none!important}
 body.sgtm-v4 .v82-header .v82-nav{display:flex!important;position:static!important;grid-column:1 / -1;grid-row:2;width:100%!important;min-width:0!important;height:52px!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;box-shadow:none!important;border:0!important;background:transparent!important;flex-direction:row!important;justify-content:space-between!important;align-items:stretch!important;gap:3px!important}
 body.sgtm-v4 .v82-header .v82-nav-link, body.sgtm-v4 .v82-header .v82-drop>summary{display:flex!important;width:auto!important;min-height:52px!important;padding:0 clamp(8px,1.1vw,16px)!important;margin:0!important;white-space:nowrap!important;border-bottom:0!important;font-size:11px!important;text-align:center;justify-content:center!important}
 body.sgtm-v4 .v82-header .v82-drop{position:static!important;display:flex!important;align-items:stretch!important;min-width:0}
 body.sgtm-v4 .v82-header .v82-popover{position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;display:none;max-height:calc(100dvh - 156px)!important;overflow:auto!important;border:1px solid #34728d!important;border-top:3px solid #38d7fa!important;box-shadow:0 35px 70px #000b!important;margin:0!important;background:linear-gradient(135deg,#0a1b2b,#0a263a)!important}
 body.sgtm-v4 .v82-header .v82-drop[open]>.v82-popover{display:block!important}
 body.sgtm-v4 .v82-header .v82-nav-link:after,body.sgtm-v4 .v82-header .v82-drop>summary:after{display:block!important}
 body.sgtm-v4 .v82-header .v82-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.sgtm-v4 .v82-header .v82-panel-head{padding:19px 26px 16px}
 body.sgtm-v4 .v82-header .v82-content{padding:10px 26px 20px}
 body.sgtm-v4 .v82-header .v82-searchline{padding:15px 26px 8px}
}
/* Genuine mobile/tablet drawer only */
@media(max-width:1100px){
 body.sgtm-v4 .v82-header .v82-header-wrap{height:82px;width:calc(100% - 36px)}
 body.sgtm-v4 .v82-header .v82-brand{flex-basis:min(320px,calc(100vw - 215px))!important;max-width:min(320px,calc(100vw - 215px))!important}
 body.sgtm-v4 .v82-header .v82-mobile-btn{display:flex!important;flex-direction:column;justify-content:center;align-items:center}
 body.sgtm-v4 .v82-header .v82-nav{display:none!important;position:fixed!important;top:82px!important;left:0;right:0;width:100%!important;height:calc(100dvh - 82px);max-height:calc(100dvh - 82px);overflow:auto;background:#081b2b;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;padding:10px 18px 32px}
 body.sgtm-v4 .v82-header .v82-native-toggle:checked~.v82-nav,body.sgtm-v4 .v82-header.v82-open .v82-nav{display:flex!important}
 body.sgtm-v4 .v82-header .v82-nav-link,body.sgtm-v4 .v82-header .v82-drop>summary{width:100%;justify-content:space-between;min-height:52px;font-size:12px}
 body.sgtm-v4 .v82-header .v82-popover{position:static!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
}
@media(max-width:720px){
 body.sgtm-v4 .v82-header .v82-header-wrap{height:76px;width:calc(100% - 28px)}
 body.sgtm-v4 .v82-header .v82-nav{top:76px!important;height:calc(100dvh - 76px);max-height:calc(100dvh - 76px)}
 body.sgtm-v4 .v82-header .v82-brand{flex-basis:min(282px,calc(100vw - 84px))!important;max-width:min(282px,calc(100vw - 84px))!important}
}
@media(max-width:350px){body.sgtm-v4 .v82-header .v82-brand{flex-basis:210px!important;max-width:210px!important}}
/* 800px is the height of the visible hero, not the logo/navigation bar. */
@media(min-width:1101px){
 body.sgtm-v4 .v7-home-hero{height:800px!important;min-height:800px!important;align-items:stretch}
 body.sgtm-v4 .v7-home-hero-inner{min-height:800px!important;padding:106px 0 78px!important;align-items:flex-start!important}
 body.sgtm-v4 .v7-home-copy{padding-top:0;margin-top:0}
 body.sgtm-v4 .v7-home-scene{object-position:center 48%;height:100%}
 body.sgtm-v4 .inner-hero.v7-inner-hero{min-height:800px!important;padding:100px 0!important;display:flex;align-items:center}
 body.sgtm-v4 .inner-hero.v7-inner-hero>.container{width:100%}
 body.sgtm-v4 .inner-hero.v7-inner-hero .inner-layout{align-items:center}
 body.sgtm-v4 .inner-hero:not(.v7-inner-hero){min-height:800px!important;display:flex;align-items:center;padding:105px 0!important}
 body.sgtm-v4 .inner-hero:not(.v7-inner-hero)>.container{width:100%}
}
@media(min-width:721px) and (max-width:1100px){
 body.sgtm-v4 .v7-home-hero{height:740px!important;min-height:740px!important}
 body.sgtm-v4 .v7-home-hero-inner{min-height:740px!important;padding:80px 0!important;align-items:flex-start!important}
 body.sgtm-v4 .inner-hero.v7-inner-hero{min-height:700px!important;padding:84px 0!important}
 body.sgtm-v4 .inner-hero:not(.v7-inner-hero){min-height:660px!important;padding:94px 0!important}
}
@media(max-width:720px){
 body.sgtm-v4 .v7-home-hero{min-height:800px!important;height:800px!important}
 body.sgtm-v4 .v7-home-hero-inner{padding-top:62px!important;padding-bottom:45px!important;align-items:flex-start!important}
 body.sgtm-v4 .inner-hero.v7-inner-hero{min-height:0!important;padding:72px 0 75px!important}
 body.sgtm-v4 .inner-hero:not(.v7-inner-hero){min-height:430px!important;padding:82px 0!important}
}
