/* assets/css/global.css */
:root {
    /* Theme Colors */
    --text: #1d1d1b;
    --width-menu: 300px;
    --background: #f7efe4;

    /* Typography */
    --font-primary: "Cirka", sans-serif;
    --font-heading: "Cirka", serif;

    /* Font Sizes */
    --font-small: 500 14px / normal "Cirka", sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
}

p {
    font-family: var(--font-primary);
    font-weight: 500;
}

@font-face {
    font-family: "Cirka";
    src:
        url("/wp-content/themes/le-saint/assets/fonts/cirka.woff2")
            format("woff2"),
        url("/wp-content/themes/le-saint/assets/fonts/cirka.woff")
            format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cirka";
    src:
        url("/wp-content/themes/le-saint/assets/fonts/cirka-medium.woff2")
            format("woff2"),
        url("/wp-content/themes/le-saint/assets/fonts/cirka-medium.woff")
            format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--text);
    text-decoration: none;
}

nav ul {
    max-width: var(--width-menu);
    margin: 0 auto;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    display: flex;
    justify-content: space-around;
}

div.burger-menu {
    display: none;
}

#mobile-menu {
    overflow-x: hidden;
    transition: all 0.25s ease-in-out;
    max-width: 3rem;
    opacity: 0;
}

#mailchimp {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    letter-spacing: 2px;
    background-color: #e2ff00;
    text-align: center;
    padding: 0.75rem 0;
    text-transform: uppercase;
    font-size: 0.8rem;
    opacity: 0;
    display: none;
}

@media (max-width: 768px) {
    #mailchimp {
        display: flex;
        flex-direction: column;
        padding: 1rem 0 1rem 0;
    }
    #mailchimp span {
        display: block;
    }
}

#mailchimp input {
    outline: 0;
    -webkit-appearance: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-transform: none;
    background-color: transparent;
    border-bottom: 0.5px solid #000;
    text-align: center;
    color: #000;
    padding-left: 2rem;
    padding-right: 2rem;
    min-width: 300px;
    transform: translateY(-4px);
}

#mailchimp-close {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 1rem;
    top: 8px;
    cursor: pointer;
}

#mailchimp input::placeholder {
    color: #000;
    font-size: 0.5rem;
    letter-spacing: 10px;
}

#mailchimp button,
#mailchimp button:disabled {
    background-color: transparent;
    border: none;
    font-style: italic;
    text-transform: uppercase;
    font-family: Cirka, sans-serif;
    cursor: pointer;
}

@media(max-width: 768px) {
    #mailchimp input {
        min-width: 250px;
    }
    #mailchimp button {
        -webkit-appearance: none;
        color: #000;
        font-style: italic;
        text-transform: uppercase;
        font-size: 13px;
        letter-spacing: 2px;
    }
}

body.dark #mobile-menu {
    max-width: 1000px;
    overflow-x: hidden;
    opacity: 1;
}

body.dark .caption {
    color: #fff;
}

body.dark #content-about .content-wrapper {

}

body.dark #content-contact .content-wrapper {

}

body.dark #content-about .content-wrapper p {
    line-height: 1.35; // from 26 to 22
}

body.dark .content-wrapper p,
body.dark .content-wrapper a {
    color: #fff;
}

@media (max-width: 768px) {
    div.burger-menu {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: block;
    }
}

/* Special transition class for closing the menu */
body.menu-closing #mobile-menu {
    max-width: 3rem;
    opacity: 0;
}

/* Keep the dark background during closing transition */
body.menu-closing {
    background-color: #000;
    background-image: url("/wp-content/themes/le-saint/assets/images/riso.png");
}

body.menu-closing #le,
body.menu-closing #saint {
    filter: invert(1);
}

nav ul li a {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font: var(--font-small);
}

@media (max-width: 768px) {
    nav {
        display: none;
    }
}

/* Layout */
.container {
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.mt-1 {
    margin-top: var(--spacing-sm);
}
.mt-2 {
    margin-top: var(--spacing-md);
}
.mt-3 {
    margin-top: var(--spacing-lg);
}

.page-transition {
    opacity: 0; /* Start invisible for GSAP to handle */
}

.site-main {
    position: relative;
}

.container {
    width: 100%;
}

.primary-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.primary-menu a {
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.current-menu-item {
    position: relative;
}

/* active menu */
.current-menu-item:before {
    display: block;
    content: " ";
    position: absolute;
    border-top: 4px solid #1d1d1b;
    top: 12px;
    left: 0;
    right: 0;
}

.primary-menu a:hover {
    opacity: 0.8;
}

body.dark {
    background-color: #000;
    background-image: url("/wp-content/themes/le-saint/assets/images/riso.png");
}

body.dark #le,
body.dark #saint {
    filter: invert(1);
}

@media (max-width: 768px) {
    body.page-id-8 {
        overflow-y: hidden;
    }
    body.dark.page-id-8 {
        overflow-y: auto;
    }
}

body.page-id-11 main {
    min-height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.dark #content-slideshow {
    opacity: 0 !important;
}

body.page-id-31 main {
    min-height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#content-slideshow,
#content-about,
#content-contact {
    transition: all 0.5s ease-in-out;
}

#content-about,
#content-contact {
    width: 0;
    display: flex;
    align-items: center;
}

#content-about p,
#content-contact p {
    display: block;
    width: 227px;
}

.content-wrapper {
    width: 280px;
    padding-left: 2rem;
    padding-right: 2rem;
}

body.dark .content-wrapper {
    padding-left: 2rem;
}

.content-wrapper-slideshow {
    width: 600px;
    padding-left: 2rem;
    padding-right: 2rem;
}

#mobile-header {
    display: none;
}

@media (max-width: 768px) {
    #mobile-menu {
        display: flex;
        align-items: center;
        padding-left: 3rem;
        transform: translateX(-1rem);
    }
    li.menu-item {
        float: left;
        clear: left;
    }
    #mobile-menu .current-menu-item:before {
        border-top: 2px solid #e2ff00;
        top: 13px;
    }
    #mobile-header {
        display: flex;
        justify-content: center;
        max-width: 40vw;
        margin-left: auto;
        margin-right: auto;
        margin-top: 6rem;
        transform: translateX(-3%);
    }
    body.dark #mobile-header {
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }
    #mobile-header #le {
        width: 54px;
    }
    #mobile-header #saint {
        width: 54px;
    }
    #mobile-header ul.primary-menu {
        display: block;
        min-width: 50vw;
        flex: 1 0;
        list-style: none;
    }
    #mobile-header .primary-menu a {
        color: #fff;
        text-transform: uppercase;
        font-size: 1.125rem;
        letter-spacing: 0.25em;
        font-weight: 600;
    }
}

#content-slideshow {
    display: flex;
    align-items: center;
}

article p + p {
    margin-top: 2rem;
}

body.home main {
    min-height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.entry-content {
    display: flex;
    max-height: calc(100vh - 80px);
    transform: translateX(0);
    will-change: transform;
}

article#post-8 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    max-height: calc(100vh - 80px);
}

article#post-8 #le {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: min(8vw, 140px);
    padding-right: 2rem;
}

article#post-8 #saint {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: min(8vw, 140px);
    padding-left: 1rem;
}

@media (max-width: 768px) {
    article#post-8 #le {
        display: none;
    }
    article#post-8 #saint {
        display: none;
    }
    article#post-8 .entry-content {
        padding-left: 1rem;
        padding-right: 1rem;
        align-items: flex-start;
        margin-top: 3rem;
    }
}

article#post-8 .content {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: hidden;
}

#slider {
    position: relative;
    /* width: 100%;
    aspect-ratio: 1040 / 695; */
    overflow: hidden;
}

#slider canvas {
    /* width: 100% !important;
    height: auto !important;
    display: block; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.captions-container {
    position: relative;
    width: 100%;
    text-align: center;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2em;
}

.caption {
    display: none;
    color: var(--text);
    padding: 1.5rem;
    font: var(--font-small);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 0;
    margin-top: 3px;
}

.caption.active {
    display: block;
}

article {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.entry-content {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    align-items: center;
    height: calc(100vh - 80px);
}

#content-about,
#content-contact {
    position: absolute;
    width: 260px;
    max-width: 260px;
    opacity: 0;
    visibility: hidden;
}

#content-slideshow {
    max-width: 100%;
}

#le,
#saint {
    position: relative;
    z-index: 2;
}

.content-wrapper,
.content-wrapper-slideshow {
    width: 100%;
}

/* @media (max-width: 768px) {
    .content-wrapper-slideshow {
        width: 90%;
        border: 3px solid red;
        margin-left: auto;
        margin-right: auto;
        aspect-ratio: 9 / 16;
    }
    canvas {
        width: 100%;
    }
} */
