/* css/style.css - VERSÃO FINAL LIMPA */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-blue: #003366;
    --primary-dark: #002244;
    --accent-orange: #ff6600;
    --bg-light: #f4f7f6;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --text-main: #333;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .btn {
    font-family: 'Montserrat', sans-serif;
}

/* --- Layout Principal (Wrapper) --- */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* --- Área de Conteúdo e Rodapé Fixo --- */
#content {
    width: 100%;
    min-height: 100vh; /* Garante altura mínima da tela inteira */
    transition: all 0.3s;
    margin-left: var(--sidebar-width);
    
    /* MÁGICA DO RODAPÉ: */
    display: flex;
    flex-direction: column; 
}

/* Quando a sidebar encolhe, o conteúdo expande */
#content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* O Rodapé é empurrado para o final */
footer {
    margin-top: auto !important; 
    width: 100%;
}

/* --- Sidebar (Menu Lateral) --- */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--primary-blue);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
    position: fixed;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

/* Cabeçalho do Menu */
#sidebar .sidebar-header {
    background: #ffffff;
    padding: 0;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Logo Full */
.logo-full {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Links do Menu */
#sidebar ul.components {
    padding: 20px 0;
    flex-grow: 1;
}

#sidebar ul li a {
    padding: 15px 20px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
    white-space: nowrap;
}

#sidebar ul li a i {
    font-size: 1.2rem;
    min-width: 40px;
    text-align: center;
}

#sidebar ul li a:hover, #sidebar ul li a.active {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-orange);
}

/* --- Sidebar Recolhida (Collapsed) --- */
#sidebar.collapsed {
    min-width: var(--sidebar-collapsed-width);
    max-width: var(--sidebar-collapsed-width);
}

#sidebar.collapsed .link-text,
#sidebar.collapsed .sidebar-header h3, 
#sidebar.collapsed .btn-orcamento-text { 
    display: none; 
}

#sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 10px;
}

#sidebar.collapsed ul li a {
    justify-content: center;
    padding: 15px 0;
}
#sidebar.collapsed ul li a i { margin-right: 0; }

/* Botão Toggle (Hamburguer) */
.btn-toggle-menu {
    position: absolute; 
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--primary-blue);
    font-size: 1.1rem; 
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 10;
    transition: all 0.2s;
}

.btn-toggle-menu:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* --- Responsividade Mobile --- */
@media (max-width: 768px) {
    #sidebar { margin-left: calc(var(--sidebar-width) * -1); }
    #sidebar.active-mobile { margin-left: 0; }
    #content { margin-left: 0 !important; }
    #content.expanded { margin-left: 0 !important; }
    .navbar-mobile { display: flex !important; }
}

.navbar-mobile {
    display: none;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 990;
}

/* --- Componentes Visuais --- */
.hero-full {
    height: 90vh;
    background-color: var(--primary-blue); 
    background-image: linear-gradient(to right, rgba(0, 30, 60, 0.9), rgba(0, 30, 60, 0.5)), url('../img/banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.hero-glass-box {
    background: rgba(0, 30, 60, 0.6);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-plastic {
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    border: none;
    transition: 0.3s;
}
.btn-plastic:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    color: white;
}

.card-modern {
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.restricted-area {
    background-color: rgba(0,0,0,0.2);
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-admin {
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
}
.btn-admin:hover { color: var(--accent-orange); }

/* --- BOTÃO FLUTUANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: scale(1.1) rotate(5deg);
}

.badge-wa {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6600;
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Animação de pulso para chamar atenção */
@keyframes pulse-wa {
    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); }
}

.whatsapp-float {
    animation: pulse-wa 2s infinite;
}

/* Ajuste para mobile para não cobrir conteúdos importantes */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* --- PRODUTOS PREMIUM LAYOUT --- */
.text-navy { color: #003366; }
.text-orange { color: #ff6600; }
.btn-navy { background: #003366; color: white; border-radius: 8px; transition: 0.3s; }
.btn-navy:hover { background: #002244; color: white; }

/* Banner de Download */
.download-banner {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
}

/* Calculadora */
.calculator-box {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Card de Produto Premium */
.product-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-img-container {
    background: #f8fafc;
    padding: 30px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.product-img-container img {
    height: 220px;
    max-width: 100%;
    object-fit: contain;
    transition: 0.5s;
}

.product-card-premium:hover .product-img-container img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: #64748b;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.product-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Specs Técnicas */
.technical-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.spec-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.spec-item i {
    font-size: 14px;
    margin-right: 6px;
}

.spec-item .fa-check-circle { color: #003366; }
.spec-item .fa-leaf { color: #22c55e; }

/* Botão de Ação */
.btn-quote-action {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #003366;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    width: 100%;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.btn-quote-action:hover {
    background: #003366;
    border-color: #003366;
    color: white;
}