/*:root {
    --nav-padding: 5em;
    --why-card-width: 80vw;
    --why-card-max-width: 500px;
}*/





.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#search {
    color: white;
}

#why {
    background-color: #ffffff;
    color: #333;
}




.search-bar {
    position: relative;
}

.search-bar form, .header-search-bar form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input[type="text"], .header-search-bar input[type="text"] {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    pointer-events: none;
    opacity: 0.5;
    background-color: #eee;
}

.search-bar input[type="submit"], .header-search-bar input[type="submit"] {
    padding: 0.8rem 1.5rem;
    border: 1px solid #007bff;
    background-color: #007bff;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    pointer-events: none;
    opacity: 0.5;
}

.search-bar input[type="submit"]:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.search-bar .coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 10;
}

.search-bar .coming-soon-overlay p {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}


@media screen and (max-width: 912px ) {

    .header-wrapper {
        justify-content: space-between;
    }

    #desktop-nav {
        display: none;
    }

    #mobile-nav {
        display: block;
    }

    #header-logo {
        flex-grow: 1;
        justify-content: flex-start;
    }

    :root {
        --why-card-width: 70vw;
    }

    .why-card {
        min-height: 280px;
    }
}

@media screen and (max-width: 560px ) {
    :root {
        --nav-padding: 4em;
        --why-card-width: 85vw;
    }

    header h1 {
        display: none;
    }

    .header-wrapper {
        padding: 0 0.5rem;
    }

    img.header-logo {
        height: calc(var(--nav-padding) - 0.8rem);
    }

    .section-item {
        min-height: calc(100vh - var(--nav-padding));
        padding: 1rem 0.5rem;
    }



    
    .horizontal-scroll-wrapper .why-card:first-child {
        margin-left: 0.5rem;
    }

    .horizontal-scroll-wrapper .why-card:last-child {
        margin-right: 0.5rem;
    }

    .search-bar form {
        flex-direction: column;
    }

    .search-bar input[type="text"] {
        border-radius: 4px 4px 0 0;
        margin-bottom: 5px;
    }

    .search-bar input[type="submit"] {
        border-radius: 0 0 4px 4px;
    }
}
