/* ======================================================= MOBILE NAV */
#hamburger {
    display: none;
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    transition: 0.5s;
  }

#mobile-nav {
    position: absolute;
    top: 0;
    left:0;
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
    transform: translateX(150vw);
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    font-size: 3.8vh;
    transition: 0.5s;
}

.translateX-O { /* Added/removed on hamburger click with "header.js" */
    transform: translateX(0);
}

#mobile-nav > ul {
    list-style-type: none;
    width: 100%;
    padding: 20% 10%;
}

#mobile-nav ul li {
    padding: 10px;
}

#mobile-nav > ul > li {
    width: 100%;
    padding: 30px 0 0 0;
    border-bottom: 1px solid grey;
}

#mobile-nav a {
    display: inline-block;
    width: 100%;
    color: white;
    text-decoration: none;
    font-size: 2rem;
}

#mobile-nav a:active {
    font-weight: 800;
}

#mobile-nav-dropdown-content {
    list-style-type: none;
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease;
}

#dropdown-arrow {
    float: right;
    transition: 0.5s;
}


/* ======================================================= MEDIA QUERIES */
/* Breakpoints: 1200, 1000, 1000 landscape, 800, 650, 500 =================*/

@media (max-width: 1200px) {
    /* ============= WHOLE PAGE STYLES */
    section, footer {
        padding: 100px 10%;
    }

    header, .hero-text {
        padding: 0 10%;
    }

    /* ======================== FOOTER */
    footer {
        padding-bottom: 0;
    }
} 

@media (max-width: 1000px) {
    /* =========================== NAV */
    .desktop-nav {
        display: none;
    }

    #hamburger {
        display: block;
    }    

    /* ================ FLEX CONTAINER */
    .flex-container {
        flex-direction: column;
    }

    .latest-work .flex-container {
        flex-direction: column-reverse;
    }
  
    .flex-item-left, .flex-item-right {
        width: 100%;
    }
  
    .gallery-col {
        width: 100%;
    }

    .accreditation-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 5%;
    }

    .accreditation-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 5vh;
    }
    
    .accreditation-img-container {
        width: 100%;
        text-align: center;
    }
    
    .accreditation-img-container img {
        height: 20vw;
    }
    
    /* ================= WHY CHOOSE US */
    .why-choose-us-item {
        display: block;
        width: 100%;
    }

    .icon {
        font-size: 75px;
    }

    /* ====================== REVIEWS */
    .review-text {
        padding: 0 5%;
        font-size: 1.4rem;
    }

    /* ================= LATEST WORK */
    .latest-work-img-grid {
        text-align: center;
        padding-bottom: 0px;
     }

     /* ================= SERVICES */
     .service-card {
        width: 47%; 
    }

      /* ================= CONTACT FORM */
     .field-wrapper, .contact-elements-container {
        flex-direction: column;
    }


      /* ================= FOOTER */
    .footer-accreditations img {
        height: 7vw;
    }
}

 @media (max-width: 1000px) and (orientation: landscape) {
    /* ================= MOBILE NAV */
    #mobile-nav > ul {
        padding: 5% 10%; 
        overflow: scroll;
    }

    #mobile-nav > ul > li {
        padding: 10px 0 0 0;
    }
}

@media (max-width: 800px) {
   .why-choose-us-container {
        flex-direction: column;
   }

    .why-choose-us-item img {
        display: block;
        height: 100px;
        width: auto;
    }

   .icon {
        font-size: 7rem;
    }

    /* ================= FOOTER */
    .footer-icon {
        margin: 25px  25px 0 25px;
    }

    .footer-col-container {
        flex-wrap: wrap;
    }

    .footer-col {
        width: 100%;
    }

    .footer-bottom p {
        width: 100%;
        text-align: center;
        margin: 5px;
     }
}

@media (max-width: 650px) {
    /* ========== WHOLE PAGE STYLES */
    section > p {
        text-align: left;
    }

    .why-choose-us p {
        text-align: center;
    }

    .hide-on-mobile {
        display: none;
    }

    .mobile-full-width {
        display: block;
    }

    /* ======================= HERO */
    .hero {
        height: 90vh;
    }
    
    .hero-text h1 {
        font-size: 6vh;
    }

    .hero-text h2 {
        font-size: 1.8rem;
        font-weight: 400;
    }

    .hero-button-container {
        text-align: center;
    }

    .page-hero .hero-text h1 {
        font-size: 15vw;
    }

    /* ==================== BUTTONS */
    button {
        width: 100%;
     
    }
    .hero-button-light, .hero-button-dark {
        margin: 0 0 30px 0;
    }

     /* ================= SERVICES */
     .service-card {
        width: 100%; 
    }

    .CTA h2 {
        font-size: 3rem;
    }
}  

@media (max-width: 600px) {
    :root {
        --header-height: 8vh;
        --header-height-reduced: 8vh;
    }

    .logo {
        height: 70%;
    }

    .hero-accreditations {
        text-align: center;
    }

    .hero-accreditations img {
        height: 80px;
    }

    p {
        font-size: 1.5rem;
    }

    section, footer {
        padding: 100px 5%;
    }

    header, .hero-text {
        padding: 0 5%;
    }

    .intro p {
        text-align: left;
    }

    .services h2 {
        text-align: left;
    }
    
    .quote p {
        font-size: 2em;
    }

    footer {
        padding-bottom: 0;
    }
}


