/* Hero sliders (.mh-800): hide Swiper arrows + fraction counter (elements may stay as direct children or move under .swiper-wrapper) */
.mh-800 .swiper .swiper-pagination,
.mh-800 .swiper .swiper-button-next,
.mh-800 .swiper .swiper-button-prev {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
}

/*
 * Hero HTML5 video: Safari/WebKit shows a centered cluster (skip back / pause-play / skip forward).
 * Hide only native media-control pseudos on tm-hero-swiper background videos.
 */
.tm-hero-swiper video.bg-video {
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.tm-hero-swiper video.bg-video::-webkit-media-controls,
.tm-hero-swiper video.bg-video::-webkit-media-controls-panel,
.tm-hero-swiper video.bg-video::-webkit-media-controls-enclosure,
.tm-hero-swiper video.bg-video::-webkit-media-controls-overlay-enclosure,
.tm-hero-swiper video.bg-video::-webkit-media-controls-overlay-play-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-start-playback-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-play-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-pause-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-seek-back-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-seek-forward-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-rewind-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-return-to-realtime-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-toggle-closed-captions-button,
.tm-hero-swiper video.bg-video::-webkit-media-controls-wireless-playback-picker-overlay {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    pointer-events: none !important;
    -webkit-appearance: none !important;
}

.tm-hero-swiper video.bg-video::-internal-media-controls-overlay-cast-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.anim-order-1, .anim-order-2{
    opacity: 0;
}


.swiper-slide.swiper-slide-active .swiper-inner,
.swiper-slide.swiper-slide-duplicate-active .swiper-inner{
  animation-name: fadeIn;
  animation-duration: 1.5s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
}

/* Keep hero title + subtitle/subcopy visible after entrance (avoid opacity snapping back to 0) */
.swiper-slide.swiper-slide-active .anim-order-1,
.swiper-slide.swiper-slide-duplicate-active .anim-order-1{
    animation-name: fadeInUp;
    animation-duration: .75s;
    animation-delay: 1s;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}
.swiper-slide.swiper-slide-active .anim-order-2,
.swiper-slide.swiper-slide-duplicate-active .anim-order-2{
    animation-name: fadeInUp;
    animation-duration: .75s;
    animation-delay: 1.3s;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}
.swiper-slide.swiper-slide-active .anim-order-3,
.swiper-slide.swiper-slide-duplicate-active .anim-order-3{
    animation-name: fadeInUp;
    animation-duration: .75s;
    animation-delay: 1.6s;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

.mh-800 .swiper-slide.swiper-slide-active .sw-caption,
.mh-800 .swiper-slide.swiper-slide-duplicate-active .sw-caption {
    visibility: visible;
    opacity: 1;
}

.mh-800 .swiper-slide.swiper-slide-active .sw-caption .anim-order-1,
.mh-800 .swiper-slide.swiper-slide-active .sw-caption .anim-order-2,
.mh-800 .swiper-slide.swiper-slide-active .sw-caption .anim-order-3,
.mh-800 .swiper-slide.swiper-slide-duplicate-active .sw-caption .anim-order-1,
.mh-800 .swiper-slide.swiper-slide-duplicate-active .sw-caption .anim-order-2,
.mh-800 .swiper-slide.swiper-slide-duplicate-active .sw-caption .anim-order-3 {
    visibility: visible;
}


        .warehouse-section {
            margin-bottom: 40px;
        }
        .warehouse-section h3 {
            margin-bottom: 15px;
            font-weight: 600;
        }
        .warehouse-section ul {
            padding-left: 18px;
        }
        .warehouse-wrapper {
            padding: 80px 0;
        }
        @media (max-width: 991px) {
            .warehouse-wrapper {
                padding: 50px 0;
            }
        }

/* ========== Transmarine hero redesign (.tm-hero-swiper) ========== */
.mh-800 .swiper .bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

/* Safari/WebKit: promote the active slide’s video so decoding + autoplay wake reliably after fade */
.mh-800 .swiper-slide-active video.bg-video,
.mh-800 .swiper-slide-duplicate-active video.bg-video {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mh-800 .swiper .slider-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100%;
    min-width: 177.78vh;
    border: 0;
    outline: 0;
    transform: translate(-50%, -50%) translateZ(0);
    -webkit-transform: translate(-50%, -50%) translateZ(0);
    z-index: 1;
    pointer-events: none;
}

.mh-800 .swiper .swiper-inner {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    isolation: isolate;
}

.tm-hero-swiper .tm-hero-swiper__veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(6, 18, 42, 0.45) 0%, rgba(6, 18, 42, 0.25) 40%, rgba(6, 18, 42, 0.65) 100%),
        radial-gradient(ellipse 90% 70% at 50% 35%, rgba(0, 0, 0, 0.15) 0%, transparent 65%);
}

.tm-hero-swiper.service-detail-hero.mh-800 .swiper .slider-video-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    transform: none;
    -webkit-transform: none;
}

.tm-hero-swiper.service-detail-hero.mh-800 .swiper .bg-video {
    object-fit: contain;
}

.tm-hero-swiper.service-detail-hero .swiper-inner {
    background-color: #050d18;
}

.tm-hero-swiper .sw-caption {
    transform: translateY(-50%);
}

.tm-hero-swiper .tm-hero-swiper__copy {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.tm-hero-swiper .tm-hero-swiper__copy h1 {
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
    letter-spacing: 0.04em;
    line-height: 1.12;
}

.tm-hero-swiper .tm-hero-swiper__copy .tm-hero-swiper__lead {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
}

.tm-hero-swiper .tm-hero-swiper__copy .btn-main {
    border-radius: 999px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Circular autoplay progress (multi-slide only; driven by JS class) */
.tm-hero-swiper .swiper > .tm-hero-autoplay-ring {
    position: absolute;
    left: 50%;
    bottom: clamp(72px, 18vh, 140px);
    transform: translateX(-50%);
    z-index: 4;
    margin: 0;
}

.tm-hero-swiper .tm-hero-autoplay-ring {
    --tm-hero-ring-circ: 125.664;
    width: 44px;
    height: 44px;
    margin-top: 1.75rem;
    margin-left: auto;
    margin-right: auto;
}

.tm-hero-swiper .tm-hero-autoplay-ring[hidden] {
    display: none !important;
}

.tm-hero-swiper .tm-hero-autoplay-ring svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tm-hero-swiper .tm-hero-autoplay-ring__progress {
    stroke-dasharray: var(--tm-hero-ring-circ);
    stroke-dashoffset: var(--tm-hero-ring-circ);
}

.tm-hero-swiper .tm-hero-autoplay-ring.tm-hero-autoplay-ring--animating .tm-hero-autoplay-ring__progress {
    animation: tmHeroAutoplayRing var(--tm-hero-autoplay-ms, 4000ms) linear forwards;
}

@keyframes tmHeroAutoplayRing {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 767px) {
    .tm-hero-swiper .tm-hero-swiper__copy h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}
