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

/* Divi phone menu button: dark on the yellow bar (the off-white icon was 1.8:1) and a 44px tap target. */
.mobile_menu_bar { display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.mobile_menu_bar:before, .mobile_nav.opened .mobile_menu_bar:before { color: #333 !important; }

/* Divi's gallery script showed the first page of items; without it every item stayed hidden. */
.et_pb_gallery_grid .et_pb_gallery_item { display: block !important; }
.et_pb_gallery_grid .et_pb_gallery_image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.et_pb_gallery_grid .et_pb_gallery_pagination { display: none; }

/* Small icons (phone, question mark) next to call-to-action and FAQ text: natural size, not stretched to cover. */
.bg-icon { background-size: auto !important; background-repeat: no-repeat !important; }

/* Phone menu panel: the theme's list bullets leaked onto its links. */
.sitenav-panel li { list-style: none; }
.sitenav-panel li::before { content: none !important; display: none !important; }

/* Footer navigation links: 16px tall and touching; give each a 40px tap target. */
.et_pb_text_3_tb_footer p { padding-bottom: 0; margin: 0; }
.et_pb_text_3_tb_footer a { display: inline-block; padding: 12px 0; }

/* Call-to-action and FAQ icons sit in the empty left gutter the theme leaves for them, not over the words. */
.bg-icon { background-position: left center !important; }
.bg-icon.bg-icon-top { background-position: 4px 15px !important; }

/* Home video thumbnail: pulled up beside the text on wide screens only. Below 1150px the heading wraps to 3 lines and the pull covered it. */
@media (max-width: 1149px) { .img-overlap { margin-top: 0 !important; } }

/* A 4:3 photo in a row of square cards: crop it square to match. */
.img-square { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Location pages: the section photo is half white, half picture. Once the columns stack, the picture half sat behind the text. */
@media (max-width: 980px) { div.et_pb_section.form-bg { background-image: none !important; background-color: #fff !important; } }

/* Home hero (#post-2 is the home page): white text over a light photo. A dark layer over the photo (under the text) keeps every line readable. */
#post-2 .et_pb_section_0 { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .55); }
#post-2 .et_pb_section_0 .et_pb_text_0, #post-2 .et_pb_section_0 .et_pb_text_1 { color: #fff !important; }
body #post-2 .et_pb_section_0 a.et_pb_button.et_pb_button_0 { color: #222 !important; }

/* Footer bottom bar: the theme pulls the name 27% to the left; on stacked columns that pushed it off the screen. */
@media (max-width: 980px) { .et_pb_text_7_tb_footer { margin-left: 0 !important; padding-left: 0 !important; } }
