@import url(header.css);
@import url(footer.css);

:root {
    --warm-white: #ebe5d6;
    --cool-white: #F8F6F1;
    --coral: #FD8968;
    --deep-blue: #090041;
    --green: #175d25;
    --yellow: #FFDD44;
    --lavender: #D6DCF0;
    --small-hero-height: 188px;
    --header-height: 119px;
    --footer-height: 71px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: unset;
}

html,
body {
    width: 100vw;
    overflow-x: hidden;
}

.fixed-position {
    position: fixed;
}

body {
    font-family: "Inclusive Sans", sans-serif;
    box-sizing: border-box;
    margin: 0;
    background-color: var(--warm-white);
    color: var(--deep-blue);

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    strong,
    span {
        max-width: 700px;
    }

    a {
        color: var(--deep-blue);
        text-decoration: underline;
        text-underline-offset: 5px;
        text-decoration-thickness: 2px;
        margin: 16px 0;
    }
}

main {
    min-height: calc(100vh - 190px);

    .page-top-graphic-container {
        width: 100%;
        display: flex;

        img.page-top-graphic {
            max-height: 300px;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
            justify-self: center;
        }
    }

    .hero-container {
        display: grid;
        padding: 20px 20px;
        margin: auto;
        justify-content: center;
        justify-items: center;
        align-items: center;
        max-width: 1360px;

        .hero-content {
            align-self: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            flex-basis: 0;

            .hero-subtitle {
                font-size: min(2vw, 30px);

                p {
                    margin: 0;
                }
            }
        }

        &.hero-container__full {
            grid-template-columns: 1fr 1fr;
            height: calc(100svh - var(--header-height));
            min-height: fit-content;
            gap: 50px;
            padding-top: 0;
        }

        &.hero-container__small {
            height: fit-content;
            grid-template-columns: auto;

            h1 {
                margin-bottom: 0;
            }

            &.hero-container__deep-blue {
                background-color: var(--deep-blue);
                color: var(--warm-white);
            }

            &.hero-container__lavender {
                background-color: var(--lavender);
                color: var(--deep-blue);
            }

            &.hero-container__coral {
                background-color: var(--coral);
                color: var(--deep-blue);
            }
        }
    }
}

.skip-to-content-link {
    display: block;
    max-width: unset;
    background: var(--lavender);
    outline: 3px var(--lavender) solid;
    outline-offset: 0;
    padding: 10px;
    margin: 0;
}

.skip-to-content-link:active,
.skip-to-content-link:focus {
    color: #000000;
}

.skip-to-content-link:not(:active):not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    padding: 0;
    margin: 0;
    border: 0;
    white-space: nowrap;
    user-select: none;
}

.call-to-action {
    border-radius: 30px;
    margin-top: 20px;
    padding: 20px 30px;
    align-content: center;
    justify-content: center;
    text-decoration: none;
    text-wrap: nowrap;
    border: 3px solid var(--deep-blue);
    overflow: hidden;


    &.call-to-action__yellow {
        background-color: var(--yellow);
        color: var(--deep-blue);
    }

    &.call-to-action__blue {
        background-color: var(--deep-blue);
        color: var(--lavender);

        &:hover,
        &:active {
            background-color: var(--lavender);
            color: var(--deep-blue);
        }
    }

    &.call-to-action__lavender {
        background-color: var(--lavender);
        color: var(--deep-blue);
    }

    &.call-to-action__coral {
        background-color: var(--coral);
        color: var(--deep-blue);
    }

    &.call-to-action__white {
        background-color: var(--warm-white);
        color: var(--deep-blue);
    }

    &.call-to-action__disabled {
        background-color: #f8f6f1;
        color: var(--deep-blue);
        pointer-events: none;

        &:hover {
            background-color: #76757d;
            cursor: not-allowed;
        }
    }

    &:hover,
    &:active {
        background-color: var(--deep-blue);
        color: var(--warm-white);
    }
}

.supporter-logo {
    height: 200px;
    width: auto;
    padding: 0;
}

.inline-icon-and-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    img.inline-icon {
        width: unset;
        height: unset;
        padding: unset;
    }
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;

    img {
        width: unset;
        height: unset;
        padding: unset;
    }
}

picture {
    width: 100%;
    height: 100%;

    source {
        display: none;
    }

    img {
        margin: auto;
        display: block;
        height: 100%;
        max-width: 100%;
    }
}

section {
    display: flex;
    flex-direction: column;
    align-items: start;
    max-width: 800px;
    padding: 50px;
    margin: 30px auto 50px auto;
    border-radius: 50px;
    width: 100%;

    &.section__no-fill {
        padding-top: 0px;
        padding-bottom: 0px;
    }


    &.section__deep-blue {
        background-color: var(--deep-blue);
        color: var(--warm-white);

        a {
            color: var(--warm-white);
        }

    }

    &.section__white {
        background-color: var(--cool-white);
    }

    &.section__lavender {
        background-color: var(--lavender);
        color: var(--deep-blue);
    }

    &.section__intro {
        align-items: center;
        padding: 0;
        margin-top: 0;
    }

    h2 {
        margin-top: 0;
    }

    img {
        width: 100%;
    }
}


/*font*/

h1:has(+ p),
h2:has(+ p),
h3:has(+ p),
h4:has(+ p),
h5:has(+ p),
h6:has(+ p) {
    margin-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
strong,
li {
    line-height: 1.5;
}

.site-heading-1 {
    margin-top: 0;
    font-size: min(5vw, 56px);
}

h1 {
    font-family: "Suez One", sans-serif;
    font-weight: 400;
    font-size: 52px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    font-size: 38px;
}

h3 {
    font-size: 30px;

}

h4 {
    font-size: 25px;
}

h5 {
    font-size: 20px;
}

@media screen and (max-width: 1400px) {
    section {
        width: auto;
    }
}

@media screen and (max-width: 840px) {
    section {
        margin-left: 20px;
        margin-right: 20px;
    }

    .site-heading-1 {
        max-width: 500px;
        font-size: 40px;
    }

    main {
        .hero-container.hero-container__full {
            .hero-content {
                grid-row: 2;

                .hero-subtitle {
                    font-size: 20px;
                }
            }

            .hero-image {
                padding: 0 10px;
                grid-row: 1;
            }

            grid-template-columns: 1fr;
            grid-template-rows: minmax(100px, 1fr) 1fr;
            gap: 20px;
        }
    }
}

@media screen and (max-width: 700px) {
    main {
        .hero-container {
            padding: 20px;
        }
    }

    .supporter-logo {
        height: 100px;
        width: auto;
    }

    section {
        padding: 50px 20px;
    }

    .site-heading-1 {
        font-size: 35px;
    }
}

@media screen and (max-width: 400px) {
    main {
        .hero-container.hero-container__full {
            .icon-link {
                font-size: 18px;
                margin-bottom: 0;
            }

            .hero-content {
                .hero-subtitle {
                    font-size: 18px;
                }
            }
        }
    }

    .site-heading-1 {
        font-size: 38px;
    }

    .call-to-action {
        width: 100%;
        text-align: center;
    }

    section {
        margin-left: 10px;
        margin-right: 10px;
    }
}