/* 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; }

/* Static first slide in place of Revolution Slider. */
.static-hero { background-size: cover; background-position: center center; min-height: 380px; display: flex; align-items: center; width: 100%; max-width: 100%; box-sizing: border-box; }
/* width is explicit so aspect-ratio + min-height can't widen the hero past the screen on phones */
.static-hero-inner { min-width: 0; box-sizing: border-box; max-width: 1170px; margin: 0 auto; padding: 0 30px; width: 100%; }
.static-hero-inner p { max-width: 560px; color: #fff; font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 20px; line-height: 30px; background: rgba(3, 83, 160, .85); padding: 20px 25px; margin: 0; }

/* 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; }
.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; }

/* 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}

/* Phone menu button: the old theme skin turns every pressed <button> into position:relative, which threw the
   button to the bottom of the page mid-tap so the menu never opened. Keep it pinned in every state. */
.sitenav-btn, .sitenav-btn:hover, .sitenav-btn:focus, .sitenav-btn:active { position: fixed !important; top: 12px !important; right: 12px !important; bottom: auto !important; left: auto !important; width: 44px !important; height: 44px !important; margin: 0 !important; transform: none !important; }

/* Tap-to-call button, visible on the first screen of every page. Dark text on yellow for contrast. */
.call-bar { position: fixed; z-index: 99990; right: 16px; bottom: 16px; background: #ffc800; color: #1a1a1a !important; font: 700 18px/1 Roboto, Arial, Helvetica, sans-serif; padding: 14px 22px; border-radius: 30px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); text-decoration: none !important; }
.call-bar:hover, .call-bar:focus { background: #e6b400; color: #1a1a1a !important; }
@media (max-width: 921px) {
  .call-bar { left: 0; right: 0; bottom: 0; border-radius: 0; text-align: center; padding: 16px 12px; font-size: 20px; box-shadow: 0 -2px 10px rgba(0, 0, 0, .25); }
  body { padding-bottom: 54px; }
}

/* Contrast fixes (QA round 2). Brand yellow stays; text on it is dark, and the hero photo gets a darker overlay. */
.hp-banner .fl-row-content-wrap { position: relative; }
.hp-banner .fl-row-content-wrap::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .6); pointer-events: none; }
.hp-banner .fl-row-content { position: relative; z-index: 1; }
.hp-banner .fl-heading, .hp-banner .fl-heading-text { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

.yellow-btn .fl-button, .yellow-btn .fl-button:visited, .yellow-btn .fl-button span, .yellow-btn .fl-button i { color: #1a1a1a !important; }
.yellow-btn .fl-button:hover, .yellow-btn .fl-button:hover span { color: #ffc800 !important; }
.fl-sidebar .yellow-btn a, .fl-sidebar .yellow-btn a strong { color: #1a1a1a !important; }
.fl-sidebar .yellow-btn a:hover, .fl-sidebar .yellow-btn a:hover strong { background-color: #e6b400 !important; color: #1a1a1a !important; }

header .navbar-nav .current-menu-item a, header .navbar-nav li a:hover, header .navbar-nav li a:focus { color: #1a1a1a !important; }

.fl-sidebar #menu-services a, .fl-sidebar .contact-info a { color: #1a1a1a !important; }
.fl-sidebar #menu-services li:before { color: #a67c00; }

#contact-form .cf-btn input, #contact-form input.wpcf7-submit, input.wpcf7-submit { color: #1a1a1a !important; }
#contact-form .cf-btn input:hover, #contact-form input.wpcf7-submit:hover, input.wpcf7-submit:hover { background-color: #e6b400 !important; border-color: #e6b400 !important; color: #1a1a1a !important; }
#contact-form input::placeholder, #contact-form textarea::placeholder { color: #595959 !important; opacity: 1; }
#contact-form input, #contact-form textarea { font-size: 16px !important; color: #1a1a1a; }

/* Contrast fixes (QA round 3). The theme colours the <strong> inside the button, so style every child; list links were yellow on white. */
.yellow-btn .fl-button *, .yellow-btn .fl-button strong, .yellow-btn .fl-button .fl-button-text { color: #1a1a1a !important; }
.yellow-btn .fl-button:hover *, .yellow-btn .fl-button:hover strong { color: #ffc800 !important; }
.arrow-lists a, .arrow-lists a:visited { color: #7a5800 !important; }
.arrow-lists a:hover, .arrow-lists a:focus { color: #1a1a1a !important; }
