/* Static-site additions loaded after the captured Divi CSS.
   - self-hosted copies of the Google Fonts the original site used
   - styles for features that Divi/WordPress plugins used to provide with JavaScript */

/* ---------- Fonts (SIL Open Font License) ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/open-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/open-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/open-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/open-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/open-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/open-sans-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/open-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 600; font-display: swap; src: url(/assets/fonts/open-sans-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 700; font-display: swap; src: url(/assets/fonts/open-sans-latin-700-italic.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 800; font-display: swap; src: url(/assets/fonts/open-sans-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Abel"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/abel-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "ETmodules"; font-style: normal; font-weight: 400; font-display: block; src: url(/assets/fonts/modules.woff) format("woff"), url(/assets/fonts/modules.ttf) format("truetype"); }

/* ---------- Mobile menu (Divi used jQuery slideToggle) ---------- */
.mobile_nav.opened .et_mobile_menu { display: block; }
.mobile_menu_bar_toggle { cursor: pointer; }

/* ---------- Responsive embeds (Divi used FitVids) ---------- */
.fluid-width-video-wrapper { position: relative; width: 100%; padding: 0; }
.fluid-width-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- PDF embeds (replaces the "PDF Embedder" plugin) ---------- */
.pdf-embed { margin: 0 0 1em; }
.pdf-embed iframe { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; border: 1px solid #ddd; background: #f4f4f4; }
.pdf-embed-fallback { padding: 8px 0 0 !important; font-size: 14px; }
.pdf-embed-fallback a { color: inherit; text-decoration: underline; }

/* ---------- Clickable sections ---------- */
.et_clickable { cursor: pointer; }

/* ---------- Gallery lightbox (replaces Magnific Popup) ---------- */
.static-lightbox { position: fixed; inset: 0; z-index: 1000000; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); }
.static-lightbox.is-open { display: flex; }
.static-lightbox figure { max-width: 92vw; max-height: 88vh; margin: 0; text-align: center; }
.static-lightbox img { display: block; max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin: 0 auto; box-shadow: 0 0 8px rgba(0, 0, 0, .6); }
.static-lightbox figcaption { padding-top: 8px; color: #ccc; font-size: 13px; }
.static-lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; opacity: .8; font: 300 48px/1 Arial, sans-serif; padding: 10px 16px; }
.static-lightbox button:hover, .static-lightbox button:focus-visible { opacity: 1; }
.static-lightbox-close { top: 8px; right: 8px; font-size: 40px !important; }
.static-lightbox-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.static-lightbox-next { right: 4px; top: 50%; transform: translateY(-50%); }
.static-lightbox.is-single .static-lightbox-prev, .static-lightbox.is-single .static-lightbox-next { display: none; }

/* ---------- Forms ---------- */
.static-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.static-field-error { display: block; margin-top: 6px; color: #c02b0a; font-size: 13px; line-height: 1.4; }
.static-form-status { clear: both; margin: 16px 0 0; padding: 12px 16px; border-radius: 3px; font-size: 14px; line-height: 1.5; }
.static-form-status.is-error { border: 1px solid #c02b0a; background: #fff6f4; color: #c02b0a; }
.static-form-status.is-success { border: 1px solid #2e7d32; background: #f1f8f1; color: #1b5e20; }
.static-form-status a { color: inherit; text-decoration: underline; }
form[data-static-form] [aria-invalid="true"] { border-color: #c02b0a !important; }
form[data-static-form] button[disabled], form[data-static-form] input[type=submit][disabled] { opacity: .6; cursor: wait; }

/* ---------- Without JavaScript nothing that Divi animates should stay hidden ---------- */
html:not(.js) .et_animated { opacity: 1 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .et_animated { opacity: 1 !important; animation: none !important; } }

/* ---------- 404 page ---------- */
.static-404 { padding: 80px 0 100px; text-align: center; }
.static-404 h1 { font-size: 36px; padding-bottom: 16px; }
.static-404 p { padding-bottom: 24px; }

/* ---------- Elula Forms "Get in touch" button (contact page) ---------- */
.elula-contact { padding: 10px 0 20px; text-align: center; }
.elula-contact p { padding-bottom: 22px; font-size: 18px; line-height: 1.6em; color: #666; }
.elula-contact-btn {
  display: inline-block; padding: 14px 40px; border: 2px solid #fd7718; border-radius: 3px; cursor: pointer;
  background: #fd7718; color: #fff; font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: 1px; line-height: 1.2; text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(253, 119, 24, .7); transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.elula-contact-btn:hover, .elula-contact-btn:focus-visible { background: #fff; color: #fd7718; transform: translateY(-1px); }
.elula-contact-btn:focus-visible { outline: 2px solid #fd7718; outline-offset: 3px; }

/* Footer credit: underline the Elula link so it reads as clickable */
#footer-info a { text-decoration: underline; text-underline-offset: 3px; }

/* SEO: page heading for search engines and screen readers on pages whose visible title is part of a banner image */
.seo-h1 { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
