/*
Theme Name: VR 2023
Author: Aprilred team
Author URI: https://aprilred.com/
Description: Theme for The Valley Resort.
Version: 1.0
Tags: vr
Text Domain: vr
*/

:root {
    --page-size: 1600px;

    /* Colors */
    --color-orange: #CD8D66;
    --color-white: #FFFFFF;
    --color-dark-bg: #303541;
    --color-dark-fg: #262626;

    /* Fonts */
    --font-marcellus: 'Marcellus', serif;
    --font-poppins: 'Poppins', sans-serif;

    /* Font sizes */
    --large: 4rem;
    --medium: 2rem;
    --regular: 1rem;
}

* {
    box-sizing: border-box;
}

html {
    font-family: var(--font-poppins);
    font-weight: 300;
    line-height: 1.5;
    background-color: var(--color-dark-bg);
    color: var(--color-white);
    scroll-padding-top: 90px;
}

body {
    margin: 0;
}

a {
    color: var(--color-orange);
    text-decoration: none;
}

img {
    max-width: 100%;
}

h2 {
    color: var(--color-orange);
    font-family: var(--font-marcellus);
    font-size: var(--medium);
    margin-bottom: var(--regular);
}

h3 {
    color: var(--color-orange);
    font-family: var(--font-marcellus);
    font-size: var(--medium);
    font-weight: 400;
    margin-bottom: var(--regular);
}

h4 {
    color: var(--color-orange);
    font-family: var(--font-marcellus);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--regular);
}

.site-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.site-content {
    flex-grow: 1;
}

.button {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--color-dark-fg);
    background-color: var(--color-orange);
    padding: 15px;
    border: none;
}

.button.video {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.button.video::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border: 1rem solid transparent;
    border-left: 1.5rem solid var(--color-dark-fg);
    border-right: none;
}

input[type=submit] {
    cursor: pointer;
}

/* General */

.button {
    width: 100%;
    text-align: center;
}

.button[disabled]{
    opacity: 0.5;
}

.left-side {
    padding-top: 30px;
}

#section-two, #section-six, .right-side, .left-side {
    max-width: 95%;
    margin: 0 auto;
}

.wpcf7-form p {
    margin-bottom: 0;
}

.wpcf7-not-valid-tip {
    margin-top: 0.4em;
}

.wpcf7-spinner {
    display: none;
}

.wpcf7 form .wpcf7-response-output {
    border: none;
    padding: 0;
    margin: 1em 0;
    color: #00a0d2;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-dark-bg);
}

.site-header-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header-main img {
    margin: 10px;
    max-width: 60px;
}

body:not(.error404) .site-header-main img {
    opacity: 0;
    transition: all 1600ms ease-in;
}

body:not(.error404).anim .site-header-main img {
    opacity: 1;
}

/* Custom Checkbox */

.custom-check input {
    display: none;
}

.custom-check .wpcf7-list-item {
    position: relative;
    margin: 0;
}

.custom-check .wpcf7-list-item-label {
    padding-left: 1.6em;
    display: block;
}

.custom-check .wpcf7-list-item-label::before,
.custom-check .wpcf7-list-item-label::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
}

.custom-check .wpcf7-list-item-label::before {
    width: 1em;
    height: 1em;
    border: 1px solid var(--color-white);
    transform: translateY(-50%);
}

.custom-check .wpcf7-list-item-label::after {
    display: none;
    left: 0.45em;
    width: 0.15em;
    height: 0.5em;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: translateY(-55%) rotate(45deg);
    -ms-transform: translateY(-55%) rotate(45deg);
    transform: translateY(-55%) rotate(45deg);
}

.custom-check input:checked ~ .wpcf7-list-item-label::after {
    display: block;
}

/* Section 1 */

#section-one {
    position: relative;
}

#section-one .hero_image {
    position: relative;
}

body:not(.error404) #section-one .hero_image::after {
    content: '';
    position: fixed;
    inset: 0;
    background-color: var(--color-dark-bg);
    z-index: 1;
    transition: all 1600ms ease-in;
}

body:not(.error404).anim #section-one .hero_image::after {
    opacity: 0;
    user-select: none;
    pointer-events: none;
}

#section-one .hero_image img {
    width: 100%;
}

#section-one .hero_image .hero_fg {
    position: absolute;
    inset: 0;
    z-index: 2;
}

#section-one .overlay {
    position: absolute;
    bottom: 0;
}

/* Section 2 */

#section-two .right-side .text {
    font-family: var(--font-marcellus);
    font-size: 10vw;
    color: var(--color-orange);
}

#section-two .right-side {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    margin: 40px auto;
}

#section-two .right-side img {
    max-width: 300px;
}

/* Section 3 */

#section-three .gallery-item img {
    display: block;
    aspect-ratio: 1.8;
    object-fit: cover;
}

.paralax {
    overflow: hidden;
}

.paralax img {
    position: relative;
    height: unset !important;
    min-height: 100%;
    top: var(--top, 0);
}

#section-three .gallery {
    position: relative;
    margin-block: 0;
}

#section-three .gallery > .button {
    position: absolute;
    display: block;
    left: 2.5%;
    bottom: 1rem;
    width: auto;
    min-width: 12rem;
}

/* Section 4 */

#section-four .left-side.small {
    padding-bottom: 40px;
}

#section-four .button {
    display: block;
}

#section-four .right-side {
    max-width: 100%;
}

#section-four .bungalownet {
    display: flex;
}

#section-four svg {
    max-width: 90vw;
    max-width: 90dvw;
    max-width: 100%;
}

/* Section 5 */

#section-five {
    position: relative;
    overflow: hidden;
}

#section-five img {
    width: 100%;
}

#section-five .info-svg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 15%);
    height: 100%;
    max-height: 50%;
}

#section-five .info-svg svg {
    display: block;
    width: 100%;
    height: 100%;
    margin: auto;
}

/* Section 6 */

#section-six {
    background-size: cover;
}

#section-six .left-side.small {
    max-width: 100%;
}

#section-six input[type=submit] {
    padding: 15px;
    font-size: var(--regular);
}

/* Section 7 */

#section-seven .page-wrapper {
    background-color: rgb(48 53 65 / 79%);
}

#section-seven strong {
    font-weight: 800;
    font-size: 1.5rem;
}

input {
    padding: 15px;
    margin-top: 10px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.41);
    max-width: 100%;
    width: 100%;
    background-color: transparent;
}

input::placeholder {
    font-family: var(--font-poppins);
    font-weight: 300;
    color: white;
}

.contact-box {
    background-color: var(--color-orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px 0;
}

.contact-box h3 {
    font-size: var(--medium);
    margin: 0 0 20px 0;
    color: var(--color-dark-fg);
}

.contact-box .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-box a {
    color: var(--color-dark-fg);
}

/* Footer */

.site-footer .page-wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    background-color: var(--color-orange);
}

.socials-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-dark-fg);
}

.socials-wrapper span {
    font-size: var(--regular);
}

.socials-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding-left: 10px;
}

.socials-list a {
    display: flex;
}

.socials-list li img {
    max-width: 48px;
    height: auto;
}

.bungalownet-wrapper {
    width: 100%;
}

.bungalownet-color {
    background-color: rgb(255 255 255 / 0.8);
    text-align: center;
    padding: 15px 0 7px; 
}

.bungalownet-color svg {
    width: 90vw;
}

/* Not Home Page */

body:not(.home) .page-title {
    max-width: var(--page-size);
    margin: 1em auto;
    padding-inline: 1.5rem;
    color: var(--color-orange);
    text-align: center;
    font-size: 2.5rem;
}

body:not(.home) .page-content {
    max-width: var(--page-size);
    margin-inline: auto;
    padding-inline: 1.5rem;
    margin-bottom: 3rem;
}

.gallery {
    margin-block: 3.5rem 2.5rem;
}

.gallery .gallery__images {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.gallery .gallery__image {
    aspect-ratio: 16 / 9;
}

.gallery .gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 404 Page */

body.error404 .site-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 1rem;
    text-align: center;
}

/* Event Page */

body.page-template-page-event .page-content {
    margin: 0 auto;
    max-width: 95%;
    padding: 0;
}

/* Custom Dropdown */

.select-box {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    color: white;
    margin-top: 20px;
}

.select-box p:empty {
    display: none;
}

.select-box__current {
    position: relative;
    cursor: pointer;
    outline: none;
    font-size: 14px;
}

.select-box__current:focus + .select-box__list {
    border: 1px solid rgba(255, 255, 255, 0.41);
    opacity: 1;
    -webkit-animation-name: none;
    animation-name: none;
}

.select-box__current:focus + .select-box__list .select-box__option {
    cursor: pointer;
}

.select-box__current:focus .select-box__icon {
    -webkit-transform: translateY(-50%) rotate(180deg);
    transform: translateY(-50%) rotate(180deg);
}

.select-box__icon {
    position: absolute;
    top: 50%;
    right: 15px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 20px;
    opacity: 1;
    filter: invert(1);
    transition: 0.2s ease;
}

.select-box__value {
    display: flex;
}

.select-box__input {
    display: none;
}

.select-box__input:checked ~ .select-box__input-text {
    display: block;
}

.select-box__input-text {
    display: none;
    width: 100%;
    margin: 0;
    padding: 15px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.41)
}

.select-box__list {
    position: absolute;
    width: 100%;
    padding: 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    -webkit-animation-name: HideList;
    animation-name: HideList;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-timing-function: step-start;
    animation-timing-function: step-start;
    z-index: 1001;
    background-color: var(--color-dark-bg);
    max-height: 164px;
    overflow: auto;
    font-size: 14px;
}

.select-box__option {
    display: block;
    padding: 15px;
    background-color: transparent;
}

.select-box__option:hover, .select-box__option:focus {
    color: white;
    background-color: #4e566a;
}

@-webkit-keyframes HideList {
    from {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
    to {
        -webkit-transform: scaleY(0);
        transform: scaleY(0);
    }
}

@keyframes HideList {
    from {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
    to {
        -webkit-transform: scaleY(0);
        transform: scaleY(0);
    }
}
  

@media screen and (min-width: 30em) {
    /* General */

    img {
        display: block;
    }

    /* Header */

    .site-header-main img {
        max-width: 100px;
    }

    /* Section 1 */

    #section-one .hero_image {
        width: 100%;
        /* max-height: 90vh; */
        /* object-fit: cover; */
    }
    
    #section-one .overlay {
        inset: 0;
    }

    #section-one .overlay .button {
        width: unset;
        position: absolute;
        left: 1rem;
        bottom: 1rem;
    }

    /* Section 2 */

    #section-two .button {
        max-width: 450px;
    }

    /* Section 3 */

    #section-three .gallery {
        display: grid;
        grid-template: 1fr 2fr / 1fr 1fr 1fr;
    }
    
    #section-three .gallery-item.paralax {
        grid-column: 1 / span 3;
    }
    
    #section-three .gallery-item img {
        aspect-ratio: unset;
        width: 100%;
        height: 100%;
    }

    #section-three .gallery-item.paralax img {
        object-position: 100% 19%;
    }

    /* Section 7 */

    #section-seven .flex-cntnt {
        align-items: flex-end;
    }
    /* Not home Page */

    .gallery .gallery__images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 45em) {
    /* Not home Page */

    .gallery .gallery__images {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 60em) {
    h2 {
        font-size: var(--large);
        line-height: 1.2;
    }

    /* General */

    #section-two, #section-four, #section-six {
        max-width: 100%;
        margin: 0 100px;
    }

    #section-three, #section-four, #section-five {
        position: relative;
    }

    #section-three::before, #section-four::before, #section-five::before {
        content: '';
        width: 40vw;
        height: 1rem;
        position: absolute;
        top: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--color-orange);
    }

    .flex-cntnt {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
    }

    .right-side, .left-side {
        margin: 0;
        max-width: 100%;
        padding: 30px 0;
    }

    .button {
        padding: 20px 15px !important;
    }

    /* Header */

    .site-header-main img {
        max-width: 100px;
    }

    /* Section 2 */

    #section-two {
        padding-block: 5rem 7rem;
    }

    #section-two .left-side,
    #section-two .right-side {
        flex-basis: 45%;
        margin: 0;
    }

    #section-two .right-side .text {
        font-size: 3vw;
    }

    #section-two .right-side {
        gap: 60px;
    }

    /* Section 3 */

    #section-three .gallery {
        grid-template: 25vw 25vw / 1fr 1fr 1fr;
    }

    #section-three .gallery > .button {
	left: 100px;
    }

    /* Section 4 */

    #section-four {
        margin: 0 0 0 100px;
        padding: 10vh 0;
        padding: 10dvh 0;
        max-width: 100%;
    }

    #section-four .left-side.small {
        flex-basis: 50%;
        padding: 0;
    }

    #section-four .right-side {
        flex-basis: 100%;
        display: flex;
        justify-content: flex-end;
        padding: 0;
    }

    #section-four .right-side img {
        max-height: 600px;
    }

    #section-four .button {
        display: inline-block;
        width: unset;
    }

    /* Section 5 */

    #section-five .info-svg {
        max-height: 35%;
    }

    /* Section 6 */

    #section-six {
        margin: 0 0 0 100px;
        padding: 10vh 0;
        padding: 10dvh 0;
        max-width: 100%;
    }

    #section-six .left-side.small {
        flex-basis: 50%;
        padding: 0;
    }

    #section-six .right-side {
        flex-basis: 100%;
        display: flex;
        justify-content: flex-end;
        padding: 0;
    }

    #section-six .right-side img {
        max-height: 600px;
    }

    /* Section 7 */

    #section-seven h2 {
        margin-top: 0;
    }

    #section-seven .flex-cntnt {
        margin: 0 100px;
    }

    #section-seven .left-side {
        flex-basis: 100%;
        max-width: 45rem;
    }

    #section-seven .left-side .text > *:not(:first-child) {
        max-width: 32rem;
    }

    #section-seven .right-side {
        flex-basis: 20rem;
    }

    .contact-box {
        margin-bottom: 0;
    }

    /* Footer */
    
    .site-footer .page-wrapper {
        flex-direction: row;
        align-items: flex-end;
    }
    
    .site-footer .page-wrapper > * {
        flex-basis: 100%;
    }
    
    .bungalownet-color {
        padding: 6px 15px 3px 100px;
        border-top-right-radius: 100px;
        display: flex;
        justify-content: flex-end;
    }
    
    .bungalownet-color svg {
        width: unset;
    }

    .socials-wrapper {
        margin-right: 100px;
        justify-content: flex-end;
    }
    
    .socials-list {
        padding: 0;
        margin-block: 10px;
    }

    .socials-list li img {
        max-width: 40px;
    }

    /* Not home Page */

    .gallery .gallery__images {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    /* Event Page */

    body.page-template-page-event #section-seven::before {
        content: '';
        width: 40vw;
        height: 1rem;
        position: absolute;
        top: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--color-orange);
    }

    body.page-template-page-event .page-content {
        margin: 0 100px;
        max-width: 100%;
        padding: 0;
    }
}




