* {
    box-sizing: border-box;
    margin: 0;
}

:root {
    --primary-accent: rgb(255, 147, 64);
    --secondary-accent: #A1DD32;
    --grey-dark: #505050;
    --grey-light: #707070;
    --primary-dark: #222;
    --box-shadow-dark: rgba(50, 50, 50, 0.8);
    --box-shadow-light: rgba(200, 200, 200, 0.5);
}

#hero, #about, #services, #testimonials, #clients, #gallery, #contact {
    scroll-margin-top: 70px;
}

body,
html {
    font-family: "Franklin Gothic Book", "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    height: auto;
    width: 100%;
}

h2, p, ul {
    margin: 0 0 .4em;
}

h2 {
    color: var(--primary-accent);
    font-size: 5em;
    font-weight: 600;
}

.heading-grey {
    color: var(--grey-dark);
    text-shadow: 2px 2px 2px var(--box-shadow-dark);
}

.heading-orange {
    text-shadow: 2px 2px 2px var(--box-shadow-dark);
}

.light-grey {
    color: var(--grey-light);
}

.light-orange {
    color: rgb(255, 177, 94);
}

.nav-bar {
    position: fixed;
    top: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0.6) 100%);
    height: 70px;
    padding: 10px 10px;
    margin: 0 0 80px;
    box-shadow: 3px 3px 10px rgba(200, 200, 200, 0.5);
    z-index: 2;
}

.logo {
    max-height: 35px;
}

.nav-bar-btns {
    display: none;
}

.button-one {
    height: 110%;
    --button-color: #FF8936;
    cursor: pointer;
    z-index: 2;
}

.button-one .line {
    transition: y 300ms ease-in 300ms, rotate 300ms ease-in, opacity 0ms 300ms;
    transform-origin: center;
}

.button-one[aria-expanded="true"] .line {
    transition: y 300ms ease-in, rotate 300ms ease-in 300ms, opacity 0ms 300ms;
}

.button-one[aria-expanded="true"] :is(.top, .bottom) {
    y: 45; 
}

.button-one[aria-expanded="true"] .top {
    rotate: 45deg;
}

.button-one[aria-expanded="true"] .middle {
    opacity: 0;
}

.button-one[aria-expanded="true"] .bottom {
    rotate: -45deg;
}

nav {
    position: fixed;
    top: 70px;
    right: -300px;
    background-color: var(--primary-accent);
    padding: 15px;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    z-index: 1;
    transition: right 0.6s ease-in-out;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5em;
    list-style: none;
    padding: 0 .8em;
}
  
.show-nav {
    right: 0;
}

.active::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: var(--primary-accent);
}

.nav-link {
    text-decoration: none;
    color: #222;
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    text-shadow: 1px 1px 3px var(--box-shadow-light);
}

.nav-link:hover, .nav-link:focus, .nav-link:active {
    text-decoration: underline;
    color: #222;
}

.active-link {
    text-decoration: underline;
    color: #222;
}

main {
    width: 100%;
    min-height: 100vh;
    margin: 70px auto 0;
}

.hero-img {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("img/Hero2.jpg");
    background-size: cover;
    background-position: bottom;
}

.hero-img::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: linear-gradient(225deg, #D9D9D9 0%, rgba(255, 131, 44, 0.52) 0.01%, rgba(0, 0, 0, 0.06) 100%);

}

.hero-content {
    font-size: .8em;
    position: relative;
    padding: 1.5em 1.5em 8em;
    border-radius: .3em;
    color: #fff;
}

.hero-text {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 3px rgba(0,0,0,0.9);
}

.hero-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 3px rgba(0,0,0,0.9);
}

.btn-primary {
    display: inline-block;
    flex-shrink: 0;
    background: var(--secondary-accent);
    font-size: 1.5em;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 1px 1px 2px #fff;
    border: 3px solid var(--secondary-accent);
    border-radius: 4px;
    padding: .5em 1.5em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 3px var(--box-shadow-dark);
}

.btn-primary:hover, .btn-primary:active {
    box-shadow: 2px 2px 8px var(--box-shadow-light);
    background: var(--box-shadow-dark);
    color: var(--secondary-accent);
    text-shadow: 1px 1px 2px #000;
}

.hero-button {
    margin: 1em 1em 1em 0;
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em 1em;
    font-size: 1.1em;
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    font-size: .9em;
}

.about-img {
    display: block;
    margin: 0 auto;
    width: 90%;
}

.services-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    color: #fff;
    padding: 1.5em 1em;
    background-color: var(--grey-dark);
}

.services-subcontainer {
    display: flex;
    flex-direction: column;
    padding: 2em 0;
}

.services-subcontainer h3 {
    font-size: 1.5em;
    padding: 0 0 1em;
}

.services-container-earthwork {
    border-top: 1px solid var(--primary-accent);
}

.service-img {
    width: 90%;
    max-width: 500px;
    margin-top: 2em;
}

.service-btn {
    font-size: 1.2em;
    border-radius: 4px;
    margin: 1em auto 1em 1em ;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1em;
    height: auto;
}

.service-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
    padding: .8em .5em;
}

.testimonials-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em;
    margin: 0;
    font-size: 1em;
    background-color: rgb(250, 250, 250);
    /* background-image: linear-gradient(135deg,
    rgba(250,250,250,1) 8%,
    rgba(255,147,64,1) 8%, 
    rgba(255,147,64,1) 14%,
    rgba(250,250,250,1) 14%, 
    rgba(250,250,250,1) 20%, 
    rgba(255,147,64,1) 80%, 
    rgba(255,147,64,1) 86%, 
    rgba(250,250,250,1) 86%, 
    rgba(250,250,250,1) 92%, 
    rgba(255,147,64,1) 92%, 
    rgba(255,147,64,1) 100%); */
    /* background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
}

.testimonials-heading {
    font-size: 3.7em;
}

.testimonials-content {
    display: flex;
    width: 100%;
    /* flex-direction: column; */
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1em;
}

.testimonials-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 320px;
    min-height: 350px;
    padding: 1em;
    border-radius: 25px 25px 0 25px;
    background: rgba(80,80,80,0.95);
    color: #fff;
    text-shadow: 1px 1px 1px var(--box-shadow-dark);
    font-size: 1.1em;
    /* box-shadow: 2px 2px 2px 3px rgb(161,221,50); */
    box-shadow: 2px 2px 5px 3px var(--box-shadow-dark);
}

.quote-img {
    width: 15%;
    margin-bottom: 1em;
}

.testimonials-text {
    padding-bottom: 1em;
    margin-bottom: 1em;
    border-bottom: solid 1px var(--secondary-accent);
}

.testimonials-credit {
    margin: 0;
}

.clients-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em;
    margin: 0;
    font-size: 1em;
    background-color: var(--grey-dark);
}

.clients-content {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3em;
}

.clients-content img {
    width: 300px;
}

.gallery-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em .5em;
    margin: 0;
    font-size: 1em;
    background-color: rgb(250, 250, 250);
}

.gallery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.gallery-img {
    width: 90%;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em 2.5em;
    margin: 0;
    color: #fff;
    font-size: 1em;
    background-color: var(--grey-dark);
}

.contact-content {
    width: 100%;
    display: grid;
    grid-auto-columns: 1fr;
    align-items: start;
    gap: 1em;
}

.contact-info {
    font-size: 1.175em;
}

.contact-link {
    color: var(--primary-accent);
    font-weight: 500;
    text-decoration: none;
}

.contact-logo {
    width: 90%;
    margin: .5em 0 1em;
}

.contact-link:hover {
    text-decoration: underline;
}

.flex {
    display: flex;
    align-items: center;
    padding: .5em 0;
}

.flex h4 {
    white-space: nowrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    width: 100%;
}

.contact-form label {
    font-weight: 500;
}

.contact-input {
    height: 28px;
    margin-bottom: 1em;
    outline: none;
    background-color: #C9C9C9;
    border: 1px solid #fff;
    border-radius: 4px;
}

.contact-input:focus {
    border: 2px solid var(--primary-accent);
}

.text-area {
    min-height: 150px;
}

.submit-btn {
    font-size: 1em;
    font-weight: 600;
    margin-top: 1em;
    padding: .5em;
    cursor: pointer;
}

footer {
    background: #313131;
    color: #fff;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px 40px;
}

.footer-info p {
    margin: .5em 0 .5em;
}

.footer-info a {
    color: #fff;
    margin: 0 0 .5em;
    display: block;
    text-decoration: none;
}

.copyright-text {
    font-style: italic;
    font-size: .9em;
    margin: 0;
    padding: 0 0 20px;
    text-align: center;
}

@media screen and (min-width: 775px) {
    #hero, #about, #services, #testimonials, #clients, #gallery, #contact {
        scroll-margin-top: 90px;
    }

    nav {
        top: 90px;
    }

    main {
        margin: 90px auto 0;
    }

    .nav-bar {
        height: 90px;
        margin: 0 0 90px;
        padding: 10px 2.5%;
        font-size: 1.05em;
    }

    .nav-btn {
        background: var(--primary-accent);
        font-size: 1em;
        font-weight: 500;
        text-decoration: none;
        color: #000;
        text-shadow: 1px 1px 2px var(--box-shadow-light);
        border: 2px solid var(--primary-accent);
        margin-top: 1em;
        padding: .325em .4em;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
        box-shadow: 0px 0px 3px var(--box-shadow-dark);
    }

    .nav-btn:hover, .active {
        box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);;
        /* background: rgba(0, 0, 0, 0.75); */
        border: 2px solid #bbb;
        /* color: var(--primary-accent); */
        text-shadow: 1px 1px 2px var(--box-shadow-light);
    }

    .active::before {
        display: none;
    }

    .hero-img {
        background-image: url("img/Hero1.jpg");
        align-items: start;
        height: 600px;
    }

    .logo {
        max-height: 45px;
    }

    .hero-content {
        width: 50%;
        min-width: 760px;
        font-size: 1.15em;
        padding-left: 5%;
    }

    .hero-text {
        text-align: left;
        font-size: 3.5em;
    }

    .hero-contact {
        justify-content: start;
    }

    .about-section {
        padding: 3em;
    }

    .about-content {
        font-size: 1em;
        flex-direction: row;
    }

    .about-text {
        width: 50%;
    }

    .about-img {
        min-width: 300px;
    }

    .services-section {
        padding: 2em;
        font-size: 1.1em;
    }

    .services-container {
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }

    .services-container-earthwork {
        flex-direction: row-reverse;
    }

    .service-img {
        display: inline-block;
        width: 40%;
    }

    .testimonials-section {
        padding: 4em 3em;
    }

    .testimonials-heading {
        font-size: 5em;
    }

    .testimonials-card {
        width: 400px;
        min-height: 400px;
        padding: 1em;
        margin-top: 1.5em;
    }

    .clients-section {
        padding: 2.5em;
    }

    .gallery-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gallery-img {
        width: 350px;
    }

    .contact-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-info {
        width: 450px
    }

    .contact-logo {
        width: 90%;
        min-width: 600px;
    }

}

@media screen and (min-width: 954px) {
    .nav-container, .button-one {
        display: none;
    }

    .nav-bar-btns {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: .3em;
        margin: 0;
        list-style: none;
    }
}

@media screen and (min-width: 1200px) {
    #hero, #about, #services, #testimonials, #clients, #gallery, #contact {
        scroll-margin-top: 100px;
    }

    .nav-bar {
        height: 100px;
        margin: 0 0 100px;
        padding: 15px 5%;
    }

    .logo {
        max-height: 60px;
    }

    nav {
        top: 100px;
    }

    .nav-bar-btns {
        gap: .5em;
    }

    .nav-btn {
        font-size: 1.1em;
    }

    main {
        margin: 100px auto 0;
    }

    .hero-img {
        height: 750px;
        align-items: center;
    }

    .hero-content {
        width: 60%;
    }

    .hero-text {
        text-align: center;
        font-size: 4em;
    }

    .hero-contact {
        justify-content: center;
    }

    .about-section {
        padding: 8em 10%;
    }

    .about-content {
        font-size: 1.2em;
        gap: 4em;
    }

    .about-img {
        min-width: 400px;
    }

    .services-section {
        padding: 3em 10%;
        gap: 2.5em;
        font-size: 1.2em;
    }

    .services-container {
        gap: 3em;
        align-self: flex-start;
    }

    .testimonials-section {
        font-size: 1.1em;
    }

    .testimonials-card {
        width: 450px;
        min-height: 450px;
    }

    .clients-content {
        gap: 3em;
    }

    .clients-content img {
        width: 350px;
    }

    .gallery-section {
        padding: 3em;
    }

    .gallery-content {
        gap: 4em;
    }

    .gallery-img {
        width: 500px;
    }

    .contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3em;
        font-size: 1.2em;
    }

    .contact-info {
        padding-left: 4%;
    }
    .contact-logo {
        width: 90%;
    }

    .flex {
        display: flex;
        align-items: center;
        padding: 1em 0;
    }
    
    .contact-content {
        max-width: 100%;
        display: grid;
        grid-auto-flow: column;
        gap: 1em;
        margin-left: 0;
        margin-right: 0;
    }

    .contact-form {
        min-width: 450px;
        width: 80%;
        margin: 0 auto;
    }
}
@media screen and (min-width: 1500px) {
    .logo {
        max-height: 70px;
    }

    .nav-btn {
        font-size: 1.25em;
    }
    .about-section {
        padding: 8em 12%;
    }

    .services-section {
        padding: 3em 12%;
        gap: 2.5em;
    }

    .contact-section {
        padding: 3em 12%;
    }
}