/*
Theme Name: Tango
Author: Jerome Nicco
Description: Custom Theme for Tango by Jerome Nicco
Version: 0.0.1
Tags: custom, tango, restaurant, bar
*/

@font-face {
    font-family: "Courier";
    src: url("fonts/CourierStd.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Courier";
    src: url("fonts/CourierStd-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Courier";
    src: url("fonts/CourierStd-Oblique.woff2") format("woff2");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Courier";
    src: url("fonts/CourierStd-BoldOblique.woff2") format("woff2");
    font-weight: bold;
    font-style: italic;
}

:root {
    --fs-small: clamp(0.6rem, 0.9vw, 2.5rem);
    --fs-medium: clamp(0.85rem, 1.9vw, 5rem);
    --menu-gap: 0.55vw;
    --menu-switch-gap: 0.8vw;
    --main-logo-height: 2.9vw;
    --mono-logo-height: 4.1vw;
    --nav-item-padding: 0.2vw 0.7vw;
    --body-line-height: calc(var(--fs-medium) * 0.9);
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-grey-primary: #C4C4C4;
    --margin-primary: 1.32vw;
    --border-thickness: 0.9px;
    --newsletter-band-height: 31dvh;
    --newsletter-gap: 1.5vw;
    --newsletter-input-min-width: 21.6vw;
    --slider-speed: 1000ms;
    --slider-speed-band: 550ms;
    --link-hover-opacity: 0.7;
    --header-fade-height: 200%;
    --header-fade-solid: 50%;
    --menu-image-max-height: 80dvh;
    --page-fade-out: 500ms;
    --page-fade-in: 900ms;
}

main,
.landing-overlay {
    animation: page-in var(--page-fade-in) ease both;
}

@keyframes page-in {
    from {
        opacity: 0;
    }
}

html,
body {
    font-family: "Courier", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
a,
span,
figcaption {
    font-family: "Courier", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h2,
h3,
h4,
h5,
h6,
p {
    font-size: var(--fs-medium);
    line-height: var(--body-line-height);
    margin-bottom: var(--body-line-height);
    color: var(--color-grey-primary);
    font-weight: normal;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    list-style: none;
}

li {
    font-size: var(--fs-small);
    display: flex;
}

a {
    text-decoration: none;
    color: inherit;
}

body.home figure {
    background-color: var(--color-white);
}

body.page-id-268 figure {
    background-color: var(--color-black);
}

main a {
    text-decoration: initial;
}

main a:hover {
    opacity: var(--link-hover-opacity);
}

.wp-block-column {
    -webkit-user-select: text;
    user-select: text;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--margin-primary);
    box-sizing: border-box;
    z-index: 100;
}

header.secondary {
    z-index: 200;
}

header.primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-fade-height);
    background: linear-gradient(to bottom, var(--color-white) var(--header-fade-solid), transparent);
    opacity: var(--header-fade, 0);
    pointer-events: none;
    z-index: -1;
}

body.home header.secondary,
body.home .landing-overlay {
    display: none;
}

.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    clip: rect(auto, auto, auto, auto);
    pointer-events: none;
}

nav {
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: var(--menu-gap);
}

.nav-wrapper {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--menu-gap);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--menu-gap);
}

.menu.navigation-switch {
    gap: var(--menu-switch-gap);
}

.menu.newsletter-toggle {
    position: fixed;
    left: var(--margin-primary);
    bottom: var(--margin-primary);
}

.newsletter-cover {
    position: fixed;
    inset: 0;
    clip-path: inset(0);
    pointer-events: none;
}

.newsletter-cover .menu {
    pointer-events: auto;
}

.menu-item {
    position: relative;
    height: max-content;
    cursor: pointer;
    text-transform: lowercase;
}

.menu-item a {
    padding: var(--nav-item-padding);
}

header.primary .menu-item {
    color: var(--color-black);
    border: var(--border-thickness) solid var(--color-black);
}

header.secondary .menu-item {
    color: var(--color-white);
    border-color: var(--color-white);
    border: var(--border-thickness) solid var(--color-white);
}

header.primary .menu-item.current-menu-item,
header.secondary .menu-item.current-menu-item,
.menu-item:has(.current) {
    color: var(--color-white);
    background-color: var(--color-grey-primary);
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    height: var(--main-logo-height);
    transition: height 0.2s;
}

.logo-container.switch {
    height: var(--mono-logo-height);
}

.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--margin-primary);
    position: relative;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-stack.switch {
    transform: translateY(calc(var(--main-logo-height) * -1 - var(--margin-primary)));
}

.logo svg {
    width: auto;
    height: 100%;
    padding-bottom: 0.2rem;
}

.logo .main-logo {
    height: var(--main-logo-height);
}

.logo .monogram-logo {
    height: var(--mono-logo-height);
}

header.primary .logo svg {
    fill: var(--color-black);
}

header.secondary .logo svg {
    fill: var(--color-white);
}

.swiper {
    width: 100%;
    height: 100dvh;
    overflow-y: hidden;
}

.swiper-slide {
    height: 100%;
    min-height: 100dvh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--color-white);
}

.swiper-slide .wp-block-columns {
    display: contents;
}

.swiper-slide figure {
    margin: 0;
}

.swiper-slide figure img,
.swiper-slide figure video {
    height: 100%;
    width: 100%;
    min-height: 100dvh;
    object-fit: cover;
}

.swiper .swiper-slide:not(#landing) .wp-block-column {
    padding-inline: 20%;
    display: grid;
    gap: 2rem;
    opacity: var(--text-reveal, 0);
}

.swiper-slide.text-revealed {
    --text-reveal: 1;
}

.page-template-page-menu .main-menu {
    height: 100dvh;
    overflow-y: auto;
}

.page-template-page-menu header {
    display: none;
}

.page-template-page-menu .wp-block-column {
    width: 100%;
}

.section-404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--margin-primary);
    min-height: 100vh;
    text-align: center;
}

.section-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding-inline: calc(var(--margin-primary) * 2);
}

.section-menu .wp-block-columns {
    gap: var(--menu-gap);
    margin: 0;
}

.section-menu img {
    height: 100%;
    max-height: var(--menu-image-max-height);
    width: auto;
    border: var(--border-thickness) solid var(--color-black);
}

.section-menu .close-menu-btn {
    position: fixed;
    z-index: 20;
    font-size: var(--fs-small);
    top: var(--margin-primary);
    right: var(--margin-primary);
    color: var(--color-black);
    border: var(--border-thickness) solid var(--color-black);
    display: flex;
}

.wp-block-buttons {
    text-align: center;
}

.wp-block-buttons a {
    background-color: transparent;
    color: var(--color-grey-primary);
    font-size: clamp(0.7rem, 1.5vw, 4rem);
    padding: var(--nav-item-padding);
    border-radius: 0;
}

.zc-button-container {
    position: fixed;
    z-index: 1000;
    right: var(--margin-primary);
    bottom: var(--margin-primary);
}

.site-footer {
    height: var(--newsletter-band-height);
    min-height: 0;
    background-color: var(--color-grey-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--newsletter-gap);
}

.newsletter-title {
    font-size: var(--fs-small);
    color: var(--color-black);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0;
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--newsletter-gap);
    max-width: 100%;
}

.newsletter-status {
    font-size: var(--fs-small);
    color: var(--color-black);
    line-height: 1;
    margin: 0;
    max-width: 100%;
    text-align: center;
}

.newsletter-status:empty {
    display: none;
}

.newsletter-email {
    font-family: inherit;
    font-size: var(--fs-small);
    color: var(--color-black);
    caret-color: var(--color-black);
    background-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: var(--border-thickness) solid var(--color-black);
    padding: var(--nav-item-padding);
    text-align: center;
    min-width: var(--newsletter-input-min-width);
    max-width: 100%;
    field-sizing: content;
    user-select: text;
    -webkit-user-select: text;
}

.newsletter-email:focus,
.newsletter-submit:focus {
    outline: none;
}

.newsletter-email:invalid,
.newsletter-email:user-invalid {
    box-shadow: none;
}

.newsletter-email::placeholder {
    color: var(--color-black);
    opacity: 1;
}

.newsletter-email:focus::placeholder {
    color: transparent;
}

.newsletter-submit {
    font-family: inherit;
    font-size: var(--fs-small);
    color: var(--color-white);
    background-color: transparent;
    border: var(--border-thickness) solid var(--color-white);
    padding: var(--nav-item-padding);
    cursor: pointer;
}

.newsletter-guard {
    position: absolute;
    left: -5000px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1080px) {
    :root {
        --margin-primary: 30px;
        --fs-small: clamp(0.8rem, 1.72vw, 1.5rem);
        --menu-gap: 1vw;
        --menu-switch-gap: 1.2vw;
        --nav-item-padding: 0.2vw 1vw;
        --main-logo-height: 5vw;
        --mono-logo-height: 8vw;
    }
    html,
    #landing figure img,
    #landing figure video {
        aspect-ratio: 9/16;
    }
    nav {
        flex-direction: column-reverse;
        gap: calc(var(--menu-gap) * 1.2);
        max-width: 70%;
    }
    .swiper .swiper-slide:not(#landing) .wp-block-column {
        padding-inline: 10%;
    }
    .logo-container {
        right: var(--margin-primary);
        left: initial;
        transform: none;
        top: var(--margin-primary);
    }
}

@media (max-width: 750px) {
    :root {
        --margin-primary: 10px;
        --fs-small: clamp(0.6rem, 3vw, 1.5rem);
        --fs-medium: clamp(0.85rem, 4.36vw, 2.2rem);
        --menu-gap: 1.6vw;
        --menu-switch-gap: 2.3vw;
        --main-logo-height: 6.69vw;
        --mono-logo-height: 12.82vw;
        --nav-item-padding: 0.15vw 1.9vw;
        --newsletter-band-height: 38dvh;
        --newsletter-gap: 3.5vw;
        --newsletter-input-min-width: 62vw;
    }
    .newsletter-cover,
    .menu.newsletter-toggle {
        position: static;
    }
    .section-menu {
        align-items: flex-start;
        padding-top: calc(var(--margin-primary)* 6);
    }
    .wp-block-buttons a {
        font-size: clamp(0.75rem, 3.8vw, 1.9rem);
    }
}
