/* SG-Tronic Motorsport V524 — closing CTA and footer alignment.
   Pure layout refinement, matching the full-width pre-footer reference band.
   No site-wide hero, navigation, typography or footer branding changes. */

/* Standard services: equalise the pre-footer CTA vertical weight on desktop. */
@media (min-width: 761px){
 body#sgtm-premium-v223 main > section.cta.audit-compact-v224:last-child,
 body#sgtm-premium-v223 main > section.sa151-cta:last-child,
 body#sgtm-premium-v223 main > section.intl143-final-cta:last-child,
 body#sgtm-premium-v223 main > section.cta.cta-secondary-light:last-child{
   min-height:clamp(300px,19.2vw,365px)!important;
   box-sizing:border-box!important;
 }
}

/* Case studies: remove the light empty strip produced by final main padding. */
body#sgtm-premium-v223 main.case-study-main:has(.case478-content > section.case-cta:last-child){
  padding-bottom:0!important;
}
/* Case-study sections are a full-width continuation of the main site theme,
   with copy and CTA buttons still constrained to the original content width. */
body#sgtm-premium-v223 main.case-study-main .case478-content > section.case-cta:last-child{
  position:relative!important;
  box-sizing:border-box!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:100vw!important;
  max-width:none!important;
  margin:0!important;
  padding:clamp(52px,5.1vw,86px) 0!important;
  background:linear-gradient(110deg,#081d2f 0%,#113750 100%)!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body#sgtm-premium-v223 main.case-study-main .case478-content > section.case-cta:last-child .case-cta-box{
  box-sizing:border-box!important;
  width:min(100%,1360px)!important;
  max-width:1360px!important;
  margin:0 auto!important;
  padding:0 clamp(22px,5.2vw,100px)!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Specialist case-study CTAs (including BMW, Jeep, Cupra and SID804):
   match the height, uninterrupted background and wide composition of the reference. */
body#sgtm-premium-v223 main.sid467 .sid467-section.sid467-cta:last-child,
body#sgtm-premium-v223 main.sid467 .sid467-body > .sid467-section.sid467-cta:last-child{
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:100vw!important;
  max-width:none!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:clamp(54px,5.1vw,92px) clamp(24px,5vw,100px)!important;
  min-height:clamp(300px,19.2vw,370px)!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Mazda: the closing panel formerly ended 72px before the footer and was framed
   inside the content container. Make it a full-width closing band. */
body#sgtm-premium-v223 main.maz518.maz521-theme .maz518-page.maz518-container{
  padding-bottom:0!important;
}
body#sgtm-premium-v223 main.maz518.maz521-theme .maz518-page > section.maz518-final:last-child{
  position:relative!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:100vw!important;
  max-width:none!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:clamp(54px,5.1vw,92px) clamp(24px,5vw,100px)!important;
  min-height:clamp(300px,19.2vw,370px)!important;
  border:0!important;
  border-top:0!important;
  background:linear-gradient(110deg,#081d2f,#113750)!important;
  box-shadow:none!important;
}

/* Account dashboard is not a marketing CTA; preserve its informative panel,
   but remove the trailing blank area before the shared footer. */
body main.shell:has(> section.bottom:last-child){padding-bottom:0!important}
body main.shell > section.bottom:last-child{
  margin-bottom:0!important;
  padding-bottom:32px!important;
}

/* Never impose desktop heights on narrow layouts. Keep the last band flush. */
@media(max-width:760px){
 body#sgtm-premium-v223 main.case-study-main .case478-content > section.case-cta:last-child{
   padding:36px 0!important;
 }
 body#sgtm-premium-v223 main.sid467 .sid467-section.sid467-cta:last-child,
 body#sgtm-premium-v223 main.sid467 .sid467-body > .sid467-section.sid467-cta:last-child,
 body#sgtm-premium-v223 main.maz518.maz521-theme .maz518-page > section.maz518-final:last-child{
   padding:40px 22px!important;
   min-height:0!important;
 }
}
