:root {
    --bg: #050505; /* Deep Black */
    --card-bg: rgba(5, 5, 5, 0.95);
    --text: #ffffff;
    --accent: #c41e3a; /* Cardinal Red */
    --accent-contrast: #ffffff; /* White text on red */
    --accent-gold: #4a4a4a; /* Neutral Grey for subtle accents */
    --font-head: 'Pirata One', cursive;
    --font-body: 'Montserrat', sans-serif;
    --radius: 24px;
    --btn-radius: 60px;
}

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

body { 
    background-color: var(--bg);
    /* Subtle texture overlay if available, otherwise solid deep color */
    background-image: url("/imagens/backgroundEN.png"); 
    background-size: 400px;
    background-blend-mode: soft-light; /* Blend texture with dark color */
    background-attachment: fixed; 
    background-repeat: repeat;
    color: var(--text); 
    font-family: var(--font-body); 
    font-weight: 400; 
    overflow-x: hidden; 
}

/* Navbar - Floating Pill */
nav {
    position: fixed; 
    top: 1.5rem; 
    left: 50%;
    transform: translateX(-50%) translateY(0); /* Always visible or animate if desired */
    width: 90%; 
    max-width: 1200px;
    padding: 0 2rem; 
    height: 70px; /* Slightly taller */
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000;
    
    /* Splattered Ink Style - Starts SOLID */
    background: rgba(5, 5, 5, 0.95); 
    backdrop-filter: blur(8px);
    border: 1px solid var(--accent); /* Solid border initially */
    border-radius: var(--btn-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.2);
    border-color: rgba(196, 30, 58, 0.3); /* Subtle border when transparent */
}

.nav-logo { 
    height: 50px; 
    width: auto; 
    /* Logo adjustments for dark theme */
    filter: brightness(0) invert(1); 
    opacity: 1; 
    transition: filter 0.5s ease, opacity 0.3s; 
}

/* Language Selector */
.lang-selector { 
    display: flex; gap: 1.2rem; 
    font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; 
    letter-spacing: 0.05em; color: var(--text); 
}
.lang-selector a { color: rgba(255,255,255,0.6); text-decoration: none; transition: 0.3s; }
.lang-selector a.active, .lang-selector a:hover { color: var(--accent); font-weight: 700; }
.divider { color: rgba(255,255,255,0.3); }

/* Typography */
h1 {
    font-family: var(--font-head); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1;
    color: var(--accent); /* Red Headlines */
    margin-bottom: 2rem;
    text-align: center; letter-spacing: 0.02em;
    max-width: 90%;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

h2 {
    font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--accent);
    margin-bottom: 2rem; line-height: 1.2; letter-spacing: 0.02em;
}

h3 {
    font-family: var(--font-head); font-size: 1.8rem; color: var(--text); display: block; margin-bottom: 1rem;
}

.label {
    display: block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em;
    color: var(--accent-gold); margin-bottom: 1rem; text-transform: uppercase; font-weight: 600;
}
.subtitle { 
    font-size: 0.8rem; letter-spacing: 0.3em; margin-bottom: 1.5rem; color: rgba(255,255,255,0.8); text-transform: uppercase; font-weight: 600;
}
.quote { 
    font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: #ccc; margin-top: 2rem; 
}
p { 
    font-size: 1.05em; line-height: 1.7; color: rgba(255,255,255,0.9); max-width: 500px; margin-bottom: 1.5rem; 
}

/* Premium List Styling */
ul.clean-list {
    list-style: none; padding: 0; margin-top: 1rem;
}
ul.clean-list li {
    font-family: var(--font-head); 
    font-size: 1.1rem;
    color: var(--text);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(196,30,58,0.2); /* Red subtle separator */
    display: flex; align-items: center; gap: 1rem;
}
ul.clean-list li::before {
    content: '✦'; 
    color: var(--accent);
    font-size: 1rem;
}

/* Sections */
section { position: relative; width: 100%; z-index: 2; }

/* HERO */
.hero {
    height: 100vh;
    width: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
    position: relative;
    padding: 0;
    z-index: 2;
    overflow: hidden; /* Ensure images stay within bounds */
    /* Background image moved to HTML stack for interaction */
}

.hero-content {
    z-index: 20; 
    position: absolute; 
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%;
    display: flex; flex-direction: column; align-items: center;
    text-shadow: 0 4px 50px rgba(0,0,0,0.8); 
    pointer-events: none;
}

.overlay-gradient { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26,23,37,0.8) 0%, rgba(26,23,37,0.4) 50%, rgba(26,23,37,0.95) 100%);
    z-index: 2; pointer-events: none;
}

.scroll-wrapper {
    position: absolute; bottom: 6rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; opacity: 0.8;
    color: var(--accent);
    z-index: 20;
}
.scroll-text { font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 0.5rem; color: var(--accent); }
.line { 
    width: 1px; height: 60px; background: rgba(255, 191, 0, 0.3); position: relative; overflow: hidden;
}
.line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent);
    transform: translateY(-100%);
    animation: scrollLine 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* GRID SECTIONS - Splattered Ink Container Style */
.grid-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4vw;
    padding: 10vh 5vw; 
    align-items: center;
    background: transparent;
}

.text-col { 
    display: flex; flex-direction: column; justify-content: center; 
    position: relative; z-index: 2; 
    /* The "Container" Look for text blocks */
    padding: 3rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(26, 23, 37, 0.6); /* Semi-transparent dark */
    backdrop-filter: blur(10px);
}

.image-col { position: relative; width: 100%; min-height: 500px; z-index: 2; } 

.image-plane {
    width: 100%; display: block; height: auto;
    opacity: 1; 
    border-radius: var(--radius); 
    border: 1px solid rgba(255, 191, 0, 0.3); /* Subtle border on images too */
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.image-plane:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02);
    border-color: var(--accent);
}

/* STUDIO STICKY GALLERY */
.studio-sticky-section {
    min-height: 100vh;
    display: flex; flex-direction: row; 
    align-items: flex-start; /* Changed from center to allow manual top positioning */
    padding: 120px 5vw 5vh 5vw; /* Fixed top space to clear header, flexible bottom */
    background: var(--bg);
    margin-top: -100px; 
    z-index: 5; position: relative; overflow: hidden;
}
.studio-sticky-section .text-col {
    /* Override padding for layout balance */
    margin-left: 2rem;
    padding: 2rem;
    background: rgba(26, 23, 37, 0.4);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 191, 0, 0.1);
}
.studio-carousel {
    position: relative; width: 100%;
    height: 65vh;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.studio-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.studio-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.studio-slide.active {
    opacity: 1;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: rgba(5, 5, 5, 0.7);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.carousel-btn:hover {
    background: var(--accent);
    color: #050505;
    transform: translateY(-50%) scale(1.08);
}
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

/* PROCESS */
.process-section { 
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 5rem 5%; background: #000; position: relative; overflow: hidden; color: #f9f9f9;
}
.process-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/imagens/bg_smoke.png');
    background-size: cover; background-position: center; opacity: 0.6; z-index: 0;
}
.process-section::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--bg) 0%, rgba(26,23,37,0.6) 50%, var(--bg) 100%);
    z-index: 1;
}

.section-header, .process-grid { position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 5rem; }

.process-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    text-align: left; padding-top: 2rem;
}

/* Glass Cards - Process */
.process-card { 
    padding: 3rem 2rem; 
    border-radius: var(--radius); 
    background: rgba(26, 23, 37, 0.8);
    border: 1px solid var(--accent);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative; overflow: hidden;
}

.process-card:hover { 
    background: rgba(255, 191, 0, 0.1); 
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 191, 0, 0.1);
}

.process-card .num { 
    position: absolute; top: -10px; right: 10px;
    font-size: 6rem; font-family: var(--font-head);
    color: var(--accent); opacity: 0.1; line-height: 1; transition: 0.4s;
}
.process-card:hover .num { opacity: 0.3; transform: scale(1.1); }

/* GALLERY */
.gallery-section { padding: 10vh 5vw; background: transparent; }
.gallery-masonry {
    column-count: 3; column-gap: 2rem; margin-top: 4rem;
    max-width: 1400px; margin-left: auto; margin-right: auto;
}
.gallery-masonry .image-plane {
    width: 100%; margin-bottom: 2rem; break-inside: avoid; display: block;
}

/* CONTACT */
.contact-section {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
    padding: 10vh 5vw; text-align: center;
    position: relative; color: #f9f9f9; z-index: 2; overflow: hidden;
}
/* Ensure dark overlay sits on top of the images but below content */
.contact-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, var(--bg) 0%, rgba(26,23,37,0.7) 50%, var(--bg) 100%);
    z-index: 1; pointer-events: none;
}
.contact-content {
    position: relative; z-index: 2; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
}

/* Global Button Styles - Pill Shape */
.cta-button {
    display: inline-block; 
    padding: 1.2rem 4rem; 
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--accent-contrast); /* Dark Text */
    text-decoration: none;
    font-family: var(--font-body); font-weight: 700;
    font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
    transition: 0.3s;
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}
.cta-button:hover { 
    background: transparent; 
    color: var(--accent); 
    box-shadow: 0 10px 30px rgba(255, 191, 0, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.merged-footer {
    position: relative; 
    margin-top: 5rem;
    width: 100%;
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.merged-footer .footer-logo { 
    height: 45px; opacity: 0.6; filter: brightness(0) invert(1); transition: 0.3s;
}
.merged-footer .footer-logo:hover { opacity: 1; }

.merged-footer .copyright {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    margin-top: 0.2rem;
    font-family: var(--font-body);
}

.contact-content h2 {
    color: var(--accent); /* Back to Red */
    margin-bottom: 2rem;
}

.contact-content .label {
    color: var(--accent-gold); /* Back to Grey Label */
}

/* --- FOOTER LAYOUT GRID --- */
.footer-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1100px;
    margin: 4rem auto 0 auto;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 191, 0, 0.2);
    align-items: center;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
    width: 100%;
    border-top: none; /* Removed individual border */
    margin-top: 0;
    padding-top: 0;
}

.detail-item {
    text-align: left;
}

/* Responsive Grid for Contact Details */
@media (max-width: 900px) {
    .footer-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        border-top: none;
    }
    
    .contact-details {
        text-align: center;
        align-items: center;
        border-top: 1px solid rgba(255, 191, 0, 0.2);
        padding-top: 2rem;
    }
    
    .detail-item { text-align: center; }

    /* Fix pixelated background on mobile */
    .hero, .contact-section {
        background-attachment: scroll !important;
    }
}
/* MAP ES */
.map-wrapper-es {
    position: relative;
    width: 100%;
    height: 300px; /* Reduced Size */
    margin-top: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 191, 0, 0.2);
    background: #111;
}

.map-wrapper-es iframe {
    transition: filter 0.5s ease;
}

.map-wrapper-es:hover iframe {
    filter: grayscale(0%) invert(0%) opacity(1) !important;
}

.map-link-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--accent-gold);
    font-family: var(--font-head);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}
.map-link-overlay:hover { opacity: 1; color: white; }

@media (max-width: 900px) {
    .nav-logo { height: 40px; }
    nav { 
        width: 92%; top: 1rem; padding: 0 1rem; height: 60px;
        transform: translateX(-50%) translateY(0); /* Always show on mobile too */
    }
    .grid-section { grid-template-columns: 1fr; gap: 4rem; padding: 10vh 5vw; text-align: center; }
    .text-col { padding: 2rem 1rem; margin-bottom: 2rem; }
    .gallery-masonry { column-count: 1; }
    .process-grid { grid-template-columns: 1fr; }
    
    .studio-sticky-section { flex-direction: column-reverse; height: auto; padding: 5vh 5vw; }
}



/* ... existing code ... */

/* Torn / Irregular Edge Utilities */
/* Applying distinct clip-paths to each section with TOP and BOTTOM jagged edges */

/* Common padding to prevent clipping of content */
.hero, .grid-section, .process-section, .gallery-section {
    padding-top: 12rem;
    padding-bottom: 12rem;
}

/* 1. Hero (Bottom jagged only - Top is screen edge) */
.hero {
    padding-top: 0; /* Keep hero top flush */
    clip-path: polygon(
        0% 0%, 100% 0%, 
        100% calc(100% - 40px), 
        92% 100%, 85% calc(100% - 20px), 78% 100%, 70% calc(100% - 50px), 62% 100%, 
        55% calc(100% - 30px), 48% 100%, 40% calc(100% - 45px), 30% 100%, 
        20% calc(100% - 25px), 10% 100%, 0% calc(100% - 50px)
    );
    margin-bottom: -50px; 
    z-index: 10;
}

/* 2. Grid Section (About) - Top jagged & Bottom jagged */
.grid-section:not(.studio-sticky-section) {
    background: rgba(26, 23, 37, 0.4); /* Add backing to make tear visible */
    clip-path: polygon(
        /* Top Edge */
        0% 40px, 5% 10px, 10% 45px, 15% 5px, 22% 35px, 28% 10px, 35% 40px, 
        42% 5px, 50% 30px, 58% 5px, 65% 45px, 72% 10px, 80% 35px, 88% 5px, 95% 40px, 100% 10px,
        /* Right Edge */
        100% 100%, 
        /* Bottom Edge */
        95% calc(100% - 40px), 88% 100%, 80% calc(100% - 25px), 72% 100%, 64% calc(100% - 45px), 
        55% 100%, 45% calc(100% - 30px), 38% 100%, 30% calc(100% - 50px), 22% 100%, 
        15% calc(100% - 30px), 8% 100%, 0% calc(100% - 40px)
    );
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 9;
}

/* 3. Process Section - Top jagged & Bottom jagged */
.process-section {
    clip-path: polygon(
        /* Top Edge - wide gentle tears */
        0% 20px, 8% 50px, 15% 10px, 25% 40px, 35% 15px, 45% 55px, 55% 10px, 
        68% 40px, 78% 15px, 88% 50px, 96% 20px, 100% 50px,
        /* Right Edge */
        100% 100%,
        /* Bottom Edge - sharp small tears */
        96% calc(100% - 30px), 92% 100%, 88% calc(100% - 20px), 84% 100%, 75% calc(100% - 40px), 
        68% 100%, 60% calc(100% - 25px), 52% 100%, 44% calc(100% - 35px), 36% 100%, 
        28% calc(100% - 20px), 20% 100%, 12% calc(100% - 35px), 5% 100%, 0% calc(100% - 25px)
    );
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 8;
}

/* 4. Studio Section - Top jagged & Bottom jagged */
.studio-sticky-section {
    clip-path: polygon(
        /* Top Edge - distinct pattern */
        0% 50px, 6% 10px, 12% 40px, 18% 5px, 24% 45px, 30% 15px, 38% 50px, 
        46% 10px, 54% 40px, 62% 15px, 70% 50px, 78% 10px, 86% 40px, 94% 20px, 100% 45px,
        /* Right Edge */
        100% 100%,
        /* Bottom Edge */
        100% calc(100% - 40px), 94% 100%, 88% calc(100% - 20px), 82% 100%, 75% calc(100% - 45px), 
        68% 100%, 60% calc(100% - 30px), 50% 100%, 42% calc(100% - 40px), 34% 100%, 
        25% calc(100% - 25px), 18% 100%, 10% calc(100% - 40px), 4% 100%, 0% calc(100% - 30px)
    );
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 7;
}

/* 5. Gallery Section */
.gallery-section {
    background: rgba(26, 23, 37, 0.4); /* subtle backing */
    clip-path: polygon(
        /* Top Edge */
        0% 30px, 4% 60px, 10% 20px, 15% 50px, 20% 15px, 28% 55px, 36% 25px, 
        44% 60px, 52% 20px, 60% 50px, 68% 15px, 76% 55px, 84% 25px, 92% 50px, 100% 20px,
        /* Right Edge */
        100% 100%,
        /* Bottom Edge */
        96% calc(100% - 50px), 90% 100%, 84% calc(100% - 25px), 78% 100%, 70% calc(100% - 45px), 
        62% 100%, 55% calc(100% - 30px), 48% 100%, 40% calc(100% - 50px), 32% 100%, 
        24% calc(100% - 35px), 16% 100%, 8% calc(100% - 20px), 0% 100%
    );
    margin-top: -50px;
    margin-bottom: -50px;
    z-index: 6;
}

/* 6. Contact Section (Final) - Top flat (covered) */
.contact-section {
    clip-path: polygon(
        0% 40px, 5% 0px, 12% 45px, 20% 5px, 28% 40px, 35% 10px, 42% 50px, 
        50% 15px, 58% 45px, 65% 10px, 72% 50px, 80% 15px, 88% 40px, 95% 5px, 100% 45px,
        100% 100%, 0% 100%
    );
    margin-top: -100px; /* Slight overlap for paper tear effect */
    z-index: 5;
}
