/*
Theme Name: Vitamed Foundation
Theme URI: https://fundacjavitamed.pl/
Author: Vitamed Foundation
Description: Custom theme for the Vitamed Foundation site.
Version: 1.0.0
Text Domain: vitamed-foundation
*/

/* Colors */
:root {
    --black: #000000;
    --grey: #DFDEDD;
    --white: #FFFFFF;
    --grey2: #F8F8F8;
}

/* Typography */
@font-face {
    font-family: "Unbounded";
    src: url("assets/fonts/static/Unbounded-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Unbounded";
    src: url("assets/fonts/static/Unbounded-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Unbounded";
    src: url("assets/fonts/static/Unbounded-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Unbounded";
    src: url("assets/fonts/static/Unbounded-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7.5rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Unbounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background: #fff;
}

a {
    color: #222;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    height: auto;
    display: block;
}

/* Layout */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    padding: 1rem 1.5rem;
    background: #ffffff;
    color: #111111;
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-footer {
    background: var(--grey2);
    color: var(--black);
    padding: 2.5rem 1.5rem 4.5rem;
    position: relative;
}

.site-footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer-column {
    flex: 1;
}

.site-footer-column--logo {
    display: flex;
    align-items: center;
}

.site-footer-logo img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-footer-nav {
    text-align: center;
}

.site-footer-nav-primary {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-align: start;
}

.site-footer-nav-primary>li {
    width: 200px;
}

.site-footer-nav-primary>li>a {
    font-size: 1.25rem;
    white-space: nowrap;
}

.site-footer-nav-secondary {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    padding-top: 20px;
    text-align: start;
    white-space: nowrap;
    flex-direction: column;
}

.site-footer-nav a {
    color: inherit;
    text-decoration: none;
}

.site-footer-nav a:hover {
    text-decoration: underline;
}

.site-footer-column--socials {
    display: flex;
    justify-content: flex-end;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-socials img {
    display: block;
    width: 28px;
    height: 28px;
}

.footer-socials a:hover {
    opacity: 0.8;
}

.site-footer-meta {
    margin-top: 5rem;
    color: rgb(79, 78, 78);
    font-size: 0.7rem;
    text-align: center;
}

.site-footer-meta a {
    color: inherit;
    text-decoration: none;
}

.site-footer-credit {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    margin: 0;
    color: rgb(79, 78, 78);
    font-size: 0.7rem;
    opacity: 0.72;
}

.site-footer-credit a {
    color: inherit;
    text-decoration: underline;
}

.site-footer-credit a:hover {
    text-decoration: underline;
}

.site-footer-meta a:hover {
    text-decoration: underline;
}

.site-footer-separator {
    display: inline-block;
    margin: 0 0.6rem;
    line-height: 1;
}

/* .site-title a {
    color: inherit;
    text-decoration: none;
} */

@media (max-width: 900px) {
    .site-footer-nav-primary {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 1279px) {
    .site-footer-nav-primary>li {
        width: unset;
    }

    .site-footer-inner {
        display: flex;
        flex-direction: column;
    }

    .site-footer-credit {
        right: 1.5rem;
        bottom: 1.25rem;
    }
}

.site-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Scroll reveal base styles */
[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-scroll-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-hero__title,
.about-section--mission>h2,
.about-section>h2,
.about-idea>h2,
.contact-layout>h2,
.privacy-policy-section>h2,
.statute-section>h2,
.image-sources-section>h2,
.activities-section>h2,
.news>.container>h2 {
    opacity: 0;
    transform: translateX(-100px);
}

.home-hero.is-visible>.home-hero__title,
.contact-layout.is-visible>h2,
.privacy-policy-section.is-visible>h2,
.statute-section.is-visible>h2,
.image-sources-section.is-visible>h2,
.activities-section.is-visible>h2,
.news.is-visible>.container>h2 {
    animation: about-heading-slide-left 2s ease-out forwards;
}

.about-section.is-visible>h2,
.about-idea.is-visible>h2,
.activities-section--local.is-visible>h2 {
    animation: about-heading-slide-left 1.2s ease-out forwards;
}

.about-section--mission.is-visible>h2 {
    animation: about-heading-slide-left 2s ease-out forwards;
}

@keyframes about-heading-slide-left {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* About mission collage images – appear from top on scroll */
.about-section--mission .about-section__images img {
    opacity: 0;
    transform: translateY(0);
}

.about-section--mission.is-visible .about-section__images img {
    animation: about-mission-image-in 0.6s ease-out forwards;
}

.about-section--mission .about-section__images img:nth-child(1) {
    animation-delay: 0s;
}

.about-section--mission .about-section__images img:nth-child(2) {
    animation-delay: 0.25s;
}

.about-section--mission .about-section__images img:nth-child(3) {
    animation-delay: 0.5s;
}

@keyframes about-mission-image-in {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global page loader */
.site-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 2000;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.4s ease-in-out;
}

.site-loader__icon {
    width: 64px;
    height: 64px;
    animation: site-loader-pulse 1s ease-in-out infinite;
}

.site-loader--hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes site-loader-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.home-hero {
    margin: 5.5rem 0 0 0;
    padding: 2.5rem 2rem 2.75rem;
}

.home-hero__title {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Contact page */
.contact-layout {
    padding: 2.5rem 2rem 2.75rem;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: normal;
    margin: 5.5rem 0 0 0;
    min-height: 85vh;
}

.contact-main {
    display: flex;
}

.contact-content {
    font-weight: 300;
    font-size: 1.25rem;
    flex-basis: 80%;
}

.contact-name {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 400;
}

.contact-address {
    margin: 0 0 2.5rem;
    font-weight: 400;
    font-size: 1.6rem;
}

.contact-email {
    margin: 0 0 2.5rem;
}

.contact-detail {
    margin: 0 0 0.5rem;
}

.contact-detail a {
    color: inherit;
    text-decoration: none;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.contact-side {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
}

.contact-logo {
    display: flex;
    width: 100%;
}

.contact-logo img {
    max-width: 600px;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 0;
    width: 100%;
}

.contact-socials {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
    margin: 4rem 0 0;
    font-size: 1.5rem;
}

.contact-socials a img {
    width: 32px;
    height: 32px;
    display: block;
}

.contact-socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .contact-logo img {
        max-width: 400px;
    }

    .contact-layout {
        flex-direction: column;
    }

    .contact-side {
        align-items: flex-start;
        order: 1;
        padding-bottom: 50px;
    }

    .contact-main {
        flex-direction: column;
    }

    .contact-content {
        order: 2;
    }

    .contact-content {
        font-size: 1.0rem;
    }

    .contact-name {
        font-size: 1.5rem;
    }

    .contact-address {
        font-size: 1.25rem;
    }

    .contact-socials a {
        font-size: 0.8rem;
    }
}

/* Section headings (e.g. on "O Fundacji") */
.about-section {
    margin: 5.5rem 0 0 0;
}

.about-section>h2,
.about-idea>h2,
.contact-layout>h2,
.privacy-policy-section>h2,
.statute-section>h2,
.image-sources-section>h2 {
    margin: 0 0 3rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #000000;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: normal;
}

.about-section__content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    font-weight: 300;
}

.about-section__text {
    flex: 3;
}

.about-section__text p {
    margin: 0 0 40px;
    font-size: 1.5rem;
}

.about-section__images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-section__images img {
    width: 100%;
    aspect-ratio: 5 / 3;
    border-radius: 20px;
    object-fit: cover;
}

.about-section--mission {
    padding: 2.5rem 2rem 5.75rem;
}

.about-section--values {
    margin-top: 0;
    background: var(--grey);
    border-radius: 50px 50px 0 0;
    padding: 2.5rem 2rem 5.75rem;
}

.about-values__subtitle {
    margin: 0 0 2rem;
    font-weight: 500;
    font-size: 1.5rem;
}

.about-section--values .about-section__content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

.about-values__item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.about-section--values .about-values__item:nth-child(2),
.about-section--values .about-values__item:nth-child(3) {
    margin-top: 30px;
}

.about-values__image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 100%;
    max-height: 400px;
}

.about-values__image img {
    height: 100%;
    object-fit: cover;
}

.about-values__label {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.4rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-values__text h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.about-values__text p {
    margin: 0;
    font-weight: 300;
    font-size: 1.5rem;
}

.about-section--idea {
    margin: 0;
    background: var(--grey);
}

.about-idea {
    background: #ffffff;
    border-radius: 50px 50px 0 0;
    padding: 2.5rem 2.5rem 5.75rem;
}

.about-idea__content p {
    margin: 0 0 2rem;
    font-weight: 300;
    font-size: 1.5rem;
}

.about-idea__image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    max-height: 500px;
    object-position: 0 45%;
}

/* Activities page */
.activities-section {
    margin: 0 0 3rem;
    margin-top: 5.5rem;
    padding: 2.5rem 2rem 2.75rem;
}

.activities-section>h2 {
    margin: 0 0 3rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #000000;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: normal;
}

.activities-section__content p {
    margin: 0 0 1.5rem;
    font-weight: 300;
    font-size: 1.5rem;
}

.activities-section__image {
    margin-top: 2rem;
}

.activities-section__image img {
    width: 100%;
    max-height: 500px;
    border-radius: 20px;
    object-fit: cover;
    object-position: 0 70%;
}

.activities-section--local {
    margin-top: 3rem;
    background: var(--grey);
    border-radius: 50px 50px 0 0;
    padding: 2.5rem 2rem 5.75rem;
    margin-bottom: 0;
}

.activities-section__content--local {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.activities-section__text {
    flex: 3;
}

.activities-section__grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 1rem;
}

.activities-section__tile {
    border-radius: 20px;
    overflow: hidden;
    background: var(--grey2);
}

.activities-section__tile--empty {
    background: var(--grey);
}

.activities-section__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.about-section--board {
    margin: 0 0 3.5rem 0;
    background: var(--grey);
    border-radius: 50px;
    padding: 2.5rem 2rem 2.75rem;
}

.about-section__content--board {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.board-member__name {
    margin: 0;
    letter-spacing: 0.08em;
    font-weight: 500;
    font-size: 1.5rem;
}

.board-member__role {
    margin: 0;
    font-weight: 400;
}

@media (max-width: 900px) {
    .about-section__content--board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .about-section--values {
        border-radius: 32px 32px 0 0;
    }

    .about-section--values .about-section__content {
        grid-template-columns: 1fr;
    }
}

/* News page */
.news {
    margin: 5.5rem 0 3rem;
    padding: 2.5rem 2rem 2.75rem;
}

.news>.container>h2 {
    margin: 0 0 3rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #000000;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: normal;
}

.news-grid {
    column-count: 2;
    column-gap: 2rem;
}

.news-card {
    border-radius: 50px;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    break-inside: avoid;
    margin-bottom: 2rem;
}

.news-card--light {
    background: var(--grey2);
}

.news-card--grey {
    background: var(--grey);
}

.news-card__image {
    margin-bottom: 1.5rem;
}

.news-card__image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    max-height: 500px;
}

.news-card__placeholder {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    background: var(--grey2);
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.news-card__title {
    margin: 0;
    font-size: 1.5rem;
}

.news-card__title a {
    text-decoration: none;
}

.news-card__title a:hover {
    text-decoration: underline;
}

.news-card__footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.news-card__text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.news-card__excerpt {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

.news-card__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    text-decoration: none;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.news-card__arrow:hover {
    transform: translateX(4px);
    text-decoration: none;
}

.news-card__date {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #555555;
}

.news-pagination {
    margin-top: 3rem;
    text-align: center;
}

.news-empty {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--grey2);
    border-radius: 32px;
}

/* Image sources page */
.image-sources__list {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 1.25rem;
}

.image-sources__title,
.image-sources__url-label {
    font-weight: 500;
}

.image-sources__url {
    word-break: break-word;
}

@media (max-width: 900px) {
    .news-grid {
        column-count: 1;
    }
}

/* Home collage section */
.home-collage__inner {
    background: var(--grey);
    border-radius: 50px 50px 0 0;
    padding: 2.5rem 2rem 2.75rem;
}

.home-collage__grid {
    display: grid;
    grid-template-columns: repeat(21, minmax(0, 1fr));
    /* grid-auto-rows: 50px; */
    grid-auto-rows: 1fr;
    gap: 0.5rem;
    height: 80vh;
}

.home-collage__item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--grey2);
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.home-collage__item--fading {
    opacity: 0;
}

.home-collage__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0);
    transition: opacity 1.4s ease-in-out, background-color 1.4s ease-in-out;
}

.home-collage__label--visible {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Adjust label size based on tile size in the grid */
.home-collage__item--health-main .home-collage__label,
.home-collage__item--health-side .home-collage__label,
.home-collage__item--health-outdoor .home-collage__label,
.home-collage__item--therapy-main .home-collage__label {
    font-size: 1.05rem;
    font-weight: 500;
}

.home-collage__item--art-main .home-collage__label,
.home-collage__item--extra-left .home-collage__label,
.home-collage__item--extra-right .home-collage__label {
    font-size: 0.75rem;
    font-weight: 500;
}

.home-collage__item--art-small-left .home-collage__label,
.home-collage__item--art-small-right-top .home-collage__label,
.home-collage__item--art-small-right-bottom .home-collage__label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Home collage tiles – directional reveal when section enters view */
.home-collage__inner.is-visible .home-collage__item--health-main {
    animation: collage-in-left 1.2s ease-in forwards;
    animation-delay: 0s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--health-side {
    animation: collage-in-top 1.2s ease-in forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--health-outdoor {
    animation: collage-in-left 1.2s ease-in forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--art-small-left {
    animation: collage-in-bottom 1.2s ease-in forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--art-main {
    animation: collage-in-top 1.2s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--art-small-right-top {
    animation: collage-in-top 1.2s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--art-small-right-bottom {
    animation: collage-in-right 1.2s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--therapy-main {
    animation: collage-in-bottom 1.2s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--extra-left {
    animation: collage-in-left 1.2s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

.home-collage__inner.is-visible .home-collage__item--extra-right {
    animation: collage-in-bottom 1.2s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 1;
}

@keyframes collage-in-left {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes collage-in-right {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes collage-in-top {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes collage-in-bottom {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Individual tiles layout */
.home-collage__item--health-main {
    opacity: 0;
    grid-column: 1 / 8;
    grid-row: 1 / 7;
    background-image: url("assets/photo-collage/1280px-Hemessen-cirujano-prado.jpg");
}

.home-collage__item--health-side {
    opacity: 0;
    grid-column: 8 / 15;
    grid-row: 1 / 7;
    background-image: url("assets/photo-collage/Apa_joxe.jpg");
}

.home-collage__item--health-outdoor {
    opacity: 0;
    grid-column: 15 / 22;
    grid-row: 1 / 7;
    background-image: url("assets/photo-collage/The_Tennis_Party,_by_John_Lavery.jpg");
}

.home-collage__item--art-small-left {
    opacity: 0;
    grid-column: 1 / 5;
    grid-row: 7 / 9;
    background-image: url("assets/photo-collage/Edvard_Munch,_1893,_The_Scream,_oil,_tempera_and_pastel_on_cardboard,_91_x_73_cm,_National_Gallery_of_Norway.jpg");
}

.home-collage__item--art-main {
    opacity: 0;
    grid-column: 16 / 19;
    grid-row: 7 / 9;
    background-image: url("assets/photo-collage/Rembrandt_-_The_Anatomy_Lesson_of_Dr_Nicolaes_Tulp.jpg");
}

.home-collage__item--art-small-right-top {
    opacity: 0;
    grid-column: 1 / 5;
    grid-row: 9 / 11;
    background-image: url("assets/photo-collage/Henri_Rousseau_-_The_Football_Players.jpg");
}

.home-collage__item--art-small-right-bottom {
    opacity: 0;
    grid-column: 16 / 19;
    grid-row: 9 / 11;
    background-image: url("assets/photo-collage/Francisco_de_Goya_-_Self-Portrait_with_Dr._Arrieta_-_Google_Art_Project.jpg");
}

.home-collage__item--therapy-main {
    opacity: 0;
    grid-column: 5 / 16;
    grid-row: 7 / 11;
    background-image: url("assets/photo-collage/Matissedance.jpg");
}

.home-collage__item--extra-left {
    opacity: 0;
    grid-column: 19 / 22;
    grid-row: 7 / 9;
    background-image: url("assets/photo-collage/Melingue_Jenner_peint.jpg");
}

.home-collage__item--extra-right {
    opacity: 0;
    grid-column: 19 / 22;
    grid-row: 9 / 11;
    background-image: url("assets/photo-collage/Ward_in_the_Hospital_in_Arles.jpg");
}

@media (max-width: 1024px) {
    .home-collage__inner {
        border-radius: 32px 32px 0 0;
        padding: 2.75rem 1.25rem 2.75rem;
    }

    .home-collage__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-collage__item,
    .home-collage__item--health-main,
    .home-collage__item--health-side,
    .home-collage__item--health-outdoor,
    .home-collage__item--art-small-left,
    .home-collage__item--art-main,
    .home-collage__item--art-small-right-top,
    .home-collage__item--art-small-right-bottom,
    .home-collage__item--therapy-main,
    .home-collage__item--extra-left,
    .home-collage__item--extra-right {
        grid-column: auto / span 1;
        grid-row: auto / span 1;
    }

    /* On mobile, show only four collage images:
       keep health-main, health-side, health-outdoor, therapy-main */
    .home-collage__item--art-small-left,
    .home-collage__item--art-main,
    .home-collage__item--art-small-right-top,
    .home-collage__item--art-small-right-bottom,
    .home-collage__item--extra-left,
    .home-collage__item--extra-right {
        display: none;
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.4s ease;
}

.page-loader__inner {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loader__icon {
    width: 64px;
    height: 64px;
    animation: loader-pulse 1.2s ease-in-out infinite;
}

.page-loader--hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes loader-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.95;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    min-height: 85vh;
    container-type: inline-size;
}

/* Header layout */
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    display: block;
}

.site-logo img {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
}

.site-title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #777777;
}

/* Primary navigation */
.nav-primary {
    margin: 0;
}

.nav-primary ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.nav-primary li {
    position: relative;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease-out;
}

.nav-primary>ul>li:hover {
    border-bottom: 1px solid var(--black);
}

.nav-primary ul a>li:hover {
    border-bottom: 1px solid var(--black);
}

.nav-primary a {
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.18s ease-out;
}

/* .nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a,
.nav-primary .current-menu-ancestor > a {
    font-weight: 700;
} */

.nav-primary .current-menu-item,
.nav-primary .current_page_item,
.nav-primary .current-menu-ancestor {
    border-bottom: 1px solid var(--black);
}

.nav-primary .menu-item-has-children>a {
    position: relative;
    padding-right: 1.25rem;
}

.nav-primary .menu-item-has-children>a::after {
    content: "\25BC";
    /* down-pointing triangle */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--black, #000);
    transition: transform 0.18s ease-out;
}

.nav-primary ul ul {
    position: absolute;
    top: 26px;
    left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--black);
    background-color: #d6d1d1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0 0;
    list-style: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s linear;
}

.nav-primary ul ul a {
    font-size: 0.8rem;
    color: var(--black);
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 8px 8px 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease-out, border-bottom-color 0.18s ease-out;
}

.nav-primary ul ul a:hover {
    border-bottom: 1px solid var(--black);
}

/* .nav-primary li:hover > ul,
.nav-primary li:focus-within > ul,
.nav-primary li.submenu-open > ul {
} */

/* Mobile navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle-box {
    width: 24px;
    height: 18px;
    position: relative;
    display: inline-block;
}

.nav-toggle-inner,
.nav-toggle-inner::before,
.nav-toggle-inner::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #111111;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-inner {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-inner::before,
.nav-toggle-inner::after {
    content: "";
    left: 0;
}

.nav-toggle-inner::before {
    top: -7px;
}

.nav-toggle-inner::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner::after {
    top: 0;
    transform: rotate(-45deg);
}

.menu-item {
    height: 30px;
}

@media (max-width: 1024px) {
    .site-header-inner {
        align-items: center;
    }

    .nav-primary {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e0e0e0;
        padding: 0.75rem 1rem 1rem;
        display: none;
    }

    .nav-primary.is-open {
        display: block;
        height: 100vh;
    }

    .nav-primary ul {
        flex-direction: column;
        gap: 0.75rem;
    }

    .nav-primary ul ul {
        position: static;
        border: none;
        padding: 0.25rem 0 0.5rem 1rem;
        margin: 0;
        background: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .menu-item {
        height: unset;
    }

    .nav-primary>ul>li {
        border-bottom: 1px solid black;
        padding: 20px 0;
        font-size: 1.25rem;
    }

    /* Mobile: open submenus via display block when JS adds .submenu-open */
    .nav-primary li.submenu-open>ul {
        display: block;
    }

    .nav-primary li.submenu-open>a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .nav-primary>ul>li>a:hover {
        border-bottom: 1px solid black;
    }

    .nav-primary ul ul li {
        padding: 10px 0;
    }

    .nav-primary ul ul a {
        font-size: 1.0rem;
    }
}

@media (min-width: 1025px) {
    .nav-toggle {
        display: none;
    }

    .nav-primary li:hover>ul,
    .nav-primary li:focus-within>ul {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* On desktop, rotate the arrow on hover/focus of parent items */
    .nav-primary .menu-item-has-children:hover>a::after,
    .nav-primary .menu-item-has-children:focus-within>a::after {
        transform: translateY(-50%) rotate(180deg);
    }
}

@media (max-width: 600px) {
    .site-main {
        padding: 5rem 1rem 1.75rem;
    }
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-content {
    margin-top: 1rem;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* News detail page */
.news-detail {
    padding: 8.5rem 2rem 2.75rem;
}

.news-detail-header {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid #000000;
    margin: 0 0 3rem;
    width: 100%;
}

.news-detail-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.news-detail-back:hover {
    text-decoration: none;
    transform: translateX(-4px);
}

.news-detail-label {
    opacity: 0.7;
}

.entry-content--news-detail {
    font-weight: 300;
    font-size: 1.25rem;
}

.news-detail-box {
    margin-top: 2rem;
    background: var(--grey);
    border-radius: 50px;
    padding: 2.5rem 2rem 2.75rem;
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
}

.news-detail-box__text {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-detail-title {
    margin: 0;
    font-size: 1.8rem;
}

.news-detail-text p {
    margin: 0 0 1rem;
}

.news-detail-date-wrapper {
    margin-top: auto;
}

.news-detail-date {
    font-size: 1.0rem;
    color: #666666;
}

.news-detail-image {
    flex: 2;
}

/* News gallery slider */
.news-gallery {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.news-gallery__viewport {
    flex: 1;
    overflow: hidden;
}

.news-gallery__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.news-gallery__item {
    max-height: 450px;
    padding: 0 10px;
}

.news-gallery__item img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.news-gallery__arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: black;
    border-radius: 999px;
    border: 1px solid var(--black);
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    font-family: "Unbounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* One- and two-image news galleries */
.news-gallery--single .news-gallery__arrow,
.news-gallery--double .news-gallery__arrow {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.news-gallery--single .news-gallery__viewport,
.news-gallery--double .news-gallery__viewport {
    overflow: visible;
    width: 100%;
}

.news-gallery--single .news-gallery__track {
    justify-content: center;
}

.news-gallery--single .news-gallery__item {
    flex: 0 0 auto;
    max-width: 550px;
    margin: 0 auto;
    flex-basis: 50%;
}

.news-gallery--double .news-gallery__track {
    justify-content: center;
    transform: unset !important;
    transition: unset !important;
}

.news-gallery--double .news-gallery__item {
    flex: 0 0 30% !important;
}

.news-gallery--double .news-gallery__item--clone {
    display: none;
}

.news-gallery__arrow:hover {
    background: var(--grey2);
}

@media (max-width: 1024px) {
    .news-detail-title {
        margin: 0;
        font-size: 1.5rem;
    }

    .news-gallery {
        gap: 0.75rem;
    }

    .news-gallery__item {
        flex: 0 0 100%;
        margin-right: 0;
    }

    .news-gallery__arrow {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }

    .news-gallery--double .news-gallery__item {
        flex: 0 0 50% !important;
    }

    .news-gallery--single .news-gallery__item {
        flex-basis: 100%;
    }
}

@media (max-width: 1200px) {
    .news-gallery--double .news-gallery__item {
        flex: 0 0 50% !important;
    }
}

.news-detail-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    max-height: 420px;
    max-width: 550px;
}

@media (max-width: 1024px) {
    .news-detail-box {
        flex-direction: column-reverse;
    }
}

.statute-section,
.privacy-policy-section {
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: normal;
    margin: 5.5rem 0 3rem;
    padding: 2.5rem 2rem 2.75rem;
}

.privacy-policy-section p,
.statute-section p {
    margin: 0 0 1.5rem;
    font-weight: 300;
    font-size: 1.5rem;
}

.privacy-policy-section div>ol>li,
.statute-section p {
    font-weight: 400;
    font-size: 1.5rem;
}

/* .privacy-policy__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 0;
    height: 0;
    border-left: 0.6rem solid #000;
    border-top: 0.35rem solid transparent;
    border-bottom: 0.35rem solid transparent;
} */

.image-sources-section {
    margin: 5.5rem 0 3rem;
    padding: 2.5rem 2rem 2.75rem;
}

.privacy-policy-section li,
.statute-chapter p,
.statute-chapter li {
    font-size: 1.5rem;
    font-weight: 300;
}

.statute-heading {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-weight: 500;
    font-size: 1.5rem;
}

.statute-heading--spacing {
    padding-top: 40px;
}

.statute-chapter p {
    margin-top: 40px;
}

@media (max-width: 1200px) {

    .home-collage__item--art-small-left .home-collage__label,
    .home-collage__item--art-small-right-top .home-collage__label,
    .home-collage__item--art-small-right-bottom .home-collage__label,
    .home-collage__item--art-main .home-collage__label,
    .home-collage__item--extra-left .home-collage__label,
    .home-collage__item--extra-right .home-collage__label {
        font-size: 0.7rem;
    }
}

@media (max-width: 1024px) {
    .activities-section__content {
        flex-direction: column;
    }

    .about-values__text {
        order: 2;
    }

    .about-values__images {
        order: 1;
    }

    .about-values__image img {
        width: 100%;
    }

    .about-values__image {
        height: 400px;
    }

    .about-section__content {
        flex-direction: column;
    }

    .about-section__images img {
        min-width: 0;
        aspect-ratio: unset;
    }

    .about-section__images {
        flex-direction: row;
        display: flex;
    }


    .news-detail {
        padding: 8.5rem 1rem 2.75rem;
    }

    .image-sources-section,
    .statute-section,
    .privacy-policy-section,
    .news,
    .contact-layout,
    .activities-section,
    .about-section--values,
    .about-section--mission,
    .about-section--board,
    .about-idea {
        padding: 2.5rem 1.0rem 2.75rem;
    }

    .news>.container>h2,
    .about-section>h2,
    .about-idea>h2,
    .contact-layout>h2,
    .privacy-policy-section>h2,
    .statute-section>h2,
    .image-sources-section>h2,
    .activities-section>h2 {
        font-size: 2.0rem;
    }

    .activities-section__content p,
    .about-section__text p,
    .about-idea__content p,
    .about-values__text p {
        font-size: 1.25rem;
    }

    .news,
    .activities-section,
    .about-section--mission,
    .contact-layout {
        margin: 5rem 0 0 0;
    }

    .news-detail-date,
    .entry-content--news-detail,
    .news-card__excerpt {
        font-size: 0.85rem;
    }

    .image-sources__list,
    .privacy-policy-section li,
    .statute-chapter p,
    .statute-chapter li {
        font-size: 1.15rem;
    }

    .privacy-policy-section div>ol>li,
    .statute-section p {
        font-size: 1.15rem;
    }

    .statute-heading {
        font-size: 1.25rem;
    }

    .activities-section--local {
        margin: 0;
    }
}

@media (max-width: 600px) {

    .news-card, .news-detail-box {
        padding: 2.5rem 1.5rem 2.75rem; 
    }

    .home-collage__item--health-main .home-collage__label,
    .home-collage__item--health-side .home-collage__label,
    .home-collage__item--health-outdoor .home-collage__label,
    .home-collage__item--therapy-main .home-collage__label {
        font-size: 0.85rem;
    }

    .image-sources__list,
    .privacy-policy-section li,
    .statute-chapter p,
    .statute-chapter li {
        font-size: 1rem;
    }

    .privacy-policy-section div>ol>li,
    .statute-section p {
        font-size: 1rem;
    }

    .statute-heading {
        font-size: 1.05rem;
    }
}

@media (max-width: 375px) {

    .home-collage__item--health-main .home-collage__label,
    .home-collage__item--health-side .home-collage__label,
    .home-collage__item--health-outdoor .home-collage__label,
    .home-collage__item--therapy-main .home-collage__label {
        font-size: 0.7rem;
    }

    .image-sources__list,
    .privacy-policy-section li,
    .statute-chapter p,
    .statute-chapter li {
        font-size: 0.8rem;
    }

    .privacy-policy-section div>ol>li,
    .statute-section p {
        font-size: 0.8rem;
    }

    .statute-heading {
        font-size: 0.9rem;
    }
}