:root {
    --bg-light: #ffffff;
    --text-dark: #1a1a1a;
    --accent: #8e8e8e;
    --soft-gray: #f2f2f2;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: auto;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 400; }

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

#header-placeholder, 
#footer-placeholder {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.header {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 1rem 4rem;
    background: var(--bg-light);
    display: flex;
    justify-content: center;
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
    max-width: 1600px; 
    width: 100%;
}

.nav-links { display: flex; gap: 3rem; list-style: none; }

.nav-links a { 
    font-size: 0.85rem; 
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    color: var(--text-dark) !important;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-dark);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

.hero { height: 90vh; padding: 0rem 4rem; display: flex; align-items: center; }
.hero-container {
    width: 100%; height: 85vh; background: url('../images/hero.png') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-container::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); }

.hero-content { 
    text-align: center; 
    color: white; 
    z-index: 2; 
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

.hero-content h1 { 
    font-size: 5rem; 
    line-height: 1.1; 
    margin-bottom: 1.5rem;
    width: 100%;
}

.hero-content span { text-transform: uppercase; letter-spacing: 5px; font-size: 0.75rem; margin-bottom: 1.5rem; display: block; }
.hero-content em { font-style: italic; width: fit-content; }

.btn-outline {
    display: inline-block; padding: 1.2rem 3rem; border: 1px solid white;
    color: white; text-decoration: none; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 2px; transition: var(--transition); margin-top: 1rem;
}
.btn-outline:hover { background: white; color: black; }

.editorial-features { width: 100%; padding: 0; }

.feature-row { 
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 8rem; 
    padding: 4rem 10%; 
    width: 100%;
}

.feature-row:nth-child(even) { background-color: var(--soft-gray); }
.feature-row.reverse { flex-direction: row-reverse; }

.feature-text { flex: 0 1 450px; text-align: left; }
.feature-text h2 { font-size: 2.5rem; margin-bottom: 1rem; }

.feature-image { 
    flex: 1.3; 
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    transition: var(--transition);
    background-color: transparent; 
}

.feature-image img:hover { transform: scale(1.05); }

.artistic-vision { font-style: italic; background: #111; color: white; padding: 5rem 4rem; text-align: center; } 

.footer-modern {
    width: 100%;
    display: block;
    padding: 3rem 4rem 1.5rem;
    border-top: 1px solid #eee;
    background-color: var(--bg-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: start;
}

.footer-brand p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-nav h4, 
.footer-social h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-nav a {
    display: inline-block;
    width: fit-content;
    font-size: 0.9rem;
    color: var(--text-dark) !important;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-dark);
    transition: width 0.3s ease-in-out;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-social .social-icons {
    display: inline-flex;
    margin-top: 0.5rem;
    gap: 1.5rem;
}

.footer-social .social-icons a {
    color: var(--text-dark) !important;
    font-size: 1.4rem;
    transition: var(--transition);
}

.footer-social .social-icons a:hover {
    color: var(--accent) !important;
    transform: translateY(-3px);
}

.social-icons-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 1.5rem;
}

.page-header {
    padding: 6rem 4rem 2rem;
    text-align: center;
    margin-top: -3rem;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.portfolio-filters {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    color: var(--accent);
    transition: var(--transition);
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--text-dark);
    border-bottom: 1px solid var(--text-dark);
}

.portfolio-gallery {
    padding: 2rem 4rem 6rem;
}

.video-portfolio {
    width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 100%;
    display: block;
    min-height: 500px;
}

.masonry-item {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.masonry-item video {
    width: 100%;
    height: auto;
}

.masonry-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.masonry-item.is-hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.masonry-item.hidden-filtered {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    margin-bottom: 0;
    line-height: 0;
    display: none;
}

.masonry-item img {
    width: 100%;
    height: auto; 
    display: block;
    filter: grayscale(10%);
    transition: var(--transition);
}

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

.masonry-item.filtered-out {
    display: none !important;
    opacity: 0;
}

.portfolio-cta {
    padding: 8rem 4rem !important;
}

.dark-section {
    background-color: #000000;
    color: #ffffff;
    width: 100%; 
    margin-left: 0;
    margin-right: 0;
    padding: 8rem 0;
}

.dark-section .about-text h1 { color: #ffffff; }
.dark-section .about-text p { color: #cccccc; }
.dark-section .about-stats { border-top: 1px solid #333; }
.dark-section .stat-item strong { color: #ffffff; }

.about-hero {
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1400px; 
    margin: 0 auto;
    padding: 0 4rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-image img {
    width: 70%;
    height: auto;
    filter: sepia(10%) contrast(1.05);
    border-radius: 4px;
    transition: var(--transition);
    display: block;
}

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

.about-text h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.stat-item span {
    font-size: 0.8rem;
    color: var(--accent);
}

.philosophy {
    background-color: var(--soft-gray);
    padding: 8rem 4rem;
    text-align: center;
}

.philosophy p {
    color: #555;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy p em {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.philosophy p strong {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    padding: 8rem 4rem 4rem; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--soft-gray);
}

.contact-intro h1 {
    margin-bottom: 2rem;
    font-size: 3.5rem;
}

.contact-intro p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    max-width: 600px;
}

.contato-info-short {
    display: flex;
    justify-content: center;
    gap: 8rem; 
}

.info-item span {
    display: block;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    margin-top: 1.2rem;
}

.info-item p {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-form-section .input-group {
    margin-bottom: 1rem;
}

.contact-form-section .input-group input, 
.contact-form-section .input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: var(--transition);
}

.contact-form-section .input-group input::placeholder,
.contact-form-section .input-group textarea::placeholder {
    color: #c1c1c1;
}

.contact-form-section .input-group input:focus, 
.contact-form-section .input-group textarea:focus {
    border-bottom-color: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #000000 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.about-grid h2, .contact-text-side h2 {
    font-size: 1.7rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.contact-text-side p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.2rem;
}

.white-btn {
    background: transparent !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.white-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
}

.contact-social {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.contact-social a {
    color: white !important;
    font-size: 1.5rem;
    transition: opacity 0.3s;
}

.contact-social a:hover {
    opacity: 0.7;
}

.mapa-section {
    line-height: 0;
    background: #000;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--text-dark);
    color: white;
    padding: 1rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- SISTEMA DE ANIMAÇÃO REVEAL --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

@keyframes heroFade {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

.hero-container {
    animation: heroFade 1.8s ease-out forwards;
}

.hero-content {
    animation: heroFade 1.2s ease-out 0.5s both;
}

/* --- RESPONSIVIDADE GERAL --- */

/* Ajustes para Tablets e telas médias (Até 1024px) */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 2rem;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
    }

    .menu-toggle {
        display: block;
        z-index: 1201;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: var(--bg-light);
        transition: var(--transition);
        gap: 2.5rem;
        z-index: 1200;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        padding: 0 2rem;
        height: 70vh;
        margin-top: 80px;
    }

    .hero-content {
        max-width: 700px;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .feature-row, 
    .feature-row.reverse {
        flex-direction: row;
        padding: 4rem 3rem;
        gap: 3rem;
        justify-content: space-between;
    }

    .feature-row.reverse {
        flex-direction: row-reverse;
    }

    .feature-text {
        flex: 1;
        max-width: 45%;
        text-align: left;
    }

    .feature-image {
        flex: 1;
        width: 50%;
        height: 400px;
    }

    .feature-text h2 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    /* --- GATILHO PARA EMPILHAMENTO (Abaixo de 850px) --- */
    /* Quando a tela fica realmente estreita, aí sim empilhamos */
    @media (max-width: 850px) {
        .feature-row, 
        .feature-row.reverse {
            flex-direction: column !important;
            text-align: center;
            gap: 2rem;
            margin-top: 5rem;
        }

        .feature-text {
            max-width: 100%;
            order: 2;
        }

        .feature-image {
            width: 50%;
            height: 350px;
            order: 1;
        }
    }

    .page-header {
        padding: 8rem 2rem 3rem;
        text-align: center;
        margin-top: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        padding: 0 2rem;
        gap: 4rem;
    }

    .about-text h1 {
        font-size: 3rem;
    }

    .about-image img {
        width: 60%;
        margin: 0 auto;
    }

    /* Contato */
    .contact-intro {
        padding: 10rem 2rem 4rem;
    }

    .contato-info-short {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }

    /* No mobile muito pequeno (ajuste extra dentro da query de 1024) */
    @media (max-width: 600px) {
        .contato-info-short {
            flex-direction: column;
            gap: 2rem;
        }
        .about-image img {
            width: 80%;
        }
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-nav-links, 
    .footer-social .social-icons {
        justify-content: center;
    }
}

/* Celulares (Menor que 768px) */
@media (max-width: 768px) {
    .header {
        padding: 1rem 2rem;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1100;
    }

    .menu-toggle {
        display: block;
        z-index: 1201;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%;
        height: 100vh;
        background: var(--bg-light);
        transition: var(--transition);
        gap: 2.5rem;
        z-index: 1200;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        padding: 0 1.5rem;
        height: 80vh;
        margin-top: 60px;
    }

    .hero-content {
        width: 85%;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content span {
        letter-spacing: 3px;
    }

    .hero {
        padding: 0;
        height: auto;
        min-height: 80vh;
    }

    .hero-container {
        border-radius: 0;
        height: 80vh;
    }

    .feature-row, .feature-row.reverse {
        flex-direction: row-reverse;
        padding: 3rem 1.5rem;
        gap: 2rem;
        text-align: center;
    }

    .feature-text {
        max-width: 100%;
    }

    .feature-image {
        width: 50%;
        height: 350px;
    }

    .page-header {
        padding: 6rem 1.5rem 2rem;
        text-align: center;
        margin-top: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .about-text h1 {
        font-size: 2.5rem;
    }

    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .about-image img {
        width: 40%;
        height: auto;
        filter: sepia(10%) contrast(1.05);
        border-radius: 4px;
        transition: var(--transition);
        display: block;
    }


    .contato-info-short {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .footer-modern {
        padding: 3rem 2rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-nav-links, 
    .footer-social .social-icons {
        justify-content: center;
    }

    .contact-intro {
        padding: 10rem 1.5rem 4rem;
        margin-top: 2rem;
    }

    .contact-intro h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contato-info-short {
        gap: 2rem;
    }

    .feature-row {
        padding: 3rem 1.5rem;
        gap: 2rem;
        text-align: center;
    }
    
    .feature-text {
        flex: 1;
        max-width: 100%;
    }
}

/* Celulares Pequenos (Menor que 600px) */
@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .page-header {
        padding: 6rem 4rem 2rem;
        text-align: center;
        margin-top: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .portfolio-filters {
        gap: 1rem;
    }

    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .feature-row, 
    .feature-row.reverse {
        flex-direction: column !important;
        padding: 4rem 2rem;
        gap: 2.5rem;
        text-align: center;
    }

    .feature-text {
        max-width: 100%;
        order: 2;
    }

    .feature-image {
        width: 50%;
        height: 400px;
        order: 1;
    }

    .feature-text h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 0.9rem;
        padding: 0 10%;
    }
}

/* Ajustes Finais (iPhone SE / Telas mini) */
@media (max-width: 480px) {
    .page-header {
        padding: 6rem 4rem 2rem;
        text-align: center;
        margin-top: 4rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .footer-modern {
        padding: 3rem 1.5rem;
    }
    
    .hero-content {
        width: 90%;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero-content span {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .feature-row, 
    .feature-row.reverse {
        padding: 3rem 1.5rem;
        gap: 1.5rem;
    }

    .feature-image {
        width: 80%;
        height: 400px;
    }

    .feature-text h2 {
        font-size: 1.8rem;
    }

    .feature-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn-outline {
        padding: 1rem 2rem;
        width: fit-content;
    }

    .hero {
        padding: 0;
        height: auto;
        min-height: 80vh;
    }

    .hero-container {
        border-radius: 0;
        height: 80vh;
    }
}