@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Taviraj:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
}

:root {
    --primary-light: #f2f2f2;
    --primary-red: #B70625;
    --primary-green: rgb(17,124,9);
    --primary-blue: rgb(64,137,240);
    --primary-dark: #222;
    --box-shadow-dark: rgba(50, 50, 50, 0.8);
    --box-shadow-light: rgba(200, 200, 200, 0.5);
}

#hero, #about, #services, #contact {
    scroll-margin-top: 80px;
}

body,
html {
    font-family: Taviraj, 'Times New Roman', Times, serif;
    color: #303030;
    scroll-behavior: smooth;
}

body {
    height: auto;
    width: 100%;
    background-image: url('img/Geometric_Texture.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

h2, p, ul {
    margin: 0 0 .6em;
}

h2 {
    text-transform: uppercase;
    color: var(--primary-red);
    font-family: Montserrat, Arial;
    font-size: 3em;
    font-weight: 600;
}

/* .red {
    color: var(--primary-red);
}

.green {
    color: var(--primary-green);
}

.blue {
    color: var(--primary-blue);
} */

.nav-bar {
    position: fixed;
    top: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    height: 80px;
    padding: 15px 25px;
    margin: 0 0 80px;
    box-shadow: 3px 3px 10px rgba(200, 200, 200, 0.7);
    z-index: 2;
}

.logo {
    max-height: 60px;
    /* max-width: 100%; */
}

.nav-bar-btns {
    display: none;
}

.button-one {
    height: 110%;
    --button-color: #B70625;
    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: 80px;
    right: -300px;
    background-color: rgb(250, 250, 250);
    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;
    gap: .5em;
    list-style: none;
    padding: 0 .8em;
}
  
.show-nav {
    right: 0;
}

.nav-link {
    text-decoration: none;
    color: #222;
    font-family: Montserrat, Arial;
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.nav-link:hover, .nav-link:focus, .nav-link:active {
    text-decoration: none;
    color: var(--primary-red);

}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::before {
    width: 100%;
}

.active {
    text-decoration: none;
    color: var(--primary-red);
}

.active::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: var(--primary-red);
}

main {
    width: 100%;
    min-height: 100vh;
    margin: 80px auto 0;
}

.hero-img {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-hero-img {
    background-image: url("img/truck.jpg");
    background-size: cover;
    background-position: left -25px top;
    /* background-position: center; */
}

.about-hero-img {
    background-image: url("img/General_ExampleProjects_1.jpg");
    background-size: cover;
}

.land-hero-img {
    background-image: url("img/julian-hochgesang-i0noKR91EFM-unsplash-cropped.jpg");
    background-size: cover;
}

.env-hero-img {
    background-image: url("img/edward-taylor-kk1vyGraVac-unsplash-cropped.jpg");
    background-size: cover;
    background-position: center;
}

.contact-hero-img {
    background-image: url("img/General_OverallTeam_1.jpg");
    background-size: cover;
}

.hero-img::before {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-color: rgba(0,0,0,0.5);
}

.hero-content {
    font-size: .8em;
    position: relative;
    padding: 1.5em;
    border-radius: .3em;
    /* background-color: rgba(0,0,10,0.5);
    box-shadow: 0px 0px 10px rgba(0, 0, 10, 0.5); */
    color: #fff;
    font-family: Montserrat, Arial;
}

.hero-text {
    font-size: 3em;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(0,0,0,0.9);
}

.hero-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Taviraj, 'Times New Roman', Times, serif;
    text-shadow: 0 0 3px rgba(0,0,0,0.9);
}

.hero-button {
    display: inline-block;
    flex-shrink: 0;
    background: var(--primary-red);
    font-family: Taviraj, 'Times New Roman', Times, serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    margin: .5em;
    padding: .3em .5em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 3px var(--box-shadow-dark);
}

.hero-button:hover {
    box-shadow: 2px 2px 8px var(--box-shadow-light);
    background: #9F0007;
}

.hero-subtext {
    font-size: 1.35em;
    font-weight: 500;
    margin: 0;
}

.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em 1em;
    font-size: 1.1em;
    background-color: rgb(250, 250, 250);
    /* box-shadow: 0px 0px 15px rgba(50, 50, 50, 0.8); */
}

.about-heading {
    margin: 0;
    font-size: 2em;
}

.about-content {
    display: flex;
    gap: 1.5em;
    font-size: .75em;
}

.about-img {
    display: none;
}

.about-secondary {
    font-size: 1.5em;
    text-align: center;
    font-style: italic;
    font-weight: 600;
    padding: 5em 3em;
    color: #fff;
}

.services-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 1em;
}

.home-services-section {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* align-items: center; */
    padding: 1.5em 1em;
    background-color: #DDD;
}

.home-services-container {
    display: flex;
}

.home-services-subcontainer {
    display: flex;
    flex-direction: column;
    padding: 2em 0;
}

.home-services-subcontainer ul {
    list-style: none;
    padding: 0;
}

.home-services-subcontainer h3 {
    font-family: Montserrat, Arial;
    font-size: 1.5em;
    padding: 0 0 1em;
}

.home-land-subcontainer {
    padding-right: 1em;
}

.home-env-subcontainer {
    padding-left: 1em;
}

.service-img {
    width: 20%;
    /* margin: auto 0; */
}

.service-btn {
    display: inline-block;
    font-family: Montserrat, Arial;
    font-size: 1.3em;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    margin: .5em auto .5em 0;
    padding: .3em .5em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 3px var(--box-shadow-dark);
}

.land-btn {
    background: var(--primary-green);
}

.env-btn {
    background: var(--primary-blue);
}

.land-btn:hover {
    box-shadow: 2px 2px 8px var(--box-shadow-dark);
    background: rgb(13,93,7);
}

.env-btn:hover {
    box-shadow: 2px 2px 8px var(--box-shadow-dark);
    background: rgb(48,103,180);
}

.services-heading {
    text-shadow: 1px 1px 3px rgba(150,150,150,0.5);
    color: #fff;
    font-size: 52.8px;
}

.service-toggle-container {
    font-family: Montserrat, Arial;
    color: #fff;
    text-shadow: 0 0 3px var(--box-shadow-dark);
    display: flex;
    gap: 1.5em;
    padding: 0 0 2em;
}

.service-toggle-button {
    padding: .75em 1em;
    border-radius: 2px;
    box-shadow: 1px 1px 5px var(--box-shadow-light);
    cursor: pointer;
}

.service-toggle-button:hover, .service-toggle-button:active {
    box-shadow: 1px 1px 8px 5px var(--box-shadow-light);
    text-shadow: 0 0 5px var(--box-shadow-dark);
}

.service-toggle-land {
    background-color: var(--primary-green);
}

.service-toggle-env {
    background-color: var(--primary-blue);
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2em;
    height: auto;
}

.service-item {
    flex: 1 1 0;
    position: relative;
    min-width: 330px;
    max-width: 500px;
    /* height: 300px; */
    /* border-radius: 5px; */
    background-color: #fff;
    color: var(--primary-dark);
    /* box-shadow: 0 0 10px var(--box-shadow-light); */
}

.service-item-land {
    /* border: 3px solid var(--primary-green); */
    box-shadow: .4em .4em 0 0 rgba(17,124,9,0.5);
}

.service-item-env {
    /* border: 3px solid var(--primary-blue); */
    box-shadow: .4em .4em 0 0 rgba(64,137,240,0.5);
}

.service-title {
    font-family: Montserrat, Arial;
    font-weight: 600;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 0 3px rgba(0, 0, 10, 0.5);
    padding: .8em .5em;
    /* height: 80px; */
    /* border-radius: 1px 1px 1px 0; */
}

.service-title-land {
    background-color: var(--primary-green);
    box-shadow: 0 0 3px var(--primary-green);  
}

.service-title-env {
    background-color: var(--primary-blue);
    box-shadow: 0 0 3px var(--primary-blue);  
}

/* .service-list-container {
    height: 212px;
    overflow-y: auto;
} */

.service-list {
    padding: 1em 1em 1em 2em;
    /* background-color: #fff; */
    list-style: none;
    padding: 0 .5em .5em .5em;
}

.service-list li {
    margin: .3em;
}

.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em 1em;
    margin: 0;
    font-size: 1em;
    background-color: rgb(250, 250, 250);
    box-shadow: 0px 0px 15px rgba(50, 50, 50, 0.8);
}

.contact-content {
    width: 100%;
    display: grid;
    grid-auto-columns: 1fr;
    align-items: start;
    gap: 1em;
}

.contact-info {
    font-size: 1.175em;
}

.map {
    width: 100%;
    margin-top: 1em;
}

.contact-link {
    color: var(--primary-red);
    font-family: Montserrat, Arial;
    font-weight: 500;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.flex {
    display: flex;
    align-items: center;
    padding: .3em 0;
}

.flex h4 {
    white-space: nowrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    min-width: 300px;
    width: 100%;
}

.contact-form label {
    font-weight: 700;
}

.email-input, .name-input {
    height: 28px;
    margin-bottom: 1em;
    border: 1px solid rgb(200,200,200);
}

.text-area {
    min-height: 150px;
    margin-bottom: 1em;
    border: 1px solid rgb(200,200,200);
}

.submit-btn {
    background: var(--primary-red);
    font-family: Taviraj, 'Times New Roman', Times, serif;
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    border: none;
    margin-top: 1em;
    padding: .5em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 0px 3px var(--box-shadow-dark);
}

.submit-btn:hover {
    box-shadow: 2px 2px 3px var(--box-shadow-dark);
    background: #9F0007;
}

footer {
    background: #DDDDDD;
}

.footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    color: var(--primary-dark);
    padding: 40px 20px 40px;
}

.footer p {
    margin: 0;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0 10px;
}

.footer ul li a {
    color: var(--primary-red);
}

.copyright-text {
    color: #777;
    font-style: italic;
    font-size: .9em;
    margin: 0;
    padding: 0 0 20px;
    text-align: center;
}

@media screen and (min-width: 768px) {
    #hero, #about, #services, #contact {
        scroll-margin-top: 80px;
    }

    .nav-bar {
        height: 80px;
        margin: 0 0 80px;
    }

    nav {
        top: 80px;
    }

    main {
        margin: 80px auto 0;
    }
    
    .home-hero-img {
        background-position: top;
    }

    .hero-content {
        max-width: 90%;
        font-size: 1.15em;
    }

    .about-section {
        padding: 3em;
    }

    .about-content {
        font-size: .95em;
    }

    .about-text {
        padding: 2em;
    }

    .about-img {
        display: inline;
        max-height: 500px;
        margin: auto 0 ;
    }

    .services-section {
        padding: 2em;
    }

    .contact-section {
        font-size: 1.1em;
    }

    .contact-content {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;

    }

    .map {
        display: block;
        height: 300px;
    }
    
}

@media screen and (min-width: 865px) {
    .nav-container, .button-one {
        display: none;
    }

    .nav-bar-btns {
        display: flex;
        flex-wrap: wrap;
        gap: .3em;
        margin: 0;
        list-style: none;
    }

    .hero-img {
        height: 600px;
    }

    .nav-btn {
        background: var(--primary-red);
        font-family: Montserrat, Arial;
        font-size: 1em;
        font-weight: 500;
        text-decoration: none;
        color: #fff;
        border: none;
        margin-top: 1em;
        padding: .5em;
        cursor: pointer;
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
        box-shadow: 0px 0px 3px var(--box-shadow-dark);
    }

    .nav-btn:hover {
        box-shadow: 2px 2px 3px var(--box-shadow-dark);
        background: #9F0007;
    }

    .active {
        box-shadow: 2px 2px 3px var(--box-shadow-dark);
        background: #9F0007;
    }

    .active::before {
        display: none;
    }

    .home-services-section {
        font-size: 1.2em;
        padding-left: 7%;
        padding-right: 7%;
    }

    .home-land-container {
        align-self: flex-end;
        justify-content: flex-end;
    }

    .home-env-container {
        align-self: flex-start;
    }
}

@media screen and (min-width: 1366px) {
    #hero, #about, #services {
        scroll-margin-top: 100px;
    }

    .nav-bar {
        height: 100px;
        margin: 0 0 100px;
    }

    .logo {
        max-height: 70px;
    }

    nav {
        top: 100px;
    }

    .nav-bar-btns {
        gap: .5em;
    }

    .nav-btn {
        font-size: 1.2em;
    }

    main {
        margin: 100px auto 0;
    }

    .hero-img {
        height: 700px;
    }
    
    .home-hero-img {
        background-position: top 10% right 0px;
    }
    
    .nav-bar {
        padding: 15px 12%;
    }

    .about-content {
        font-size: 1.1em;
    }

    .about-text {
        padding: 2em 4em 2em 2em;
    }

    .about-img {
        display: inline;
        max-height: 600px;
        margin: auto 0 ;
    }

    .home-services-section {
        font-size: 1.2em;
        padding-left: 12%;
        padding-right: 12%;
    }

    .home-land-subcontainer {
        padding-right: 2em;
    }
    
    .home-env-subcontainer {
        padding-left: 2em;
    }

    .services-container {
        gap: 3em;
    }

    .services-section {
        padding: 6em;
    }

    .contact-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 4em 2em;
    }
    
    .contact-content {
        max-width: 100%;
        display: grid;
        grid-auto-flow: column;
        justify-items: center;
        gap: 1em;
        padding: 1em 2em;
        margin-left: 0;
        margin-right: 0;
    }

    .contact-form {
        min-width: 360px;
        width: 60%;
    }

    .map {
        height: 400px;
        width: 600px;
        margin-top: .5em;
    }
}