/* Variáveis de Cores - Paleta Rústico-Chique (Light/Dark) */
:root {
    /* Tema Claro (Padrão) */
    --bg-color: #fdfbf7;
    --card-bg: #ffffff;
    --text-color: #3e3b36;
    --primary-color: #8b5a2b;
    --secondary-color: #d4a373;
    --accent-color: #25d366;
    --border-color: #eee;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hero-overlay: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
    /* Tema Escuro */
    --bg-color: #1a1a1a;
    --card-bg: #2c2c2c;
    --text-color: #e0e0e0;
    --primary-color: #d4a373;
    /* Mais claro para contraste */
    --secondary-color: #8b5a2b;
    --accent-color: #25d366;
    --border-color: #444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --hero-overlay: rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1,
h2,
h3 {
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Botões */
.btn-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    /* Sempre branco no botão */
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s;
    border: 1px solid var(--primary-color);
}

.btn-cta:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Seção Hero */
.hero {
    background-color: #e6ded3;
    text-align: center;
    padding: 120px 0;
    background-image: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    /* Texto sempre branco no Hero com overlay */
}

.hero h1 {
    color: #fff;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    color: #f0f0f0;
}

.logo {
    max-width: 150px;
    width: 100%;
    /* Garante responsividade */
    height: auto;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Animações */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grade do Menu */
.menu-section {
    padding: 80px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.menu-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.card-image {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Contato */
.contact-section {
    background-color: var(--card-bg);
    /* Mudança para card-bg para integrar melhor no dark mode */
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.contact-actions {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.map-container {
    margin-top: 40px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    overflow: hidden;
}

/* Rodapé */
footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--accent-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* Botão de Alternar Tema */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        padding: 80px 0;
    }

    .logo {
        max-width: 120px;
        /* Menor em mobile */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .container {
        padding: 0 15px;
    }
}