@font-face {
    font-family: 'Praho';
    src: url('../fonts/PrahoPro-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --gold:        #b89a6a;
    --light:       #e8e4dc;
    --brown:       #281c0b;
    --grey:        #878787;
    --text-dark:   #1a1a1a;
    --text-muted:  #555;
    --card-bg:     #2e2b27;
    --card-text:   #f0ece4;
    --white:       #FDFAF5;
    --brown-dark:  #2C1F0F;
    --brown-mid:   #5C3D1E;
    --brown-light: #A07850;
    --hero-height: 100vh;
    --nav-h:       72px;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: var(--light);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
}

section:not(.hero) {
    padding: 4rem 0;
    position: relative;
}

.container {
    padding: 0 5rem;
}

.bg-noise {
    position: absolute;
    inset: 0;
    background-image: url('../images/bg-noise.png');
    background-repeat: repeat;
    background-size: 300px;
    z-index: -2;
    opacity: .15;
    pointer-events: none;
}

.bg-noise-alt {
    position: absolute;
    inset: 0;
    background-image: url('../images/bg-noise-alt.png');
    background-repeat: repeat;
    background-size: 300px;
    z-index: 0;
    opacity: .05;
    pointer-events: none;
}

.logo {
    position: relative;
    top: 40px;

    img {
        max-width: 96px;
        height: auto;
    }
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: var(--hero-height);
    min-height: 600px;

    .hero__left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 5rem;
        position: relative;
        z-index: 1;
    }

    .hero__logo {
        position: absolute;
        top: 40px;
        left: 5rem;
        font-family: 'Praho', serif;
        font-size: 22px;
        letter-spacing: 0.05em;
        color: var(--text-dark);

        img {
            max-width: 96px;
            height: auto;
        }
    }

    .hero__heading {
        font-family: 'Praho', serif;
        font-size: clamp(56px, 7vw, 96px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--text-dark);
        margin-bottom: 28px;
    }

    .hero__description {
        max-width: 340px;
    }

    .hero__right {
        position: relative;
        overflow: hidden;
    }

    .hero__bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .hero__card {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        width: 300px;
        overflow: hidden;
        background-color: rgb(41 28 11 / 85%);
        box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.2);
        z-index: 10;
        backdrop-filter: blur(20px);
        animation: cardEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
    }

    @keyframes cardEntrance {
        from { opacity: 0; transform: translateX(-50%) translateY(calc(-50% + 30px)); }
        to   { opacity: 1; transform: translateX(-50%) translateY(-50%); }
    }

    .hero__card-image {
        width: 100%;
        height: 340px;
        object-fit: cover;
        display: block;
        border: 8px solid transparent;
    }

    .hero__card-body {
        padding: 12px 20px 20px;
        color: var(--card-text);
    }

    .hero__card-body::before {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--gold);
        margin: 0 auto 16px;
    }

    .hero__card-title {
        font-family: 'Praho', serif;
        text-align: center;
        font-size: 22px;
        font-weight: 700;
    }
}


/* ==========================================================
   ABOUT
   ========================================================== */

.about__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;

    .about__image {
        max-width: 100%;
    }

    .about__right {
        max-width: 600px;
    }

    .about__heading {
        font-family: 'Praho', serif;
        font-size: clamp(42px, 7vw, 62px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--text-dark);
        margin-bottom: 28px;
    }

    .about__description {
        margin-bottom: 28px;
    }

    .about__quote {
        padding-left: 24px;
        border-left: 2px solid var(--gold);
        font-family: 'Praho', serif;
        font-size: 17px;
        margin-top: 36px;
    }
}


/* ==========================================================
   SERVICE
   ========================================================== */

.service__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;

    .service__image {
        max-width: 100%;
    }

    .service__right {
        max-width: 600px;
    }

    .service__heading {
        font-family: 'Praho', serif;
        font-size: clamp(42px, 7vw, 62px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--text-dark);
        margin-bottom: 28px;
    }

    .service__description {
        margin-bottom: 28px;
    }

    .service__website {
        padding: 2rem 0 1rem;
        margin: 1rem 0;
        border-top: 1px solid var(--gold);

        span {
            font-size: 13px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--grey);
        }

        h3 a {
            text-decoration: none;
            color: var(--text-dark);
            font-family: 'Praho', serif;
            font-size: clamp(18px, 7vw, 24px);
        }
    }
}

/* ==========================================================
   EVENT
   ========================================================== */

.event {
    padding-top: 0 !important;
}

.event__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;

    .event__image {
        max-width: 100%;
    }

    .event__left {
        max-width: 600px;
    }

    .event__heading {
        font-family: 'Praho', serif;
        font-size: clamp(42px, 7vw, 62px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--text-dark);
        margin-bottom: 28px;
    }

    .event__description {
        margin-bottom: 28px;
    }
}


/* ==========================================================
   MUSEUM
   ========================================================== */

.museum {
    background-color: var(--brown);

    .museum__name {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 5rem;
        position: relative;
        z-index: 2;

        p { color: var(--grey); }
    }

    .museum__heading {
        font-family: 'Praho', serif;
        font-size: clamp(42px, 7vw, 62px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--card-text);
        margin-bottom: 28px;
    }

    .museum__description {
        color: var(--grey);
    }

    .museum__wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
        position: relative;
        z-index: 2;
    }

    .museum__item {
        background-color: #201709;
        padding: 2.5rem 2.5rem 3.5rem;
    }

    .museum__number {
        font-family: 'Praho', serif;
        font-size: 32px;
        margin-bottom: 26px;
        color: var(--gold);
        opacity: .25;
    }

    .museum__title {
        font-family: 'Praho', serif;
        font-size: 26px;
        line-height: 1.05;
        margin-bottom: 26px;
        color: var(--gold);
    }
}


/* ==========================================================
   GALLERY / COLLAGE

   Desktop (>=1024px):
   [ foto-1 ] [  tekst  ] [ foto-2 ]
   [ foto-3 ] [  foto-4 ] [ foto-5 ]

   Tablet (640-1023px): 2 kolumny, 3 rzędy (5 w dole wycentrowane)
   Mobile (<640px):     2 kolumny, 3 rzędy (5 w dole wycentrowane)
   ========================================================== */

.gallery__wrapper {
    position: relative;
    text-align: center;

    .gallery__heading {
        font-family: 'Praho', serif;
        font-size: clamp(42px, 7vw, 62px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--text-dark);
        margin-bottom: 28px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery__description {
        max-width: 440px;
        margin: 0 auto;
    }
}

.collage-text {
    text-align: center;
    max-width: 460px;
    margin: 0 auto 48px;

    h2 {
        font-family: 'Praho', serif;
        font-size: clamp(42px, 7vw, 62px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--text-dark);
        margin-bottom: 20px;
    }

    p {
        font-size: clamp(0.85rem, 1.5vw, 0.95rem);
        line-height: 1.8;
        color: var(--text-muted);
        letter-spacing: 0.01em;
    }
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.collage-center-text {
    display: none;
}

.photo-5 {
    display: none;
}

.photo-card {
    background-color: rgb(41 28 11 / 85%);
    backdrop-filter: blur(20px);
    padding: 8px 8px 20px;
    cursor: default;
    margin-left: 20px;
    margin-right: 20px;

    img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        filter: grayscale(100%) contrast(1.05);
        opacity: 0.88;
    }
}

.photo-caption {
    font-family: 'Praho', serif;
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--card-text);
    letter-spacing: 0.04em;
    margin-top: 20px;
    padding: 0 2px;
}

@media (min-width: 1024px) {
    .collage-text {
        display: none;
    }

    .collage-center-text {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;

        .collage-text {
            display: block;
            margin: 0;
        }
    }

    .photo-1 { grid-column: 1; grid-row: 1; transform: rotate(-2.5deg); margin-top: 32px; }
    .photo-2 { grid-column: 3; grid-row: 1; transform: rotate(2deg);    margin-top: 16px; }
    .photo-3 { grid-column: 1; grid-row: 2; transform: rotate(1.5deg);  }
    .photo-4 { grid-column: 2; grid-row: 2; transform: rotate(-1deg);   margin-top: 8px;  }
    .photo-5 { display: block; grid-column: 3; grid-row: 2; transform: rotate(2deg); margin-top: 16px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .photo-1 { grid-column: 1; grid-row: 1; transform: rotate(-2deg);   }
    .photo-2 { grid-column: 2; grid-row: 1; transform: rotate(2deg);    }
    .photo-3 { grid-column: 1; grid-row: 2; transform: rotate(1.5deg);  }
    .photo-4 { grid-column: 2; grid-row: 2; transform: rotate(-1.5deg); }
}

@media (max-width: 639px) {
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .photo-1 { grid-column: 1; grid-row: 1; transform: rotate(-1.5deg); }
    .photo-2 { grid-column: 2; grid-row: 1; transform: rotate(1.5deg);  }
    .photo-3 { grid-column: 1; grid-row: 2; transform: rotate(1deg);    }
    .photo-4 { grid-column: 2; grid-row: 2; transform: rotate(-1deg);   }
}


/* ==========================================================
   TEAM
   ========================================================== */

.team {
    padding: 0 !important;

    .team__wrapper {
        position: relative;

        .team__bg-image {
            max-width: 100%;
            width: 100%;
            display: block;
        }

        .team__card {
            position: absolute;
            right: 2rem;
            bottom: 2rem;
            padding: 2rem;
            background-color: rgb(41 28 11 / 85%);
            box-shadow: 0 30px 80px rgba(0,0,0,0.35), 0 8px 20px rgba(0,0,0,0.2);
            backdrop-filter: blur(20px);
            z-index: 10;
            max-width: 330px;

            p { 
                color: var(--grey);
                font-size: 13px;
            }
        }

        .team__card-title {
            font-family: 'Praho', serif;
            font-size: 22px;
            font-weight: 700;
            line-height: 1.15;
            margin-bottom: 16px;
            color: var(--card-text);
        }
    }
}


/* ==========================================================
   CONTACT
   ========================================================== */

.contact {

    .contact__wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 5rem;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact__heading {
        font-family: 'Praho', serif;
        font-size: clamp(42px, 7vw, 62px);
        font-weight: normal;
        line-height: 1.05;
        color: var(--text-dark);
        margin-bottom: 28px;
    }

    .contact__description {
        max-width: 420px;
    }

    .contact__item {
        padding: 2rem 0 1rem;
        margin: 1rem 0;
        border-top: 1px solid var(--gold);

        &:last-of-type {
            border-bottom: 1px solid var(--gold);
            padding-bottom: 2rem;
        }

        span {
            font-size: 13px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--grey);
        }

        h3 a {
            text-decoration: none;
            color: var(--text-dark);
            font-family: 'Praho', serif;
            font-size: clamp(18px, 7vw, 24px);
        }
    }
}


/* ==========================================================
   PHOTO
   ========================================================== */

section.photo {
    padding: 0;
}

.photo__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

.photo__image {
    max-width: 100%;
    background-color: rgb(41 28 11 / 85%);
    backdrop-filter: blur(20px);
    padding: 8px;
}

.photo__name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    position: relative;
    color: var(--text-dark);
    z-index: 2;
}

.photo__heading {
    font-family: 'Praho', serif;
    font-size: clamp(42px, 7vw, 62px);
    font-weight: normal;
    line-height: 1.05;
    margin-bottom: 28px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
    padding-top: 2rem;
    position: relative;

    .footer__copyright {
        border-top: 1px solid var(--gold);
        font-size: 13px;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 2rem 0;
    }

    a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 400;
    }
}


/* ==========================================================
   MENU
   ========================================================== */

.menu {
    position: fixed;
    top: 2.5rem;
    right: 5rem;
    z-index: 9999;
    background-color: rgb(41 28 11 / 85%);
    backdrop-filter: blur(20px);
    padding: .5rem 1rem;
    border-radius: 26px;
}

.nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    flex-shrink: 0;
}

.nav-toggle-label {
    text-transform: uppercase;
    color: var(--card-text);
    transition: color 0.25s ease;
}

.hamburger {
    width: 22px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    span {
        display: block;
        height: 1.5px;
        background: var(--card-text);
        border-radius: 1px;
        transition: transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.2),
                    opacity 0.25s ease,
                    width 0.3s ease;
        transform-origin: center;
    }

    span:nth-child(2) { width: 75%; }
}

.nav-toggle.is-open {
    .nav-toggle-label { color: var(--light); }

    .hamburger span { background: var(--light); }
    .hamburger span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); width: 100%; }
    .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--brown);
    display: grid;
    grid-template-rows: var(--nav-h) 1fr auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;

    &.is-open {
        opacity: 1;
        pointer-events: all;
    }
}

.overlay-top { grid-row: 1; }

.overlay-body {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(24px, 6vw, 80px);
    position: relative;
    z-index: 1;
}

.overlay-ornament {
    position: absolute;
    right: clamp(16px, 4vw, 60px);
    bottom: 0;
    font-family: 'Praho', serif;
    font-size: clamp(180px, 22vw, 320px);
    font-weight: 300;
    line-height: 0.85;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.overlay-nav {
    list-style: none;
    display: flex;
    flex-direction: column;

    li {
        border-bottom: 1px solid rgba(160, 120, 80, 0.12);
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.4s ease, transform 0.4s ease;

        &:first-child { border-top: 1px solid rgba(160, 120, 80, 0.12); }
    }

    a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: clamp(14px, 2vh, 20px) 0;
        text-decoration: none;
        color: var(--card-text);
        font-family: 'Praho', serif;
        font-size: clamp(1.6rem, 3.5vw, 2.4rem);
        letter-spacing: 0.01em;
        transition: color 0.2s ease;
        gap: 12px;

        &:hover { color: var(--gold); }
    }

    .nav-arrow {
        width: 18px;
        height: 11px;
        flex-shrink: 0;
        opacity: 0;
        transform: translateX(-6px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    a:hover .nav-arrow {
        opacity: 0.5;
        transform: translateX(0);
    }
}

.nav-overlay.is-open .overlay-nav li {
    opacity: 1;
    transform: translateY(0);

    &:nth-child(1) { transition-delay: 0.08s; }
    &:nth-child(2) { transition-delay: 0.13s; }
    &:nth-child(3) { transition-delay: 0.18s; }
    &:nth-child(4) { transition-delay: 0.23s; }
    &:nth-child(5) { transition-delay: 0.28s; }
    &:nth-child(6) { transition-delay: 0.33s; }
}

.overlay-footer {
    grid-row: 3;
    position: relative;
    z-index: 1;
    padding: 20px clamp(24px, 6vw, 80px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s;
}

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

.overlay-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;

    .contact-label {
        font-size: 0.62rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--card-text);
        font-weight: 400;
        margin-bottom: 2px;
    }

    a {
        font-family: 'Praho', sans-serif;
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        color: var(--gold);
        text-decoration: none;
        transition: color 0.2s ease;

        &:hover { color: var(--card-text); }
    }
}


/* ==========================================================
   MEDIA QUERIES
   ========================================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo {
        top: 1rem;
    }

    .menu {
        right: 1.5rem;
        top: 1rem;
    }

    .hero {
        display: block;
        height: auto;

        .hero__left {
            padding: 100px 32px 80px;
            min-height: auto;
            justify-content: start;
        }

        .hero__heading {
            margin-top: 60px;
        }

        .hero__logo {
            left: 32px;
            top: 1rem;
        }

        .hero__right {
            min-height: 50svh;
        }

        .hero__card {
            display: none;
        }
    }

    .about__wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service__wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event__wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;

        .event__left { order: 2; }
        .event__right { order: 1; }
    }

    .museum {
        .museum__name {
            grid-template-columns: 1fr;
            gap: 0;
            margin-bottom: 28px;
        }

        .museum__wrapper {
            grid-template-columns: 1fr;
        }
    }

    .team .team__wrapper {
        .team__card {
            position: relative !important;
            max-width: 100%;
            right: 0;
            bottom: 0;
        }
    }

    .contact .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .photo__wrapper {
        grid-template-columns: 1fr;
    }

    .photo__name {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 2rem;
    }
}
