:root {
    --primary-accent: rgb(53, 13, 50);
    --light-gray: #919191;
}

html {
    padding: 0;
    margin: 0;
}

body {
    font-weight: 400;
    font-style: normal;
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    line-height: 2.1rem;
}

header {
    display: flex;
    padding: 1vw 3vw;

    .header-title {
        flex-grow: 0;
        flex-shrink: 0;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        font-size: 1.5rem;
        color: var(--primary-accent);

        a {
            text-decoration: none;
            color: inherit;
        }
    }

    nav {
        display: flex;
        flex-grow: 2;
        justify-content: flex-end;

        a {
            color: #000;
            display: inline-block;
            text-decoration: none;
            font-size: 1.2rem;
            margin: 0 0 0 20px;
            padding: 0.1rem 0;
            /* cursor: pointer; */

            &.active {
                border-bottom: 1px solid;
            }
        }

        img {
            display: none
        }

        #close-btn {
            display: none;
        }
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--primary-accent);
    color: #fff;
    height: 100%;
    max-height: 100dvh;
    width: 300px;
    display: none;

    nav {
        display: flex;
        flex-direction: column;

        a {
            color: #FFF;
            display: inline;
            width: fit-content;
        }

        #menu-btn {
            display: none;
        }

        #close-btn {
            display: inline;
            width: 2rem;
            height: 2rem;
            margin: 0.8rem;
            align-self: flex-end;
        }
    }
}

section {
    text-align: center;
    padding: 8rem 1rem;
    line-height: 2.5rem;

    &.justified {
        text-align: justify
    }

    &.highlight {
        font-family: "Libre Baskerville", serif;
        font-size: 2rem;
        font-style: italic;
        color: gray;
    }
}

section.accented {
    background-color: var(--primary-accent);
    color: #FFF;
    font-size: 1rem;

    h2 {
        font-family: "Libre Baskerville", serif;
        font-size: 3rem;
        font-weight: 200;
        line-height: 1.2;
    }
}

.consult-link {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    border-radius: 40px;
    width: 500px;
    padding: 1.2rem 0;
    box-sizing: border-box;
    border: 1px solid #fff;

    @media (max-width: 768px) {
        width: 100%;
        /* margin: 0 1rem; */
    }

    &:hover {
        color: var(--primary-accent);
        background-color: #fff;
    }
}

section.get-in-touch {
    h2 {
        font-family: "Libre Baskerville", serif;
        font-size: 3rem;
        font-weight: 200;
        line-height: 1.2;
        color: var(--primary-accent)
    }

    p {
        font-style: italic;
        font-size: 1rem;
    }

    .primary-btn {
        display: inline-block;
        margin-top: 2rem;
    }
}

.primary-btn {
    background-color: var(--primary-accent);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 1rem 8rem;
    border-radius: 5rem;
}

.section-background-img {
    object-fit: cover;
    width: 100%;
    height: 50vh;
}

footer {
    color: var(--primary-accent);
    text-align: center;
    font-size: 1rem;
    padding: 8rem;

    .title {
        font-family: "Libre Baskerville", serif;
        text-transform: uppercase;
        font-size: 2rem;
    }
}

@media (max-width: 800px) {
    header nav {
        a {
            display: none;
        }

        img {
            display: inline;
        }
    }
}

@media (max-width: 500px) {
    .sidebar {
        width: 100%;

        nav {
            align-items: center;
            gap: 2rem;

            a {
                font-size: 2rem
            }
        }
    }
}

/*  Services page */
#intro-banner {
    background-image: url('../images/services-banner.avif');
    background-position: center;
    background-size: cover;
    height: 100dvh;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    margin-bottom: 6rem;
    /* text-shadow: 8px 7px 9px #000; */
    background-color: #00000047;
    background-blend-mode: darken;

    h1 {
        font-family: "Libre Baskerville", serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        font-size: 5rem;
    }

    p {
        font-family: "Libre Baskerville", serif;
        font-size: 2rem;
        font-style: italic;
        max-width: 1200px;
        line-height: 4rem;
    }
}

#services-page {
    display: flex;
    margin: 0 4rem;
    justify-content: space-between;

    @media (max-width: 768px) {
        flex-direction: column;
        margin: 0 1rem;
    }

    article {
        flex-grow: 2;
        max-width: 890px;

        section {
            text-align: left;
            font-family: "Almarai", sans-serif;
            font-style: normal;
            font-size: 1rem;
            line-height: 1.5rem;
            color: var(--light-gray);

            h2 {
                font-family: "Libre Baskerville", serif;
                font-optical-sizing: auto;
                font-size: 2.3rem;
                font-weight: 400;
                font-style: normal;
                color: var(--primary-accent);
                line-height: 2.1 rem;
            }

            ul li::marker {
                color: var(--primary-accent);
            }
        }
    }

    aside {
        text-align: left;
        max-width: 592px;

        .service-type {
            margin-bottom: 4rem;

            h3 {
                font-family: "Libre Baskerville", serif;
                font-optical-sizing: auto;
                font-style: normal;
                font-size: 1.6rem;
                color: var(--primary-accent);
                font-weight: 400;
                letter-spacing: -0.02rem;
            }

            .description {
                font-family: "Almarai", sans-serif;
                font-style: normal;
                font-size: 0.9rem;
                line-height: 1.5rem;
                color: var(--light-gray);
            }
        }
    }
}

/*  Gallery page    */
#portfolio {
    margin: 0 2rem;

    .item {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;

        img {
            flex: 1 1 300px;
            min-width: 0;
        }

        @media (max-width: 768px) {
            flex-direction: column;
            /* margin: 0 1rem; */
        }
    }
}