/* Elementor's runtime clipped wide decorative elements; without it the page scrolls sideways on phones. */
html, body { overflow-x: hidden; }

/* Behaviour the WordPress/NitroPack scripts used to provide. */
.eael-simple-menu-container .eael-simple-menu li { position: relative; }
.eael-simple-menu-container .eael-simple-menu li:hover > ul.sub-menu,
.eael-simple-menu-container .eael-simple-menu li:focus-within > ul.sub-menu {
  display: block !important; visibility: visible !important; opacity: 1 !important; transform: none !important;
}
.eael-simple-menu-container > .eael-simple-menu-toggle { display: none; }

@media (max-width: 1024px) {
  .eael-simple-menu-container { position: relative; min-height: 50px; width: 50px !important; margin-left: auto; }
  /* EA draws a second hamburger with pseudo-elements that its script normally hides; it also blocks clicks. */
  .eael-simple-menu-container::before, .eael-simple-menu-container::after { display: none !important; }
  .eael-simple-menu-container > .eael-simple-menu-toggle {
    display: flex !important; align-items: center; justify-content: center; cursor: pointer; width: 50px;
    position: relative !important; z-index: 2;
  }
  .eael-simple-menu-container > .eael-simple-menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }
  .eael-simple-menu-container > ul.eael-simple-menu { display: none !important; }
  .eael-simple-menu-container.csm-open > ul.eael-simple-menu {
    display: block !important; position: fixed; left: 0; right: 0; z-index: 9999; max-height: 80vh; overflow-y: auto;
    background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  }
  .eael-simple-menu-container.csm-open > ul.eael-simple-menu > li { float: none !important; display: block !important; width: 100%; }
  .eael-simple-menu-container.csm-open ul.sub-menu {
    position: static !important; display: block !important; visibility: visible !important; opacity: 1 !important;
    transform: none !important; box-shadow: none !important; width: 100% !important; padding-left: 16px;
  }
  .eael-simple-menu-container.csm-open a { color: #1a1a1a !important; }
}

.csm-cta-box { background: #fff; border-radius: 8px; padding: 28px 24px; text-align: center; color: #1a1a1a; }
.csm-cta-box p { margin: 0 0 12px; }
.csm-cta-title { font-size: 24px; font-weight: 700; }
.csm-cta-btn {
  display: inline-block; margin: 6px; padding: 14px 24px; border-radius: 6px; background: #1650e8;
  color: #fff !important; font-weight: 700; text-decoration: none;
}
.csm-cta-alt { background: #c2652c; }

/* Testimonial carousel: native horizontal scroll instead of Swiper. */
.swiper { overflow: hidden; }
.swiper .swiper-wrapper {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.swiper .swiper-wrapper::-webkit-scrollbar { display: none; }
.swiper .swiper-slide { flex: 0 0 100%; scroll-snap-align: start; box-sizing: border-box; }
.csm-swiper-nav { cursor: pointer; }

/* The blog's "Load More" button fetched posts from WordPress, which no longer exists. */
.eael-load-more-button-wrap, .eael-load-more-button { display: none !important; }

/* Images the archive lost and nothing could replace (infographics, stock photos named in captions):
   hide them and their empty widget instead of showing a grey box. */
img[src$="recovery/missing.svg"] { display: none !important; }
.elementor-widget-image:has(img[src$="recovery/missing.svg"]):not(:has(img:not([src$="recovery/missing.svg"]))) { display: none !important; }

/* Heading widgets that hold paragraph text (testimonials, intros); see mark_long_headings in build.py. */
.csm-long-heading .elementor-heading-title {
  font-size: 17px !important; line-height: 1.65 !important; font-weight: 400 !important;
  letter-spacing: normal !important; text-transform: none !important;
}

/* Photos from the Business Profile: hexagons and circles get a soft lift off the page. */
img[src*="recovery/img/hex-"], img[src*="recovery/img/emblem-"], img[src*="recovery/img/circle-"] {
  filter: drop-shadow(0 12px 22px rgba(0, 32, 106, .18));
}
img[src*="recovery/img/photo-"], img[src*="recovery/img/blog-"] { border-radius: 10px; }
.eael-timeline-post-image { background-size: cover !important; background-position: center !important; }
.eael-timeline-post-title-text { text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 14px rgba(0, 32, 106, .55); }
/* The large 2020/10 service icons now point at their 186px archived copies; keep them icon-sized. */
img[src*="/uploads/2020/11/Local-Moving.png"], img[src*="/uploads/2020/11/commercial-move.png"],
img[src*="/uploads/2020/11/long-distance.png"], img[src*="/uploads/2020/10/storage.png"] { max-width: 186px !important; }

/* Press feedback and visible keyboard focus on calls to action. */
.elementor-button, .csm-cta-btn, .eael-timeline-post-link { transition: transform 160ms cubic-bezier(.23, 1, .32, 1), box-shadow 200ms ease; }
.elementor-button:active, .csm-cta-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .elementor-button:hover, .csm-cta-btn:hover { box-shadow: 0 6px 16px rgba(0, 32, 106, .22); }
  .eael-timeline-post-link:hover { transform: translateY(-2px); }
}
a:focus-visible, button:focus-visible, .elementor-button:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid #157cd9; outline-offset: 2px;
}
.csm-on-dark, .csm-on-dark p, .csm-on-dark li, .csm-on-dark .elementor-heading-title { color: #fff !important; }
@media (prefers-reduced-motion: reduce) {
  .elementor-button, .csm-cta-btn, .eael-timeline-post-link { transition: box-shadow 200ms ease; }
  .elementor-button:active, .csm-cta-btn:active, .eael-timeline-post-link:hover { transform: none; }
}
