/**
 * MadeBySaleem Editorial Banner
 *
 * @package MadeBySaleem
 */

.mbs-editorial-banner {
    --mbs-editorial-navy: #071525;
    --mbs-editorial-text: #4f5357;
    --mbs-editorial-muted: #77746f;
    --mbs-editorial-accent: #008c70;
    --mbs-editorial-background: #f4eee5;
    --mbs-editorial-white: #ffffff;

    position: relative;
    width: 100%;
    padding: clamp(80px, 7vw, 120px) 0;
    background: var(--mbs-editorial-white);
    overflow: hidden;
}

.mbs-editorial-banner *,
.mbs-editorial-banner *::before,
.mbs-editorial-banner *::after {
    box-sizing: border-box;
}

.mbs-editorial-banner__container {
    width: min(100% - 48px, 1780px);
    margin-inline: auto;
}

.mbs-editorial-banner__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: clamp(560px, 47vw, 760px);
    background: var(--mbs-editorial-background);
    overflow: hidden;
}

.mbs-editorial-banner__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: clamp(54px, 7vw, 120px);
}

.mbs-editorial-banner__content::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(25px, 4vw, 70px);
    width: 1px;
    background: rgba(7, 21, 37, 0.1);
    content: "";
}

.mbs-editorial-banner__content-inner {
    position: relative;
    width: min(100%, 690px);
    margin-inline: auto;
}

.mbs-editorial-banner__eyebrow {
    margin: 0 0 25px;
    color: var(--mbs-editorial-accent);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 3.4px;
    text-transform: uppercase;
}

.mbs-editorial-banner__title {
    max-width: 650px;
    margin: 0;
    color: var(--mbs-editorial-navy);
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 5.4vw, 90px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -1.9px;
}

.mbs-editorial-banner__description {
    max-width: 570px;
    margin: clamp(28px, 3vw, 40px) 0 0;
    color: var(--mbs-editorial-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 400;
    line-height: 1.9;
}

.mbs-editorial-banner__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    min-height: 54px;
    margin-top: clamp(33px, 4vw, 48px);
    padding: 0 6px 12px;
    color: var(--mbs-editorial-navy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.8px;
    text-decoration: none;
    text-transform: uppercase;
}

.mbs-editorial-banner__button::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 300ms ease;
}

.mbs-editorial-banner__button:hover,
.mbs-editorial-banner__button:focus-visible {
    color: var(--mbs-editorial-accent);
}

.mbs-editorial-banner__button:hover::after {
    transform: scaleX(0.38);
    transform-origin: right center;
}

.mbs-editorial-banner__button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 240ms ease;
}

.mbs-editorial-banner__button:hover svg {
    transform: translateX(6px);
}

.mbs-editorial-banner__button:focus-visible {
    outline: 2px solid var(--mbs-editorial-accent);
    outline-offset: 7px;
}

.mbs-editorial-banner__media {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.mbs-editorial-banner__image-wrap {
    position: absolute;
    inset: 0;
    background: #dfd8ce;
    overflow: hidden;
}

.mbs-editorial-banner__image {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    transform: scale(1.035);
    transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-editorial-banner:hover .mbs-editorial-banner__image {
    transform: scale(1.085);
}

.mbs-editorial-banner__image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 21, 37, 0.13) 0%,
            rgba(7, 21, 37, 0.02) 30%,
            rgba(7, 21, 37, 0.08) 100%
        );
    pointer-events: none;
}

.mbs-editorial-banner__monogram {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    background: rgba(7, 21, 37, 0.13);
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    backdrop-filter: blur(10px);
}

/**
 * Reveal animation.
 */
.mbs-editorial-banner__content,
.mbs-editorial-banner__media {
    opacity: 0;
    transition:
        opacity 700ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mbs-editorial-banner__content {
    transform: translateX(-35px);
}

.mbs-editorial-banner__media {
    transform: translateX(35px);
}

.mbs-editorial-banner.is-visible .mbs-editorial-banner__content,
.mbs-editorial-banner.is-visible .mbs-editorial-banner__media {
    opacity: 1;
    transform: translateX(0);
}

.mbs-editorial-banner.is-visible .mbs-editorial-banner__media {
    transition-delay: 120ms;
}

@media (max-width: 1280px) {
    .mbs-editorial-banner__container {
        width: min(100% - 40px, 1500px);
    }

    .mbs-editorial-banner__content {
        padding: clamp(50px, 5.5vw, 80px);
    }

    .mbs-editorial-banner__content::before {
        left: 28px;
    }
}

@media (max-width: 980px) {
    .mbs-editorial-banner {
        padding: 80px 0;
    }

    .mbs-editorial-banner__layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .mbs-editorial-banner__content {
        min-height: 520px;
        padding: 75px 70px;
        text-align: center;
    }

    .mbs-editorial-banner__content::before {
        top: 32px;
        right: 32px;
        bottom: auto;
        left: 32px;
        width: auto;
        height: 1px;
    }

    .mbs-editorial-banner__content-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mbs-editorial-banner__description {
        max-width: 640px;
    }

    .mbs-editorial-banner__media {
        min-height: 650px;
    }

    .mbs-editorial-banner__image-wrap {
        position: absolute;
    }
}

@media (max-width: 720px) {
    .mbs-editorial-banner {
        padding: 60px 0;
    }

    .mbs-editorial-banner__container {
        width: min(100% - 28px, 1780px);
    }

    .mbs-editorial-banner__content {
        min-height: 480px;
        padding: 65px 28px 58px;
    }

    .mbs-editorial-banner__content::before {
        top: 20px;
        right: 20px;
        left: 20px;
    }

    .mbs-editorial-banner__eyebrow {
        margin-bottom: 20px;
        font-size: 9px;
        letter-spacing: 2.7px;
    }

    .mbs-editorial-banner__title {
        max-width: 100%;
        font-size: clamp(45px, 13vw, 62px);
        line-height: 0.96;
        letter-spacing: -1px;
    }

    .mbs-editorial-banner__description {
        margin-top: 24px;
        font-size: 13px;
        line-height: 1.8;
    }

    .mbs-editorial-banner__button {
        margin-top: 30px;
        font-size: 10px;
    }

    .mbs-editorial-banner__media {
        min-height: 510px;
    }

    .mbs-editorial-banner__monogram {
        right: 18px;
        bottom: 18px;
        width: 67px;
        height: 67px;
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .mbs-editorial-banner__content {
        min-height: 450px;
    }

    .mbs-editorial-banner__title {
        font-size: 44px;
    }

    .mbs-editorial-banner__media {
        min-height: 450px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbs-editorial-banner *,
    .mbs-editorial-banner *::before,
    .mbs-editorial-banner *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .mbs-editorial-banner__content,
    .mbs-editorial-banner__media {
        opacity: 1;
        transform: none;
    }
}