:root {
    --bg-color: #F9F9F9;
    --text-color: #111;
    --accent-color: #E63946;
    /* Vermelho vibrante mas elegante */
    --secondary-color: #457B9D;

    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html.lenis, html {
    height: auto;
    background-color: #000; /* FORCE BLACK OVERSCROLL */
}

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

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: #000;
    /* GLOBAL BLACK BG: Solves white bar issue structurally */
    color: var(--text-color);
    overflow-x: hidden;
}

/* Ensure content areas stay light */
#content-wrapper {
    /* Transparent wrapper allows body black to show through at bottom */
    position: relative;
    z-index: 2;
}

section,
.product-section,
.about-section,
.contact-section {
    background-color: var(--bg-color);
    /* Ensure sections are opaque white/off-white */
}

.contact-section {
    /* Contact is already black, so it merges with body */
    background: #111;
}

/* Nav */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: auto;
}

.nav-contact {
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    pointer-events: auto;
    position: relative;
}

.nav-contact::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.nav-contact:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero */
.hero-section {
    height: 100vh;
    /* Fallback */
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For Parallax */
    z-index: 0;
}

.hero-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    z-index: 1;
    text-align: center;
    mix-blend-mode: normal;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 18vw;
    line-height: 0.8;
    margin: 0;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 1rem;
    font-weight: 300;
}

/* Generic Section Padding */
section {
    padding: 6rem 5%;
}

/* About Section */
.about-section {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 80vh;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 40ch;
    color: #555;
}

.about-image {
    flex: 1;
    height: 60vh;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* Product Showcase (ZigZag) */
.product-section {
    display: flex;
    flex-direction: column;
    /* Mobile first logic inside */
    margin: 4rem 0;
}

.product-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.layout-right .product-container {
    flex-direction: row-reverse;
}

.product-info {
    flex: 1;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin: 0 0 1rem 0;
    line-height: 1;
    text-transform: uppercase;
}

.product-price {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.product-desc {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
    /* Clean, modern typographic style */
    letter-spacing: -0.02em;
}

.contact-section {
    background: #111;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    /* Fix sticky footer gap */
    margin-bottom: -1px;
}

/* Ensure no whitespace below footer */
html,
body {
    height: 100%;
    background-color: #F9F9F9;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.product-visual {
    flex: 1.2;
    height: 70vh;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 1s ease;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

/* Scrapbook hover effect */
.product-visual:hover img {
    transform: scale(1.05) rotate(-2deg);
}

/* Scrapbook Tapes (Pseudo-elements) */
.tape-effect {
    position: relative;
    /* Ensure z-index stack is correct */
}

/* Base Tape Style */
.tape-effect::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 140px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.45);
    /* More visible */
    z-index: 10;
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.95;
    /* Irregular edges */
    clip-path: polygon(2% 5%, 98% 2%, 100% 95%, 0% 100%);
}

/* Tape Variations (Randomized via JS) */
.tape-v1::after {
    top: -15px;
    transform: translateX(-50%) rotate(-3deg);
}

.tape-v2::after {
    top: -12px;
    transform: translateX(-50%) rotate(2deg);
    width: 130px;
}

.tape-v3::after {
    top: -18px;
    left: 45%;
    /* Slightly off center */
    transform: translateX(-50%) rotate(-1deg);
    width: 150px;
}

/* Global Interactive Image (Click/Hover) */
.interactive-img {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
    cursor: pointer;
    transform-origin: center;
}

/* Desktop Hover */
@media (hover: hover) {
    .interactive-img:hover {
        transform: scale(1.02) rotate(-1deg);
        filter: brightness(1.1);
    }
}

/* Mobile Touch / Click Active */
.interactive-img:active {
    transform: scale(0.96) rotate(1deg);
    /* Press down effect */
    transition: transform 0.1s ease;
}

/* Photo Shadow (Physical Feel) */
.product-visual,
.img-wrapper img,
.about-image img {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Mood Grid - Collage Style */
/* Mood Grid - Masonry/Collage Style (No Cropping) */
.mood-grid {
    display: block;
    /* Switch to columns for masonry flow */
    column-count: 3;
    column-gap: 1.5rem;
}

.mood-grid .img-wrapper {
    break-inside: avoid;
    /* Prevent breaking inside image */
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.mood-grid img {
    width: 100%;
    height: auto;
    /* Allow natural height - NO CROPPING */
    display: block;
    border-radius: 12px;
    object-fit: contain;
}

/* Remove rigid grid span logic */

/* Contact Footer */
.contact-section {
    background: #111;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.contact-section h2 {
    font-family: var(--font-heading);
    font-size: 6rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.contact-section p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.contact-section .btn-cta {
    background: #fff;
    color: #111;
    font-size: 1.2rem;
    padding: 1.5rem 4rem;
}

.contact-section .btn-cta:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Full Image Section */
.full-image-section {
    padding: 0 !important;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    margin: 2rem 0;
}

.full-image-container {
    width: 100%;
    height: 120%;
    /* For parallax */
    position: relative;
}

.full-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main Footer Styling */
.main-footer {
    background-color: #000;
    color: #fff;
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
    /* CLEAN FIX: Removed negative margins. Body is now black, so no white bar possible. */
    z-index: 10;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 12vw;
    line-height: 0.8;
    margin: 0 0 4rem 0;
    color: #222;
    /* Dark grey for background feel */
    text-transform: uppercase;
    user-select: none;
}

.social-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.social-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 18vw;
        line-height: 0.9;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
        padding: 0 1rem;
    }

    .product-section {
        margin: 2rem 0;
        /* Drastically reduce product gap on mobile */
    }

    .product-container,
    .layout-right .product-container {
        flex-direction: column-reverse;
        gap: 1.5rem;
        width: 100%;
    }

    .product-info {
        text-align: left;
        padding: 0 1rem;
        width: 100%;
        margin-top: -1rem;
    }

    .product-visual {
        height: auto;
        aspect-ratio: 4/5;
        width: 100%;
        border-radius: 12px;
    }

    .about-section {
        flex-direction: column-reverse;
        padding-top: 2rem;
        gap: 2rem;
        min-height: auto;
    }

    .about-content {
        padding: 0 1rem;
    }

    .about-content h2 {
        font-size: 3rem;
    }

    .about-image {
        height: auto;
        aspect-ratio: 1/1;
        width: 100%;
    }

    .mood-grid {
        column-count: 1;
        /* Single column on mobile */
        column-gap: 0;
    }

    .mood-grid .img-wrapper {
        margin-bottom: 1.5rem;
    }

    .mood-grid img {
        height: auto;
    }

    .contact-section h2 {
        font-size: 3rem;
    }

    .contact-section {
        min-height: 50vh;
    }

    .product-title {
        font-size: 2.5rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .full-image-section {
        height: 50vh;
    }

    .main-nav {
        padding: 1.5rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-contact {
        font-size: 0.8rem;
    }

    .footer-title {
        font-size: 15vw;
        margin-bottom: 2rem;
    }

    .social-links {
        gap: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
}