/* Home page hero: video background with title, text and button.
   Replaces the Slider Revolution module; sizes follow its four breakpoints. */
.amz-hero {
    --u: min(1px, calc(100vw / 1420));
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    height: calc(1100 * var(--u));
    overflow: hidden;
    background: #141d22;
    color: #fff;
}
.amz-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.amz-hero__shade {
    display: none;
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, 0.39);
}
.amz-hero__grid {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: calc(1420 * var(--u));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: calc(185 * var(--u)) calc(50 * var(--u)) 0;
    box-sizing: border-box;
    z-index: 2;
}
.amz-hero__title {
    max-width: calc(1111 * var(--u));
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: calc(70 * var(--u));
    line-height: calc(130 * var(--u));
    font-weight: 700;
    text-align: right;
    text-transform: capitalize;
    color: #fff;
}
.amz-hero__text {
    max-width: calc(727 * var(--u));
    margin: calc(15 * var(--u)) calc(-6 * var(--u)) 0 0;
    font-family: "Jost", sans-serif;
    font-size: calc(22 * var(--u));
    line-height: calc(28 * var(--u));
    font-weight: 500;
    text-align: right;
    color: #fff;
}
.amz-hero__btn,
.amz-hero__btn:visited {
    display: inline-block;
    margin-top: calc(28 * var(--u));
    padding: 0 calc(29 * var(--u));
    border: 1px solid #fff;
    font-family: "Jost", sans-serif;
    font-size: calc(12 * var(--u));
    line-height: calc(46 * var(--u));
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s;
}
.amz-hero__btn:hover,
.amz-hero__btn:focus { background: #000; color: #fff; }
.amz-hero__logo {
    position: absolute;
    z-index: 2;
    right: calc(20 * var(--u));
    bottom: calc(20 * var(--u));
    width: calc(220 * var(--u));
    height: auto;
}

/* Laptop */
@media (max-width: 1239px) {
    .amz-hero { --u: 1px; height: 768px; }
    .amz-hero__grid { width: 1024px; max-width: 100%; padding: 126px 50px 0; }
    .amz-hero__title { max-width: 584px; font-size: 44px; line-height: 54px; font-weight: 400; }
    .amz-hero__text { max-width: 517px; margin: 30px 0 0; font-size: 16px; line-height: 21px; }
    .amz-hero__btn { margin-top: 18px; padding: 0 27px; line-height: 42px; }
    .amz-hero__logo { right: 14px; bottom: 14px; width: 158px; }
}

/* Tablet */
@media (max-width: 1023px) {
    .amz-hero { height: 700px; }
    .amz-hero__grid { width: 778px; padding: 206px 35px 0; }
    .amz-hero__title { max-width: 363px; font-size: 27px; line-height: 34px; font-weight: 600; }
    .amz-hero__text { max-width: 454px; margin-top: 14px; font-size: 14px; line-height: 17px; }
    .amz-hero__btn { margin-top: 13px; padding: 0 31px; font-size: 14px; line-height: 46px; }
    .amz-hero__logo { right: 10px; bottom: 10px; width: 120px; }
}

/* Mobile: everything centred over a darkened video */
@media (max-width: 777px) {
    .amz-hero { --u: min(1px, calc(100vw / 480)); height: calc(650 * var(--u)); }
    .amz-hero__shade { display: block; }
    .amz-hero__grid {
        width: calc(480 * var(--u));
        align-items: center;
        justify-content: center;
        padding: 0 calc(20 * var(--u));
    }
    .amz-hero__title {
        max-width: none;
        font-size: calc(28 * var(--u));
        line-height: calc(48 * var(--u));
        text-align: center;
    }
    .amz-hero__text {
        max-width: calc(375 * var(--u));
        margin: calc(2 * var(--u)) 0 0;
        font-size: calc(16 * var(--u));
        line-height: calc(20 * var(--u));
        font-weight: 400;
        text-align: center;
    }
    .amz-hero__btn {
        margin-top: calc(13 * var(--u));
        padding: 0 calc(29 * var(--u));
        font-size: calc(12 * var(--u));
        line-height: calc(42 * var(--u));
    }
    .amz-hero__logo { right: calc(6 * var(--u)); bottom: calc(6 * var(--u)); width: calc(74 * var(--u)); }
}
