/* Marines Hero Slider — Frontend */

.mhs-hero {
    position: relative;
    width: 100%;
    height: var(--mhs-height, 90vh);
    overflow: hidden;
    background: #000;
    margin: 0;
}

.mhs-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.mhs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1;
    pointer-events: none;
}

.mhs-slide.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.mhs-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Title overlay */
.mhs-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    z-index: 3;
    background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.05) 50%, rgba(0,0,0,.35) 100%);
    pointer-events: none;
}

.mhs-title {
    color: #fff;
    font-size: clamp(2rem, 6vw, 5.5rem);
    font-weight: 300;
    letter-spacing: .04em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
    margin: 0 0 .4em;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease .4s, transform 1s ease .4s;
}

.mhs-subtitle {
    color: rgba(255,255,255,.95);
    font-size: clamp(1rem, 1.6vw, 1.4rem);
    font-weight: 300;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0,0,0,.4);
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease .6s, transform 1s ease .6s;
}

.mhs-slide.is-active .mhs-title,
.mhs-slide.is-active .mhs-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* Arrows */
.mhs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .25s;
}
.mhs-arrow:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-50%) scale(1.05);
}
.mhs-arrow-prev { left: 24px; }
.mhs-arrow-next { right: 24px; }

/* Dots */
.mhs-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.mhs-dot {
    width: 36px;
    height: 3px;
    background: rgba(255,255,255,.4);
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 2px;
    transition: background .25s, width .25s;
}
.mhs-dot.is-active {
    background: #fff;
    width: 56px;
}
.mhs-dot:hover {
    background: rgba(255,255,255,.7);
}

/* Mobile */
@media (max-width: 768px) {
    .mhs-hero { height: 70vh; }
    .mhs-arrow { width: 40px; height: 40px; }
    .mhs-arrow-prev { left: 12px; }
    .mhs-arrow-next { right: 12px; }
    .mhs-dots { bottom: 18px; gap: 6px; }
    .mhs-dot { width: 24px; }
    .mhs-dot.is-active { width: 36px; }
}
