/*
 * AT Engineering v1.3.0 — targeted original-site fidelity layer.
 * Scoped to already imported/editable Alfa Builder v1.2 component classes.
 * Does not inject business content, replace the page JSON, or touch customizer.css.
 */
:root { --atec-home-blue:#078fb6; --atec-home-grey:#f6f7f7; }

/* Header is an overlay on home and a white compact strip on interior pages. */
@media (min-width:951px) {
 body.atec-template #sp-header .atec-header-inner {
   width:min(calc(100% - 34px),945px)!important;
   max-width:945px!important;
 }
 body.atec-template #sp-header .atec-logo-panel {
   position:relative;
   z-index:4;
   flex:0 0 100px!important;
   width:100px!important;
   height:87px!important;
   border-radius:0 0 12px 12px!important;
 }
 body.atec-template #sp-header .atec-logo-panel img {
   display:block!important;
   width:auto!important;
   max-width:90px!important;
   height:76px!important;
   object-fit:contain!important;
 }
 body.atec-template .atec-desktop-nav .atec-nav-item>a {
   font-size:12px!important;
   line-height:1.2!important;
   white-space:nowrap;
 }
}
/* Preserve slide artwork and the original bottom-left caption hierarchy. */
body.atec-home .atec-home-hero {overflow:hidden!important;}
body.atec-home .atec-home-hero .mod-alfahero__content,
body.atec-home .atec-home-hero .mod-alfahero__content-wrap {
  text-align:start!important;
}
body.atec-home .atec-home-hero .mod-alfahero__title {
  font-weight:600!important;
  font-size:clamp(22px,2.25vw,30px)!important;
  text-shadow:0 1px 4px rgba(0,0,0,.25);
}
body.atec-home .atec-home-hero .mod-alfahero__overlay {
 background:linear-gradient(to bottom,rgba(0,15,33,.19) 0%,transparent 28%,transparent 58%,rgba(0,11,24,.46) 100%)!important;
}

/* Company introduction: remove accidental double outline inherited from v1.1. */
body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-intro .tb-col:last-child .tb-image:before,
body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-intro .tb-col:last-child .tb-image:after {
 content:none!important;display:none!important;border:0!important;
}
body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-intro .tb-col:last-child .tb-addon-image:before {
 border-width:2px!important;
 inset:0!important;
}
body.atec-home .atec-main .atec-v12-intro .tb-addon-heading::after {
 margin-top:10px!important;
 height:1px!important;
}
body.atec-home .atec-main .atec-v12-intro .tb-col-7 .tb-text,
body.atec-home .atec-main .atec-v12-intro .tb-col-7 .tb-text p {
 text-align:start!important;
}

/* Main mismatch: inherited h2 alignment wins over centered row.
   Apply alignment on the heading element itself and center the whole intro row. */
body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-why > .tb-container > .tb-row:first-child,
body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-accreditations > .tb-container > .tb-row.atec-v12-section-intro {
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 text-align:center!important;
 width:100%!important;
 margin-inline:auto!important;
}
body.atec-home .atec-main .atec-v12-why > .tb-container > .tb-row:first-child > .tb-col,
body.atec-home .atec-main .atec-v12-accreditations > .tb-container > .tb-row.atec-v12-section-intro > .tb-col {
 width:100%!important;
 flex:0 0 100%!important;
 max-width:100%!important;
 text-align:center!important;
 margin-inline:auto!important;
}
body.atec-home .atec-main .atec-v12-why > .tb-container > .tb-row:first-child .tb-addon-heading,
body.atec-home .atec-main .atec-v12-accreditations > .tb-container > .tb-row.atec-v12-section-intro .tb-addon-heading {
 display:block!important;
 width:100%!important;
 text-align:center!important;
 margin-inline:auto!important;
}
body.atec-home .atec-main .atec-v12-why > .tb-container > .tb-row:first-child .tb-heading,
body.atec-home .atec-main .atec-v12-accreditations > .tb-container > .tb-row.atec-v12-section-intro .tb-heading {
 display:block!important;
 float:none!important;
 width:100%!important;
 text-align:center!important;
 margin-inline:auto!important;
 color:var(--atec-home-blue)!important;
 font-size:clamp(25px,2.55vw,32px)!important;
 line-height:1.3!important;
}
body.atec-home .atec-main .atec-v12-why > .tb-container > .tb-row:first-child .tb-text,
body.atec-home .atec-main .atec-v12-accreditations > .tb-container > .tb-row.atec-v12-section-intro .tb-text,
body.atec-home .atec-main .atec-v12-why > .tb-container > .tb-row:first-child .tb-text p,
body.atec-home .atec-main .atec-v12-accreditations > .tb-container > .tb-row.atec-v12-section-intro .tb-text p {
 text-align:center!important;
 margin-inline:auto!important;
}
/* Older builder generates block wrappers in some releases; this catches them without
   touching other pages or individual benefit headings. */
body.atec-home .atec-main section.atec-v12-why .tb-row:first-child .tb-col-12 > .tb-addon-heading .tb-heading,
body.atec-home .atec-main section.atec-v12-accreditations .atec-v12-section-intro .tb-heading {
 text-align:center!important;
}

/* Faithful compact 2x2 advantages: icons around the middle, understated dividing rules. */
@media (min-width:701px) {
 body.atec-home .atec-main .atec-v12-why .tb-row.atec-v12-benefit-row {
    gap:32px!important;
    margin:0 auto 5px!important;
    max-width:890px!important;
    align-items:stretch!important;
 }
 body.atec-home .atec-main .atec-v12-why .tb-row.atec-v12-benefit-row > .tb-col.atec-v12-benefit-card {
    min-height:135px!important;
    padding:14px 0 18px!important;
    border-bottom:1px solid rgba(100,125,140,.10)!important;
 }
 body.atec-home .atec-main .atec-v12-why .atec-v12-benefit-left {
    grid-template-columns:minmax(0,1fr) 84px!important;
 }
 body.atec-home .atec-main .atec-v12-why .atec-v12-benefit-right {
    grid-template-columns:84px minmax(0,1fr)!important;
 }
}
body.atec-home .atec-main .atec-v12-benefit-card .tb-heading {
 font-size:17px!important;
 line-height:1.35!important;
 font-weight:650!important;
}
body.atec-home .atec-main .atec-v12-benefit-card .tb-text {
 line-height:1.55!important;
 font-size:12.5px!important;
}
body.atec-home .atec-main .atec-v12-benefit-card .tb-image img {
 width:75px!important;
 height:75px!important;
 object-fit:contain!important;
}
body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-why {
 background:linear-gradient(171deg,#fff 0 9%,#f7f8f8 9% 88%,#fff 88%)!important;
}

/* Accredited partners should read as three equal quiet cards. */
body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-accreditations {
 background:linear-gradient(175deg,#fff 0 9%,#f8f8f8 9% 89%,#fff 89%)!important;
}
body.atec-home .atec-main .atec-v12-accreditations .tb-row.atec-v12-acc-logos {
 width:min(100%,840px)!important;
 margin-inline:auto!important;
}
body.atec-home .atec-main .atec-v12-accreditations .tb-row.atec-v12-acc-logos>.tb-col {
 box-shadow:none!important;
 border:1px solid #e8eaeb!important;
 background:#f5f5f5!important;
}

/* Footer modules, when published, restore the three-column original. */
body.atec-template #sp-footer.atec-footer.trm-wy-footer {padding-top:44px!important;}
body.atec-template #sp-footer .atec-v12-footer .tb-row>.tb-col + .tb-col {
 border-inline-start:1px solid rgba(218,233,239,.10)!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:nth-child(2) {
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:flex-start!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:nth-child(2) .tb-text {
 max-width:230px!important;
 text-align:center!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:nth-child(2) .tb-text p {
 text-align:center!important;
}
body.atec-template #sp-footer .atec-v12-footer a[href^="mailto:"],
body.atec-template #sp-footer .atec-v12-footer a[href^="tel:"] {color:#bfdee6!important;}
body.atec-template .atec-cta-region .atec-v12-cta .tb-col {
 gap:35px!important;
}
/* Do not add social links when their real destinations are not known. */

@media(max-width:950px) {
 body.atec-home .atec-main .atec-v12-intro .tb-col-7,
 body.atec-home .atec-main .atec-v12-intro .tb-col-5 {max-width:100%!important;}
 body.atec-template #sp-footer .atec-v12-footer .tb-row>.tb-col + .tb-col {border-inline-start:0!important;}
}
@media(max-width:700px) {
 body.atec-home .atec-main .atec-v12-why > .tb-container > .tb-row:first-child .tb-heading,
 body.atec-home .atec-main .atec-v12-accreditations > .tb-container > .tb-row.atec-v12-section-intro .tb-heading {
   font-size:25px!important;
 }
 body.atec-home .atec-main .atec-v12-benefit-card .tb-image img {
   width:58px!important;height:58px!important;
 }
 body.atec-template .atec-cta-region .atec-v12-cta .tb-col {
   gap:8px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.atec-home .atec-main .atec-v12-benefit-card {transition:none!important;animation:none!important;}
}
