﻿/* ==========================================================================
   1. VARIÁVEIS DE DESIGN E ESTILIZAÇÃO DA BASE DO SISTEMA
   ========================================================================== */
:root {
    --primary-marrom: #4A2E1B; /* Marrom escuro do banner hero */
    --accent-dourado: #D4AF37; /* Dourado premium de realce */
    --text-color: #333333; /* Cor de leitura escura para alta nitidez */
    --sidebar-bg: #2E3E33; /* Verde floresta escuro da navegação */
    --sidebar-adm-bg: #1C2620; /* Fundo escuro restrito da área logada */
}

/* 🛡️ CORREÇÃO DA PAREDE: Zera qualquer fundo sólido nativo do Blazor para revelar a foto */
html, body, .page, main, app, #app {
    background: transparent !important;
    background-color: transparent !important;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container de envolvimento para dar respiro lateral unificado */
.home-main-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    box-sizing: border-box;
}

/* ==========================================================================
   🖼️ PLANO DE FUNDO LOCAL DE ALTA GASTRONOMIA FIXADO
   ========================================================================== */
.cardapio-background-wrapper {
    /* Película escura super suave (0.15) apenas para dar contraste às letras brancas do Hero */
    background:
        radial-gradient(circle at 12% 12%, rgba(212, 174, 85, .20), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(71, 100, 76, .17), transparent 30%),
        linear-gradient(145deg, #f4ecdf 0%, #fffaf1 48%, #e8efe5 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito Parallax premium na rolagem */
    padding: 30px 15px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Forçar página cheia na visão do cliente (Sem Sidebar) */
.full-width-client-content {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

    .full-width-client-content .cardapio-background-wrapper {
        width: 100vw;
        box-sizing: border-box;
    }

/* ==========================================================================
   2. RECONSTRUÇÃO DO BANERO HERO PREMIUM
   ========================================================================== */
.main-hero-container {
    background: linear-gradient(135deg, #4A2E1B 0%, #2F1A0C 100%) !important;
    color: #ffffff !important;
    border-radius: 20px;
    padding: 70px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin-bottom: 35px;
}

.hero-content-inner {
    max-width: 750px;
    margin: 0 auto;
}

.chef-badge {
    background-color: rgba(214, 175, 55, 0.15);
    border: 1px solid var(--accent-dourado);
    color: var(--accent-dourado);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brand-title {
    font-family: 'Georgia', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.brand-subtitle {
    font-size: 1.25rem;
    color: var(--accent-dourado);
    font-style: italic;
    margin: 0 0 25px 0;
}

.brand-description {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* ==========================================================================
   3. FILOSOFIA E INTRODUÇÃO DO CARDÁPIO (MOLDE DE PAPEL BRANCO)
   ========================================================================== */
.intro-philosophy-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.philosophy-paper-card {
    background-color: #ffffff;
    border: 1px solid #EAE4D9;
    border-radius: 16px;
    padding: 40px 45px;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    text-align: left;
    box-sizing: border-box;
}

.philosophy-main-heading {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E3E33;
    margin: 0 0 10px 0;
}

.divider-leaves-mini {
    color: var(--accent-dourado);
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.philosophy-lead-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #4A5F50;
    margin-bottom: 18px;
    line-height: 1.5;
}

.philosophy-body-text p {
    font-size: 0.98rem;
    color: #555555;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* ==========================================================================
   4. SEÇÃO "COMO FUNCIONA ?" (CARDS ALINHADOS NA BASE)
   ========================================================================== */
.info-section {
    padding: 20px 0 40px 0;
    text-align: center;
}

.section-title {
    font-family: 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2E3E33;
    margin-bottom: 10px;
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    margin-top: 15px;
}

.step-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #EAE4D9;
    flex: 1;
    transition: transform 0.2s;
}

    .step-card:hover {
        transform: translateY(-2px);
    }

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}

.step-card h3 {
    font-family: 'Georgia', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #334237;
    margin: 0 0 10px 0;
}

.step-card p {
    font-size: 0.92rem;
    color: #66756B;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   5. BOTÕES COMPARTILHADOS E CONTROLE DA SIDEBAR ASSEMBLED
   ========================================================================== */
.btn-primary-custom {
    background-color: var(--accent-dourado) !important;
    color: #000000 !important;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(214, 175, 55, 0.25);
    transition: transform 0.2s, background-color 0.2s;
}

    .btn-primary-custom:hover {
        background-color: #E5C158;
        transform: translateY(-1px);
    }

.btn-secondary-custom-dark {
    background-color: transparent;
    color: #4A5F50 !important;
    padding: 12px 24px;
    border: 1px solid #4A5F50;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

/* Barra Lateral Compartilhada */
.nav-scrollable {
    background-color: var(--sidebar-bg) !important;
}

.nav-admin-separator {
    padding: 20px 16px 8px 16px !important;
    background-color: var(--sidebar-adm-bg) !important;
    display: block !important;
}

.separator-line {
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin: 0 0 12px 0 !important;
}

.admin-section-title {
    color: #E2BA39 !important;
    font-size: 0.82rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    font-weight: 800 !important;
    display: block !important;
}

.nav-admin-separator ~ .nav-item {
    background-color: var(--sidebar-adm-bg) !important;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   6. AJUSTE DE RESPONSIVIDADE PARA DESKTOP
   ========================================================================== */
@media (min-width: 768px) {
    .steps-grid {
        flex-direction: row;
    }
}


/* Fundo global controlado pela Aparência do Site. */
.site-global-background .client-showcase,
.site-global-background .home-main-wrapper,
.site-global-background .cardapio-background-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}
