@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400..800&family=Wix+Madefor+Text:ital,wght@0,400..800;1,400..800&display=swap');

:root {
    --bgSite: #F4F8F9;
    --textLight: #F4F8F9;
    --colorPrimary: #7402FF;
    --textColor: #191028;
    --colorBorder: #CCD2D9;
    --bgDark: #101124;
}

body {
    background-color: var(--bgSite);
    font-size: 16px;
    font-family: "Wix Madefor Text", sans-serif;
    color: var(--textColor);
}

::selection {
    background-color: var(--colorPrimary);
    color: var(--textLight);
}

.wrapper {
    max-width: 1180px;
    padding-inline: 16px;
    margin-inline: auto;

    &.wrapper--small {
        max-width: 560px;
    }

    &.wrapper--medium {
        max-width: 1320px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Wix Madefor Display", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.home {
    h2 {
        font-size: 46px;
        margin: 24px 0;
    }
}

a {
    &:is(:hover, :focus, :active) {
        color: var(--colorPrimary);
    }
}

ul {
    margin: 0;
    padding-left: 20px;
}

.desktop-only {
    @media screen and (max-width: 900px) {
        display: none !important;
    }
}

.button {
    display: inline-block;
    background-color: var(--colorPrimary);
    color: var(--textLight);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    width: fit-content;
    white-space: nowrap;
    border-radius: 50px;
    line-height: 1;
    height: fit-content;
    padding: 12px 16px;
    border: none;
    cursor: pointer;

    &:is(:hover, :focus, :active) {
        color: var(--textLight);
    }

    &.button--large {
        padding: 16px 24px;
    }

    &.button--black {
        background-color: #191028;
        color: var(--textLight);
    }
}

.flex-container {
    display: flex;
    align-self: center;
    gap: 16px;
    width: fit-content;

    &.flex-container--center {
        margin-inline: auto;
    }
}

.header {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding-inline: 20px;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 100;
    transition: all 0.3s ease-in-out;

    .site-logo__logo--scrolled {
        display: none;
    }

    .main-navigation {
        display: flex;
        justify-content: center;
        align-items: center;

        .nav-menu {
            display: flex;
            align-items: center;
            gap: 16px;

            .menu-item {
                a {
                    font-size: 14px;
                    font-weight: 500;
                    color: var(--textLight);

                    &:is(:hover, :focus, :active) {
                        color: var(--colorPrimary);
                    }
                }

                &.current_page_item {
                    a {
                        color: var(--colorPrimary);
                    }
                }
            }
        }

        @media screen and (max-width: 900px) {
            width: fit-content;
            order: 100;

            .menu-toggle {
                display: flex;
                flex-direction: column;
                gap: 4px;
                background: transparent;
                border: none;
                padding: 10px;

                .menu-toggle__bar {
                    width: 20px;
                    height: 3px;
                    background: #fff;
                    border-radius: 10px;

                    .is-scrolled,
                    .header--subpage {
                        div {
                            background: #000;
                        }
                    }
                }
            }

            .nav-menu {
                position: fixed;
                flex-direction: column;
                top: 60px;
                left: 0;
                width: 100%;
                height: 100%;
                background: var(--colorPrimary);
                border-top: 4px solid var(--colorPrimary);
                transform: translateX(100%);
                transition: all 0.15s ease-in-out;

                .menu-item {
                    a {
                        font-size: 20px;
                        text-align: center;
                        padding: 8px 0;
                        color: var(--textLight) !important;
                    }
                }
            }

            &.toggled {
                .nav-menu {
                    transform: translateX(0);
                }
            }
        }
    }

    &.header--subpage {
        position: static;
    }

    &.is-scrolled {
        position: fixed;
    }

    &.is-scrolled,
    &.header--subpage {
        background: #fff;
        box-shadow: 0 15px 30px rgba(0, 0, 0, .1);

        .site-logo__logo--not-scrolled {
            display: none;
        }

        .site-logo__logo--scrolled {
            display: block;
        }

        .main-navigation {
            .menu-item {
                a {
                    color: var(--textColor);

                    &:is(:hover, :active, :focus) {
                        color: var(--colorPrimary) !important;
                    }
                }
            }
        }

        .lang-item {
            a {
                color: var(--textColor) !important;
            }
        }
    }

    .language-switcher {
        margin: 0;
        padding: 0;
        list-style: none;

        .lang-item {
            a {
                text-decoration: none;
                color: var(--textLight);
                font-weight: 500;
            }
        }
    }
}

.site-logo {
    display: flex;
    align-items: center;
}

.hero {
    position: relative;
    text-align: center;
    height: 100vh;
    max-height: 900px;
    padding-top: 10%;

    &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(16, 17, 36, 0.5);
        z-index: 1;
    }

    .hero--startpage {
        position: relative;
        overflow: hidden;
    }

    .hero__content {
        position: relative;
        color: var(--textLight);
        text-align: center;
        max-width: 600px;
        margin-inline: auto;
        z-index: 2;

        h1 {
            font-size: 54px;
            line-height: 1.2;
        }

        p {
            max-width: 500px;
            margin-inline: auto;
        }
    }
}

.hero-screen {
    position: relative;
    width: 100%;
    max-width: 860px;
    border-radius: 20px;
    border: 10px solid #120616;
    margin: -300px auto 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.entry-hero,
.post-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 30vh;
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

.entry-header {
    margin: 80px auto 60px;
}

.first-section {
    margin-top: 120px;

    .first-section__content {
        text-align: center;
        margin-bottom: 48px;
    }
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;

    @media screen and (max-width: 900px) {
        grid-template-columns: repeat(2, 1fr);
    }

    .box-item {
        border-radius: 32px;
        line-height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in-out;

        &:is(:not(.box-item--image)) {
            background-color: var(--colorPrimary);
            color: var(--textLight);
        }

        &:is(:hover, :active, :focus) {
            transform: rotate(-3deg);
        }

        h3 {
            padding: 40px;
            line-height: 1.2;
            margin: 0;
            font-size: 24px;
            font-weight: 500;
        }
    }
}

/* Start vivir starts */
.vivir-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    align-items: start;
}

.vivir-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vivir-col--2 {
    margin-top: 40px;
}

.vivir-col--3 {
    margin-top: 80px;
}

.image-card {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(16, 17, 36, 0.15);
    overflow: hidden;
    line-height: 0;
}

.card-inner img {
    width: 100%;
    height: auto;
    display: block;
}

.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to left, transparent, rgba(100, 40, 255, 0.9));
    text-align: left;
}

.card-label span {
    font-size: 16px;
    color: var(--textLight);
    font-weight: 600;
    text-transform: capitalize;
}

/* Vivir starts */
.vivir-starts-section {
    margin: 140px 0 0;
    text-align: center;
}

/* Responsiv layout */
@media (max-width: 900px) {
    .vivir-columns-grid {
        grid-template-columns: 1fr;
    }
    .vivir-col--2, .vivir-col--3 {
        margin-top: 0;
    }
}

/* Reduce workload */
.reduce-workload {
    position: relative;
    padding: 200px 0 120px;
    margin-top: -100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--textLight);
    text-align: center;
    z-index: -1;
}

.reduce-workload .wrapper {
    position: relative;
    z-index: 2;
}

.reduce-workload__content h2 {
    margin-bottom: 20px;
}

.reduce-workload__text {
    max-width: 600px;
    margin: 0 auto 60px;
    opacity: 0.9;
}

.reduce-values {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.reduce-item__circle {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);

    & + & {
        margin-left: -16px;
    }
}

.reduce-item__number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.reduce-item__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .reduce-workload__content h2 { font-size: 40px; }
    .reduce-item__circle { width: 160px; height: 160px; }
    .reduce-item__number { font-size: 36px; }
}

.js-reveal-circle {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.is-in-view .js-reveal-circle {
    opacity: 1;
    transform: translateY(0);
}

.is-in-view .js-reveal-circle:nth-child(1) { transition-delay: 0.1s; }
.is-in-view .js-reveal-circle:nth-child(2) { transition-delay: 0.3s; }
.is-in-view .js-reveal-circle:nth-child(3) { transition-delay: 0.5s; }

.reduce-workload:not(.is-in-view) .js-reveal-circle {
    transition: none;
}

.image-text-blocks {
    background-image: url('../assets/vivir-section-bg.png');
    background-position: bottom center;
    background-repeat: no-repeat;

    .wrapper {
        display: flex;
        flex-direction: column;
        gap: 50px;
        padding: 140px 16px;
    }

    .image-text-row {
        display: flex;
        align-items: center;
        gap: 70px;

        &.row--reverse {
            flex-direction: row-reverse;

            @media screen and (max-width: 900px) {
                flex-direction: column;
            }
        }

        @media screen and (max-width: 900px) {
            flex-direction: column;
        }

        .image-text-row__image {
            flex: 1;
        }

        .image-text-row__content {
            flex: 1;
        }
    }
}

.quote-section {
    color: #fff;
    background-position: center;
    background-attachment: fixed;

    .quote-container {
        max-width: 500px;
        text-align: center;
        margin-inline: auto;
        padding: 160px 0;
    }
}

.contact-section {
    background-color: var(--colorPrimary);
    color: var(--textLight);
    padding: 160px 0;

    ::selection {
        background-color: var(--textLight);
        color: var(--colorPrimary);
    }

    .contact-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 120px;

        @media screen and (max-width: 900px) {
            grid-template-columns: 1fr;
        }

        .contact-grid__left {
        }

        .contact-grid__left {

        }
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 20px;

        .contact-detail-item {
            display: flex;
            align-items: center;
            gap: 16px;

            a {
                color: var(--textLight);
                text-decoration: none;
            }

            .contact-detail-item__icon {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 48px;
                height: 48px;
                background-color: var(--textLight);
                border-radius: 16px;

                img {
                    max-width: 22px;
                    max-height: 22px;
                }
            }

            .contact-detail-item__info {
                display: flex;
                flex-direction: column;
                gap: 0;

                label {
                    font-size: 11px;
                    font-weight: 700;
                    text-transform: uppercase;
                }

                p {
                    margin: 0;
                }
            }
        }
    }
}

/* Form */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 2px;

    label {
        font-weight: 600;
    }

    input {
        width: 100%;
        padding: 8px;
        border: none;
        border-radius: 8px;
    }

    .wpcf7-not-valid-tip {
        color: var(--textColor);
    }
}

.site-footer {
    background-color: #0A060D;
    color: var(--textLight);
    padding: 120px 0;
    text-align: center;
}

.js-fade-up {
    opacity: 0;
    transform: translate(-50%, 80px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.js-fade-up.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.is-accent-text {
    color: #5d3df3 !important;
    font-size: 13px;
}

.has-text-align-center {
    text-align: center;
}

.has-text-align-left {
    text-align: left;
}

.has-text-align-right {
    text-align: right;
}

.wp-block-columns {
    gap: 40px; 
}