/* --- RESET E VARIÁVEIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    caret-color: transparent; /* Torna o cursor de digitação invisível */
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #f5efe6; /* Bege claro de fundo */
    --primary-color: #0b3c41; /* Verde escuro/petróleo */
    --primary-hover: #105a61; /* Tom mais claro para hover */
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e0d8cd;
}

body {
    background-color: var(--bg-color);
    background-image: url("/assets/img/natural-paper.png");
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & LOGO --- */
header {
    text-align: center;
    padding: 30px 20px 20px 20px;
    background-color: var(--bg-color);
    background-image: url("/assets/img/natural-paper.png");
    border-bottom: 1px solid var(--border-color);
}

.logo-placeholder {
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary-color);
    vertical-align: middle;
}

.logo-placeholder span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

/* --- NAV BAR --- */
nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-toggle-item {
    display: none; /* Oculta o item do botão no desktop */
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 15px 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: #e0f2f1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}


/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(245, 239, 230, 0.4), rgba(245, 239, 230, 0.4)), 
                url('/assets/img/sala-consulta.jpg') no-repeat center center/cover;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title-box {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 40px 50px;
    border-radius: 15px;
    max-width: 800px;
    border: 1px solid rgba(11, 60, 65, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.hero-title-box h1 {
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-dark);
}

/* --- SEÇÃO SERVIÇOS --- */
.services-section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- SEÇÃO PILARES --- */
.pillars-section {
    padding: 60px 0;
    background-color: var(--bg-color);
    background-image: url("/assets/img/natural-paper.png");
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.pillar-card {
    padding: 30px;
}

.pillar-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: rgba(11, 60, 65, 0.05);
    padding: 15px;
    border-radius: 50%;
    display: inline-block;
}

.pillar-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.pillar-card p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 350px;
    margin: 0 auto;
}

/* --- SEÇÃO SOBRE MIM --- */
.about-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.4);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 320px; /* Limita o tamanho máximo da foto */
    aspect-ratio: 1 / 1; /* Força a imagem a ser um quadrado */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    border-radius: 50%; /* Transforma a imagem em um círculo */
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.about-content {
    flex: 1.5;
    min-width: 300px;
}

.about-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.crm-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--text-dark);
}

/* --- SEÇÃO POR QUE ESCOLHER --- */
.why-choose-section {
    padding: 60px 0;
}

.why-choose-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.why-choose-box h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.subtitle-mini {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 600;
}

.why-choose-box ul {
    list-style: none;
}

.why-choose-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 14px;
}

.why-choose-box ul li::before {
    content: "check_circle";
    font-family: 'Material Symbols Rounded';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: -2px;
}

/* --- FOOTER / CONTATO --- */
footer {
    background-color: var(--white);
    background-image: url("/assets/img/natural-paper.png");
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-info h4, .footer-details h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-item .material-symbols-rounded {
    font-size: 18px;
}

.footer-details p {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s;
}
.social-icons a:hover img {
    transform: scale(1.15);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .hero { height: auto; padding: 60px 20px; }
    .hero-title-box h1 { font-size: 22px; }
    .hero-title-box { padding: 30px; }
    
    .nav-container {
        padding: 0;
    }

    .menu-toggle-item, .menu-toggle {
        display: block; /* Mostra o botão no mobile */
        font-size: 16px; /* Ajusta o tamanho da fonte do texto "Menu" */
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px; /* Espaço entre o ícone e o texto */
    }

    nav ul {
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
    }

    .menu-toggle-item {
        display: flex;
        justify-content: center;
    }

    /* Esconde os links do menu por padrão */
    nav ul li:not(.menu-toggle-item) {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        width: 100%;
        text-align: center;
    }

    /* Mostra os links quando o menu está aberto com uma transição suave */
    nav ul.menu-open li:not(.menu-toggle-item) {
        display: block;
        animation: fadeInDown 0.5s ease forwards;
        max-height: 60px; /* Altura suficiente para cada item de menu */
    }

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

    nav ul li { padding: 15px; }
    .menu-toggle-item { width: 100%; text-align: center; }

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

    /* Ajustes para o carrossel de serviços no mobile */
    .services-grid {
        display: flex; /* Alinha os cards em uma única linha */
        overflow-x: auto; /* Habilita a barra de rolagem horizontal */
        gap: 15px;
        padding: 10px 0 20px 0; /* Adiciona espaço para a rolagem e respiro visual */
        -webkit-overflow-scrolling: touch; /* Melhora a fluidez da rolagem em dispositivos Apple */
        scrollbar-width: thin; /* Deixa a barra de rolagem mais fina em navegadores compatíveis */
    }

    .service-card {
        flex: 0 0 280px; /* Define uma largura fixa para cada card, impedindo que eles se espremam */
    }

    .testimonials-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 15px;
        padding: 10px 0 20px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .testimonial-card {
        flex: 0 0 300px; /* Largura fixa para os cards de depoimento */
    }

    #icon-star {
        display: none;
    }
}

#logo-principal {
    height: 70px;
}

#icone-card {
    height: 70px;
}

/* --- SEÇÃO DEPOIMENTOS --- */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--bg-color);
    background-image: url("/assets/img/natural-paper.png");
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 40px;
    color: var(--primary-color);
    position: absolute;
    left: -5px;
    top: -10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
    font-size: 14px;
}

.testimonials-cta {
    text-align: center;
    margin-top: 50px;
}

.btn-doctoralia {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #105a61; /* Cor oficial do Doctoralia */
    color: var(--white);
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-doctoralia:hover {
    background-color: #226b73;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* --- SEÇÃO FAQ --- */
.faq-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.4);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.4s ease;
}

.faq-item[open] {
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove o marcador padrão */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.faq-question::-webkit-details-marker { display: none; } /* Chrome/Safari */

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    transition: transform 0.4s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: var(--text-muted);
}

@keyframes slideDownFaq {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 150px; /* Altura suficiente para a resposta */
    }
}

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 35px;
}