﻿/* css/style.css */

/* --- 1. IDENTIDADE VISUAL & GERAL --- */
:root {
    --cor-azul-logo: #003B70;
    --cor-verde-logo: #5C9A43;
    --cor-amarelo-star: #FFC107;
    --cor-fundo: #f8f9fa;
    --cor-texto: #333;
    --cor-rodape-bg: #eef2f5;
    --cor-zap: #25D366;
}

body {
    background-color: var(--cor-fundo);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--cor-texto);
    padding-top: 0;
    overflow-x: hidden;
}

body.home-page { 
    padding-top: 110px; 
}

/* --- 2. NAVBAR & EFEITO SHRINK --- */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 15px rgba(0,0,0,0.05);
    padding: 15px 0; 
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand img {
    height: 80px !important; 
    width: auto;
    transition: height 0.3s ease;
}

.navbar-custom.shrink {
    padding: 5px 0; 
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-custom.shrink .navbar-brand img {
    height: 50px !important; 
}

/* --- 3. WIDGET CLIMA E RELÓGIO (DESKTOP) --- */
.weather-widget {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px);
    padding: 10px 15px; border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15); text-align: right; z-index: 100; 
    min-width: 140px; border: 1px solid rgba(255,255,255,0.8);
    display: flex; flex-direction: column; align-items: flex-end;
}

.date-display {
    font-size: 0.75rem; font-weight: 700; color: var(--cor-azul-logo);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px;
    white-space: nowrap;
}

.time-display {
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-variant-numeric: tabular-nums; 
    font-feature-settings: "tnum";
    font-weight: 800; 
    font-size: 1.8rem; 
    color: #333; 
    line-height: 1; 
    margin-bottom: 5px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.weather-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.weather-temp { font-size: 1.2rem; font-weight: 800; color: var(--cor-verde-logo); }
.weather-info { font-size: 0.75rem; color: #666; font-weight: 500; }

.user-counter-badge {
    position: absolute; top: 20px; left: 20px;
    background: rgba(0, 0, 0, 0.6); color: white;
    padding: 5px 12px; border-radius: 20px; font-size: 0.75rem;
    z-index: 100; backdrop-filter: blur(2px);
    display: flex; align-items: center; gap: 6px;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 20, 40, 0.6), rgba(0, 20, 40, 0.8)), url('../img/fn_noitr.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    width: 100%;
}

.hero-title {
    font-weight: 900; font-size: 3.5rem; color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); line-height: 1.1;
    letter-spacing: -1px; margin-bottom: 15px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95); font-size: 1.1rem;
    font-weight: 500; max-width: 700px; margin: 0 auto 30px auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); line-height: 1.5;
}

.text-highlight { color: var(--cor-amarelo-star); font-style: italic; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; padding: 0 10px; }
}

.search-box-container { max-width: 700px; width: 100%; }

/* --- 5. CATEGORIAS --- */
.cat-grid-hero { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.cat-card { text-align: center; cursor: pointer; transition: transform 0.2s; width: 90px; }
.cat-card:hover { transform: translateY(-5px); }
.cat-icon {
    width: 65px; height: 65px; margin: 0 auto 8px auto;
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.cat-name { color: white; font-weight: 600; font-size: 0.85rem; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8); }

/* Cores das Categorias */
.bg-food { background: linear-gradient(135deg, #ff6b6b, #ee5253); }
.bg-auto { background: linear-gradient(135deg, #48dbfb, #0abde3); }
.bg-health { background: linear-gradient(135deg, #1dd1a1, #10ac84); }
.bg-beauty { background: linear-gradient(135deg, #ff9ff3, #f368e0); }
.bg-agro { background: linear-gradient(135deg, #009432, #A3CB38); }
.bg-fashion { background: linear-gradient(135deg, #5f27cd, #341f97); }
.bg-pet { background: linear-gradient(135deg, #ff9f43, #e67e22); }
.bg-build { background: linear-gradient(135deg, #576574, #222f3e); }
.bg-transport { background: linear-gradient(135deg, #54a0ff, #2e86de); }
.bg-service { background: linear-gradient(135deg, #feca57, #ff9f43); }

/* --- 6. ELEMENTOS GERAIS & CARDS --- */
.card-empresa {
    border: none; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); background: white; transition: 0.3s;
    overflow: hidden; /* Garante que nada saia das bordas arredondadas */
}
.card-empresa:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.card-img-top { height: 180px; object-fit: cover; }

/* Placeholder Premium (NOVO) */
.premium-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.premium-placeholder-icon {
    color: #ccc;
    margin-bottom: 8px;
}
.premium-text-info {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}
.premium-cta-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
}

.badge-cat {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0, 0, 0, 0.7); color: white;
    padding: 5px 10px; border-radius: 20px; font-size: 0.75rem; z-index: 5;
}

.btn-venda {
    background: linear-gradient(45deg, var(--cor-verde-logo), #45a049);
    border: none; transition: transform 0.2s;
}
.btn-venda:hover { transform: scale(1.02); }

.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(92, 154, 67, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(92, 154, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(92, 154, 67, 0); }
}

.btn-float-whatsapp-text {
    position: fixed; bottom: 25px; right: 20px;
    background-color: var(--cor-zap); color: white;
    border-radius: 50px; padding: 12px 24px 12px 18px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none; z-index: 100;
    transition: all 0.3s ease; font-weight: 700; font-size: 1rem;
}
.btn-float-whatsapp-text i { font-size: 1.4rem; }
.btn-float-whatsapp-text:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); color: white;
}
.btn-float-whatsapp-text:active { transform: scale(0.98); }

/* Paginação (NOVO) */
.page-link {
    color: var(--cor-azul-logo);
    border: none;
    margin: 0 3px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.page-link:hover {
    background-color: #e9ecef;
    color: var(--cor-azul-logo);
}
.page-item.active .page-link {
    background-color: var(--cor-azul-logo);
    border-color: var(--cor-azul-logo);
    color: white;
}
.page-item.disabled .page-link {
    color: #ccc;
    background-color: transparent;
}

/* --- 7. PÁGINA EMPRESA --- */
.header-wrapper {
    position: relative; width: 100%; height: 280px; overflow: hidden;
}
.company-cover-container { width: 100%; height: 100%; position: relative; }
.header-image { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); }
.cover-gradient {
    position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
    background: linear-gradient(to top, var(--cor-fundo), transparent);
}

.navbar-overlay {
    position: absolute; top: 0; left: 0; width: 100%; padding: 15px 20px; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
}

.btn-glass-back {
    background: rgba(255, 255, 255, 0.85); width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--cor-azul-logo); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none; transition: transform 0.2s; backdrop-filter: blur(4px);
    font-size: 1.2rem;
}
.btn-glass-back:hover { transform: scale(1.05); color: var(--cor-verde-logo); }

.logo-glass-container {
    background: rgba(255, 255, 255, 0.85); padding: 5px 15px; border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; height: 42px;
    backdrop-filter: blur(4px);
}

.main-content-overlap { margin-top: -80px; position: relative; z-index: 20; padding-bottom: 80px; }
.z-index-10 { z-index: 10; }

.company-logo-internal {
    width: 140px; height: 140px;
    border-radius: 15px; background: white; padding: 5px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.company-logo-internal img {
    max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px;
}

.premium-badge-box {
    background: linear-gradient(135deg, #fff9e6, #fff0c2);
    border: 1px solid #ffda6a;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.15);
}
.animate-bounce { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.btn-social-action {
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white !important; font-size: 1.4rem; transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.btn-social-action:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.25); filter: brightness(1.1); }
.bg-insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.bg-face { background-color: #1877F2; }
.bg-site { background-color: var(--cor-azul-logo); }
.bg-whats { background-color: #25D366; }

.promo-card-detail {
    background: white; border: 1px solid #ffecec; border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; height: 100%;
}
.promo-card-detail img { height: 150px; object-fit: cover; width: 100%; }
.promo-card-detail .p-body { padding: 15px; }

/* --- 8. PÁGINA CIDADE --- */
.city-header-wrapper {
    position: relative; width: 100%; height: 380px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; background-color: var(--cor-azul-logo); overflow: hidden;
}
.city-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 59, 112, 0.7), rgba(0, 59, 112, 0.9)), url('../img/fn_noitr.jpg');
    background-size: cover; background-position: center; z-index: 1;
}
.city-text-content {
    position: relative; z-index: 10; color: white; margin-top: 20px; padding: 0 20px; animation: fadeInUp 1s ease-out;
}
.city-text-content h1 {
    font-weight: 800; font-size: 3.5rem; margin-bottom: 5px; text-shadow: 0 4px 15px rgba(0,0,0,0.6); letter-spacing: -1px;
}
.city-text-content .slogan {
    font-size: 1.2rem; color: var(--cor-amarelo-star); font-weight: 600; font-style: italic;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); display: inline-block; border-bottom: 2px solid var(--cor-amarelo-star); padding-bottom: 5px;
}
.city-badge-top {
    background-color: rgba(255, 255, 255, 0.2); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4); padding: 5px 15px; border-radius: 20px;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: inline-block;
}
.city-coat-floating {
    position: relative; z-index: 20; margin-top: -80px; margin-bottom: 30px; display: flex; justify-content: center;
}
.coat-container-circle {
    width: 160px; height: 160px; background: white; border-radius: 50%; padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 59, 112, 0.25); display: flex; align-items: center; justify-content: center; border: 4px solid white;
}
.brasao-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); transition: transform 0.3s ease; }
.coat-container-circle:hover .brasao-img { transform: scale(1.1); }

.stat-card {
    background: white; padding: 20px 10px; border-radius: 15px; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-bottom: 4px solid var(--cor-azul-logo); height: 100%;
}
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--cor-azul-logo); }
.stat-label { font-weight: 600; color: #555; font-size: 0.9rem; margin-bottom: 5px; }

.econ-card {
    background: white; border-radius: 12px; padding: 15px; text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: 100%; border: 1px solid #f0f0f0;
}
.econ-icon {
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px auto; color: white; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.dist-list-item {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; font-size: 0.9rem;
}
.dist-list-item:last-child { border-bottom: none; }
.dist-km { font-weight: 800; color: var(--cor-verde-logo); }

/* --- 9. CARROSSEL DE OFERTAS --- */
.promo-carousel {
    display: flex; overflow-x: auto; gap: 15px; padding: 10px 5px 20px 5px;
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; white-space: nowrap;
}
.promo-carousel::-webkit-scrollbar { display: none; }

.promo-card {
    min-width: 280px; max-width: 280px;
    background: white; border-radius: 15px; border: 1px solid #ffecec;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); flex-shrink: 0;
    position: relative; overflow: hidden; transition: transform 0.2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }

.company-tag {
    background-color: #003B70; color: white;
    font-size: 0.7rem; font-weight: 600; padding: 3px 10px;
    border-radius: 20px; position: absolute; top: 10px; left: 10px;
    z-index: 10; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.promo-badge {
    background: #dc3545; color: white; padding: 3px 10px;
    font-size: 0.65rem; font-weight: bold; text-transform: uppercase;
    position: absolute; top: 0; right: 0; border-bottom-left-radius: 10px; z-index: 10;
}

/* --- 10. RODAPÉ --- */
.footer-midiakit {
    background-color: var(--cor-rodape-bg); border-top: 1px solid #dee2e6;
    padding: 60px 0 20px 0; text-align: center;
}
.footer-logo-vert {
    height: 50px; mix-blend-mode: multiply; opacity: 0.8; margin-bottom: 20px;
}
.contact-btns {
    display: flex; gap: 15px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap;
}

.btn-footer-custom {
    display: inline-flex; align-items: center; padding: 12px 25px;
    border-radius: 50px; font-weight: 700; text-decoration: none;
    transition: all 0.3s ease; border: 2px solid transparent;
}

/* Botão Principal */
.btn-footer-custom:first-child {
    background-color: var(--cor-verde-logo); color: white;
}
.btn-footer-custom:first-child:hover {
    background-color: #45a049; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(92, 154, 67, 0.3);
}

/* Demais Botões */
.btn-footer-custom:not(:first-child) {
    border-color: var(--cor-azul-logo); color: var(--cor-azul-logo); background-color: transparent;
}
.btn-footer-custom:not(:first-child):hover {
    background-color: var(--cor-azul-logo); color: white; transform: translateY(-3px);
}

/* Ticker */
.market-ticker-section { background: #f8f9fa; border-bottom: 1px solid #e9ecef; padding: 10px 0; overflow: hidden; }
.market-ticker-track { display: inline-block; white-space: nowrap; animation: ticker 35s linear infinite; }
.market-item { display: inline-flex; align-items: center; margin-right: 30px; font-size: 0.9rem; color: #333; font-weight: 500; }
.market-val { font-weight: 800; margin-left: 5px; color: var(--cor-azul-logo); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ======================================================= */
/* --- 11. RESPONSIVIDADE (MOBILE & TABLET) --- */
/* ======================================================= */
@media (max-width: 768px) {
    
    /* 1. Navbar Shrink Mobile */
    .navbar-custom .navbar-brand img { height: 60px !important; }
    .navbar-custom.shrink .navbar-brand img { height: 45px !important; }

    /* 2. Ocultar Widget Relógio no Mobile */
    .weather-widget { display: none !important; }
    
    /* 3. BOTÕES ÚTEIS: ENCAIXAR NA TELA (SEM SCROLL) - AGRESSIVO */
    .utility-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        justify-content: space-between; /* Distribui o espaço igualmente */
        gap: 4px; /* Gap mínimo */
        padding: 0 10px; /* Margem da borda */
        overflow: hidden; /* Corta se vazar */
    }

    .utility-bar .btn {
        flex: 1; /* Força todos a terem o mesmo tamanho */
        min-width: 0; /* Permite encolher abaixo do conteúdo se necessário */
        padding: 8px 4px; /* Padding lateral mínimo */
        font-size: 0.75rem; /* Fonte reduzida */
        white-space: nowrap; 
        text-overflow: ellipsis; 
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .utility-bar .btn i {
        font-size: 0.8rem;
        margin-right: 4px !important;
    }

    /* 4. Categorias em 3 linhas */
    .cat-grid-hero {
        gap: 8px; justify-content: center; padding: 0 5px;
    }
    .cat-card { width: 22%; min-width: 65px; }
    .cat-icon { width: 55px; height: 55px; font-size: 24px; margin-bottom: 5px; }
    .cat-name { font-size: 0.75rem; }
    
    /* Hero */
    .hero-title { font-size: 2.2rem; margin-top: 20px; }

    /* Botão Whats */
    .btn-float-whatsapp-text { bottom: 20px; right: 15px; padding: 10px 20px 10px 15px; font-size: 0.9rem; }

    /* Cidade */
    .city-header-wrapper { height: 320px; }
    .city-text-content h1 { font-size: 2.5rem; }
    .coat-container-circle { width: 130px; height: 130px; padding: 10px; }
    .city-coat-floating { margin-top: -65px; }
}