/* ========================================
   APP.CSS — Estilos Globais + Navbar + Footer
   Aptos Tecnologia
======================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-principal: #1a56db;
    --azul-escuro:    #1342a8;
    --azul-claro:     #e8f0fe;
    --branco:         #ffffff;
    --cinza-claro:    #f5f7fa;
    --cinza-texto:    #555555;
    --preto-suave:    #1a1a2e;
    --sombra:         0 2px 12px rgba(0,0,0,0.08);
    --radius:         8px;
    --transicao:      all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--preto-suave);
    background: var(--branco);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === BOTÕES GLOBAIS === */
.btn-primary {
    display: inline-block;
    background: var(--azul-principal);
    color: var(--branco);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transicao);
    border: 2px solid var(--azul-principal);
}

.btn-primary:hover {
    background: var(--azul-escuro);
    border-color: var(--azul-escuro);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--azul-principal);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transicao);
    border: 2px solid var(--azul-principal);
}

.btn-outline:hover {
    background: var(--azul-principal);
    color: var(--branco);
}

/* === PAGE HEADER (páginas internas) === */
.page-header {
    background: var(--azul-principal);
    color: var(--branco);
    padding: 80px 24px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.05rem;
    opacity: 0.88;
}



/* ========================================
   FOOTER
======================================== */
/* ========================================
   FOOTER — PREMIUM
======================================== */
.footer {
    background: #080f24;
    margin-top: 0;
}

.footer-top {
    padding: 80px 24px 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.3fr 1.2fr;
    gap: 48px;
}

/* === BRAND === */
.footer-brand p {
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 300px;
}

/* Logo imagem */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 0.8;
}

/* Placeholder logo */
.footer-logo-placeholder {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.placeholder-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(26,86,219,0.4);
}

.placeholder-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.placeholder-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.placeholder-main {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}

.placeholder-sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: #60a5fa;
    letter-spacing: 3px;
    margin-top: 3px;
}

/* Social */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--azul-principal);
    border-color: var(--azul-principal);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(26,86,219,0.35);
}

/* === COLUNAS === */
.footer-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--azul-principal);
    border-radius: 2px;
}

/* Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links li a i {
    font-size: 0.65rem;
    color: var(--azul-principal);
    transition: transform 0.3s ease;
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links li a:hover i {
    transform: translateX(3px);
}

/* Contacto */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    width: 34px;
    height: 34px;
    background: rgba(26,86,219,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 0.85rem;
    color: #60a5fa;
}

.footer-contact-list li span {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    line-height: 1.5;
    padding-top: 6px;
}

/* === FOOTER BOTTOM === */
.footer-bottom {
    padding: 20px 24px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.3);
}

.footer-bottom i {
    font-size: 0.8rem;
}

/* ========================================
   WHATSAPP FLUTUANTE
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 88px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
    transition: all 0.3s ease;
    animation: waPulse 2.5s ease infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37,211,102,0.6);
    animation: none;
    color: #fff;
}

@keyframes waPulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #1a1a2e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: #1a1a2e;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 72px;
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--azul-principal);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(26,86,219,0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--azul-escuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(26,86,219,0.5);
}

/* === FOOTER RESPONSIVO === */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .whatsapp-float {
        bottom: 84px;
        right: 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}