@charset "utf-8";


/* === { PAGE } === */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color_secondary);
    color: var(--color_primary);
    display: flex;
    flex-flow: column;
    min-height: 100dvh;
}

main {
    background-color: hsl(from var(--color_primary) h s l / 5%);
    flex-grow: 1;
}


/* --- { BANNER } --- */

.banner {
    align-items: center;
    background-color: var(--color_primary);
    color: var(--color_secondary);
    display: flex;
    flex-flow: column;
    padding: 0.5rem 2rem;
}

.banner .container {
    width: min(100%, 1120px);
}

.banner .container p {
    text-align: center;
}


/* --- { HEADER } --- */

header {
    align-items: center;
    display: flex;
    flex-flow: column;
    padding: 1rem 2rem;
}

header .container {
    width: min(100%, 1120px);
}

header .container nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
}

header .container nav .logo,
header .container nav .logo img {
    flex-shrink: 0;
    height: 2rem;
}


/* --- { FOOTER } --- */

footer {
    align-items: center;
    background-color: var(--color_primary);
    color: var(--color_secondary);
    display: flex;
    flex-flow: column;
    padding: 2rem;
}

footer .container {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    width: min(100%, 1120px);
}

footer .container nav {
    display: flex;
    flex-flow: column;
    gap: 1rem;
}


/* --- { NAVIGATION } --- */

:where(footer, header) .container nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: end;
}

:where(footer, header) .container nav ul li a {
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

:where(footer, header) .container nav ul li a:hover {
    opacity: 75%;
}

header .container nav ul li a {
    font-weight: 500;
}


/* === { SECTION } === */

section {
    align-items: center;
    display: flex;
    flex-flow: column;
    gap: 6rem;
    padding: 4rem 2rem;
}

section + section {
    border-block-start: 1px solid var(--color_secondary);
}

section [data-columns] {
    gap: 4rem;
    width: min(100%, 1120px);
}

section [data-columns] .cell {
    align-items: start;
    display: flex;
    flex-flow: column;
    gap: 1lh;
}

section [data-columns] .cell[data-variant="secondary"] {
    justify-content: center;
}


/* --- { FULL WIDTH } --- */

section [data-columns="0"] {
    display: flex;
    flex-flow: column;
}

section [data-columns="0"] .cell {
    align-items: stretch;
}


/* --- { 1 COLUMN } --- */

section [data-columns="1"] {
    align-items: center;
    display: flex;
    flex-flow: column;
}

section [data-columns="1"] .cell {
    width: min(100%, 520px);
}


/* --- { 2 COLUMN } --- */

section [data-columns="2"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}


/* --- { 4 COLUMN } --- */

section [data-columns="4"] {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
}


/* === { MOBILE } === */

@media (max-width: 840px) {
    :is(footer, header) .container {
        width: min(100%, 520px);
    }

    footer .container {
        flex-flow: column-reverse;
    }

    footer .container nav ul {
        justify-content: unset;
    }

    section [data-columns] {
        align-items: center;
        display: flex;
        flex-flow: column;
    }

    section [data-columns] .cell {
        width: min(100%, 520px);
    }
}

@media (max-width: 560px) {
    :is(footer, header, section) {
        padding-inline: 1rem;
    }

    footer .container p,
    footer .container nav ul {
        flex-flow: column;
        text-align: center;
    }
}
