/* ==========================
   Hero
========================== */

.hero {
    align-self: stretch;
    min-height: 600px;
    padding: 60px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}


/* ==========================
   Hero Slider
========================== */

.hero__slider {
    position: absolute;
    inset: 0;

    z-index: 1;
}

.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    background-image: var(--hero-slide-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.116);
    pointer-events: none;
}

.hero__slide--active {
    opacity: 1;
}


/* ==========================
   Hero Content
========================== */

.hero__content {
    position: relative;

    z-index: 2;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: var(--space-10);
}


/* ==========================
   Hero Title
========================== */

.hero__title {
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-family-primary);
    font-size: var(--text-h2);
    font-style: italic;
    font-weight: var(--font-bold);
    line-height: var(--leading-h2);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}


/* ==========================
   Hero Description
========================== */

.hero__description {
    width: 260px;
    margin: 0;
    color: var(--color-white);
    font-family: var(--font-family-primary);
    font-size: var(--text-body);
    font-weight: var(--font-regular);
    line-height: var(--leading-body);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}


/* ==========================
   Pagination
========================== */

.hero__pagination {
    position: absolute;
    left: 50%;
    bottom: var(--space-6);
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hero__pagination-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.hero__pagination-dot:hover {
    background: var(--pink-500);
}

.hero__pagination-dot--active {
    width: 24px;
    border-radius: 999px;
    background: var(--color-white);
}


/* ==========================
   Tablet
========================== */

@media (max-width: 1024px) {

    .hero {
        min-height: 560px;
        padding: 48px;
    }

    .hero__slide {
        padding: 48px;
    }

    .hero__content {
        gap: var(--space-8);
    }

    .hero__title {
        font-size: 42px;
        line-height: 50px;
    }

    .hero__description {
        width: 240px;

        font-size: var(--text-body);
        line-height: var(--leading-body);
    }
}


/* ==========================
   Mobile
========================== */

@media (max-width: 768px) {

    .hero {
        min-height: 560px;
        padding: 32px 24px;
    }

    .hero__slide {
        padding: 32px 24px;
        background-position: center;
    }

    .hero__content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;

        gap: var(--space-6);
    }

    .hero__title {
        max-width: 100%;

        font-size: 36px;
        line-height: 44px;
    }

    .hero__description {
        width: 100%;
        max-width: 420px;

        font-size: var(--text-body);
        line-height: var(--leading-body);
    }

    .hero__pagination {
        bottom: 20px;
    }
}


/* ==========================
   Small Mobile
========================== */

@media (max-width: 480px) {

    .hero {
        min-height: 520px;
        padding: 24px 20px;
    }

    .hero__slide {
        padding: 24px 20px;
    }

    .hero__content {
        gap: var(--space-5);
    }

    .hero__title {
        font-size: 30px;
        line-height: 38px;
    }

    .hero__description {
        max-width: 100%;

        font-size: 15px;
        line-height: 22px;
    }

    .hero__pagination {
        bottom: 16px;

        gap: 8px;
    }

    .hero__pagination-dot {
        width: 7px;
        height: 7px;
    }

    .hero__pagination-dot--active {
        width: 20px;
    }
}


/* ==========================
   Reduced Motion
========================== */

@media (prefers-reduced-motion: reduce) {

    .hero__slide {
        transition: none;
    }

    .hero__pagination-dot {
        transition: none;
    }
}
