﻿/* TODO: Clean this up and make universal hero/sections for CMCA skeleton */

#banner {
    /* NOTE: Keep this height in line with height in JS */
    height: 90vh;
    min-height: unset !important;
    padding: 0rem !important;
}

    #banner > img,
    #banner > video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

        #banner > video + .video-cover {
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            position: absolute;
        }

    #banner > a {
        width: 300px;
        font-size: 24px;
        min-height: 54px;
        max-height: 54px;
        font-family: "lulo-one";
    }

#explore > p {
    font-size: 16px;
    color: var(--text-light);
    text-align: center;
}

#why .feature-list {
    width: 100%;
    row-gap: 3rem;
    display: flex;
    flex-direction: column;
}

#why .feature-entry {
    display: grid;
    grid-template-columns: calc(50% - 5rem) 50%;
}

#why .feature-entry-image {
    --image-size: 120px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 50%;
    border: 5px solid var(--border-color);
    min-width: var(--image-size);
    max-width: var(--image-size);
    min-height: var(--image-size);
    max-height: var(--image-size);
    background-color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 90px;
}

    #why .feature-entry-image img {
        width: 80%;
    }

#why .feature-entry-details {
    display: flex;
    row-gap: 1.5rem;
    flex-direction: column;
    text-align: start;
    width: 100%;
}

    #why .feature-entry-details > h1 {
        font-size: 23px;
    }

    #why .feature-entry-details > h2 {
        font-size: 19px;
        color: var(--text-light)
    }

    #why .feature-entry-details > p {
        font-size: 16px;
    }

    #why .feature-entry-details > a {
        font-size: 18px;
        color: #4876BA;
        text-decoration: none;
        font-weight: bold;
        margin-top: 1rem;
    }

        #why .feature-entry-details > a:hover {
            text-decoration: underline;
        }

#what-to-expect .feature-row {
    display: flex;
    column-gap: 3rem;
    row-gap: 3rem;
}

#what-to-expect .feature-entry {
    flex-basis: 50%;
}

    #what-to-expect .feature-entry > h1 {
        font-size: 28px;
        margin-bottom: 3rem;
    }

    #what-to-expect .feature-entry > p {
        font-size: 16px;
        color: var(--text-light);
    }

#what-to-expect .feature-footer {
    font-size: 24px;
    margin: 4rem auto 0 auto;
    text-align: center;
}

#featured-parks .feature-grid {
    display: grid;
    grid-template-columns: calc(50% - 2.5rem) calc(50% - 2.5rem);
    grid-template-rows: 450px 450px;
    column-gap: 5rem;
    row-gap: 5rem;
}

#featured-parks .feature-card {
    display: block;
    height: 100%;
    min-height: 500px;
    box-sizing: content-box;
    background-color: #f1f2f9;
    transition: transform 100ms ease-in-out;
    -webkit-transition: transform 100ms ease-in-out;
    -o-transition: transform 100ms ease-in-out;
}

    #featured-parks .feature-card:hover {
        transform: scale(1.05);
    }

        #featured-parks .feature-card:hover h1 {
            color: var(--ochre);
        }

#featured-parks .feature-card-image {
    height: 250px;
}

#featured-parks .feature-card-image > img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#featured-parks .feature-card-details {
    margin: 2rem;
    overflow: hidden;
}

    #featured-parks .feature-card-details > h3 {
        font-size: 23px;
        margin-bottom: 1rem;
        color: var(--text-dark);
        transition: color 100ms ease-in-out;
        -webkit-transition: color 100ms ease-in-out;
        -o-transition: color 100ms ease-in-out;
    }

    #featured-parks .feature-card-details > span {
        font-size: 16px;
        color: var(--text-dark);
    }

#ready-cta {
    flex-direction: row;
    column-gap: 6rem;
    height: 800px;
    justify-content: space-between;
}

    #ready-cta .cta-image {
        flex-basis: 50%;
        background-image: url(/images/home/cta.png);
        background-size: cover;
        height: 100%;
    }

    #ready-cta .cta-details {
        flex-basis: 50%;
        display: flex;
        flex-direction: column;
        row-gap: 2rem;
        align-self: center;
    }

        #ready-cta .cta-details h1 {
            font-size: 34px;
            font-weight: bold;
        }

        #ready-cta .cta-details p {
            font-size: 24px;
            color: var(--text-light);
            font-weight: bold;
        }

.cmca-button {
    /* Remove Default Styling */
    background-color: transparent;
    border: none;
    margin: 0;
    padding: 0;
    text-align: inherit;
    font: inherit;
    border-radius: 0;
    appearance: none;
    /* Custom Styling */
    padding: 1rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 100ms ease-in-out;
    -webkit-transition: background-color 100ms ease-in-out;
    -o-transition: background-color 100ms ease-in-out;
}

    .cmca-button.primary {
        background-color: var(--ochre);
        color: white;
    }

        .cmca-button.primary:hover {
            background-color: var(--ochre-50);
        }

    .cmca-button.secondary {
        background-color: #102B45;
        color: white;
    }

        .cmca-button.secondary:hover {
            background-color: #102B45BF;
        }

@media (max-width: 1750px) {
    #explore, #why, #what-to-expect, #featured-parks, #ready-cta {
        padding-left: 10%;
        padding-right: 10%;
    }

        #featured-parks .feature-grid {
            grid-template-columns: calc(50% - 1rem) calc(50% - 1rem);
            column-gap: 2rem;
            row-gap: 2rem;
        }

        #ready-cta .cta-details h1 {
            font-size: 30px;
        }

        #ready-cta .cta-details p {
            font-size: 20px;
        }
}

@media (max-width: 1250px) {
    #explore, #why, #what-to-expect, #featured-parks, #ready-cta {
        padding-left: 3rem;
        padding-right: 3rem;
    }

        #why .feature-entry {
            display: flex;
            justify-content: space-between;
        }

    #ready-cta {
        column-gap: 3rem;
    }
}

@media (max-width: 1000px) {
    #explore, #why, #what-to-expect, #featured-parks, #ready-cta {
        padding-left: 2rem;
        padding-right: 2rem;
    }

        #featured-parks .feature-grid {
            grid-template-columns: 1fr;
            grid-template-rows: 450px 450px 450px 450px;
        }

        #what-to-expect .feature-row {
            flex-direction: column;
        }

        #what-to-expect .feature-entry > h1 {
            margin-bottom: 1rem;
        }

    #ready-cta {
        height: unset;
    }

        #ready-cta .cta-image {
            display: none;
        }

        #ready-cta .cta-details {
            flex-basis: 100%;
        }
}

@media (max-width: 800px) {
    #explore > p {
        font-size: 20px;
    }
}

@media (max-width: 650px) {

    #why .feature-entry-image {
        --image-size: 110px;
        min-width: var(--image-size);
        max-width: var(--image-size);
        min-height: var(--image-size);
        max-height: var(--image-size);
        font-size: 70px;
    }

    #why .feature-entry-details {
        row-gap: 0.5rem;
    }
}

@media (max-width: 500px) {
    #explore > p {
        font-size: 16px;
        padding: 0;
    }
}

@media (max-width: 375px) {
    #featured-parks .feature-grid {
        grid-template-rows: 250px 250px 250px 250px;
    }

    #featured-parks .feature-card {
        grid-template-rows: 75% 25%;
    }

    #featured-parks .feature-card-details {
        margin: 1rem;
    }

    #banner > a {
        width: fit-content;
    }
}

.avail-search__container {
    background-color: var(--light);
    padding: 0 1rem 1rem 1rem;
    border-radius: var(--card-border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin: 2rem;
    padding: 0 1rem;
    padding-top: 1rem;
    z-index: 2 !important;
}

.avail-search__guest-dropdown {
    margin-top: -8px;
}

.unv-form-group {
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    .unv-form-group {
        margin-top: 1rem !important;
    }

    .avail-search__container {
        padding-top: 0;
    }
}
