/* =========================================
   VARIAVEIS E RESET
   ========================================= */
:root {
    --primary-color: #0b3c5d;
    /* Azul Institucional */
    --primary-hover: #145682;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #555555;
    --whatsapp-color: #25d366;
    --border-radius: 8px;
    --font-family: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-bottom: 120px;
    /* Espaço extra para o botão flutuante */
}

/* =========================================
   ESTRUTURA
   ========================================= */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

p {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 15px;
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Caixas de Dicas e Alertas (Resgatado do original + PDF) */
.alert-box {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-info {
    background: #e9f5ff;
    border-color: #2196f3;
    color: #0d47a1;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background: #ffd2d2;
    border-color: #dc3545;
    color: #721c24;
}

/* =========================================
   IMAGENS (PADRONIZADAS)
   ========================================= */
.step-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    min-height: 200px;
    transition: border-color 0.2s;
}

.step-image-container:hover {
    border-color: var(--primary-color);
}

.step-image-container img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 4px;
}

.home-fundo {
    display: block;
    margin: 40px auto 0;
    max-width: 320px;
    border: none;
}

/* =========================================
   BARRA SUPERIOR (NAVBAR)
   ========================================= */
.topbar {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.topbar-inner {
    max-width: 1100px;
    margin: auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.menu a:hover {
    color: var(--white);
    text-decoration: none;
}

/* =========================================
   GRID DE SERVIÇOS (DASHBOARD)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(11, 60, 93, 0.15);
    border-color: var(--primary-color);
    text-decoration: none;
}

.service-card .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.service-card span {
    font-weight: 600;
    font-size: 14px;
}

.service-card.highlight {
    background: #e6fffa;
    border: 1px solid #b2f5ea;
    color: #045c4a;
}

/* =========================================
   PASSO A PASSO & PROGRESSO
   ========================================= */
.step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-container {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    display: none;
}

.progress-bar {
    background-color: var(--primary-color);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}

.nav-inline {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary-color);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-hover);
}

button#btnPrev {
    background: #e0e0e0;
    color: var(--text-color);
}

button#btnPrev:hover {
    background: #d0d0d0;
}

/* =========================================
   BOTÃO WHATSAPP 
   ========================================= */
/* Container principal fixo na tela */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* Botão verde do WhatsApp */
.wa-button {
    width: 55px;
    height: 55px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s;
}

.wa-button:hover {
    transform: scale(1.05);
}

/* Balão de mensagem */
.wa-bubble {
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 20px 20px 0 20px;
    /* Canto inferior direito reto */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    display: none;
    /* Escondido por padrão, o JS vai mostrar */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.wa-bubble.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Botão de fechar (X) - como no vídeo, uma bolinha cinza */
.wa-close {
    position: absolute;
    top: -8px;
    left: -8px;
    /* Fica no canto superior esquerdo */
    width: 18px;
    height: 18px;
    background-color: #b0b0b0;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wa-close:hover {
    background-color: #888;
}

/* Texto da mensagem */
.wa-text {
    font-size: 14px;
    color: #333;
    display: none;
    /* Escondido inicialmente */
    white-space: nowrap;
}

/* Container de digitação */
.wa-typing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 16px;
    /* Mantém a altura para não dar salto ao trocar pro texto */
    padding: 0 10px;
}

/* Pontinhos animados */
.wa-typing .dot {
    width: 6px;
    height: 6px;
    background-color: #25D366;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.wa-typing .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.wa-typing .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* =========================================
   MODAL (AVISO LEGAL)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-btn {
    width: 100%;
    margin-top: 20px;
}

/* =========================================
   RODAPÉ
   ========================================= */
footer {
    padding: 30px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    background: #e9edf2;
    border-top: 1px solid #d0d6dc;
    margin-top: 40px;
}

/* =========================================
   MOBILE RESPONSIVO
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding-bottom: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
        gap: 0;
    }

    .menu.show {
        display: flex;
        animation: slideDown 0.2s ease-out forwards;
    }

    .menu a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}