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

:root {
    --primary: #8fb9aa;
    --bg-soft: #fdfaf5;
    --text: #4a4a4a;
    --white: #ffffff;
    --whatsapp: #25d366;
    --insta: #d65f10;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--bg-soft);
    line-height: 1.6;
}

header {
    background: var(--white);
    padding: 0.8rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 80px; width: auto; transition: height 0.2s; }

nav { display: flex; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
    font-weight: 500;
}

.hero {
    padding: 100px 8%;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-family: 'Caveat', cursive;
    font-size: 4em;
    font-weight: 100;
    margin: 0;
}

.container { padding: 60px 8%; max-width: 1200px; margin: auto; }

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}

.contact-form div { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.btn-enviar {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.btn-enviar:hover { background-color: #5a7964; }

.map-container {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.btn-agendar {
    background: var(--whatsapp);
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 30px;
}

.btn-agendar:hover { background-color: #3e9560; }

.insta-icon { color: var(--insta); }
.wapp-icon { color: var(--whatsapp); }

/* --- ADAPTAÇÃO PARA TELEMÓVEL (MEDIA QUERIES) --- */

@media (max-width: 768px) {
    header {
        flex-direction: column; /* Logótipo em cima, menu em baixo */
        padding: 1rem 5%;
    }

    .logo-img {
        height: 45px; /* Logótipo ligeiramente menor no telemóvel */
        margin-bottom: 10px;
    }

    nav {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; /* Links descem para a linha seguinte se necessário */
    }

    nav a {
        margin: 5px 10px; /* Margens equilibradas para os links não colarem */
        font-size: 0.9rem;
    }

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2.2em; /* Diminui a fonte Caveat para não quebrar o ecrã */
    }

    .container {
        padding: 40px 5%;
    }

    .contact-form {
        padding: 20px;
        margin: 20px auto;
    }
}

/* Indica a página ativa no menu */
nav a.active {
    font-weight: 800; /* Bold extra */
    color: var(--primary); /* Muda para o verde da clínica */
    border-bottom: 2px solid var(--primary); /* Linha por baixo para destaque visual */
    padding-bottom: 2px;
}

/* --- AJUSTES DO RODAPÉ (FOOTER) --- */

footer {
    background: #fff;
    padding: 40px 8%;
    text-align: center;
    border-top: 1px solid #eee;
}

.social-footer {
    display: flex;
    justify-content: center;
    gap: 30px; /* Mais espaço entre ícones para facilitar o toque */
    margin: 20px 0;
    font-size: 2.5rem; /* Ícones ligeiramente maiores no desktop */
}

/* Ajuste específico para Telemóvel */
@media (max-width: 768px) {
    footer {
        padding: 30px 5%; /* Menos margem lateral */
    }

    .social-footer {
        gap: 40px; /* Ainda mais espaço no telemóvel para evitar cliques errados */
        font-size: 2.2rem;
    }

    footer p {
        font-size: 0.9rem; /* Texto ligeiramente menor para não quebrar linhas de forma estranha */
        line-height: 1.4;
        margin-bottom: 10px;
    }
}

/* --- LAYOUT DA EQUIPA --- */
.equipa-header {
    text-align: center;
    margin-bottom: 80px;
}

.equipa-header h1 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: var(--primary);
}

.membro-card:hover {
    transform: translateY(-5px);
}



/* Ajuste mobile para a equipa */
@media (max-width: 768px) {
    .equipa-grid {
        grid-template-columns: 1fr; /* Um membro por linha no telemóvel */
    }
}

/* Reforço para a Equipa */
.equipa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 80px;
}

.membro-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.membro-foto {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
}

.membro-info {
    padding: 20px;
}

.membro-info h3 {
    color: var(--primary);
    margin: 0 0 5px;
    font-size: 1.4rem;
}

.cargo {
    display: block;
    color: #888;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.membro-info p {
    font-size: 0.95rem;
    color: #666;
}

.titulo-principal {
    font-family: 'Caveat', cursive;
    font-size: 4.5rem;
    color: #000; /* Cor preta conforme solicitado */
    text-align: center;
    margin: 40px 0;
    font-weight: 400;
}

.servicos-lista { display: flex; flex-direction: column; gap: 50px; padding: 20px 0; margin-top: 50px; }
.servico-item { display: flex; align-items: center; gap: 40px; background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.servico-item:nth-child(even) { flex-direction: row-reverse; }
.servico-imagem { flex: 1; min-height: 400px; background-size: cover; background-position: center; }
.servico-texto { flex: 1; padding: 40px; font-family: 'Montserrat', sans-serif; }
.servico-texto h3 { font-size: 1.8rem; color: #8fb9aa; margin-bottom: 15px; font-weight: 600; }
.servico-texto p { color: #666; line-height: 1.7; }

@media (max-width: 768px) {
    .servico-item, .servico-item:nth-child(even) { flex-direction: column; }
    .titulo-principal { font-size: 3.2rem; }
    .servico-imagem { min-height: 250px; width: 100%; }
}