/* * ======================================================
 * STYLES.CSS - VERSÃO FINAL (COMPLETA)
 * Inclui: Home, Admin, Cardápio, Buffet, Eventos e Responsividade
 * ======================================================
 */

/* 1. VARIÁVEIS E RESET */
:root {
    /* Paleta de Cores */
    --primary-color: #D97706;  /* Laranja principal */
    --secondary-color: #5D4037; /* Marrom escuro */
    --background-color: #F5F3F1; /* Bege claro */
    --surface-color: #FFFFFF;   /* Branco */
    --text-color: #3E2723;      /* Marrom bem escuro */
    --text-light: #6D4C41;     /* Marrom claro */
    --error-color: #D32F2F;
    --success-color: #388E3C;

    /* Tipografia */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Padrões */
    --border-radius: 12px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--secondary-color); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

/* 2. HEADER E NAVEGAÇÃO */
.main-header {
    background-color: var(--surface-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    border-bottom: 3px solid var(--primary-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
}

.navbar-brand:hover { opacity: 0.9; }

.navbar-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 0;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* 3. BOTÕES E ELEMENTOS GERAIS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background-color: #B45309;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(93, 64, 55, 0.3);
}

.btn-secondary:hover {
    background-color: #3E2723;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(93, 64, 55, 0.4);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.title-underline {
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 3rem auto;
    border-radius: 2px;
}

.title-underline-left {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 0 2rem 0;
    border-radius: 2px;
}

/* 4. SEÇÕES PÁGINA INICIAL (index.html) */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1517248135808-57b9b3f94c47?w=1600&q=80') center/cover no-repeat;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.8rem;
    font-family: var(--font-body);
    margin-bottom: 3rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-section {
    padding: 5rem 0;
    background-color: var(--surface-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.contact-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.contact-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.contact-card {
    background-color: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.contact-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-family: var(--font-body);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.contact-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 5. SEÇÕES CARDÁPIO E EVENTOS */
.menu-section, .events-section, .buffet-section { padding: 4rem 0; }
.menu-title, .events-title, .buffet-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.buffet-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0 2rem 0;
}
.buffet-header h2 { color: white; font-size: 2rem; margin: 0; }
.buffet-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.menu-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 3rem;
}

.menu-tabs { display: flex; gap: 10px; flex-wrap: wrap; }

.tab-btn {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--background-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--surface-color);
    border-color: var(--primary-color);
}

.search-bar { position: relative; }
.search-bar input {
    background-color: var(--surface-color);
    border: 2px solid var(--background-color);
    color: var(--text-color);
    padding: 14px 20px 14px 45px;
    border-radius: var(--border-radius);
    width: 300px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}
.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.menu-grid, .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.menu-item-link-wrapper { text-decoration: none; color: inherit; display: block; }
.menu-item, .event-item {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.menu-item-link-wrapper:hover .menu-item, .event-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.menu-item-image, .event-item-image {
    width: 100%; height: 220px; object-fit: cover;
}
.menu-item-content, .event-item-content {
    padding: 25px; flex-grow: 1; display: flex; flex-direction: column;
}
.menu-item-name, .event-item-title {
    font-size: 1.6rem; margin-bottom: 10px; color: var(--secondary-color);
}
.menu-item-description, .event-item-description {
    font-size: 1rem; color: var(--text-light); line-height: 1.6; flex-grow: 1;
}
.menu-item-price {
    font-size: 1.3rem; font-weight: 700; color: var(--primary-color);
    margin-top: 15px; font-family: var(--font-heading);
}
.event-item-date {
    font-size: 0.9rem; color: var(--primary-color); font-weight: 700;
    text-transform: uppercase; margin-bottom: 5px; display: block;
}

/* 6. PÁGINA DE PRODUTO */
.product-section { padding: 4rem 20px; }
.product-container {
    display: grid; 
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    max-width: 1100px; 
    margin: 0 auto; 
    background: var(--surface-color);
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}
.product-image-wrapper {
    position: relative;
    height: 100%;
    background-color: #eee;
}
.product-image-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    min-height: 450px; 
}
.product-content { 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

/* 7. FOOTER */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--background-color);
    text-align: center;
    padding: 3rem 0;
    margin-top: auto;
}
.main-footer p { color: var(--background-color); font-size: 0.9rem; }

/* 8. PAINEL ADMIN E GERAL */
.admin-container { max-width: 900px; margin: 2rem auto; padding: 2rem; }
.admin-header { text-align: center; margin-bottom: 2rem; }

/* Admin Tabs mais flexíveis (NOVO) */
.admin-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.admin-tab-btn { padding: 12px 25px; background: #ddd; border: none; border-radius: var(--border-radius); cursor: pointer; font-weight: bold; font-family: var(--font-heading); text-transform: uppercase; transition: 0.3s; }
.admin-tab-btn.active { background: var(--primary-color); color: white; }
.login-form, .admin-form { background-color: var(--surface-color); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-medium); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; background-color: #f9f9f9; font-family: var(--font-body); font-size: 1rem; color: var(--text-color); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2); background-color: var(--surface-color); }
.btn-submit { width: 100%; padding: 16px; border-radius: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; cursor: pointer; border: none; text-align: center; background-color: var(--primary-color); color: #fff; box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3); }
.btn-submit:hover { background-color: #B45309; transform: translateY(-3px); }
.item-card { background-color: var(--surface-color); padding: 1.5rem; border-radius: var(--border-radius); box-shadow: var(--shadow-light); margin-bottom: 1.5rem; border-left: 5px solid var(--primary-color); }
.item-actions { margin-top: 1.5rem; display: flex; gap: 10px; }
.btn-edit, .btn-delete { padding: 8px 15px; border: none; border-radius: 6px; cursor: pointer; font-family: var(--font-body); font-weight: 600; transition: all 0.3s ease; font-size: 0.9rem; }
.btn-edit { background-color: #E0E0E0; color: #333; }
.btn-delete { background-color: var(--error-color); color: #fff; }

/* Modal */
body.no-scroll { overflow: hidden; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--surface-color); padding: 2rem; border-radius: var(--border-radius); width: 90%; max-width: 450px; text-align: center; }
.modal-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.modal-btn { padding: 12px 28px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; }
.modal-btn-confirm { background-color: var(--error-color); color: #fff; }
.modal-btn-cancel { background-color: #E0E0E0; color: #333; }

/* --- NOVAS ADIÇÕES ESPECÍFICAS PARA A LA CARTE E BUFFET --- */

/* Títulos de Subcategorias no Cardápio */
.subcategory-title {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    color: var(--secondary-color);
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    margin: 40px 0 20px 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Galeria Buffet Café */
.buffet-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.buffet-photo-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    height: 250px;
    transition: transform 0.3s ease;
}

.buffet-photo-card:hover {
    transform: scale(1.02);
}

.buffet-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajuste nos cards de Dia (Almoço Buffet) */
.day-card {
    border: 2px solid #e0e0e0;
}

.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 1.1rem;
}

/* 9. RESPONSIVIDADE */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .mobile-menu-toggle { display: block; z-index: 1002; }
    .navbar-nav {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background-color: var(--surface-color); flex-direction: column;
        justify-content: center; align-items: center; gap: 30px;
        transition: left 0.4s ease-in-out; z-index: 1001;
    }
    .navbar-nav.active { left: 0; }
    .nav-link { font-size: 1.8rem; }
    
    .menu-grid, .events-grid, .buffet-gallery-grid { grid-template-columns: 1fr; }
    
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-text h2 { text-align: center; }
    .title-underline-left { margin: 0 auto 2rem auto; }
    .about-image { order: -1; margin-bottom: 2rem; }

    .contact-info-grid { grid-template-columns: 1fr; }

    .product-container { 
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-image-wrapper img { min-height: 300px; }
    .product-content { padding: 30px; }
}