/*
 * ATEC v1.5.2 fidelity pass.
 * Presentation only: copy, imagery, links and layout blocks remain in
 * Alfa Builder; no site-specific content is emitted by this stylesheet.
 */

/* The original interior header is 148px high at a 1880px desktop viewport,
   with a deliberately small blue mark and full-height active menu tab. */
body.atec-inner #sp-header.trm-wy-header { border-top:0; }
.trm-wy-header .tb-container {
  width:min(calc(100% - 50px),1380px)!important;
  max-width:1380px!important;
  margin-inline:auto!important;
}
body.atec-inner .trm-wy-header .tb-row,
body.atec-inner .trm-wy-header .trm-wy-header-links .tb-button { min-height:145px; }
body.atec-inner .trm-wy-header .trm-wy-header-brand {flex-basis:15%;min-width:100px;}
body.atec-inner .trm-wy-header .trm-wy-header-brand img,
body.atec-inner .trm-wy-header .trm-wy-header-brand .tb-image img {
  width:90px!important;max-width:90px!important;height:auto!important;
  max-height:55px!important;object-fit:contain!important;
}
.trm-wy-header .trm-wy-header-links .tb-button {
  font-weight:400;font-size:clamp(16px,1.2vw,21px);padding-inline:clamp(9px,.85vw,17px);
}
.trm-wy-header .trm-wy-nav-home .tb-button::before {
  content:'';display:block;width:25px;height:25px;background-color:#0b4b86;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 11h3v10h6v-7h4v7h6V11h3L12 2zM18 7V3h3v7z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 11h3v10h6v-7h4v7h6V11h3L12 2zM18 7V3h3v7z'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.atec-home .trm-wy-header:not(.is-sticky) .trm-wy-nav-home .tb-button::before,
.trm-wy-header .trm-wy-nav-home .tb-button.is-current::before,
.trm-wy-header .trm-wy-nav-home .tb-button:hover::before {background-color:#fff;}
body.atec-inner .trm-wy-header.is-sticky .tb-row,
body.atec-inner .trm-wy-header.is-sticky .trm-wy-header-links .tb-button {min-height:75px;}
.atec-home .trm-wy-header .trm-wy-header-brand img {max-width:155px!important;}

/* Banner title stays attached to the Builder banner section on every page. */
.atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-wy-inner-banner .tb-container {
  width:min(calc(100% - 50px),1380px)!important;
}
.atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-wy-inner-banner .trm-wy-banner-sub .tb-heading {
  margin-left:140px;
}

/* The original home hero is wide and relatively shallow. Headline, secondary
   heading and tagline are all truly centered, including Builder inline styles. */
.atec-home .trm-wy-hero {
  min-height:clamp(380px,43vw,740px)!important;
  padding:90px 0 0!important;
  background-position:center center!important;
}
.atec-home .trm-wy-hero .tb-container {max-width:1450px!important;}
.atec-home .trm-wy-hero .tb-row,
.atec-home .trm-wy-hero .tb-col {text-align:center!important;}
.atec-home .trm-wy-hero .trm-wy-hero-title .tb-heading,
.atec-home .trm-wy-hero .trm-wy-hero-subline .tb-heading,
.atec-home .trm-wy-hero .trm-wy-hero-small .tb-heading {
  text-align:center!important;margin-inline:auto;letter-spacing:normal;
}
.atec-home .trm-wy-hero .trm-wy-hero-title .tb-heading {
  font-size:clamp(36px,4.2vw,76px);font-weight:400;margin-bottom:26px;
}
.atec-home .trm-wy-hero .trm-wy-hero-subline .tb-heading {
  font-size:clamp(22px,2.4vw,42px);font-weight:300;line-height:1.05;
}
.atec-home .trm-wy-hero .trm-wy-hero-small .tb-heading {
  font-size:clamp(19px,2vw,36px);font-weight:300;line-height:1.08;
}
.atec-home .trm-wy-hero .trm-wy-slide-prev,
.atec-home .trm-wy-hero .trm-wy-slide-next {bottom:5%;}

/* Home sections: original full-width pale diagonal planes, 2-column About,
   2-by-2 services on the right, centered stats/customer introductions. */
.atec-home .trm-wy-main .trm-wy-home-about,
.atec-home .trm-wy-main .trm-wy-home-services,
.atec-home .trm-wy-main .trm-wy-home-stats,
.atec-home .trm-wy-main .trm-wy-home-customers {isolation:isolate;}
.atec-home .trm-wy-main .trm-wy-home-about::before,
.atec-home .trm-wy-main .trm-wy-home-services::before,
.atec-home .trm-wy-main .trm-wy-home-stats::before,
.atec-home .trm-wy-main .trm-wy-home-customers::before {
  content:'';position:absolute;inset:3% 0;z-index:-1;
  background:linear-gradient(145deg,#fff 0%,#f3f3f3 54%,#fff 100%);
  transform:skewY(-2.15deg);pointer-events:none;
}
.atec-home .trm-wy-main .trm-wy-home-about::before,
.atec-home .trm-wy-main .trm-wy-home-customers::before {background:#fafafa;}
.atec-home .trm-wy-main .trm-wy-home-services,
.atec-home .trm-wy-main .trm-wy-home-stats {background:transparent!important;}
.atec-home .trm-wy-main .trm-wy-home-about .tb-container,
.atec-home .trm-wy-main .trm-wy-home-services .tb-container,
.atec-home .trm-wy-main .trm-wy-home-stats .tb-container,
.atec-home .trm-wy-main .trm-wy-home-customers .tb-container,
.atec-home .trm-wy-main .trm-wy-home-quote .tb-container {
  width:min(calc(100% - 50px),1400px)!important;
  max-width:1400px!important;
}
.atec-home .trm-wy-home-about .trm-wy-kicker .tb-heading,
.atec-home .trm-wy-home-services .trm-wy-kicker .tb-heading {
  text-transform:none;font-size:clamp(15px,1.25vw,19px);font-weight:300;color:#858585;
}
.atec-home .trm-wy-home-about .trm-wy-rule-title .tb-heading,
.atec-home .trm-wy-home-services .trm-wy-home-services-intro .tb-heading:not(.trm-wy-kicker .tb-heading) {
  color:#1766a9;font-size:clamp(28px,2.8vw,46px);font-weight:400;
}
.atec-home .trm-wy-home-about .trm-wy-about-image {position:relative;padding:13px;}
.atec-home .trm-wy-home-about .trm-wy-about-image img {
  width:100%!important;height:auto!important;box-shadow:none!important;
  border:12px solid #f3f3f3;
}
.atec-home .trm-wy-home-about .trm-wy-about-image::after {
  content:'';position:absolute;right:0;top:0;width:66%;height:100%;
  border-right:3px solid #1767aa;border-top:3px solid #1767aa;
  border-bottom:3px solid #1767aa;pointer-events:none;
}
.atec-home .trm-wy-main .trm-wy-home-services {padding:80px 0 90px;}
.atec-home .trm-wy-home-services .tb-row {
  display:grid!important;grid-template-columns:minmax(0,1.02fr) minmax(0,.48fr) minmax(0,.48fr);
  grid-template-rows:repeat(2,minmax(0,1fr));gap:20px 28px;align-items:start;
}
.atec-home .trm-wy-home-services .trm-wy-home-services-intro {
  grid-column:1;grid-row:1 / span 2;flex:none!important;min-width:0;padding:10px 35px 0 0;
}
.atec-home .trm-wy-home-services .trm-wy-home-service-card {
  flex:none!important;min-width:0;width:100%;max-width:290px;text-align:center;
}
.atec-home .trm-wy-home-services .trm-wy-home-service-card .tb-image {
  height:auto;aspect-ratio:1.05;display:grid;place-items:center;
  background:#e8e8e8;border:6px solid #fff;
}
.atec-home .trm-wy-home-services .trm-wy-home-service-card img {
  width:90%!important;height:90%!important;object-fit:contain!important;
}
.atec-home .trm-wy-home-services .trm-wy-service-card-link .tb-button {
  font-size:clamp(12px,1.03vw,16px)!important;color:#1969a8!important;
}
.atec-home .trm-wy-home-services .trm-wy-service-link .tb-button {
  border-radius:0!important;background:#1663a8!important;color:#fff!important;
  padding:11px 24px;box-shadow:none!important;
}
.atec-home .trm-wy-home-stats .trm-wy-section-heading .tb-heading,
.atec-home .trm-wy-home-customers .trm-wy-section-heading .tb-heading {
  text-align:center!important;font-size:clamp(28px,2.7vw,44px)!important;
  font-weight:600!important;
}
.atec-home .trm-wy-home-stats .trm-wy-section-heading .tb-text,
.atec-home .trm-wy-home-customers .trm-wy-section-heading .tb-text {
  text-align:center!important;font-size:clamp(13px,1.1vw,18px)!important;
  font-style:italic;color:#888;
}
.atec-home .trm-wy-home-stats .tb-row:not(.trm-wy-section-heading) {
  grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;
}
.atec-home .trm-wy-home-stats .trm-wy-home-stat {
  text-align:center;min-height:230px;padding:28px 12px;background:#fff;
}
.atec-home .trm-wy-home-stats .trm-wy-home-stat .tb-heading,
.atec-home .trm-wy-home-stats .trm-wy-home-stat .tb-text {text-align:center!important;}
.atec-home .trm-wy-home-stats .trm-wy-home-stat .trm-wy-stat-icon .tb-heading {
  width:74px;height:74px;font-size:37px;line-height:70px;margin:0 auto 15px;
  border:2px solid #1769aa;border-radius:50%;
}
.atec-home .trm-wy-home-customers .trm-wy-customer-track {
  width:min(100%,1260px);max-width:1260px;margin:0 auto;justify-content:flex-start;
  overflow-x:auto;scrollbar-width:none;gap:24px;padding-block:12px 22px;
}
.atec-home .trm-wy-home-customers .trm-wy-customer-track::-webkit-scrollbar {display:none;}
.atec-home .trm-wy-home-customers .trm-wy-customer-track .trm-wy-home-customer {
  flex:0 0 calc((100% - 72px)/4);width:calc((100% - 72px)/4);
  min-height:122px;padding:8px;
}
.atec-home .trm-wy-home-customers .trm-wy-home-customer img {
  width:min(100%,230px)!important;max-height:105px;height:auto!important;
}
.atec-home .trm-wy-home-quote {padding:20px 0!important;}
.atec-home .trm-wy-home-quote .tb-col {
  display:flex;align-items:center;justify-content:center;gap:60px;
}
.atec-home .trm-wy-home-quote .tb-heading,
.atec-home .trm-wy-home-quote .tb-button {
  font-size:clamp(20px,2.1vw,34px)!important;font-weight:300!important;
  line-height:1.3;text-align:center!important;margin:0;
}
.atec-home .trm-wy-home-quote .trm-wy-phone-link::before {
  content:'♧';display:inline-block;font-size:30px;margin-right:32px;color:#fff;
}

/* Restored blue global footer; each row and each link is a genuine Builder
   addon in the v0.7 footer layout, never a hardcoded template menu. */
body.atec-home #sp-footer.trm-wy-footer,
body.atec-inner #sp-footer.trm-wy-footer {
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0,rgba(255,255,255,.035) 1px,transparent 1px,transparent 5px),
    linear-gradient(115deg,#156abc 0%,#0e55ab 55%,#075098 100%)!important;
  padding:75px 0 30px!important;color:#d8e7f7!important;
}
#sp-footer.trm-wy-footer .tb-container {
  width:min(calc(100% - 55px),1450px)!important;max-width:1450px!important;
}
#sp-footer.trm-wy-footer .trm-wy-global-footer .tb-row {
  grid-template-columns:1fr 1fr 1fr;gap:55px;align-items:start;
}
#sp-footer.trm-wy-footer .trm-wy-global-footer .tb-col {
  width:100%;padding-inline:48px 40px;
}
#sp-footer.trm-wy-footer .trm-wy-global-footer .tb-col+.tb-col {
  border-left:1px solid rgba(235,245,255,.18);
}
#sp-footer.trm-wy-footer .tb-heading {
  font-family:'Raleway','Open Sans',Arial,sans-serif;
  font-size:clamp(24px,2vw,32px);color:#e8f3ff!important;font-weight:400;
  line-height:1.2;margin:0 0 30px;
}
#sp-footer.trm-wy-footer .trm-wy-footer-links .tb-heading::before {
  content:'🔗';font-size:.8em;margin-right:25px;
}
#sp-footer.trm-wy-footer .trm-wy-footer-contact .tb-heading::before {
  content:'◷';font-size:1.1em;margin-right:25px;
}
#sp-footer.trm-wy-footer .trm-wy-footer-links .tb-heading::after,
#sp-footer.trm-wy-footer .trm-wy-footer-contact .tb-heading::after {
  content:'';display:block;height:1px;margin:18px 0 0 50px;
  width:65%;background:linear-gradient(90deg,rgba(255,255,255,.3),rgba(255,255,255,.1));
}
#sp-footer.trm-wy-footer .trm-wy-footer-link {
  display:block!important;margin:0!important;border-bottom:1px solid rgba(240,250,255,.17)!important;
}
#sp-footer.trm-wy-footer .trm-wy-footer-link .tb-button-wrap {display:block!important;}
#sp-footer.trm-wy-footer .trm-wy-footer-link .tb-button {
  display:block!important;text-align:left;min-height:0!important;
  padding:9px 0!important;line-height:1.25!important;color:#dbeafa!important;
  font-family:'Open Sans',Arial,sans-serif;font-size:clamp(15px,1.05vw,19px)!important;
  font-weight:400;background:transparent!important;border:0!important;box-shadow:none!important;
}
#sp-footer.trm-wy-footer .trm-wy-footer-link .tb-button::before {
  content:'➦';display:inline-block;color:#b4d1ed;margin-right:14px;font-size:.9em;
}
#sp-footer.trm-wy-footer .trm-wy-footer-link .tb-button:hover {color:#fff!important;}
#sp-footer.trm-wy-footer .trm-wy-footer-center {text-align:center;padding-top:0;}
#sp-footer.trm-wy-footer .trm-wy-footer-center .tb-image img {
  width:190px!important;max-width:190px!important;height:auto!important;margin:0 auto 15px;
}
#sp-footer.trm-wy-footer .trm-wy-footer-center .tb-text {
  color:#dbeaf8!important;text-align:center!important;
  font-size:clamp(14px,1.1vw,19px);line-height:1.55;
}
#sp-footer.trm-wy-footer .trm-wy-social-links {
  display:flex!important;gap:12px;justify-content:center;
  margin-top:20px;border-top:1px solid rgba(255,255,255,.12);padding-top:10px;
}
#sp-footer.trm-wy-footer .trm-wy-social-links .tb-button {
  min-height:0!important;border:0!important;background:transparent!important;
  color:#e4f1ff!important;padding:5px!important;font-size:19px!important;font-weight:700;
}
#sp-footer.trm-wy-footer .trm-wy-footer-center .trm-wy-social-icon {
  display:inline-block!important;vertical-align:middle;margin:18px 8px 0!important;
  color:#e8f3ff;font-size:19px;font-weight:700;text-align:center;
}
#sp-footer.trm-wy-footer .trm-wy-footer-center .trm-wy-social-icon .tb-text {
  font-size:19px!important;line-height:1.1!important;
}
#sp-footer.trm-wy-footer .trm-wy-footer-center .trm-wy-social-icon:nth-last-child(3) {
  border-top:1px solid rgba(255,255,255,.15);padding-top:14px;
}
#sp-footer.trm-wy-footer .trm-wy-footer-contact .tb-text,
#sp-footer.trm-wy-footer .trm-wy-footer-contact .tb-button {
  color:#dbeafa!important;font-size:clamp(14px,1.1vw,19px);line-height:1.6;
}
#sp-footer.trm-wy-footer .trm-wy-footer-contact .trm-wy-address-line {margin-bottom:0!important;}
#sp-footer.trm-wy-footer .trm-wy-footer-contact .trm-wy-contact-spacer {
  border-top:1px solid rgba(255,255,255,.18);margin:20px 0;padding-top:17px;
}
#sp-footer.trm-wy-footer .trm-wy-footer-contact .tb-button {
  min-height:0!important;border:0!important;box-shadow:none!important;background:transparent!important;
  padding:0!important;text-align:left!important;
}
#sp-footer.trm-wy-footer .trm-wy-copyright {padding-top:80px!important;}
#sp-footer.trm-wy-footer .trm-wy-copyright .tb-row {
  max-width:1160px;margin:0 auto;border-top:1px solid rgba(255,255,255,.2);
}
#sp-footer.trm-wy-footer .trm-wy-copyright .tb-text {
  text-align:center!important;font-size:14px;color:#d3e1f1!important;
}

/* Inner portfolio cards and every other alternating Builder section use the
   same original image frame, gutter and typographic hierarchy. */
.atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-alfa-alternating .tb-container {
  width:min(calc(100% - 60px),1360px)!important;max-width:1360px!important;
}
.atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-alfa-alternating .tb-row {
  gap:90px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-alternating-visual {
  background:#fff;min-height:265px;box-shadow:0 0 0 10px #f3f3f3;
}
.atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-alternating-visual::before {
  border-color:#2772ae;
}
.atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-alternating-copy .tb-heading {
  color:#1663a6!important;font-size:clamp(22px,2vw,29px)!important;
  font-weight:600!important;
}

@media(max-width:1020px) {
  body.atec-inner .trm-wy-header .tb-row {min-height:91px;}
  body.atec-inner .trm-wy-header .trm-wy-header-brand img {width:100px!important;max-width:100px!important;}
  .atec-home .trm-wy-home-services .tb-row {
    grid-template-columns:1fr 1fr!important;grid-template-rows:auto!important;
  }
  .atec-home .trm-wy-home-services .trm-wy-home-services-intro {
    grid-column:1/-1;grid-row:auto;padding:0 0 20px;
  }
  .atec-home .trm-wy-home-services .trm-wy-home-service-card {max-width:none;}
  .atec-home .trm-wy-home-services .trm-wy-home-service-card .tb-image {max-width:240px;margin:auto;}
  #sp-footer.trm-wy-footer .trm-wy-global-footer .tb-row {gap:18px;}
  #sp-footer.trm-wy-footer .trm-wy-global-footer .tb-col {padding-inline:15px;}
  .atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-alfa-alternating .tb-row {gap:50px;}
}
@media(max-width:650px) {
  .atec-home .trm-wy-hero {min-height:450px!important;padding-top:78px!important;}
  .atec-home .trm-wy-main .trm-wy-home-about .tb-container,
  .atec-home .trm-wy-main .trm-wy-home-services .tb-container,
  .atec-home .trm-wy-main .trm-wy-home-stats .tb-container,
  .atec-home .trm-wy-main .trm-wy-home-customers .tb-container {
    width:calc(100% - 30px)!important;
  }
  .atec-home .trm-wy-main .trm-wy-home-about .tb-row {gap:35px;}
  .atec-home .trm-wy-home-services .tb-row {gap:20px 12px;}
  .atec-home .trm-wy-home-stats .tb-row:not(.trm-wy-section-heading) {grid-template-columns:1fr 1fr;gap:12px;}
  .atec-home .trm-wy-home-stats .trm-wy-home-stat {min-height:185px;padding:18px 8px;}
  .atec-home .trm-wy-home-customers .trm-wy-customer-track .trm-wy-home-customer {
    flex-basis:calc((100% - 15px)/2);width:calc((100% - 15px)/2);
  }
  .atec-home .trm-wy-home-quote .tb-col {flex-direction:column;gap:0;}
  .atec-home .trm-wy-home-quote .trm-wy-phone-link::before {margin-right:15px;}
  #sp-footer.trm-wy-footer .trm-wy-global-footer .tb-row {grid-template-columns:1fr;gap:35px;}
  #sp-footer.trm-wy-footer .trm-wy-global-footer .tb-col {
    border:0!important;padding:0!important;
  }
  #sp-footer.trm-wy-footer .tb-heading {font-size:26px;}
  #sp-footer.trm-wy-footer .trm-wy-footer-center .tb-image img {max-width:160px!important;}
  #sp-footer.trm-wy-footer .trm-wy-copyright {padding-top:40px!important;}
  .atec-original-inner .tragbuilder-page.atec-alfa-designed .trm-wy-inner-banner .trm-wy-banner-sub .tb-heading {margin-left:45px;}
}
