/*
 * ATEC v1.5.3 — container and motion regression repair.
 * Layout styling ONLY. No copy, imagery, menu links or page content here.
 * Full-bleed Builder section BACKGROUNDS remain full width; only the
 * editable inner .tb-container is limited by Template Style's setting.
 */
/* Fix v1.5.2's fixed 1360/1380/1400/1450px overrides. */
body.atec-wysiwyg #sp-header .tb-container,
body.atec-wysiwyg #sp-footer .tb-container,
body.atec-wysiwyg .trm-wy-main .tragbuilder-page .tb-container,
body.atec-wysiwyg .trm-wy-main .tragbuilder-page.atec-alfa-designed .tb-container {
  box-sizing: border-box;
  width: min(calc(100% - 50px), var(--atec-container, 1170px)) !important;
  max-width: var(--atec-container, 1170px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Selected Builder layouts are intentionally narrower than the site grid. */
body.atec-inner .trm-wy-main .tragbuilder-page.atec-alfa-designed .trm-alfa-intro .tb-container {
  width: min(calc(100% - 50px), 825px, var(--atec-container, 1170px)) !important;
  max-width: min(825px, var(--atec-container, 1170px)) !important;
}
body.atec-inner .trm-wy-main .tragbuilder-page.atec-alfa-designed .trm-alfa-lead .tb-container {
  width: min(calc(100% - 50px), 940px, var(--atec-container, 1170px)) !important;
  max-width: min(940px, var(--atec-container, 1170px)) !important;
}
body.atec-inner .trm-wy-main .tragbuilder-page.atec-alfa-designed .trm-wy-careers-form .tb-container {
  width: min(calc(100% - 50px), 840px, var(--atec-container, 1170px)) !important;
  max-width: min(840px, var(--atec-container, 1170px)) !important;
}

/* These children must not force the constrained parent wider. */
body.atec-wysiwyg #sp-header .tb-row,
body.atec-wysiwyg #sp-footer .tb-row,
body.atec-wysiwyg .trm-wy-main .tb-container > .tb-row {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
body.atec-wysiwyg .trm-wy-main .tb-row > .tb-col { min-width: 0; }
body.atec-wysiwyg .trm-wy-home-customers .trm-wy-customer-track {
  max-width: 100%;
}

/* Fade/slide reveals are attached at runtime to real Builder elements.
   Without JavaScript, unsupported observers, or with reduced motion, all
   content stays visible/readable. */
body.trm-motion-ready .trm-scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--trm-motion-delay, 0ms);
  will-change: opacity, transform;
}
body.trm-motion-ready .trm-scroll-reveal[data-trm-motion="left"] {
  transform: translate3d(-55px,0,0);
}
body.trm-motion-ready .trm-scroll-reveal[data-trm-motion="right"] {
  transform: translate3d(55px,0,0);
}
body.trm-motion-ready .trm-scroll-reveal.is-visible,
body.trm-motion-ready .trm-scroll-reveal.is-visible[data-trm-motion] {
  opacity: 1;
  transform: none;
  will-change: auto;
}
@keyframes trm-hero-rise {
  from { opacity:0; transform:translate3d(0,25px,0); }
  to { opacity:1; transform:translate3d(0,0,0); }
}
body.atec-home.trm-motion-ready .trm-wy-hero.is-intro-animating .trm-wy-hero-title .tb-heading {
  animation: trm-hero-rise 1000ms ease 120ms both;
}
body.atec-home.trm-motion-ready .trm-wy-hero.is-intro-animating .trm-wy-hero-subline .tb-heading {
  animation: trm-hero-rise 1000ms ease 320ms both;
}
body.atec-home.trm-motion-ready .trm-wy-hero.is-intro-animating .trm-wy-hero-small .tb-heading {
  animation: trm-hero-rise 1000ms ease 440ms both;
}

/* Keep all seven nav items inside the configured 1170px header grid. */
@media (min-width:1021px) {
  body.atec-wysiwyg .trm-wy-header .trm-wy-header-links .tb-button {
    font-size:clamp(13px,.95vw,17px);
    padding-inline:clamp(6px,.6vw,11px);
  }
  body.atec-inner .trm-wy-header .trm-wy-header-brand {
    flex-basis:12%;
    min-width:100px;
  }
  body.atec-home .trm-wy-header .trm-wy-header-brand {
    flex-basis:18%;
    min-width:120px;
  }
}
@media (max-width:650px) {
  body.atec-wysiwyg #sp-header .tb-container,
  body.atec-wysiwyg #sp-footer .tb-container {
    width:min(calc(100% - 30px),var(--atec-container,1170px))!important;
  }
  body.atec-wysiwyg .trm-wy-main .tragbuilder-page .tb-container,
  body.atec-wysiwyg .trm-wy-main .tragbuilder-page.atec-alfa-designed .tb-container {
    width:min(calc(100% - 30px),var(--atec-container,1170px))!important;
  }
  body.atec-inner .trm-wy-main .tragbuilder-page.atec-alfa-designed .trm-alfa-intro .tb-container {
    width:min(calc(100% - 30px),825px,var(--atec-container,1170px))!important;
  }
  body.atec-inner .trm-wy-main .tragbuilder-page.atec-alfa-designed .trm-wy-careers-form .tb-container {
    width:min(calc(100% - 30px),840px,var(--atec-container,1170px))!important;
  }
  body.trm-motion-ready .trm-scroll-reveal[data-trm-motion] {
    transform:translate3d(0,18px,0);
  }
}
@media (prefers-reduced-motion:reduce) {
  body.trm-motion-ready .trm-scroll-reveal,
  body.trm-motion-ready .trm-scroll-reveal[data-trm-motion] {
    opacity:1!important;transform:none!important;transition:none!important;
  }
  body.atec-home.trm-motion-ready .trm-wy-hero.is-intro-animating .tb-heading {
    animation:none!important;
  }
}
