@import url('normalize.css');

@font-face {
    font-family: 'Neue Haas Display';
    src: url('css/fonts/NeueHaasDisplay.woff2');
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('css/fonts/NeueHaasDisplayLight.woff2');
    font-display: swap;
    font-weight: 300;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('css/fonts/NeueHaasDisplayMedium.woff2');
    font-display: swap;
    font-weight: 500;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('css/fonts/NeueHaasDisplayMedium.woff2');
    font-display: swap;
    font-weight: 550;
}

@font-face {
    font-family: 'Neue Haas Display';
    src: url('css/fonts/NeueHaasDisplayMedium.woff2');
    font-display: swap;
    font-weight: 600;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    --light: #FFF;
    --dark: #000;
    --accent: #F00;
    --gray: rgba(0, 0, 0, 0.22);
    --tspeed: 0.15s;
    --radius: 1rem;
    --fs-1: clamp(1rem, 0.8333rem + 0.7407vw, 1.5rem);
    --fs-2: clamp(1.25rem, 0.6667rem + 2.5926vw, 3rem);
    --fs-3: clamp(2rem, 1.3333rem + 2.963vw, 4rem);
    --fs-4: clamp(4rem, 0.6667rem + 10.3704vw, 10rem);
    --fs-5: clamp(12rem, -1.3333rem + 23.7037vw, 20rem);
    font-family: 'Neue Haas Display', sans-serif;
    font-size: var(--fs-1);
    font-style: normal;
    font-weight: 400;
    line-height: 1.75rem; /* 116.667% */
    letter-spacing: -0.0175rem;
}

a {
    outline: none;
}

h1,
p {
    margin: 0;
}

h2,
h3,
h4 {
    margin: 0;
    font-size: var(--fs-3);
    font-style: normal;
    font-weight: 500;
    line-height: var(--fs-3);
    letter-spacing: -0.1rem;
}

section {
    scroll-margin-top: 4rem;
}

section.gallery img,
.extra .swiper-slide img {
    display: block;
    border-radius: var(--radius);
    width: 100%;
}

.gallery-container {
    border-radius: 1rem;
    overflow: hidden;
}

.gallery-container .swiper-button-next,
.gallery-container .swiper-button-prev {
    position: absolute;
    margin-top: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    left: 0;
    right: auto;
    z-index: 9;
}

.gallery-container .swiper-button-next {
    right: 0;
    left: auto;
}

.gallery-container .swiper-button-next:after,
.gallery-container .swiper-button-prev:after {
    display: none !important;
}

.gallery-container {
    position: relative;
}

.swiper-pagination {
    bottom: -1.75rem !important;
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    background-color: var(--light);
    opacity: 1;
}

.swiper-pagination-clickable .swiper-pagination-bullet-active {
    background-color: var(--accent);
}

svg,
img {
    display: block;
    border-radius: 1rem;
    max-width: 100%;
    height: auto;
}

svg {
    border-radius: unset;
}

.site-main > * {
    max-width: 88rem;
    margin: 0 auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

body.show-mobile {
    height: 100vh;
    overflow: hidden;
}

header {
    position: relative;
    z-index: 2;
    font-size: var(--fs-4);
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.25rem;
    line-height: 75%;
}

header .menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--light);
    color: var(--gray);
    transition: all var(--tspeed);
    opacity: 0;
    pointer-events: none;
}

.show-mobile header .menu {
    opacity: 1;
    pointer-events: all;
}

.toggle {
    width: 2.625rem;
    height: 2.5rem;
    background: url('img/menu.svg') no-repeat center;
    background-size: contain;
    position: absolute;
    top: 2.5rem;
    right: calc((100vw - min(1408px, 90vw)) / 2);
    font-size: 0;
}

.menu .toggle {
    background-image: url('img/close.svg');
}

.menu,
.menu ul {
    height: 100vh;
}

.menu ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 2.88rem;
    overflow: scroll;
}

.menu a {
    text-decoration: none;
}

.menu ul a:hover {
    text-decoration: underline;
}

.menu ul li:nth-child(1) a {
    color: var(--gray);
}

.menu ul li:nth-child(2) a {
    color: var(--dark);
}

.menu ul li:nth-child(3) a {
    color: var(--accent);
}

.menu ul li:nth-child(4) a {
    color: var(--light); /* Text color */
  /* Basic text shadow fallback */
    text-shadow:
    -1px -1px 0 var(--accent),  /* Left-top shadow */
     1px -1px 0 var(--accent),  /* Right-top shadow */
    -1px  1px 0 var(--accent),  /* Left-bottom shadow */
     1px  1px 0 var(--accent);  /* Right-bottom shadow */
    text-decoration: none;
    position: relative;
}

@supports (-webkit-text-stroke: 2px var(--accent)) {
    .menu ul li:nth-child(4) a {
        -webkit-text-stroke: 2px var(--accent); /* Stroke width and color for WebKit browsers */
        text-stroke: 2px var(--accent); /* Standard text-stroke */
        text-shadow: none; /* Remove text-shadow if stroke is applied */
    }
}

/* Create a custom underline using a pseudo-element */
.menu ul li:nth-child(4) a:hover::after {
    content: ''; /* Empty content for the underline */
    position: absolute; /* Positioning will overlap */
    left: 0; /* Align with original text */
    right: 0;
    bottom: 0; /* Position the underline just below the text */
    width: 100%; /* Full width of the text */
    height: 1rem; /* Underline thickness */
    background-color: var(--light); /* Underline color */
    border: 2px solid var(--accent);
    pointer-events: none;
}

.hero {
    text-align: center;
    padding-top: 2.5rem;
}

.hero h2,
.about h2 {
    font-size: var(--fs-3);
    font-style: normal;
    font-weight: 600;
    line-height: var(--fs-3);
    letter-spacing: -0.1rem;
    line-height: 2.875rem;
    margin-bottom: 2.2rem;
}

.hero h1 {
    font-size: 0;
}

.hero svg {
    margin-bottom: 6.19rem;
}

figure {
    position: relative;
    margin: 0;
    margin-bottom: 2.5rem;
}

figure figcaption {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-size: var(--fs-3);
    font-style: normal;
    font-weight: 600;
    line-height: var(--fs-3);
    letter-spacing: -0.1rem;
    color: var(--light);
}

.about {
    margin-bottom: 7.5rem;
}

.about h2 {
    color: var(--gray);
    margin: 0 auto 6.25rem;
    text-align: center;
}

.wp-block-columns {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.about p + p {
    margin-top: 1.75rem;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 1rem !important;
    top: unset;
}

.gallery {
    margin-bottom: 10rem;
}

.facut h2,
.facem h2,
.vom h2 {
    font-weight: 600;
    font-size: var(--fs-4);
    text-align: center;
    margin-bottom: 10rem;
}

span.button {
    display: block;
    max-width: 100%;
    text-align: center;
    border-radius: 0.5rem;
    border: 2px solid var(--dark);
    padding: 1rem;
    line-height: 1.125rem;
    margin-bottom: 6rem;
}

.numbers-container {
    flex-wrap: wrap;
    row-gap: 2rem;
    margin-bottom: 2.5rem;
}

.numbers-container:last-child {
    margin-bottom: 0;
}

.numbers-container .wp-block-column {
    flex-basis: calc(50% - 0.5rem);
    flex-grow: 0;
}

.numbers {
    height: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 0.625rem solid var(--dark);
}

.numbers span.big {
    font-size: var(--fs-5);
    font-style: normal;
    font-weight: 400;
    line-height: 14.3125rem;
    letter-spacing: -1rem;
}

.numbers span {
    font-size: var(--fs-2);
    font-style: normal;
    font-weight: 550;
    line-height: 1.075;
    letter-spacing: -0.045rem;
}

.numbers p {
    margin-top: auto;
}

.site-main > section:not(.hero) {
    max-width: min(1408px, 90vw);
}

.site-main section.hero {
    width: 115.9rem;
    max-width: calc(100vw - 4rem);
}

section + .gallery {
    margin-top: 7.5rem;
}

.facem,
.vom {
    color: var(--accent);
}

.facem span,
.facem .numbers,
.vom span,
.vom .numbers {
    border-color: var(--accent);
}

.vom h2,
.vom span.big {
    color: var(--light); /* Text color */
  /* Basic text shadow fallback */
    text-shadow:
    -1px -1px 0 var(--accent),  /* Left-top shadow */
     1px -1px 0 var(--accent),  /* Right-top shadow */
    -1px  1px 0 var(--accent),  /* Left-bottom shadow */
     1px  1px 0 var(--accent);  /* Right-bottom shadow */
    text-decoration: none;
    position: relative;
}

.vom {
    margin-bottom: 7.5rem;
}

@supports (-webkit-text-stroke: 2px var(--accent)) {
    .vom h2,
    .vom span.big {
        -webkit-text-stroke: 2px var(--accent); /* Stroke width and color for WebKit browsers */
        text-stroke: 2px var(--accent); /* Standard text-stroke */
        text-shadow: none; /* Remove text-shadow if stroke is applied */
    }
}

@media screen and (max-width: 1023px) {

    body {
        letter-spacing: -0.00875rem;
        --fs-4: clamp(3.75rem, 0.6667rem + 10.3704vw, 10rem);
    }

    h2,
    h3,
    h4 {
        letter-spacing: -0.05rem;
    }

    .gallery-container .swiper-button-next,
    .gallery-container .swiper-button-prev {
        display: none;
    }

    .zoomist-zoomer button,
    .gallery-container {
        touch-action: manipulation;
    }

    @media (orientation: landscape) {
        .map .gallery-container {
            height: unset;
        }
    }

    .hero h2,
    .about h2 {
        letter-spacing: -0.05rem;
    }

    .hero {
        padding-top: 1.25rem;
    }

    .toggle {
        top: 1.25rem;
    }

    header {
        letter-spacing: -0.125rem;
    }

    .menu ul {
        gap: 1.44rem;
    }

    .menu ul li:nth-child(4) a:hover::after {
        bottom: -0.25rem;
        height: 0.5rem;
    }

    .hero svg {
        margin-bottom: 2.75rem;
    }

    .about h2 {
        margin-bottom: 3.25rem;
    }

    figure {
        margin-bottom: 1.75rem;
    }

    figure figcaption {
        font-size: var(--fs-2);
        line-height: var(--fs-2);
        letter-spacing: 0;
    }

    .wp-block-columns {
        flex-direction: column;
    }

    .about {
        margin-bottom: 3.25rem;
    }

    section + .gallery {
        margin-top: 3.25rem;
    }

    .gallery,
    .facut h2,
    .facem h2,
    .vom h2 {
        margin-bottom: 5rem;
    }

    .swiper-pagination-bullets.swiper-pagination-horizontal {
        bottom: 0.25rem !important;
    }

    span.button {
        margin-bottom: 3rem;
    }

    .numbers span {
        letter-spacing: -0.0225rem;
    }

    .numbers span.big {
        letter-spacing: -0.5rem;
    }
}