/* Rules that stand in for work the theme did in JavaScript, plus controls that replace theme widgets. */

/* reveal animations (state added by site.js) */
.js .img-with-animation { opacity: 0; transition: opacity 0.75s cubic-bezier(.15,.84,.35,1.25), filter 0.3s ease; }
.js .img-with-animation.is-revealed { opacity: 1; transform: none; }
.js .wpb_column.has-animation { opacity: 0; transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.2,.75,.2,1); }
.js .wpb_column.has-animation[data-animation="fade-in-from-bottom"] { transform: translateY(45px); }
.js .wpb_column.has-animation.is-revealed { opacity: 1; transform: none; }
.js .divider-border[data-animate="yes"] { transform: scaleX(0); transform-origin: left center; transition: transform 1.2s cubic-bezier(.17,.67,.34,1); }
.js .divider-border[data-animate="yes"].is-revealed { transform: scaleX(1); }
.nectar-text-inline-images { opacity: 0; transition: opacity 0.2s ease; }
.nectar-text-inline-images--calculated, .no-js .nectar-text-inline-images { opacity: 1; }
body .nectar-text-inline-images__marker img { border-radius: var(--marker-radius); }
.js .nectar-text-inline-images .nectar-text-inline-images__marker img { clip-path: circle(0% at 50% 50%); transition: clip-path 0.9s ease; }
.js .nectar-text-inline-images.is-revealed .nectar-text-inline-images__marker img { clip-path: circle(100% at 50% 50%); }

/* full-height hero and its background video */
.vc_row.vc_row-o-full-height { min-height: 100vh; min-height: 100svh; }
.nectar-video-wrap { position: absolute; inset: 0; overflow: hidden; opacity: 1; }
.nectar-video-wrap .nectar-video-inner { position: absolute; inset: 0; }
.nectar-video-wrap video.nectar-video-bg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; opacity: 1; visibility: visible; transform: none; }
.video-color-overlay { position: absolute; inset: 0; z-index: 1; }

/* tabs */
.tabbed > .wpb_tab[hidden] { display: none !important; }
button.accordion-header { display: block; width: 100%; border: 0; text-align: left; line-height: 1.4; padding-right: 45px; }

/* carousel */
.owl-carousel { display: block; }
.owl-carousel .owl-stage { display: flex; }
.owl-carousel .owl-item { flex: 0 0 auto; }
.owl-carousel .owl-stage-outer { touch-action: pan-y; }
.owl-carousel .owl-dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.owl-carousel .owl-dots button.owl-dot { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.owl-carousel .owl-dots .owl-dot span { width: 8px; height: 8px; margin: 0; border-radius: 50%; background: rgba(0,0,0,0.2); display: block; }
.owl-carousel .owl-dots .owl-dot.active span { background: #d72027; }

/* mobile menu */
button.menu-button { background: transparent; border: 0; padding: 8px; cursor: pointer; box-shadow: none; }
#header-outer #mobile-menu[hidden] { display: none !important; }
@media only screen and (max-width: 1080px) {
  #header-outer #mobile-menu { display: block; position: absolute; top: 100%; left: 0; width: 100%; max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,0.12); z-index: 9999; }
  #header-outer #mobile-menu ul { margin: 0; padding: 0 20px; list-style: none; }
  #header-outer #mobile-menu ul ul { padding: 0 0 0 16px; display: none; }
  #header-outer #mobile-menu li { position: relative; list-style: none; margin: 0; border-bottom: 1px solid #eee; }
  #header-outer #mobile-menu li:last-child { border-bottom: 0; }
  #header-outer #mobile-menu li.open > ul { display: block; }
  #header-outer #mobile-menu a { display: block; padding: 13px 40px 13px 0; color: #000; font-size: 18px; line-height: 24px; }
  #header-outer #mobile-menu a:hover, #header-outer #mobile-menu .current-menu-item > a { color: #d72027; }
  #header-outer #mobile-menu .sub-toggle { position: absolute; top: 4px; right: -6px; width: 42px; height: 42px; border: 0; background: transparent; color: #000; cursor: pointer; }
}
@media only screen and (min-width: 1081px) {
  #header-outer #mobile-menu, #header-outer .slide-out-widget-area-toggle { display: none !important; }
}

/* back to top */
#to-top { border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; }
#to-top.is-visible { opacity: 1; visibility: visible; right: 17px; bottom: 17px; transform: none; }
@media only screen and (max-width: 999px) { #to-top.mobile-disabled { display: none; } }

/* notice shown while forms have no backend */
.wpcf7 .form-unavailable { font-size: 14px; line-height: 20px; margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #d72027; background: #fff5f5; color: #333; }

/* theme script faded these background layers in after load */
body .vc_row > .row-bg-layer.nectar-video-wrap,
body .vc_row > .row-bg-layer.video-color-overlay { opacity: 1; }

/* dropdown indicator took part in the menu layout; the dropdown still opens on hover and focus */
#header-outer #top .sf-menu > li > a > .sf-sub-indicator { display: none; }

/* active tab panel (the theme stylesheet parks every panel off-screen until its script shows one) */
.tabbed > .wpb_tab.visible-tab { position: relative; left: 0; visibility: visible; opacity: 1; }
.js .tabbed > .wpb_tab { transition: opacity 0.35s ease; }
.no-js .tabbed > .wpb_tab { position: relative; left: 0; visibility: visible; opacity: 1; }

/* scroll cue: the drawn outline and the moving dot share one position */
.nectar-next-section-wrap.mouse-wheel .nectar-next-section { position: relative; display: inline-block; width: 30px; height: 45px; }
.nectar-next-section-wrap.mouse-wheel .nectar-next-section svg.nectar-scroll-icon { position: absolute; top: 0; left: 0; margin: 0; }
.nectar-next-section-wrap.mouse-wheel .nectar-next-section .track-ball { left: 50%; margin-left: -2px; }

/* below 1000px the theme script kept the first section clear of the overlaid header */
@media only screen and (max-width: 999px) {
  body.home #modal-hero { padding-top: 110px !important; }
}
.nectar-next-section-wrap.mouse-wheel[data-align="center"] { width: 100%; text-align: center; left: 0; transform: none; }

/* the theme always displays the first panel ("body .row .tabbed > div:first-of-type"); hide any panel that is not selected */
html.js body .row .tabbed > div.wpb_tab:not(.visible-tab) { position: absolute; left: -9999px; top: 0; visibility: hidden; opacity: 0; }

/* ---------- accordion lists: the theme CSS hides closed panels; this opens the selected one ---------- */
body .toggle.open > div { display: block; pointer-events: auto; }
.toggle > div[inert] { visibility: hidden; transition: max-height 0.5s, visibility 0s linear 0.5s; }
html.no-js body .toggle[data-inner-wrap="true"] > div { max-height: none; pointer-events: auto; }
.toggle > .toggle-title a { cursor: pointer; }
button.nectar-button { border: 0; cursor: pointer; font-family: inherit; }
iframe.print-frame { position: fixed; left: -9999px; top: 0; width: 800px; height: 600px; border: 0; }

/* ---------- flip cards: keyboard focus and tap, in addition to the theme's hover rules ---------- */
.nectar-flip-box[data-flip-direction="horizontal-to-left"]:focus-visible .flip-box-front,
.nectar-flip-box[data-flip-direction="horizontal-to-left"].flipped .flip-box-front { transform: rotateY(-180deg); }
.nectar-flip-box[data-flip-direction="horizontal-to-left"]:focus-visible .flip-box-back,
.nectar-flip-box[data-flip-direction="horizontal-to-left"].flipped .flip-box-back { transform: rotateY(0deg); }

/* ---------- career form file input ---------- */
.wpcf7 input[type="file"] { max-width: 100%; }
/* hidden spam-trap field: off screen, still submitted */
.wpcf7 .form-extra { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; margin: 0; padding: 0; }
/* career form: its button is narrow, so the original negative margin would lay the result box over it */
.wpcf7 form[data-static-form="1030"] .wpcf7-response-output { margin: 10px 0 0; }
