/* Importação das Fontes Google */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&family=Playfair+Display:wght@700&display=swap');

/* ***** SUAS CORES PRINCIPAIS AQUI ***** */
:root {
    --primary-color: #658fba;
    --secondary-color: #ffffff;
    --text-dark: #000000;
    --text-light: #f4f4f4;
    --bg-light: #fdfcfa;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: #000000;
}

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

.container-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ... (Todo o seu CSS de h1, h2, p, a, botões... continua o mesmo) ... */
h1, h2, h3 {
    font-family: 'Domine', serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}
h2 { font-size: 3.5rem; }
h3 { font-size: 2.2rem; }
p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}
.text-center {
    text-align: center;
}
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}
.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

/* Header */
header {
    /* --- 1. ESTADO PADRÃO (NO TOPO) --- */
    /* Começa branco opaco */
    background-color: #fff; 
    /* Com a borda de baixo */
    border-bottom: 1px solid #eee; 
    /* Com a sombra original */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    padding: 20px 0;

    /* --- 2. CONFIGURAÇÃO DA POSIÇÃO FIXA --- */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* --- 3. CORREÇÃO DO "FLICKER" (PISCAR) --- */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* --- 4. A MÁGICA DA SUAVIDADE --- */
    /* Isso faz a mudança de cor e tamanho ser suave! */
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, border-bottom 0.4s ease;
}

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

.logo img {
    height: 40px;
    width: auto;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a:focus::after {
    width: 100%;
}

/* --- NOVO: Estilo do Botão Sanduíche --- */
.menu-toggle {
    display: none; /* Escondido no desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002; /* Acima do menu */
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
}

/* ... (Todo o seu CSS de Hero, Seções, Footer... continua o mesmo) ... */
.hero-section {
    background: url('placa out.jpg') no-repeat center center/cover;
    color: var(--text-light);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3); 
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;

    /* ADICIONE ESTA LINHA ABAIXO: */
    margin-top: 105px; /* Aumente ou diminua este valor para subir/descer */
    /* Adicione isso para corrigir no celular: */
    .hero-content {
        margin-top: 50px; /* No celular desce menos */
    }
}
.hero-content h2 {
    color: var(--text-light);
    font-size: 3.8rem;
    text-shadow: 0px 0px 0px rgba(0,0,0,0.0);
}
.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0px 0px 0px rgba(0,0,0,0.0);
    margin-bottom: 30px;
}
.section-padded {
    padding: 100px 0;
    background-color: #fff;
}
.img-story {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.call-to-action {
    background: url('https://via.placeholder.com/1920x800?text=Imagem+Loja+ou+São+Joaquim') no-repeat center center/cover;
    color: var(--text-light);
    padding: 100px 0;
    position: relative;
}
.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.call-to-action .container {
    position: relative;
    z-index: 1;
}
.call-to-action h3, .call-to-action p {
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
#contato {
    background-color: var(--bg-light);
}
.contact-info {
    margin-top: 30px;
}
.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.contact-info p strong {
    font-weight: 700;
    color: var(--text-dark);
}
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
}
footer p {
    margin-bottom: 5px;
    color: #ccc;
}

/* ==============================================
   ===== RESPONSIVIDADE (AQUI ESTÁ A CORREÇÃO) =====
   ============================================== */
@media (max-width: 768px) {
    /* Ajustes de fonte */
    h2 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.2rem; }

    /* --- NOVO: A MÁGICA DO MENU --- */

    /* 1. Mostra o botão sanduíche */
    .menu-toggle {
        display: block;
    }

    /* 2. Esconde o menu desktop e o transforma em menu mobile */
    header nav {
        position: fixed; /* Fica por cima de tudo */
        top: 0;
        left: -100%; /* Começa escondido fora da tela */
        width: 100%;
        height: 100vh; /* Ocupa a tela inteira */
        background-color: #fff;
        z-index: 1001;
        transition: left 0.3s ease-in-out;
    }

    /* 3. A classe que o JS vai adicionar para MOSTRAR o menu */
    header nav.nav-active {
        left: 0; /* Puxa o menu para dentro da tela */
    }

    /* 4. Arruma os links dentro do menu mobile */
    header nav ul {
        flex-direction: column; /* Links em coluna */
        height: 100%;
        justify-content: center; /* Centraliza na vertical */
        align-items: center; /* Centraliza na horizontal */
    }

    header nav ul li {
        margin: 20px 0; /* Espaço entre os links */
    }

    header nav ul li a {
        font-size: 1.5rem; /* Letra maior no menu mobile */
    }

    /* 5. Animação do botão "X" (Opcional, mas legal) */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}