/**
    * Main stylesheet for the web application.
    * This file includes font definitions and global styles.
**/
@import url('colors.css');
@import url('fonts.css');
@import url('typography.css');
@import url('buttons.css');
@import url('burger-menu.css');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 600px;
    text-align: center;
    background-image: url("../images/cabinet.webp");
    background-position: 50% 60%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    @media (max-width: 800px) {
        min-height: 500px;
        background-position-y: center;
        background-attachment: unset;
    }

    .filter {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }

    .menu,
    .presentation {
        display: flex;
        z-index: 1;
    }

    .menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        font-size: 1.3em;
        gap: 4rem;
        margin-top: 30px;
        padding: 0;
        list-style: none;

        li {
            white-space: nowrap;
        }

        @media (max-width: 1200px) {
            display: none;
        }
    }

    .presentation {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
        
        a.button {
            margin-top: 2vh;
        }
    }
}

section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 3rem;

    @media (max-width: 800px) {
        padding: 1rem;
        gap: 1rem;
    }

    .inline-box {
        position: relative;
        display: flex;
        gap: 4vw;

        @media (max-width: 1200px) {
            flex-direction: column;
        }

        img {
            width: 100%;
            height: auto;
            object-fit: cover;
            border-radius: 70px;

            &.brightness {
                filter: brightness(1.6);
            }
        }

        .images {
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 100%;
            gap: 2rem;

            @media (max-width: 1200px) {
                display: none;
            }
        }

        .images-mobile {
            display: none;
            width: 100%;
            flex-direction: row;
            justify-content: center;
            gap: 1rem;
            margin: auto;

            img {
                max-width: 45%;
            }

            @media (max-width: 1200px) {
                display: flex;
            }
        }

        .logo {
            max-width: 500px;
            align-self: center;
            aspect-ratio: 1;
            border-radius: 50%;
            object-fit: cover;

            @media (max-width: 1200px)  {
                width: 150px;
            }
        }
    }

    &:nth-child(even) {
        background-color: var(--green);

        .content {
            background-color: white;
        }
    }

    &:nth-child(odd) {
        background-color: white;

        .content {
            padding: 0;
        }
    }

    .content,
    .inline-box {
        margin: auto;
        max-width: 1200px;

        @media (max-width: 1200px) {
            max-width: unset;
            width: 100%;
        }
    }

    .content {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        padding: 3rem 4rem;

        @media (max-width: 800px){
            padding: 1rem;
        }


        a.button {
            margin-top: 2vh;
        }
    }
}

#contact {
    .inline-box {
        align-items: center;
        gap: 3em;
    }
}

.info {
    display: flex;
    flex-direction: column;
    gap: 5px;

    &:not(:last-child) {
        margin-bottom: 2rem;
    }

    p {
        font-size: 1em;
        margin: 0;
    }
}

.questions {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    p {
        margin: 0.5em 0 0;
    }

    details {
        transition: all 400ms ease-in-out;

        &[open] p {
            max-height: 500px;
        }
        &[close] p {
            max-height: 0;
        }
    }
}

.details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    @media (max-width: 800px) {
        gap: unset;
    }
}

hr {
    width: 100%;
    border: none;
    background-color: black;
    height: 1px;
    margin: 3rem 0;
}

footer {
    text-align: center;
    padding: 2rem;
}


#prices .content small {
    margin-top: 2em;
    text-align: center;
}

.prices {
    display: flex;
    flex-direction: row;
    gap: 20px;

    @media (max-width: 800px) {
        flex-wrap: wrap;
    }

    > * {
        width: 100%;
        flex: 33%;
    }

    .price {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5em;
        justify-content: center;
        background-color: var(--green);
        color: white;
        font-weight: bold;
        padding: 20px;
        border-radius: 10px;
        text-align: center;

        span:last-child {
            font-size: 1.3em;
        }
    }
}

.maps-container {
    width: 600px;

    @media (max-width: 800px) {
        width: 100%;
    }
}
