/* SG-Tronic Motorsport V8.7 — header breathing room, all desktop widths.
   Applies only to navigation/header positioning, leaves service-page hero, cards, SEO untouched. */

/* The utility strip remains the slim black top row.
   The approved logo has an independent, generous second row,
   then service navigation fills its own separate bar. */
@media(min-width:760px){
 body.sgtm-v4 .v82-header .v82-header-wrap {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:126px 62px!important;
    width:min(1780px,calc(100% - 48px))!important;
    max-width:none!important;
    height:188px!important;
    min-height:188px!important;
    padding:0!important;
    margin:0 auto!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:0 16px!important;
    position:relative!important;
 }
 body.sgtm-v4 .v82-header .v82-brand {
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    align-self:center!important;
    display:flex!important;
    width: min(360px,50vw)!important;
    max-width:min(360px,50vw)!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:0!important;
 }
 body.sgtm-v4 .v82-header .v83-brand-image {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    object-fit:contain!important;
 }
 body.sgtm-v4 .v82-header .v82-nav-actions {
    grid-column:2!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:center!important;
    display:flex!important;
 }
 body.sgtm-v4 .v82-header .v82-nav-actions .v82-mobile-btn {display:none!important}
 body.sgtm-v4 .v82-header .v82-nav-actions .v82-quote {
    display:inline-flex!important;
    align-items:center!important;
    white-space:nowrap!important;
 }
 body.sgtm-v4 .v82-header .v82-nav {
    grid-column:1/-1!important;
    grid-row:2!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    justify-content:space-between!important;
    align-items:stretch!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    height:62px!important;
    min-height:62px!important;
    max-height:none!important;
    margin:0!important;
    padding:0 0!important;
    gap:clamp(0px,.4vw,8px)!important;
    overflow:visible!important;
    border:0!important;
    border-top:1px solid rgba(77,174,209,.28)!important;
    box-shadow:none!important;
    background:transparent!important;
 }
 body.sgtm-v4 .v82-header .v82-nav-link,
 body.sgtm-v4 .v82-header .v82-drop>summary {
    height:61px!important;
    min-height:61px!important;
    width:auto!important;
    flex:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 clamp(7px,.95vw,15px)!important;
    margin:0!important;
    white-space:nowrap!important;
    font-size:clamp(10px,.82vw,13px)!important;
    letter-spacing:.045em!important;
    line-height:1.1!important;
    border:0!important;
 }
 body.sgtm-v4 .v82-header .v82-drop {
    display:flex!important;
    align-items:stretch!important;
    flex:0 0 auto!important;
    min-width:0!important;
    position:static!important;
 }
 body.sgtm-v4 .v82-header .v82-popover {
    display:none;
    position:absolute!important;
    top:100%!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-height:min(720px,calc(100dvh - 195px))!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    z-index:999!important;
    border:1px solid #346d89!important;
    border-top:3px solid #38d7fa!important;
    background:linear-gradient(135deg,#081725,#0b2a40)!important;
    box-shadow:0 32px 70px rgba(0,0,0,.8)!important;
    margin:0!important;
 }
 body.sgtm-v4 .v82-header .v82-drop[open]>.v82-popover {display:block!important}
}
/* Keep medium desktop zoom comfortable after removing the two menu links. */
@media(min-width:760px) and (max-width:1010px){
 body.sgtm-v4 .v82-header .v82-header-wrap{width:calc(100% - 26px)!important}
 body.sgtm-v4 .v82-header .v82-brand{width:min(324px,48vw)!important;max-width:min(324px,48vw)!important}
 body.sgtm-v4 .v82-header .v82-nav-link,
 body.sgtm-v4 .v82-header .v82-drop>summary{font-size:10px!important;padding:0 6px!important;letter-spacing:.01em!important}
}
/* Mobile: modest breathing room, and drawer top matches increased row height. */
@media(max-width:759px){
 body.sgtm-v4 .v82-header .v82-header-wrap {
    height:88px!important;
    min-height:88px!important;
    width:calc(100% - 28px)!important;
    display:flex!important;
    align-items:center!important;
 }
 body.sgtm-v4 .v82-header .v82-nav {
    top:88px!important;
    height:calc(100dvh - 88px)!important;
    max-height:calc(100dvh - 88px)!important;
 }
}
