/* ==== CONFIGURACIÓN GENERAL Y VARIABLES ==== */
:root {
    --main-bg: #f7f5f3; /* Fundo off-white */
    --secondary-bg: #ffffff; /* Branco puro para seções de contraste */
    --primary-text: #2d3e50; /* Azul-marinho profundo (principal) */
    --secondary-text: #3a4a5b; /* Azul acinzentado (variação do primário) */
    --accent-color: #f1c40f; /* Dourado vibrante (gota/energia) */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--main-bg);
    color: var(--primary-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--primary-text);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

section {
    padding: 80px 0;
}

/* ==== ENCABEZADO Y NAVEGACIÓN ==== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(247, 245, 243, 0.85); /* Fundo off-white com transparência */
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    max-height: 45px; /* Ajuste a altura do logo conforme necessário */
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-toggle {
    color: var(--primary-text);
    font-size: 1.5rem;
    cursor: pointer;
    display: none; /* Escondido por padrão em telas grandes */
}


/* ==== SECCIÓN HERO ==== */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden; /* Garante que nada saia dos limites */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Swiper styles from previous implementation */
.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(247, 245, 243, 0.4); /* Overlay off-white para garantir legibilidade */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* Garante que o conteúdo fique acima da sobreposição */
}
.hero-title {
    font-size: 4rem;
    color: var(--primary-text);
    margin: 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    max-width: 80%; /* Evita que o texto fique muito largo em telas grandes */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Melhora a legibilidade sobre as imagens */
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    color: var(--primary-text);
    z-index: 2;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-10px); }
}

/* ==== OTRAS SECCIONES ==== */
.intro-section {
    background-color: var(--main-bg);
    text-align: center;
}
.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.mission-vision-section {
    background-color: var(--secondary-bg);
}

.two-columns {
    display: flex;
    gap: 50px;
}
.column {
    flex: 1;
    text-align: center;
}
.section-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.pillars-section {
    background-color: var(--main-bg);
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.pillar-card {
    background-color: var(--main-bg);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--secondary-bg);
    /* Estado inicial para a animação de entrada */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s ease;
}
.pillar-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.pillar-card:hover {
    /* O transform aqui será aplicado no hover, sobrepondo o transform de is-visible */
    transform: translateY(-10px);
    border-color: var(--accent-color);
}
.pillar-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}
.pillar-card h4 {
    margin: 0;
    color: var(--primary-text);
    font-size: 1.1rem;
}

.alliances-section {
    background-color: var(--secondary-bg);
    text-align: center;
}
.partner-logo {
    margin: 20px 0;
    max-width: 300px;
}
.alliances-section p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--secondary-text);
}

/* ==== FORMULARIO DE CONTACTO ==== */
.contact-section {
    text-align: center;
}
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--secondary-bg);
    background-color: var(--main-bg);
    color: var(--primary-text);
    border-radius: 5px;
    font-family: var(--font-body);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--secondary-text);
}
.cta-button {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--primary-text);
    border: none;
    border-radius: 5px;
    font-family: var(--font-title);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: #d4ac0d; /* Dourado um pouco mais escuro para o hover */
}

/* ==== PIE DE PÁGINA ==== */
.main-footer {
    background-color: var(--primary-text); /* Fundo com a cor primária para um acabamento sólido */
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--secondary-bg);
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .two-columns { flex-direction: column; }

    .nav-toggle {
        display: block; /* Mostra o ícone do hambúrguer */
    }

    .nav-menu {
        position: fixed;
        top: 70px; /* Abaixo do header */
        right: -100%; /* Começa fora da tela */
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--main-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 50px;
        transition: right 0.4s ease-in-out;
    }

    .nav-menu.active {
        right: 0; /* Traz o menu para a tela */
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
}