/* =========================================
   1. PALETA & TIPOGRAFIA (Estilo "Oxford")
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --verde-ingles: #1b3a2b;    /* Verde escuro profundo */
    --creme-fundo: #f4f1ea;     /* Bege claro (papel antigo) */
    --branco-puro: #ffffff;
    --bronze: #a87b51;          /* Acento metálico fosco */
    --texto-escuro: #2c2c2c;    /* Cinza chumbo para leitura */
    --cinza-borda: #d1d1d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--creme-fundo);
    color: var(--texto-escuro);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
}

/* Títulos com fonte Serifada Clássica */
h1, h2, h3, h4 {
    font-family: 'Libre Baskerville', serif;
    color: var(--verde-ingles);
    font-weight: 700;
}

/* =========================================
   2. HEADER (Sóbrio e Limpo)
   ========================================= */
header {
    background-color: var(--branco-puro);
    padding: 15px 5%;
    border-bottom: 3px solid var(--verde-ingles);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav h2 {
    font-size: 1.5rem;
    color: var(--verde-ingles);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--texto-escuro);
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--bronze);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    height: 90vh;
    background: linear-gradient(rgba(27, 58, 43, 0.85), rgba(27, 58, 43, 0.7)), 
                url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    color: var(--branco-puro);
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--branco-puro);
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    border-left: 4px solid var(--bronze);
    padding-left: 20px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.hero-section button {
    background-color: var(--bronze);
    color: var(--branco-puro);
    border: none;
    padding: 18px 45px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.hero-section button:hover {
    background-color: #8c6642;
    transform: translateY(-3px);
}

/* =========================================
   4. SOBRE
   ========================================= */
.about-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    position: relative;
}

.about-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--bronze);
    margin-top: 10px;
}

.about-section p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-section ul li {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--verde-ingles);
}

.about-img img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px -20px 0 var(--verde-ingles);
}

/* =========================================
   5. CARDS DE ATUAÇÃO (LAYOUT EM GRADE/GRID)
   ========================================= */
.performance-section {
    background-color: var(--creme-fundo); 
    padding: 100px 5%;
    text-align: center;
    width: 100%;
}

.performance-section h2 {
    margin-bottom: 70px;
    font-size: 2.5rem;
    color: var(--verde-ingles);
}

.cards {
    /* MUDANÇA TOTAL: Usando Grid em vez de Flex */
    display: grid;
    
    /* Cria exatamente 3 colunas de tamanho igual */
    grid-template-columns: 1fr 1fr 1fr; 
    
    gap: 30px; /* Espaço entre as colunas */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Estilo Individual dos Cards */
div[class^="card"] {
    background-color: var(--branco-puro);
    padding: 50px 40px;
    
    /* No Grid, não precisamos definir largura no filho, 
       o pai (.cards) quem manda no tamanho */
    width: 100%; 
    
    border: 1px solid rgba(27, 58, 43, 0.1); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 2px;
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
}

div[class^="card"] h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--verde-ingles);
    font-family: 'Libre Baskerville', serif;
    position: relative;
    padding-left: 15px;
}

div[class^="card"] h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background-color: var(--bronze);
}

div[class^="card"] p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Efeito Hover */
div[class^="card"]:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(27, 58, 43, 0.15);
}

div[class^="card"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--verde-ingles);
    transition: width 0.4s ease;
}

div[class^="card"]:hover::after {
    width: 100%;
}

/* =========================================
   RESPONSIVO (MUITO IMPORTANTE)
   ========================================= */
/* Adicione ou substitua isso no final do arquivo para funcionar no celular */
@media (max-width: 900px) {
    .cards {
        /* No celular, muda para 1 coluna só */
        grid-template-columns: 1fr;
    }
    
    /* Outros ajustes mobile... */
    .about-section { grid-template-columns: 1fr; }
    nav ul { display: none; }
}

/* =========================================
   6. CONTATO
   ========================================= */
.contact-section {
    background-color: var(--verde-ingles);
    color: var(--branco-puro);
    padding: 80px 5%;
    text-align: center;
}

.contact-section h2 {
    color: var(--branco-puro);
    margin-bottom: 10px;
}

.contact-section p {
    margin-bottom: 40px;
    color: #ccc;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--branco-puro);
    padding: 50px;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: left;
}

fieldset { border: none; }
legend { display: none; }

label {
    color: var(--verde-ingles);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-top: 20px;
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

textarea { resize: none; }

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--bronze);
}

input[type="submit"] {
    margin-top: 30px;
    width: 100%;
    background-color: var(--verde-ingles);
    color: var(--branco-puro);
    border: none;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

input[type="submit"]:hover {
    background-color: var(--bronze);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background-color: #11241b;
    color: #888;
    text-align: center;
    padding: 30px;
    font-size: 0.85rem;
}

/* =========================================
   RESPONSIVO (CELULAR E TABLET)
   ========================================= */
@media (max-width: 900px) {
    
    /* Header Mobile */
    nav ul {
        display: none; 
    }
    
    /* Hero Font */
    .hero-section h1 {
        font-size: 2.2rem;
    }

    /* Sobre Coluna Única */
    .about-section {
        grid-template-columns: 1fr;
    }
    
    /* --- CARDS FICAM VERTICAIS NO MOBILE --- */
    .cards {
        flex-direction: column; 
        align-items: center;
    }
    
    div[class^="card"] {
        width: 100%;
        max-width: 500px;
        /* Remove a regra de flexibilidade do PC */
        flex: 1 1 auto; 
    }
    
    /* Form */
    form {
        padding: 20px;
    }
}

.hero-button-link {
    text-decoration: none;
    display: inline-block;
}

/* Garante que o botão de triagem na seção de contato se destaque */
.contact-section .btn-bronze {
    background-color: var(--bronze);
    color: var(--branco-puro);
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.contact-section .btn-bronze:hover {
    background-color: #8c6642;
    transform: scale(1.05);
}

/* Estado inicial: invisível e um pouco abaixo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Estado quando visível */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}