
/* ==========================================
   BRIGHT DIAMONDS - HERO BANNER
========================================== */

/* ==========================================
   HERO CONTAINER
========================================== */

.hero-section {
    width: var(--hero-width);
    margin: 24px auto 0;
    height: 500px;
}

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: var(--hero-desktop-ratio);
    overflow: hidden;
    isolation: isolate;

    border-radius: var(--hero-border-radius);
    background: var(--primary-color);
    height: 100%;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==========================================
   INDIVIDUAL SLIDE
========================================== */

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity var(--hero-fade-duration) ease,
        visibility var(--hero-fade-duration) ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* ==========================================
   BACKGROUND IMAGE
========================================== */

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.hero-background picture,
.hero-background img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-background img {
    object-fit: cover;
    object-position: center;
}

/* ==========================================
   IMAGE OVERLAY
========================================== */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--slide-overlay, transparent);
    pointer-events: none;
}

/* ==========================================
   HERO CONTENT
========================================== */

.hero-content {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    width: min(65%, 950px);
    height: 100%;

    padding:
        clamp(55px, 7vw, 120px)
        clamp(45px, 6vw, 115px);

    color: var(--hero-text-color);
}

/* Eyebrow */

.hero-eyebrow {
    display: block;
    margin-bottom: 22px;

    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--font-semibold);
    letter-spacing: 3px;
    line-height: 1.5;
    text-transform: uppercase;

    color: var(--hero-text-color);
}

/* Heading */

.hero-title {
    margin: 0 0 24px;

    font-family: var(--font-heading);
    font-size: clamp(40px, 4.4vw, 76px);
    font-weight: var(--font-regular);
    line-height: 1.12;
    letter-spacing: -1px;

    color: var(--hero-text-color);
}

/* Description */

.hero-description {
    max-width: 660px;
    margin: 0 0 35px;

    font-family: var(--font-body);
    font-size: clamp(14px, 1.15vw, 17px);
    font-weight: var(--font-regular);
    line-height: 1.8;

    color: var(--hero-text-color);
}

/* ==========================================
   CTA BUTTON
========================================== */

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 15px 28px;

    background: var(--hero-button-background);
    color: var(--hero-button-color);

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--font-bold);
    text-decoration: none;

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-header);
}

.hero-cta i {
    transition: transform var(--transition-normal);
}

.hero-cta:hover i {
    transform: translateX(4px);
}

/* ==========================================
   SLIDER ARROWS
========================================== */

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: var(--hero-arrow-background);
    color: var(--text-white);

    font-size: 16px;
    cursor: pointer;

    transform: translateY(-50%);

    transition: background var(--transition-normal);
}

.hero-arrow:hover {
    background: var(--hero-arrow-hover-background);
}

.hero-arrow-prev {
    left: 15px;
}

.hero-arrow-next {
    right: 15px;
}

.hero-arrow[hidden] {
    display: none;
}

/* ==========================================
   PAGINATION
========================================== */

.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    z-index: 10;

    display: flex;
    align-items: center;
    gap: 9px;

    transform: translateX(-50%);
}

.hero-pagination[hidden] {
    display: none;
}

.hero-dot {
    width: 36px;
    height: 3px;

    padding: 0;
    border: 0;
    border-radius: 0;

    background: var(--hero-pagination-inactive);
    cursor: pointer;

    transition:
        width var(--transition-normal),
        background var(--transition-normal);
}

.hero-dot.is-active {
    width: 52px;
    background: var(--hero-pagination-active);
}

/* ==========================================
   Large Screen
========================================== */

@media (min-width: 1455px) {
    .hero-section {
        height: 700px;
    }
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .hero-content {
        width: 68%;
        padding: 50px 55px;
    }

    .hero-title {
        font-size: clamp(34px, 4.3vw, 56px);
    }

    .hero-description {
        font-size: 14px;
    }

}

/* ==========================================
   MOBILE - IMAGE TOP, CONTENT BOTTOM
========================================== */

@media (max-width: 767px) {

    .hero-section {
        width: 94%;
        margin-top: 14px;
        height: 800px;
    }

    .hero-slider {
        aspect-ratio: var(--hero-mobile-ratio);
        border-radius: var(--hero-mobile-radius);
    }

    .hero-background img {
        object-position: center top;
    }

    .hero-content {
        position: relative;

        width: 100%;
        height: 100%;

        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;

        padding: 30px 28px 65px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: clamp(30px, 7.5vw, 43px);
        line-height: 1.15;
        letter-spacing: -0.5px;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 22px;
    }

    .hero-cta {
        padding: 12px 20px;
        font-size: 12px;
    }

    .hero-arrow {
        top: 45%;
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .hero-arrow-prev {
        left: 10px;
    }

    .hero-arrow-next {
        right: 10px;
    }

    .hero-pagination {
        bottom: 20px;
    }

    .hero-dot {
        width: 25px;
    }

    .hero-dot.is-active {
        width: 35px;
    }

    .hero-overlay {
        background: var(--slide-overlay-mobile, transparent);
    }

}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 390px) {

    .hero-content {
        padding: 22px 22px 55px;
    }

    .hero-title {
        font-size: 29px;
    }

    .hero-description {
        font-size: 12px;
    }

}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .hero-slide,
    .hero-cta,
    .hero-dot {
        transition-duration: 0.01ms !important;
    }

}
