/*--------------------------------------------------------------------------------
    In this CSS file you will find the style for the logistics services page.
--------------------------------------------------------------------------------*/

/* Here you can import all stylesheets */
@import 'main.css';
@import 'header.css';
@import 'footer.css';


/*--------------------------------------------------
    CSS for the title and story
---------------------------------------------------*/
.servicesHeader {
    text-align: center;
}

.serviceStory {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.serviceStory figure {
    position: relative;
    height: 240px;
    overflow: hidden;

    --child-width: 100vw;
    width: var(--child-width);
}

.serviceStory figure img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.serviceStory h2 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.serviceStory p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/*--------------------------------------------------
    CSS for the services detail cards
---------------------------------------------------*/
/* Service cards */
.servicesDetails {
    display: grid;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
}

.serviceDetail-card {
    background: #FFF;
    padding: 1.25rem 20px;
    border-radius: 16px;
    box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.15);
    max-width: 500px;
}

.serviceDetail-card ul {
    padding-inline-start: 8%;
}

.serviceDetail-card ul li {
    display: list-item;
    list-style: disc;
    list-style-position: outside;
}


/*--------------------------------------------------
    CSS for the call to action for contact
---------------------------------------------------*/
.customerAction {
    background-color: #D8E7F8;
    --child-width: 100vw;
    margin-left: calc(-.5 * var(--child-width) + 50%);
    width: var(--child-width);
    margin-bottom: 2rem;
}

.actionContent {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}



/*--------------------------------------------------
    The breakpoints
---------------------------------------------------*/

/* Intermediate version of mobile and tablet (480px) */
@media screen and (min-width: 480px) {
     /* The story */
    .serviceStory {
        gap: 1.75rem;
    }

    .serviceStory figure {
        height: 264px;
    }

    .serviceStory figure img {
        object-position: 50% 75%;
    }
    /*----------------------------------------*/

    /* The services detail cards */
    .servicesDetails {
        gap: 1.75rem;
    }

    .serviceDetail-card {
        padding: 1.5rem 24px;
    }
    /*----------------------------------------*/

    /* The call to action for contact */
    .customerAction {
        margin-bottom: 2.5rem;
    }

    .actionContent {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
}

/* Tablet version (768px) */
@media screen and (min-width: 768px) {
     /* The story */
    .serviceStory {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 2.125rem;
    }

    .serviceStory figure {
        flex: 1;
        max-width: 50%;
        height: auto;
        border-radius: 24px;
    }

    .serviceStory figure img {
        position: relative;
        display: block;
        object-position: center center;
    }

    .serviceStory div {
        flex: 1;
        max-width: 50%;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    /*----------------------------------------*/

    /* The services detail cards */
    .servicesDetails {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 2.125rem;
    }

    .serviceDetail-card {
        padding: 2rem 28px;
    }

    .serviceDetail-card:nth-child(odd) {
        grid-column: 1;
    }

    .serviceDetail-card:nth-child(even) {
        grid-column: 2;
    }
    /*----------------------------------------*/

    /* The call to action for contact */
    .customerAction {
        margin-bottom: 3.375rem;
    }

    .actionContent {
        display: grid;
        align-items: center;
        gap: 2.125rem;
        max-width: fit-content;
        margin-left: auto;
        margin-right: auto;
        padding-top: 2.125rem;
        padding-bottom: 2.125rem;
    }

    .actionText {
        grid-column: 1;
        max-width: 675px;
    }

    .actionContent a {
        grid-column: 2;
    }

    button.primary {
        margin-top: 0;
    }
}

/* Laptop version (1024px) */
@media screen and (min-width: 1024px) {
    /* The story */
    .serviceStory {
        gap: 2.5rem;
    }

    .serviceStory div {
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }
    /*----------------------------------------*/

    /* The services detail cards */
    .servicesDetails {
        gap: 2.5rem;
    }

    .serviceDetail-card {
        padding: 2.25rem 32px;
    }
    /*----------------------------------------*/

    /* The call to action for contact */
    .customerAction {
        height: 100%;
        width: 100%;
        --child-width: 100%;
        margin-left: auto;

        border-radius: 16px;
        margin-bottom: 4rem;
    }

    .actionContent {
        gap: 2.5rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .actionText {
        max-width: 700px;
    }

    .sectionBG {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Larger laptop version (1280px) */
@media screen and (min-width: 1280PX) {
    /* The story */
    .serviceStory {
        gap: 3rem;
    }

    .serviceStory div {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    /*----------------------------------------*/

    /* The services detail cards */
    .servicesDetails {
        gap: 3rem;
    }

    .serviceDetail-card {
        padding: 2.5rem 36px;
    }
    /*----------------------------------------*/

    /* The call to action for contact */
    .customerAction {
        margin-bottom: 4.5rem;
    }

    .actionContent {
        gap: 3rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .sectionBG {
        padding-left: 36px;
        padding-right: 36px;
    }
}

/* Intermediate version of laptop and desktop (1600px) */
@media screen and (min-width: 1600PX) {
    /* The story */
    .serviceStory {
        gap: 3.5rem;
    }

    .serviceStory div {
        margin-top: 2.25rem;
        margin-bottom: 2.25rem;
    }
    /*----------------------------------------*/

    /* The services detail cards */
    .servicesDetails {
        gap: 3.5rem;
    }

    .serviceDetail-card {
        padding: 2.75rem 40px;
    }
    /*----------------------------------------*/

    /* The call to action for contact */
    .customerAction {
        margin-bottom: 5rem;
    }

    .actionContent {
        gap: 3.5rem;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .actionText {
        max-width: 725px;
    }

    .sectionBG {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Desktop version (1920px) */
@media screen and (min-width: 1920PX) {
    /* The story */
    .serviceStory {
        gap: 4rem;
    }

    .serviceStory div {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }
    /*----------------------------------------*/

    /* The services detail cards */
    .servicesDetails {
        gap: 4rem;
    }

    .serviceDetail-card {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    /*----------------------------------------*/

    /* The call to action for contact */
    .customerAction {
        margin-bottom: 5.5rem;
    }

    .actionContent {
        gap: 4rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}