/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
        "Helvetica Neue", Arial;
    color: #1a1a2e;
    overflow-x: hidden; /* Evita scroll horizontal por elementos que vazam */
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.logo {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    background: #1a8089;
    box-shadow: 0 4px 8px rgba(26, 128, 137, 0.2);
}

.logo-text {
    font-size: 18px;
    color: #1a1a2e;
}

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
}

nav a:not(.btn-primary) {
    padding: 8px 0;
    transition: color 0.2s;
}

nav a:not(.btn-primary):hover {
    color: #1a8089;
}

/* Botões */
.btn-primary {
    background: #1a8089;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #106c74;
}

.btn-pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0px rgba(26, 128, 137, 0.4);
    }
    100% {
        box-shadow: 0 0 0 15px rgba(26, 128, 137, 0);
    }
}

.btn-secondary {
    background: #f1f5f9;
    color: #1a1a2e !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid #e2e8f0;
    transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    align-items: center;
    padding: 60px 24px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 90%;
}

.hero-content p {
    font-size: 20px;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero .actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.confidence-block {
    padding: 20px;
    background: #e0f2f1;
    border-radius: 12px;
    border-left: 5px solid #1a8089;
}

.confidence-title {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-size: 15px;
}

.confidence-seals {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.seal-item {
    font-size: 14px;
    color: #0f766e;
    font-weight: 500;
}

/* Lista de Benefícios (Sidebar) */
.benefits-checklist {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.benefits-checklist h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-icon {
    font-size: 24px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-text strong {
    display: block;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 16px;
}

.benefit-text small {
    display: block;
    color: #64748b;
    font-size: 14px;
}

/* Filtros - CORREÇÃO DO VAZAMENTO */
.filters-container {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
}

.filters-title {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-select {
    width: 100%;
    max-width: 100%; /* Impede que o select force a largura do container */
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #334155;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    overflow: hidden;
    text-overflow: ellipsis; /* Adiciona '...' se o texto for maior que a caixa */
    white-space: nowrap;
}

.clear-filters-btn {
    background: #e2e8f0;
    color: #1a1a2e;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

/* Cards de Psicólogos */
.psychologists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.psy-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.psy-card:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.psy-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.psy-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #1a8089;
}

.psy-info {
    display: flex;
    flex-direction: column;
}

.psy-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.verified-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #1a8089;
    background: #e0f2f1;
    padding: 3px 8px;
    border-radius: 4px;
}

.psy-body {
    padding: 20px;
    flex-grow: 1;
}

.psy-approach {
    font-size: 14px;
    color: #475569;
    border-left: 3px solid #cbd5e1;
    padding-left: 10px;
    margin-bottom: 15px;
}

.specialty-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    margin: 2px;
}

.psy-whatsapp-btn-full {
    background: #25d366;
    color: white !important;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    display: block;
    margin: 20px;
    transition: 0.3s;
}

/* FAQ */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 15px;
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    color: #1a8089;
    font-size: 20px;
}

.faq-content {
    padding: 0 20px 20px;
    color: #475569;
}

/* Footer */
footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-top: 50px;
    padding-bottom: 50px;
    border-top: 1px solid #e2e8f0;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a1a2e;
    margin: 5px 0;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

body[data-open="true"] .mobile-menu {
    opacity: 1;
    visibility: visible;
}

/* --- RESPONSIVIDADE E MELHORIAS MOBILE --- */

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        max-width: 100%;
        font-size: 36px;
    }

    .hero aside {
        order: -1;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr; /* Empilha filtros no mobile */
    }

    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul, .contact-card {
        align-items: center;
    }

    .plans-grid {
        grid-template-columns: 1fr !important; /* Corrige bug dos planos no mobile */
        padding: 0 10px;
    }

    .premium-plan-card {
        transform: scale(1) !important; /* Remove zoom que causa quebra lateral */
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .hero .actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .psychologists-grid {
        grid-template-columns: 1fr;
    }

    .psy-header {
        flex-direction: column;
        text-align: center;
    }

    .psy-photo {
        margin-bottom: 10px;
    }

    .psy-approach {
        text-align: center;
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 10px;
    }

    .psy-specialties {
        justify-content: center;
    }
}

/* Animações */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

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

/* Modal de Cadastro */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Escondido por padrão */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-card {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

.register-form .form-group {
    margin-bottom: 15px;
}

.register-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a2e;
}

.register-form input, 
.register-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
}

.register-form input:focus {
    outline: none;
    border-color: #1a8089;
    box-shadow: 0 0 0 3px rgba(26, 128, 137, 0.1);
}