:root {
    --dark-blue: #141E27;
    --lighter-blue: #203239;
    --yellowish: #e0ddaa;
    --tan: #EEEDDE;
}


* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    font-size: 10px;
}

body {
    margin: 0; 
    padding: 0;
    color: var(--yellowish);
}



/* ----- reusable content ------ */
.main {
    width: 50%;
}



/* --------- HEADER  ---- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    background-color: var(--dark-blue);
    font-size: 1.6rem;
}

header img {
    width: 120px;
    margin-left: 25px;
}

header ul {
    display: flex;
    justify-content: right;
    margin: 0;
    padding: 0;
    list-style: none;
}

header ul li {
    align-items: right;
    padding: 5px 20px;
}

header ul li a{
    color: var(--tan);
    text-decoration: none;
}




/* --------- MAIN --------- */
#landing-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    min-height: 80vh;
    background-image: url('https://images.unsplash.com/photo-1554224155-1696413565d3?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80');
    background-position: center center;
    font-size: 1.6rem;
    margin: 0;
}

#business-john {
    width: 80%;
}

.main-left {
    width: 50%;
}

.main-right {
    color: var(--dark-blue);
    padding: 35px;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(224, 221, 170, .8);
}

.main-right-container {
    padding: 15px;
}

.main-right h1 {
    font-size: 3.8em;
    text-align: center;
    padding: 0;
    margin: 0;
    
}

.main-right h2 {
    font-size: 2.6rem;
    text-align: center;
    margin: 0;
    padding: 0;
}

.main-right p {
    text-align: center;
}

.main-right a {
    display: block;
    text-decoration: none;
    margin-top: 35px;
    padding: 18px;
    text-align: center;
    width: 140px;
    font-size: 1.8rem;
    color: var(--tan);
    background-color: var(--dark-blue);
}







/* ----------- SERVICES ------ */
#services {
    width: 100%;
    min-height: fit-content;
    background-color: var(--lighter-blue);
    font-size: 1.6rem;
    padding-top: 40px;
    padding-bottom: 20px;
}

.services-container {
    width: 100vw;
    min-height: fit-content;
    display: flex;
    padding-bottom: 100px;
}

.service-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-left ul {
    padding: 0;
    list-style-type: none;
}

.service-left ul li {
    padding: 30px;
    font-size: 2.5rem;
    color: var(--tan);
}

.service-left ul li:hover {
    cursor: pointer;
    background-color: var(--dark-blue);
}

.service-left ul li:active {
    opacity: 0.5;
}

.service-right {
    padding-right: 5%;
}

.details-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.details-container img {
    width: 50%;
}

.details {
    position: absolute;
    padding: 25px;
    font-size: 1.8rem;
    background-color: var(--dark-blue);
    line-height: 2.5rem;
}

.hidden {
    display: none;
}


/* -------- HEADERS for ALL SECTIONS ----- */ 

#services h1, #about h1, #contact h1 {
    width: 100vw;
    margin: 0;
    padding: 25px;
    text-align: center;
    font-size: 3.5rem;
}

.main {
    width: 50%;;
}








/* --------- ABOUT ------- */
#about {
    padding-top: 40px;
    background-color: var(--tan);
    color: var(--dark-blue);
    font-size: 1.6rem;
}

.about-container {
    font-size: 1.6rem;
    width: 100%; 
    display: flex;
    padding-bottom: 100px;
}

#family {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 15px;
    border-radius: 35px;

}


.about-right {
    display: flex;
    align-items: center;
    padding: 25px;
    font-size: 2rem;
    line-height: 2.3rem;
}



/* ----------- CONTACT ---------- */
#contact {
    padding-top: 40px;
    background-color: var(--dark-blue);
    
}

.contact-container {
    font-size: 1.6rem;
    width: 100%; 
    display: flex;
    padding-bottom: 50px;
}



.contact-container a {
    text-decoration: none;
    color: var(--yellowish)
}

.contact-container a:hover {
    color: #5fb65f;
}

.business-hours-container {
    padding: 0 60px;
}

.contact-left h4{
    text-align: left;
    width: 75%;
    border-bottom: 1px solid var(--tan);
}

.contact-left ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.contact-left ul li {
    padding: 5px;
}

.contact-left ul span {
    font-style: bolder;
    color: var(--tan)
}

.contact-right {
    display: flex; 
    align-items: center;
    justify-content: center;
}

.contact-right ul {
    display: flex;
    justify-content: center;
    font-size: 4.5rem;
    list-style: none;
}

.contact-right ul li {
    margin-right: 35px;
}




@media all and (max-width: 525px) {
    .main {
        width: 100%;
    }

    header {
        justify-content: center;
    }

    header  ul {
        display: none;
    }

    header img {
        margin: 0;
    }

    #business-john, .main-left {
        display: none;
    }

    .main-right {
        width: 100%;
        background-color: rgba(224, 221, 170, .5);
    }

    #services {
        height: 140vh;
    }

    .services-container {
        flex-direction: column;
    }

    .service-left, .services-container {
        width: 100%;
    }

    .service-left {
        width: 100%;
        display: flex;
        list-style: none;
    }

    .service-left ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-left ul li {
        width: 100%;
        text-align: center;
        padding: 15px 5px;
        margin: 5px;
    }

    .service-right, .details-container {
        width: 100%;
        padding: 0;
        text-align: center;
    }



    .about-container {
        flex-direction: column;
    }

    .contact-left h4{
        text-align: center;
        width: 100%;
    }

    .business-hours-container {
        padding: 0 2%;
    }



    .contact-container {
        flex-wrap: wrap;
    }

}

