/* 1. RESET E BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* 2. TIPOGRAFIA E BOTÕES */
h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; color: #111; }
.btn-primary { 
    background: #007bff; color: #fff; padding: 12px 25px; border-radius: 5px; 
    text-decoration: none; display: inline-block; transition: 0.3s;
}
.btn-primary:hover { background: #0056b3; transform: translateY(-2px); }

/* 3. CABEÇALHO */
header { padding: 10px 0; background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 80px; width: auto; display: block; }
nav ul { display: flex; list-style: none; gap: 20px; align-items: center; }
nav a { text-decoration: none; color: #555; font-weight: 500; }

/* 4. HERO SECTION */
#hero {
    position: relative; text-align: center; padding: 140px 20px; 
    background-color: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 60vh;
}
#hero::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/destaque.webp'); 
    background-size: cover; background-position: center; z-index: 1;
}
#hero .container { position: relative; z-index: 2; max-width: 850px; }
#hero h1 { font-size: 3.2rem; font-weight: 800; color: #fff !important; text-shadow: 0px 4px 15px rgba(0,0,0,0.5); }
#hero p { font-size: 1.3rem; color: #f0f0f0 !important; margin-bottom: 35px; }

/* 5. SUPER-SECÇÃO UNIFICADA (SERVIÇOS + SOBRE) */
.bg-sections-wrapper {
    position: relative;
    background: linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)), url('img/fundo-unico.webp');
    background-size: cover; background-position: center; background-attachment: fixed;
    padding: 80px 0;
}

#servicos { padding-bottom: 0px; }
#servicos h2 { text-align: left; margin-bottom: 40px; font-weight: 700; }

.grid-services {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 20px;
}

.service-card {
    background: white; padding: 30px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
}

/* Secção Sobre Mim Corrigida */
#sobre { padding-top: 40px; }

.sobre-wrapper {
    display: flex; align-items: flex-start; gap: 50px;
    padding-top: 50px; border-top: 1px solid rgba(0,0,0,0.1);
}

.sobre-foto { flex: 0 0 250px; max-width: 250px; }
.sobre-foto img { 
    width: 100%; height: auto; border-radius: 15px; 
    display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.sobre-texto { flex: 1; }
.lista-pilares { list-style: none; padding: 0; margin-top: 20px; }
.lista-pilares li { margin-bottom: 10px; font-weight: 500; }

/* 6. FAQ E CONTACTO */
#faq {
    background-color: #ffffff; /* Branco para máxima legibilidade */
    padding: 10px 0;
}
.faq-list { max-width: 800px; margin: 30px auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question { 
    width: 100%; padding: 20px; background: none; border: none; text-align: left; 
    font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between;
}
.faq-question::after { content: '+'; font-size: 1.5rem; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; padding: 0 20px; color: #666; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }

/* Formulário de Contacto Otimizado */
#contact-form { 
    max-width: 600px; 
    margin: 40px auto; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; /* Aumentado para melhor respiro */
}

#contacto {
    background-color: #f8f9fa; /* A cor cinza leve que sugerimos anteriormente */
    width: 100%;               /* Garante que ocupa toda a largura horizontal */
    padding: 80px 0;           /* Espaçamento vertical para dar elegância */
    border-top: 1px solid #eee;
}

#contacto h2 {
    text-align: center; /* No contacto, o título centrado ajuda a focar o utilizador */
    margin-bottom: 20px;
}

/* 1. Correção da Fonte e Estilo dos Campos */

#contact-form { 
    max-width: 600px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

#contact-form input, 
#contact-form textarea { 
    padding: 15px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    font-family: 'Inter', sans-serif; 
    font-size: 1rem;
    color: #333;
    background-color: #ffffff;
    transition: all 0.3s ease; 	
}

/* 2. Efeito de Foco (Best Practice de UX) */
#contact-form input:focus, 
#contact-form textarea:focus { 
    outline: none;
    border-color: #007bff; /* Cor da tua marca ao clicar */
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1); /* Brilho subtil */
    background-color: #fff;
}

/* 3. Ajuste do Botão Enviar */
#contact-form .btn-primary { 
    border: none; /* Remove a borda indesejada */
    padding: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2); /* Sombra em vez de borda para dar profundidade */
}

#contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

/* --- RODAPÉ PROFISSIONAL --- */
footer {
    background: #111; /* Mantemos o tom sóbrio */
    color: #fff;
    padding: 80px 0 20px 0;
    font-size: 0.95rem;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand, .footer-links, .footer-contact {
    flex: 1;
}

.footer-logo {
    height: 60px; /* Logo ligeiramente menor no rodapé */
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Torna o logo branco para o fundo escuro */
}

.footer-brand p {
    color: #aaa;
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #007bff; /* Azul de destaque */
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #666;
    font-size: 0.8rem;
}

/* Ajuste Responsivo para Telemóvel */
@media (max-width: 768px) {
    .footer-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
}


/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Garante que fica por cima de tudo */
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    background-color: #25d366; /* Verde oficial WhatsApp */
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-text {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-right: 10px;
}

.whatsapp-content img {
    width: 25px;
    height: 25px;
}

/* Efeito ao passar o rato */
.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* 7. RESPONSIVIDADE */
@media (max-width: 992px) {
    .grid-services { grid-template-columns: 1fr; }
    .sobre-wrapper { flex-direction: column; align-items: center; text-align: center; }
    .sobre-foto { width: 100%; max-width: 280px; margin-bottom: 20px; }
    .footer-wrapper { flex-direction: column; text-align: center; }
    .footer-social { justify-content: center; }
    .whatsapp-text { display: none; }
    .whatsapp-content { padding: 15px; }
    #hero h1 { font-size: 2.2rem; }
}