@import "CASPROFN.css";

body {
    background: url("images/bg.jpg") center no-repeat;
    padding: 0;
    margin: 0;
    color: #008445;
    font-family: sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

header {
    container-type: inline-size;
    margin-top: 0;
    padding: 30px;
    background: rgba(255, 255, 255, .55);
    font-weight: bold;

    .left {
        container-type: inline-size;
        font-size: clamp(10px, 3cqw, 26px);
        text-align: center;
        margin-bottom: 30px;

        h1 {
            padding: 0 0 15px 0;
            margin: 0;
            font-size: clamp(16px, 11cqw, 60px);
            font-family: CASPROFN, sans-serif;
            white-space: nowrap;
        }

        ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;

            li:not(:last-child) {
                border-right: 1px solid #008445;
                margin-right: 5px;
                padding-right: 5px;
                white-space: nowrap;
                @media (min-width: 769px) {
                    border: none;
                    margin: 0;
                    white-space:initial;
                }
                @media (min-width: 1281px) {
                    border-right: 2px solid #008445;
                    margin-right: 10px;
                    padding-right: 10px;
                    white-space: nowrap;
                }
            }

            @media (min-width: 769px) {
                display: initial;
            }
            @media (min-width: 1281px) {
                display: flex;
                justify-content: start;
            }
        }

        @media (min-width: 769px) {
            text-align: left;
        }
    }

    .right {
        container-type: inline-size;
        color: #000;
        text-align: center;
        --slogan-size: clamp(10px, 4cqw, 28px);

        img {
            width: 400px;
            display: inline-block;
            margin-bottom: 30px;
        }

        .slogan {
            font-size: var(--slogan-size);
            white-space: nowrap;
            margin-bottom: 5px;
        }

        .desc {
            font-size: calc(var(--slogan-size) * 0.8);
        }
    }

    @media (min-width: 769px) {
        margin-top: 40px;
        display: grid;
        grid-template-columns: auto 400px;
        gap: 30px;
    }

    @media (min-width: 1280px) {
        grid-template-columns: auto 400px;
    }
}

main {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    flex: 1 0 auto;
    gap: 20px;
    margin: 30px 50px;

    img {
        border-radius: 20px;
        border: 5px solid #fff;
        box-shadow: 7px 7px 5px 0 rgba(50, 50, 50, 0.55);
        box-sizing: border-box;
        margin: 0 auto;
    }

    @media (min-width: 640px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 769px) {
        grid-template-columns: repeat(4, 1fr);
    }
}

footer {
    font-size: 8px;
    font-weight: bold;
    background: rgba(255, 255, 255, .85);
    border-left: 35px solid #008445;
    padding: 10px 15px;
    margin-bottom: 50px;

    a {
        color: #008445;

        &:hover {
            text-decoration: none;
        }
    }

    @media (min-width: 768px) {
        font-size: 24px;
    }
}
