/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;   
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111111;
    background: #ffffff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =========================
   HEADER
========================= */
header {
    height: 87px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
header > div {
    max-width: 1080px;
    height: 100%;
    margin: 0 auto;
    padding: 0 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

header > div > a {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

header nav a {
    font-size: 15px;
    color: #666666;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: #111111;
}

header button {
    display: none;
}


/* =========================
   HERO SECTION
========================= */

main > div > section:first-child {
    min-height: 960px;
    padding: 112.5px 30px 66px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #ffffff;
}

main > div > section:first-child > p:first-child {
    margin-bottom: 12px;

    font-size: 15px;
    color: #777777;
    letter-spacing: 0.1px;
}

main > div > section:first-child h1 {
    max-width: 915px;
    margin-bottom: 21px;
    font-size: 54px;
    line-height: 0.99;
    letter-spacing: -2.7px;
    font-weight: 700;
}

main > div > section:first-child > p:nth-of-type(2) {
    max-width: 690px;
    margin-bottom: 34.5px;

    font-size: 16.5px;
    line-height: 1.55;
    color: #777777;
}

main > div > section:first-child > div:nth-of-type(1) {
    display: flex;
    gap: 12px;
    margin-bottom: 52.5px;
}

main > div > section:first-child > div:nth-of-type(1) a {
    padding: 12px 24px;
    border-radius: 30px;

    font-size: 15px;
    font-weight: 600;

    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

main > div > section:first-child > div:nth-of-type(1) a:first-child {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}

main > div > section:first-child > div:nth-of-type(1) a:first-child:hover {
    background: #333333;
}

main > div > section:first-child > div:nth-of-type(1) a:last-child {
    background: #ffffff;
}

main > div > section:first-child > div:nth-of-type(1) a:last-child:hover {
    background: #f5f5f5;
}


/* =========================
   HERO IMAGE
========================= */

main > div > section:first-child > div:last-child {
    width: 327px;
    height: 492px;

    overflow: hidden;
    border-radius: 27px;
}

main > div > section:first-child img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center;
}


/* =========================
   SERVICES SECTION
========================= */

main > div > section:nth-child(2) {
    background: #f5f6f7;
    padding: 69px 30px 70.5px;
}

main > div > section:nth-child(2) > div {
    max-width: 1080px;
    margin: 0 auto;
}

main > div > section:nth-child(2) h2 {
    font-size: 31.5px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 7.5px;
}

main > div > section:nth-child(2) > div > p {
    font-size: 13.5px;
    color: #777777;
    margin-bottom: 37.5px;
}


/* =========================
   SERVICE CARDS
========================= */

main > div > section:nth-child(2) > div > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19.5px;
}

main > div > section:nth-child(2) > div > div > a {
    min-height: 282px;
    padding: 30px 27px;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: 25.5px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

main > div > section:nth-child(2) > div > div > a:hover {
    transform: translateY(-4.5px);
    box-shadow: 0 12px 37.5px rgba(0, 0, 0, 0.06);
}

main > div > section:nth-child(2) h3 {
    font-size: 16.5px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 10.5px;
}

main > div > section:nth-child(2) > div > div > a > p:nth-of-type(1) {
    font-size: 12px;
    line-height: 1.35;
    color: #777777;
    margin-bottom: 16.5px;
}

main > div > section:nth-child(2) > div > div > a > p:nth-of-type(2) {
    font-size: 12px;
    line-height: 1.5;
    color: #777777;
    margin-bottom: 19.5px;
}

main > div > section:nth-child(2) > div > div > a > p:nth-of-type(3) {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: auto;
    margin-bottom: 13.5px;
}

main > div > section:nth-child(2) span {
    font-size: 12px;
    color: #0070d9;
}


/* =========================
   PROJECT CTA
========================= */

main > div > section:nth-child(3) {
    min-height: 318px;
    padding: 72px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background: #ffffff;
}

main > div > section:nth-child(3) h2 {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

main > div > section:nth-child(3) > p {
    max-width: 585px;
    margin-bottom: 28.5px;

    font-size: 13.5px;
    line-height: 1.45;
    color: #777777;
}

main > div > section:nth-child(3) a {
    display: inline-block;

    padding: 12px 25.5px;
    border-radius: 30px;

    background: #111111;
    color: #ffffff;

    font-size: 13.5px;
    font-weight: 600;

    transition: background 0.2s ease;
}

main > div > section:nth-child(3) a:hover {
    background: #333333;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #f5f6f7;
    border-top: 1px solid #eeeeee;
}

footer > div:first-child {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 0;

    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr;
    gap: 52.5px;
}

footer p,
footer li,
footer a {
    font-size: 12px;
    line-height: 1.6;
    color: #777777;
}

footer > div:first-child > div:first-child > p:first-child {
    color: #222222;
    font-weight: 700;
    margin-bottom: 9px;
}

footer > div:first-child > div:first-child > p:last-child {
    max-width: 232.5px;
    line-height: 1.5;
}

footer > div:first-child > div > p:first-child {
    margin-bottom: 10.5px;

    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #999999;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 4.5px;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #111111;
}


/* =========================
   COPYRIGHT
========================= */

footer > div:last-child {
    border-top: 1px solid #e8e8e8;
}

footer > div:last-child > div {
    max-width: 1080px;
    margin: 0 auto;
    padding: 19.5px 0;

    font-size: 10.5px;
    color: #888888;
}


/* =========================
   HIDE LOVABLE BADGE
========================= */

aside {
    display: none !important;
}


/* =========================
   RESPONSIVE — TABLET
========================= */

@media (max-width: 1120px) {

    header > div {
        padding: 0 30px;
    }

    main > div > section:first-child h1 {
        font-size: 51px;
    }

    main > div > section:nth-child(2) > div {
        max-width: 1020px;
    }

    footer > div:first-child,
    footer > div:last-child > div {
        margin-left: 30px;
        margin-right: 30px;
    }
}


/* =========================
   RESPONSIVE — MOBILE
========================= */

@media (max-width: 900px) {

    header {
        height: 82.5px;
    }

    header > div {
        padding: 0 27px;
    }

    header nav {
        display: none;
    }

    header button {
        display: block;

        padding: 9px 15px;

        background: transparent;
        border: 1px solid #dddddd;
        border-radius: 22.5px;

        font-size: 13.5px;
        color: #333333;
    }


    /* Hero */

    main > div > section:first-child {
        min-height: auto;
        padding: 97.5px 30px 67.5px;
    }

    main > div > section:first-child h1 {
        max-width: 675px;
        font-size: 48px;
        letter-spacing: -2.2px;
    }

    main > div > section:first-child > p:nth-of-type(2) {
        max-width: 570px;
    }

    main > div > section:first-child > div:last-child {
        width: 307.5px;
        height: 465px;
    }


    /* Services */

    main > div > section:nth-child(2) {
        padding: 63px 30px;
    }

    main > div > section:nth-child(2) > div > div {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    main > div > section:nth-child(2) > div > div > a {
        min-height: 255px;
    }


    /* CTA */

    main > div > section:nth-child(3) {
        min-height: 345px;
        padding: 82.5px 30px;
    }


    /* Footer */

    footer > div:first-child {
        grid-template-columns: 1fr 1fr;
        gap: 45px 30px;
        padding: 52.5px 30px;
    }

    footer > div:last-child > div {
        margin: 0;
        padding: 19.5px 30px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 560px) {

    main > div > section:first-child {
        padding-top: 75px;
    }

    main > div > section:first-child h1 {
        font-size: 43.5px;
    }

    main > div > section:first-child > p:nth-of-type(2) {
        font-size: 15px;
    }

    main > div > section:first-child > div:last-child {
        width: 285px;
        height: 432px;
    }

    footer > div:first-child {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MOBILE MENU (opened by the Menu button)
========================================= */

@media (max-width: 900px) {

    header nav.open {
        display: flex;

        position: absolute;
        top: 72px;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 6px 27px 18px;

        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
        z-index: 30;
    }

    header nav.open a {
        padding: 15px 0;
        font-size: 16.5px;
        border-bottom: 1px solid #f1f1f1;
    }
}


/* =========================================
   RESPONSIVE POLISH
========================================= */

img {
    max-width: 100%;
}

/* Service cards: 3 -> 2 columns on tablets */

@media (max-width: 1120px) {

    main > div > section:nth-child(2) > div > div {
        grid-template-columns: repeat(2, 1fr);
    }
}
