@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800&family=Playwrite+CU:wght@100..400&display=swap');

:root {
    --bg-creme: #FEFBF2;
    --bg-dark-creme: #F3EFE2;
    --bg-turquoise: #3C5F5C;
    --bg-ylw: #A99C69;
    --bg-red: #A9696B;
    --bg-trans-white: rgba(255, 255, 255, 0.3);

    --txt: #5E4724;
    --txtWhite: #FFF;

    --border-creme: #D6CFB9;
    --border-grn: #658A86;
}

body {
    font-family: 'Parkinsans', sans-serif;
        font-size: 16px;
        color: var(--txt);
        background: var(--bg-creme);
        padding: 0;
        margin: 0;
}

header {
    background: var(--bg-turquoise);
    padding: 18px 32px;
    color: var(--txtWhite);
    text-align: center;
}
header h4 {
    font-weight: 400;
    margin: 0;
}

.hero {
    background: url('img/header-group.png') center bottom / cover no-repeat;
    height: 840px;
    color: var(--txtWhite);
    text-align: center;
}
h1 {
    font-family: 'Parkinsans', serif;
    font-weight: 600;
    font-size: 64px;
    margin: 0;
    padding-top: 200px;
    text-shadow: 0 0 3px rgba(0,0,0,0.3);
}
h2 {
    font-family: 'Playwrite CU', serif;
    font-weight: 200;
    font-size: 36px;
    margin: 8px 0 0 0;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

main {
    max-width: 1200px;
    width: 90%;
    margin: 80px auto;
    text-align: center;
}
main .intro {
    max-width: 720px;
    margin: 0 auto 90px auto;
    font-size: 18px;
}
main .intro img {
    max-width: 120px;
    margin-bottom: 20px;
}

main .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
main .cards .card {
    flex: 0 0 calc((100% - 72px) / 4);
    box-sizing: border-box;
    background: var(--bg-dark-creme);
    border-radius: 8px;
}
main .cards .card .img {
    height: 320px;
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px auto;
}
main .cards .card .img img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

footer {
    background: var(--bg-dark-creme);
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
}


@media (max-width: 1200px) {
    .hero {
        height: 700px;
    }
}
@media (max-width: 1020px) {
    main .cards .card {
        flex: 0 0 calc((100% - 48px) / 3);
    }
}
@media (max-width: 960px) {
    .hero {
        height: 600px;
    }
}
@media (max-width: 740px) {
    main .cards .card {
        flex: 0 0 calc((100% - 48px) / 2);
    }
    main .intro {
        font-size: 16px;
    }

    h1 {
        font-size: 48px;
        padding-top: 140px;
    }
    h2 {
        font-size: 28px;
    }
    .hero {
        height: 480px;
    }
}
@media (max-width: 740px) {
    header {
        font-size: 14px;
    }
    main .cards .card .img {
        height: 240px;
    }
    .hero {
        height: 360px;
    }
    h1 {
        font-size: 38px;
        padding-top: 90px;
    }
    h2 {
        font-size: 20px;
    }
}