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

/* ---- Readability fixes (QA round 1, AGE-94). Colours chosen to reach 4.5:1 for text. ---- */

/* Homepage hero: the photo carries a dark gradient (inline, with the photo); the check icons were red on red. */
.hero-photo ul.boise_list li:before { color: #fff; }
@media (max-width: 640px) { .hero-photo { padding-left: 20px !important; padding-right: 20px !important; } }

/* Title bars: white H1 and breadcrumbs over light photos. A dark layer over every title-bar photo. */
.fusion-page-title-bar { background-image: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), var(--page_title_bg_retina, var(--page_title_bg)) !important; }
.fusion-page-title-bar .fusion-breadcrumbs, .fusion-page-title-bar .fusion-breadcrumbs a, .fusion-page-title-bar .fusion-breadcrumbs span,
.fusion-page-title-bar .breadcrumb-leaf { color: #fff !important; }
.fusion-page-title-bar .breadcrumb-leaf { text-decoration: underline; text-underline-offset: 3px; }

/* Lead form panels: a dark panel instead of a see-through grey one (white text was 2.2:1 over white). */
.fusion-column-wrapper[style*="rgba(70,70,70,0.44)"] { background-color: rgba(25, 25, 25, .85) !important; }

/* Green buttons and the top-bar phone: a darker green (white on #0b7a2a is 5.5:1; #0b7a2a on #f3f3f3 is 4.9:1). */
.wpcf7-form .form-slider-new .wpcf7-form-control.wpcf7-submit { background: #0b7a2a !important; color: #fff; }
.fusion-secondary-header .fusion-contact-info { color: #555; }
.fusion-secondary-header .fusion-contact-info a.telephone { color: #0b7a2a !important; }
#sticky-phone .fixed-button { background-color: #0b7a2a !important; font-weight: 600; font-size: 15px; }

/* Footer: the blog template lost the white widget headings, and grey body text was 3.6:1 on the dark footer. */
.fusion-footer-widget-area h4.widget-title { color: #fff !important; font-weight: 700; }
.fusion-footer-widget-area .textwidget, .fusion-footer-widget-area .textwidget p { color: #bdbdbd; }

/* Phone menu button: a 45x45 tap area around the same 21px icon, in the same place. */
.fusion-mobile-menu-icons a { padding: 12px; margin: -12px -12px -12px 8px; line-height: 21px; }

/* Privacy policy and 404 page (same plain template): text sat against the screen edge on phones. */
@media (max-width: 800px) { .page-id-13967 #content .post-content { padding-left: 20px; padding-right: 20px; } }

/* ---- QA round 1 on PR #5 (AGE-175) ---- */

/* Footer: blog posts showed the "Phone:" / hours sub-headings dark grey (2.2:1), and the footer links and phone
   were #747474 (3.6:1). White sub-headings and the same light grey as the footer text (#bdbdbd, 8.9:1). */
.fusion-footer-widget-area h4.footer-address { color: #fff !important; }
.fusion-footer-widget-area a, .fusion-footer-widget-area .footer_btm, .fusion-footer-widget-area .footer_btm a { color: #bdbdbd !important; }
.fusion-footer-widget-area a:hover, .fusion-footer-widget-area a:focus { color: #fff !important; }

/* Photo bands with white text further down the service pages: the same kind of dark layer as the title bars.
   An inset shadow sits above the band's own photo and below its text. */
.fullwidth-box.extra-spce[style*="background-image"] { box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .6); }

/* Badge row (HomeAdvisor, BBB, Angie's List, Yelp): below 1100px the row's -15px gutters pushed HomeAdvisor off the
   left edge and Yelp off the right (the box keeps its -30px desktop gutters). Keep the row inside the page and let each logo shrink to its quarter. */
@media (max-width: 1100px) {
  .fullwidth-box.mysocial, .mysocial .fusion-builder-row, .mysocial .fusion-builder-row-inner { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; }
  .mysocial .fusion-imageframe, .mysocial .fusion-imageframe img { max-width: 100%; height: auto; }
}
/* The same row without the "mysocial" class (service pages, lower on the homepage). Kept as its own rule so a
   browser without :has() only skips this one. */
@media (max-width: 1100px) {
  .fullwidth-box:has(img[alt="Home Advisor"]), .fullwidth-box:has(img[alt="Home Advisor"]) .fusion-builder-row { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; }
  .fullwidth-box:has(img[alt="Home Advisor"]) { padding-left: 15px !important; padding-right: 15px !important; }
  .fullwidth-box:has(img[alt="Home Advisor"]) .fusion-imageframe, .fullwidth-box:has(img[alt="Home Advisor"]) .fusion-imageframe img { max-width: 100%; height: auto; }
}

/* Phones: the fixed Call Now / Get A Quote bar (50px, shown up to 500px wide) covered the end of the footer. */
@media (max-width: 500px) { body { padding-bottom: 50px; } }
