/* Reset Básico para limpar margens do navegador */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif; /* Fonte moderna para textos longos */
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* Fonte Serifada para Títulos (Efeito Luxo) */
h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   HEADER STICKY (Menu de Topo)
   ========================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

/* Classe ativada pelo Javascript quando o usuário rola o mouse */
header.scrolled {
    background-color: rgba(15, 15, 15, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    color: #ffffff;
    letter-spacing: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #D4AF37; /* Cor Dourado Champagne */
}

/* =========================================
   HERO BANNER
   ========================================= */
/* =========================================
   HERO BANNER E CARROSSEL ALTERNADO
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden; /* Impede que as fotos vazem a tela */
    font-size: 18px;
}

/* Configuração dos Slides de Fundo */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Começam invisíveis */
    transition: opacity 1.5s ease-in-out; /* Transição suave de fade */
    z-index: 0;
}

/* Classe que ativa o slide atual */
.carousel-slide.active {
    opacity: 1; /* Fica visível */
}

/* Película preta que fica à frente das fotos mas atrás do texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* 55% de escurecimento para dar leitura */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Garante que o texto fique por cima de tudo */
    max-width: 850px;
    padding: 0 20px;
}

/* Botão de Chamada para Ação */
.btn-gold {
    display: inline-block;
    padding: 16px 45px;
    background-color: transparent;
    color: #D4AF37;
    border: 1px solid #D4AF37;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #D4AF37;
    color: #111111;
}

/* =========================================
   SEÇÃO MINIMALISTA (Respiro)
   ========================================= */
.section-light {
    padding: 120px 0;
    background-color: #ffffff;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 42px;
    margin-bottom: 30px;
    font-weight: 600;
    color: #111111;
}

.section-text {
    font-size: 21px;
    color: #595959;
    max-width: 750px;
    margin: 0 auto;
    font-weight: 400;
}

/* =========================================
   SEÇÃO ESCURA E GRIDS
   ========================================= */
.section-dark {
    padding: 100px 0;
    background-color: #111111;
    color: #ffffff;
}

.text-gold {
    color: #D4AF37;
    font-family: 'Playfair Display', serif;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.card-luxo {
    padding: 40px 30px;
    border: 1px solid rgba(212, 175, 55, 0.2); /* Borda dourada bem sutil */
    transition: transform 0.3s, border-color 0.3s;
}

.card-luxo:hover {
    transform: translateY(-10px);
    border-color: #D4AF37;
}

.card-luxo h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #D4AF37;
}

.card-luxo p {
    font-size: 14px;
    color: #aaaaaa;
}

/* =========================================
   PORTFÓLIO DE OBRAS (As 3 Fotos)
   ========================================= */
.grid-obras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.obra-item {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.obra-overlay {
    position: absolute;
    bottom: -100%; /* Começa escondido embaixo */
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(17,17,17,0.9), transparent);
    transition: bottom 0.4s ease;
    text-align: left;
}

.obra-item:hover .obra-overlay {
    bottom: 0; /* Sobe suavemente ao passar o mouse */
}

.obra-overlay h3 {
    color: #ffffff;
    font-size: 18px;
    border-left: 2px solid #D4AF37;
    padding-left: 10px;
}

/* =========================================
   CONTATO DE ALTO PADRÃO
   ========================================= */
.contato-wrapper {
    max-width: 650px;
}

.contato-info p {
    color: #aaaaaa;
}

.contato-wrapper .btn-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    width: fit-content;
    white-space: nowrap;
}

.contato-wrapper .btn-gold svg {
    flex-shrink: 0;
}

/* =========================================
   RODAPÉ
   ========================================= */
footer {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 30px 0;
    font-size: 12px;
}


/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE MOBILE)
   ========================================= */
@media (max-width: 768px) {
    
    /* Ajuste do Banner Principal */
    .hero-content h1 {
        font-size: 36px; /* Diminui o título para não estourar a tela */
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* Menu do Topo Mobile */
    header {
        padding: 15px 0;
        background-color: rgba(15, 15, 15, 0.98); /* Força fundo escuro no mobile */
    }

    .nav-container {
        flex-direction: column; /* Empilha Logo e Menu */
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 11px;
    }

    /* Transformação das Grades em Coluna Única */
    .grid-3, .grid-obras {
        grid-template-columns: 1fr; /* Tudo vira uma coluna só, empilhado */
        gap: 30px;
    }

    /* Ajuste das seções de texto */
    .section-light, .section-dark {
        padding: 60px 0; /* Diminui o recuo para telas menores */
    }

    .section-title {
        font-size: 28px;
    }

    /* Ajuste do Portfólio no Celular */
    .obra-item {
        height: 280px;
    }

    .obra-overlay {
        bottom: 0; /* No celular, o título fica sempre visível (não há "hover") */
        background: linear-gradient(to top, rgba(17,17,17,0.95), rgba(17,17,17,0.4));
    }

    .contato-wrapper .btn-gold {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 14px 22px;
    }
}

@media (max-width: 480px) {
    .contato-wrapper .btn-gold {
        font-size: 9px;
        letter-spacing: 1px;
        padding: 12px 16px;
        gap: 8px;
    }

    .contato-wrapper .btn-gold svg {
        width: 16px;
        height: 16px;
    }
}


/* =========================================
   NOVOS BLOCOS: LEGADO E DEPOIMENTOS
   ========================================= */
   .legado-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Fade-In Up — seção Legado */
#legado .fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition:
        opacity 2.0s cubic-bezier(0.22, 1, 0.36, 1),
        transform 2.0s cubic-bezier(0.22, 1, 0.36, 1);
}

#legado.is-visible .fade-up {
    opacity: 1;
    transform: translateY(0);
}

#legado.is-visible .fade-up--delay {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    #legado .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.grid-depoimentos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card-depoimento {
    background-color: rgba(255, 255, 255, 0.03); /* Fundo escuro sutil e luxuoso */
    border: 1px solid rgba(212, 175, 55, 0.2); /* Borda dourada muito suave */
    padding: 40px 30px;
    border-radius: 4px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-depoimento:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.6);
}

.depoimento-texto {
    font-style: italic;
    font-size: 15px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 30px;
}

.depoimento-autor {
    display: flex;
    align-items: center;
    gap: 15px;
}

.depoimento-foto {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #D4AF37; 
}

.depoimento-info h4 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.depoimento-info span {
    font-size: 13px;
    color: #D4AF37;
}

/* =========================================
   LIGHTBOX OBRAS (ZOOM CHIQUE)
   ========================================= */
.obra-item {
    cursor: pointer; /* Transforma a seta em "mãozinha" para mostrar que clica */
}

.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #D4AF37;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 50%;
    color: #D4AF37;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.lightbox-prev {
    left: 32px;
}

.lightbox-next {
    right: 32px;
}

.lightbox-nav:hover {
    color: #ffffff;
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.08);
}

.lightbox-nav:focus-visible {
    outline: 1px solid #D4AF37;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }
}