/* =====================================================
   ALAPOK
===================================================== */

:root {
    --black: #11100f;
    --black-soft: #181716;
    --cream: #eee9e0;
    --cream-dark: #d7d0c4;
    --gold: #b79b70;
    --gold-light: #cdb895;
    --gray: #96908a;

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;

    --container: 1380px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 300;
    overflow-x: hidden;
}

body.menu-open,
body.lightbox-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =====================================================
   BETÖLTŐ
===================================================== */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: var(--black);

    display: flex;
    justify-content: center;
    align-items: center;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-name {
    color: var(--cream);
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: 12px;
    padding-left: 12px;

    animation: loaderPulse 1.5s ease infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100px;

    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5vw;

    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo span {
    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--serif);
    font-size: 24px;
}

.logo strong {
    font-size: 12px;
    letter-spacing: 5px;
    font-weight: 500;
}

.desktop-nav {
    display: flex;
    gap: 38px;
}

.desktop-nav a {
    position: relative;

    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;

    opacity: 0.8;

    transition: opacity 0.3s ease;
}

.desktop-nav a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--gold-light);

    transition: width 0.3s ease;
}

.desktop-nav a:hover {
    opacity: 1;
}

.desktop-nav a:hover::after {
    width: 100%;
}


/* =====================================================
   MENÜ GOMB
===================================================== */

.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;

    border: 0;
    background: transparent;

    cursor: pointer;

    position: relative;
}

.menu-toggle span {
    position: absolute;

    width: 25px;
    height: 1px;

    background: white;

    left: 10px;

    transition: transform 0.3s ease;
}

.menu-toggle span:first-child {
    top: 19px;
}

.menu-toggle span:last-child {
    top: 26px;
}

body.menu-open .menu-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}


/* =====================================================
   MOBIL MENÜ
===================================================== */

.mobile-menu {
    position: fixed;
    inset: 0;

    background: var(--black);

    z-index: 90;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 10vw;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

body.menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu nav a {
    font-family: var(--serif);
    font-size: clamp(48px, 11vw, 90px);
    line-height: 0.95;

    transition: color 0.3s ease;
}

.mobile-menu nav a:hover {
    color: var(--gold-light);
}

.mobile-menu-footer {
    position: absolute;
    bottom: 40px;

    font-size: 9px;
    letter-spacing: 3px;
    color: var(--gray);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 100vh;
    height: 900px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    object-position: center 25%;

    animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(8, 7, 7, 0.82) 0%,
            rgba(8, 7, 7, 0.46) 40%,
            rgba(8, 7, 7, 0.10) 75%,
            rgba(8, 7, 7, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(90%, var(--container));
    margin: 0 auto;

    padding-top: 90px;
}

.hero-small {
    font-size: 10px;
    letter-spacing: 5px;
    color: var(--gold-light);

    margin-bottom: 28px;

    opacity: 0;
    animation: revealUp 1s 0.4s forwards;
}

.hero h1 {
    max-width: 800px;

    font-family: var(--serif);
    font-size: clamp(64px, 8vw, 125px);
    line-height: 0.83;
    font-weight: 400;

    letter-spacing: -4px;

    opacity: 0;
    animation: revealUp 1s 0.55s forwards;
}

.hero h1 em {
    color: var(--gold-light);
    font-weight: 400;
}

.hero-content p {
    max-width: 380px;

    margin-top: 42px;

    font-size: 14px;
    line-height: 1.9;

    color: rgba(255, 255, 255, 0.72);

    opacity: 0;
    animation: revealUp 1s 0.7s forwards;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;

    margin-top: 42px;

    padding-bottom: 12px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.4);

    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;

    opacity: 0;

    animation: revealUp 1s 0.85s forwards;

    transition:
        gap 0.3s ease,
        border-color 0.3s ease;
}

.hero-link i {
    font-size: 18px;
    font-style: normal;
}

.hero-link:hover {
    gap: 35px;
    border-color: var(--gold-light);
}

.hero-number {
    position: absolute;
    right: 5vw;
    bottom: 70px;

    font-size: 10px;
    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.6);
}

.hero-scroll {
    position: absolute;
    left: 5vw;
    bottom: 50px;

    display: flex;
    align-items: center;
    gap: 18px;

    font-size: 8px;
    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.6);
}

.hero-scroll span {
    display: block;

    width: 50px;
    height: 1px;

    background: rgba(255, 255, 255, 0.5);
}

@keyframes revealUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================================
   KÖZÖS SECTION
===================================================== */

.section {
    width: min(90%, var(--container));
    margin: 0 auto;

    padding-top: 150px;
    padding-bottom: 150px;
}

.heading-label,
.intro-label {
    display: flex;
    align-items: center;
    gap: 16px;

    color: var(--gold-light);

    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.heading-label span,
.intro-label span {
    color: rgba(255, 255, 255, 0.35);
}


/* =====================================================
   INTRO
===================================================== */

.intro {
    display: grid;
    grid-template-columns: 30% 70%;
}

.intro-text {
    max-width: 780px;
}

.intro-text h2 {
    font-family: var(--serif);
    font-size: clamp(60px, 7vw, 105px);
    line-height: 0.85;
    font-weight: 400;

    letter-spacing: -3px;

    margin-bottom: 55px;
}

.intro-text h2 em {
    color: var(--gold-light);
}

.intro-text p {
    max-width: 520px;

    font-size: 14px;
    line-height: 2;

    color: rgba(238, 233, 224, 0.65);

    margin-bottom: 18px;
}


/* =====================================================
   PORTFÓLIÓ
===================================================== */

.portfolio {
    padding-top: 100px;
}

.section-heading {
    margin-bottom: 100px;
}

.section-heading h2 {
    font-family: var(--serif);
    font-size: clamp(65px, 8vw, 120px);
    font-weight: 400;
    line-height: 0.8;

    letter-spacing: -4px;

    margin-top: 30px;
}

.section-heading h2 em {
    color: var(--gold-light);
}


.portfolio-grid {
    display: grid;

    grid-template-columns:
        repeat(12, 1fr);

    column-gap: 30px;
    row-gap: 110px;
}


/* =====================================================
   KÁRTYÁK
===================================================== */

.portfolio-card {
    position: relative;
}

.card-large {
    grid-column: 1 / 7;
}

.card-small {
    grid-column: 9 / 13;
    margin-top: 130px;
}

.card-wide {
    grid-column: 4 / 10;
}

.card-tall {
    grid-column: 1 / 6;
}

.card-medium {
    grid-column: 8 / 13;
    margin-top: 100px;
}

.card-image {
    position: relative;

    overflow: hidden;

    background: #242220;
}

.card-large .card-image {
    aspect-ratio: 0.78;
}

.card-small .card-image {
    aspect-ratio: 0.75;
}

.card-wide .card-image {
    aspect-ratio: 1.35;
}

.card-tall .card-image {
    aspect-ratio: 0.78;
}

.card-medium .card-image {
    aspect-ratio: 1;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 1s cubic-bezier(.2, .7, .2, 1),
        filter 0.6s ease;
}

.portfolio-card:hover .card-image img {
    transform: scale(1.045);
    filter: brightness(0.75);
}

.card-number {
    position: absolute;
    left: 22px;
    top: 22px;

    font-size: 9px;
    letter-spacing: 2px;

    color: white;
}

.card-open {
    position: absolute;

    right: 22px;
    bottom: 22px;

    width: 50px;
    height: 50px;

    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);

    color: white;

    font-size: 24px;
    font-weight: 200;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.card-open:hover {
    background: white;
    color: var(--black);
    transform: rotate(90deg);
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    padding-top: 18px;
}

.card-info span {
    color: var(--gray);

    font-size: 8px;
    letter-spacing: 3px;
}

.card-info h3 {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
}


/* =====================================================
   STATEMENT
===================================================== */

.statement {
    position: relative;

    min-height: 760px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.statement-image {
    position: absolute;
    inset: 0;
}

.statement-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    filter: grayscale(25%);
}

.statement-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(10, 9, 8, 0.65),
            rgba(10, 9, 8, 0.15),
            rgba(10, 9, 8, 0.6));
}

.statement-content {
    position: relative;

    text-align: center;

    z-index: 2;
}

.statement-content span {
    font-size: 9px;
    letter-spacing: 5px;
    color: var(--gold-light);
}

.statement-content h2 {
    margin-top: 35px;

    font-family: var(--serif);
    font-size: clamp(70px, 9vw, 135px);
    line-height: 0.8;

    font-weight: 400;

    letter-spacing: -5px;
}

.statement-content h2 em {
    color: var(--gold-light);
}


/* =====================================================
   GALÉRIA
===================================================== */

.gallery {
    padding-bottom: 180px;
}

.gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.gallery-heading h2 {
    max-width: 650px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(12, 1fr);

    gap: 18px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item::after {
    content: "NAGYÍTÁS +";

    position: absolute;
    right: 20px;
    bottom: 20px;

    padding: 9px 12px;

    background: rgba(15, 14, 13, 0.65);
    backdrop-filter: blur(5px);

    font-size: 8px;
    letter-spacing: 2px;

    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    height: 100%;
    object-fit: cover;

    transition: transform 0.8s cubic-bezier(.2, .7, .2, 1);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-portrait {
    grid-column: 1 / 4;
    height: 580px;
}

.gallery-wide {
    grid-column: 4 / 9;
    height: 580px;
}

.gallery-square {
    grid-column: 9 / 13;
    height: 580px;
}

.gallery-tall {
    grid-column: 2 / 6;
    height: 500px;
    margin-top: 18px;
}

.gallery-grid .gallery-wide:last-child {
    grid-column: 6 / 12;
    height: 500px;
    margin-top: 18px;
}


/* =====================================================
   ABOUT
===================================================== */

.about {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10vw;

    align-items: center;

    background: var(--black-soft);
}

.about-image {
    position: relative;

    max-width: 570px;
}

.about-image img {
    aspect-ratio: 0.8;
    object-fit: cover;
}

.about-image-label {
    position: absolute;

    right: -25px;
    bottom: 35px;

    padding: 18px 24px;

    background: var(--gold);

    color: var(--black);

    font-size: 10px;
    letter-spacing: 4px;
}

.about-content h2 {
    font-family: var(--serif);
    font-size: clamp(60px, 7vw, 100px);
    line-height: 0.82;
    font-weight: 400;

    letter-spacing: -4px;

    margin: 35px 0 45px;
}

.about-content h2 em {
    color: var(--gold-light);
}

.about-content>p {
    max-width: 530px;

    color: rgba(238, 233, 224, 0.65);

    font-size: 14px;
    line-height: 2;

    margin-bottom: 18px;
}

.about-details {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;

    margin-top: 55px;

    max-width: 480px;
}

.about-details div {
    display: flex;
    align-items: center;
    gap: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);

    padding-top: 14px;
}

.about-details strong {
    font-size: 9px;
    color: var(--gold-light);
    font-weight: 400;
}

.about-details span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
    position: relative;

    min-height: 800px;

    display: flex;
    align-items: center;

    padding: 120px 5vw;

    overflow: hidden;

    background: var(--cream);
    color: var(--black);
}

.contact-inner {
    position: relative;
    z-index: 2;

    width: min(90%, 800px);
}

.contact .heading-label {
    color: #947a54;
}

.contact h2 {
    font-family: var(--serif);

    font-size: clamp(90px, 12vw, 180px);

    line-height: 0.72;

    font-weight: 400;

    letter-spacing: -7px;

    margin: 45px 0;
}

.contact h2 em {
    color: #9d835c;
}

.contact p {
    max-width: 480px;

    font-size: 14px;
    line-height: 2;

    color: rgba(17, 16, 15, 0.65);

    margin-bottom: 40px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 35px;

    padding: 20px 0;

    border-bottom: 1px solid var(--black);

    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;

    transition: gap 0.3s ease;
}

.contact-button i {
    font-size: 18px;
    font-style: normal;
}

.contact-button:hover {
    gap: 55px;
}

.contact-bg-text {
    position: absolute;

    right: -5vw;
    bottom: -80px;

    font-family: var(--serif);

    font-size: 35vw;
    line-height: 0.7;

    color: rgba(17, 16, 15, 0.035);

    user-select: none;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    min-height: 110px;

    padding: 35px 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    background: var(--black);
}

.footer-logo {
    font-family: var(--serif);
    font-size: 25px;
    letter-spacing: 4px;
}

.footer-center {
    font-size: 9px;
    color: var(--gray);
    letter-spacing: 1px;
}

.back-top {
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--gray);

    transition: color 0.3s ease;
}

.back-top:hover {
    color: white;
}


/* =====================================================
   LIGHTBOX
===================================================== */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 1000;

    background: rgba(8, 7, 6, 0.96);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 1100px;
    max-height: 90vh;

    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;

    width: auto;

    object-fit: contain;

    margin: auto;

    transform: scale(0.96);

    transition: transform 0.5s ease;
}

.lightbox.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-title {
    margin-top: 18px;

    font-family: var(--serif);
    font-size: 25px;

    color: var(--cream);
}

.lightbox-close {
    position: absolute;

    right: 35px;
    top: 30px;

    width: 50px;
    height: 50px;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;

    background: transparent;

    color: white;

    font-size: 30px;
    font-weight: 200;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.lightbox-close:hover {
    background: white;
    color: black;
    transform: rotate(90deg);
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1000px) {

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 800px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-large,
    .card-small,
    .card-wide,
    .card-tall,
    .card-medium {
        grid-column: auto;
        margin-top: 0;
    }

    .card-wide {
        grid-column: 1 / -1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-portrait,
    .gallery-wide,
    .gallery-square,
    .gallery-tall,
    .gallery-grid .gallery-wide:last-child {
        grid-column: auto;
        height: 500px;
        margin-top: 0;
    }

    .about {
        gap: 7vw;
    }

}


/* =====================================================
   MOBIL
===================================================== */

@media (max-width: 650px) {

    .site-header {
        height: 80px;
        padding: 0 25px;
    }

    .logo strong {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .logo span {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .hero {
        min-height: 760px;
        height: 100vh;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(8, 7, 7, 0.7),
                rgba(8, 7, 7, 0.2));
    }

    .hero-content {
        padding-top: 50px;
    }

    .hero h1 {
        font-size: clamp(55px, 16vw, 85px);
        letter-spacing: -3px;
    }

    .hero-content p {
        font-size: 12px;
        max-width: 290px;
    }

    .hero-number {
        right: 25px;
        bottom: 35px;
    }

    .hero-scroll {
        display: none;
    }

    .section {
        width: 90%;
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .intro-text h2,
    .section-heading h2,
    .about-content h2 {
        font-size: 65px;
        letter-spacing: -3px;
    }

    .intro-text h2 {
        margin-bottom: 40px;
    }

    .portfolio {
        padding-top: 80px;
    }

    .section-heading {
        margin-bottom: 65px;
    }

    .portfolio-grid {
        display: flex;
        flex-direction: column;
        gap: 70px;
    }

    .card-large .card-image,
    .card-small .card-image,
    .card-wide .card-image,
    .card-tall .card-image,
    .card-medium .card-image {
        aspect-ratio: 0.85;
    }

    .card-wide .card-image {
        aspect-ratio: 1;
    }

    .statement {
        min-height: 620px;
    }

    .statement-content h2 {
        font-size: 70px;
        letter-spacing: -3px;
    }

    .gallery-heading {
        display: block;
    }

    .gallery-heading h2 {
        margin-top: 30px;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
    }

    .gallery-portrait,
    .gallery-wide,
    .gallery-square,
    .gallery-tall,
    .gallery-grid .gallery-wide:last-child {
        height: 500px;
    }

    .about {
        display: flex;
        flex-direction: column;

        gap: 70px;

        padding-left: 5%;
        padding-right: 5%;
    }

    .about-image {
        width: 90%;
    }

    .about-content {
        width: 100%;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .contact {
        min-height: 700px;

        padding: 100px 7%;
    }

    .contact h2 {
        font-size: 95px;
        letter-spacing: -5px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;

        text-align: center;
    }

    .lightbox {
        padding: 25px;
    }

    .lightbox-close {
        right: 20px;
        top: 20px;
    }

}


/* =====================================================
   MOZGÁS CSÖKKENTÉSE
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}