body {
    margin: 0 0 8px;
    background-color: var(--color-page-background);
    color: var(--color-page-text);
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.page-grid {
    display: grid;
    gap: 1rem;
    grid-template-areas:
        "area-header area-header"
        "maintop maintop"
        "main main"
        "mainbottom mainbottom"
        "footer footer";

    &.has-sidebar-right {
        grid-template-areas:
            "area-header area-header"
            "maintop maintop"
            "main area-right"
            "mainbottom mainbottom"
            "footer footer";

        .area-sidebar {
            grid-area: area-right;
        }
    }

    &.has-sidebar-left {
        grid-template-areas:
            "area-header area-header"
            "maintop maintop"
            "area-left main"
            "mainbottom mainbottom"
            "footer footer";

        .area-sidebar {
            grid-area: area-left;
        }
    }

    &.has-sidebar-right.has-sidebar-left {
        grid-template-areas:
            "area-header area-header"
            "area-left maintop area-right"
            "main main main"
            "mainbottom mainbottom mainbottom"
            "footer footer footer";
    }
}

.area-header {
    background-color: var(--color-header-background);
    color: var(--color-header-text);
    display: grid;
    grid-area: area-header;
    grid-template-areas:
        "topbar"
        "header";
    padding: 1.5rem 1.5rem 0 1.5rem;

    a {
        color: var(--color-header-text);

        &:hover {
            color: var(--color-secondary);
        }
    }
}

#topbar {
    grid-area: topbar;
    display: flex;
    justify-content: flex-end;
    height: 100%;
    line-height: 1.2rem;
}

#header {
    grid-area: header;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0 1rem 1rem 1rem;
}

#top-a {
    grid-area: top-a;
}

#top-b {
    grid-area: top-b;
}

#top-a,
#top-b,
#bottom-a,
#bottom-b {
    width: 100vw;
    padding: 1rem;
}

#bottom-a {
    grid-area: bottom-a;
}

#bottom-b {
    grid-area: bottom-b;
}

.area-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 3rem;
}

.area-content {
    grid-area: main;
    display: grid;
    align-content: flex-start;
    gap: 1rem;

    grid-template-areas:
        "banner"
        "top-a"
        "top-b"
        "component"
        "bottom-a"
        "bottom-b";

    &.area-content__sidebar-left {
        grid-template-columns: 20vw auto;
        grid-template-areas:
            "sidebar banner"
            "sidebar top-a"
            "sidebar top-b"
            "sidebar component"
            "sidebar bottom-a"
            "sidebar bottom-b"
    }

    &.area-content__sidebar-right {
        grid-template-columns: auto 20vw;
        grid-template-areas:
            "banner sidebar"
            "top-a sidebar"
            "top-b sidebar"
            "component sidebar"
            "bottom-a sidebar"
            "bottom-b sidebar"
    }
}

.area-component {
    grid-area: component;
    max-width: 90vw;
}

.mainbottom {
    margin: 2rem 0;
}

.area-banner {
    grid-area: banner;
}

.area-maintop {
    grid-area: maintop;
    display: flex;
    justify-content: space-between;
}

.area-footer {
    grid-area: footer;
    background-color: var(--color-footer-background);
    color: var(--color-footer-text);
    padding: 1rem;

    a {
        color: var(--color-secondary);
    }
}

.navbar-brand {
    flex: 1 1 auto;
    display: flex;
    gap: 2rem;
}

.navbar-menu {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.brand-logo {
    display: block;
    max-width: 30rem;

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

.area-header .mod-menu {
    ul {
        list-style: none;

        li {
            padding: .5rem 1rem;
            font-size: 1.2rem;

            a:not(:hover) {
                text-decoration: none;
            }
        }
    }

    .onoffcanvas-toggler::after,
    .onoffcanvas-toggler::before {
        border-color: var(--color-text);
    }
}

.horizontal-menu {
    display: none;
    list-style: none;
    gap: 1rem;
    padding-left: 0;
}

.horizontal-menu.horizontal-menu__footer {
    display: flex;
}

.onoffcanvas-header {
    padding: 1rem;
}

.menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    gap: .1rem;
    line-height: .5rem;
    position: relative;

    span {
        position: absolute;
        top: 0;
        left: 0.15rem;
        margin-top: -.5rem;
    }
}

fieldset {
    border: none;
    padding: 0;
}

label {
    color: var(--color-label);
}

input {
    height: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    width: 100%;
    padding: .5rem;
}

.hero-background {
    /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));

    /* Set a specific height */
    height: 50vh;

    /* Position and center the image to scale nicely on all screens */
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    border-radius: var(--border-radius);
}

.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    border-radius: var(--border-radius);
}

@media screen and (min-width: 768px) {
    .mod-menu {
        .horizontal-menu {
            display: flex;
        }

        .onoffcanvas-toggler,
        .onoffcanvas {
            display: none;
        }
    }
}

.hp-section {
    display: flex;
    align-items: flex-start;

    &.hp-section__image {
        p {
            flex: 1 1 70%;
        }

        div {
            flex: 1 1 30%;
        }
    }

}

.section__testimonies {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: calc(100vw - 20%);
}

.testimony {
    flex: 1 0 277px;
    width: 300px;
    .user {
        display: flex;
        gap: 1rem;

        /*! width: 100%; */
            .user-detail {
            flex-direction: column;
        }
}
}

.testimony-date {
    color: var(--color-accent);
}

.card {
    .card-image {
        img {
            max-width: 100%;
            height: auto;
        }
    }
}