/* Reset Básico e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    background-color: #1a0f35;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Principal */
.main-header {
    background-image: url('../uploads/background_header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 150px;
}

/* Barra de Navegação Fixa */
.fixed-nav {
    background-color: rgba(9, 1, 35, 0.85); /* Cor #090123 com 85% de opacidade */
    padding: 10px 0;
    position: fixed; /* Fixa o menu na tela */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/* Faixa de fundo semi-transparente para a navegação */
.nav-container {
    background-color: rgba(9, 1, 35, 0.7);
    padding: 10px 0;
}

/* Navegação */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 80px;
    height: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.main-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav ul li a.active {
    background-color: #2f187a;
}

/* Seção Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 120px 0;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 60px;
    text-align: left;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
}

.hero-text p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-button {
    display: block;
    text-align: left;
}

.cta-button img {
    max-width: 300px;
    height: auto;
    transition: transform 0.2s ease;
}

.cta-button:hover img {
    transform: scale(1.05);
}

.hero-banner {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner img {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
}

/* ================================= 
Estilos da Seção de Serviços 
================================= 
*/
.services-section {
    background-color: #F5F5F5;
    padding: 100px 0;
    color: #333;
}

.section-title {
    text-align: center;
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 60px;
}

.services-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex: 1 1 calc(33.333% - 22px);
    max-width: 380px;
    transition: transform 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    max-width: 100%;
    height: auto;
}

.services-banner-container {
    text-align: center;
    margin-top: 80px;
}

.services-banner-container img {
    max-width: 50%;
    height: auto;
}

/* ================================= 
Estilos da Seção de Recursos Adicionais 
================================= 
*/
.features-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.features-header h2 {
    font-size: 38px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
}

.features-header p {
    font-size: 22px;
    color: #000000;
    line-height: 1.5;
}

.highlight-text {
    color: #7d08e6;
    font-weight: bold;
}

.features-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card {
    flex: 1 1 calc(33.333% - 22px);
    max-width: 380px;
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card img {
    max-width: 100%;
    height: auto;
}

/* ================================= 
Estilos da Seção de Impacto 
================================= 
*/
.impact-section {
    position: relative;
    background-color: #ffffff;
    padding-bottom: 100px;
}

.stats-bar {
    background-image: linear-gradient(90deg, #2f187a, #000832);
    color: #ffffff;
    padding: 60px 0;
}

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

.stats-title h2 {
    font-size: 32px;
    font-weight: bold;
    max-width: 250px;
    line-height: 1.3;
}

.stats-grid {
    display: flex;
    gap: 50px;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
}

.stat-item p {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

.impact-background-image img {
    width: 100%;
    height: auto;
    display: block;
}

.impact-cards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.impact-card img {
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s ease;
}

.impact-card img:hover {
    transform: translateY(-10px);
}

/* ================================= 
Estilos da Seção Sobre Nós (LAYOUT ATUALIZADO) 
================================= 
*/
.about-section {
    background-color: #f5f5f5;
    padding: 100px 0;
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-title {
    flex: 0 0 40%;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    color: #7d08e6;
}

.about-title-large {
    display: block;
    font-size: 72px;
    line-height: 1;
}

.about-title-small {
    font-size: 42px;
    line-height: 1.2;
}

.about-description {
    flex: 1;
}

.about-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #7d08e6;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px 50px;
}

.about-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.about-icon {
    width: 50px;
    height: auto;
    margin-top: 5px;
}

.about-item-text h3 {
    font-size: 20px;
    font-weight: bold;
    color: #7d08e6;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.about-item-text p {
    font-size: 15px;
    line-height: 1.6;
    color: #7d08e6;
}

.about-item-text p strong {
    font-weight: bold;
}

/* ================================= 
Estilos da Seção de CTA (CALL TO ACTION) - ATUALIZADO 
================================= 
*/
.cta-section {
    background-image: url('../uploads/background_3.png');
    background-size: cover;
    background-position: center;
    padding: 90px 0;
}

.cta-content {
    max-width: 500px;
}

.cta-logo {
    width: 90px;
    height: auto;
    margin-bottom: 30px;
}

.cta-title {
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 40px;
}

.cta-button-link img {
    width: 250px;
    height: auto;
    transition: transform 0.3s ease;
}

.cta-button-link:hover img {
    transform: scale(1.05);
}

/* ================================= 
Estilos da Seção de Testemunhos 
================================= 
*/
.testimonials-section {
    background-color: #ffffff;
    background-image: url('../uploads/background_4_testemunhos.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding: 100px 0;
}

.testimonials-title {
    text-align: center;
    font-size: 38px;
    font-weight: bold;
    color: #004AAD;
    margin-bottom: 60px;
    text-transform: uppercase;
    line-height: 1.3;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial-card {
    flex: 1 1 calc(33.333% - 22px);
    max-width: 380px;
    transition: transform 0.3s ease;
    height: auto;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

/* ================================= 
Estilos da Seção de Logos de Clientes (CORRIGIDO) 
================================= 
*/
.client-logos-section {
    background-color: #1B005B;
    padding: 60px 0;
    color: #ffffff;
}

.client-logos-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 40px;
}

.logo-scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
    display: flex;
    width: max-content;
    gap: 60px;
    will-change: transform;
    animation: scroll 40s linear infinite;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

.scroller-inner img {
    height: 40px;
    max-width: none;
}


/* ================================= 
Estilos da Seção de Contacto 
================================= 
*/
.contact-section {
    background-image: radial-gradient(circle at 0% 0%, #1448b7, #b702a7);
    padding: 100px 0;
    color: #ffffff;
    position: relative;
}

.contact-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.contact-info {
    flex: 1;
    position: sticky;
    top: 120px; /* Altura do menu fixo + margem */
    align-self: flex-start;
}

.contact-info h2 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 450px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
}

.social-icons a:hover img {
    opacity: 0.8;
}

.contact-form-container {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form {
    background-color: #2f187a;
    padding: 40px;
    border-radius: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background-color: #ffffff;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    color: #333;
    border-radius: 50px;
}

.contact-form textarea {
    border-radius: 20px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 100, 255, 0.3);
}

/* ================================= 
Estilos para o seletor de país (intlTelInput)
================================= 
*/
.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
}

.iti__country {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.iti__country:hover {
    background-color: #f8f9fa;
}

.iti__country.iti__highlight {
    background-color: #007bff;
    color: #ffffff;
}

.iti__country-name {
    color: #333333;
    font-weight: 500;
    font-size: 14px;
}

.iti__dial-code {
    color: #666666;
    font-size: 14px;
}

.iti__flag-box {
    margin-right: 12px;
}

.iti__selected-flag {
    background-color: #ffffff;
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 14px 12px;
}

.iti__selected-flag:hover {
    background-color: #f8f9fa;
}

.iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
    margin-left: 6px;
}

/* Ajuste para o input de telefone */
#telefone {
    padding-left: 60px !important;
    border-radius: 50px !important;
}

/* ================================= 
Estilos do Popup de Confirmação
================================= 
*/
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.popup-title {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.popup-message {
    font-size: 16px;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.popup-button {
    background: linear-gradient(90deg, #007bff, #0056b3);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}


/* ================================= 
Estilos do Rodapé Principal 
================================= 
*/
.main-footer {
    background-image: url('../uploads/background_final.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 80px 0;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 15px;
}

.footer-company-name {
    font-weight: bold;
    font-size: 20px;
    margin: 0;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.location-info p {
    margin: 0;
    font-size: 16px;
}

.flag-icon {
    width: 24px;
    height: auto;
}

.footer-col h5 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
    opacity: 0.8;
}

/* ================================= 
Estilos da Barra de Copyright (Sub-Rodapé) 
================================= 
*/
.sub-footer {
    background-color: #090123;
    color: #ffffff;
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.sub-footer p {
    margin: 5px 0;
}

.nipc-number {
    color: #00bf63;
    font-weight: bold;
}

/* ============================================= 
   NOVAS REGRAS PARA O MENU HAMBÚRGUER E RESPONSIVIDADE 
   ============================================= */

/* Esconde o botão do menu hambúrguer por padrão em telas maiores */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
}

/* ============================================= 
   Media Queries para Responsividade 
   ============================================= */

@media (max-width: 992px) {
    /* Layout para telas de tablets */

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 60px;
    }

    .hero-text {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .cta-section {
        background-image: none; /* Remove a imagem de fundo */
        background-color: #1a0f35; /* Usa a cor de fundo padrão, mas você pode escolher outra */
    }

    .cta-button {
        text-align: center;
    }

    .hero-banner {
        margin-top: 40px;
    }

    .hero-banner img {
        max-width: 80%;
    }

    .services-grid,
    .features-grid,
    .impact-cards-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card,
    .feature-card,
    .impact-card {
        max-width: 100%;
    }

    .services-banner-container img {
        max-width: 80%;
    }

    .stats-container {
        flex-direction: column;
        text-align: center;
    }

    .stats-title {
        margin-bottom: 30px;
    }

    .stats-title h2 {
        max-width: 100%;
        font-size: 28px;
    }

    .stats-grid {
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .about-intro {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .about-title {
        flex: 1 1 auto;
    }

    .about-title-large {
        font-size: 52px;
    }

    .about-title-small {
        font-size: 32px;
    }

    .about-description p {
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr; /* Muda para uma coluna */
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .contact-info {
        position: static; /* Remove o sticky em tablets e mobile */
    }

    .contact-info h2 {
        font-size: 48px;
    }

    .social-icons {
        justify-content: center;
    }
    
    .footer-columns {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col.footer-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* Layout para telas de celular */

    /* Mostra o ícone do menu hambúrguer */
    .menu-toggle {
        display: block;
    }
    
    /* Esconde o menu de navegação por padrão */
    .main-nav ul.nav-menu {
        display: none;
        flex-direction: column;
        background-color: rgba(9, 1, 35, 0.95);
        position: absolute;
        top: 80px; /* Ajusta a posição para baixo do logo */
        left: 0;
        width: 100%;
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Quando o menu está ativo, ele aparece */
    .main-nav ul.nav-menu.active {
        display: flex;
    }
    
    .main-nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    .main-nav ul li a {
        padding: 10px 20px;
        font-size: 16px;
    }

    .main-nav {
        padding: 0 20px;
    }
    
    .logo {
        width: 60px;
    }
    
    .main-header {
        padding-top: 100px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }
    
    .cta-button img {
        max-width: 250px;
    }
    
    .section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }
    
    .services-banner-container img {
        max-width: 100%;
    }

    .features-header h2 {
        font-size: 30px;
    }

    .features-header p {
        font-size: 18px;
    }
    
    .impact-cards-grid {
        margin-top: -60px; /* Reduz a sobreposição em mobile */
        gap: 20px;
    }
    
    .contact-info h2 {
        font-size: 38px;
    }
    
    .contact-form {
        padding: 25px;
    }

    .contact-form-container {
        text-align: left;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-col {
        min-width: 100%;
        margin-bottom: 20px;
    }
}



/* Estilos para as logos no header */
.header-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meta-logo {
    height: 40px;
    width: auto;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .header-logos {
        gap: 10px;
    }
    
    .meta-logo {
        height: 30px;
    }
    
    .logo {
        width: 60px;
    }
}



/* Estilos para o footer com logo MEGA */
.mega-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.mega-logo-footer {
    height: 50px;
    width: auto;
}

.mega-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Responsivo para mobile - logo por cima */
@media (max-width: 768px) {
    .mega-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .mega-logo-footer {
        height: 40px;
    }
}

