/* Definições Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Cabeçalho */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 1.5rem;
    color: #2ab5ba; /* Verde natureza */
}

.logo span {
    font-size: 0.9rem;
    color: #777;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #4a7c59;
}

.hero {
    position: relative;            /* Torna-se a referência para o posicionamento do fundo */
    min-height: 70vh;              /* Define a altura da seção */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;              /* Impede que a imagem transborde as bordas arredondadas ou limites da seção */
}

/* Camada 1: A imagem propriamente dita */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;             /* Replica o comportamento do 'background-size: cover' */
    object-position: center;       /* Replica o comportamento do 'background-position: center' */
    z-index: 1;                    /* Fica na camada mais baixa de fundo */
}

/* Camada 2: A película semi-transparente sobre a imagem */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Película clara (branca com 50% de opacidade) */
    z-index: 2;                    /* Senta logo acima da imagem, mas abaixo do texto */
}

/* Camada 3: O bloco de conteúdo com o texto e botão */
.hero-content {
    position: relative;            /* Ativa o suporte ao z-index */
    z-index: 3;                    /* Fica no topo de tudo, garantindo cliques no botão e nitidez */
}

/* Estilização dos textos internos da Hero */
.hero-content h2 {
    color: #2ab5ba; 
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #333333;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn-whatsapp {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebd5a;
}

/* Títulos das secções */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2ab5ba;
    margin-bottom: 5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

/* Grelha de Serviços */
.grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid #4a7c59;
}

.card h3 {
    margin-bottom: 1rem;
    color: #2c4c3b;
}

/* Biografia */
.bg-light {
    background-color: #f9fdfa;
}

.bio-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.bio-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bio-texto p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Rodapé */
footer {
    background-color: #2ab5ba;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

/* Responsividade (Telemóveis) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    .bio-flex {
        flex-direction: column;
        text-align: center;
    }
}