@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@200&display=swap");

@font-face {
    font-family: "Helvetica Neue";
    src:
        url("../fonts/HelveticaNeueLTStd-Roman.woff2") format("woff2"),
        url("../fonts/HelveticaNeueLTStd-Roman.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-color: #fff;
    --separator-color: rgba(255, 255, 255, 0.7);
    --body-font: "Helvetica Neue", sans-serif;
    --contact-size: 260px;
}

body {
    background: url("../images/background.jpg") no-repeat;
    background-size: cover;
    color: var(--font-color);
    font-family: var(--body-font);
}

.main h1 {
    padding: 20px;
    text-align: center;
}

.main h1::after {
    content: " ";
    display: block;
    height: 1px;
    width: 142px;
    margin: 0 auto;
    background-color: var(--separator-color);
    margin-top: 50px;
}

.main h1 img {
    max-width: 100%;
}

.main h2#tagline {
    font-family: "Archivo", "Helvetica Neue", sans-serif;
    font-weight: 200;
    text-align: center;
    font-size: 36px;
    line-height: 30px;
}

.content {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.services {
    order: 2;
    max-width: 1920px;
    margin: 0 auto;
}

.services ul {
    list-style: none;
    padding: 0;
}

.services ul li {
    display: block;
    margin: 0 auto;
    text-align: center;
    font-size: 24px;
    line-height: 30px;
}

.services ul li .service {
    padding: 30px 40px 0;
    width: 230px;
    margin: 0 auto;
}

.services ul li:not(:last-child)::after {
    content: " ";
    display: block;
    height: 1px;
    width: 60px;
    margin: 0 auto;
    background-color: var(--separator-color);
    margin-top: 30px;
}

.contact {
    order: 3;
}

.contact > div {
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
}

.contact > div::before,
.contact > div::after {
    content: " ";
    display: block;
    background-color: var(--separator-color);
    height: 1px;
    width: 50%;
    top: 50%;
    margin-top: -1px;
    position: absolute;
}

.contact > div::before {
    left: calc(-1 * (var(--contact-size) / 2));
}

.contact > div::after {
    right: calc(-1 * (var(--contact-size) / 2));
}

.contact a {
    color: var(--font-color);
    font-family: var(--body-font);
    text-decoration: none;
    text-align: center;
    font-size: 24px;
    line-height: 28px;
    display: block;
    width: var(--contact-size);
    margin: 0 auto;
    border-right: 1px solid var(--separator-color);
    border-left: 1px solid var(--separator-color);
}

.contact a:hover,
.contact a:focus {
    text-decoration: underline;
}

footer .footer-ribbon {
    background: #0003;
    width: 100%;
}

footer .footer-ribbon .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 10px 30px 15px;
    max-width: 1200px;
    width: calc(100% - 60px);
    margin: auto;
}

footer .footer-ribbon .wrapper .main-logo figure {
    margin: 0 15px 0 0;
}

footer .footer-ribbon .wrapper .main-logo img {
    display: block;
}

footer .footer-ribbon .wrapper .brands-logos {
    max-width: 1033px;
    opacity: 0.3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

footer .footer-ribbon .wrapper .brands-logos figure.brand-logo {
    margin: 0 4px;
    display: contents;
}

@media (min-width: 640px) {
    .main {
        margin-top: 15vh;
        margin-bottom: 7vh;
    }

    .main h2#tagline {
        font-size: 40px;
    }

    .services ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .services ul li {
        width: 49%;
        display: block;
        margin: 0 0 30px;
    }

    .services ul li:not(:last-child)::after {
        display: none;
    }

    footer .footer-ribbon .wrapper {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
}

@media (min-width: 640px) and (max-width: 1100px) {
    .services ul li:nth-child(2n + 1) {
        border-right: 1px solid var(--separator-color);
    }
}

@media (min-width: 1100px) and (max-width: 1750px) {
    .main {
        margin-top: 25vh;
        margin-bottom: 12vh;
    }

    .services ul li {
        width: 33%;
    }

    .services ul li:not(:nth-child(3n)) {
        border-right: 1px solid var(--separator-color);
    }
}

@media (min-width: 1200px) {
    footer .footer-ribbon .wrapper {
        justify-content: center;
    }
}

@media (min-width: 1750px) {
    .main {
        margin-top: 35vh;
        margin-bottom: 17vh;
    }

    .services ul li {
        width: 310px;
    }

    .services ul li:not(:last-child) {
        border-right: 1px solid var(--separator-color);
    }
}
