/* Things Avada's JavaScript used to do, done in CSS instead. */

/* Entrance animations: content started hidden until a script revealed it. */
.fusion-animated, [data-animationtype] { visibility: visible !important; opacity: 1 !important; animation: none !important; }

/* Mobile menu (Avada cloned the desktop menu into this holder with JS). */
.fusion-mobile-nav-holder > ul { display: none; }
.fusion-mobile-nav-holder.fusion-mobile-menu-expanded { display: block !important; }
.fusion-mobile-nav-holder.fusion-mobile-menu-expanded > ul { display: block; }
.fusion-mobile-nav-holder .mobile-nav-heading > span { display: block; padding: 0 20px; font-family: Montserrat, Arial, Helvetica, sans-serif; color: #333; }

/* Lead form honeypot: off-screen, never seen by people. */
.lead-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.wpcf7-response-output[hidden] { display: none; }
form.sent .wpcf7-response-output { border: 2px solid #46b450; }
form.failed .wpcf7-response-output, form.invalid .wpcf7-response-output { border: 2px solid #dc3232; }

/* Mobile menu items (Avada 7 styles these when its JS builds the menu). */
.fusion-mobile-nav-holder .fusion-mobile-menu { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e5e5e5; }
.fusion-mobile-nav-holder .fusion-mobile-nav-item a { display: block; padding: 0 20px; line-height: 42px; border-bottom: 1px solid #e5e5e5; color: #333; font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 14px; white-space: normal; }
.fusion-mobile-nav-holder .fusion-mobile-sub-item a { padding-left: 36px; }
.fusion-mobile-nav-holder .fusion-mobile-current-nav-item > a, .fusion-mobile-nav-holder .fusion-mobile-current-nav-item > a .menu-text { color: #fff; }

/* Phone menu: a 44px tap target, and a full-width panel that sits under the header (site.js moves the holder into the header). */
.fusion-mobile-menu-icons a.awb-icon-bars { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.fusion-header-wrapper { position: relative; }
.fusion-header-wrapper > .fusion-mobile-nav-holder { position: absolute; left: 0; right: 0; top: 100%; width: 100%; max-width: 100%; box-sizing: border-box; background: #fff; z-index: 99999; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-height: 80vh; overflow-y: auto; }
.fusion-header-wrapper > .fusion-mobile-nav-holder .fusion-mobile-nav-item a { line-height: 1.3; padding-top: 14px; padding-bottom: 14px; font-size: 16px; }
.fusion-header-wrapper > .fusion-mobile-nav-holder .fusion-mobile-current-nav-item { background: #900; }

/* Lazy-load placeholders are gone; never hide images waiting for a script. */
img.lazyload, img.lazyloading, .lazyload { opacity: 1 !important; visibility: visible !important; }

/* Font Awesome 4.7 icon font, self-hosted (the old sites loaded it from use.fontawesome.com). */
@font-face { font-family: 'FontAwesome'; src: url('/fonts/fa4/fontawesome-webfont.woff2') format('woff2'), url('/fonts/fa4/fontawesome-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: block; }
@font-face { font-family: 'fontawesome'; src: url('/fonts/fa4/fontawesome-webfont.woff2') format('woff2'), url('/fonts/fa4/fontawesome-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: block; }

/* Avada "100% height" containers: its JS set them to the window height minus the header, growing with the content.
   Without that JS they fall back to a fixed height and taller content spills under the header. */
.fullwidth-box.hundred-percent-height { height: auto !important; min-height: calc(100vh - 160px); }
.fullwidth-box.hundred-percent-height > .fusion-fullwidth-center-content { height: auto !important; min-height: inherit; }

/* WordPress theme page preloaders: their hide-on-load script is not carried over, so they would cover the page forever. */
#ct-loadding,.ct-loader,#preloader,.preloader,#page-preloader,.page-loader,#loader-wrapper,.site-loader{display:none!important}

/* Home hero: the old Revolution Slider (dark text panel on the left, quote form on the right), rebuilt in plain CSS. */
.static-hero { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 460px; display: flex; align-items: center; padding: 30px 0; background-color: #333; background-image: var(--hero-img); background-size: cover; background-position: center center; }
.static-hero-inner { box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 30px; width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 30px; min-width: 0; }
.hero-panel { box-sizing: border-box; flex: 1 1 auto; min-width: 0; max-width: 560px; padding: 30px 35px; background: rgba(0, 0, 0, .72); color: #fff; font-family: Montserrat, Arial, Helvetica, sans-serif; }
.hero-panel p { margin: 0; color: #fff; }
.hero-panel .hero-kicker { font-size: 18px; line-height: 1.3; letter-spacing: .5px; text-transform: uppercase; }
.hero-panel .hero-title { margin: 8px 0 0; padding: 0 0 18px; font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #f45c3e; position: relative; }
.hero-panel .hero-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 2px; background: #f45c3e; }
.hero-panel .hero-text { margin-top: 20px; font-size: 18px; line-height: 1.6; }
.hero-panel .hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-btn { display: inline-block; padding: 14px 24px; border-radius: 3px; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.hero-btn-call { background: #c8401f; color: #fff; }
.hero-btn-touch { background: #eee; color: #222; }
.hero-form { box-sizing: border-box; flex: 0 0 340px; width: 340px; max-width: 100%; }
.hero-form .wpcf7 { margin: 0; }
.hero-form .form-slider-new { box-sizing: border-box; float: none !important; width: 100% !important; margin: 0; padding: 25px 28px !important; background: rgba(16, 16, 16, .86); color: #fff; font-family: Montserrat, Arial, Helvetica, sans-serif; }
.hero-form .form-slider-new .wpcf7-form-control-wrap { display: block; }
.hero-form .form-slider-new input[type="text"], .hero-form .form-slider-new input[type="email"], .hero-form .form-slider-new input[type="tel"], .hero-form .form-slider-new textarea { box-sizing: border-box; width: 100%; padding: 8px 10px !important; font-size: 14px; color: #333; background: #fff; }
.hero-form .form-slider-new .slider-form-top-title, .hero-form .form-slider-new .slider-form-title, .hero-form .form-slider-new .slider-form-bottom-title { color: #fff; }
.hero-form .form-slider-new .wpcf7-submit { box-sizing: border-box; display: block; width: 100%; padding: 12px 10px; border: 0; border-radius: 3px; background: #008a14 !important; color: #fff !important; font-size: 18px !important; font-weight: 700 !important; cursor: pointer; }

@media (max-width: 767px) {
  .static-hero { display: block; min-height: 0; padding: 0; background-image: none; background-color: #000; }
  .static-hero-inner { display: block; padding: 0; }
  .hero-panel { max-width: none; padding: 30px 20px; text-align: center; background-color: rgba(0, 0, 0, .62); background-image: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .62)), var(--hero-img); background-size: cover; background-position: center center; }
  .hero-panel .hero-title { font-size: 28px; }
  .hero-panel .hero-title::after { left: 50%; margin-left: -30px; }
  .hero-panel .hero-buttons { flex-direction: column; align-items: center; }
  .hero-btn { min-width: 180px; }
  .hero-form { width: 100%; flex: none; padding: 30px 20px; background: #000; }
  .hero-form .form-slider-new { max-width: 340px; margin: 0 auto; padding: 0 !important; background: transparent; }
}

/* Footer: the theme painted these links white on its own dark footer colour; the footer here is white. */
.fusion-footer .menu-footer-menu-container .menu .menu-item a { color: #444 !important; }
.fusion-footer .menu-footer-menu-container .menu .menu-item.current-menu-item a, .fusion-footer .menu-footer-menu-container .menu .menu-item a:hover { color: #c8401f !important; }
.fusion-footer .footer-tlte { color: #333 !important; }
