/* ubuntu-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 400;
    src: url("../webfonts/ubuntu-v21-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ubuntu-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 700;
    src: url("../webfonts/ubuntu-v21-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* base */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Ubuntu", sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-align: center;

    @media (max-width: 768px) {
        font-size: 16px;
    }
}

a {
    color: var(--clr-main);
}

.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}

:root {
    --clr-main: #3b6137;
}

img {
    max-width: 100%;
    object-fit: cover;
    display: block;
}

h1,
h2,
h3 {
    color: var(--clr-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

p {
    margin-inline: auto;
    max-width: 750px;
}

/* buttons */
.btn {
    appearance: none;
    border: 1px solid var(--clr-main);
    background-color: var(--clr-main);
    color: #fff;
    font-weight: 700;
    padding-block: 1.125rem;
    padding-inline: calc(2rem + 2vw);
    cursor: pointer;
    display: inline-flex;
    justify-content: space-between;
    text-align: center;
    margin-inline: auto;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    width: fit-content;
    transition: all 0.3s ease-in-out;
}

/* sections */
section.hero {
    border-top: 24px solid var(--clr-main);
    position: relative;

    .background img {
        width: 100%;
        max-height: 550px;
    }

    .logo {
        display: block;
        position: absolute;
        z-index: 1;
        top: 17%;
        left: 50%;
        transform: translateX(-50%);

        img {
            object-fit: contain;
            width: 228px;
            height: auto;
        }
    }

    @media (max-width: 768px) {
        .background img {
            height: 200px;
        }

        .logo img {
            width: 150px;
        }
    }
}

section.content {
    padding-block: clamp(2rem, 6vw, 5.5rem);
}

footer {
    margin-top: auto;

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.875rem;

        ul {
            list-style: none;
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-block: 2rem;
        }
    }
}

.CookieDeclaration > p {
    max-width: 100%;
}
