:root {
    --color-bg: #0a0a0a;
    --color-text: #e0e0e0;
    --color-accent: #cda434; /* discreet gold */
    --color-muted: #888888;
    --color-white: #ffffff;
    --color-black: #000000;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --space-sm: 2rem;
    --space-md: 4rem;
    --space-lg: 8rem;
    --space-xl: 12rem;
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.loading {
    overflow: hidden;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease-out;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--color-white);
}

.nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 150px;
    max-width: 80vw;
    object-fit: contain;
    filter: invert(1);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-social {
    color: var(--color-white);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.nav-social:hover {
    color: var(--color-accent);
}

.nav-contact {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    margin-left: 1rem;
}

.nav-contact:hover {
    border-color: var(--color-white);
}

/* 1. Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Centraliza perfeitamente no olho/pupila */
    filter: grayscale(100%) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 4rem);
    color: var(--color-white);
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    opacity: 0;
}

/* 2. Bloco O Olhar */
.section-olhar {
    position: relative;
    overflow: hidden;
    padding: 15rem 0; /* Mais espaçamento superior e inferior para esticar a dobra */
    background-color: var(--color-bg);
}

.section-olhar .container {
    position: relative;
    z-index: 2;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-80px) translateX(25px) rotate(5deg) scale(1.05); }
    100% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
}

.bg-floater {
    position: absolute;
    opacity: 0.05;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 1;
    animation: floatAnimation 12s ease-in-out infinite;
}

.text-olhar {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 3rem);
    text-align: center;
    max-width: 900px; /* Reduzido levemente para quebrar mais linhas */
    margin: 0 auto;
    color: var(--color-white);
    line-height: 2.1; /* Linhas bem espaçadas para preencher o espaço */
    opacity: 0;
}

/* 3. Experiência Visual das Fotografias */
.section-gallery {
    padding: var(--space-md) 0 var(--space-xl);
    background-color: var(--color-bg);
}

/* Layout editorial original — large/medium/portrait com tamanhos variados */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 0 5%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.gallery-item img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 0.8s ease;
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

/* LARGE — largura total da tela, foto inteira sem corte */
.gallery-item.large {
    grid-column: span 12;
    margin-bottom: var(--space-sm);
}
.gallery-item.large img {
    height: auto;
    width: 100%;
}

/* MEDIUM — meia tela; proporção natural (sem corte) */
.gallery-item.medium {
    grid-column: span 6;
}
.gallery-item.medium img {
    height: auto;
}

.gallery-item.medium.offset {
    margin-top: var(--space-lg);
}

/* PORTRAIT — um terço da tela; proporção natural (sem corte) */
.gallery-item.portrait {
    grid-column: span 4;
}
.gallery-item.portrait img {
    height: auto;
}

@media (max-width: 1024px) {
    .gallery-item.portrait { grid-column: span 6; }
}

@media (max-width: 768px) {
    /* ── NAVBAR ── */
    .navbar {
        position: fixed;
        padding: 0.3rem 5%;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(10px);
        mix-blend-mode: normal;
    }
    .nav-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        gap: 0;
    }
    .nav-logo {
        height: 55px;
        max-width: 65vw;
    }
    .nav-links {
        justify-content: flex-end;
        gap: 0.8rem;
        flex-shrink: 0;
    }
    .nav-social {
        font-size: 1rem;
    }
    .nav-contact {
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-left: 0.4rem;
    }

    /* ── HERO ── */
    .hero {
        height: 42vh;
        min-height: 320px;
        justify-content: flex-end;
        padding-bottom: 0.8rem;
        padding-top: 0;
    }
    .hero-bg {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .hero-bg img {
        object-position: center center;
    }
    .hero-title {
        font-size: 1.3rem;
        margin-top: 0;
        margin-bottom: 0;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .hero-subtitle {
        display: none;
    }

    /* ── GALERIA mobile: coluna única, fotos completas sem corte ── */
    .gallery-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 4%;
    }
    .gallery-item,
    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.portrait,
    .gallery-item.medium.offset {
        height: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .gallery-item img,
    .gallery-item.large img,
    .gallery-item.medium img,
    .gallery-item.portrait img {
        width: 100% !important;
        height: auto !important;
        object-fit: unset !important;
        filter: grayscale(0%) !important;
        transform: none !important;
    }

    /* ── TEXTO OLHAR ── */
    .text-olhar {
        font-size: 1.3rem;
        padding: 0 1.2rem;
        line-height: 2;
    }
    .section-olhar {
        padding: 8rem 0;
    }
}

/* 4. Histórias Através das Fotografias */
.section-stories {
    padding: var(--space-xl) 0;
    background-color: #050505;
}

.story-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.story-title {
    font-size: clamp(2rem, 3vw, 3.5rem);
    color: var(--color-white);
    letter-spacing: 2px;
    opacity: 0;
}

.story-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    margin-bottom: var(--space-xl);
    gap: 5%;
}

.story-block.reverse {
    flex-direction: row-reverse;
}

.story-img-container {
    width: 60%;
    overflow: hidden;
    border-radius: 4px;
}

.story-img-container img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 0.8s ease;
}

.story-block:hover .story-img-container img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.story-text-container {
    width: 35%;
}

.story-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    color: var(--color-white);
    line-height: 1.5;
    font-style: italic;
}

@media (max-width: 768px) {
    .story-block, .story-block.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: var(--space-lg);
    }
    .story-img-container {
        width: 100%;
    }
    .story-text-container {
        width: 100%;
        text-align: center;
    }
}

/* 5. Bloco Narrativo */
.section-narrative {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg);
}

.narrative-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
}

.narrative-content {
    width: 50%;
}

.text-narrative {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    color: var(--color-white);
    line-height: 1.5;
    opacity: 0;
}

.narrative-author {
    width: 45%;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.narrative-author img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(80%);
}

@media (max-width: 768px) {
    .narrative-container {
        flex-direction: column;
        gap: 3rem;
    }
    .narrative-content, .narrative-author {
        width: 100%;
    }
}

/* 6. Presença Cultural */
.section-cultural {
    padding: var(--space-xl) 0;
    background-color: #080808;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cultural-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.cultural-text span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.cultural-text h3 {
    font-size: clamp(2rem, 2.5vw, 3rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cultural-text p {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

.cultural-logo img {
    max-width: 250px;
    filter: grayscale(100%) brightness(1.5) opacity(0.8);
    transition: filter 0.5s ease;
}

.cultural-logo:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
}

@media (max-width: 768px) {
    .cultural-grid {
        flex-direction: column;
        text-align: center;
    }
}

/* 7. Bloco Final */
.section-final {
    padding: var(--space-xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-black);
    text-align: center;
}

.final-quote {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    line-height: 1.3;
    opacity: 0;
}

.final-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    background: transparent;
}

.btn-social {
    padding: 1.2rem 1.5rem;
}

.btn-contact:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

/* Footer */
.footer {
    padding: var(--space-md) 0;
    background-color: var(--color-black);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.footer-logo {
    height: 180px;
    max-width: 80vw;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.9;
}

.footer-copy {
    color: var(--color-muted);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.8;
}

.developer-credit {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Utilities for animations */
.reveal-text, .reveal-text-up {
    visibility: hidden;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Exit Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.exit-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.exit-popup-content {
    position: relative;
    background-color: var(--color-bg);
    width: 90%;
    max-width: 900px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.exit-popup.show .exit-popup-content {
    transform: translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.exit-popup-close:hover {
    color: var(--color-accent);
}

.exit-popup-img {
    width: 50%;
    height: 450px;
}

.exit-popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.exit-popup-text {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.exit-popup-text h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .exit-popup-content {
        flex-direction: column;
        max-width: 400px;
    }
    .exit-popup-img {
        width: 100%;
        height: 200px;
    }
    .exit-popup-text {
        width: 100%;
        padding: 2rem;
    }
    .exit-popup-text h3 {
        font-size: 1.5rem;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}
