/* --- VARIÁVEIS E RESET --- */
:root {
    --primary-color: #1a1a1a; /* Preto Luxo */
    --accent-color: #C5A059; /* Dourado Fosco / Madeira Clara */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn {
    font-family: 'Montserrat', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -1px;
}

.section-title span {
    font-weight: 700;
    color: var(--accent-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px; /* Levemente arredondado */
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid var(--accent-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Botão Ver Mais (Fundo Claro) */
#loadMoreBtn {
    border-color: var(--accent-color);
    color: var(--accent-color);
    margin-top: 20px;
    min-width: 200px;
}

#loadMoreBtn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1060; /* Aumentado para ficar acima do overlay */
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- DIFERENCIAIS --- */
.features {
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 40px 20px;
    border: 1px solid #eee;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* --- SOBRE --- */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--accent-color);
    z-index: 0;
}

.about-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

/* --- GALERIA (MASONRY SIMPLIFICADO) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--white);
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay-text {
    transform: translateY(0);
}

/* --- DEPOIMENTOS --- */
.testimonials {
    background-color: var(--primary-color);
    color: var(--white);
}

.testimonials .section-title, .testimonials .section-subtitle {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #ddd;
}

.client-info h4 {
    color: var(--accent-color);
    font-size: 1rem;
}

/* --- FAQ (DETAILS) --- */
.faq {
    background-color: var(--white);
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px 20px;
    color: #666;
}

/* --- FOOTER --- */
footer {
    background-color: #111;
    color: #999;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
}

/* --- WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 95%;
    max-width: 1100px;
    max-height: 90vh; /* Limita a altura para não sair da tela */
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    color: var(--white);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: 0.3s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent-color);
    background: rgba(0,0,0,0.8);
}

.modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

/* Layout quando não tem texto */
.modal-body.no-text .modal-info {
    display: none;
}

.modal-body.no-text .modal-img {
    width: 100%;
    flex: 1;
}

.modal-img {
    flex: 1.5;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 0; /* Importante para flexbox aninhado */
    min-width: 0;
}

.modal-img img, .modal-img video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain; /* Garante proporção mesmo se o navegador tentar forçar */
}

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 3rem;
    z-index: 10;
}

.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto; /* Permite scroll apenas no texto se necessário */
    background-color: var(--white);
}

.modal-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .modal-body {
        flex-direction: column;
        overflow-y: auto; /* Scroll na vertical em mobile */
    }
    
    .modal-content {
        max-height: 95vh;
        width: 95%;
        height: 90vh; /* Altura fixa para garantir espaço */
    }

    .modal-img {
        flex: none;
        height: 45vh; /* Reduzi um pouco para dar mais espaço ao texto */
        width: 100%;
        background-color: #000;
    }
    
    .modal-img img, .modal-img video {
        max-width: 95%;
        max-height: 95%;
        width: auto;
        height: auto;
    }

    .modal-info {
        padding: 20px;
        flex: 1; /* Ocupa o resto */
        height: auto;
        overflow-y: auto;
    }
    
    .modal-info h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .modal-info p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    /* Correção do alinhamento do Header */
    .nav-container nav {
        position: absolute;
        width: 0;
        height: 0;
        pointer-events: none; /* Remove do fluxo de clique/layout */
    }

    .mobile-toggle {
        display: block;
        font-size: 1.8rem;
        z-index: 1002;
        cursor: pointer;
        padding: 5px; /* Aumenta área de clique */
        transition: transform 0.3s;
    }
    
    .mobile-toggle:hover {
        color: var(--accent-color);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido na direita */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        display: flex; /* Sempre flex, mas escondido pelo right */
        pointer-events: auto; /* Reabilita cliques no menu */
    }

    .nav-menu.active {
        right: 0; /* Desliza para dentro */
    }
    
    .nav-menu li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Animação escalonada dos itens */
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-menu .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* Overlay escuro quando menu abre */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1050; /* Abaixo do Header (1060) mas acima do resto */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(3px);
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-img {
        order: -1;
    }
}
/* Hero Buttons Layout */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 400px; /* Prevent too wide buttons on tablets */
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        display: block;
        text-align: center;
    }
}


/* --- STATS BAR (NOVO) --- */
.stats-bar {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
}

/* --- SETAS DO MODAL --- */
.prev-modal, .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2002;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    background-color: rgba(0,0,0,0.3);
}

.next-modal {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-modal {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.prev-modal:hover, .next-modal:hover {
    background-color: rgba(0,0,0,0.8);
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .prev-modal, .next-modal {
        font-size: 30px;
        padding: 10px;
        background-color: rgba(0,0,0,0.5); /* Mais visível no mobile */
    }
}

