/*
 * Meridex homepage hero motion slider (homepage only, loaded via @section('head')).
 *
 * Height: the original hero (.elementor-element-2acf3ae) has no fixed height; it is
 * sized by its content and Elementor padding. meridex-hero-slider.js measures that
 * native height and applies  height = native * 0.85  (the documented 15% reduction)
 * through --mw-h. Content and padding are trimmed in the JS if they would otherwise
 * push the hero back above that height.
 */
.elementor-14 .elementor-element-2acf3ae.mw-hero-on {
  position: relative;
  isolation: isolate;
}
/* Show the supplied first slide even before JavaScript has initialized. */
.elementor-14 .elementor-element.elementor-element-2acf3ae {
  background-image: url("/carryon/meridex-highway-hero.webp") !important;
  background-position: right center;
}
.elementor-14 .elementor-element-2acf3ae.mw-hero-trim {
  height: var(--mw-h);
  min-height: 0;
}
.elementor-14 .elementor-element-2acf3ae.mw-hero-pad {
  padding-top: var(--mw-pad, 24px) !important;
  padding-bottom: var(--mw-pad, 24px) !important;
}
.elementor-14 .elementor-element-2acf3ae.mw-hero-compact > .elementor-element-f92e520 .elementor-element-1a294b4 {
  --padding-top: 36px;
  --padding-bottom: 28px;
}
/* Remove surplus hero whitespace, not text or navigation, to reach the 85% target. */
.mw-hero-compact > .elementor-element-2fcd176 .elementor-element-bdee3ca > .elementor-widget-container {
  margin-top: 75px !important;
}
@media (max-width: 767px) {
  .mw-hero-compact > .elementor-element-f92e520 .elementor-element-9279033 {
    padding-bottom: 18px !important;
  }
}

/* Content stays above the animated layer. Flex items honour z-index without positioning. */
.mw-hero-on > .elementor-element { z-index: 2; }
.mw-hero-on > .elementor-element-2fcd176 { z-index: 3; }

.mw-hs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0c1236;
  contain: layout paint;
}
.mw-hs__layer { position: absolute; inset: 0; will-change: transform, opacity; }
.mw-hs__face {
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #0c1236;
}
.mw-hs__layer > .mw-hs__face { inset: 0; }
.mw-hs__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 54, .55) 0%, rgba(12, 18, 54, .12) 62%),
    linear-gradient(180deg, rgba(12, 18, 54, .22) 0%, rgba(12, 18, 54, .34) 45%, rgba(8, 11, 36, .86) 100%);
}
.mw-hs__in { box-shadow: 0 24px 70px rgba(4, 6, 24, .55); }
.mw-hs__tile { position: absolute; overflow: hidden; will-change: transform, opacity; }
.mw-hs__tile .mw-hs__face { will-change: auto; }

/* Controls */
.mw-hs-ctl {
  position: absolute;
  right: 22px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 30px;
  background: rgba(12, 18, 54, .72);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
}
.mw-hs-ctl button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.mw-hs-ctl button:hover { background: #fe000b; }
.mw-hs-ctl button:disabled { opacity: .45; cursor: default; background: transparent; }
.mw-hs-ctl button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; background: #11194e; }
.mw-hs-ctl svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.mw-hs-ctl .mw-ic-play { display: none; }
.mw-hs-ctl.is-paused .mw-ic-play { display: block; }
.mw-hs-ctl.is-paused .mw-ic-pause { display: none; }
.mw-hs-count {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.mw-hs-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .mw-hs-ctl { right: 12px; bottom: 10px; }
  .mw-hs-ctl button { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .mw-hs__layer, .mw-hs__tile { will-change: auto; }
}
