/* Things Divi's JavaScript used to do, done here instead, plus a few fixes. */

/* Header: fixed over the hero. Divi's script turned it white with a red border once the page scrolled. */
.main-header { transition: background-color .2s ease, box-shadow .2s ease; }
body .et_pb_section.main-header.is-scrolled { background-color: #fff !important; box-shadow: 0 2px 0 #cc0033; }
body .et_pb_section.main-header.is-scrolled .et_pb_menu, body .et_pb_section.main-header.is-scrolled .et_pb_row { background-color: #fff !important; }
.et_pb_menu__logo a { display: inline-block; }

/* Mobile menu button: a real 44px button, red on white so it shows on the photo. */
.et_pb_menu .mobile_nav .mobile_menu_bar { -webkit-appearance: none; appearance: none; border: 0; margin: 0; padding: 0; cursor: pointer;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transform: none; line-height: 1; }
/* Three bars drawn in CSS, so the button never depends on the icon font loading. */
.et_pb_menu .mobile_nav .mobile_menu_bar:before { content: "" !important; display: block; width: 24px; height: 18px; top: 0 !important;
  background: linear-gradient(#cc0033 0 0) 0 0 / 100% 3px no-repeat, linear-gradient(#cc0033 0 0) 0 50% / 100% 3px no-repeat, linear-gradient(#cc0033 0 0) 0 100% / 100% 3px no-repeat; }
.et_pb_menu .mobile_nav.opened .mobile_menu_bar:before { width: 20px; height: 20px;
  background: linear-gradient(45deg, transparent 45%, #cc0033 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #cc0033 45% 55%, transparent 55%); }
.et_pb_menu .mobile_nav .mobile_menu_bar:focus-visible { outline: 3px solid #cc0033; outline-offset: 2px; }
.mobile_nav.opened .et_mobile_menu { display: block; max-height: calc(100vh - 110px); overflow-y: auto; border-top-color: #cc0033; }
body .et_pb_menu .mobile_nav ul.et_mobile_menu { background-color: #fff !important; }
.et_mobile_menu a { text-decoration: none !important; }
.et_mobile_menu .sub-menu { position: static !important; opacity: 1 !important; visibility: visible !important; display: block !important; width: auto !important;
  box-shadow: none !important; border: 0 !important; padding: 0 0 0 16px !important; transform: none !important; background: transparent !important; }
.et_mobile_menu .sub-menu li { padding: 0 !important; width: auto !important; }
.et_mobile_menu .parent-menu-item > a:after { content: "+" !important; font-family: inherit !important; font-size: 22px !important; top: 8px !important; }
.et_mobile_menu .parent-menu-item > a.switched-icon:after { content: "\2212" !important; }
.et_mobile_menu li a { color: #333 !important; font-size: 16px; padding: 12px 5%; }
.et_mobile_menu li.current-menu-item > a { color: #cc0033 !important; }
.et_mobile_menu .menu-btn a { color: #cc0033 !important; font-weight: 700; }

/* Header phone icon (was Font Awesome). */
.phone-ico { vertical-align: -1px; margin-right: 4px; }

/* Hero subtitle: dark text on a grey photo needs a light backing to stay readable. */
#page-banner .et_pb_text_inner h5 { display: inline-block; background: rgba(255,255,255,.82); padding: 4px 12px; color: #222 !important; }
#page-banner .et_pb_text_inner { text-align: center; }

/* Lead forms: honeypot off-screen, 16px inputs so phones don't zoom, a visible status line. */
.lead-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.et_pb_contact_form .input, .et_pb_contact_form select.input { font-size: 16px !important; }
.lead-form-output[hidden] { display: none; }
.lead-form-output { margin: 12px 0 0; padding: 8px 12px; border: 2px solid #dc3232; background: #fff; color: #222; font-size: 15px; clear: both; }
.et_pb_contact_form .et_contact_bottom_container { float: none; display: flex; justify-content: flex-end; }

/* Phones: Divi's 1/2 columns must stack, and nothing may be wider than the screen. */
@media (max-width: 980px) {
  .et_pb_row { width: 90% !important; max-width: 100% !important; flex-wrap: wrap !important; }
  .et_pb_row > .et_pb_column { width: 100% !important; margin-right: 0 !important; float: none !important; }
  .et_pb_text_inner, .et_pb_text_inner * { overflow-wrap: anywhere; }
  img { max-width: 100%; height: auto; }
}
html, body { overflow-x: clip; }

/* Pages rebuilt from 2021 captures: their photo columns were CSS backgrounds that no archive kept.
   Let the text use the whole row instead of leaving a blank half. */
.page-2021 .et_pb_column_empty { display: none !important; }
.page-2021 .et_pb_row:has(> .et_pb_column_empty) > .et_pb_column { width: 100% !important; margin-right: 0 !important; }

/* Lazy-load placeholders are gone; never hide images waiting for a script. */
img.lazyload, img.lazyloading, .lazyload { opacity: 1 !important; visibility: visible !important; }

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