/*
 * Responsive home-page hero.
 *
 * The mobile composition is deliberately independent from the desktop one.
 * This keeps the editable heading, CTA and WordPress image while avoiding
 * transforms and fixed offsets that previously pushed the banner off-screen.
 */

main.main-homepage .hero {
    padding-top: 28px;
    padding-bottom: 32px;
}

.main-homepage .hero__from-to {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(52px, 14vw, 74px) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 560px;
    min-height: clamp(150px, 35vw, 190px);
    margin: 0 auto 12px;
    font-size: clamp(16px, 4vw, 22px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.main-homepage .hero__from-to .big-slash {
    align-self: center;
    justify-self: center;
    font-size: clamp(140px, 34vw, 190px);
    font-weight: 300;
    line-height: 0.62;
}

.main-homepage .hero__from-to-columns {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.main-homepage .hero__lead,
.main-homepage .hero__phrase {
    display: block;
}

.main-homepage .hero__phrase {
    white-space: normal;
}

.main-homepage .hero__from-to-columns.column-from {
    align-self: start;
}

.main-homepage .hero__from-to-columns.column-to {
    align-self: end;
    padding-bottom: 4px;
}

.main-homepage .hero-image {
    position: relative;
    min-height: 0;
}

.main-homepage .hero-image img {
    display: block;
    position: relative;
    z-index: 1;
    width: 72%;
    max-width: 320px;
    max-height: 360px;
    height: auto;
    margin: 24px auto 0;
    object-fit: contain;
}

.main-homepage .hero__image-deco {
    width: 62vw;
    max-width: 280px;
    position: absolute;
    aspect-ratio: 1;
    background-color: #e7e7e7;
    z-index: 0;
    top: 0;
    right: 0;
    left: auto;
    transform: none;
}

.main-homepage .hero__image-deco::after {
    right: 20px;
    top: 20px;
    bottom: auto;
}

.main-homepage .hero__content-outer {
    position: relative;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .main-homepage .hero-image {
        margin-top: -16px;
    }
}

@media (min-width: 992px) {
    main.main-homepage .hero {
        padding-top: 88px;
        padding-bottom: 80px;
    }

    .main-homepage .hero__from-to {
        display: flex;
        align-items: initial;
        width: auto;
        max-width: none;
        min-height: 0;
        margin: 0;
        font-size: 34px !important;
        line-height: 1.1 !important;
        letter-spacing: normal;
        justify-content: start;
    }

    .main-homepage .hero__phrase {
        white-space: nowrap;
    }

    .main-homepage .hero__from-to .big-slash {
        align-self: auto;
        justify-self: auto;
        font-size: 330px;
        line-height: 0.75;
        transform: translateX(28px);
    }

    .main-homepage .hero__from-to-columns.column-from {
        align-self: auto;
    }

    .main-homepage .hero__from-to-columns.column-to {
        align-self: auto;
        justify-content: end;
        padding-bottom: 0;
    }

    .main-homepage .hero-image {
        min-height: 0;
    }

    .main-homepage .hero-image img {
        width: auto;
        max-width: none;
        max-height: 600px;
        margin: 0;
    }

    .main-homepage .hero__image-deco {
        width: 100%;
        max-width: none;
        left: -20px;
        right: auto;
        top: -180px;
        transform: translateX(0);
        z-index: -1;
    }

    .main-homepage .hero__image-deco::after {
        right: 41px;
        top: 36px;
        bottom: auto;
    }
}
