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

/* Phone menu button: the icon is 21px; pad it to a 45px tap area. The negative margin keeps the header the same size. */
.fusion-mobile-menu-icons a.awb-icon-bars { display: inline-block; box-sizing: content-box; padding: 12px; margin: -12px; }

/* 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; }
.wpcf7-form textarea.wpcf7-textarea { display: block; width: 100%; box-sizing: border-box; min-height: 140px; padding: 10px 12px; font: inherit; border: 1px solid #ccc; background: #fff; color: #333; }

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

/* QA round 2: the callout icon (a 126px-tall circle) was scaled to the column height and covered the first words of the text.
   On phones keep it inside the 90px left padding. */
@media (max-width: 800px) {
  .lefticon .fusion-column-wrapper { background-size: 76px auto !important; background-position: left top !important; }
}

/* QA round 2: the Epoxy Flooring title banner showed a sofa; use the existing floor photo instead. */
body:has(#post-2270) .fusion-page-title-bar { background-image: url(/wp-content/uploads/2019/02/residential-epoxy-flooring.jpg) !important; background-position: center center !important; background-size: cover !important; }

/* QA round 2: the blog post meta icons (date, category, author) were files never copied from the old theme: draw them inline. */
.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 16 15'%3E%3Crect x='1' y='2' width='14' height='12' rx='1.5' fill='none' stroke='%23666' stroke-width='1.4'/%3E%3Cpath d='M1 6h14M4.5 .8v3M11.5 .8v3' fill='none' stroke='%23666' stroke-width='1.4'/%3E%3C/svg%3E") !important; }
.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 16 15'%3E%3Cpath d='M1.5 1.5h6l7 7-5.5 5.5-7.5-7.5z' fill='none' stroke='%23666' stroke-width='1.4'/%3E%3Ccircle cx='5' cy='5' r='1.2' fill='%23666'/%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 16 15'%3E%3Ccircle cx='8' cy='4.5' r='3' fill='%23666'/%3E%3Cpath d='M2 14.5c0-3.5 2.7-5.5 6-5.5s6 2 6 5.5z' fill='%23666'/%3E%3C/svg%3E") !important; }

/* QA round 3: hero headings were hard to read over their photos. A dark layer over the photo keeps the same image and brand colours. */
.fusion-fullwidth:has([class="slider=box"]) { background-image: linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .62)), url('/wp-content/uploads/2018/03/Slider-image.jpg') !important; }
.fusion-fullwidth [class="slider=box"] .white, .fusion-fullwidth [class="slider=box"] .yellow { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
body:has(#post-2270) .fusion-page-title-bar { background-image: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url(/wp-content/uploads/2019/02/residential-epoxy-flooring.jpg) !important; }
body:has(#post-2270) .fusion-page-title-bar h1, body:has(#post-2270) .fusion-page-title-bar .fusion-breadcrumbs, body:has(#post-2270) .fusion-page-title-bar .fusion-breadcrumbs a { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* QA round 3: FAQ answers. Avada's script opened these; site.js now toggles the "in" class. */
.panel-collapse.collapse { display: none; }
.panel-collapse.collapse.in { display: block !important; height: auto !important; }
