/* Navigation --------------------------------------*/

nav {
    display: none;
}

nav a {
    /* background-color: var(--color-black); */
    background-color: rgb(226, 226, 226);
    border: none;
    width: 100%;
    padding: .4rem;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    flex-direction: column;
    /* gap: 1.5rem; */
    padding: 1rem;
    list-style: none;
    text-align: center;
    background-color: var(--color-black);
    padding: 1rem;
}

nav.open {
    display: flex;
    flex-direction: column;
    /* height: 48vh; */
    /* height: 110vh; */
    height: 64vh;
    opacity: 1;
    width: 100%;
    background-color: #262626;
}

.navbar {
    background-color: var(--color-blue);
    height: 5px;
    padding: 2.1rem 1.5rem;
    width: 100%;
}

.navbar img {
    width: 50px;
    height: auto;
    margin-top: -16px;
}

/* HEART ICON — DESKTOP */
.nav-heart img {
    width: 44px;
    margin-top: 8px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* 
.english-flag-icon-mobile {
    display: none;
} */

.english-flag-icon {
    width: 70px;
    height: auto;
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width: 768px) {

    /* ⬅ Shows the mobile flags on mobile only */
    .flag-nav {
        position: absolute;
        top: 35px;
        right: 10px;
        /* ⬅ puts it in the top-right */
        background: none !important;
        border: none !important;
        padding: 0 !important;
        width: auto !important;
        display: flex !important;
        align-items: center;
    }
}

.flag-nav {
    width: 51px;
    /* adjust size of mobile flag Icon */
    height: auto;
}


#hamburger {
    display: block;
    width: 40px;
    height: 33px;
    background: var(--color-blue);
    /* or any color you want */
    border: none;
    border-radius: 6px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation to X */
#hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    margin-top: 4px;
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
}

#hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* header ------------------------------------------*/
header {
    position: relative;
    /* height: 100vh; */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* <- makes the parallax happen ----------------------*/
#vid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 400px;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
    pointer-events: none;
    will-change: transform;
    perspective: 1px;
    transform: translateZ(-1px) scale(2);
    filter: hue-rotate(2deg);
}

header div {
    z-index: 1;
    padding: 0 .5rem;
}

#space {
    display: inline;
}

header h1 {
    /* text-shadow: 1px 1px 4px #3873A6; */
    font-size: clamp(1.5rem, 5vw, 15rem);
    line-height: 10vw;
    padding: .8rem .8rem 0 .8rem;
}

header span {
    text-shadow: 1px 1px 2px #ffffff;
    color: var(--color-dark-blue);
}

header p {
    font-size: .8rem;
    line-height: .8rem;
    margin-top: .5rem;
    text-shadow: none;
}

.header-sub-title-div {
    background-color: var(--color-blue);
    border-radius: 10px;
    padding: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 1rem;
}

.logo,
.logocontact {
    width: 30% !important;
}

.logocontact {
    display: block;
}

.logodesktop {
    display: none;
}


/* step into healing btn */
.header-sub-title-div a {
    width: 95%;
}

#brtag {
    display: none;
}

.john-1416 {
    /* margin: 0 0 0 -36px; */
    font-size: clamp(.8rem, 2vw, 3rem);
    font-family: var(--font-body);
    color: white;
    text-shadow: none;
    /* position: relative;
    top: 11px;
    left: -20px; */

}

/* read-more btn */
#read-more-btn {
    padding: .4rem;
    width: 60%;
}

@media screen and (min-width:300px) {
    .john-1416 {
        font-size: clamp(1rem, 2vw, 3rem);
        font-size: 1rem;
        margin: -9px auto 0 auto;
        display: block;
        color: white;
    }

    .header-sub-title-div a {
        font-size: clamp(.9rem, 2vw, 3rem);
        line-height: 1rem
    }

    .header-div h1 {
        font-size: clamp(2.5rem, 11vw, 15rem);
        line-height: 12vw;
    }

    header p {
        font-size: 1rem;
        line-height: 20px
    }

    .header-sub-title-div a {
        width: 75%;
    }

    #space {
        display: none !important;
    }

    br {
        display: none;
    }

    .navbar img {
        width: 67px;
    }

    .logo,
    .logodesktop,
    .logocontact {
        width: 15% !important;
    }

    nav.open {
        /* height: 52vh; */
        height: 74vh;
    }


}

@media screen and (min-width:450px) {
    .john-1416 {
        margin-top: -10px;
        /* display: inline; */
        text-shadow: none;
        font-weight: bold;
        /* backdrop-filter: invert(1); */
    }
}

@media screen and (min-width:600px) {
    header p {
        padding: .5rem 3rem;
    }

    header div {
        padding: 0 1.5rem;
    }

    .logocontact {
        width: 87px !important;
    }

    .john-1416 {
        margin-top: -34px;
    }

}


@media screen and (min-width:768px) {

    .nav-heart {
        position: absolute;
        left: -22px;
        top: 17%;
        transform: translateY(-50%);
    }

    .nav-heart img {
        margin-top: 25px;
    }


    .flag-nav {
        display: none;
        /* ⬅ Hides mobile flags from desktop view */
    }


    #hamburger {
        display: none;
    }

    nav {
        min-height: 0;
        display: flex !important;
        background-color: var(--color-blue);
        position: relative;
        top: 100%;
        right: 0;
        left: 0;
        text-align: center;
        padding: 0;
        width: 100%;
    }

    nav ul {
        display: flex;
        justify-content: center;
        flex-direction: row;
        background-color: var(--color-blue);
        gap: 1.5rem;
        list-style: none;
        /* padding: 1rem; */
        margin: 0 auto;
        padding: .2rem 2rem;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    nav li {
        margin: 1rem 0;
    }

    nav a {
        background-color: transparent;
        text-decoration: none;
        font-size: 1.2rem;
        color: white;
        padding: 0;
        font-size: 15px;
    }

    /* Show nav when open */
    nav.open {
        display: block;
        transition: max-height 0.3s ease-in-out;
        max-height: 500px;
        overflow: hidden;
    }

    header h1 {
        font-size: clamp(2.9rem, 7vw, 15rem);
        line-height: 9vw;
        width: 100%;
    }

    header h1 br {
        display: none;
    }

    .header-sub-title-div {
        max-width: 500px;
        margin: 0 auto;
        padding-bottom: 40px;
    }

    .header-div h1 {
        font-size: clamp(2.5rem, 8vw, 15rem);
        line-height: 10vw;
    }

    .logo {
        display: none;
    }

}



@media screen and (min-width:900px) {
    header h1 {
        padding: 2rem;
    }

    #vid {
        height: 550px;
    }

    .header-sub-title-div {
        max-width: 590px;
        margin: -40px auto 30px auto;
    }

    .header-sub-title-div a {
        font-size: clamp(.9rem, 1.5vw, 3rem) !important;
    }

    .navbar {
        padding: 3.1rem 1.5rem;
    }

    .navbar img {
        width: 87px;
    }

}

@media screen and (min-width:1024px) {
    #vid {
        height: 50vw;
    }

    .logodesktop {
        display: block;
        width: 10% !important;
        margin: 0 auto;
        background-color: var(--color-blue);
        border-radius: 10px;
    }

    .logocontact,
    .logodesktop {
        width: 97px !important;
    }

    .english-flag-icon {
        width: 65px;
    }
}

@media screen and (min-width:1400px) {
    .header-sub-title-div {
        max-width: 1110px;
    }

    .header-sub-title-div a {
        width: 45%;
        font-size: 22px !important;
    }

    .john-1416 {
        margin-top: -80px;
    }
}

@media screen and (min-width: 1700px) {
    .john-1416 {
        margin-top: -100px;
    }
}

@media screen and (min-width:1800px) {
    header h1 {
        padding: 0 5vw;
        font-size: 8.9rem;
        line-height: 7vw;
    }
}

@media screen and (min-width:2000px) {
    header h1 {
        padding: 0 7.5vw;
    }

    .header-div h1 {
        font-size: clamp(2.5rem, 8vw, 15rem);
        line-height: 9vw;
    }

}

@media screen and (min-width:2300px) {
    header h1 {
        padding: 0 12vw;
    }

    .header-div h1 {
        font-size: clamp(2.5rem, 7vw, 15rem);
        line-height: 9vw;
    }
}

@media screen and (min-width:2310px) {
    header h1 {
        padding: 0 340px;
    }
}