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

/* ---- Armor Gleam fixes (QA round 1) ---- */

/* Phone menus: Header Footer Elementor opened these with its script. site.js now toggles the same classes. */
.hfe-nav-menu__toggle { cursor: pointer; }
.hfe-flyout-wrapper .hfe-side.hfe-flyout-show { left: 0 !important; transition: none; }
.hfe-flyout-wrapper .hfe-side.hfe-flyout-right.hfe-flyout-show { left: auto !important; right: 0 !important; }
.hfe-flyout-wrapper.ag-open .hfe-flyout-overlay { display: block; }
.hfe-flyout-close { cursor: pointer; }
/* Every link visible once a phone menu is open: sub-menus are listed in full (no extra taps). */
.hfe-flyout-wrapper .sub-menu,
.hfe-active-menu + nav .sub-menu { position: static !important; height: auto !important; visibility: visible !important; opacity: 1 !important; display: block !important; box-shadow: none !important; width: auto !important; }
.hfe-flyout-wrapper .sub-menu a.hfe-sub-menu-item,
.hfe-active-menu + nav .sub-menu a.hfe-sub-menu-item { padding-left: 32px; }
.hfe-active-menu + nav { position: absolute; top: 100% !important; left: 0; right: 0; z-index: 9999; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); max-height: calc(100vh - 120px); overflow-y: auto; }

/* Tap-to-call bar on phones and tablets: the header there has no phone number. */
.ag-callbar { display: none; }
@media (max-width: 1024px) {
  .ag-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; box-shadow: 0 -2px 10px rgba(0, 0, 0, .25); font-family: Poppins, Arial, Helvetica, sans-serif; }
  .ag-callbar a { flex: 1 1 50%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 10px; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; color: #fff; }
  .ag-callbar-call { background: #111; }
  .ag-callbar-quote { background: #0b6488; }
  .ag-callbar a:hover, .ag-callbar a:focus { color: #fff; text-decoration: underline; }
  body { padding-bottom: 52px; }
}

/* Homepage service cards and "Our Mission": one photo per card, cropped to the same shape. */
img.ag-card-img { display: block; width: 100%; height: auto; aspect-ratio: 1246 / 770; object-fit: cover; }

/* Homepage testimonials: white text sat on a light floor photo (1:1 contrast). */
.elementor-24 .elementor-widget-testimonial .elementor-testimonial-wrapper { background: rgba(10, 22, 32, .78); padding: 24px 20px; border-radius: 6px; }

/* FAQ answers open and close (Elementor's accordion script is gone; site.js toggles the classes). */
.elementor-accordion .elementor-tab-title { cursor: pointer; }
.elementor-accordion .elementor-tab-content { display: none; }
.elementor-accordion .elementor-tab-content.elementor-active { display: block; }
.elementor-accordion .elementor-tab-title .elementor-accordion-icon-opened { display: none; }
.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-opened { display: block; }
.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon-closed { display: none; }

/* Blog list (/blogs/). */
.ag-posts { display: grid; grid-template-columns: 1fr; gap: 32px; width: 100%; padding: 10px 0 50px; }
@media (min-width: 768px) { .ag-posts { grid-template-columns: repeat(2, 1fr); } }
.ag-post { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e3e3; border-radius: 6px; overflow: hidden; }
.ag-post-img img { display: block; width: 100%; height: auto; aspect-ratio: 768 / 439; object-fit: cover; }
.ag-post-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.ag-post-title { margin: 0 0 8px; font-family: Poppins, Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.35; font-weight: 600; }
.ag-post-title a { color: #1a1a1a; text-decoration: none; }
.ag-post-title a:hover { color: #0b6488; }
.ag-post-date { margin: 0 0 12px; font-size: 14px; color: #555; }
.ag-post-excerpt { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: #333; }
.ag-post-more { margin-top: auto; font-weight: 600; color: #0b6488; }

/* Long submit buttons ("Book My Appointment") never push the page wider than the screen. */
.wpcf7-form .wpcf7-submit { max-width: 100%; white-space: normal; }
