/* --- Reset, Variáveis e Estilos Globais --- */
:root {
    --primary-color: #0d2a5c; /* Azul Marinho profundo */
    --secondary-color: #007bff; /* Azul Vibrante */
    --text-color: #343a40; /* Cinza escuro para texto */
    --text-light: #f8f9fa; /* Texto claro para fundos escuros */
    --background-light: #f8f9fa; /* Fundo cinza bem claro */
    --background-white: #FFFFFF;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    color: var(--text-color);
    background-color: var(--background-white);
    font-family: var(--font-body);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

section {
    padding: 100px 0;
}

section:nth-of-type(even) {
    background-color: var(--background-light);
}

/* --- Cabeçalho e Navegação --- */
.header {
    background-color: var(--background-white);
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 150px;
    height: auto;
}

.menu {
    display: flex;
    gap: 35px;
}

.menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.4s ease;
}

.menu a:hover {
    color: var(--secondary-color);
}

.menu a:hover::after {
    width: 100%;
}

.hamburguer {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburguer span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.4s ease;
}

/* --- Seção Hero --- */
.hero {
    background: linear-gradient(rgba(13, 42, 92, 0.85), rgba(13, 42, 92, 0.85)), url(acordo2.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-light);
    text-align: center;
        /* Define a altura como 100% da altura da tela (viewport height) */
    height: 100vh;
    /* Usa Flexbox para centralizar o conteúdo dentro da seção */
    display: flex;
    align-items: center;     /* Alinha verticalmente */
    justify-content: center; /* Alinha horizontalmente */
    
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--text-light);
}

.hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--background-white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* --- Seção Sobre Nós --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 80px;
}

.about-content .text-content {
    flex: 1;
}

.about-content .text-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-content .image-content {
    flex: 1;
}

.about-content .image-content img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.result-item {
    background: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease-in-out;
}

.result-item img {
    width: 50px;
    margin-bottom: 15px;
    filter: invert(15%) sepia(48%) saturate(1477%) hue-rotate(187deg) brightness(96%) contrast(97%);
}

.result-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.result-item p {
    font-size: 1rem;
    color: var(--text-color);
}


/* --- Seção Soluções --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.solution-card {
    background: var(--background-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.solution-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.solution-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- Seção Vantagens --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 50px;
}

.advantages-grid p {
    font-size: 1.1rem;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, color 0.3s;
}

.advantages-grid p:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- Seção Contato --- */
.contact {
    text-align: center;
}

.contact-info {
    margin: 40px 0;
    font-size: 1.1rem;
    line-height: 2;
}

.social-links {
    margin-bottom: 50px;
}

.social-links img {
    width: 45px;
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.15) translateY(-5px);
}

.map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* --- Rodapé --- */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Responsividade --- */
@media screen and (max-width: 992px) {
    h2 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }

    .about-content {
        flex-direction: column;
        gap: 50px;
    }

    .about-content .text-content {
        order: 2;
        text-align: center;
    }
     .about-content .image-content {
        order: 1;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    section { padding: 80px 0; }
    h2 { font-size: 2rem; }

    .menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 89px;
        left: 0;
        width: 100%;
        height: calc(100vh - 89px);
        background-color: rgba(248, 249, 250, 0.85);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        text-align: center;
        padding: 50px 0;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }
    
    .menu.active {
        transform: translateX(0);
    }

    .hamburguer {
        display: block;
    }
    
    .hamburguer.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .hamburguer.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburguer.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .results {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* --- Animação de Pulso para o Botão CTA --- */
.cta-button {
    /* Adiciona a animação 'pulse' ao botão */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

    /* Remove a animação quando o utilizador passa o rato por cima, 
    para não interferir com o efeito de hover já existente. */
    .cta-button:hover {
        animation: none;
}

/* --- Solução Final e Definitiva para os Ícones Sociais --- */

/* 1. Remove qualquer decoração e define um font-size de 0 para o link */
.social-links a,
.social-links a:link,
.social-links a:visited,
.social-links a:hover,
.social-links a:active {
    font-size: 0; /* NOVO: Isto impede o navegador de renderizar qualquer espaço de texto */
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 2. Define o tamanho do ícone e o alinhamento vertical */
.social-links .social-icon {
    width: 45px;
    height: auto;
    transition: transform 0.3s ease;
    vertical-align: middle; 
}

/* 3. Aplica o efeito de hover que já tínhamos */
.social-links a:hover .social-icon {
    transform: scale(1.15) translateY(-5px);
}
}