@font-face {
    font-family: "Carmen Sans";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("./fonts/Founders_Grotesk/FoundersGrotesk-Light.otf") format("opentype");
}

@font-face {
    font-family: "Carmen Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./fonts/Founders_Grotesk/FoundersGrotesk-Regular.otf") format("opentype");
}

@font-face {
    font-family: "Carmen Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("./fonts/Founders_Grotesk/FoundersGrotesk-Medium.otf") format("opentype");
}

@font-face {
    font-family: "Carmen Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("./fonts/Founders_Grotesk/FoundersGrotesk-Semibold.otf") format("opentype");
}

@font-face {
    font-family: "Carmen Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./fonts/Founders_Grotesk/FoundersGrotesk-Bold.otf") format("opentype");
}

:root,
.editor-styles-wrapper {
    --villa-font-sans: "Carmen Sans", "Helvetica Neue", Arial, sans-serif;
    --font-carmen-sans: "Carmen Sans", "Helvetica Neue", Arial, sans-serif;
    --villa-black: #050505;
    --villa-white: #ffffff;
    --villa-bg-gray: #292b2b;
    --villa-custom-gray: #363933;
    --villa-text-display: clamp(3.5rem, 9vw, 8.25rem);
    --villa-text-hero: clamp(3rem, 7.2vw, 6.5rem);
    --villa-text-section: clamp(2.35rem, 5.2vw, 4.9rem);
    --villa-text-title: clamp(1.95rem, 3.6vw, 3.35rem);
    --villa-text-lead: clamp(1.35rem, 2.35vw, 2.25rem);
    --villa-text-body-lg: clamp(1.08rem, 1.35vw, 1.35rem);
    --villa-text-h1: clamp(3rem, 5.5vw, 5.5rem);
    --villa-text-h2: clamp(2.5rem, 4.5vw, 4.5rem);
    --villa-text-h3: clamp(2rem, 3.5vw, 3.5rem);
    --villa-text-h4: clamp(1.625rem, 2.5vw, 2.5rem);
    --villa-text-h5: clamp(1.375rem, 1.8vw, 1.75rem);
    --villa-text-h6: clamp(1.125rem, 1.35vw, 1.375rem);
}

body,
.editor-styles-wrapper {
    font-family: var(--villa-font-sans);
}

.type-kicker,
.is-style-villa-kicker {
    font-family: var(--villa-font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.type-hero {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-hero);
    font-weight: 300;
    line-height: 0.95;
}

.type-display,
.has-display-font-size {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-display);
    font-weight: 300;
    line-height: 0.9;
}

.type-section,
.is-style-villa-section-title,
.has-section-font-size {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-section);
    font-weight: 300;
    line-height: 0.98;
}

.type-title,
.has-title-font-size {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-title);
    font-weight: 300;
    line-height: 1.05;
}

.type-lead,
.has-lead-font-size {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-lead);
    font-weight: 300;
    line-height: 1.25;
}

.type-body-lg,
.has-body-lg-font-size {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-body-lg);
    font-weight: 300;
    line-height: 1.55;
}

.wp-block-heading.is-style-villa-hero-title {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-hero);
    font-weight: 300;
    line-height: 0.95;
}

.wp-block-heading.is-style-villa-title {
    font-family: var(--villa-font-sans);
    font-size: var(--villa-text-title);
    font-weight: 300;
    line-height: 1.05;
}

.wp-block-heading.is-style-villa-h-1 { font-size: var(--villa-text-h1); }
.wp-block-heading.is-style-villa-h-2 { font-size: var(--villa-text-h2); }
.wp-block-heading.is-style-villa-h-3 { font-size: var(--villa-text-h3); }
.wp-block-heading.is-style-villa-h-4 { font-size: var(--villa-text-h4); }
.wp-block-heading.is-style-villa-h-5 { font-size: var(--villa-text-h5); }
.wp-block-heading.is-style-villa-h-6 { font-size: var(--villa-text-h6); }

.wp-block-heading[class*="is-style-villa-h-"] {
    font-family: var(--villa-font-sans);
    font-weight: 300;
    line-height: 1.05;
}

@media (max-width: 782px) {
    body:not(.home) .type-hero,
    body:not(.home) .wp-block-heading.is-style-villa-hero-title {
        font-size: clamp(2.35rem, 11vw, 3.75rem);
        line-height: 0.96;
    }

    body:not(.home) .type-display {
        font-size: clamp(2.65rem, 12vw, 4rem);
        line-height: 0.92;
    }
}

.wp-block-paragraph.is-style-villa-lead {
    font-size: var(--villa-text-lead);
    font-weight: 300;
    line-height: 1.25;
}

.wp-block-paragraph.is-style-villa-body-lg {
    font-size: var(--villa-text-body-lg);
    font-weight: 300;
    line-height: 1.55;
}

.wp-block-image.is-style-villa-cover-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.wp-block-group.is-style-villa-section-shell {
    margin-inline: auto;
    max-width: 1280px;
    padding-inline: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
}

.btn,
.wp-block-button .wp-block-button__link {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 0 !important;
    display: inline-flex;
    font-family: var(--villa-font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    justify-content: center;
    line-height: 1;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    transition: all 300ms ease;
}

.btn-primary,
.wp-block-button.is-style-villa-primary .wp-block-button__link {
    background: var(--villa-white);
    border-color: var(--villa-white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    color: var(--villa-black);
}

.btn-primary:hover,
.wp-block-button.is-style-villa-primary .wp-block-button__link:hover {
    background: transparent;
    color: var(--villa-white);
    transform: translateY(-2px);
}

.btn-dark,
.wp-block-button.is-style-villa-dark .wp-block-button__link,
.wp-block-button.is-style-villa-ghost .wp-block-button__link {
    background: var(--villa-black);
    border-color: var(--villa-black);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    color: var(--villa-white);
}

.btn-dark:hover,
.btn-ghost:hover,
.wp-block-button.is-style-villa-dark .wp-block-button__link:hover,
.wp-block-button.is-style-villa-ghost .wp-block-button__link:hover {
    background: var(--villa-white);
    color: var(--villa-black);
    transform: translateY(-2px);
}

.btn-outline-light,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link,
.wp-block-button.is-style-villa-outline-light .wp-block-button__link {
    background: var(--villa-white);
    border-color: var(--villa-white);
    color: var(--villa-black);
}

.btn-outline-light:hover,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
.wp-block-button.is-style-villa-outline-light .wp-block-button__link:hover {
    background: transparent;
    color: var(--villa-white);
    transform: translateY(-2px);
}

.btn-outline-dark,
.wp-block-button.is-style-villa-outline-dark .wp-block-button__link {
    background: var(--villa-black);
    border-color: var(--villa-black);
    color: var(--villa-white);
}

.btn-outline-dark:hover,
.wp-block-button.is-style-villa-outline-dark .wp-block-button__link:hover {
    background: var(--villa-white);
    color: var(--villa-black);
    transform: translateY(-2px);
}

.btn-icon-light,
.wp-block-button.is-style-villa-icon-light .wp-block-button__link {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--villa-white);
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    width: 2.75rem;
}

.btn-icon-light:hover,
.wp-block-button.is-style-villa-icon-light .wp-block-button__link:hover {
    background: var(--villa-white);
    color: var(--villa-black);
}

.align-last-start {
    text-align-last: start;
}

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

.align-last-end {
    text-align-last: end;
}

.align-last-justify {
    text-align-last: justify;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .site-language-toggle {
    display: none !important;
}

.menu-root {
    position: relative;
}

.menu-toggle-label {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    transition: color 240ms ease;
}

.menu-overlay {
    background: #f4f1ea;
    color: #080808;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: fixed;
    transition: opacity 360ms ease, visibility 0ms linear 360ms;
    visibility: hidden;
    z-index: 90;
}

.menu-overlay::before {
    background: rgba(0, 0, 0, 0.035);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 360ms ease, visibility 0ms linear 0ms;
    visibility: visible;
}

.menu-overlay-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 7.5rem 1.25rem 6.25rem;
    position: relative;
}

.menu-links-column,
.menu-plan-column {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 0;
}

.menu-links-column {
    align-items: flex-start;
    max-height: calc(100vh - 13.75rem);
    max-height: calc(100dvh - 13.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.menu-primary-list {
    display: grid;
    gap: clamp(1.05rem, 2.25vw, 2.15rem);
    list-style: none;
    margin: 0;
    padding: 0;
    width: min(100%, 44rem);
}

.menu-primary-item {
    opacity: 0;
    transform: translateX(-1rem);
    transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0ms;
    display:flex;
}

.menu-overlay.is-open .menu-primary-item {
    opacity: 1;
    transform: translateX(0);
    transition-delay: var(--menu-item-delay);
}

.menu-primary-link {
    color: #080808;
    display: inline-flex;
    font-family: var(--font-carmen-sans);
    font-size: clamp(1.8rem, 4.65vw, 3.95rem);
    font-weight: 300;
    line-height: 1.14;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color 240ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    width: fit-content;
}

.menu-primary-link:hover,
.menu-primary-link:focus-visible {
    color: #5c5549;
    transform: translateX(0.45em);
}

.menu-plan-column {
    display: none;
}

.menu-plan-frame {
    aspect-ratio: 1920 / 1280.6;
    filter: contrast(0.9);
    opacity: 0;
    position: relative;
    transform: translateY(1rem) scale(0.985);
    transition: opacity 760ms ease 180ms, transform 760ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
    width: min(86%, 46rem);
}

.menu-overlay.is-open .menu-plan-frame {
    opacity: 0.78;
    transform: translateY(0) scale(1);
}

.menu-overlay-footer {
    align-items: flex-end;
    bottom: 1.25rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 1.25rem;
    opacity: 0;
    position: absolute;
    right: 1.25rem;
    transform: translateY(0.75rem);
    transition: opacity 520ms ease 360ms, transform 520ms cubic-bezier(0.22, 1, 0.36, 1) 360ms;
    z-index: 2;
}

.menu-overlay.is-open .menu-overlay-footer {
    opacity: 1;
    transform: translateY(0);
}

.menu-language-block {
    align-items: center;
    background: rgba(244, 241, 234, 0.62);
    border: 1px solid rgba(8, 8, 8, 0.22);
    display: flex;
    gap: 0.75rem;
    padding: 0.45rem;
}

.menu-email-link {
    align-items: center;
    background: #080808;
    color: #fff;
    display: inline-flex;
    font-family: var(--font-carmen-sans);
    font-size: clamp(0.9rem, 1.1vw, 1.08rem);
    font-weight: 400;
    justify-content: center;
    line-height: 1;
    min-height: 3.5rem;
    padding: 0 1.1rem;
    text-decoration: none;
    transition: background 220ms ease, color 220ms ease;
}

.menu-email-link:hover,
.menu-email-link:focus-visible {
    background: #2b2925;
}

@media (min-width: 768px) {
    .menu-overlay-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        padding: 0;
    }

    .menu-links-column,
    .menu-plan-column {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 7rem clamp(2rem, 5vw, 6rem) 5rem;
    }

    .menu-links-column {
        align-items: flex-start;
        border-right: 1px solid rgba(8, 8, 8, 0.12);
        justify-content: flex-start;
        max-height: calc(100vh - 1px);
        max-height: calc(100dvh - 1px);
        padding-bottom: clamp(8.75rem, 15vh, 11rem);
        padding-top: clamp(8.75rem, 15vh, 11rem);
    }

    .menu-primary-list {
        gap: clamp(0.75rem, 2vh, 1.8rem);
    }

    .menu-primary-link {
        font-size: clamp(2.55rem, 6vh, 3.95rem);
        line-height: 1.14;
    }

    .menu-plan-column {
        display: flex;
    }

    .menu-overlay-footer {
        bottom: 2rem;
        left: clamp(2rem, 5vw, 6rem);
        right: clamp(2rem, 5vw, 6rem);
    }
}

@media (max-width: 767px) {
    .menu-links-column {
        align-items: center;
        justify-content: flex-start;
        max-height: calc(100vh - 13.5rem);
        max-height: calc(100dvh - 13.5rem);
        padding-bottom: 1.5rem;
        padding-top: 0.5rem;
        text-align: center;
    }

    .menu-primary-list {
        gap: clamp(1.25rem, 5vw, 2.25rem);
        justify-items: center;
    }

    .menu-primary-link {
        font-size: clamp(1.45rem, 7.4vw, 2.55rem);
        justify-content: center;
        line-height: 1.18;
        text-align: center;
    }

    .menu-primary-link:hover,
    .menu-primary-link:focus-visible {
        transform: translateX(0);
    }

    .menu-plan-column {
        align-items: flex-end;
        display: flex;
        min-height: 30vh;
        opacity: 0.45;
    }

    .menu-plan-frame {
        width: min(105%, 36rem);
    }

    .menu-overlay-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .menu-language-block,
    .menu-email-link {
        width: 100%;
    }

    .menu-language-block {
        justify-content: space-between;
    }
}
