/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    /* Paleta de Cores */
    --primary-blue: #144EA4;
    --dark-blue: #0073B7;
    --medium-blue: #0092CA;
    --light-blue: #00A3D3;
    --white: #FFFFFF;
    --black: #000000;
    --light-gray-bg: #F4F4F4;

    /* Fontes */
    --font-titles: 'Red Rose', sans-serif;
    --font-paragraphs: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-paragraphs);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */

.main-header {
    background-color: var(--white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-titles);
    font-size: 1.5rem; /* 24px */
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

/* Esconde o ícone de hamburguer em telas grandes */
.menu-icon {
    display: none;
    font-size: 2rem; /* 32px */
    cursor: pointer;
}

/* --- ESTILOS PARA TELAS MENORES (RESPONSIVIDADE MENU) --- */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        display: none; 
        position: absolute;
        top: 100%; 
        right: 0;
        background-color: var(--white);
        width: 100%;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex; 
    }

    .nav-links li {
        margin: 1rem 0;
    }
}

/* --- ESTILOS DO CONTEÚDO PRINCIPAL --- */

main {
    padding-top: 80px; 
}

/* --- 1. SEÇÃO HERO BANNER (COM A LOGO GRANDE) --- */
.hero-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--white);
    padding-bottom: 50px; 
}

.hero-image-container {
    width: 100%;
    margin-bottom: 30px; 
    display: flex; 
    justify-content: center;
    
    /* Adicione estas linhas para testar o fundo azul: */
    background-color: var(--primary-blue); /* Ou pegue o código exato da cor azul da logo no Photoshop/Canva, ex: #0D47A1 */
    padding: 20px 0; /* Dá um respiro em cima e embaixo */
}

.hero-img {
    width: 100%; 
    max-width: 900px; /* Alinha a logo com a largura do texto */
    height: auto; 
    max-height: 450px; /* Altura máxima para preencher o espaço do banner */
    display: block;
    object-fit: contain; 
    object-fit: contain;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px; 
}

.hero-banner h1 {
    font-family: var(--font-titles);
    font-size: 2.8rem; 
    color: var(--primary-blue);
    max-width: 800px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1); 
}

.hero-banner p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--black);
}

.hero-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 8px;
    background-color: var(--primary-blue); 
    color: var(--white);
    text-shadow: none;
}

.hero-btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-img {
        max-height: 250px; /* Reduz a logo no celular para não empurrar muito o texto */
    }
    .hero-banner h1 {
        font-size: 2.2rem; 
    }
    .hero-banner p {
        font-size: 1.1rem;
    }
    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* --- 2. ESTILO PADRÃO DAS SEÇÕES DE CONTEÚDO --- */
.content-section {
    padding: 60px 0; 
    text-align: center;
}

.content-section h2 {
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto; 
}

.bg-light-gray {
    background-color: var(--light-gray-bg);
}

/* --- 3. ESTILOS DOS BOTÕES --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 25px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px); 
}

/* --- 4. ESTILOS DO RODAPÉ --- */
.main-footer {
    background-color: #1c2c3b; 
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

@media (max-width: 768px) {
    main {
        padding-top: 70px;
    }
    .content-section h2 {
        font-size: 1.8rem; 
    }
    .content-section p {
        font-size: 1rem;
    }
}

/* --- ESTILOS DA PÁGINA DE CONTATO --- */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px; 
    margin-top: 40px;
    text-align: left;
}

.contact-form {
    flex: 2; 
}

.contact-info {
    flex: 1; 
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-paragraphs);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(20, 78, 164, 0.5);
}

.contact-info h3 {
    font-family: var(--font-titles);
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info .btn {
    display: block; 
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden; 
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; 
    }
}

/* --- ESTILOS DE VALIDAÇÃO DO FORMULÁRIO --- */
.form-group.error input,
.form-group.error textarea {
    border-color: #e74c3c; 
}

.form-group.success input,
.form-group.success textarea {
    border-color: #2ecc71; 
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    height: 1rem; 
    display: block;
}

/* --- ESTILOS DA PÁGINA SOBRE --- */
.subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px auto;
    margin-top: 40px;
}

.about-container {
    display: flex;
    align-items: flex-start; 
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.about-image {
    flex: 1; 
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.about-text {
    flex: 2; 
}

.about-text h3 {
    font-family: var(--font-titles);
    color: var(--primary-blue);
    margin-top: 20px;
    margin-bottom: 10px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text ul {
    list-style-position: inside;
    padding-left: 10px;
}

.about-text ul li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .about-image {
        margin-bottom: 30px;
        max-width: 300px;
    }
    .about-text {
        text-align: left;
    }
}

/* --- ESTILOS DA PÁGINA DE SERVIÇOS --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    margin-top: 40px;
    text-align: left;
}

.service-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-family: var(--font-titles);
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.cta-contact {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
} 

/* --- ESTILOS DA SEÇÃO DEPOIMENTOS --- */
#depoimentos h2 {
    color: var(--medium-blue); 
    text-align: left;
    margin-bottom: 5px;
}

#depoimentos .subtitle {
    text-align: left;
    font-size: 1rem;
    color: #777;
    max-width: none; 
    margin-bottom: 40px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 10px;
    display: inline-block; 
}

#depoimentos .subtitle a {
    color: var(--medium-blue);
    text-decoration: none;
    font-weight: 700;
}

#depoimentos .subtitle a:hover {
    text-decoration: underline;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 15px; 
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    text-align: center;
    position: relative ;
    overflow: hidden; 
}

.testimonial-card .quote {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 2; 
}

.testimonial-card .author {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.testimonial-card::before {
    content: "“";
    font-family: var(--font-titles); 
    font-size: 10rem; 
    color: rgba(231, 193, 115, 0.7); 
    position: absolute;
    top: -40px; 
    right: -20px; 
    opacity: 1; 
    z-index: 2; 
    transform: rotate(-10deg); 
}

.testimonial-card:nth-child(2)::before,
.testimonial-card:nth-child(3)::before {
    left: 20px;
    right: unset;
    transform: rotate(-10deg);
}

.testimonial-card:nth-child(2)::before {
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-card:nth-child(3)::before {
    right: -30px;
    left: unset; 
}

@media (max-width: 768px) {
    .testimonial-card::before {
        font-size: 8rem;
        top: -30px;
        left: -10px;
    }
    .testimonial-card:nth-child(2)::before,
    .testimonial-card:nth-child(3)::before {
        left: -10px; 
        transform: none;
    }
}

.testimonial-card::after {
    content: ''; 
    position: absolute; /* Ajustado para preencher corretamente */
    width: 100%; 
    height: 100%; 
    background-color: var(--light-blue); 
    border-radius: 15px; 
    z-index: -1; 
    top: 10px;
    left: 10px;
}

/* --- ESTILOS DA SEÇÃO DE PERGUNTAS FREQUENTES (FAQ) --- */
.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue); 
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

#faq h2 {
    color: var(--primary-blue); 
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border: 2px solid #F5E5D5; 
    border-radius: 20px;
    padding: 20px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.faq-item:last-child {
    border-bottom: none; 
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    list-style: none; 
    display: flex;
    align-items: center; 
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: '▶';
    font-size: 0.8em;
    margin-right: 15px;
    color: #F5AD6B; 
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::before {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 15px 0 0 30px; 
    color: #555;
    line-height: 1.7;
}

/* --- ESTILOS DA NOVA SEÇÃO DE DESAFIOS --- */
.challenges-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden; 
}

.challenges-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assents/imagem/consultorio-background.png'); 
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.8); 
    background-blend-mode: overlay;
    z-index: -1;
}

.challenges-section h2 {
    text-align: center;
    font-family: var(--font-titles);
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 50px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.challenge-card {
    background-color: var(--primary-blue); 
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.challenge-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 25px rgba(0,0,0,0.2); 
}

.card-icon {
    margin-bottom: 15px;
}

.card-icon svg {
    stroke: var(--white);
}

.challenge-card h3 {
    font-family: var(--font-titles);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.challenge-card p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%; 
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 250px;
    margin: 50px auto 0 auto;
    padding: 12px 20px;
    background-color: var(--white);
    color: #555;
    text-decoration: none;
    border-radius: 50px; 
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.whatsapp-button:hover {
    transform: scale(1.05);
}

.whatsapp-button svg {
    stroke: #25D366; 
}