/* PALETA DE CORES PROFISSIONAL
* Fundo: #EEE3D2 (Branco Sujo/Creme)
* Destaque/Primário: #8A5A4A (Castanho Quente/Terra)
* Secundário: #A98E7B (Bege/Nude)
* Texto Principal: #1F2833 (Azul Marinho Escuro)
*/

/* 1. RESET E TIPOGRAFIA BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #EEE3D2; 
    color: #1F2833; 
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #8A5A4A;
    transition: color 0.3s ease;
}

a:hover {
    color: #A98E7B;
}

.main-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #603d37;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #14162f;
    font-weight: 300;
}

/* ========================================= */
/* 1. ESTILOS GERAIS DO HEADER (FIXO NO TOPO) */
/* ========================================= */
.main-header {
    background-color: #F4F0E8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: #1F2833; /* Cor de texto principal (Azul Marinho Escuro) */
    margin: 0;
}

/* ========================================= */
/* 2. ESTILOS DA NAVEGAÇÃO (DESKTOP) */
/* ========================================= */

.main-nav ul {
    list-style: none;
    display: flex; /* Menu horizontal por padrão */
}

.main-nav li a {
    display: block;
    padding: 10px 15px;
    color: #1F2833;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a[aria-current="page"] {
    color: #603d37; /* Cor Primária Forte */
}

/* Efeito de Sublinhado Animado */
.main-nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #603d37;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-nav li a:hover::after,
.main-nav li a[aria-current="page"]::after {
    width: 80%;
}


/* ========================================= */
/* 3. ESTILOS DO HAMBÚRGUER (SETUP) */
/* ========================================= */

.menu-toggle {
    display: none; /* Escondido por padrão no desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: #8A5A4A; /* Cor Castanho Quente */
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Efeitos de Transição para 'X' (Estado Ativo) */
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }


/* ========================================= */
/* 4. MEDIA QUERIES (RESPONSIVIDADE E MENU MOBILE) */
/* ========================================= */

@media (max-width: 768px) {
    
    /* 1. MOSTRAR O BOTÃO HAMBÚRGUER */
    .menu-toggle {
        display: flex; /* Aparece no mobile */
    }
    
    /* 2. MENU MOBILE: POSIÇÃO E ESTADO INICIAL (ESCONDIDO) */
    .main-nav {
        position: absolute;
        top: 60px; 
        right: 0;
        width: 75%; /* Largura do menu lateral */
        max-width: 300px; 
        min-height: 100vh; /* Ocupa a altura total */
        
        background-color: #FFFFFF;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transform: translateX(100%); /* ESCONDE o menu fora do ecrã */
        transition: transform 0.3s ease-in-out;
        padding: 20px;
        z-index: 999;
    }
    
    /* 3. ESTADO ATIVO (MOSTRAR O MENU) */
    .main-nav.active {
        transform: translateX(0); /* Desliza para dentro do ecrã */
    }
    
    /* 4. TRANSFORMAR OS LINKS EM COLUNA */
    .main-nav ul {
        flex-direction: column; /* Vertical */
        align-items: flex-start;
        display: flex;
        padding: 0; /* Remove padding lateral da lista */
    }
    
    .main-nav li {
        width: 100%;
        margin-bottom: 5px;
    }

    .main-nav li a {
        padding: 12px 0;
        border-bottom: 1px solid #eee; 
        width: 100%;
    }
    
    /* Remover o sublinhado animado no mobile */
    .main-nav li a::after {
        content: none;
    }
}

/* 5. Desktop (Garante o display normal após a Media Query) */
@media (min-width: 769px) {
    .main-nav {
        display: block; 
        position: static; 
        transform: none; 
        box-shadow: none;
    }
    .main-nav ul {
         display: flex; /* Menu horizontal */
    }
}



/* 3. BOTÕES (BTNS) */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-primary {
    background-color: #603d37;
    color: #F4F0E8;
    border: 2px solid #F4F0E8;
}

.btn-primary:hover {
    background-color: #603d37;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #603d37;
    color: #F4F0E8;
    border: 2px solid #F4F0E8;
}

.btn-secondary:hover {
    background-color: #603d37;
    color: #FFFFFF;
}


/* 4. SECÇÃO DE DESTAQUE (HERO-SLIDER) */
.hero-slider {
    position: relative;
    max-width: 1200px;
    margin: 25px auto 50px auto;
    border-radius: 10px;
    overflow: hidden;
    height: 450px; /* Altura fixa para o slide */
}

.hero-slider img {
width: 100%;
    height: 100%;
    object-fit: cover;
    
    /* MODIFICADO: Alinha o foco da imagem ao topo, garantindo que a cabeça/rosto fica visível */
    object-position: 50% 31%; 
    
    display: block;
    transition: opacity 0.8s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background: rgba(20, 22, 47, 0.4); /* Overlay escuro (baseado em #14162f) com 40% de transparência */    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #FFFFFF;
}

.hero-overlay h2 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

.dots-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    background-color: #8A5A4A;
    border-color: #FFFFFF;
}

@media (max-width: 768px) {

    .hero-slider {
        height: 520px;
    }

    .hero-slider img {
        object-position: 50% 25%;
    }

    .hero-overlay {
        display: flex;
        flex-direction: column;
        justify-content: center; /* CENTRO VERTICAL */
        align-items: center;
        padding: 20px;
        text-align: center;
    }

    .hero-overlay h2,
    .hero-overlay p,
    .hero-overlay a {
        max-width: 320px; /* BLOCO COESO */
        width: 100%;
    }

    .hero-overlay h2 {
        font-size: 1.85em;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .hero-overlay p {
        font-size: 0.95em;
        line-height: 1.45;
        margin-bottom: 22px;
    }

     .hero-overlay .btn {
        font-size: 0.7em;
        padding: 8px 16px;
    }
}


/* 5. SECÇÃO SOBRE MIM (ABOUT ME) */
.about-me {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #F4F0E8; /* Fundo branco para destaque */
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.profile-info img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #A98E7B;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-info p {
    max-width: 700px;
    margin: 20px auto 30px auto;
    font-size: 1.1em;
}



/* NOVO: 6. LISTA DE SERVIÇOS (SERVICES) */

.services-list {
    padding: 50px 0;
}

.cards-container {
    display: grid;
    /* Define 4 colunas de tamanho igual. 
       Se a largura da tela não permitir 4, o layout será quebrado pelo Media Query. */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; /* Espaço entre os cartões */
    /* Centralização (Não estritamente necessária com grid, mas útil para o container) */
    justify-content: center; 
}

.service-card {
    /* Removemos o max-width aqui, pois o grid-template-columns define a largura */
    width: 100%; 
    
    background-color: #F4F0E8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(138, 90, 74, 0.2);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: #603d37;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
}

.card-content p {
    font-size: 0.95em;
    color: #14162f;
    margin-bottom: 20px;
}

.card-link {
    font-weight: 600;
    color: #603d37;
}

.card-link:hover {
    font-weight: 600;
    color: #603d37;
}

/* ========================================= */
/* 7. RODAPÉ (FOOTER) - FORMATO PROFISSIONAL */
/* ========================================= */

.site-footer {
    color: #14162f ; 
    padding: 60px 20px 40px 20px; /* Maior espaçamento vertical para respirar (60px no topo, 40px no fundo) */
    text-align: center;
    width: 100%; 
}

/* Container Interno (Limita e Centraliza o Conteúdo) */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    font-size: 1.1em;
    font-weight: 400;
    margin-bottom: 25px;
}

/* Links em geral dentro do footer (Aumenta contraste do link 'Contacto') */
.site-footer a {
    color: #603d37; /* Cor Secundária (Bege/Nude) - Mais visível que o cinza anterior */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #603d37; /* Cor Primária no hover */
}

/* Redes Sociais */
.social-links {
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.social-links a {
    margin: 0 15px;
    display: inline-block;
}

.social-links img {
    width: 28px; 
    height: 28px;
    /* Aumenta a luminosidade dos ícones para contraste */
    filter: brightness(1.5) invert(0.8); 
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-links img:hover {
    opacity: 1;
    filter: brightness(2) invert(1); /* Ficam mais claros e vibrantes no hover */
}

/* Copyright e Créditos */
.copyright {
    margin-top: 20px;
}

.copyright small {
    display: block;
    font-size: 0.85em;
    color: #14162f;
    line-height: 1.8; 
}


/* ... [Restante do seu CSS anterior] ... */

/* 8. RESPONSIVIDADE (MEDIA QUERIES) - ATUALIZADO */
@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
} 

    /* Ajustes nas outras secções */
    .hero-slider {
        height: 300px;
    }
    
    .hero-overlay h2 {
        font-size: 1.8em;
    }
    
    .hero-overlay p {
        font-size: 0.9em;
    }
/* ========================================= */
/* 9. ESTILIZAÇÃO DO FORMULÁRIO DE CONTACTO */
/* ========================================= */

.contact-section {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto; /* Centraliza a secção de contacto */
}

.contact-details {
    text-align: center;
    margin-bottom: 40px;
}

.contact-details p {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.contact-form {
    background-color: #F4F0E8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #14162f;
    font-size: 1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #603d37;
    border-radius: 5px;
    background-color: #F4F0E8;
    color: #14162f !important;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #603d37; /* Foco na cor primária */
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 90, 74, 0.2);
}

.contact-form textarea {
    resize: vertical; /* Permite redimensionar apenas verticalmente */
}

/* Garante que o botão primário mantém o estilo coerente */
.contact-form button[type="submit"] {
    width: 100%;
    border: none;
}

/* Responsividade para o formulário em ecrãs pequenos */
@media (max-width: 500px) {
    .contact-form {
        padding: 20px;
    }
}

/* ========================================= */
/* 9. ESTILOS PARA SERVIÇOS INDISPONÍVEIS */
/* ========================================= */

/* 1. Ativar Posição Relativa e Estilos Visuais para o Card Bloqueado */
.unavailable-card {
    position: relative; /* Essencial para que o badge/overlay seja posicionado absolutamente dentro */
    opacity: 0.7; /* Escurece ligeiramente todo o cartão (opcional) */
    pointer-events: none; /* Desativa cliques em todo o cartão para bloquear a navegação */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important; /* Suaviza a sombra */
}

/* 2. Estilo do Selo/Badge 'EM BREVE' */
.service-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ocupa todo o cartão */
    
    /* Overlay Cinzento/Transparente */
    background-color: rgba(100, 100, 100, 0.6); /* Cinzento com 60% de transparência */
    
    /* Configuração do Texto */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    z-index: 10; /* Garante que fica por cima de tudo */
    border-radius: 10px;
    cursor: default;
}

.service-badge span {
    color: #FFFFFF;
    background-color: #8A5A4A; /* Fundo do texto na cor primária */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.4em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Desativar Efeito Hover no Cartão Indisponível (opcional, mas profissional) */
.unavailable-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
}

/* 4. Estilo para links desativados */
.card-link.disabled {
    color: #999;
    pointer-events: none;
    text-decoration: none;
    cursor: default;
}

/* Remove scroll horizontal */
html, body {
    overflow-x: hidden;
}