/* ==========================================================================
   FLORATTA PADARIA & CAFETERIA - UNIFIED DESIGN SYSTEM (2026)
   ========================================================================== */

/* 1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
:root {
    /* Cores da Marca */
    --primary-color: #082A15;       /* Verde Profundo (Luxo) */
    --primary-light: #134226;       /* Verde Folha */
    --secondary-color: #F9F7F2;     /* Creme/Off-white (Fundo Principal) */
    --secondary-dark: #ebe7dd;      /* Creme para bordas */
    --accent-color: #C5A059;        /* Dourado Nobre */
    --accent-hover: #b08d48;        /* Dourado Escuro */

    /* Textos */
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --text-light: #f9f7f2;
    --white: #ffffff;

    /* Utilitários */
    --success: #27ae60;             /* Verde WhatsApp/Sucesso */
    --danger: #EA1D2C;              /* Vermelho iFood */

    /* Tipografia */
    --font-serif: 'Playfair Display', serif; /* Títulos */
    --font-sans: 'Lato', sans-serif;         /* Corpo */

    /* Layout */
    --header-height: 80px;
    --header-mobile: 70px;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;

    /* Sombras (Depth System) */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(8, 42, 21, 0.15);

    /* Transições */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset Moderno */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

/* Tipografia Base */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p { margin-bottom: 1rem; color: var(--text-gray); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout Containers */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

/* ==========================================================================
   2. HEADER & NAVEGAÇÃO
   ========================================================================== */
header {
    background-color: var(--primary-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

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

/* Logo */
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 55px; object-fit: contain; }

#text-logo {
    color: var(--secondary-color);
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
}

/* Menu Desktop */
.nav-links { display: flex; gap: 30px; align-items: center; }

.nav-links a {
    color: rgba(249, 247, 242, 0.9);
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

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

.nav-links a:hover { color: var(--accent-color); }
.nav-links a:hover::after { width: 100%; }

/* Botão Header (Desktop) */
.cta-header .btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cta-header .btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

/* Ícone Menu Mobile */
.mobile-menu-icon {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* ==========================================================================
   3. HERO SECTION (BANNER PRINCIPAL)
   ========================================================================== */
.hero {
    height: 85vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(8, 42, 21, 0.9) 0%, rgba(8, 42, 21, 0.6) 100%);
    z-index: 1;
}

.hero-text { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }

.hero-text h1 {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-style: italic;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

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

/* Botões Genéricos */
.btn-primary, .btn-secondary {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

/* ==========================================================================
   4. SEÇÕES GERAIS (DESTAQUES, SOBRE)
   ========================================================================== */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; }

/* Grid Destaques */
.grid-destaques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.card img { width: 100%; height: 250px; object-fit: cover; }
.card h3 { padding: 25px 0 10px; color: var(--primary-color); font-size: 1.5rem; }
.card p { padding: 0 25px 30px; font-size: 1rem; }

/* Seção Sobre (Split Screen) */
.split-screen {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 20px;
}

.sobre-img img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 20px 20px 0px var(--accent-color);
}

.sobre-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.rating { color: #f1c40f; margin-top: 20px; font-weight: bold; }
.rating span { color: var(--text-dark); margin-left: 10px; font-size: 0.9rem; }

/* ==========================================================================
   5. PÁGINA: CARDÁPIO
   ========================================================================== */
.page-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* Fundo sutil dourado */
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
}

.page-header h1 {
    color: var(--accent-color);
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
}

.subtitle {
    display: block;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

/* Layout do Menu */
.menu-category { margin-bottom: 80px; }

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--secondary-dark);
    padding-bottom: 20px;
}

.icon-box {
    width: 60px; height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.menu-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Accent lateral no hover */
.menu-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background-color: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.menu-item:hover::before { transform: scaleY(1); }

.menu-item h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-dark); }
.item-price {
    align-self: flex-start;
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 15px;
    background-color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
}

/* ==========================================================================
   6. CAFÉ COLONIAL (CARD PREMIUM)
   ========================================================================== */
.colonial-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.3);
    margin-top: 30px;
}

.colonial-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-destaque {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    align-self: flex-start;
}

.colonial-content h2 { font-size: 2.8rem; margin-bottom: 15px; }

.colonial-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}
.colonial-list li i { color: var(--success); }

.availability-box {
    background-color: #f4f8f5;
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-colonial {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 10px;
}

.btn-colonial:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-3px);
}

/* Imagem Café Colonial */
.colonial-image-wrapper {
    flex: 1;
    background-color: #fff;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.img-enquadrada {
    width: 90%;
    max-height: 80%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border: 8px solid var(--white);
    transform: rotate(2deg);
    transition: var(--transition);
}
.img-enquadrada:hover { transform: rotate(0deg) scale(1.02); }

/* ==========================================================================
   7. DELIVERY E CONTATO
   ========================================================================== */
.delivery-cta {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0d3820);
    border-radius: var(--radius-md);
    padding: 60px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.delivery-cta h2 { color: var(--accent-color); font-size: 2.5rem; }

.btn-ifood {
    background-color: var(--danger);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 25px;
}
.btn-ifood:hover { background-color: #ff2b3b; transform: scale(1.05); }

/* Contato */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-box {
    margin-bottom: 25px;
    text-align: center;
    padding: 30px;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.05);
}

.info-box i { font-size: 2rem; color: var(--accent-color); margin-bottom: 15px; }
.btn-whats {
    display: inline-block;
    background-color: var(--success);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    margin-top: 15px;
    font-weight: bold;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding-top: 80px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 { color: var(--accent-color); margin-bottom: 20px; font-size: 1.4rem; }
.footer-col p { color: rgba(255,255,255,0.7); display: flex; align-items: flex-start; gap: 10px; }
.footer-col i { color: var(--accent-color); margin-top: 5px; }

.socials { display: flex; gap: 15px; }
.socials a {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}
.socials a:hover { background: var(--accent-color); color: var(--primary-color); transform: translateY(-3px); }

.copyright { text-align: center; padding: 25px; font-size: 0.9rem; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   9. ANIMAÇÕES E EXTRAS
   ========================================================================== */
.animate-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 65px; height: 65px;
    background-color: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 35px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 2000;
    animation: pulse 2s infinite;
    transition: var(--transition);
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}



/* ==========================================================================
   10. RESPONSIVIDADE (MOBILE & TABLET)
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .hero { height: auto; padding: 140px 0 100px; }

    /* Ajuste Café Colonial Tablet */
    .colonial-card { flex-direction: column; }
    .colonial-image-wrapper { min-height: 300px; padding: 20px; }
    .img-enquadrada { transform: rotate(0); border-width: 5px; }
    .colonial-content { padding: 40px; text-align: center; }
    .btn-colonial { align-self: center; }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* --- 1. ESTRUTURA E ESPAÇAMENTOS (O "Antigo" que funcionava) --- */
    header { height: var(--header-mobile); padding: 0; }

    /* Remove padding do main para tirar o buraco branco do topo */
    main { padding-top: 0; }

    /* AQUI ESTÁ A MÁGICA: Padding lateral no container impede que cole na borda */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
        overflow-x: hidden; /* Evita rolagem lateral indesejada */
    }

    /* Ajuste específico para seções que usam padding */
    .section-padding {
        padding: 40px 0;
    }
    footer { margin-top: 40px; }

    /* --- 2. MENU MOBILE --- */
    .nav-links, .cta-header { display: none; }

    .mobile-menu-icon {
        display: block;
        position: absolute; right: 20px; top: 50%;
        transform: translateY(-50%);
        padding: 10px;
        font-size: 1.6rem;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-mobile);
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        animation: slideDown 0.3s ease forwards;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 1001; /* Garante que fique acima de tudo */
    }

    .nav-links.active a {
        display: block; width: 100%;
        text-align: center; padding: 15px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    /* --- 3. AJUSTES VISUAIS GERAIS --- */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    /* ADICIONE ISTO PARA ARRUMAR A CAPA NO CELULAR */
    .hero {
        background-attachment: scroll !important; /* Desativa o efeito parallax que quebra no mobile */
        background-position: center center !important;
        height: 60vh; /* Ajusta a altura para não ocupar tela demais no celular */
    }

    .hero-text h1 { font-size: 2.2rem; line-height: 1.2; }

    .hero-text h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; }
    .btn-primary, .btn-secondary { width: 100%; }

    /* Layouts Internos */
    .split-screen { flex-direction: column; padding: 30px 20px; gap: 30px; }
    .contact-container { grid-template-columns: 1fr; gap: 30px; }

    /* Cardápio */
    .menu-items { grid-template-columns: 1fr; gap: 25px; }
    .category-header { flex-direction: column; text-align: center; gap: 15px; }

    /* --- 4. CAFÉ COLONIAL (O "Novo" estilo Paisagem) --- */
    /* Como o .container já tem padding 20px, o card não cola na tela. */
    .colonial-card {
        flex-direction: column;
        margin-top: 30px;
        border-radius: var(--radius-md);
        overflow: hidden; /* Garante que a imagem respeite as bordas arredondadas do card */
    }

    .colonial-image-wrapper {
        order: -1; /* Joga a imagem para o topo */
        width: 100%;
        height: 200px; /* Define altura fixa para virar banner */
        padding: 0; /* Remove padding interno para a imagem ir de ponta a ponta DO CARD */
        min-height: auto;
        background: none;
    }

    .img-enquadrada {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Recorta a imagem para preencher o espaço */
        border: none;
        border-radius: 0; /* Remove borda arredondada interna da imagem */
        transform: none;
        box-shadow: none;
    }

    .colonial-content {
        padding: 30px 20px;
        text-align: center;
    }

    .badge-destaque { align-self: center; margin-bottom: 15px; }
    .colonial-content h2 { font-size: 1.8rem; }
    .colonial-list li { justify-content: center; font-size: 0.95rem; }

    .availability-box { flex-direction: column; text-align: center; gap: 10px; }
    .btn-colonial { width: 100%; justify-content: center; align-self: center; }

    /* --- 5. RODAPÉ E EXTRAS --- */
    .delivery-cta { padding: 40px 20px; }
    .btn-ifood { width: 100%; justify-content: center; }

    .footer-content { text-align: center; gap: 30px; }
    .socials { justify-content: center; }

    .whatsapp-float {
        bottom: 20px; right: 20px;
        width: 55px; height: 55px;
        font-size: 28px;
    }
}