/* 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: dark and at least 44x44 so it can be seen and tapped (Avada's #dadada was ~1.4:1 on white). */
.fusion-mobile-menu-icons a, .fusion-mobile-menu-icons a:before { color: #333 !important; }
.fusion-mobile-menu-icons a { display: inline-flex !important; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 24px !important; }
/* Current page in the open phone menu: white on brand blue, not white on light grey. */
.fusion-mobile-nav-holder .fusion-mobile-current-nav-item > a { background: #0353a0 !important; }

/* Page banners whose old photo didn't match the page (a pool behind "Epoxy Flooring", roofing nails behind "Contact Us"). */
.fusion-page-title-bar.pdla-banner-epoxy {
  background-color: #082542 !important;
  background-image: linear-gradient(90deg, rgba(8, 37, 66, .95) 0%, rgba(8, 37, 66, .85) 40%, rgba(8, 37, 66, .45) 100%), url('/wp-content/uploads/2020/12/What-is-Epoxy-Flooring.jpg') !important;
  background-size: auto, 844px auto !important; background-position: 0 0, right center !important; background-repeat: no-repeat !important;
}
.fusion-page-title-bar.pdla-banner-contact {
  background-color: #082542 !important;
  background-image: linear-gradient(rgba(8, 37, 66, .6), rgba(8, 37, 66, .6)), url('/wp-content/uploads/slider-pool.jpg') !important;
  background-size: auto, cover !important; background-position: 0 0, center center !important; background-repeat: no-repeat !important;
}
.pdla-banner-epoxy h1, .pdla-banner-contact h1, .pdla-banner-epoxy .fusion-breadcrumbs, .pdla-banner-contact .fusion-breadcrumbs,
.pdla-banner-epoxy .fusion-breadcrumbs a, .pdla-banner-contact .fusion-breadcrumbs a, .pdla-banner-epoxy .breadcrumb-leaf, .pdla-banner-contact .breadcrumb-leaf,
.pdla-banner-epoxy .fusion-breadcrumbs a span, .pdla-banner-contact .fusion-breadcrumbs a span { color: #fff !important; }
/* Decorative Pool Deck cards: replacement photos keep the 3:2 card shape. */
.deck-card-photo { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* Post meta icons (the theme's tag, calendar and author PNGs were never captured). */
.custom_post_meta .custom_post_category:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M21.4 11.6l-9-9A2 2 0 0 0 11 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 .6 1.4l9 9a2 2 0 0 0 2.8 0l7-7a2 2 0 0 0 0-2.8zM6.5 8A1.5 1.5 0 1 1 8 6.5 1.5 1.5 0 0 1 6.5 8z'/%3E%3C/svg%3E") !important; }
.custom_post_meta .custom_post_date:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M7 2h2v2h6V2h2v2h3a1 1 0 0 1 1 1v15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h3zm12 8H5v9h14z'/%3E%3C/svg%3E") !important; }
.custom_post_meta .custom_post_author:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-5 0-9 2.5-9 5.5V22h18v-2.5c0-3-4-5.5-9-5.5z'/%3E%3C/svg%3E") !important; }

/* FAQ answers: #a5a5a5 on white was 2.5:1. */
.faqans { color: #555 !important; }
/* Lead form fields: 16px on phones so iPhones don't zoom in. */
@media (max-width: 800px) { form[data-lead-form] input, form[data-lead-form] textarea { font-size: 16px !important; } }
