/* AT Engineering v1.3.1 targeted layout regression repair.
   All section/module copy remains editable in Alfa Builder.
   Loaded LAST. Do not modify media/css/customizer.css. */

/* 1. v1.3.0 allocated two half-width flex items but increased their gap.
   Two * (50% - 13px) + 32px > 100%, forcing the four benefits into a single column.
   Use an explicit two-column grid, immune to flex basis and gap rounding. */
@media (min-width: 761px) {
  body.atec-home .atec-main .tragbuilder-page > .tb-section.atec-v12-why
  > .tb-container > .tb-row.atec-v12-benefit-row {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:30px!important;
    width:min(100%,900px)!important;
    max-width:900px!important;
    margin:0 auto 13px!important;
    justify-content:stretch!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 {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:122px!important;
    flex:none!important;
    display:grid!important;
    align-content:center!important;
    padding:10px 0 18px!important;
  }
}
/* The icon remains at the central seam, with text on the outer sides. */
body.atec-home .atec-main .atec-v12-benefit-row .atec-v12-benefit-left {
  grid-template-columns:minmax(0,1fr) 80px!important;
}
body.atec-home .atec-main .atec-v12-benefit-row .atec-v12-benefit-right {
  grid-template-columns:80px minmax(0,1fr)!important;
}
body.atec-home .atec-main .atec-v12-why .atec-v12-benefit-card .tb-addon {min-width:0!important}
body.atec-home .atec-main .atec-v12-why .atec-v12-benefit-card .tb-image {margin:0 auto!important}
body.atec-home .atec-main .atec-v12-why > .tb-container > .tb-row:first-child {margin-bottom:27px!important}

/* 2. Strictly local footer layout styles: ensure any surviving <li> or <a>
   behaves as a separate menu item even when Joomla strips list containers. */
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text {
  display:block!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text ul,
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text ol {
  display:block!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text li {
  display:block!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  list-style:none!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text a[href] {
  display:block!important;
  position:relative;
  width:100%!important;
  padding:6px 8px 7px 20px!important;
  border-bottom:1px solid rgba(255,255,255,.13)!important;
  text-align:start!important;
  text-decoration:none!important;
  color:#d6e0e4!important;
  line-height:1.4!important;
  font-size:13px!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text a[href]:before {
  content:'›';position:absolute;inset-inline-start:1px;color:#12a3c9;font-size:19px;
  line-height:15px;top:6px;
}
/* Avoid duplicate bullets when both the list and anchors survive filtering. */
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text li:before {content:none!important;}
body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text a[href]:hover {color:#7ed6ec!important;}

/* Keep footer text, phone/email links and section title on independent lines. */
body.atec-template #sp-footer .atec-v12-footer .tb-col:last-child .tb-text {
  display:block!important;
  overflow-wrap:anywhere!important;
  text-align:start!important;
  line-height:1.8!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:last-child .tb-text p {display:block!important;margin:0 0 13px!important;}
body.atec-template #sp-footer .atec-v12-footer .tb-col:last-child .tb-text a[href^="mailto:"] {
  display:block!important;overflow-wrap:anywhere!important;margin-top:3px!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:last-child .tb-text hr {
  display:block!important;height:1px!important;width:100%!important;
  margin:15px 0!important;border:0!important;
  background:rgba(255,255,255,.14)!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-col:last-child .tb-text h3 {
  display:block!important;margin:14px 0 8px!important;
  font-size:19px!important;
  color:#e1edf1!important;
}
body.atec-template #sp-footer .atec-v12-footer .tb-row {width:100%!important;}

/* 3. The accessibility skip-link must be visually hidden until a keyboard
   user presses Tab. Do not remove it from the document or disable its action. */
body.atec-template a.atec-skip-link,
body.atec-template a.atec-skip-link:focus:not(:focus-visible) {
  position:absolute!important;
  top:0!important;left:0!important;
  width:1px!important;height:1px!important;
  margin:0!important;padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  opacity:0!important;
}
body.atec-template a.atec-skip-link:focus-visible {
  position:fixed!important;
  z-index:99999!important;
  top:10px!important;
  left:12px!important;
  width:auto!important;height:auto!important;
  padding:10px 16px!important;margin:0!important;
  clip-path:none!important;
  opacity:1!important;
  color:#073048!important;
  background:#fff!important;
  border:2px solid #008fbe!important;
  border-radius:4px!important;
}

/* 4. Improve readability of the hero title during normal slide display,
   without forcing slides visible or interfering with Alfa Hero transitions. */
body.atec-home .atec-home-hero .mod-alfahero__slide.is-active .mod-alfahero__title {
  color:#fff!important;
  text-shadow:0 2px 7px rgba(0,0,0,.65)!important;
}

/* 5. One-column benefits only on phones. */
@media (max-width:760px) {
  body.atec-home .atec-main .tragbuilder-page>.tb-section.atec-v12-why
  >.tb-container>.tb-row.atec-v12-benefit-row {
    display:grid!important;grid-template-columns:1fr!important;
    width:100%!important;max-width:540px!important;
    margin:0 auto 14px!important;gap:0!important;
  }
  body.atec-home .atec-main .atec-v12-why .tb-row.atec-v12-benefit-row
  >.tb-col.atec-v12-benefit-card {
    width:100%!important;max-width:none!important;flex:none!important;
    grid-template-columns: minmax(0,1fr) 64px!important;
    min-height:100px!important;box-sizing:border-box!important;
  }
  body.atec-home .atec-main .atec-v12-why .tb-row.atec-v12-benefit-row
  >.tb-col.atec-v12-benefit-right {grid-template-columns:64px minmax(0,1fr)!important;}
  body.atec-template #sp-footer .atec-v12-footer .tb-col {width:100%!important;max-width:100%!important;}
  body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text a[href] {font-size:14px!important;}
}
html[dir="rtl"] body.atec-template #sp-footer .atec-v12-footer .tb-col:first-child .tb-text a[href] {
  text-align:start!important;
  padding-inline:20px 8px!important;
}
@media (prefers-reduced-motion:reduce) {
  body.atec-home .atec-main .atec-v12-benefit-card {animation:none!important;transition:none!important;}
}
