@import url('https://fonts.googleapis.com/css2?family=Aclonica&display=swap');

:root {
    /* colors */
    --clr-dark: 234, 77%, 19%;
    --clr-light: 209, 80%, 38%;
    --clr-white: 0, 0%, 100%;

}

/*

color dark: #0b1356
    color: #226daa;
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
button,
picture {
    margin: 0;

}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    /* added line */
    border: 0;
}

button {
    padding: 0;
    border: none;
}


/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: Century Gothic, sans-serif;
    color: hsl(var(--clr-white));
    min-height: 100vh;
    background: hsl(var(--clr-white));
    position: relative;
}

/**************************/
/***   UTILITY CLASSES  ***/
/**************************/

.flex {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.box {
    border-radius: 5px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

.shadow {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

.mt2 {
    margin-top: 2rem;
    margin-left: 2rem;
}
.mb2 {
    margin-bottom: 2rem;
}
.mt {
    margin-top: 2rem;
}

.mr {
    margin-right: 2rem;
}

.link-footer {
    color: var(--clr-dark);
}

.link-footer:hover {
    font-weight: bold;
    color: hsl(var(--clr-light));
}

.uppercase {
    text-transform: uppercase;
}

.underline:hover {
    text-decoration: underline;
    text-underline-offset: 0.7rem;
}

.color-dark {
    color: hsl(var(--clr-dark));
}

.center {
    text-align: center;
}

.text-container {
    color: hsl(var(--clr-dark));
    margin: 2rem;
    text-align: justify;
}

.text-heading {
    padding: 1rem 2rem 0 2rem;
    margin: auto;
}

.text-paragraph {
    padding: 2rem 2rem;
}

.text-columns {
    column-count: 1;
    column-gap: 3rem;
}

.bolded {
    font-weight: bold;
}

.letter-spacing {
    letter-spacing: 0.2ch;
}

.separator {
    margin: 2rem;
}

/**************************/
/***    NAVIGATION      ***/
/**************************/

header {
    padding: 0 1rem;
    background: hsl(var(--clr-white));
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}


a {
    text-decoration: none;
    color: hsl(var(--clr-dark));
    font-family: Century Gothic, sans-serif;
    text-transform: uppercase;
}

.header {
    position: sticky;
    top: 0;
    z-index: 3000;
}

.logo {
    height: 5rem;
    margin-top: 0.4rem;
}


.primary-navigation {
    display: flex;
    column-gap: 0.4rem;
    font-family: Century Gothic, sans-serif;
    text-align: center;
    align-items: center;
}


.navmenu::after,
.button-contact::after {
    content: attr(data-text);
    height: 0;
    visibility: hidden;
    font-weight: bold;
}

.navlink {
    justify-items: center;
    padding: 1rem;
    font-size: 1.2rem;

}


.navlink:hover {
    font-weight: bold;
}

.button-contact {
    transition: 500ms;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border: solid 2px hsl(var(--clr-light));
    padding: 1rem 2rem;
    background: hsl(var(--clr-light));
    color: hsl(var(--clr-white));
}

.button-contact:hover {
    background: hsl(var(--clr-white));
    color: hsl(var(--clr-dark));
    border: solid 2px hsl(var(--clr-dark));

}

.mobile-nav-toggle {
    display: none;
    position: absolute;
    z-index: 2000;
    right: 1.5rem;
    top: 1.5rem;
    padding-bottom: 5rem;
    border: 0;
    background: transparent;
    background-repeat: no-repeat;
    background-image: url('assets/icons/hamdark.svg');
    background-size: 2rem;
    width: 1.8rem;
    aspect-ratio: 1;
}

.mobile-nav-toggle[data-expanded="true"] {
    background-image: url('assets/icons/closedark.svg');
    background-size: 1.5rem;
    cursor: pointer;

}

.primary-navigation[data-visible="true"] {
    transform: translateX(0);

}

.mobile-nav-toggle:focus-visible {
    outline: 5px solid white;
    outline-offset: 5px;
}

/****** medium screens - tablets */
@media (min-width: 37rem) {
    .navlink {
        padding: 1rem 0.5rem;
        font-size: 1.2rem;
    }
}

/**** medium screens - tablets */
@media (min-width: 59rem) {
    .logo {
        height: 5.5rem;
        margin-top: 0.4rem;
    }

    .navlink {
        padding: 1rem 0.8rem;
        font-size: 1.2rem;

    }
}

/* ********large screens - laptops */
@media (min-width: 69em) {
    .navlink {
        padding: 1rem 1.3rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 63rem) {
    .primary-navigation {
        padding-top: 5rem;
        background-color: hsl(var(--clr-white), 0.9);
        color: hsl(var(--clr-dark));
        -webkit-backdrop-filter: blur(0.6rem);
        backdrop-filter: blur(0.6rem);
        inset: 0 0 0 40%;
        position: fixed;
        row-gap: 1.5rem;
        display: flex;
        flex-direction: column;
        z-index: 1000;
        font-weight: 600;
        font-size: 1.5rem;
        transform: translateX(100%);
        transition: transform 500ms ease-in;

    }

    .mobile-nav-toggle {
        display: block;
        cursor: pointer;

    }

    .navlink:hover {
        text-decoration: underline;
        text-underline-offset: 0.8rem;
    }

}
@supports (backdrop-filter: blur(1.5rem)) {
    .primary-navigation {
     
        background: hwb(0 100% 0% / 0.2);
        backdrop-filter: blur(1.5rem);
    }
}

@media (max-width: 37rem) {
    .navlink {
        padding: 1rem 0.5rem;
        font-size: 1.2rem;
    }

    .logo {
        margin-left: 0.5rem;
        height: 3.3rem;
        margin-top: 0.4rem;
    }

    .mobile-nav-toggle {
        display: block;
        right: 1.5rem;
        top: 1.5rem;
    }

    header {
        padding: 1rem 0;
    }

    .trucklogo {
        width: 100%;
        height: auto;
    }


}

html {
    scroll-behavior: smooth;
}

/**************************/
/***   HERO SECTION     ***/
/**************************/

@media (min-width: 430px) {
    .h3 {
        font-size: 1.5rem;
    }
}

main {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url("assets/road.jpg");
    color: white;
}

.main-content {
    height:80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    height: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    row-gap: 3rem;
    
}
.bold {
    font-weight: bold;
}


.hero-title {
    
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-family: 'Aclonica', sans-serif;
}

#p1 {
    
    font-size: clamp(1.2rem, 6vw, 1.7rem);
    font-family: 'Aclonica', sans-serif;
}

.p-hero {
    margin: 1rem auto;
    max-width: 70%;
    font-size: clamp(0.9rem, 5vw, 1.4rem);
}


.get-in-touch {
    margin: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

@media (max-width: 53rem) {
    
    .hero-content {
        padding: 2rem 1rem;
        height: 80%;
        row-gap: 1rem;
        ;
    }

    .p-hero {
    
        max-width: 90%;
    }
}


/**************************/
/***   container flex   ***/
/**************************/

.container-flex {
    display: flex;
    flex-direction: column;
    align-content: space-between;
}

@media (min-width: 63rem) {
    .container-flex {
        width: 80%;
        margin: 0 auto;
    }
}

#services {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

/**************************/
/***       cards       ***/
/**************************/

.p-card {
    font-size: 0.9rem;
    margin: 0.5rem 0.5rem;
    overflow: auto;
    text-overflow: ellipsis;
}

.a-read-more {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.a-read-more:hover {
    letter-spacing: 0.1ch;
    font-weight: bold;
}

.title {
    padding: 0.5rem 1.5rem;
}

.cards {
    margin: 2rem 1rem 0 1rem;
    background: hsl(var(--clr-white));
    min-height: 20rem;
    display: grid;
    grid-template-columns: 1fr;
    color: hsl(var(--clr-dark));
}

.card-item {
    margin: 1rem;
    display: flex;
    flex-wrap: wrap;
    min-height: 15rem;
    justify-content: center;
    align-items: center;
    text-align: center;
        grid-template-columns: 1fr;
}

@media (max-width: 35em) {

    .cards {
        margin: 1rem 0.5rem 0 0.5rem;
    }
    .card-item {
        margin: 0.5rem;
    }
}


@media (min-width: 35em) {
    .cards {
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
    }

    .card-item {
        margin: 0.5rem;
    }
}

@media (min-width: 63em) {

    .cards {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        justify-content: space-between;
    }

    .p-card {
        font-size: 1.1rem;

    }
}

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    border-radius: 5px;
}

#icon {
    height: 6rem;
    padding: 0.5rem;
}

.flip-card-back {
    background-image: url('assets/cardbg.jpg');
    background-size: cover;
    padding-top: 1rem;
}

.flip-card-front,
.flip-card-back {
    border-radius: 5px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 2rem;
    align-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-back {
    background-color: hsl(var(--clr-dark));
    color: white;
    backdrop-filter: blur(0.6rem);
    transform: rotateY(180deg);
}


/**************************/
/***       tracking     ***/
/**************************/

.tracking {
    color: hsl(var(--clr-dark));
    text-align: center;
    padding: 1.5rem;
    margin: 0 1rem 0 1rem;

}

.heading-tracking {
    color: hsl(var(--clr-dark));

    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 1rem;
    align-items: center;
    justify-content: center;
    column-gap: 2rem;
}

.p-tracking {
    color: hsl(var(--clr-dark));

    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    text-align: justify;
    row-gap: 1rem;
}

@media (min-width: 35em) {
    .p-tracking {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        text-align: justify;
    }

    .tracking {

        margin: 0 2rem 1rem 2rem;
    }
}


span {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/**************************/
/*** hiab &lowloaders   ***/
/**************************/

.hiab-lowloaders {

    margin: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2rem;
    column-gap: 2rem;
}


@media (min-width: 60em) {
    .hiab-lowloaders {
        margin: 2rem;

        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 35em) {
    .hiab-lowloaders {
        margin: 0 2rem 1rem 2rem;
    }
}


.hiab-cranes {
    border-radius: 5px;
    border: 1rem solid hsl(var(--clr-white));
    min-height: 5rem;
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    background-image: url('assets/image20.jpg');
    aspect-ratio: 1;
}

.hiab-cranes:hover,
.low-loaders:hover {


    box-shadow: 0 2px 8px 0 rgba(2, 0, 97, 0.473);
}

.low-loaders {
    min-height: 5rem;
    border-radius: 5px;
    border: 1rem solid hsl(var(--clr-white));
    background-image: url('assets/image14.jpg');
    background-size: cover;
    background-position: top left;
    background-repeat: no-repeat;
    aspect-ratio: 1;
}

.overlay-hiab {
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
}

.overlay-low {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.GFG {
    color: black;
    text-shadow: -1px 1px 0 #000,
        1px 1px 0 #000,
        1px -1px 0 #000,
        -1px -1px 0 #000;
}

h5 {

    background-color: #fff;
    color: hsl(var(--clr-dark), 0.9);
    font-weight: bolder;
    font-size: 2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    mix-blend-mode: screen;
    padding: 1rem;
    text-shadow: 1px 3px 3px black,
}

@media (min-width: 40em) {
    h5 {
        font-size: 3.5rem;
        padding: 1rem;

    }

    .hiab-lowloaders {
        margin: 2rem;
    }
}

/**************************/
/***       GALLERY      ***/
/**************************/

.gallery {
    margin: 0 1rem;

}

.gallery img {
    transition: 500ms;
    padding: 15px;
    width: 200px;
}

@media (max-width: 45rem) {
    .gallery {
        text-align: center;
        margin: 0 5px;

    }

    .gallery img {

        padding: 5px;
        width: 150px;
    }
}

.gallery img:hover {
    /* filter: sepia(100%); */
    transform: scale(1.1);
}

.gallery-title {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}


/**************************/
/***  SERVICES PAGE     ***/
/**************************/

.special-deliveries {
    display: grid;
    column-gap: 0;
    grid-template-columns: 1fr;
}

.image {
    aspect-ratio: 1;
    height: 20%;
}

@media (min-width: 63rem) {
    .special-deliveries {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .text-columns {
        column-count: 3;
    }
}

@media (min-width: 42rem) {
    .special-deliveries {
        grid-template-columns: 1fr 1fr;
    }

    .text-columns {
        column-count: 2;
    }
}

#key-benefits {
    padding-top: 0.5rem;
    margin-left: 1rem;
}

.list {
    margin-left: 1rem;
}

/**************************/
/***  CONTACT  PAGE     ***/
/**************************/

.contact-page {
    margin: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 1rem;
}

.contact a {
    font-weight: bold;
}

.contact a:hover {
    color: hsl(var(--clr-light));
}

.contact {
    padding: 1rem;
}

.column-left {
    display: flex;
    width: 60%;
    padding: 1rem;
}


.column-right {
    overflow-wrap: break-word;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: 30%;
    margin: 1rem;
}

@media (min-width: 63rem) {
    .column-left {
        width: 65%;

    }

    .column-right {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 30%;
    }
}

@media (max-width: 55rem) {
    .contact-page {
        flex-direction: column;
        row-gap: 1rem;
    }

    .column-left {
        width: 100%;
        height: 50vh;
    }

    .column-right {
        width: 100%;
    }
}

.class {
    width: 50%;
}

.contact-form {
    display: flex;
    justify-content: space-around;
    row-gap: 3rem;
    column-gap: 2rem;
    background: linear-gradient(#51a6ec, #0b1356);
    padding: 4rem 10%;
    -webkit-box-shadow: inset 1px -1px 28px 0px rgba(0, 0, 0, 0.25);

}


@media (max-width: 63rem) {
    .contact-form {
        padding: 5%;
    }
}


.form {
    /* justify-content: center; */
    max-width: 40vw;
}

@media (max-width: 55rem) {
    .class {
        width: 100%;
    }

    .contact-form {
        flex-direction: column;
    }

    .form {
        margin: auto;
        max-width: 70vw;
    }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 1px 1px 20px 0px rgba(0, 0, 0, 0.25);

}



.form-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-right {
    justify-content: center;
}

.btn {
    display: flex;
    justify-content: center;
}

#form-submit-button {
    transition: 500ms;
    border-radius: 5px;
    margin-top: 1rem;
    cursor: pointer;
    padding: 1rem 3rem;
    background: hsl(var(--clr-white));
    color: hsl(var(--clr-dark));
    border: solid 2px hsl(var(--clr-dark));
    letter-spacing: 0.5ch;
    font-family: Century Gothic, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
}

#form-submit-button:hover {
    background: hsl(var(--clr-light));
    color: hsl(var(--clr-white));
    border: solid 2px hsl(var(--clr-light));

}

.vacancies {
    text-align: left;
    padding-bottom: 1rem;
    min-height: 10rem;
}

.vacancies img {
    padding: 1.5rem 1rem 1rem 1.5rem;
    float: left;
}

/**************************/
/***       ABOUT       ***/
/**************************/
.about {
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy {
    padding: 2rem;
}

.mario-photo {
    margin: 2rem;
    box-shadow: 0 7px 8px 0 rgba(0, 0, 0, 0.5);
}

.about p {
    margin: 0 2rem;
}

@media (max-width: 37rem) {
    .about {

        flex-direction: column;
    }
}

/**************************/
/***       FOOTER       ***/
/**************************/


.footer {
    box-shadow: 8px 2px 8px 2px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 1rem;
    text-align: center;
    color: hsl(var(--clr-dark));
    background-color: hsl(var(--clr-white));
}

@media (max-width: 45rem) {

    .footer {
        flex-direction: column;
        row-gap: 2rem;
        justify-content: center;
    }

    .footer-break {
        margin-top: 4rem;
    }

}

.footer-break {
    height: 5rem;
}

.social-media>a {
    text-transform: none;
}