:root {
    --bg: #f9f9f9;
    --card-bg: #eaeaea;
    --text: #111111;
    --accent: #111111;
    --accent-contrast: #d4d4d4; /* Light grey for contrast on dark backgrounds */
    --accent-gold: #333; /* Replaced gold with dark grey as requested */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
}

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

body { 
    background-color: var(--bg);
    /* New Leaf Pattern Background */
    background-image: url("/imagens/leaves_pattern_bg.png"); 
    background-size: 600px; 
    background-attachment: fixed; /* Premium feel */
    background-repeat: repeat;
    color: var(--text); 
    font-family: var(--font-body); 
    font-weight: 400; 
    overflow-x: hidden; 
}

/* CANVAS setup */


/* Navbar - Floating Pill, Scroll Reveal */
nav {
    position: fixed; 
    top: 1.5rem; 
    left: 50%;
    transform: translateX(-50%) translateY(-20px); /* Start slightly larger offset for animation */
    width: 90%; 
    max-width: 1200px;
    padding: 0 2rem; /* Adjusted horizontal padding */
    height: 60px; /* Fixed height for structure */
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000;
    overflow: visible; /* Allow logo to hang */
    
    /* Authentic Glassmorphism */
    background: transparent; /* Very transparent */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05); /* Lighter border initially */
    border-radius: 50px;
    box-shadow: none;
    
    opacity: 0; /* Hidden initially */
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled State - Reveals the Floating Pill */
nav.scrolled {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* Even more transparent as requested to not obstruct view */
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.01);
    backdrop-filter: blur(8px); 
}

/* Logo Adjustment */
.nav-logo { 
    height: 50px; 
    width: auto; 
    filter: brightness(0); /* Black solid logo for light sections */
    opacity: 1; 
    transition: filter 0.5s ease, opacity 0.3s; 
}

/* Nav Dark Mode (When over dark sections) */
nav.nav-dark .nav-logo {
    filter: brightness(0) invert(1) !important; /* Invert to White */
}

nav.nav-dark .lang-selector {
    color: #ffffff !important;
}

nav.nav-dark .lang-selector a {
    color: #dddddd !important;
}

nav.nav-dark .lang-selector a.active,
nav.nav-dark .lang-selector a:hover {
    color: #ffffff !important;
}

nav.nav-dark {
    background: rgba(0, 0, 0, 0.6) !important; /* Slightly darker for better text contrast */
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.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: #222222; text-decoration: none; transition: 0.3s; }
.lang-selector a.active, .lang-selector a:hover { color: #000000; font-weight: 700; }

/* ... existing typography ... */

/* Global Reductions & Resets */
.hero-content, .overlay-gradient {
    display: none; /* Old floating styles removed */
}

/* Responsive */
@media (max-width: 900px) {
    .nav-logo { height: 45px; }
    /* ... rest ... */
    nav { 
        width: 95%; top: 1rem; padding: 0.5rem 1rem;
    }
    nav.scrolled { padding: 0.5rem 1rem; }
}
h1 {
    font-family: var(--font-head); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.0;
    color: #f9f9f9; /* White text for contrast on full-bleed hero */
    margin-bottom: 2rem;
    text-align: center; letter-spacing: -0.03em;
    max-width: 90%;
}

/* Large impactful H2 */
h2 {
    font-family: var(--font-head); font-size: clamp(3rem, 6vw, 4.5rem); color: var(--text);
    margin-bottom: 2rem; line-height: 1.1; letter-spacing: -0.01em;
}

.label {
    display: block; font-family: var(--font-body); font-size: 0.75rem; letter-spacing: 0.2em;
    color: #666; margin-bottom: 1rem; text-transform: uppercase; font-weight: 600;
}
.contact-section .label { color: #bbb; }
.subtitle { 
    font-size: 0.8rem; letter-spacing: 0.3em; margin-bottom: 1.5rem; color: #ddd; 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.1em; line-height: 1.6; color: #333; max-width: 500px; margin-bottom: 1.5rem; 
}

/* Premium List Styling (Non-Word Doc Look) */
ul.clean-list {
    list-style: none; /* Remove default bullets */
    padding: 0;
    margin-top: 1rem;
}
ul.clean-list li {
    font-family: var(--font-head); /* Use serif for list items for elegance */
    font-size: 1.1rem;
    color: var(--text);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator */
    display: flex;
    align-items: center;
    gap: 1rem;
}
ul.clean-list li::before {
    content: '•'; /* Custom bullet or icon */
    color: var(--accent-contrast);
    font-size: 1.5rem;
    line-height: 1;
}

/* Divider */
.separator { width: 40px; height: 1px; background: #000; margin: 2rem auto; }

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



/* HERO - Restored to "Almost Full" Safari Look with Shadow */
.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; 
    
    /* Static Background setup like footer */
    background-image: url('/imagens/s1.jpg?v=5');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.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.6); 
    pointer-events: none;
}

.overlay-gradient { 
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Stronger dark overlay for premium static look */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    pointer-events: none;
    display: block;
}

.scroll-wrapper {
    position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; opacity: 0.8;
    color: #fff; /* Ensure white text on image */
    z-index: 20;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.scroll-text { font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 0.5rem; color: #fff; }
.line { 
    width: 1px; 
    height: 60px; 
    background: rgba(255, 255, 255, 0.2); 
    position: relative;
    overflow: hidden;
}
.line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    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 */
.grid-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8vw;
    padding: 10vh 5vw; 
    align-items: center;
    background: transparent; /* Show texture */
}
.grid-section.reverse { 
    background: rgba(234, 234, 234, 0.4); /* Semi-transparent for texture interaction */
    direction: rtl; 
}
.grid-section.reverse .text-col { direction: ltr; }

.text-col { display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.image-col { position: relative; width: 100%; min-height: 500px; z-index: 2; } 

.image-plane {
    width: 100%; display: block;
    height: auto;
    opacity: 1; /* Visible CSS Image */
    border-radius: var(--radius); /* Rounded images */
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.image-plane:hover {
    filter: grayscale(0%);
}

/* STUDIO STICKY GALLERY */
.studio-sticky-section {
    min-height: 100vh;
    display: flex;
    flex-direction: row; /* Default for desktop */
    align-items: center;
    padding: 0 5vw;
    background: var(--bg);
    z-index: 5;
    position: relative;
    overflow: hidden;
}
.studio-carousel {
    position: relative;
    width: 100%;
    max-height: 85vh;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.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: none;
    background: rgba(255, 255, 255, 0.85);
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.studio-sticky-section .text-col {
    padding-left: 5vw; /* Positioned via parent flex */
}

/* PROCESS - Creative Ink Design */
.process-section { 
    min-height: 100vh; /* Ensure full viewport height to contain image */
    display: flex; flex-direction: column; justify-content: center;
    padding: 5rem 5%; 
    background: #000; 
    position: relative;
    overflow: hidden;
    color: #f9f9f9;
}

/* Background Ink Smoke Image */
.process-section::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/imagens/bg_smoke.png');
    background-size: contain; /* Shows full image without zoom/crop */
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1.0; 
    z-index: 0;
    transition: transform 10s ease-out;
}

.process-section:hover::before {
    transform: scale(1.05); /* Slow breathe effect */
}

/* Darker overlay for text readability on sharp image */
.process-section::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    z-index: 1;
}

.section-header, .process-grid {
    position: relative; z-index: 2; /* Content above overlay */
}

.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-card { 
    padding: 3rem 2rem; 
    border-radius: var(--radius); 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    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, 255, 255, 0.08); 
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Large Number Styling */
.process-card .num { 
    position: absolute; top: -15px; right: 10px;
    font-size: 6rem; 
    font-family: var(--font-head);
    color: #fff; 
    opacity: 0.05; 
    line-height: 1;
    transition: 0.4s;
}
.process-card:hover .num {
    opacity: 0.15;
    transform: scale(1.1);
}

.process-card h3 { 
    font-size: 1.8rem; color: #f9f9f9; margin-bottom: 1rem; letter-spacing: 0.05em; 
}
.process-card p {
    font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.7);
}

.process-section h2, .process-section h3, .process-section p, .process-section .num {
    color: #f9f9f9;
}

/* GALLERY */
.gallery-section { padding: 10vh 5vw; background: transparent; }
.gallery-masonry {
    column-count: 3; column-gap: 2.5rem;
    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;
    opacity: 1; 
    border-radius: var(--radius);
}

/* CONTACT */
/* CONTACT & MERGED FOOTER */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15vh 5vw 5vh 5vw;
    text-align: center;
    background-image: url('/imagens/agenda.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #f9f9f9;
    z-index: 2;
    overflow: hidden;
}

/* Dark Overlay for Agenda Section - Centered overlay */
.contact-section::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.95) 100%);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-section h2 { 
    margin-bottom: 0.5rem; 
    color: #f9f9f9;
}

.contact-section .label {
    color: var(--accent-contrast);
    margin-bottom: 2rem;
}

.contact-section .separator {
    background: var(--accent-contrast);
    opacity: 0.5;
}

.contact-section p { 
    color: #ccc; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.8); 
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
}

/* Specific override for contact button (glass feel) */
.contact-section .cta-button {
    border-color: rgba(255,255,255,0.2); 
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    color: #f9f9f9;
}

.contact-section .cta-button:hover {
    background: #f9f9f9; 
    color: #000;
    border-color: #f9f9f9;
}

.merged-footer {
    position: relative;
    z-index: 2;
    padding-top: 2rem; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border-top: none; 
}

.merged-footer .footer-logo { 
    height: 60px; /* Increased from 35px */
    opacity: 0.8; 
    filter: brightness(0) invert(1); 
    transition: 0.3s;
}

.merged-footer .footer-logo:hover {
    opacity: 1;
}

.merged-footer p.copyright { 
    font-size: 0.65rem; 
    letter-spacing: 0.2em; 
    opacity: 0.3; 
    color: #fff;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-logo { height: 40px; top: 0; margin-top: 0; }
    /* Mobile Nav Tweaks */
    nav { 
        width: 92%; 
        top: 1rem; 
        padding: 0 1rem; 
        height: 50px; /* Slimmer on mobile */
        transform: translateX(-50%) translateY(-100%); 
    }
    nav.scrolled { 
        padding: 0 1rem; 
        height: 50px; 
        transform: translateX(-50%) translateY(0); 
    }
    .grid-section { grid-template-columns: 1fr; gap: 4rem; padding: 10vh 5vw; text-align: center; }
    .grid-section.reverse { direction: ltr; }
    .text-col { align-items: center; }
    .gallery-masonry { column-count: 1; }
    h1 { font-size: 3rem; }
    .process-grid { grid-template-columns: 1fr; text-align: center; }
    .overlay-gradient { display: none; } 

    /* Studio Mobile Fix */
    .studio-sticky-section {
        flex-direction: column-reverse; /* Text on top, Images below */
        height: auto;
        min-height: 100vh;
        padding: 5vh 5vw; /* Reduced vertical padding */
        justify-content: flex-end;
    }
    .studio-carousel {
        width: 100%;
        max-height: 60vh;
        margin-top: 2rem;
        margin-bottom: 0;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .studio-sticky-section .text-col {
        padding-left: 0;
        text-align: center;
    }

    /* Fix pixelated background on mobile */
    .hero, .contact-section, .grid-section, .hero-section {
        background-attachment: scroll !important;
    }
}

/* Global Button Styles */
.cta-button {
    display: inline-block; 
    padding: 1.2rem 3rem; 
    border: 1px solid var(--text); 
    color: var(--text); 
    text-decoration: none;
    font-family: var(--font-body); 
    font-size: 0.9rem; 
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 50px;
}

/* --- 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, 255, 255, 0.2);
    align-items: center;
}

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

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

/* MAP EN */
.map-wrapper-en {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Lift it off the book */
}

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

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

.map-link-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 1rem;
    background: rgba(255,255,255,0.9);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8rem; letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    opacity: 0.9;
}
/* Mobile Re-add */
@media (max-width: 900px) {
    .footer-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        border-top: none;
    }
    
    .contact-details {
        text-align: center;
        align-items: center;
        margin-top: 3rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 2rem;
    }
    
    .detail-item { text-align: center; }
}
