@import "assets/fonts/fonts.css";

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    --control-btns-color: #747a59;
    --secondary-color: #828864;
    --main-color: #F5F2EA;
    --black-color: #414141;
    --third-color: var(--black-color);
    --safe-area-left-right: 6%;
    --section-bottom-padding: 15svh;

    --small-border-radius: 0.25rem;
    --medium-border-radius: 0.5rem;

    --slow-animation-duration: 0.7s;
    --default-animation-duration: 0.2s;

    --grey-text: rgb(0, 0, 0, 0.5);

    --section-scroll-margin-top: 12svh;
}

body {
    background-color: var(--main-color);
    color: var(--black-color);
}


/* ANIMATIONS */
.scale-animation {
    scale: 1.1 !important;
    transition: scale var(--slow-animation-duration) ease-out;
}

.opacity-slide-in-animation {
    opacity: 1 !important;
    translate: 0 0 !important;

    transition-property: opacity, translate;
    transition-duration: var(--default-animation-duration);
    transition-timing-function: ease-in-out;
    transition-delay: 0.1s;
}


/* ONLINE BOOKING*/
.online-booking-btn {
    position: fixed;
    right: var(--safe-area-left-right);
    top: 2svh;
    width: calc(100% - 2 * var(--safe-area-left-right));
    padding: 1rem 0;
    z-index: 2;
    border: none;
    background-color: var(--control-btns-color);
    border-radius: var(--small-border-radius);
    color: #fff;
    font-family: "Montserrat";
    font-weight: 700;
    font-size: 1rem;

    transition-behavior: allow-descret;
    transition-property: all;
    transition-duration: var(--default-animation-duration);
    transition-timing-function: ease-in-out;

    &[class~="shortcut"] {
        /* left: unset; */
        width: 5rem;
        font-size: 0.75rem;
    }
}


/* PRELOADER */
.preloader {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}

.welcome-text {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.loader-bar {
    height: 2px;
    width: 1vw;
    background-color: var(--black-color);
    margin-bottom: 1rem;
    border-radius: 1px;

    transition: width 1s ease-in-out;
}

.loader-bar-value {
    font-size: 1.25rem;
}


/* NAV */
.menu-btn-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem var(--safe-area-left-right) 2svh;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.menu-btn {
    width: 100%;
    padding: 1rem 0;
    border: none;
    background-color: var(--control-btns-color);
    border-radius: var(--small-border-radius);
    color: #fff;
    font-family: "Montserrat";
    font-weight: 700;
    font-size: 1rem;
}

.main-nav {
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    border: none;
    border-radius: var(--small-border-radius);
    width: 90vw;
    transition: translate var(--default-animation-duration), opacity var(--default-animation-duration);
    background-color: var(--control-btns-color);
    
    &::backdrop {
        background-color: rgb(0, 0, 0, 0.5);
    }
    
    &:popover-open {
        @starting-style {
            translate: -50% -40%;
            opacity: 0;
        }
    }
}

.main-nav-list {
    list-style-type: none;
    padding: 0.5rem 0;
}

.main-nav-list-item {
    &:not(:last-child) {
        border-bottom: 1px solid rgb(0, 0, 0, 0.2);
    }
}

.main-nav-list-item-btn {
    display: block;
    width: 100%;
    background-color: transparent;
    outline: none;
    border: none;

    &:hover {
        cursor: pointer;
    }
}

.main-nav-list-item-btn-link {
    display: block;
    color: #fff;
    text-decoration: none;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 1.325rem;
    padding: 0.75rem 1.5rem;
    text-align: center;
}


/* MAIN */
.main {
    display: flex;
    flex-direction: column;
}


/* BRAND SECTION */
.brand-intro {
    height: 100lvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brand-intro-title {
    font-size: 8svh;
    font-family: "PT serif";
    margin-bottom: 0.75rem;
    font-kerning: normal;
    letter-spacing: 0.75svh;
    opacity: 0;

    transition: opacity var(--slow-animation-duration) ease-in-out;
}

.brand-intro-desc {
    font-size: 2.5svh;
    letter-spacing: 1svh;
    font-family: "PT serif";
    margin-bottom: 3rem;
    opacity: 0;
    
    transition: opacity var(--slow-animation-duration) ease-in-out;
}

.brand-intro-slogan {
    font-size: 4svh;
    font-family: "GreatVibes";
    text-align: center;
    color: var(--black-color);
    opacity: 0;
    translate: 0 50%;

    transition-duration: var(--slow-animation-duration);
    transition-timing-function: ease-in-out;
    transition-property: opacity, translate;
}


/* GENERAL */
.section-title {
    font-family: "Montserrat";
    font-size: max(4svh, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.section-paragraph {
    font-family: "Jost";
    font-size: max(2svh, 1.125rem);
    margin-bottom: 2rem;
}

.slider-btns {
    display: none;
}


/* ABOUT SECTION */
.about {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
    scroll-margin-top: var(--section-scroll-margin-top);
}

.about-content {
    border-radius: var(--medium-border-radius);
    overflow: hidden;
}

.about-content-img {
    width: 100%;
    height: 60svh;
    object-position: center bottom;
    object-fit: cover;
}


/* VALUES */
.values {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
}

.values-content-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.values-content-list-item {
    overflow: hidden;
    border-radius: var(--medium-border-radius);
    background-color: var(--secondary-color);
    color: #fff;
    opacity: 0;
    translate: 0 20%;
}

.values-content-list-item-title {
    padding: 0.75rem 1rem;
    background-color: var(--third-color);
    font-family: "Montserrat";
}

.values-content-list-item-paragraph {
    padding: 1.5rem 1rem;
    font-family: "Jost";
}

.values-content-list-item-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.values-content-list-item-title-icon {
    width: 2rem;
    height: 2rem;
}


/* PARKING SECTION */
.parking {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
}

.parking-content {
    overflow: hidden;
    border-radius: var(--medium-border-radius);
}

.parking-content-img {
    width: 100%;
}


/* LOYALTIES SECTION*/
.loyalties {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
}

.loyalties-discounts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style-type: none;
}

.loyalties-discounts-item {
    overflow: hidden;
    border-radius: var(--medium-border-radius);
    background-color: var(--secondary-color);
    color: #fff;
    opacity: 0;
    translate: 0 20%;

    transition-property: opacity, translate;
    transition-duration: var(--slow-animation-duration);
    transition-timing-function: ease-in-out;
}

.loyalties-discounts-item-title {
    padding: 0.75rem 1rem;
    background-color: var(--third-color);
    font-family: "Montserrat";
}

.loyalties-discounts-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 1rem;
    font-family: "Jost";
}

.loyalties-discounts-item-content-size {
    font-size: 5rem;
    font-weight: 700;
}

.loyalties-discounts-item-content-size-percentage {
    font-size: 1.5rem;
    font-weight: 700;
}


/* TEAM SECTION*/
.team {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
    scroll-margin-top: var(--section-scroll-margin-top);
}

.team-content-employees-list {
    width: 100%;
    display: flex;
    gap: 1rem;
    list-style-type: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.team-content-employees-list-item {
    --right-left-padding: 0.875rem;

    background-color: var(--secondary-color);
    border-radius: var(--medium-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 80%;
}

.team-content-employees-list-item-photo {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 0.5rem
}

.team-content-employees-list-item-title {
    padding: 0 var(--right-left-padding);
    font-family: "Jost";
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem
}

.team-content-employees-list-item-desc {
    padding: 0 var(--right-left-padding);
    font-family: "Jost";
    font-size: 1;
    color: #fff;
    margin-bottom: 1.5rem;
}


/* FEEDBACK SECTION*/
.feedback {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
    scroll-margin-top: var(--section-scroll-margin-top);
}

.feedback-content-list {
    width: 100%;
    display: flex;
    gap: 1rem;
    list-style-type: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.feedback-content-list-item {
    --right-left-padding: 0.875rem;

    background-color: var(--secondary-color);
    border-radius: var(--medium-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 80%;
    font-family: "Jost";
}

.feedback-content-list-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.825rem;
    background-color: var(--third-color);
}

.feedback-content-list-item-header-photo {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 50%;
}

.feedback-content-list-item-header-title {
    font-size: 1.125rem;
    color: #fff;
}

.feedback-content-list-item-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 2rem 0;
}

.feedback-content-list-item-paragraph {
    padding: 0.825rem;
    color: #fff;
    margin-bottom: 2rem;
}


/* SERVICES SECTION */
.services {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
    scroll-margin-top: var(--section-scroll-margin-top);
}

.services-category {
    font-family: "Montserrat";
    text-transform: uppercase;
    font-size: max(2svh, 1.5rem);
    margin-bottom: 1rem;

    &:hover {
        cursor: pointer;
    }
}

.services-category-list {
    margin-bottom: 2rem;
}

.services-category-title {
    display: inline;
}

.services-category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    list-style-type: none;
}

.services-category-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.services-category-list-item-img {
    border-radius: var(--small-border-radius);
    width: 100%;
}

.services-category-list-item-title {
    font-size: 1.125rem;
    font-family: "Jost";
}

.services-category-list-item-desc {
    font-family: "Jost";
    color: var(--grey-text);
}

.services-category-list-item-price {
    font-family: "Jost";
    text-decoration: underline;
}


/* CONTACTS SECTION */
.contacts {
    padding: 0 var(--safe-area-left-right) var(--section-bottom-padding);
    display: flex;
    flex-direction: column;
    scroll-margin-top: var(--section-scroll-margin-top);
}

.google-maps {
    width: 100%;
    outline: none;
    border: none;
    border-radius: var(--medium-border-radius);
    margin-bottom: 2rem;
}

.contacts-list {
    list-style-type: none;
    margin-bottom: 0.5rem;
}

.contacts-list-item {
    width: 100%;
    height: 3rem;

    &:not(:last-child) {
        margin-bottom: 0.5rem;
    }
}

.contacts-list-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black-color);
    text-decoration: none;
    color: #fff;
    border-radius: var(--medium-border-radius);
    width: 100%;
    height: 100%;
    font-family: "Jost";

    &:hover {
        background-color: var(--third-color);
    }
}

.contacts-footnote {
    font-family: "Jost";
    color: rgb(0, 0, 0, 0.6);
}


/* ASIDE */
.online-booking-aside {
    border-top-left-radius: var(--medium-border-radius);
    border-top-right-radius: var(--medium-border-radius);

    &::backdrop {
        background-color: rgb(0, 0, 0, 0.5);
    }
    
    &:popover-open {
        top: 20vh;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        overflow: hidden;
        border: none;
    }
}

.online-booking-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: fixed;
    top: calc(20vh - 4rem);
    right: 1rem;
    width: 3rem;
    height: 3rem;
    padding: 1rem;
    outline: none;
    background-color: #fff;
    border: none;
    border-radius: 50%;

    &:hover {
        cursor: pointer;
    }
}

.close-btn-icon {
    height: 100%;
    width: 100%;
}


/* FOOTER */
.footer {
    background-color: var(--black-color);
    padding: 3rem var(--safe-area-left-right) var(--section-bottom-padding);
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
}

.footer-brand-name {
    color: #fff;
    margin-bottom: 2rem;
    font-family: "PT serif";
    font-size: 2.5rem;
    font-weight: 700;
}

.social-media {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-media-item-icon {
    width: 2rem;
    height: 2rem;
}

.footer-copyright {
    color: rgb(255, 255, 255, 0.5);
    font-size: 0.875rem;
}


/* DESKTOPS */
@media (min-aspect-ratio: 8/5) {
    /* ONLINE BOOKING*/
    .online-booking-btn {
        left: unset;
        right: var(--safe-area-left-right);
        top: 1rem;
        padding: 1.25rem 2rem;
        width: min-content;
        translate: 0 -200%;

        &:hover {
            cursor: pointer;
        }
    }


    /* NAV */
    .menu-btn-bg {
        display: none;
    }

    .main-nav {
        top: 0;
        left: 50%;
        translate: -50% 1rem;
        width: max-content;
        
        &::backdrop {
            background-color: transparent;
        }
        
        &:popover-open {
            @starting-style {
                translate: -50% -3rem;
                opacity: 0;
            }
        }
    }

    .main-nav-list {
        display: flex;
        padding: 0.5rem 3rem;
        gap: 1rem;
    }

    .main-nav-list-item {
        &:not(:last-child) {
            border-bottom: unset;
        }
    }

    .main-nav-list-item-btn-link {
        font-weight: 500;
        font-size: 1rem;
    }


    /* BRAND SECTION */
    .brand-intro {
        height: 100svh;
    }

    .brand-intro-title {
        font-size: 10svh;
        letter-spacing: 1svh;
    }

    .brand-intro-slogan {
        font-size: max(4svh, 2rem);
    }


    /* GENERAL */
    .section-title {
        margin-bottom: 3.5rem;
    }

    .slider-btns {
        display: block;
    }

    .slider-btn {
        background-color: var(--black-color);
        width: 3rem;
        height: 3rem;
        border: none;
        padding: 0.5rem;
        border-radius: 50%;
        opacity: 0;
        translate: 0 100%;

        &:hover {
            cursor: pointer;
            background-color: var(--third-color);
        }
    }

    .slider-btn-icon {
        width: 100%;
        height: 100%;

        &[class~="left"] {
            translate: -2px 0;
            rotate: 180deg;
        }

        &[class~="right"] {
            translate: 2px 0;
        }
    }


    /* ABOUT SECTION */
    .about {
        flex-direction: row;
        justify-content: space-between;
    }

    .about-intro {
        width: 30%;
    }

    .about-content {
        width: 56%;
    }

    
    /* VALUES SECTION */
    .values-content-list {
        flex-direction: row;
        gap: 1rem;
    }

    .values-content-list-item {
        flex: 1 1 0;
    }


    /* PARKING SECTION */
    .parking {
        flex-direction: row;
        justify-content: space-between;
    }

    .parking-intro {
        width: 30%;
    }

    .parking-content {
        width: 56%;
    }


    /* LOYALTIES SECTION */
    .loyalties-discounts-item {
        width: max(25%, 400px);
    }


    /* TEAM SECTION */
    .team {
        flex-direction: row;
        justify-content: space-between;
    }

    .team-intro {
        width: 30%;
    }

    .team-content {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2rem;
        width: 56%;
    }

    .team-content-employees-list {
        scroll-snap-type: x mandatory;
    }

    .team-content-employees-list-item {
        width: max(15vw, 300px);
        scroll-snap-align: center
    }


    /* FEEDBACK SECTION */
    .feedback {
        flex-direction: row;
        justify-content: space-between;
    }

    .feedback-intro {
        width: 30%;
    }

    .feedback-content {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2rem;
        width: 56%;
    }

    .feedback-content-list {
        scroll-snap-type: x mandatory;
    }

    .feedback-content-list-item {
        width: max(15vw, 300px);
        scroll-snap-align: center
    }


    /* CONTACTS SECTION */
    .contacts-list-item {
        width: 400px;
    }


    /* SERVICES SECTION */


    /* FOOTER */
    .footer {
        padding: 3rem var(--safe-area-left-right);
    }

    .footer-brand-name {
        font-size: 4rem;
    }

    .footer-copyright {
        color: rgb(255, 255, 255, 0.5);
        font-size: 0.875rem;
    }


    /* ASIDE */
    .online-booking-aside {
        border-top-right-radius: 0;
        border-bottom-left-radius: var(--medium-border-radius);

        &:popover-open {
            top: 0;
            left: unset;
            width: 550px;
        }
    }

    .close-btn {
        top: 1rem;
        right: calc(550px + 1rem);
    }
}


/* TABLETS */
@media (min-aspect-ratio: 5/8) and (max-aspect-ratio: 8/5) {
    /* TEAM SECTION */
    .team-content-employees-list-item {
        width: 60%;
    }

    /* FEEDBACK SECTION */
    .feedback-content-list-item {
        width: 50%;
    }
}