/* --- GERAL & VARIÁVEIS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
            --primary-color: #008080;
            --secondary-color: #f4f4f4;
            --dark-color: #333;
            --light-color: #fff;
            --font-family: 'Montserrat', sans-serif;
            --box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

* {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
}

html {
            scroll-behavior: smooth;
}

/* --- INÍCIO DA CORREÇÃO 1 (Para cliques nos links) --- */
/* Isto corrige os cliques nos links do menu para secções
   COMO #what-is, #areas, #about, etc.
   (Não corrige o problema inicial da secção .hero)
*/
section[id] {
      scroll-margin-top: 90px; /* Ajuste este valor (altura do menu + espaço) */
}
/* --- FIM DA CORREÇÃO 1 --- */


body {
            font-family: var(--font-family);
            line-height: 1.6;
            color: var(--dark-color);
            background-color: var(--light-color);
}

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

section {
            padding: 4rem 0;
}

section:nth-child(even) {
            background: var(--secondary-color);
}

.section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: var(--primary-color);
}

.section-subtitle {
            text-align: center;
            max-width: 700px;
            margin: -2rem auto 3rem auto;
            font-size: 1.1rem;
}

.btn {
            display: inline-block;
            padding: 0.8rem 2rem;
            background: var(--primary-color);
            color: var(--light-color);
            border: none;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 600;
            transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
            background: #006666;
            transform: scale(1.05);
}

.btn:focus, a:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
}

/* --- HEADER --- */
header {
            background: var(--light-color);
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
            background-color: rgba(255, 255, 255, 0.95);
            box-shadow: var(--box-shadow);
}

header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
}

header .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
}

header .main-nav ul {
            display: flex;
            list-style: none;
}

header .main-nav ul li a {
            padding: 0.5rem 1rem;
            text-decoration: none;
            color: var(--dark-color);
            font-weight: 600;
            transition: color 0.3s ease;
}

header .main-nav ul li a:hover {
            color: var(--primary-color);
}

.menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--dark-color);
            font-size: 1.5rem;
            cursor: pointer;
}


/* ================================================================ */
/* --- HERO (VERSÃO FINAL COM CLIP-PATH) ---                                                                        */
/* ================================================================ */

.hero {
            background-color: var(--primary-color);
            color: var(--light-color);
/* --- INÍCIO DA CORREÇÃO 2 (Para o carregamento da página) --- */
            /* O padding-top (8rem) tem de ser a altura do menu (aprox. 5rem) 
       MAIS o espaço que quer até ao texto (aprox. 3rem).
                   O padding-bottom (3rem) mantém-se. */
            padding: 8rem 0 3rem; /* <<---- ALTERAÇÃO PRINCIPAL AQUI */
/* --- FIM DA CORREÇÃO 2 --- */
            overflow: hidden;
}

.hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: start; /* Alinha os itens no topo da grelha */
            gap: 2rem;
            min-height: 50vh;
            max-width: 1100px;
            margin: auto;
            padding: 0 2rem;
}

/* Coluna da Esquerda (Texto) */
.hero-left {
            display: flex;
            flex-direction: column;
            justify-content: center;
}

.hero-text {
            text-align: left;
}

.hero-text h1 {
            font-size: 2.8rem;
            line-height: 1.2;
            margin-bottom: 1rem;
}

.hero-text p {
            font-size: 1.1rem;
            margin-bottom: 2rem;
            opacity: 0.9;
}

/* Coluna da Direita (Imagem) */
.hero-right {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 450px;
}

.hero-image-wrapper {
    width: 420px;
    height: 420px;
    -webkit-clip-path: url(#organic-shape);
    clip-path: url(#organic-shape);
    overflow: hidden; /* ESSENCIAL: corta o que 'transborda' */
}

/* Esta é a imagem DENTRO da 'bolha' */
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;

            
}

/* Estilo especial para o botão DENTRO da secção hero */
.hero .btn {
            background-color: var(--light-color);
            color: var(--primary-color);
            font-weight: 700;
            padding: 1rem 2.5rem;
            transition: all 0.3s ease;
}

.hero .btn:hover {
            background-color: #f0f0f0;
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* --- SECÇÃO WHAT-IS (OPÇÃO 1: ELEGANTE & IMERSIVO) --- */
#what-is {
            background-color: var(--secondary-color);
            overflow: hidden;
            position: relative;
}
.what-is-overlap-grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; gap: 2rem; }
.what-is-card { background: var(--light-color); padding: 3rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 2; grid-column: 1 / 2; grid-row: 1 / 2; }
.section-title-left { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1.5rem; text-align: left; }
.highlight-box { background-color: #e6f2f2; border-left: 4px solid var(--primary-color); padding: 1rem 1.5rem; margin-top: 1.5rem; border-radius: 5px; }
.what-is-image-overlap { z-index: 1; grid-column: 2 / 3; grid-row: 1 / 2; transform: translateX(-10%); }
.what-is-image-overlap img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--box-shadow); min-height: 450px; object-fit: cover; }


/* --- SECÇÃO SERVICES (COM ÍCONES) --- */
#services {
            background-color: var(--light-color);
}
.grid-services { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-services .card { padding: 2rem 1.5rem; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; background: var(--light-color); border-radius: 10px; box-shadow: var(--box-shadow); }
.grid-services .card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.grid-services .card h3 { font-size: 1.2rem; color: var(--dark-color); margin: 0; }
.grid-services .card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.grid-services .card:hover i { transform: scale(1.1); transition: transform 0.3s ease; }


/* ================================================================ */
/* SECÇÃO "COMO PODEMOS AJUDAR" (NOVO DESIGN DE GRELHA EXPANSÍVEL)           */
/* ================================================================ */

#areas {
            background-color: var(--secondary-color);
}

.treatment-grid {
            display: grid;
            gap: 1.5rem;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            align-items: start;
}

/* O cartão principal (o item do acordeão) */
.treatment-item {
            background: var(--light-color);
            border-radius: 10px;
            box-shadow: var(--box-shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            overflow: hidden;
            border: 1px solid transparent;
}

.treatment-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* O título clicável do cartão */
.treatment-title {
            padding: 2rem 1.5rem;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.2rem;
            color: var(--dark-color);
            text-align: center;
            transition: color 0.3s ease;
}

.treatment-title i {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin: 0 0 1rem 0;
            transition: transform 0.3s ease;
}

.treatment-item:hover .treatment-title i {
            transform: scale(1.1);
}

/* Remove o antigo sinal de "+" */
.treatment-title::after {
            display: none;
}

/* Estiliza a área de conteúdo que expande */
.treatment-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease-out, padding 0.5s ease-out;
            background: var(--light-color);
            padding: 0 1.5rem;
}

/* O conteúdo interno quando visível */
.treatment-content-inner {
            padding-bottom: 1.5rem;
            text-align: left;
            border-top: 1px solid #eee;
}
.treatment-content-inner p, .treatment-content-inner ul {
            margin-bottom: 1rem;
}
.treatment-content-inner h4 {
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
}
.treatment-content-inner ul {
            list-style-position: inside;
            padding-left: 1rem;
}

/* Quando um cartão está ativo (aberto) */
.treatment-item.active {
            border: 1px solid var(--primary-color);
            box-shadow: 0 8px 25px rgba(0, 128, 128, 0.15);
}

.treatment-item.active .treatment-title {
            color: var(--primary-color);
}

.final-cta {
            text-align: center;
            margin-top: 3rem;
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--dark-color);
}

/* --- SECÇÃO CONTEÚDO FACEBOOK --- */
#facebook-content {
    /* Mantém o padrão de cores alternado (cinza claro) */
    background-color: var(--secondary-color);
}

.fb-grid {
    display: grid;
    gap: 1.5rem;
    /* Grelha responsiva igual à da secção "Areas" */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.fb-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fb-card:hover {
    /* Efeito de hover que já usas noutros cartões */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.fb-card-image {
    position: relative;
    width: 100%;
    /* Define uma altura fixa para as imagens ficarem uniformes */
    height: 200px;
}

.fb-card-image img {
    width: 100%;
    height: 100%;
    /* Garante que a tua imagem cobre a área, mesmo que o rácio não seja perfeito */
    object-fit: cover; 
}

/* Efeito de overlay (camada de cor) ao passar o rato */
.play-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Usa a tua cor primária com transparência */
    background: rgba(0, 128, 128, 0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--light-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fb-card:hover .play-icon-overlay {
    opacity: 1;
}

.fb-card-content {
    padding: 1.5rem;
}

.fb-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}


/* --- SECÇÃO CTA FLUTUANTE (LIGAR AGORA) --- */

/* Esta animação faz o botão pulsar subtilmente */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
}

/* A secção "wrapper" não tem fundo, apenas serve para posicionar o cartão */
#cta-banner-floating {
    padding: 0; /* Removemos o padding da secção */
    margin-top: -3rem; /* PUXA O CARTÃO PARA CIMA, sobrepondo-se à secção #areas */
    position: relative; /* Necessário para o z-index */
    z-index: 10; /* Garante que fica por cima da secção #areas */
}

/* Este é o próprio cartão, agora com o design */
.cta-card {
    background: var(--primary-color); /* Fundo Teal */
    color: var(--light-color);
    padding: 2.5rem 3rem; /* Mais padding */
    border-radius: 15px; /* Cantos arredondados, como nos teus cartões */
    
    /* A Sombra Mágica: usa a tua cor primária para um efeito de "brilho" */
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.4);

    /* Layout (igual ao de antes) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-card-text h3 {
    font-size: 1.8rem; /* Texto ligeiramente maior */
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.cta-card-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* O botão de antes, mas agora com a animação "pulse" */
.btn-light-cta {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.9rem 2.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    
    /* Aplica a animação */
    animation: pulse-animation 2.5s infinite;
}

/* Paramos a animação no hover para uma interação mais suave */
.btn-light-cta:hover {
    animation: none; /* Desliga a animação */
    background-color: #f0f0f0;
    transform: translateY(-3px); /* Mantém o efeito de "lift" */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-light-cta i {
    margin-right: 0.5rem;
}

/* --- ESTILO DA MENSAGEM DE SUCESSO DO FORMULÁRIO --- */

.form-success-message {
    /* Usa o padding que o formulário tinha */
    padding: 3rem; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Garante que a altura é semelhante à do formulário */
    min-height: 450px; 
}

.form-success-message i {
    font-size: 3.5rem;
    color: var(--primary-color); /* Cor verde-azul */
    margin-bottom: 1.5rem;
}

.form-success-message h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.form-success-message p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Estilo para o botão "Voltar ao Início" */
.form-success-message .btn {
    width: auto; /* O botão não ocupa 100% da largura */
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}


/* --- ABOUT (OPÇÃO 2: MODERNO & PESSOAL) --- */

#about {
    position: relative;
    padding-top: 120px;
    background-color: var(--primary-color);
    color: var(--dark-color); /* Garante que qualquer texto fora do cartão seria branco */
}
.about-card-modern { max-width: 700px; margin: 0 auto; background: var(--light-color); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center; padding-bottom: 2.5rem; position: relative; }
.about-card-photo { display: flex; justify-content: center; position: absolute; width: 100%; top: -90px; left: 0; }
.about-card-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 6px solid var(--light-color); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.about-card-content { padding: 100px 2.5rem 0; }
.about-subtitle { color: var(--primary-color); font-size: 1.1rem; font-weight: 600; }
.about-title { font-size: 2.2rem; margin-bottom: 1.5rem; }
.about-card-content p { margin-bottom: 1rem; }
.about-social-links { margin-top: 2rem; }
.about-social-links a { color: var(--primary-color); font-size: 1.5rem; margin: 0 0.75rem; text-decoration: none; transition: transform 0.3s ease; }
.about-social-links a:hover { transform: scale(1.2); }

/* --- FOOTER & CONTACT --- */
.testimonial { background: var(--light-color); padding: 2rem; border-left: 5px solid var(--primary-color); margin-bottom: 1.5rem; border-radius: 5px; box-shadow: var(--box-shadow); position: relative; }
.testimonial-icon { position: absolute; top: -15px; left: 20px; font-size: 3rem; color: var(--primary-color); opacity: 0.15; }
.testimonial p { font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-weight: 600; color: var(--primary-color); }
.faq-item { background: var(--light-color); margin-bottom: 1rem; border-radius: 5px; box-shadow: var(--box-shadow); overflow: hidden; }
.faq-question { padding: 1rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 1.5rem; border-top: 1px solid var(--secondary-color); }
#main-footer { background: var(--dark-color); color: var(--light-color); padding: 3rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: left; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #555; }
.footer-content h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--light-color); }
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav ul li { margin-bottom: 0.5rem; }
.footer-nav ul li a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer-nav ul li a:hover { color: var(--primary-color); }
.social-links a { color: #ccc; font-size: 1.5rem; margin-right: 1rem; text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-links a:hover { color: var(--primary-color); transform: translateY(-3px); }
.footer-contact p { color: #ccc; margin-bottom: 0.75rem; display: flex; align-items: center; }
.footer-contact a { color: #ccc; text-decoration: none; }
.footer-contact a:hover { color: var(--primary-color); }
.footer-contact i { color: var(--primary-color); margin-right: 0.75rem; width: 20px; text-align: center; }
.footer-bottom { text-align: center; color: #aaa; }
.back-to-top-btn { position: fixed; bottom: 20px; right: 20px; background-color: var(--primary-color); color: var(--light-color); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s, transform 0.4s; transform: translateY(20px); }
.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background-color: #006666; }
.cta-call-wrapper { background: var(--primary-color); color: var(--light-color); padding: 3rem; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.cta-call-wrapper .section-title-left { color: var(--light-color); }
.cta-call-wrapper .contact-intro { color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; }
.cta-phone-button { display: inline-block; background: var(--light-color); color: var(--primary-color); padding: 1rem 2rem; border-radius: 50px; text-decoration: none; font-size: 1.3rem; font-weight: 700; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cta-phone-button:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.cta-phone-button i { margin-right: 10px; }
.contact-form-wrapper { padding: 3rem; }
.contact-form-wrapper h3 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px; margin-top: 0.5rem; font-family: inherit; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.form-group textarea { resize: vertical; }
.contact-form-wrapper .btn { width: 100%; padding: 1rem; font-size: 1.1rem; }
.contact-grid-integrated { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--light-color); border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; }

/* --- MEDIA QUERIES (RESPONSIVIDADE) --- */
@media(max-width: 900px) {
            .hero {
    /* O original era 8rem 0 3rem */
    padding-top: 1rem; /* Suficiente para salvar o menu, mas mais curto */
    padding-bottom: 2rem; /* Reduz também o espaço no fundo da secção */
}

            .hero-grid {
                        grid-template-columns: 1fr;
                        text-align: center;
            }
            .hero-left {
                        order: 2;
            }
            .hero-right {
                        order: 1;
                        margin-bottom: 0.1rem;
            }
            .hero-text {
                        text-align: center;
            }
            .hero-image-wrapper {
            width: 320px;
            height: 320px;

}

@media(max-width: 768px) {
            .section-title { font-size: 2rem; }
            .what-is-overlap-grid { grid-template-columns: 1fr; }
            .what-is-image-overlap { display: none; }
            .what-is-card { padding: 2rem; }
            .section-title-left { text-align: center; }
            #about { padding-top: 120px; }
            .about-card-modern { margin-top: 0; }
            .contact-grid-integrated { grid-template-columns: 1fr; }
            .cta-call-wrapper { border-radius: 15px 15px 0 0; }
            .menu-toggle { display: block; z-index: 1001; }
            .main-nav { position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh; background-color: var(--light-color); box-shadow: -5px 0 15px rgba(0,0,0,0.2); transition: right 0.4s ease-in-out; z-index: 1000; }
            .main-nav.active { right: 0; }
            .main-nav ul { flex-direction: column; padding-top: 5rem; align-items: center; }
            .main-nav ul li { width: 100%; text-align: center; }
            .main-nav ul li a { display: block; padding: 1.5rem 1rem; font-size: 1.2rem; }
            .footer-content { grid-template-columns: 1fr; text-align: center; }
            /* Ajusta o cartão flutuante no mobile */
            #cta-banner-floating {
                margin-top: 0; /* Remove a sobreposição no mobile */
                padding-top: 2rem; /* Adiciona espaço normal */
                /* A secção #areas tem fundo cinza, esta fica no "branco" */
                background: var(--light-color);
            }

            .cta-card {
                flex-direction: column; /* Stacks verticalmente */
                text-align: center;
                padding: 2rem 1.5rem;
                /* Remove a sombra de "brilho" e usa a sombra normal */
                box-shadow: var(--box-shadow);
            }

            .cta-card-text {
                margin-bottom: 1.5rem;
            }

            .btn-light-cta {
                width: 100%; /* Botão a 100% */
            }
 

}