﻿/* ==========================================================
   MIDDLEWAY HERO
   ========================================================== */

.mw-hero {
    position: relative;
    width: 100%;
    height: 68vh;
    min-height: 620px;
    overflow: hidden;
    background: #fff;
}


/* ==========================================================
   SWIPER
   ========================================================== */

.mw-hero-swiper,
.mw-hero-swiper .swiper-wrapper,
.mw-hero-swiper .swiper-slide {
    width: 100%;
    height: 100%;
}


/* ==========================================================
   HERO IMAGE
   ========================================================== */

.mw-hero-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.mw-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}


/* ==========================================================
   CONTENT OVERLAY
   ========================================================== */

.mw-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 72px 0;
    pointer-events: none;
}

/* ==========================================================
   GLASS CARD
   ========================================================== */

.mw-hero-card {
    width: 100%;
    max-width: 580px;
    padding: 36px;
    border-radius: 24px;
    background: rgba(255,255,255,.90);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 20px 60px rgba(15,23,42,.08);
    transform: translateY(30px);
    transition: opacity .75s ease, transform .75s ease;
    pointer-events: auto;
    margin-bottom: 21px;
}

.swiper-slide-active .mw-hero-card {
    opacity: .9;
    transform: translateY(0);
}


/* ==========================================================
   HERO TAG
   ========================================================== */

.mw-hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--mw-heading-color);
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* ==========================================================
   TITLE
   ========================================================== */

.mw-hero-title {
    margin: 0;
    color: var(--mw-heading-color);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
    max-width: none;
}

/* ==========================================================
   SUBTITLE
   ========================================================== */

.mw-hero-subtitle {
    margin-top: 26px;
    margin-bottom: 40px;
    color: var(--mw-text-color);
    font-size: 1rem;
    line-height: 1.75;
    max-width: none;
}


/* ==========================================================
   ACTIONS
   ========================================================== */

.mw-hero-actions {
    display: flex;
    gap: 14px;
}

    .mw-hero-actions .mw-button-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 30px;
        border-radius: 999px;
        background: var(--mw-color-primary);
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

    .mw-hero-actions .mw-button-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 14px 30px;
        border-radius: 999px;
        background: #fff;
        color: var(--mw-heading-color);
        border: 1px solid rgba(0,0,0,.08);
        text-decoration: none;
        font-weight: 600;
    }


    /* ==========================================================
   HERO BUTTONS
   ========================================================== */

    .mw-hero-actions .mw-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 150px;
        padding: 11px 22px;
        border-radius: 999px;
        font-size: .90rem;
        font-weight: 600;
        text-decoration: none;
        transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
    }

    .mw-hero-actions .mw-button:hover {
        transform: translateY(-2px);
    }


/* ==========================================================
   HERO PREVIOUS / NEXT
   ========================================================== */

.mw-hero-prev,
.mw-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    cursor: pointer;
    z-index: 20;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.mw-hero-prev {
    left: 32px;
}

.mw-hero-next {
    right: 32px;
}

    .mw-hero-prev:hover,
    .mw-hero-next:hover {
        transform: translateY(-50%) scale(1.06);
        box-shadow: 0 12px 30px rgba(15,23,42,.12);
    }

    .mw-hero-prev .mw-icon,
    .mw-hero-next .mw-icon {
        width: 22px;
        height: 22px;
    }


/* ==========================================================
   PAGINATION
   ========================================================== */

.mw-hero-pagination {
    position: absolute;
    top: 36px;
    right: 42px;
    z-index: 20;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    color: var(--mw-heading-color);
    font-weight: 600;
    letter-spacing: -.02em;
    min-width: 78px;
    text-align: center;
}

/* ==========================================================
   HERO CARD ANIMATION
   ========================================================== */

.swiper-slide-active .mw-hero-card {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   IMAGE ANIMATION
   ========================================================== */

.mw-hero-image {
    transform: scale(1.04);
    transition: transform 7s ease;
}

.swiper-slide-active .mw-hero-image {
    transform: scale(1);
}


/* ==========================================================
   SWIPER CURSOR
   ========================================================== */

.mw-hero-swiper {
    cursor: grab;
}

    .mw-hero-swiper:active {
        cursor: grabbing;
    }


/* ==========================================================
   REMOVE DEFAULT SWIPER STYLES
   ========================================================== */

.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}


/* ==========================================================
   FOCUS
   ========================================================== */

.mw-hero-prev:focus-visible,
.mw-hero-next:focus-visible {
    outline: 3px solid var(--mw-color-primary);
    outline-offset: 3px;
}


/* ==========================================================
   LARGE DESKTOP
   ========================================================== */

@media (min-width: 1600px) {

    .mw-hero-overlay {
        padding-inline: 10%;
    }
}


/* ==========================================================
   LAPTOP
   ========================================================== */

@media (max-width: 1200px) {

    .mw-hero {
        min-height: 660px;
    }

    .mw-hero-overlay {
        padding: 0 48px;
    }

    .mw-hero-card {
        max-width: 560px;
        padding: 40px;
    }

    .mw-hero-title {
        font-size: clamp(2.3rem,4vw,3.5rem);
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991px) {

    .mw-hero {
        height: 72vh;
        min-height: 620px;
    }

    .mw-hero-overlay {
        align-items: flex-end;
        padding: 32px;
    }

    .mw-hero-card {
        max-width: 100%;
        padding: 36px;
    }

    .mw-hero-title {
        font-size: 2.4rem;
    }

    .mw-hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .mw-hero-prev,
    .mw-hero-next {
        width: 46px;
        height: 46px;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .mw-hero {
        height: 72vh;
        min-height: 700px;
    }

    .mw-hero-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 20px;
    }

    .mw-hero-card {
        width: 100%;
        max-width: 100%;
        padding: 28px;
        border-radius: 22px;
    }

    .mw-hero-tag {
        margin-bottom: 18px;
        font-size: .75rem;
    }

    .mw-hero-title {
        font-size: 2rem;
        line-height: 1.12;
    }

    .mw-hero-subtitle {
        margin-top: 18px;
        margin-bottom: 28px;
        font-size: 1rem;
        line-height: 1.6;
    }

    .mw-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

        .mw-hero-actions .mw-button {
            width: 100%;
        }

    .mw-hero-prev,
    .mw-hero-next {
        display: none;
    }

    .mw-hero-pagination {
        top: 18px;
        right: 18px;
        padding: 8px 14px;
        font-size: .9rem;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    .mw-hero {
        min-height: 640px;
    }

    .mw-hero-overlay {
        padding: 16px;
    }

    .mw-hero-card {
        padding: 24px;
    }

    .mw-hero-title {
        font-size: 1.75rem;
    }

    .mw-hero-subtitle {
        font-size: .95rem;
    }
}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .mw-hero-card,
    .mw-hero-image,
    .mw-button,
    .mw-hero-prev,
    .mw-hero-next {
        transition: none !important;
        animation: none !important;
    }
}