/* 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 (this site's theme): what its JavaScript used to do, done in CSS. ---- */

/* Entrance animations: images started at opacity 0 until Divi's waypoint script revealed them. */
.et-waypoint, [class*="et_pb_animation_"], .et_animated, .et_pb_animation_off { opacity: 1 !important; transform: none !important; animation: none !important; visibility: visible !important; }

/* Phone menu: site.js builds #mobile_menu from #top-menu (as Divi did) and opens it below the header. */
#et_mobile_nav_menu .mobile_nav { cursor: pointer; }
#et_mobile_nav_menu .mobile_menu_bar { display: flex !important; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; padding: 0 !important; line-height: 1 !important; }
#et_mobile_nav_menu .mobile_menu_bar::before { position: static !important; top: auto !important; left: auto !important; font-size: 34px !important; color: #fff !important; }
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before { content: "\4d"; }
#mobile_menu { display: none; position: fixed !important; left: 0 !important; right: 0 !important; width: auto !important; margin: 0 !important; padding: 0 !important; list-style: none; max-height: calc(100vh - var(--menu-top, 80px)); overflow-y: auto; top: var(--menu-top, 80px) !important; z-index: 99999; background: #000 !important; border-top: 3px solid #bc0800 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.mobile_nav.opened #mobile_menu { display: block !important; }
#mobile_menu li { list-style: none; margin: 0; padding: 0; }
#mobile_menu a { display: block; padding: 13px 20px !important; font-size: 16px; line-height: 1.3; color: #fff !important; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .12); background: transparent !important; }
#mobile_menu a[aria-current] { color: #9fe04a !important; }
#mobile_menu .menu-item-has-children > a { font-weight: 700; }
#mobile_menu ul.sub-menu { display: block !important; position: static !important; visibility: visible !important; opacity: 1 !important; width: auto !important; box-shadow: none !important; border: 0 !important; margin: 0 !important; padding: 0 0 0 16px !important; background: transparent !important; transform: none !important; }
#mobile_menu ul.sub-menu a { width: auto !important; font-size: 15px; }
@media (min-width: 981px) { #mobile_menu { display: none !important; } }

/* Blog posts have no hero, so the see-through header sat on the title (Divi's script used to pad the page).
   Give posts a solid header in the page flow, styled like Divi's own scrolled header. */
.single-post #top-header, .single-post #main-header { position: relative !important; top: 0 !important; }
.single-post #page-container { padding-top: 0 !important; }
.single-post #main-header { background: #fff !important; border-bottom: 1px solid #e5e5e5; }
.single-post #logo { content: url(/wp-content/uploads/2023/03/web-header-logo.png); }
.single-post #et_mobile_nav_menu .mobile_menu_bar::before { color: #2d5d6d !important; }
.single-post #main-content .container { padding-top: 40px !important; }

/* Location pages: the "About <city>" text sat straight on the city photo (1.1-4.1:1). On desktop the photo stays as a
   frame around a solid white text panel; on phones the columns stack, so the photo goes. The page's own rule is
   div.et_pb_section.et_pb_section_1{background-image:…!important}, so these selectors must be more specific. */
div.et_pb_section.et_pb_section_1.loc-about .et_pb_text { background: #fff; padding: 28px 32px !important; margin-bottom: 40px !important; box-sizing: border-box; border-radius: 4px; }
@media (max-width: 980px) {
  div.et_pb_section.et_pb_section_1.loc-about { background-image: none !important; background-color: #fff !important; }
  div.et_pb_section.et_pb_section_1.loc-about .et_pb_text { padding: 0 !important; margin-bottom: 30px !important; }
  .loc-about .home-form_wrap { background: #f1f1f1 !important; }
}

/* Industrial hero: red title and orange intro (the page's own colours) on a dark panel over the photo. */
.ind-hero .et_pb_text_0 { background: rgba(10, 0, 0, .88); padding: 28px 32px !important; border-radius: 4px; box-sizing: border-box; }
@media (max-width: 767px) { .ind-hero .et_pb_text_0 { padding: 20px 18px !important; } }

/* Homepage hero on phones and tablets: the white intro and checklist sit straight on the garage photo (3.2:1); darken it. */
@media (max-width: 980px) {
  div.et_pb_section.et_pb_section_0.home-hero { background-image: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('/wp-content/uploads/2023/03/banner2.jpg') !important; background-blend-mode: normal !important; }
}

/* FAQ accordion: site.js opens and closes the answers as Divi's script did. */
.et_pb_toggle .et_pb_toggle_title { cursor: pointer; }
.et_pb_toggle_close .et_pb_toggle_content { display: none !important; }
.et_pb_toggle_open .et_pb_toggle_content { display: block !important; }
.et_pb_toggle .et_pb_toggle_title:focus-visible { outline: 2px solid #105ca8; outline-offset: 4px; }

/* Quote forms: the red button the old site had (the theme styled <button>, the forms use <input type=submit>). */
.wpcf7-form .wpcf7-submit { display: block; width: 100%; min-height: 56px; padding: 16px 20px !important; border: 0 !important; border-radius: 5px; background: #bc0800 !important; color: #fff !important; font-family: Poppins, Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.2; cursor: pointer; -webkit-appearance: none; appearance: none; }
.wpcf7-form .wpcf7-submit:hover, .wpcf7-form .wpcf7-submit:focus { background: #105ca8 !important; }
.wpcf7-form .wpcf7-submit:disabled { opacity: .7; }
.contact-frm_wrap .frm-btn_wrap .wpcf7-submit { width: 80%; margin: 0 auto; }
/* 16px inputs so iPhones don't zoom in when a field is tapped. */
@media (max-width: 767px) {
  .wpcf7-form input[type=text], .wpcf7-form input[type=tel], .wpcf7-form input[type=email], .wpcf7-form textarea { font-size: 16px !important; }
  .contact-frm_wrap .frm-btn_wrap .wpcf7-submit { width: 100%; }
}

/* Body text: #7699a5 on white was 3.06:1; this is 5.4:1. */
body { color: #4f6f7a; }

/* Top-bar email icon sits next to the address like the phone icon does. */
#et-info a[href^="mailto:"] { margin-left: 22px; }
@media (max-width: 767px) { #et-info a[href^="mailto:"] { display: none; } }
