/* Static site fixes: enable animations with IntersectionObserver, hide WooCommerce login */

/* Fix: mfn-icons font face (ensure it loads with root-relative paths) */
@font-face {
  font-family: "mfn-icons";
  src: url("/wp-content/themes/betheme/fonts/mfn/icons.eot");
  src: url("/wp-content/themes/betheme/fonts/mfn/icons.eot?#iefix") format("embedded-opentype"),
       url("/wp-content/themes/betheme/fonts/mfn/icons.woff2") format("woff2"),
       url("/wp-content/themes/betheme/fonts/mfn/icons.woff") format("woff"),
       url("/wp-content/themes/betheme/fonts/mfn/icons.ttf") format("truetype"),
       url("/wp-content/themes/betheme/fonts/mfn/icons.svg#mfn-icons") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Fix: icon-menu-fine not showing (ensure content is set) */
.icon-menu-fine:before {
  content: "" !important;
  font-family: "mfn-icons" !important;
  font-style: normal;
  font-weight: normal;
  speak: none;
  display: inline-block;
  text-decoration: inherit;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
}

/* Fix: BeTheme scroll animations - set initial state, animations.min.css handles the rest */
.animate:not(.fadeIn):not(.fadeInLeft):not(.fadeInRight):not(.fadeInUp):not(.fadeInDown):not(.bounceIn):not(.bounceInLeft):not(.bounceInRight):not(.bounceInUp):not(.bounceInDown) {
  opacity: 0;
}

/* Fix: Hide WooCommerce login modal that leaks into static page */
.mfn-header-login,
.mfn-header-modal-login,
.woocommerce-form-login {
  display: none !important;
}

/* Fix: Hide Side_slide panel */
#Side_slide {
  display: none !important;
}

/* Fix: Ensure hero section is visible and properly sized */
.hero-section {
  position: relative;
  overflow: visible;
}

/* Fix: Ensure all lazy-loaded images show */
img[loading="lazy"] {
  opacity: 1 !important;
}

/* Fix: BeTheme hover_box descriptions - show by default on static site */
.hover_box .desc {
  opacity: 1 !important;
}

/* Fix: BeTheme client logos hidden_photo - show all */
.clients_slider .hidden_photo,
.our_clients .hidden_photo {
  opacity: 1 !important;
}

/* Header logo size fix */
#Header .logo img,
.mfn-logo img,
#Header img.logo,
header .logo img,
.mfn-header-builder img.logo,
.mhb-logo img.logo,
.mhb-item-inner img.logo {
  max-height: 60px !important;
  width: auto !important;
  height: auto !important;
}

/* Accessibility: Improve contrast for light gray text on white backgrounds */
/* Target meta text, dates, subtitles that may fail WCAG 4.5:1 ratio */
.post-meta,
.post-footer,
.testimonials_slider .testimonials_slider_ul li .author span,
.testimonials_slider .testimonials_slider_ul li .author span a,
.desc_footer,
.blockquote .author span,
blockquote p.author span {
  color: #595959 !important; /* Ensures 4.5:1 contrast on white */
}

/* Fix light gray links */
.mfn-footer .desc_footer a,
.testimonials_slider .author a {
  color: #595959 !important;
}
