/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; scroll-behavior: smooth; }
body { background-color: #e4e4e4; overflow-x: hidden; }

/* NAVBAR */
.navbar {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    height: 100px; display: flex; align-items: center;
    background-color: rgba(209, 209, 209, 0.65); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-container {
    display: flex; width: 100%; max-width: 100%; margin: 0 auto;
    align-items: center; padding: 0 2% 0 3%;
}

.brand-group { 
    display: flex; align-items: center; gap: 15px; 
    flex: 1; 
    justify-content: flex-start;
}
.logo img { height: 55px; }
.brand-title { color: #1a4a7c; font-weight: 800; font-size: 1.4rem; line-height: 1.1; display: block; }
.brand-subtitle { color: #444; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; display: block; }

/* MENU CENTRALIZADO ABSOLUTO */
.nav-menu { 
    flex: 2; 
    display: flex; 
    justify-content: center; 
}
.nav-menu ul { display: flex; list-style: none; gap: 40px; align-items: center; }

.nav-menu ul li a { 
    text-decoration: none; color: #222; font-weight: 700; font-size: 12px; 
    text-transform: uppercase; position: relative; padding: 10px 0; 
}

/* BARRINHA AZUL NO MENU PRINCIPAL */
.nav-menu ul li a::after { 
    content: ""; position: absolute; width: 0; height: 3px; bottom: 0; left: 50%; 
    background-color: #1a4a7c; transition: 0.3s ease-in-out; transform: translateX(-50%);
}
.nav-menu ul li a:hover::after { width: 100%; }

.navbar-spacer { flex: 1; }

/* DROPDOWNS (INSTITUCIONAL E SERVIÇOS) */
.dropdown-container { position: relative; }
.mini-menu-vertical {
    visibility: hidden; opacity: 0; position: absolute; top: 45px; left: 50%;
    transform: translateX(-50%) translateY(10px); width: 220px;
    background-color: rgba(209, 209, 209, 0.95); backdrop-filter: blur(10px);
    border-radius: 4px; box-shadow: 0px 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease; z-index: 1100;
}
.mini-menu-vertical.active { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
.linha-azul-topo { width: 100%; height: 3px; background-color: #1a4a7c; }

.sub-items-box { display: flex; flex-direction: column; padding: 10px 0; }
.zoom-item { color: #222 !important; text-decoration: none !important; font-size: 10px !important; font-weight: 700; text-align: center; padding: 12px; transition: transform 0.3s ease; display: block; }
.zoom-item:hover { transform: scale(1.1); }
.zoom-item::after { display: none !important; }



/* --- CONFIGURAÇÕES GERAIS --- */
.body-portfolio-lojas {
    margin: 0;
    padding: 0;
    background-color: #f2f4f7; /* Branco quase cinza */
}

.section-internal-portfolio {
    padding: 80px 5%;
    font-family: 'Montserrat', sans-serif;
}

.internal-header {
    max-width: 1400px;
    margin: 0 auto 60px auto;
    text-align: left;
}

.back-link {
    text-decoration: none;
    color: #1a4a7c;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.internal-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #0a1a2a;
    margin: 15px 0 5px 0;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.internal-subtitle {
    color: #1a4a7c;
    font-weight: 400;
    font-size: 1.1rem;
    margin: 0;
}

/* --- GRID DE LOJAS --- */
.stores-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.store-card-premium {
    position: relative;
    height: 480px;
    border-radius: 40px; /* Bordas arredondadas padrão I9 */
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* Foto nítida mas com leve fundo preto */
    transition: transform 0.8s ease;
}

.store-info {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10, 26, 42, 0.9) 0%, transparent 60%);
    z-index: 2;
}

.store-info h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
}

.store-address {
    color: #00d4ff; /* Azul Neon I9 */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin: 10px 0 25px 0;
    letter-spacing: 1px;
}

.btn-view {
    text-decoration: none;
    color: #fff;
    border: 2px solid #00d4ff;
    padding: 15px 30px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
    text-transform: uppercase;
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

/* --- HOVER EFFECTS --- */
.store-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 26, 42, 0.15);
}

.store-card-premium:hover .card-bg {
    transform: scale(1.1);
    opacity: 1;
}

.btn-view:hover {
    background: #00d4ff;
    color: #0a1a2a;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .stores-grid-premium { grid-template-columns: 1fr; }
    .store-card-premium { height: 400px; }
}





/* FOOTER */
.main-footer { background-color: #111; color: #fff; padding: 60px 10%; text-align: center; }
.footer-logo { height: 65px; margin-bottom: 25px; }
.footer-social { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }
.social-link { font-size: 2.5rem; color: #fff; text-decoration: none; transition: all 0.3s ease; }
.social-link.insta:hover { color: #E4405F; transform: scale(1.2); }
.social-link.linkedin:hover { color: #0077B5; transform: scale(1.2); }

/* WHATSAPP */
.whatsapp-btn { 
    position: fixed; bottom: 30px; right: 30px; background: #25d366; color: #fff; 
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; 
    align-items: center; font-size: 32px; z-index: 2000; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.whatsapp-btn:hover { transform: scale(1.2) rotate(10deg); background-color: #128c7e; }

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .navbar { height: auto; padding: 20px 0; position: relative; }
    .navbar-container { flex-direction: column; gap: 20px; padding: 0 5%; }
    .brand-group { text-align: center; justify-content: center; }
    .nav-menu { width: 100%; }
    .nav-menu ul { flex-direction: column; gap: 15px; width: 100%; }
    .navbar-spacer { display: none; }
    .hero-section { margin-top: 0; }
    .form-grid { grid-template-columns: 1fr; }
}





/* ============================================================
   APENAS O CSS PARA MOBILE 
   ============================================================ */
@media (max-width: 600px) {
    /* 1. MANTÉM SUA BARRA HOME (SEM MEXER EM NADA) */
    .navbar { height: auto !important; padding: 10px 0 !important; position: relative !important;background-color: #b6b6b618 !important; overflow: visible !important; }
    .navbar-container { flex-direction: column !important; }
    .nav-menu { width: 100% !important; display: block !important; overflow: visible !important; }
    .nav-menu ul { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 25px !important; width: 100% !important; padding: 15px 10px !important; justify-content: flex-start !important; }
    .nav-menu ul li { flex: 0 0 auto !important; white-space: nowrap !important; }

    /* 2. RESOLVENDO O TEXTO COMENDO (ESTILO APPLE) */
    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important; /* ISSO MATA A LINHA BRANCA */
    }

    /* Container Principal - Ele trava a largura e centraliza tudo */
    .wrapper-portal, .container-central, .caixa-item {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important; /* Padding não empurra a largura */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ajuste do Texto para ele "respirar" sem quebrar ou sumir */
    h1, h2, .portal-header h1 {
        font-size: 1.6rem !important; /* Tamanho fixo seguro para iPhone SE/12 */
        line-height: 1.2 !important;
        white-space: normal !important; /* Permite quebrar linha se a palavra for muito grande */
        overflow-wrap: break-word !important; /* Quebra no meio da palavra se precisar */
        text-align: center !important;
    }

    p, span, .zoom-item {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        overflow-wrap: break-word !important;
    }

    /* 3. DROPDOWN (SUBMENUS) - Ajuste de visualização */
    .mini-menu-vertical {
        display: none !important;
        position: fixed !important;
        top: 140px !important;
        left: 5% !important;
        right: 5% !important;
        width: 90% !important; /* Ocupa a largura da tela com margem */
        transform: none !important;
        background-color: rgba(255, 255, 255, 0.959) !important;
        z-index: 99999 !important;
        border-radius: 12px !important;
    }

    .mini-menu-vertical.active { display: block !important; }

    /* 4. RODAPÉ E CONTATOS (FOTO QUE VOCÊ MANDOU) */
    .contato-info, footer {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important; /* Empilha ícone e texto */
        align-items: center !important;
       
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    /* 1. SUA BARRA PRINCIPAL: Mantida exatamente como você montou */
    .navbar { 
        height: auto !important; 
        padding: 10px 0 !important; 
        position: relative !important; 
        background-color: #b6b6b646 !important; /* Corrigido apenas o erro de sintaxe 'color' */
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important; 
    }
    
    .navbar-container { 
        flex-direction: column !important; 
        gap: 10px !important; 
    }

    .nav-menu { 
        width: 100% !important; 
        display: block !important; 
        overflow: visible !important;
    }
    
    .nav-menu ul { 
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; 
        gap: 25px !important; 
        width: 100% !important; 
        padding: 15px 10px !important;
        justify-content: flex-start !important;
        background: transparent !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-menu ul::-webkit-scrollbar { display: none !important; }

    .nav-menu ul li { 
        flex: 0 0 auto !important; 
        white-space: nowrap !important; 
    }

    /* 2. SEUS SUBMENUS: Dropdown Flutuante */
    .mini-menu-vertical {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important; 
        top: 120px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 250px !important;
        background-color: rgba(255, 255, 255, 0.575) !important;
        border-radius: 8px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
        z-index: 999999 !important;
    }

    .mini-menu-vertical.active {
        display: block !important;
    }

    /* 3. COMPLEMENTO PARA NÃO CORTAR TEXTO E EVITAR LINHA BRANCA NESSA TELA */
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .wrapper-portal {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 120px 20px 50px 20px; /* Padding lateral para o texto não encostar na borda */
        box-sizing: border-box;
    }

    .portal-header h1 {
        font-size: 1.8rem;
        word-wrap: break-word;
        text-align: center;
    }

    /* Grid em 2 colunas para tablet, para o texto ter espaço */
    .grid-caixas-ouvidoria {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }

    .aba-consulta-longa {
        grid-column: span 2;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    /* 1. SUA BARRA PRINCIPAL: Mantida fiel ao seu modelo */
    .navbar { 
        height: auto !important; 
        padding: 10px 0 !important; 
        position: relative !important; 
        background-color: #b6b6b646 !important; 
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important; 
    }
    
    .navbar-container { 
        flex-direction: column !important; 
        gap: 10px !important; 
    }

    .nav-menu { 
        width: 100% !important; 
        display: block !important; 
        overflow: visible !important;
    }
    
    .nav-menu ul { 
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important; 
        gap: 25px !important; 
        width: 100% !important; 
        padding: 15px 20px !important;
        justify-content: flex-start !important;
        background: transparent !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .nav-menu ul::-webkit-scrollbar { display: none !important; }

    .nav-menu ul li { 
        flex: 0 0 auto !important; 
        white-space: nowrap !important; 
    }

    /* 2. SEUS SUBMENUS: Dropdown Flutuante (Fixed) */
    .mini-menu-vertical {
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important; 
        top: 120px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 280px !important; /* Ligeiramente maior para telas médias */
        background-color: rgba(255, 255, 255, 0.575) !important;
        border-radius: 8px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
        z-index: 999999 !important;
    }

    .mini-menu-vertical.active {
        display: block !important;
    }

    /* 3. AJUSTES DE CONTEÚDO PARA NÃO CORTAR TEXTO */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .wrapper-portal {
        width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding: 100px 40px 50px 40px; /* Mais respiro lateral */
        box-sizing: border-box;
    }

    .portal-header h1 {
        font-size: 2.2rem; /* Título maior para telas médias */
        max-width: 90%;
        margin: 0 auto 20px;
        text-align: center;
    }

    /* Grid em 3 colunas (Ideal para 769px a 992px) */
    .grid-caixas-ouvidoria {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        width: 100%;
    }

    /* A aba de consulta longa ocupa as 3 colunas embaixo para não esmagar o texto */
    .aba-consulta-longa {
        grid-column: span 3;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .caixa-item {
        padding: 25px;
    }
}
