@import url('https://fonts.googleapis.com/css2?family=Winky+Sans:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-family: "Winky Sans", sans-serif;
    font-size: 20px;
    color: var(--font-color);
    /* CSS HEX */
    --smart-blue: #0466c8ff;
    --sapphire: #0353a4ff;
    --regal-navy: #023e7dff;
    --prussian-blue: #002855ff;
    --prussian-blue-overlay: #0028557f;
    --prussian-blue-2: #001845ff;
    --prussian-blue-3: #001233ff;
    --twilight-indigo: #33415cff;
    --twilight-indigo-overlay: #33415c7f;
    --blue-slate: #5c677dff;
    --slate-grey: #7d8597ff;
    --lavender-grey: #979dacff;
    
    --font-color: white;
    --header-background-color: var(--prussian-blue-3);
    --header-hightlight-color: var(--regal-navy);
    --hero-section-background-color: var(--prussian-blue-overlay);
    --criteria-section-background-color: var(--prussian-blue);
    --difference-section-background-color: var(--twilight-indigo-overlay);
    --team-section-background-color: var(--twilight-indigo);
    --footer-background-color: var(--regal-navy);
}

body {
    margin: auto;
    display: flex;
    flex-direction: column;
}

main {
    margin-bottom: auto;

    /* .container {
        margin: min(5vh, 3rem) auto;
    } */
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--font-color);
}

h2, h3 {
    text-align: center;
    padding-bottom: 7.5%;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;

    &:last-of-type {
        margin-bottom: 0;
    }
}

.container {
    width: min(90vw, 80rem);
    margin: 0 auto;
}

.background-image {
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

header {
    background-color: var(--header-background-color);
    position: sticky;
    top: 0;

    > ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        :first-child {
            margin-right: auto;
        }

        > li {
            display: flex;

            > a {
                padding: 1.5rem;
                font-size: clamp(0.75rem, 2vw, 1.5rem);

                &:hover {
                    background-color: var(--header-hightlight-color);
                }
            }
        }

    }
}

section {
    min-height: calc(100vh - 7.65rem);
    display:flex;
    flex-direction: column;
    scroll-margin-top: 4.525rem;
    justify-content: center;
     > div {
        padding: 1rem 0;
     }
}

span {
    font-weight: 700;
}

#home {
    background-image: url(images/background1.jpg);
    background-color: var(--hero-section-background-color);

    >div{

        >div {
            width: min(90%, 46rem);
            padding: 3.75%;
            margin: auto;
            background-color: var(--prussian-blue-overlay);
            border-radius: 3.75%;

            >p {
                font-size: 1.25rem;

                >span {
                    font-size: 1.5rem;
                }
            }
        }
    }
}

#criteria {
    background-color: var(--criteria-section-background-color);

    > div {
        padding: 0.5rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;

        > div {
            display: grid;
            gap: 2rem;
            grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));

            > div {
                padding: 3.75%;
                background-color: var(--twilight-indigo-overlay);
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-content: center;

                > ul {
                    margin-bottom: auto;
                    margin-left: auto;
                    margin-right: auto;

                    > li {
                        margin-bottom: 1rem;

                        :last-of-type {
                            margin-bottom: 0;
                        }
                    }
                }
            }
        }
    }
}

#difference {
    background-image: url(images/background2.jpg);
    background-color: var(--difference-section-background-color);

    > div {
        display: flex;
        flex-direction: column;
        align-items: center;

        > ul {
            background-color: var(--hero-section-background-color);
            width: min(90%, 46rem);
            padding: 3.75%;
            border-radius: 3.75%;
            
            > li {
                font-size: 1.25rem;
                margin-bottom: 1rem;

                &:last-of-type {
                    margin-bottom: 0;
                }

                > span {
                    font-size: 1.5rem;
                }
            }
        }
    }
}

#team {
    background-color: var(--team-section-background-color);

    > div.container {
        display: flex;
        flex-direction: column;
        align-items: center;

        > div {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
            gap: 2rem;

            > div {
                display: flex;
                flex-direction: column;
                align-items: stretch;

                > div.business-card {
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    flex-wrap: wrap;
                    margin-bottom: 1rem;

                    > div.image-container {
                        width: 40%;

                        > img {
                            object-fit: contain;
                            border-radius: 1rem;
                            /* height: 100%; */
                            width: 100%;
                        }
                    }

                    >div.personal-details {
                        width: 50%;
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        container-type: inline-size;
                        /* font-size: min(3.5vw, 1.15rem); */

                        > h3 {
                            text-align: left;
                            font-size: 12cqw;
                        }

                        > h4 {
                            font-size: 8cqw;
                        }

                        > p, > a {
                            font-size: 6cqw;
                            overflow-wrap: break-word;
                            word-break: normal;
                        }
                    }
                }
            }
        }

    }
}

footer {
    background-color: var(--footer-background-color);
    position: sticky;
    bottom: 0;
    
    p {
        margin: 1rem;
        text-align: center;
        color: white;
    }
}

/* li {
    list-style-type: none;
}

.container {
    width: min(80vw, 100rem);
}

header {
    background-color: var(--header-background-color);
    position: sticky;
    top: 0;

    ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin: auto;

        :first-child {
            margin-right: auto;
        }

        li {
            list-style-type: none;
            display: flex;

            > a {
                text-decoration: none;
                padding: 1.5rem;
                font-size: 1.25rem;
                color: white;

                &:hover {
                    background-color: var(--footer-background-color);
                }
            }
        }
    }
}

section {
    min-height: calc(100vh - 7.65rem);
    display: flex;
    scroll-margin-top: 4.45rem;

    > div {
        width: min(80vw, 75rem);
    }
}

h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    width: min(80vw, 75rem);
}

section.hero {
    padding: 1.5rem;
    background-image: url(images/background1.jpg );
    background-size: cover;
    background-color: var(--prussian-blue-overlay);
    background-blend-mode: overlay;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 2px black;
    min-height: calc(100vh - 7.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    
    > div.container > div {
        width: min(70%, 40rem);
        margin: 2rem auto;
        padding: 3rem;
        border-radius: 3rem;
        background-color: var(--prussian-blue-overlay);
    }
    ul {
        margin-left: 1.5rem;
    }

    p, li {
        font-size: 1.25rem;
        text-align: justify;
        margin-left: auto;
        margin-right: auto;

        margin-bottom: 1rem;

        > span {
            font-weight: 700;
        }
    }
}

h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
}

section.criteria {
    background-color: var(--prussian-blue-2);

    > div {
        margin: auto;
        padding: auto;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: 
            "title title title"
            "col1 col2 col3";
        gap: 3rem;
        align-items: center;
        color: white;
        justify-content: center;

        h2 {
            grid-area: title;
            text-align: center;
            align-self: center;
        }

        div {
            &.col1 {
                grid-area: col1;
            }

            &.col2 {
                grid-area: col2;
            }

            &.col3 {
                grid-area: col3;
            }
        }

        h3 {
            margin-bottom: 1rem;
            font-size: 1.75rem;
            text-align: center;
        }

        ul {
            padding-left: 1rem;
        }

        li {
            font-size: 1.25rem;
            text-align: justify;
            margin-bottom: 1rem;

            > span {
                font-weight: 700;
            }
        }
    }

}

section.difference {
    background-color: var(--twilight-indigo-overlay);
    background-image: url(images/background2.jpg);
    background-blend-mode: overlay;
    background-position: center;

    color: white;

    > div {
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 40%;
        text-align: center;
        padding: 3rem;
        border-radius: 3rem;
        background-color: var(--twilight-indigo-overlay);

        li {
            font-size: 1.25rem;
            text-align: justify;
            margin-bottom: 1rem;

            > span {
                font-weight: 700;
            }
        }

    }
}

section.team {
    background-color: var(--twilight-indigo);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;

    > h2 {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }
    
    > div {
        display: flex;
        justify-content: center;
        gap: 6rem;

        > div {
            margin-bottom: 3rem;
            
            p, a {
                font-size: 1.25rem;
                margin-bottom: 0.5rem;
            }
                
            > div.business-card {
                display: flex;
                gap: 3rem;
                justify-content: space-around;
                margin-bottom: 3rem;

                .image-container {
                    width: 8rem;
                    height: 8rem;
                    border-radius: 5rem;
                    background-color: white;

                    > img {
                        object-fit: cover;
                        height: 100%;
                        width: 100%;
                    }
                }

                .personal-details {
                    > h3 {
                        font-size: 1.75rem;
                        margin-bottom: 0.75rem;
                    }

                    > h4 {
                        font-size: 1.25rem;
                        margin-bottom: 0.75rem;
                    }

                    > a {
                        text-decoration: none;
                        color: white;
                    }

                }
            }

        }
    }

    
}

footer {
    background-color: var(--footer-background-color);
    position: sticky;
    bottom: 0;
    
    p {
        margin: 1rem;
        text-align: center;
        color: white;
    }
}
 */
