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

/* Site header on every page (the old inner pages had none): logo, menu, red call button; phones get a menu button. */
.site-header .fusion-row.header_main_wrap { display: flex !important; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.site-header .fusion-row.header_main_wrap::before, .site-header .fusion-row.header_main_wrap::after { display: none; }
.site-header .fusion-alignleft, .site-header .fusion-alignright { float: none !important; position: static !important; }
.site-header .fusion-alignright { display: flex; align-items: center; justify-content: flex-end; gap: 24px; flex: 1 1 auto; }
.site-header .menu_wrap { position: static !important; float: none !important; margin: 0 !important; }
.site-header .info_wrap { float: none !important; position: static !important; margin: 0 !important; }
.site-header .fusion-logo { margin: 18px 0 !important; }
.site-header .header-call { display: inline-flex; align-items: center; gap: 8px; background: #bb0000; color: #fff; border-radius: 6px; padding: 12px 18px; font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 17px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; text-decoration: none; }
.site-header .header-call:hover, .site-header .header-call:focus { background: #8f0000; color: #fff; }
.site-header .fusion-mobile-menu-icons { display: none; margin: 0 !important; float: none; }
.site-header .fusion-mobile-menu-icons a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; color: #333; float: none; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
.site-header .fusion-mobile-menu-icons a:hover, .site-header .fusion-mobile-menu-icons a[aria-expanded="true"] { color: #bb0000; border-color: #bb0000; }
.site-header nav.fusion-mobile-nav-holder { display: none; }
.site-header nav.fusion-mobile-nav-holder.fusion-mobile-menu-expanded { display: block !important; position: absolute; left: 0; right: 0; top: 100%; background: #fff; z-index: 1000; box-shadow: 0 6px 12px rgba(0, 0, 0, .15); }
.site-header nav.fusion-mobile-nav-holder .fusion-mobile-nav-item a { line-height: 46px; }
@media only screen and (max-width: 1100px) {
  .site-header .fusion-main-menu { display: none !important; }
  .site-header .fusion-mobile-menu-icons { display: block; }
  .site-header .fusion-alignright { gap: 12px; }
  .site-header .info_wrap { order: 1; }
  .site-header .menu_wrap { order: 2; }
  .site-header .fusion-logo { margin: 10px 0 !important; }
  .site-header .fusion-logo img { max-height: 64px; width: auto; }
}
@media only screen and (max-width: 480px) {
  .site-header .fusion-row.header_main_wrap { gap: 10px; }
  .site-header .header-call { padding: 10px 11px; font-size: 15px; letter-spacing: 0; }
  .site-header .fusion-logo img { max-height: 50px; }
}
@media only screen and (max-width: 360px) {
  .site-header .header-call span { display: none; }
}

/* Homepage hero: the first Revolution Slider slide as plain HTML/CSS (same photo, copy, buttons and form). */
.home-hero { position: relative; background: #333 url('/wp-content/uploads/2020/01/81503906_468623507159424_94536052705853440_n-1280x958.webp') center center / cover no-repeat; }
.home-hero-inner { max-width: 1200px; margin: 0 auto; padding: 80px 20px; display: flex; gap: 40px; align-items: center; justify-content: space-between; box-sizing: border-box; min-height: 630px; }
.home-hero-copy { flex: 0 1 746px; background: rgba(0, 0, 0, .62); padding: 36px 30px; color: #fff; box-sizing: border-box; }
.home-hero-title { margin: 0; color: #fff; line-height: 1.15; font-size: inherit; }
.home-hero-title span { display: block; color: #fff; }
.home-hero-rule { width: 150px; height: 4px; background: #bb0000; margin: 18px 0; }
.home-hero-copy p.sliderthree { color: #fff; margin: 0 0 24px; line-height: 1.6; }
.home-hero-buttons { display: flex; flex-wrap: wrap; gap: 20px; }
.home-hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 250px; min-height: 60px; padding: 0 20px; border-radius: 3px; font-family: Roboto, Montserrat, Arial, sans-serif; font-size: 20px; font-weight: 500; box-sizing: border-box; text-decoration: none; }
.home-hero-call { background: #bb0000; color: #fff; border-bottom: 5px solid #880202; }
.home-hero-call:hover, .home-hero-call:focus { background: #8f0000; color: #fff; }
.home-hero-touch { background: #f5f5f5; color: #000; border-bottom: 5px solid #cbcbcb; }
.home-hero-touch:hover, .home-hero-touch:focus { background: #fff; color: #bb0000; }
.home-hero-form { flex: 0 0 361px; background: rgba(0, 0, 0, .62); border-radius: 3px; padding: 28px 20px; box-sizing: border-box; }
.home-hero-form .banner-form p { margin: 0; }
.home-hero-form .banner-form-group { margin-bottom: 10px; }
.home-hero-form .banner-form-input, .home-hero-form .banner-form-textarea { width: 100%; box-sizing: border-box; background: #fff; color: #333; font-size: 16px; padding: 10px 14px !important; height: auto; }
.home-hero-form .banner-form-textarea { height: 100px !important; }
.home-hero-form .banner-form-input::placeholder, .home-hero-form .banner-form-textarea::placeholder { color: #595959 !important; }
.home-hero-form .banner-form-submit-btn { background: #bb0000; color: #fff; border: 0; border-radius: 3px; cursor: pointer; font-size: 20px !important; padding: 14px !important; text-transform: uppercase; }
.home-hero-form .banner-form-submit-btn:hover { background: #8f0000; }
@media only screen and (max-width: 1024px) {
  .home-hero-inner { flex-direction: column; align-items: stretch; padding: 40px 20px; min-height: 0; }
  .home-hero-copy, .home-hero-form { flex: none; width: 100%; max-width: 746px; margin: 0 auto; }
}
@media only screen and (max-width: 640px) {
  .home-hero-inner { padding: 24px 12px; gap: 16px; }
  .home-hero-copy { padding: 22px 18px; }
  .home-hero-title .sliderone { font-size: 24px !important; }
  .home-hero-title .slidertwo { font-size: 32px !important; }
  .home-hero-copy p.sliderthree { font-size: 16px !important; }
  .home-hero-btn { min-width: 0; flex: 1 1 100%; font-size: 18px; min-height: 52px; }
  .home-hero-form { padding: 20px 14px; }
}

/* Page title bar: the old theme setting pointed at another company's photo; plain dark bar instead (as it rendered). */
:root { --page_title_bg: none; --page_title_bg_retina: none; }
.fusion-page-title-bar { background-image: none !important; }

/* About page hero: its photo rule targeted a column class the page no longer has, leaving white text on white.
   Photo plus a dark overlay behind the white heading, at every width (it used to be hidden on phones). */
.fusion-fullwidth.about-banner { background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url('/wp-content/uploads/2020/07/Steel-Processing.jpg') center center / cover no-repeat !important; }
@media only screen and (max-width: 640px) { .fusion-fullwidth.about-banner { padding-top: 40px !important; padding-bottom: 40px !important; } .about-banner h1 span { font-size: 26px !important; } }

/* "Benefits of ..." sections: a dark photo strip sized to "contain" sits behind the heading on desktop; on
   tablets and phones it shrank to a sliver and the white heading ran onto white. Below 1025px the strip keeps a
   fixed height that always covers the heading and intro, as it does on desktop; the cards stay on white below. */
@media only screen and (max-width: 1024px) {
  .fusion-fullwidth.brcks-pavers { background-size: auto 340px !important; background-position: center top !important; background-repeat: repeat-x !important; }
}
@media only screen and (max-width: 640px) {
  .fusion-fullwidth.brcks-pavers { background-size: auto 300px !important; }
}

/* Readability (QA round 1): grey body copy, footer text and the phone call bar were below 4.5:1 contrast. */
.grey, .grey h2, .tennislist .fusion-li-item { color: #666 !important; }
.fusion-footer-widget-area .textwidget p, .fusion-footer-widget-area a.footer-box { color: #b3b3b3 !important; }
#sticky-phone { background: #1d7a43 !important; }
@media (max-width: 500px) { body { padding-bottom: 50px; } }
/* Phones zoom into form fields under 16px; keep them at 16px. */
@media only screen and (max-width: 800px) { input:not([type="submit"]), textarea, select { font-size: 16px !important; } }
