/* =========================================================
   ARES GROUP
   PROJECT SHOWCASE / HOMEPAGE CAROUSEL
   ========================================================= */


/* =========================================================
   1. CAROUSEL ROOT
   ========================================================= */

.ares-project-showcase {
    position: relative;

    width: 100%;

    height: 100vh;

    overflow: hidden;

    background: #101820;
    border-bottom-right-radius: 80px;
}


/* Splide must fill the entire showcase */
.ares-project-showcase .splide__track,
.ares-project-showcase .splide__list,
.ares-project-showcase .splide__slide {
    width: 100%;
    height: 100%;
}

.ares-project-showcase .splide__track {
    overflow: hidden;
}


.ares-project-showcase .splide__slide {
    width: 100% !important;
    min-width: 100% !important;
}

/* =========================================================
   2. INDIVIDUAL PROJECT SHOWCASE SLIDE
   ========================================================= */

.ares-project-showcase__slide {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    /*
     * Project banner now lives directly
     * on the Splide slide.
     */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    /*
     * Fallback in case an image does not load.
     */
    background-color: #101820;
}



/* =========================================================
   4. BACKGROUND OVERLAY

   Gives white text slightly more contrast without
   heavily darkening the photograph.
   ========================================================= */

.ares-project-showcase__overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.12) 0%,
            rgba(0, 0, 0, 0.02) 43%,
            rgba(0, 0, 0, 0.03) 100%
        );
}



/* =========================================================
   5. MAIN CONTENT CONTAINER
   ========================================================= */

.ares-project-showcase__container {
    --showcase-padding: 20px;

    position: relative;
    z-index: 2;

    width: calc(100% - 96px);
    height: 100%;

    margin-inline: auto;

    padding-inline: var(--showcase-padding);

    box-sizing: border-box;
}


@media (min-width: 1421px) {

    .ares-project-showcase__container {
        max-width: 1420px;
    }

}


@media (min-width: 1921px) {

    .ares-project-showcase__container {
        max-width: 1920px;
    }

}



/* =========================================================
   6. CENTER TOP INTRO
   ========================================================= */

.ares-project-showcase__intro {
    position: absolute;

    top: 17%;

    left: 50%;

    /*
     * Maximum heading width = 900px.
     *
     * On smaller screens, always preserve:
     * 20px left + 20px right.
     */
    width: min(
        900px,
        calc(100% - (var(--showcase-padding) * 2))
    );

    text-align: center;

    transform: translateX(-50%);

    opacity: 0;

    transition:
        opacity 700ms ease,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}


/*
 * Active slide content.
 */
.ares-project-showcase__slide.is-active
.ares-project-showcase__intro {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


/*
 * Non-active / outgoing slide.
 */
.ares-project-showcase__slide:not(.is-active)
.ares-project-showcase__intro {
    transform:
        translateX(-50%)
        translateY(12px);
}



/* =========================================================
   7. EYEBROW

   ACF:
   eyebrow_label

   GREEN marker in your screenshot.
   ========================================================= */

.ares-project-showcase__eyebrow {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.4;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}



/* =========================================================
   8. HEADING

   ACF:
   client_showcase_heading

   PURPLE marker in your screenshot.
   ========================================================= */

.ares-project-showcase__heading {
    margin: 0;

    color: #ffffff;

    font-family: 'Rajdhani', sans-serif;

    font-size: 3rem;

    font-weight: 500;

    line-height: 1.12;

    letter-spacing: -0.025em;

    text-shadow:
        0 2px 18px rgba(0, 0, 0, 0.12);
}



/* =========================================================
   9. CLIENT INFORMATION

   Bottom-left content.
   ========================================================= */

.ares-project-showcase__client {
    position: absolute;

    left: var(--showcase-padding);

    bottom: 100px;

    width: min(440px, 45vw);

    opacity: 0;

    transform: translateY(16px);

    transition:
        opacity 700ms ease 120ms,
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}


/*
 * Fade / rise client content into view.
 */
.ares-project-showcase__slide.is-active
.ares-project-showcase__client {
    opacity: 1;

    transform: translateY(0);
}



/* =========================================================
   10. CLIENT LOGO

   ACF:
   project_client_logo

   BROWN marker in your screenshot.
   ========================================================= */

.ares-project-showcase__logo {
    display: flex;

    align-items: center;

    margin-bottom: 24px;
}


.ares-project-showcase__logo-image {
    display: block;

    width: auto;
    max-width: 220px;
    width: 200px;
    height: auto;
    max-height: 72px;

    object-fit: contain;
    object-position: left center;
}



/* =========================================================
   11. PROJECT LOCATIONS

   ACF Repeater:
   project_locations

   ORANGE-marked area in your screenshot.
   ========================================================= */

.ares-project-showcase__locations {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
    width: 350px;
}



/*
 * Each location row.
 */
.ares-project-showcase__location {
    display: inline-flex;

    align-items: center;

    gap: 14px;

    width: 100%;

    color: #ffffff;

    text-decoration: none;

    transition:
        opacity 220ms ease;
    justify-content: space-between;
}


/*
 * Only links respond to hover.
 */
a.ares-project-showcase__location:hover {
    color: #ffffff;

    opacity: 0.74;
}



/*
 * Location title.
 */
.ares-project-showcase__location-name {
    font-size: 16px;
    font-weight: 600;
    font-family: Rajdhani, sans-serif;
    line-height: 1.5;
    letter-spacing: 2px;
    text-transform: uppercase;
}



/* =========================================================
   PROJECT LOCATION ARROW
   ========================================================= */

.ares-project-showcase__location-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 37px;
    height: 42px;

    line-height: 1;

    transition:
        transform 220ms ease;
}


/*
 * SVG itself.
 */
.ares-project-showcase__location-arrow-svg {
    display: block;

    width: 100%;
    height: 100%;
}


a.ares-project-showcase__location:hover
.ares-project-showcase__location-arrow {
    transform: translateX(3px);
}



/* =========================================================
   12. SPLIDE PAGINATION

   YELLOW marker in your screenshot.

   These sit bottom-right.

   Inactive:
   small round dot.

   Active:
   longer pill/tab.
   ========================================================= */

.ares-project-showcase
.ares-project-showcase__pagination {
    position: absolute;

    z-index: 10;

    left: auto;
    right: max(
        48px,
        calc((100vw - 1420px) / 2)
    );

    bottom: 100px;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    width: auto;

    margin: 0;
    padding: 0;

    transform: none;
}



/*
 * At >1920px align pagination to the new
 * 1920px content container.
 */
@media (min-width: 1921px) {

    .ares-project-showcase
    .ares-project-showcase__pagination {
        right: max(
            48px,
            calc((100vw - 1920px) / 2)
        );
    }

}



/*
 * Remove Splide list marker.
 */
.ares-project-showcase
.ares-project-showcase__pagination li {
    display: flex;

    margin: 0;
    padding: 0;
}



/*
 * Normal pagination dot.
 */
.ares-project-showcase
.splide__pagination__page {
    display: block;

    width: 9px;
    height: 9px;

    margin: 0;

    padding: 0;

    border: 0;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.85);

    opacity: 1;

    transform: none;

    transition:
        width 280ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 280ms ease,
        opacity 280ms ease;
}



/*
 * ACTIVE DOT

 * This creates the longer tab/pill you requested.
 */
.ares-project-showcase
.splide__pagination__page.is-active {
    width: 29px;

    border-radius: 999px;

    background: #ffffff;

    opacity: 1;

    transform: none;
}



/* =========================================================
   13. TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .ares-project-showcase {
        height: clamp(
            720px,
            88vh,
            900px
        );
    }


    .ares-project-showcase__container {
        width: calc(100% - 64px);
    }


    .ares-project-showcase__intro {
        top: 15%;

        width: 84%;
    }


    .ares-project-showcase__client {
        bottom: 58px;

        width: 55%;
    }


    .ares-project-showcase
    .ares-project-showcase__pagination {
        right: 32px;

        bottom: 58px;
    }

}



/* =========================================================
   14. MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .ares-project-showcase {
        height: 780px;
        min-height: 780px;
    }


    /*
     * Mobile container gutter.
     */
    .ares-project-showcase__container {
        width: calc(100% - 40px);
    }


    /*
     * Background image.
     */
    .ares-project-showcase__background {
        object-position: center center;
    }


    /*
     * Intro / heading.
     */
    .ares-project-showcase__intro {
        top: 90px;

        width: 100%;
    }


    .ares-project-showcase__eyebrow {
        margin-bottom: 14px;

        font-size: 9px;

        letter-spacing: 0.22em;
    }


    .ares-project-showcase__heading {
        font-size: clamp(
            27px,
            8vw,
            38px
        );
    }


    /*
     * Client block.
     */
    .ares-project-showcase__client {
        left: 0;
        bottom: 92px;

        width: calc(100% - 40px);
    }


    .ares-project-showcase__logo {
        margin-bottom: 22px;
    }


    .ares-project-showcase__logo-image {
        max-width: 180px;
        max-height: 56px;
    }


    .ares-project-showcase__location-name {
        font-size: 16px;
        letter-spacing: 0.15em;
    }


    /*
     * Pagination goes underneath locations.
     */
    .ares-project-showcase
    .ares-project-showcase__pagination {
        left: 20px;
        bottom: 30px;
    }

}



/* =========================================================
   15. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .ares-project-showcase {
        height: 740px;
        min-height: 740px;
    }


    .ares-project-showcase__container {
        width: calc(100% - 32px);
    }


    .ares-project-showcase__intro {
        top: 72px;
    }


    .ares-project-showcase__heading {
        font-size: 29px;
    }


    .ares-project-showcase__client {
        bottom: 82px;

        width: 100%;
    }


    .ares-project-showcase
    .ares-project-showcase__pagination {
        left: 16px;
        bottom: 26px;
        justify-content: start;
    }

}



/* =========================================================
   16. REDUCED MOTION
   ========================================================= */

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

    .ares-project-showcase__intro,
    .ares-project-showcase__client,
    .ares-project-showcase
    .splide__pagination__page {
        transition: none;
    }

}