
:root {
    --color-primary: #373531;
    --color-primary-2: #2c2b26;
    --color-background: #f3f3f3;
}

* {
    margin: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Open Sans", sans-serif;
    background: var(--color-background);
    color: var(--color-primary-2);
    @media (min-width: 1921px) {
        font-size: 0.9vw;
    }
    scroll-behavior: smooth;
    scroll-padding-top: 7.375rem;
    @media (min-width: 640px) {
        scroll-padding-top: 7.75rem;
    }
}

h1 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 120%;
    color: var(--color-primary);
    @media (min-width: 1024px) {
        font-size: 3.25rem;
    }
    @media (min-width: 1440px) {
        font-size: 4.75rem;
    }
}

h2 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 120%;
    color: var(--color-primary);
    @media (min-width: 1440px) {
        font-size: 2.75rem;
    }
}

h3 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 120%;
    @media (min-width: 1440px) {
        font-size: 2rem;
    }
}

b, strong {
    color: #A18974;
}

.visually-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    text-align: center;
    text-decoration: none;
    background: var(--color-primary);
    color: white;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 500;
    line-height: 1.25rem;

    .icon-phone, .icon-mail {
        transition: all 0.2s ease-in-out;
        width: 1.25rem;
        height: 1.25rem;
    }

    &:hover {
        background: var(--color-primary-2);

        .icon-phone {
            transform: rotate(10deg);
        }

        .icon-mail {
            transform: translateY(-0.125rem);
        }
    }
}

.text-content, .faq-answer {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;

    ul {
        margin: 0.5rem 0;
        padding-left: 1.25rem;
    }

    @media (min-width: 1440px) {
        font-size: 1.25rem;
    }
}

.section {
    padding: 2rem 1rem;
    @media (min-width: 640px) {
        padding: 2rem 1.5rem;
    }
    @media (min-width: 992px) {
        padding: 2.5rem 4rem;
    }
    @media (min-width: 1440px) {
        padding: 4rem 8rem;
    }
    @media (min-width: 1600px) {
        padding: 4rem 15rem;
    }
}

header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
}

header, footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    width: 100%;
    background: var(--color-primary);
    @media (min-width: 640px) {
        padding-inline: 1.5rem;
    }
    @media (min-width: 992px) {
        padding-inline: 4rem;
    }
    @media (min-width: 1440px) {
        padding-inline: 8rem;
    }
    @media (min-width: 1600px) {
        padding-inline: 15rem;
    }

    .logo {
        width: 8rem;
        @media (min-width: 640px) {
            width: 9.25rem;
        }
    }

    .links {
        display: flex;
        gap: 1rem;
    }

    .link {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        color: white;
        text-decoration: none;

        .icon-mail, .icon-phone {
            width: 1.5rem;
            height: 1.5rem;
        }
    }

    .link:hover {
        span {
            text-decoration: underline;
        }
    }

    .link:first-of-type {
        display: none;
        @media (min-width: 640px) {
            display: flex;
        }
    }
}

.hero {
    background: url("../assets/images/hero.jpg");
    margin-top: 4.375rem;
    @media (min-width: 640px) {
        margin-top: 4.75rem;
    }

    .section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: calc(100vh - 10.375rem);
        @media (min-width: 640px) {
            min-height: calc(100vh - 10.75rem);
        }
    }

    h1, p {
        color: white;
        text-align: center;
        margin-bottom: 2rem;
        text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.75);
    }

    p {
        max-width: 48rem;
        @media (min-width: 1024px) {
            font-size: 1.75rem;
        }
    }

    .button {
        background: white;
        color: var(--color-primary);
        padding: 0.75rem 1.25rem;
        line-height: 100%;

        .icon-phone {
            width: 24px;
            height: 24px;
        }

        @media (min-width: 1440px) {
            padding: 1rem 1.75rem;
            font-size: 1.75rem;
            .icon-phone {
                width: 32px;
                height: 32px;
            }
        }
    }
}

.realizations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    @media (min-width: 992px) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
    @media (min-width: 1440px) {
        grid-template-columns: 31.25rem 1fr;
        gap: 10rem;
    }

    img {
        display: none;
        border-radius: 1rem;
        height: 100%;
        width: 100%;
        aspect-ratio: 1/1;
        @media (min-width: 992px) {
            display: block;
        }
    }

    .content {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 0.5rem;

        @media (min-width: 640px) {
            justify-content: center;
        }

        .button {
            margin-top: 1rem;
        }
    }
}

.about {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--color-primary);
    color: white;

    .about-heading {
        display: flex;
        justify-content: center;
        width: 100%;
        @media (min-width: 640px) {
            justify-content: end;
        }

        h2 {
            color: white;
            @media (min-width: 1440px) {
                font-size: 3.25rem;
            }
        }
    }

    .cards {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        max-width: 40rem;
        margin: 1.5rem auto 0;
        @media (min-width: 640px) {
            gap: 1.5rem;
        }
        @media (min-width: 1440px) {
            gap: 2.5rem;
        }

        @media (min-width: 1440px) {
            max-width: 100%;
            margin: 2rem 0 0;
            flex-direction: row;
            align-items: start;
            justify-content: center;
        }

        .card {
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 18.75rem;

            @media (min-width: 640px) {
                flex-direction: row;
                max-width: unset;
                gap: 1rem;
            }

            @media (min-width: 1440px) {
                flex-direction: column;
                max-width: 18.75rem;
            }

            img {
                min-width: 18.75rem;
                height: 18.75rem;
                width: 18.75rem;
                border-radius: 1rem;
                object-fit: cover;
            }

            .content {
                display: flex;
                flex-direction: column;
                gap: 0.5rem;
                padding: 0.75rem 0;
            }
        }

        .card:nth-child(odd) {
            @media (min-width: 640px) {
                flex-direction: row-reverse;
            }
            @media (min-width: 1440px) {
                flex-direction: column;
            }
        }
    }
}

.gallery {
    padding-top: 0;

    .swiper-slide {
        overflow: hidden;

        img, a {
            width: 100%;
            height: 20rem;
            border-radius: 1rem;
            overflow: hidden;
        }

        img {
            object-fit: cover;
            transition: scale 0.2s ease-in-out;
        }

        a {
            display: block;
        }
    }

    .swiper-slide:hover {
        img {
            scale: 110%;
        }
    }

    .swiper-button {
        min-width: 2.5rem;
        min-height: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
        background: white;
        border-radius: 100%;

        img {
            width: 1rem;
            height: 1rem;
        }
    }

    .swiper-button-next {
        img {
            rotate: 180deg;
        }
    }

    .swiper-button:after {
        content: "";
    }
}

.contact {
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 100rem;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem;
        gap: 1rem;
        @media (min-width: 640px) {
            flex-direction: row;
        }
    }
}

.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-items {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    gap: 1.5rem;
    width: 100%;
    max-width: 50rem;
    @media (min-width: 640px) {
        width: 80%;
    }
}

.faq-subtitle {
    margin-top: 1rem;
}

.faq-item {
    padding: 1rem;
    border-radius: 1.5rem;
    background: #A18974;
    cursor: pointer;

    .faq-question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;

        img {
            transition: all 0.3s ease-in-out;
            rotate: 180deg;
        }
    }

    h3 {
        font-weight: 500;
        font-size: 1rem;
        color: white;
        @media (min-width: 1440px) {
            font-size: 1.25rem;
        }
    }

    .faq-answer {
        color: white;
        transition: max-height 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
        font-size: 0.75rem !important;

        @media (min-width: 1440px) {
            font-size: 1rem !important;
        }

        & > div {
            border-top: 1px solid white;
            margin-top: 1rem;
            padding-top: 1rem;
        }

        a {
            color: white;

            strong {
                text-decoration: underline;
            }

            &:hover {
                strong {
                    color: var(--color-primary);
                }
            }
        }

        b, strong {
            color: white;
        }
    }
}

.faq-cta {
    display: flex;
    flex-direction: column;
    align-items: end;
    width: 100%;
    margin-top: 3rem;
    gap: 1rem;
    text-align: right;

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        @media (min-width: 520px) {
            flex-direction: row;
        }
    }
}
