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

/* Homepage hero: keep the photo's 1240x568 shape as a minimum, but let the box grow to fit its text.
   A fixed aspect-ratio made the text panel overflow on phones and tablets: up under the header and
   down over the review badges. The ::before spacer holds the photo's proportions instead. */
.static-hero { aspect-ratio: auto !important; height: auto !important; }
.static-hero::before { content: ''; flex: 0 0 0; padding-top: 45.806%; }
.static-hero-inner a { color: #fff; text-decoration: underline; }
@media (max-width: 800px) {
  .static-hero { min-height: 0; }
  .static-hero-inner { padding: 24px 16px; }
  .static-hero-inner p { font-size: 16px; line-height: 24px; padding: 10px 16px; max-width: none; }
  .static-hero-inner p:first-child, .static-hero-inner p:nth-child(2) { font-size: 20px; line-height: 28px; font-weight: 600; }
}

/* "Our Happy Clients" logos: Avada's carousel script revealed and positioned them. Show them as a
   static, wrapping row instead, so there is no hidden, empty band. */
.fusion-image-carousel, .fusion-image-carousel .fusion-carousel, .fusion-image-carousel .fusion-carousel * { visibility: visible !important; }
.fusion-image-carousel .fusion-carousel-positioner { position: static !important; overflow: visible !important; }
.fusion-image-carousel .fusion-carousel-holder { display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 32px; width: auto !important; height: auto !important; left: auto !important; transform: none !important; margin: 0 !important; padding: 0 !important; list-style: none; }
.fusion-image-carousel .fusion-carousel-item { float: none !important; width: 130px !important; margin: 0 !important; }
.fusion-image-carousel .fusion-carousel-item img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .fusion-image-carousel .fusion-carousel-holder { gap: 12px 20px; } .fusion-image-carousel .fusion-carousel-item { width: 90px !important; } }

/* Mobile menu button: a 44x44 tap target in the dark brand green (5.2:1 on white). */
.fusion-mobile-menu-icons a.fusion-icon { display: inline-flex !important; align-items: center; justify-content: center; width: 44px !important; height: 44px !important; font-size: 26px !important; line-height: 1 !important; color: #2f7a4f !important; }
.fusion-mobile-menu-icons a.fusion-icon:hover, .fusion-mobile-menu-icons a.fusion-icon:focus { color: #1f6b3b !important; }

/* Blog: every post listed on /sport-court-tips/ (WordPress paged it; the pages were never captured). */
.all-tips { margin: 40px 0 20px; }
.all-tips h2 { font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 26px; line-height: 1.3; color: #333; margin: 0 0 16px; }
.all-tips ul { margin: 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 40px; }
.all-tips li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid #e5e5e5; }
.all-tips a, .all-tips-link a { color: #2f7a4f; font-family: Montserrat, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; }
.all-tips-link { text-align: center; margin: 20px 0 0; }
.all-tips-link a { font-weight: 600; text-decoration: underline; }
