/* ==========================================================================
   Variáveis de Cores e Estilos Base
   ========================================================================== */
:root {
    --primary-blue: #5a4a2d; /* Marrom principal dos cards */
    --dark-blue: #2f2819; 
    --dark-brown: #3E3420;
    --gold: #D0AC69;
    --gold-text-on-dark: #f0dcb0;
    --whatsapp-green: #25D366; /* Verde do WhatsApp (mais claro) */
    --whatsapp-hover: #1DA654;
    --btn-submit: #b88d57; /* Dourado/Marrom do botão de enviar */
    --bg-light: #f5f1e8; /* Fundo claro aquecido */
    --text-dark: #2b2418;
    --text-light: #ffffff;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* ==========================================================================
   Reset e Configurações Globais
   ========================================================================== */
html {
    width: 100%;
    overflow-x: hidden;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Utilitários */
.text-center { text-align: center; }
.text-white { color: var(--text-light); }
.bg-light { background-color: #efe7d8; }
.bg-blue-dark { background-color: var(--primary-blue); }
.bg-blue-footer { background-color: var(--dark-blue); }

hr {
    border: 0;
    height: 3px;
    background-color: var(--gold);
    width: 60px;
    margin: 20px 0;
}

.hr-center { margin: 20px auto; background-color: var(--text-light); }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--whatsapp-green);
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.18s ease, transform 0.12s ease;
    margin: 20px 0;
    border: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.22);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.02);
}

/* ==========================================================================
   Layout Principal (Desktop / PC First)
   ========================================================================== */

/* 1. Hero Section */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    padding: 0;
    background-color: var(--dark-brown);
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: clamp(92px, 11vw, 162px) clamp(24px, 5vw, 72px) clamp(24px, 4vw, 48px) clamp(44px, 7vw, 120px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo img {
    width: 50%;
    height: auto;
    margin-bottom: 0;
}

.logo-texto {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-texto strong {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--gold-text-on-dark);
}

.logo-texto span {
    font-size: 0.82rem;
    color: var(--gold);
    margin-top: 2px;
}

.hero-content h1 {
    font-size: 2rem;
    color: var(--gold-text-on-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #efe2c8;
}

.hero-note {
    display: block;
    font-size: 0.85rem;
    color: #c7b99e;
    margin-top: 15px;
}

.hero-image {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    opacity: 0.8;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(7px) brightness(0.72);
    transform: scale(1.08);
    z-index: 0;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(62, 52, 32, 0.98) 0%, rgba(62, 52, 32, 0.94) 20%, rgba(62, 52, 32, 0.72) 36%, rgba(62, 52, 32, 0.34) 52%, rgba(62, 52, 32, 0.08) 70%, rgba(62, 52, 32, 0) 100%);
    z-index: 0;
}

.hero-image img {
    width: 90%;
    height: 90%;
    
    object-fit: cover;
    object-position: bottom center;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1;
}


/* 2. Seção de Serviços */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.grid-servicos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-servico {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(208, 172, 105, 0.35);
    transition: transform 0.3s ease;
}

.card-servico:hover {
    transform: translateY(-8px);
}

.card-servico .icon-placeholder {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.card-servico h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-servico p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.cta-center {
    text-align: center;
    margin-top: 60px;
}

.layout-duas-colunas {
    display: flex;
    align-items: center;
    gap: 60px;
}

.quem-somos-texto, .contato-info {
    flex: 1;
}

.quem-somos-imagem, .contato-form {
    flex: 1;
}

.quem-somos-imagem img {
    width: 80%;
    max-width: 500px;
}

.grid-diferenciais {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.card-diferencial {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.card-diferencial .icon-placeholder {
    font-size: 3rem;
    margin-bottom: 15px;
}


.accordion {
    max-width: 900px;
    margin: 40px auto;
}

.faq-item {
    background-color: var(--primary-blue);
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--gold);
}

.faq-item summary {
    padding: 20px 25px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 1.1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none; 
}

.faq-item summary::after {
    content: '▼';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--gold);
}

.faq-item[open] summary::after {
    content: '▲';
}

.faq-resposta {
    padding: 0 25px 25px 25px;
    color: var(--text-light);
    opacity: 0.9;
}

/* 6. Footer Formulário */
.contato-form h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.contato-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group-row input {
    flex: 1;
}

.contato-form input, 
.contato-form textarea {
    padding: 18px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    width: 100%;
    font-size: 1rem;
}

.btn-submit {
    background-color: var(--btn-submit);
    color: var(--text-light);
    padding: 18px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #966b3f;
}

.footer-copy {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================================================
   Media Queries (Degradação Graciosa para Mobile)
   ========================================================================== */

/* Telas médias (Tablets horizontais e Laptops menores) */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .grid-servicos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-diferenciais {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telas pequenas (Tablets verticais e Celulares) */
@media (max-width: 768px) {
    .hero {
        display: grid;
        grid-template-columns: 44% 56%;
        text-align: center;
        min-height: 100vh;
    }
    
    .hero-content {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        min-height: 100vh;
        padding: 42px clamp(14px, 5vw, 28px) 40vh clamp(14px, 5vw, 28px);
        z-index: 2;
    }
    
    .hero-image {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
        min-height: 100vh;
        justify-content: stretch;
        z-index: 1;
        opacity: 1;
    }

    .hero-image::before {
        opacity: 0.4;
    }

    .hero-image::after {
        background: linear-gradient(90deg, rgba(62, 52, 32, 0.98) 20%, rgba(62, 52, 32, 0.92) 40%, rgba(62, 52, 32, 0.64) 70%, rgba(62, 52, 32, 0.18) 80%, rgba(62, 52, 32, 0) 100%);
    }

    .logo {
        gap: 8px;
        margin-bottom: 12px;
        width: fit-content;
        justify-content: center;
        align-self: center;
    }

    .logo img {
        width: 50%;
    }

    .logo-texto strong {
        font-size: 0.92rem;
        text-align: center;
    }

    .logo-texto span {
        font-size: 0.74rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.56rem;
        margin-bottom: 14px;
    }

    .hero-content p {
        font-size: 0.98rem;
        margin-bottom: 22px;
    }

    .btn-whatsapp {
        padding: 13px 18px;
        font-size: 0.96rem;
        margin: 24px 0 14px;
    }

    .hero-note {
        font-size: 0.78rem;
        line-height: 1.4;
    }
    
    .hero-image img {
        display: block;
        width: auto;
        height: 38vh;
        max-height: 38vh;
        left: 50%;
        right: auto;
        bottom: 0;
        transform: translateX(-50%);
        object-fit: contain;
        object-position: bottom center;
        opacity: 2;
        pointer-events: none;
    }
    
    .layout-duas-colunas {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    /* Centraliza a linha (hr) em layouts que ficaram em coluna */
    .quem-somos-texto hr,
    .contato-info hr {
        margin: 20px auto;
    }
    
    .grid-servicos, 
    .grid-diferenciais {
        grid-template-columns: 1fr;
    }
    
    .form-group-row {
        flex-direction: column;
    }
    
    .faq-item summary {
        font-size: 1rem;
        padding-right: 40px; /* Espaço para a seta não encavalar no texto */
    }
}

/* ==========================================================================
   Animações de Entrada (Reveal on Scroll)
   ========================================================================== */

/* Classe base para esconder os elementos inicialmente */
.escondido {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(40px); /* Move 40px para baixo */
    transition: all 0.8s ease-out; /* Duração e suavidade da animação */
}

/* Você pode criar variações para vir da esquerda ou direita */
.escondido-esquerda {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.escondido-direita {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease-out;
}

.escondido-baixo{
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

/* Classe que o JavaScript vai adicionar quando o elemento aparecer na tela */
.mostrar {
    opacity: 1;
    filter: blur(0);
    transform: translate(0); /* Volta para a posição original */
}

/* Opcional: Atrasar os cards para entrarem um de cada vez (efeito cascata) */
.grid-servicos .card-servico:nth-child(2) { transition-delay: 0.2s; }
.grid-servicos .card-servico:nth-child(3) { transition-delay: 0.4s; }
.grid-servicos .card-servico:nth-child(4) { transition-delay: 0.1s; }
.grid-servicos .card-servico:nth-child(5) { transition-delay: 0.3s; }
.grid-servicos .card-servico:nth-child(6) { transition-delay: 0.5s; }

.grid-diferenciais .card-diferencial:nth-child(2) { transition-delay: 0.2s; }
.grid-diferenciais .card-diferencial:nth-child(3) { transition-delay: 0.4s; }