﻿/* Homepage */


/* =========================================
   HOME HERO
========================================= */

.home-hero {
    position: relative;
    height: 700px;
    overflow: hidden;
        background-color: #eee;
}

.home-hero__track {
    width: 100%;
    height: 100%;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-hero__slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__slide--side {
    display: none;
}

.home-hero__slide.is-active {
    display: block;
}


/* Active slide copy */
.home-hero__copy {
    position: absolute;
    left: 0;
    bottom: 0;

    width: min(600px, 80%);
    padding: 2.5rem;

    background: var(--black);
    color: var(--white);
    display: none;
}


/* Controls */
.home-hero__controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;

    display: flex;
    justify-content: space-between;

    padding-inline: 2rem;

    transform: translateY(-50%);
    pointer-events: none;
}

.home-hero__controls button {
    pointer-events: auto;
}


.home-hero {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.home-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.home-hero__slide--outgoing {
    z-index: 2;
    opacity: 1;
    transition: opacity 800ms ease-in-out;
}

.home-hero__slide--incoming {
    z-index: 1;
    opacity: 0;
    transition: opacity 800ms ease-in-out;
}

.home-hero__slide--outgoing.is-fading-out {
    opacity: 0;
}

.home-hero__slide--incoming.is-fading-in {
    opacity: 1;
}


    /* =========================================
       TABLET
    ========================================= */

    @media (max-width: 991.98px) {

        .home-hero__track {
            grid-template-columns: 12% 76% 12%;
        }

        .home-hero__copy {
            width: min(520px, 85%);
            padding: 2rem;
        }
    }


    /* =========================================
       MOBILE
    ========================================= */

    @media (max-width: 575.98px) {

        .home-hero {
            height: auto;
            aspect-ratio: 1 / 1;
        }

        .home-hero__track {
            width: 100%;
            height: 100%;
        }

        .home-hero__slide--side {
            display: none;
        }

        .home-hero__slide.is-active {
            width: 100%;
        }

        .home-hero__slide img {
            width: 100%;
            height: 100%;
            aspect-ratio: auto;
            object-fit: cover;
        }

        .home-hero__copy {
            position: absolute;
            left: 1rem;
            right: 1rem;
            bottom: 1rem;

            width: auto;
            padding: 1.5rem;
        }

        .home-hero__controls {
            top: 50%;
            left: 0;
            right: 0;
            padding-inline: 1rem;
            transform: translateY(-50%);
        }
    }




/* =========================================
       SMALLER CONTAINER WIDTH
========================================= */
.container-home {
    max-width: 1120px;
}

.container-home-content,
.home-page .quote-row.container,
.home-page .rte-row.container,
.home-page .accordion {
    max-width: 800px;
}



/* =========================================
   INTRO RTE ROW
========================================= */

.home-page.intro .rte-row {
    width: 100%;
    margin: 5rem auto 7.5rem auto !important;
    padding: 0 !important;
}

.home-page.intro .rte-row h1 {
    font-size: var(--font-size-heading-lg);
    text-transform: uppercase;
    letter-spacing: 0px;
    font-weight: 900;
}

.home-page.intro .rte-row h3 {
    font-size: var(--font-size-heading-md);
    text-transform: uppercase;
    letter-spacing: 0px;
    font-weight: 900;
}

.home-page.intro .rte-row p:last-of-type {
    margin-bottom: 0;
}


    /* Tablet */
    @media (max-width: 991.98px) {
        .container-home-content {
            max-width: 540px;
        }
    }

    /* Mobile */
    @media (max-width: 575.98px) {
        .container-home-content {
            max-width: 100%;
        }

        .home-page.intro {
            padding: 0 1rem !important;
        }

        .home-page.intro .rte-row.container {
            margin: 2rem auto 4rem !important;
        }
    }





/* =========================================
   UPCOMING EVENTS ROW
========================================= */
.home-events-band {
    position: relative;
    isolation: isolate;
}

.home-events-band::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -200px;
    z-index: -1;

    width: 100vw;
    height: 500px;

    transform: translateX(-50%);
    background: var(--yellow);
}

.home-events h2 {
    margin-left: 4rem;
    font-size: var(--font-size-heading-md);
    color: var(--magenta);
    text-transform: uppercase;
    letter-spacing: 0px;
    font-weight: 900;
}

.home-events__controls {
    display: flex;
    gap: 0.75rem;
}

.home-events__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    max-width: 1200px;
    padding-bottom: 150px;
}

.home-events__viewport::-webkit-scrollbar {
    display: none;
}

.home-events__list {
    display: flex;
    gap: 2rem;
}


/* UPCOMING EVENTS CARDS */

.home-events__item {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
    scroll-snap-align: start;
    transition: transform 350ms ease; 
}

.home-events__item.is-position-1 {
    transform: translateY(0);
}
.home-events__item.is-position-2 {
    transform: translateY(50px);
}
.home-events__item.is-position-3 {
    transform: translateY(100px);
}

.home-events__item .card-row-image-text {
    height: 100%;
}

.home-events .card.card-row-image-text .card-img-top {
    max-height: 250px;
    object-fit: cover;
    min-height: 250px;
}

.home-events__item .eyebrow {
    color: var(--yellow);
}
.home-events__item h3 {
    text-transform: uppercase;
}
.home-events__item p.dates {
    font-size: var(--font-size-body-sm);
}
.home-events__item p.dates .pipe:first-of-type {
    display: none;
}
.home-events__item a.link {
    font-size: var(--font-size-body-sm);
}


/* Tablet */
@media (max-width: 1199.98px) {

    .home-events {
        position: relative;
    }

    .home-events h2 {
        display: flex;
        align-items: center;
        min-height: 60px;
        margin-left: 0;
        margin-bottom: 0;
        padding-right: 130px; /* room for arrows */
        line-height: normal;
    }

    /* Move controls to heading row */
    .home-events [data-card-carousel-previous],
    .home-events [data-card-carousel-next] {
        position: absolute;
        top: 0;
        z-index: 5;
        width: 40px;
        height: 40px;
    }

    .home-events [data-card-carousel-previous] {
        right: 6rem;
    }

    .home-events [data-card-carousel-next] {
        right: 2rem;
    }

    .home-events__header {
        display: block;
    }

    .home-events__controls {
        display: block !important;
    }

    /* 2 cards inside container */
    .home-events__viewport {
        max-width: 100%;
        margin-top: 1rem;
        padding-bottom: 40px;
        margin-right: 0;
    }

    .home-events__list {
        gap: 2rem;
        align-items: stretch;
    }

    .home-events__item {
        flex: 0 0 calc((100% - 2rem) / 2);
    }

    .home-events__item.is-position-1,
    .home-events__item.is-position-2,
    .home-events__item.is-position-3 {
        transform: none;
    }
}


/* Small tablet / large mobile */
@media (max-width: 767.98px) {

    .home-events__viewport {
        width: auto;
        max-width: none;
        margin-right: calc((100vw - 100%) / -2);
    }

    .home-events__item {
        flex: 0 0 68%;
    }

    .home-events__list {
        gap: 1rem;
    }
}



/* Mobile */
@media (max-width: 575.98px) {

    .home-events-band::after {
        display: none;
    }

    .home-events {
        position: relative;
    }

    .home-events h2 {
        display: flex;
        align-items: center;
        min-height: 40px;
        margin-left: 0;
        padding-top: 1rem;
    }

    /* Previous / next controls */
    .home-events [data-card-carousel-previous],
    .home-events [data-card-carousel-next] {
        position: absolute;
        top: 0;
        width: 40px;
        height: 40px;
    }
    .home-events [data-card-carousel-previous] {
        right: 4rem;
    }
    .home-events [data-card-carousel-next] {
        right: 1rem;
    }

    .home-events__header {
        display: block;
    }

    .home-events__controls {
        display: block !important;
    }

    /* Carousel viewport stays below heading */
    .home-events__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        margin-top: 2rem;
        padding-bottom: 1rem;
        margin-right: calc(50% - 50vw);
    }

    .home-events__list {
        display: flex;
        gap: 1rem;
        align-items: stretch;
    }

}

@media (max-width: 399.98px) {
    /* One large card + peek of next card */
    .home-events__item {
        flex: 0 0 88%;
        min-width: 0;
        transform: none !important;
    }
}



/* =========================================
   TWO CARD ROW
========================================= */

.home-page .card-row-image-background .card-row-image {
    max-width: 1100px;
}

.home-page .card-row-image-text {
    box-shadow: var(--image-shadow-padding) var(--image-shadow-padding) 0px 0px var(--purple);
}

.home-page .card-row-image-text:nth-child(1) {
    margin-right: 1rem !important;
}

.home-page .card-row-image-text:nth-child(2) {
    margin-left: 1rem !important;
}

.home-page .card-row-image-text img {
    max-height: 300px;
    object-fit: cover;
}
.home-page .card-bottom .eyebrow {
    color: var(--yellow);
}
.home-page .card-bottom h3 {
    text-transform: uppercase;
}


    /* Laptop Screens */
    @media (max-width: 1399.98px) {
        .home-page .card-row-image-background .card-row-image {
            max-width: 1000px;
        }
    }

    /* Tablet */
    @media (max-width: 991.98px) {
        .home-page .card-row-image-background .card-row-image {
            max-width: 720px;
        }
        .home-page .card-row-image-text:nth-child(1) {
            margin-right: 0.5rem !important;
        }
        .home-page .card-row-image-text:nth-child(2) {
            margin-left: 0.5rem !important;
        }

        .home-page .card-row-image-text img {
            max-height: 240px;
        }
    }

    /* SMALL TABLET / LARGE MOBILE - Stack cards */
    @media (max-width: 1199.98px) {
        .home-page .card-row-image .row > [class*="col-"] {
            flex: 0 0 100%;
            max-width: 100%;
            width: 100%;
            margin-bottom: 2rem;
        }
        .home-page .card-row-image-background .card-row-image {
            max-width: 540px;
        }
        .home-page .card-row-image-text:nth-child(1),
        .home-page .card-row-image-text:nth-child(2) {
            margin-left: 0 !important;
            margin-right: 0 !important;
        }
        .home-page .card-row-image-text img {
            max-height: none;
            max-height: 400px;
            width: 100%;
        }
    }

    /* MOBILE */
    @media (max-width: 575.98px) {
        .home-page .card-row-image-background .card-row-image {
            max-width: 95%;
        }
    }



/* =========================================
   RTE ROW
========================================= */

.home-page .rte-row {
    width: 100%;
    margin: 5rem auto 0 auto !important;
}


    /* Tablet */
    @media (max-width: 991.98px) {
        .home-page .rte-row.container {
            max-width: 540px;
        }
    }

    /* Mobile */
    @media (max-width: 575.98px) {
        .home-page .rte-row.container {
            max-width: 100%;
            margin-top: 0 !important;
        }
        .home-page .rte-row.container p:last-of-type {
            margin-bottom: 0;
        }
    }


/* =========================================
   QUOTE ROW
========================================= */

.home-page .quote-row blockquote {
    width: 100%;
    margin: 5rem auto 0 auto !important;
}


    /* Tablet */
    @media (max-width: 991.98px) {
        .home-page .quote-row.container {
            max-width: 540px;
        }
    }

    /* Mobile */
    @media (max-width: 575.98px) {
        .home-page .quote-row.container {
            max-width: 90%;
        }
        .home-page .quote-row blockquote {
            margin: 1rem auto 0 auto !important;
        }
        .home-page .quote-body {
            font-size: var(--font-size-heading-sm);
        }
    }




/* =========================================
   PETAL CTA
========================================= */

.four-petal-grid {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.four-petal-grid::before {
    content: "";
    position: absolute;
    z-index: 0;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100vw;
    height: 450px;

    background: var(--yellow);
}

.four-petal-grid > * {
    position: relative;
    z-index: 1;
}

.four-upper-left,
.four-upper-right {
    align-self: end;
}

.four-lower-left,
.four-lower-right {
    align-self: start;
}

.four-upper-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    width: 75%;
    padding: 4rem 3rem;
    border-radius: 80px 80px 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.four-upper-right {
    grid-column: 2;
    grid-row: 1;
    border-radius: 80px 80px 80px 0;
    overflow: hidden;
}

.four-lower-left {
    grid-column: 1;
    grid-row: 2;
    border-radius: 80px 0 80px 80px;
    overflow: hidden;
}

.four-lower-right {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    width: 75%;
    padding: 4rem 3rem;
    border-radius: 0 80px 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.petal-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.four-upper-left,
.four-lower-right {
    width: min(75%, 500px);
    min-height: 450px;
    background-color: var(--black);
    color: var(--white);
}

.home-page .four-petal-grid .eyebrow {
    color: var(--yellow);
}
.home-page .four-petal-grid h3 {
    text-transform: uppercase;
}


/*Single Image*/
.dropshadow-top {
    margin-top: var(--image-shadow-padding);
    margin-left: var(--image-shadow-padding);
    box-shadow: calc(var(--image-shadow-padding) * -1)
        calc(var(--image-shadow-padding) * -1)
        0 0
        var(--purple);
}

.home-page .dropshadow {
    box-shadow: var(--image-shadow-padding) var(--image-shadow-padding) 0px 0px var(--pink);
}


@media (max-width: 767.98px) {
    .four-petal-grid {
        grid-template-columns: 1fr;
        max-width: 90%;
        padding: 0;
    }

    .four-upper-left {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        justify-self: stretch;
    }

    .four-upper-right {
        grid-column: 1;
        grid-row: 2;
    }

    .four-lower-right {
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        justify-self: stretch;
    }

    .four-lower-left {
        grid-column: 1;
        grid-row: 4;
    }

    .four-upper-left,
    .four-lower-right {
        width: min(100%, 500px);
        min-height: 0;
    }

    .four-upper-left,
    .four-lower-right {
        position: relative;
        z-index: 2;
        margin-bottom: -40px;
    }

    .four-upper-right,
    .four-lower-left {
        position: relative;
        z-index: 1;
    }

    .petal-image img {
        width: 100%;
        height: auto;
    }
    .four-petal-grid::before {
        display: none;
    }
}



/* =========================================
   ACCORDION ROW
========================================= */

.home-page .accordion {
    width: 100%;
    margin: 7.5rem auto 0 auto !important;
    padding: 0 1rem !important;
}

.home-page .accordion-body .rte-row {
    margin: 0 !important;
}

@media (max-width: 575.98px) {
    .home-page .accordion {
        padding: 0 !important;
        margin-top: 1rem !important;
    }
    .home-page .accordion-title {
        margin-bottom: 0 !important;
    }
    .accordion-button-title {
        font-size: var(--font-size-heading-sm);
    }
}


/* =========================================
   SPONSOR CAROUSEL
========================================= */

.home-page .sponsor-image-gallery {
    width: 100%;
    margin: 3rem auto 5rem auto !important;
    padding: 0 1rem !important;
}
.home-page .sponsor-image-gallery h2 {
    margin-bottom: 5rem !important;
    text-align: center;
}
.sponsor-image-gallery__carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.sponsor-image-gallery__viewport {
    max-width: 800px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sponsor-image-gallery__viewport::-webkit-scrollbar {
    display: none;
}

.sponsor-image-gallery__list {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sponsor-image-gallery__item {
    flex: 0 0 calc((100% - 8rem) / 4);
    min-width: 0;
}


@media (max-width: 767.98px) {
    .home-page .sponsor-image-gallery__item {
        flex-basis: 50%;
    }
}


@media (max-width: 575.98px) {
    .home-page .sponsor-image-gallery {
        margin: 0rem auto 0 auto !important;
    }
    .home-page .sponsor-image-gallery h2 {
        margin-bottom: 2rem !important;
        text-align: center;
    }
    .home-page .sponsor-image-gallery__item {
        flex-basis: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
