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

/* Home hero on phones: the child theme's custom CSS forced the desktop-only hero row to show at every width, so phones
   got the hero and the quote form twice. Restore Avada's rule. */
@media screen and (max-width: 640px) {
  body:not(.fusion-builder-ui-wireframe) .fusion-no-small-visibility { display: none !important; }
}

/* Home trust band ("Professional concrete contractor..."): its blue is the row's background graphic, which only sits
   behind the right-hand column on wide screens. Once the columns stack, give the column its own blue. */
@media (max-width: 800px) {
  .fusion-layout-column:has(> .fusion-column-wrapper .banner-box) { background: #004e8a; padding: 15px 20px !important; margin-bottom: 0 !important; }
}

/* Title bar on the neighbourhood and blog pages: the theme's light grey pattern, where the white title disappeared. */
:is(.page-id-1806, .page-id-2076, .page-id-2095, .page-id-2098, .page-id-2101, .page-id-2105, .page-id-2109, .page-id-2112, .page-id-2114,
  .page-id-2117, .page-id-2120, .page-id-2123, .page-id-2126, .page-id-2128, .page-id-2130, .page-id-2133) .fusion-page-title-bar :is(h1, .fusion-breadcrumbs span) { color: #004e8a !important; }
:is(.page-id-1806, .page-id-2076, .page-id-2095, .page-id-2098, .page-id-2101, .page-id-2105, .page-id-2109, .page-id-2112, .page-id-2114,
  .page-id-2117, .page-id-2120, .page-id-2123, .page-id-2126, .page-id-2128, .page-id-2130, .page-id-2133) .fusion-page-title-bar .fusion-breadcrumbs a { color: #333 !important; }

/* Phone menu icon beside the logo: it opens the menu now, and is a 44px tap target (the icon itself stays the same). */
.fusion-header-has-flyout-menu .fusion-flyout-menu-icons .fusion-flyout-menu-toggle { padding: 13px 12px !important; }

/* TrustIndex reviews carousel: its loader script is gone, so the row was an empty band. Hidden until it is rebuilt. */
.fusion-fullwidth:has(pre.ti-widget) { display: none !important; }

/* "Call Now! 919-568-1280" inside the dark quote forms: the link was dark blue on near-black. */
.slider-form-bottom-title a[href^="tel:"] { color: #fff !important; text-decoration: underline; }

/* Page title bar on phones: Avada's script shrank long titles to fit its fixed-height bar; without it, three-line titles
   ("Raleigh, North Carolina") spilled out of the bar, white on white. Let the bar grow and size the title for a phone. */
@media (max-width: 800px) {
  .fusion-page-title-bar { height: auto !important; min-height: 70px; padding-top: 14px !important; padding-bottom: 14px !important; background-size: cover !important; }
  .fusion-page-title-bar .fusion-page-title-row, .fusion-page-title-bar .fusion-page-title-wrapper { height: auto !important; }
}
@media (max-width: 640px) {
  .fusion-page-title-bar .fusion-page-title-captions .entry-title { font-size: 28px !important; line-height: 1.2 !important; }
}
