/*Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Maitree:wght@300;700&family=Roboto+Condensed:wght@300;700&family=Teko:wght@300;500&display=swap');

/*global*/
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #fff;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Teko', sans-serif;
    font-weight: 400;
}

h2 {
    margin: 2rem 0;
    font-size: 2.75rem;
    line-height: 0.8;
}

body {
    font-family: 'Maitree', serif;
}

/*****/

nav {
    font-family: 'Teko', sans-serif;
    font-size: 1rem;
    font-weight: 300;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
    line-height: 0.8;
}

.btn {
    width: 100%;
    padding: 0.75rem;

    background: rgba(255, 255, 255, 0);
    border: 1px solid #a50000;
    color: #a50000;
    font-family: 'Teko', sans-serif;
}

.contact-links .icon img {
    height: 30px;
    aspect-ratio: 1 / 1;
}

.contact-links .icon img:hover {
    cursor: pointer;
}

/*header*/

header {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-rows: [top] 50px [middle] 60px [nav-end] 20px [logo-end];
    grid-template-columns: [logo-start] 200px [logo-end nav-start diag-start] 150px [diag-end] auto [end];
}

header .logo {    
    grid-row: top / logo-end;
    grid-column: logo-start / logo-end;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
    color: #bd0d30;
    font-size: 1.5rem;
    line-height: 0.7;
    text-align: center;
}

header .logo #menu-icon {
    display: none;
    height: 30px;
}

header .logo span {
    display: block;
}

header .diagonal-background {
    z-index: 2;
    grid-column: diag-start / diag-end;
    grid-row: top / logo-end;
    background-image: -webkit-linear-gradient(-30deg, #fff 50%, rgb(0 0 0 / 0%) 50%);
}

header nav, header .nav-social {
    grid-column: nav-start / end;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header nav ul, header .nav-social {
    height: 100%;
    margin: 0 0 0 75px;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul li, header .nav-social li {
    padding: 0 1rem;
}

header .nav-social {
    grid-row: top / middle;
    margin: 0;
    padding: 0.25rem 0.5rem;
    justify-content: flex-end;
    background: #e5e5e5;
}

header .nav-main {
    position: relative;
    grid-row: middle / nav-end;
    background: #242424;
    color: white;
    text-transform: uppercase;
}

header .nav-main.active {
    position: absolute;
    height: 100vh;
    width: 100%;
    flex-direction: column;
    background: #242424f7;
}

header .nav-main #close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
    height: 30px;
}

header .nav-main #close-icon:hover {
    cursor: pointer;
}

header .nav-main.active #close-icon {
    display: initial;
}

header .nav-main.active ul {
    width: 100%;
    flex-direction: column;
}

header .nav-main ul li {
    height: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

header .nav-main .cta-button {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
    background: #bd0d30;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    text-transform: uppercase;
}

/*hero*/

.hero {
    z-index: -1;
    position: relative;
    margin: -45px 0 0 0;
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    background: #eee url('/assets/imgs/equip_all.jpg') no-repeat center;
    background-size: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero section {
    z-index: 2;
    width: 40%;
    min-width: 450px;
    padding: 1.5rem;
    
}

.hero .content-wrapper {
    color: #fff;
}

.hero .content-wrapper h1 {
    font-size: 3rem;
    font-weight: 400;
}

.hero .content-wrapper span {
    display: block;
    font-size: 1.75rem;
    font-weight: 300;
}

.hero .cta-wrapper { 
    position: absolute;
    bottom: 0;
    background: #fff;
    font-family: 'Teko', sans-serif;
    border-bottom: 1px solid #242424;
}

.hero .cta-wrapper h3 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.hero .cta-wrapper form {
    display: flex;
}

.hero .cta-wrapper form input {
    padding: 0 10px;
    margin-right: 1rem;
    border-radius: 0;
    border-width: 1px;
    text-transform: uppercase;
}

.hero .cta-wrapper .btn {
    max-width: 200px;
}

/*main*/

main {
    display: grid;
    grid-template-columns: [side-nav_start] auto [side-nav_end main_start] auto [main_end];
    grid-template-rows: [main_start] auto [about_end 
                        serv_start] auto [serv_end 
                        form_start] auto [serv-bg_end] auto [form_end 
                        social-feed_start] auto [main_end];
}

main section p {
    line-height: 1.5;
}

/*side-nav*/

.side-nav {
    grid-column: side-nav_start / side-nav_end;
    grid-row: main_start / main_end;
    width: 300px;
}

.side-nav_height-container {
    padding: 2rem;
    border-right: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5;
}

.side-nav nav p {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}

.side-nav nav ul {
    margin: 1rem 0;
    background: #e5e5e5;
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: right;
}

.side-nav nav ul li {
    width: 100%;
    padding: 1rem;
    cursor: pointer;
}

.side-nav nav ul li a {
    color: initial;
}

/**/

.about {
    grid-column: main_start / main_end;
    grid-row: main_start / about_end;
    min-height: 400px;
    margin: 4rem 2rem;
    display: flex;
    flex-wrap: wrap;
}

.about section {
    flex: 1 0 50%;
    padding: 0 2rem;
}

.about .about-gallery {
    display: flex;
}

.about .about-gallery ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about .about-gallery img {
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

.about .about-gallery ul li {
    flex: 1 1 20%;
    margin: 10px;
    transition: all 1s ease-in;
}

.about .about-gallery ul li:hover {
    cursor: pointer;
}

.about .about-gallery ul li.active {
    flex: 1 0 60%;
}

.about .about-gallery ul li.active img {
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0px 3px 3px #bcbcbc;
}

/**/

.services_bg {
    position: relative;
    z-index: -1;
    grid-column: side-nav_start / main_end;
    grid-row: serv_start / serv-bg_end;
    
    background-color: #000;
    background: url("/assets/imgs/equipment_truck-with-trailer.jpg") bottom no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
}

.services_bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #000000a6;
}

/**/

.services {
    grid-column: side-nav_end / main_end;
    grid-row: serv_start / serv_end;
    margin: 4rem 2rem 0;
    display: flex;
    max-width: 85%;

    color: #fff;
}

.services .icon-gallery {
    width: 50%;
    padding: 2rem;
}

.services .icon-gallery ul {
    margin: 2rem 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.services .icon-gallery ul li {
    flex: 1 1 30%;
}

.services .icon-gallery ul li:nth-of-type(n+4) {
    flex: 1 1 45%;
    margin-top: 2rem;
}

.services .icon-gallery ul:last-of-type {
    margin-bottom: 0;
    justify-content: space-evenly;
}

.services .icon-gallery ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services .icon-gallery h4 {
    margin: 1rem 0 0 0;
    font-size: 1.5rem;
    text-align: center;
}

.services .icon-gallery img {
    order: -1;
    height: 70px;
    width: 70px;
    margin: 0 auto;
    color: #fff;
}

.services .content {
    width: 50%;
    padding: 2rem;
}

.services .content h2 span {
    display: block;
}

/**/

.form {
    grid-column: main_start / main_end;
    grid-row: form_start / form_end;
    max-width: 80%;
    display: flex;
}

.form > section {
    flex: 1 0 50%;
}

.form .testimonial {
    background: #a50000;
    padding: 4rem;
    margin: 4rem;
    margin-right: 0;
    color: #fff;
}

.form .testimonial .material-symbols-outlined {
    display: block;
    transform: rotate(180deg);
    font-size: 4rem;
    text-align: right;
}

.form section:last-of-type {
    margin: 4rem 2rem;
    margin-left: 0;
    background: #eee;
    padding: 4rem 2rem;
}

.form form {
    display: flex;
    flex-wrap: wrap;
}

.form form h3 {
    flex: 100%;
    font-size: 1.75rem;
}

.form form input {
    margin-bottom: 1rem;
    padding: 0.75rem;

    border-radius: 0;
    border: 1px solid #9a9a9a;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
}

.form form input:first-of-type {
    margin-right: 10px;
}

.form form input:not(.form form input:nth-of-type(n+3)) {
    flex: 1 1 48%;
}

.form form input:nth-of-type(n+3) {
    width: 100%;
}

.form .social-links {
    margin-top: 2rem;
}

.form .social-links li {
    margin: 10px 0;
}

.form .social-links a {
    display: flex;
    align-items: center;
    color: #242424;
}

.form .social-links .icon {
    margin-right: 5px;
    height: 15px;
    color: #242424;
}

/**/

.social-feed {
    grid-column: main_start / main_end;
    grid-row: social-feed_start / main_end;
    margin: 2rem 2rem 4rem 2rem;
}

.social-feed div {
    display: flex;
    flex-wrap: wrap;
}

.social-feed div h2 {
    width: 100%;
    text-align: center;
}

.social-feed div section {
    flex: 1 1 88%;
    padding: 2rem;
}

.social-feed img {
    max-width: 100%;
}

/**/
.gallery {
    grid-column: side-nav_start / main_end;
}

.gallery h2 {
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
}

.progress-gallery {
    display: flex;
    min-height: 512px;
    height: 100%;
    margin-bottom: 8rem;
    padding: 2rem;
}

.progress-gallery {
    width: 100%;
}

.progress-gallery .panel {
    flex: 1 1 20%;
    position: relative;
    margin: 10px;
    
    background-size: cover;
    background-repeat: no-repeat;   

    transition: flex 0.7s ease-in;
}

.progress-gallery .panel:hover {
    cursor: pointer;
}

.progress-gallery .panel::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #242424f5;
    border-radius: 10px;
    transition: background-color 0.5s ease;
}

.progress-gallery .panel::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    height: 20px;
    width: 20px;
    background-image: url('../imgs/icons/icon_touch-white.png');
    background-size: contain;
    z-index: 100;
}

.progress-gallery .panel.active {
    flex: 1 1 70%;
}

.progress-gallery .panel.active::before {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.7s ease-in;
}

.progress-gallery .panel.active::after {
    display: none;
}

/**/

footer {
    border-top: 2px solid #e0e0e0;
    width: 100%;
    min-height: 100px;
    background: #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6rem;
}

footer .content {
    min-width: 200px;
    margin: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

footer .nav-social {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

footer .contact-links {
    display: flex;
}

footer .contact-links li {
    margin: 0 1rem;
}

footer p {
    width: 100%;
    text-align: center;
}

@media (max-width: 1250px) {

    .hero section {
        width: 60%;
    }

    .hero .cta-wrapper form input {
        flex: 1 1 30%;
    }

    .about section {
        flex: 1 0 100%;
    }

    .services_bg {
        height: 700px;
    }

    .services {
        grid-column: side-nav_start / main_end;
        margin: 0;
        max-width: initial;
    }

    .services section {
        margin-top: 2rem;
    }

    .form {
        grid-column: side-nav_start / main_end;
        max-width: initial;
        margin: 10rem 2rem 4rem;
    }

    .form .testimonial, .form section:last-of-type {
        margin: 0;
    }

    .progress-gallery {
        min-height: 385px;
    }

}

@media (max-width: 900px) {
    header {
        display: flex;
        flex-wrap: wrap;
    }

    header .logo {
        flex: 100%;
        justify-content: center;
    }

    header .nav-social {
        flex: 100%;
        padding: 10px;
        justify-content: center;
    }

    header .nav-main {
        flex: 100%;
    }

    header nav ul {
        margin: 0;
        padding: 15px 0;
    }
    
    .hero section {
        width: 100%;
    }

    .hero .content-wrapper {
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }

    .hero .content-wrapper h1 {
        text-align: right;
        margin-bottom: 0;
        margin-top: 10rem;
    }

    .side-nav {
        display: none;
    }

    .about {
        grid-column: side-nav_start / main_end;
    }

    .about .content {
        margin-bottom: 0;
    }

    .about .about-gallery ul {
        min-height: 365px;
    }

    .about .about-gallery ul li {
        margin: 1rem;
        flex: 1 1 25%;
    }

    .about .about-gallery ul li.active {
        flex: 1 0 50%;
    }

    .progress-gallery {
        flex-direction: column;
        align-items: center;
        min-height: 665px;
    }

    .progress-gallery .panel {
        max-width: 425px;
        width: 100%;
        flex: 1 1 10%
    }

    .progress-gallery .panel.active {
        height: 425px;
        flex: 1 1 60%;
    }
}

@media (max-width: 680px) {

    header .logo {
        justify-content: space-between;
        padding: 0 2rem;
    }

    header .logo #menu-icon {
        display: initial;
    }

    header .nav-social {
        height: 50px;
    }

    header .nav-main {
        display: none;
        flex-wrap: wrap;
    }

    header .nav-main.active {
        display: initial;
        height: 100vh;
        width: 100%;
        transition: ease-in;
    }
    
    header .logo #menu-icon.active {
        display: initial;
    }

    header .logo #menu-icon:hover {
        cursor: pointer;
    }

    header .nav-main.active ul {
        width: 100%;
        flex-direction: column;
        height: calc(100vh - 60px);
    }

    header .nav-main .cta-button {
        text-align: center;
        height: 60px;
        width: 100%;
    }

    .hero {
        position: relative;
    }

    .hero .content-wrapper {
        position: absolute;
        bottom: 20px;
        justify-content: center;
        align-items: center;
    }

    .hero .cta-wrapper {
        display: none;
    }

    .about {
        margin: 2rem 0;
    }

    .about .about-gallery {
        padding: 0;
    }

    .about .about-gallery ul {
        min-height: initial;
        padding: 1rem;
    }

    .about .about-gallery ul li.active {
        margin: 0;
    }

    .services {
        flex-wrap: wrap;
        width: 100%;
    }

    .services .icon-gallery {
        width: 100%;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 4rem;
    }

    .services .content {
        width: 100%;
        order: -1;
        margin-top: 0;
    }

    .form {
        margin: 0;
        flex-wrap: wrap;
    }

    .form .testimonial {
        padding: 2rem;
        padding-bottom: 3rem;
    }

    .form section:last-of-type {
        padding: 2rem;
    }

    .gallery {
        margin-top: 2rem;
    }
}