/* Configurações Globais */
:root {
    --cor-primaria: #1e40af; /* Azul carregado */
    --cor-secundaria: #0f172a;
    --cor-fundo: #f8fafc;
    --cor-texto: #1e293b;
    --cor-wa: #25D366;
    --gradiente: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    padding-bottom: 90px;
    font-size: 15pt;
}

/* --- BOTÃO FLUTUANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    right: 20px;
    background-color: var(--cor-wa);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- MENU INFERIOR --- */
nav.app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--cor-secundaria);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}

.nav-item {
    color: #94a3b8;
    text-align: center;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    flex: 1;
    cursor: pointer;
}

.nav-item i { display: block; font-size: 1.3rem; margin-bottom: 5px; }
.nav-item.active { color: #3b82f6; }

/* --- PÁGINAS --- */
.page {
    display: none;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    animation: fadeIn 0.4s ease;
}

.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* --- ESTILOS VISUAIS E CARDS --- */
.brand-header {
    background: var(--gradiente);
    color: white;
    padding: 50px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 30px;
}

.brand-header i { font-size: 3.5rem; margin-bottom: 15px; color: #3b82f6; }

h2 { text-align: center; margin-bottom: 25px; color: var(--cor-secundaria); }
h2::after { content: ''; width: 40px; height: 4px; background: var(--cor-primaria); display: block; margin: 8px auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--cor-primaria);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:active { transform: scale(0.98); }

.card i { font-size: 2.5rem; color: var(--cor-primaria); margin-bottom: 15px; }

/* --- LISTA DE SERVIÇOS --- */
.service-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.service-list li {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
}

.service-list li::before {
    content: '→';
    color: var(--cor-primaria);
    font-weight: bold;
    margin-right: 8px;
}

.service-list li:last-child { border-bottom: none; }

/* --- PROJETOS E CONTATO --- */
.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 10px;
}
.project-img-container img { width: 100%; height: 200px; object-fit: cover; }
.project-info { padding: 15px; }

.contact-wrap { display: flex; flex-direction: column; gap: 15px; align-items: center; }

.contact-link {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
}

/* CLASSES DE CORES PARA CONTATO */
.blue-item {
    color: var(--cor-primaria) !important;
}

.text-black {
    color: #000000 !important;
}

/* --- ESTILO DO RODAPÉ (FOOTER) --- */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

.main-footer p { margin: 5px 0; font-size: 0.9rem; font-weight: 600; }
.main-footer small { font-size: 0.75rem; font-weight: normal; text-transform: uppercase; letter-spacing: 1px; }
