*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat';
}

html, body{
    overflow-x: hidden;
    width: 100%;
}

html{
    scroll-behavior: smooth;
}

body{
    position: relative;
}

:root{
    --aw-orange: #ff830e;
    --dark-gray: #f5f5f5;
    --off-color: #e5e5e5;
    --text1: black;

    /* NAVBAR */
    --navbar-height: 4rem;

    /* FORM */
    --input-width: 90%;

    /* SERVICES */
    --service-containers-height: 80%;
}

.site-section{
    min-height: 100vh;
    width: 100%;
    padding-top: 4rem;
}

.column-flex{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wide{
    display: none;
}

a{
    text-decoration: none;
    color: black;
}

.status-bar-filler {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 999;
}

/* ------------------- NAVBAR ----------------------*/
.navbar{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.595);
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    transition: height .5s ease;
    padding: 0 1rem;
    height: 4rem;
}

.navbar.hidden{
    height: var(--navbar-height);
}

.navbar.displayed{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.595);
    position: fixed;
    z-index: 100;
}

.logo-hamburger-container{
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: var(--navbar-height);
    align-items: center;
}

.nav-logo{
    height: 2rem;
}

.material-symbols-outlined {
    color: white;
    font-size: 2rem;
    display: inline-block;
}

.navbar-spacer{
    height: 4rem;
}

.hamburger {
    width: 2rem;
    height: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.hamburger span{
    height: 3px;
    width: 100%;
    background: #fff;    
    pointer-events: none;
}

.hamburger.displayed span:nth-child(1){
    transform: translateY(10px) rotate(45deg);
}

.hamburger.displayed span:nth-child(2){
    opacity: 0;
}

.hamburger.displayed span:nth-child(3){
    transform: translateY(-10px) rotate(-45deg);
}

ul{
    list-style-type: none;
}

.nav-menu {
    width: 100%;
    gap: 3rem;
    position: absolute;

    display: flex;
    flex-direction: column;

    opacity: 0;
    pointer-events: none;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility 0s linear .3s;
}


.nav-menu a{
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.nav-menu.displayed {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    position: absolute;
    top: 4rem;

    transition:
        opacity .3s ease-in,
        transform .3s ease;
}

.nav-menu.hidden{
    position: absolute;
    top: 4rem;
    transition:
        opacity .3s ease-in,
        transform .3s ease;
}


/* ------------------------- HOME ------------------------*/

#home {
    background-image: url('../images/background.JPEG');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gray-out{
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.481);
    top: 0;
    left: 0;
    z-index: 1;
}

.logo-btn-container{
    width: 100%;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.main-logo{
    width: clamp(375px, 40vw, 800px);
    z-index: 2;
}

.square-btn{
    background-color: var(--aw-orange);
    text-align: center;
    padding: 1rem 1rem;
    color: white;
    font-weight: bold;
    font-size: clamp(.8rem, 1.2rem, 1.6rem);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2 ease,
    transform 0.2 ease,
    box-shadow 0.2 ease;
}

#home-btn{
    width: clamp(300px, 40vw, 600px);
    text-wrap: none;
    font-size: 1.5rem;
}

.square-btn:hover {
    background-color: #d96a00; /* slightly darker orange */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* ------------------- SERVICES ------------------ */

#services{
    background-color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text1);
    padding: 2rem 0;
    min-height: 100vh;
}

#service-h1{
    margin-bottom: 2rem;
    
}

.card-container{
    width: 95vw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-card{
    background-color: var(--off-color);
    width: clamp(70vw, 80vw, 100%);
    text-align: center;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: height 1s ease;
}

.service-card h1{
    font-size: 1.6rem;
}

.service-card.displayed{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
}

.service-card.hidden{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    justify-content: flex-start;
    flex-direction: row;
    gap: 1rem;
    padding: .5rem 1rem;
}

.card-image {
    transition: width 1s ease, height 1s ease;
    flex-shrink: 0;
    width: clamp(300px, 50%, 500px);
    max-height: 60vw;
}

.card-image.displayed{
    width: clamp(70%, 80%, 90%);
}

.card-image.hidden{
    width: 40%;
}

.card-text-btn-container{
    transition: opacity 1s ease;
}

.card-text-btn-container.hidden{
    max-height: 0;
    max-width: 0;
    opacity: 0;
    transition: max-height .5s ease, opacity .5s ease;
}

.card-text-btn-container.displayed{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-height: 500px;
    width: clamp(70%, 80%, 90%);
    text-align: center;
}

.featured-service-container{
    display: none;
}

/* --------------- About Us ------------- */

#about{
    background-color: var(--off-color);
    padding: 10% 5vw;
    text-align: center;
    gap: 2rem;
}

.about-header{
    color: var(--aw-orange);
    font-size: 3rem;
}

#about-img{
    width: clamp(300px, 100%, 600px);
}

.about-text{
    color: var(--text1);
    font-size: 1.5rem;
}

.title-description-container{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
}

.about-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* -------------------- Contact -------------- */

#contact{
    background-image: url(../images/contact.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 25%;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-form{
    background-color: var(--off-color);
    display: flex;
    flex-direction: column;
    width: 90vw;
    align-items: center;
    height: 85vh;
    gap: 2%;
    padding: 2% 0%;
}

.form-input{
    background-color: var(--dark-gray);
    width: var(--input-width);
    border: none;
    max-height: 10%;
    padding: 5%;
    font-size: 1.5rem;
}

.form-input.invalid{
    border: 1px solid red;
}

.form-comment{
    background-color: var(--dark-gray);
    width: var(--input-width);
    border: none;
    padding: 5%;
    font-size: 1.5rem;
    flex: 1;
    resize: none;
    overflow: auto;
}

textarea::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari */
}

.square-btn-form{
    background-color: var(--aw-orange);
    width: var(--input-width);
    text-align: center;
    padding: 1rem 0rem;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

.square-btn-form:hover {
    background-color: #d96a00; /* slightly darker orange */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.shadow{
    width: 100%;
    height: 100%;
    z-index: 100;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.45);
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
    transition: opacity .5s ease-in-out;
}

.shadow.hidden{
    opacity: 0%;
    pointer-events: none;
}

.success-message{
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 4rem;
    z-index: 150;
    color: black;
    text-align: center;
    position: fixed;
    top: 30%;
    left: auto;
}

.checkmark-circle {
    width: 56px;
    height: 56px;
    color: var(--aw-orange);
}

.close-button{
    color: black;
    position: absolute;
    top: 3px;
    left: 95%;
    cursor: pointer;
}

/* ---------------------------- Footer -------------------------------*/

footer{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5%;
    padding: 5%;
}

.social{
    width: 24px;
    height: 24px;
}

.icon-container{
    display: flex;
    align-items: center;
}

.social-p {
    font-size: 1.5rem;
}

.contact-info{
    display: none;
}

.social-p{
    color: black;
}


@media(min-width: 768px) and (max-width: 992px){


    /* -------------------------- SERVICES --------------------------- */
    .card-container{
        align-items: center;
        justify-content: center;
    }

    .service-card{
        max-width: 80%;
    }
    /* -------------------------- ABOUT --------------------------- */
    #about{
        justify-content: flex-start;
    }

    .about-wrapper{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 75%;
        gap: 2rem;
    }

    .about-text{
        font-size: 1.5rem;
    }
}

@media(min-width: 992px){
    /* ------------------------- GENERAL ------------------------- */
    .site-section{
        height: 100vh;
    }

    .wide{
        display: block;
    }

    /* -------------------------- NAVBAR --------------------------- */
    
    .navbar{
        justify-content: space-between;
    }
    
    .hamburger{
        display: none;
    }

    .nav-menu.hidden{
        max-height: 100%;
        max-width: 100%;
        width: auto;
        opacity: 1;
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        position: block;
        visibility: visible;
        pointer-events: visible;
    }

    .logo-hamburger-container{
        width: fit-content;
        height: 4rem;
    }

    .nav-link.active{
        font-weight: 600;
    }
    /* -------------------------- SERVICES --------------------------- */
    #services{
        position: relative;
        flex-direction: row;
        justify-content: space-around;
        
    }
    
    #service-h1{
        display: none;
    }

    #service-h2{
        font-size: 1.9rem;
    }

    .card-container{
        width: 33%;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        height: var(--service-containers-height);
        justify-content: space-between;
        gap: 5%;
        
    }

    .card-text-btn-container.displayed{
        display: none;
        position: absolute;
        top: 0;
        left: 0;
    }

    .card-text-btn-container.hidden{
        display: none;
    }

    .service-card{
        width: 100%;
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
    }

    .service-card.displayed{
        background-color: var(--aw-orange);
        color: var(--dark-gray);
        flex: 1;
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
        gap: 1rem;
        padding: 0rem 1rem;
    }
    .service-card.hidden{
        flex-direction: row;
        flex: 1;
        display: flex;
        justify-content: flex-start;
        flex-direction: row;
        gap: 1rem;
        padding: 0rem 1rem;
    }

    .service-card h1{
        font-size: 1.5rem;
    }

    .featured-service-container{
        position: relative;
        width: 59vw;
        height: var(--service-containers-height);
        display: block;
    }

    .featured-service-container h3{
        font-size: 2rem;
    }
    .featured-service-container p{
        font-size: 1.5rem;
    }

    .featured-service-image.hidden{
        width: 0%;
        height: 0%;
    }

    .featured-service-image{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .card-image.hidden, .card-image.displayed{
        width: 30%;
        height: 7rem;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .service-description.displayed{
        text-align: center;
        font-weight: 500;
    }

    #service-button{
        position: absolute;
        top: calc(100% - 1.75rem);
        width: 25vw;
        z-index: 200;
        left: calc(50% - 12vw);
        font-size: 1.5rem;
    }

    /* -------------------------- ABOUT --------------------------- */
    #about{
        flex-direction: row;
    }

    .title-description-container{
        align-items: flex-start;
        justify-content: start;
        width: 50%;
    }   

    .title-description-container p{
        text-align: start;
        display: block;
    }

    .about-wrapper{
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        width: 75%;
        gap: 2rem;
    }

    .about-text{
        font-size: clamp(18px, 1.9vw, 26px);
    }
    
    /* ------------------------- CONTACT ------------------------ */
    .quote-form{
        width: 58%;
        position: relative;
        padding: 5% 5%;
    }

    .quote-form h1{
        font-size: 2rem;
    }

    .contact-info{
        display: block;
        position: absolute;
        top: 25%;
        left: 90%;
        background-color: rgba(255, 255, 255, 0.952);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 2%;
        width: fit-content;
    }

    .contact-info h2 {
        font-size: 1.7rem;
        text-wrap: nowrap;
    }
    
    .contact-info p {
        font-size: 1.1rem;
        font-weight: 500;
    }

    .social{
        width: 24px;
        height: 24px;
    }

    .icon-container{
        display: flex;
        align-items: center;
    }

    .social-p {
        font-size: 1rem;
    }

    h1{
        font-size: 1.5rem;
    }
    /* ------------------------ FOOTER ------------------------- */
    footer{
        display: none;
    }
}

/* MOBILE BACKGROUND FIX */
@media (max-width: 768px) {
    #home {
        background-attachment: scroll; /* critical */
        background-position: 22%;
    }

    #contact{
        background-attachment: scroll;
        background-position: 25%;
    }
}
