:root {
    --primary-color: #39606f;
    --primary-color-opacity: rgb(57 96 111 / 20%);
    --secondary-color: #e1dfdd;
    --neutral-color: #dbdbdb;
    --border-radius: 20px;
}

* {
    font-family: "Inter", sans-serif !important;
}

body {
    scroll-behavior: smooth;
}

main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: space-between;
}

a,
ul,
h1,
h2,
p {
    margin: unset;
}

h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 1.7rem;
}

h3 {
    font-size: calc(1rem);
    color: gray;
    margin-bottom: 16px;
}

::selection {
    background-color: var(--primary-color);
    color: var(--neutral-color);
}

.btn-default {
    border-radius: 20px;
    border: 3px solid var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 700;
    min-width: 150px;

    &:is(:hover, :active, :focus) {
        border: 3px solid var(--primary-color);
        background-color: var(--primary-color);
    }
}

.btn-primary {
    border-radius: 20px;
    border: 3px solid var(--primary-color);
    color: var(--secondary-color);
    background-color: var(--primary-color);
    font-weight: 700;

    &:is(:hover, :active, :focus) {
        border: 3px solid var(--primary-color);
        background-color: var(--primary-color-opacity);
    }
}

.nav-pills {
    width: 25%;
    flex-shrink: 0;

    .nav-link {
        color: var(--primary-color);
        text-align: start;

        &.active {
            background-color: var(--primary-color-opacity);
            color: var(--primary-color);
            border-radius: 0;
        }
    }
}

@media screen and (min-width: 993px) {
    .nav-pills-tabs {
        .nav-pills {
            .nav-link.active {
                border-right: 4px solid var(--primary-color);
            }
        }
    }
}


@media screen and (max-width: 992px) {
    .nav-pills-tabs {
        flex-direction: column;

        .nav-pills {
            width: 100%;
            overflow-x: scroll;
            flex-direction: row !important;
            flex-shrink: 1;
            flex-wrap: nowrap;

            .nav-link {
                display: flex;
                flex-shrink: 0;

                &.active {
                    border-bottom: 4px solid var(--primary-color);
                }
            }
        }
    }
}

/*#region Header*/
header {
    background-color: var(--primary-color);

    .contact {
        background-color: var(--secondary-color);
        display: flex;
        align-items: center;
        justify-content: center;

        .container {
            display: flex;
            align-items: center;

            a, p {
                color: var(--primary-color);
                padding-top: 4px;
                padding-bottom: 4px;
                font-size: 14px;
                margin-bottom: 0;
            }
        }


    }

    .container-navigation {
        .logo {
            max-width: 180px;
            width: 100%;
        }

        .navbar-toggler {
            outline: unset !important;
            box-shadow: unset !important;
            border-color: var(--secondary-color);

            .navbar-toggler-icon {
                background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
            }
        }

        nav {
            .nav-link {
                color: var(--secondary-color);
                font-weight: 600;
                margin-top: 4px;
                padding-right: 16px !important;
                padding-left: 16px !important;
            }
        }
    }
}

@media screen and (min-width: 992px) {
    header .container-navigation nav {
        .nav-link {
            &::after {
                content: '';
                display: block;
                height: 3px;
                width: 65%;
                margin: 6px auto 0;
                transition-timing-function: linear;
                transition-duration: 0.3s;
            }
        }

        .nav-link:is(:hover)::after {
            background-color: var(--secondary-color);
        }
    }
}

@media screen and (max-width: 768px) {
    header .contact .container {
        flex-direction: column;

        span {
            display: none;
        }
    }
}

/*#endregion Header*/

/*#region Footer*/
#footer {
    border-top: 1px solid var(--neutral-color);
    width: 100%;
    background-color: var(--primary-color);
    padding: 16px 0;
    margin-top: 32px;

    .content {
        padding-bottom: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .opening-hours {
            color: var(--secondary-color);
            max-width: 224px;
            font-size: 12px;
        }

        .links {
            display: flex;
            gap: 96px;

            .list {
                display: flex;
                flex-direction: column;
                gap: 8px;
                text-align: end;
                list-style: none;
                padding: unset;

                .link {
                    color: var(--secondary-color);
                    text-decoration: unset;
                }
            }
        }

        .logo {
            max-width: 200px;
            width: 100%;
        }
    }

    .credits {
        text-align: end;
        border-top: 1px solid var(--neutral-color);
        padding-top: 16px;
        color: var(--secondary-color);

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

        p {
            font-size: 12px;
            margin-bottom: 0;
        }
    }
}

@media (max-width: 767px) {
    #footer {
        .content {
            flex-direction: column-reverse;
            gap: 32px;

            .info {
                display: flex;
                align-items: center;
                gap: 16px;
            }

            .links {
                .list {
                    margin-top: 16px;
                    text-align: center;
                }
            }
        }

        .credits {
            text-align: center;
        }
    }
}

@media (max-width: 545px) {
    #footer .content {
        .links {
            flex-direction: column;
            gap: 8px;
        }
    }
}

/*#endregion Footer*/

/*#region Float Button*/
#floatButton {
    width: 98px;
    height: 98px;
    position: fixed;
    bottom: 0px;
    z-index: 5;
    padding: 8px 16px 16px 8px;
    right: 0px;

    img {
        width: 100%;
    }
}

/*#endregion Float Button*/

/*#region Hero Section*/
#heroSection {
    width: 100%;
    background-image: url(../img/banner.jpg);
    background-size: cover;
    background-position: bottom;

    .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        color: var(--secondary-color);
        height: 100%;
        gap: 12px;

        p {
            max-width: 500px;
            margin-bottom: 8px;
        }

        .actions {
            display: flex;
            gap: 16px;
        }
    }
}

@media screen and (min-width: 500px) {
    #heroSection {
        height: calc(100vh - 146px);
    }
}

@media screen and (max-width: 500px) {
    #heroSection {
        height: 425px;
    }
}


@media screen and (max-width: 410px) {
    #heroSection .container .actions {
        flex-direction: column;
        width: 100%;

        .btn-default, .btn-primary {
            width: 100%;
        }
    }
}
/*#endregion Hero Section*/

/*#region Services*/
#services .accordion-button {
    &:focus {
        box-shadow: unset !important;
    }
        
    &:not(.collapsed) {
        background-color: var(--primary-color-opacity);
        color: var(--primary-color);
        font-weight: 600;
        box-shadow: unset !important;
    }
}

/*#endregion Services*/

/*#region Consultations*/
#consultations {
    .cards-container {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media screen and (min-width: 769px) {
    #consultations {
        .card {
            width: calc(25% - 12px);
        }
    }
}


@media screen and (max-width: 768px) and (min-width: 426px) {
    #consultations {
        .card {
            width: calc(50% - 12px);
        }
    }
}

@media screen and (max-width: 425px) {
    #consultations {
        .card {
            width: 100%;
        }
    }
}

/*#endregion Consultations*/

/*#region Profile*/
#profile {
    .profile-content {
        display: flex;
        gap: 16px;
    }

    img {
        max-height: 280px; 
        border-radius: 0.375rem;
    }
}

@media screen and (max-width: 993px) {
    #profile .profile-content {
        flex-direction: column-reverse;
        align-items: center;
    }
}
/*#endregion Profile*/