@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* 
  -- VARIÁVEIS GLOBAIS E RESET --
  Define a paleta de cores e as fontes principais do site.
  Um reset básico é aplicado para garantir consistência entre navegadores.
*/
:root {
    --primary-color: #005f73;      /* Azul escuro para CTAs e destaques */
    --dark-blue: #0a9396;         /* Azul médio para hovers e links */
    --background-color: #f8f9fa;   /* Cinza muito claro para o fundo principal */
    --white-color: #ffffff;    /* Branco para texto sobre fundos escuros e cards */
    --text-color: #212529;         /* Cinza escuro (quase preto) para texto principal */
    --gray-color: #b4b4b4;         /* Cinza para detalhes ou texto sutil */
    --black-color: #1a1a1a;         /* Preto suave para fundos e destaques escuros */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Habilita a rolagem suave para links de âncora */
}

/* 
  -- ESTILOS GERAIS DO BODY --
  Define a aparência base do corpo da página, como fonte, cor do texto e fundo.
*/
body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6; /* Melhora a legibilidade do texto */
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* ETAPA 2: Estilo para a imagem do logo */
.logo img {
    height: 50px; /* Você pode ajustar esta altura conforme o tamanho da sua logo */
    width: auto;  /* A largura se ajusta automaticamente para manter a proporção */
}
/* 
  -- ESTILOS DAS SEÇÕES --
  Define um padrão de espaçamento e alinhamento para todas as seções principais,
  garantindo consistência visual em toda a página.
*/
section {
    padding: 80px 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--black-color);
    margin-bottom: 1rem;
}

/* 
  -- SEÇÃO HERO --
  Cria a primeira impressão visual. Usa uma imagem de fundo com sobreposição
  para garantir a legibilidade do texto. O conteúdo é centralizado para impacto.
  Agora com layout em duas colunas para texto e formulário.
*/
#hero {
    background: linear-gradient(rgba(0, 47, 58, 0.8), rgba(0, 47, 58, 0.8)), url('https://images.unsplash.com/photo-1617994392136-6936723c13fc?q=80&w=1932&auto=format=fit=crop') no-repeat center center/cover;
    color: var(--white-color);
    padding: 0 2rem;
    max-width: none; /* Permite que a seção ocupe a largura total */
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    flex-direction: column; /* Organiza os itens em coluna */
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Estilos para o novo cabeçalho dentro da seção hero */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-logo {
    height: 70px; /* Tamanho aumentado de 50px para 70px */
    width: auto;
    filter: brightness(1.8); /* Aumenta o brilho da logo para torná-la mais visível */
}

.whatsapp-button {
    background-color: #25D366;
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Novo container para o conteúdo e formulário */
.hero-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}
.hero-form {
    flex-basis: 450px;
    background-color: var(--white-color);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.hero-form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-form p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-form input,
.hero-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.hero-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* 
  -- BOTÃO DE CHAMADA PARA AÇÃO (CTA) --
  Estilo chamativo para os botões principais, incentivando o clique.
  Usa a cor primária e uma transição suave para o efeito hover.
*/
.cta-button {
    font-family: var(--font-heading);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px; /* Bordas totalmente arredondadas para um visual moderno */
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px); /* Efeito de elevação no hover */
}

/* -- SEÇÃO DE SUMÁRIO -- */
#summary {
    background-color: #e9ecef;
}

.summary-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin-top: 2rem;
}

.summary-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white-color);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.summary-links a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* -- CONTAINER PRINCIPAL DO CONTEÚDO -- */
.content-wrapper {
    max-width: 800px; /* Largura ideal para leitura */
    margin: 0 auto;
    text-align: left;
}

.content-wrapper section {
    padding: 60px 2rem;
    border-bottom: 1px solid #eee;
}

.content-wrapper section:last-child {
    border-bottom: none;
}

.content-wrapper h2 {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.content-wrapper p, .content-wrapper ul, .content-wrapper ol {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

.content-wrapper ul, .content-wrapper ol {
    padding-left: 2rem;
}

.content-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.notice {
    background-color: #fffbe6;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 5px;
}

/* -- SEÇÃO ESPECIALISTAS -- */
.specialists-container {
    margin-top: 2rem;
}

.specialist-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.specialist-tab-trigger {
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--gray-color);
    border-radius: 50px;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.specialist-tab-trigger:hover {
    background-color: #e9ecef;
    border-color: var(--primary-color);
}

.specialist-tab-trigger.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.specialist-info:not(.active) {
    display: none; /* Esconde por padrão */
    align-items: center;
    gap: 2rem;
}

.specialist-info.active {
    display: flex; /* Mostra apenas o ativo */
}

.specialist-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.specialist-bio h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* -- Cards da seção "Quem tem direito" -- */
.servicos-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.servico {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    flex: 1;
    min-width: 200px;
}

.servico h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0;
}

/* -- Banner de CTA no meio do conteúdo -- */
.cta-banner {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 3rem;
}

.cta-banner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-banner .cta-button {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* -- SEÇÃO FAQ (ACORDEÃO) -- */
.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '\f078'; /* Ícone de seta para baixo do Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 200px; /* Altura suficiente para o conteúdo aparecer */
    transition: max-height 0.4s ease-in;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    font-size: 1rem;
}

/* -- CTA FINAL -- */
#final-cta {
    background-color: #e9ecef;
}

/* 
  -- RODAPÉ --
  Simples e limpo, com a cor de fundo mais escura para indicar o fim da página.
*/
footer {
    background-color: #212529;
    color: var(--white-color);
    padding: 4rem 2rem 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid #444;
}

.footer-about, .footer-contact {
    flex-basis: 45%;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* 
  -- MEDIA QUERIES PARA RESPONSIVIDADE --
  Ajusta o layout para telas menores, como tablets e celulares, garantindo
  uma boa experiência de usuário em qualquer dispositivo.
*/
@media (max-width: 768px) {
    section h2 {
        font-size: 2rem;
    }

    .hero-header {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero-container {
        flex-direction: column;
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-main-content {
        flex-direction: column;
    }

    .specialist-info.active {
        flex-direction: column;
        text-align: center;
    }

    .specialist-photo {
        width: 150px;
        height: 150px;
    }

    .summary-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* 
  -- ESTILOS PARA O VÍDEO EMBUTIDO --
  Garante que o vídeo seja responsivo e mantenha a proporção 16:9.
*/
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem auto; /* Centraliza e adiciona espaço */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}