:root {
    --primary-color: #041E46;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    gap: 35px 5px;
}

h1,
h2 {
    line-height: 38px;
    font-size: 28px;
    font-weight: 700;
    font-family: "p22-mackinac-pro", serif;
    letter-spacing: 0.2px;
}

h3 {
    grid-column: 1 / span 12;
    margin-top: 0;
    margin-bottom: 6px;
}

h3,
.footer-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 25px;
    letter-spacing: 0.2px;
}

.yellow-button {
    display: flex;
    background: #FFC745;
    border-radius: 3px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 23px;
    letter-spacing: 0.2px;
    color: var(--primary-color);
    max-width: fit-content;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 10px;

    &:hover {
        text-decoration: underline;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin: 0;

    header {
        background: var(--primary-color);
        height: 100px;
        width: 100%;

        .logos-wrapper {
            grid-column: 2 / span 12;
            display: flex;
            justify-content: space-between;
            padding: 25px 0;

            img {
                height: 50px;

                &:first-of-type {
                    width: 50px;
                }

                &:last-of-type {
                    width: 186px;
                }
            }
        }
    }

    main {
        section {
            grid-column: 2 / span 12;

            &.hero {
                height: 300px;
                grid-column: span 14;
                display: flex;

                img {
                    object-fit: cover;
                    width: 100%;
                    margin-bottom: 0;
                }
            }

            .img-wrapper {
                display: flex;
                margin-bottom: 30px;

                img {
                    width: 100%;
                    height: 300px;
                    object-fit: cover;

                    &.contain {
                        object-fit: contain;
                    }
                }
            }
            &.call-to-action {
                padding-bottom: 35px;
            }
            &.full-width {
                grid-column: 1 / span 14;
                display: grid;
                grid-template-columns: repeat(14, 1fr);
                gap: 0 5px;
                background: #F3F3F3;
                padding: 35px 0;

                .img-wrapper,
                .text-wrapper {
                    grid-column: 2 / span 12;
                }

                &.blue-background {
                    background: var(--primary-color);

                    .img-wrapper {
                        img {
                            object-fit: contain;
                        }
                    }

                    h2 {
                        color: white;
                        margin-bottom: 15px;
                    }

                    p {
                        color: white;
                        font-size: 15px;
                        font-weight: 500;
                        line-height: 22px;
                        letter-spacing: 0.2px;
                        text-align: left;
                    }
                }
            }
            &.cut-above {
                margin-top: -35px;
                grid-template-columns: repeat(14, 1fr);
                gap: 20px 5px;
                grid-column: 1 / span 14;
                .text-wrapper {
                    grid-column: 2 / span 12;
                }
                .img-wrapper {
                    grid-column: 2 / span 12;
                }
            }
            &.donnor {
                grid-column: 1 / span 14;
                display: grid;
                grid-template-columns: repeat(14, 1fr);
                gap: 20px 5px;
                padding-bottom: 35px;

                .left {
                    grid-column: 2 / span 12;

                    a {
                        color: var(--primary-color);
                        text-decoration: none;

                        &:hover {
                            text-decoration: underline;
                            color: var(--primary-color);
                        }
                    }
                }

                .right {
                    grid-column: 2 / span 12;

                    span {
                        display: block;
                        margin-bottom: 6px;
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 25px;
                        letter-spacing: 0.2px;

                        strong {
                            font-weight: 600;
                            font-size: 17px;
                        }
                    }

                    ul {
                        padding-left: 24px;
                        margin: 0;

                        li {
                            font-size: 14px;
                            font-weight: 400;
                            line-height: 23px;
                            letter-spacing: 0.2px;
                        }
                    }
                }
            }

            h1 {
                margin-top: 0;
                margin-bottom: 15px;
            }

            h2 {
                margin-top: 0;
                margin-bottom: 10px;
                text-align: left;
            }

            p {
                margin-top: 0;
                font-size: 14px;
                font-weight: 400;
                line-height: 23px;
                letter-spacing: 0.2px;
                text-align: left;

                strong {
                    font-weight: 600;
                }

                &:last-of-type {
                    margin-bottom: 0;
                }
            }
        }
    }

    footer {
        background: var(--primary-color);
        color: white;
        padding: 50px 0;

        p {
            margin: 0;
        }

        .footer-left {
            display: flex;
            flex-flow: column;
            gap: 30px;
            grid-column: 2 / span 12;
            max-width: 312px;

            .logos-footer {
                display: flex;
                justify-content: flex-start;
                gap: 40px;

                img {
                    &:first-of-type {
                        width: 50px;
                        height: 50px;
                    }

                    &:last-of-type {
                        width: 182px;
                        height: 49px;
                    }
                }
            }

            p {
                font-family: "p22-mackinac-pro", serif;
                font-size: 16px;
                font-weight: 700;
                line-height: 26px;
                text-align: left;
            }

            .socials {
                ul {
                    display: flex;
                    list-style: none;
                    margin: 0;
                    padding-left: 0;
                    gap: 19px;

                    li {
                        a {
                            width: 30px;
                            height: 30px;
                        }
                    }
                }
            }
        }

        .footer-right {
            grid-column: 2 / span 12;
            display: flex;
            flex-flow: column;
            gap: 30px;

            .footer-title {
                display: block;
                margin-top: 0;
                margin-bottom: 8px;
                text-align: left;
            }

            p,
            address {
                font-size: 14px;
                font-weight: 400;
                line-height: 23px;
                letter-spacing: 0.2px;
                text-align: left;
            }

            address {
                font-style: normal;
            }

            a {
                color: white;
                text-decoration: none;

                &:hover {
                    text-decoration: underline;
                }
            }
        }

        .separator {
            display: none;
        }
    }
}

@media (min-width: 480px) {
    .grid-container {
        gap: 35px 20px;
    }

    body {
        footer {
            .footer-left {
                margin-right: -5px;

                .logos-footer {
                    img {
                        &:first-of-type {
                            width: 55px;
                            height: 55px;
                        }

                        &:last-of-type {
                            width: 200px;
                            height: 53px;
                        }
                    }
                }
            }
        }
    }
}

@media (min-width: 720px) {
    body {
        header {
            height: 130px;

            .logos-wrapper {
                img {
                    height: 80px;

                    &:first-of-type {
                        width: 80px;
                    }

                    &:last-of-type {
                        width: 297px;
                    }
                }
            }
        }

        main {
            section {
                img {
                    margin-bottom: 0;
                }

                .img-wrapper {
                    position: relative;
                    margin-bottom: 0;

                    img {
                        height: 100%;
                        position: absolute;
                    }
                }

                &.full-width {
                    gap: 35px 20px;

                    .img-wrapper {
                        grid-column: 2 / span 5;
                        margin-right: -20px;
                        height: 100%;
                    }

                    .text-wrapper {
                        grid-column: 8 / span 6;
                    }
                }

                &.cut-above {
                    grid-template-columns: repeat(14, 1fr);
                    display: grid;
                    gap: 35px 20px;

                    .text-wrapper {
                         grid-column: 2 / span 6;
                        grid-row: 1;
                    }

                    .img-wrapper {
                        grid-column: 9 / span 5;
                        grid-row: 1;
                        height: 100%;
                        margin-left: -20px;
                    }
                }

                &.donnor {
                    gap: 35px 20px;

                    .left {
                        grid-column: 2 / span 7;
                    }

                    .right {
                        grid-column: 10 / span 4;
                        margin-left: -20px;
                    }
                }
            }
        }

        footer {
            .footer-left {
                grid-column: 2 / span 7;
                border-right: 3px solid #103B5F;
                max-width: unset;

                p {
                    max-width: 312px;
                }
            }

            .footer-right {
                grid-column: 10 / span 4;
                margin-left: -20px;
            }
        }
    }
}

@media (min-width: 1080px) {
    .grid-container {
        gap: 70px 20px;
    }

    h1,
    h2 {
        font-size: 35px;
        line-height: 45px;
    }

    h3 {
        margin-bottom: 10px;
    }

    h3,
    .footer-title {
        font-size: 20px;
        line-height: 28px;
    }

    .yellow-button {
        font-size: 15px;
        line-height: 23px;
        margin-top: 15px;
    }

    body {
        header {
            .logos-wrapper {
                margin-left: -20px;
                margin-right: -20px;
            }
        }

        main {
            section {
                p {
                    font-size: 15px;
                    line-height: 24px;
                }

                h2 {
                    grid-column: 1 / span 9;
                    margin-bottom: 15px;
                }

                &.hero {
                    height: 450px;

                    img {
                        height: 100%;
                    }
                }

                &.intro {
                    display: grid;
                    grid-template-columns: repeat(12, 1fr);
                    gap: 0 20px;

                    h1 {
                        grid-column: 1 / span 12;
                        margin-bottom: 25px;
                    }

                    p {
                        grid-column: 1 / span 9;
                    }
                }

                &.full-width {
                    padding: 70px 0;

                    &.blue-background {
                        p {
                            font-size: 16px;
                        }
                    }
                }

                &.donnor {
                    padding-bottom: 70px;
                    .left a {
                        text-decoration: underline;
                        &:hover {
                            text-decoration: none;
                        }
                    }
                    .right {
                        span {
                            font-size: 15px;
                            line-height: 28px;
                            margin-bottom: 10px;

                            strong {
                                font-size: 20px;
                            }
                        }

                        ul {
                            column-count: 2;
                            column-gap: 40px;
                            li {
                                font-size: 15px;
                                line-height: 24px;
                            }
                        }
                    }
                }
                &.join-us {
                    grid-column: 1 / span 14;
                    display: grid;
                    grid-template-columns: repeat(14, 1fr);
                    gap: 0 20px;
                    .img-wrapper {
                        grid-column: 2 / span 5;
                    }
                    .text-wrapper {
                        grid-column: 8 / span 5;
                    }
                }
                &.full-width,
                &.cut-above {
                    .img-wrapper {
                        min-height: 350px;
                    }

                    .text-wrapper {
                        display: flex;
                        flex-flow: column;
                        justify-content: center;
                    }
                }
                &.cut-above {
                    margin-top: -70px;
                }
                &.call-to-action {
                    padding-bottom: 70px;
                    #bbox-root {
                        margin-top: 35px;
                    }
                }
            }
        }

        footer {
            padding: 70px 0;

            .footer-left {
                grid-column: 2 / span 6;
                margin-left: -20px;
                margin-right: -20px;

                .logos-footer {
                    img {
                        &:first-of-type {
                            width: 65px;
                            height: 65px;
                        }

                        &:last-of-type {
                            width: 239px;
                            height: 65px;
                        }
                    }
                }

                p {
                    font-size: 18px;
                    line-height: 28px;
                    max-width: 365px;
                }
            }

            .footer-right {
                margin-left: -20px;

                > div {
                    margin-right: auto;
                    width: 238px;
                    margin-left: 0;

                    p,
                    address {
                        font-size: 15px;
                        line-height: 32px;
                    }
                }
            }
        }
    }
}

@media (min-width: 1620px) {
    body {
        main {
            section {
                &.donnor {
                    .left {
                        grid-column: 2 / span 6;
                    }

                    .right {
                        grid-column: 9 / span 4;
                        margin-left: 0;
                    }
                }
            }
        }

        footer {
            .footer-left {
                grid-column: 2 / span 4;
                margin-right: -20px;
            }

            .footer-right {
                grid-column: 8 / span 6;
                margin-left: -20px;
                display: flex;
                flex-flow: row;
                justify-content: flex-start;
                align-content: center;
                flex-wrap: wrap;
                gap: 100px;

                > div {
                    margin-right: 0;
                }
            }
        }
    }
}
