:root {
    --blue-bg: #0486D1; /* Azul vibrante do site */
    --dark-blue: #003366;
    --lime-green: #9ccb6b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body, html {
    height: 100%;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer e Edge */    
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

/* --- Melhoria 1: Tipografia Fluida --- */
h1 {
    /* O clamp ajusta o tamanho entre um mínimo, um valor relativo e um máximo */
    font-size: clamp(2rem, 8vw, 3.5rem); 
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blue-bg);
    margin-bottom: 0.5rem;
}

.imgLeft {
    float: left;
    margin-right: 1rem
}

.imgRight {
    float: right;
    margin-left: 1rem
}

.left {
    text-align: left
}

.center {
    text-align: center
}

.right {
    text-align: right
}


.landing-container {
    display: flex;
    min-height: 100vh;
}
 


/* Lado Esquerdo  */
.content-side {
    flex: 0.8;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, var(--dark-blue) 17%, var(--blue-bg) 50%, var(--blue-bg) 55%, var(--dark-blue) 99%, var(--lime-green) 99%, var(--lime-green) 100%);
    color: var(--white);
    padding: clamp(10px, 5%, 60px); /* Padding adaptável */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centraliza em resoluções menores */
    text-align: center;
    position: relative;
    min-height: 100vh;
}
@media (min-width: 992px) {
    .content-side {
        align-items: flex-start;
        text-align: left;
    }
}

/* --- Melhoria 3: Logo Responsivo --- */
.main-logo {
    width: 70%;
    max-width: 450px; /* Impede que o logo fique gigante em ecrãs grandes */
    height: auto;
    margin-bottom: 1rem;
}
 

.tagline {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 3rem;
}


.hero-title {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--lime-green);
    line-height: 1.3;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background-color: var(--white);
    color: var(--blue-bg);
    border: none;
    padding: 18px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: clamp(5px, 10%, 60px); 
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.legal-footer {
    position: absolute;
    bottom: 30px;
    font-size: 0.8rem;
}

.legal-footer a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

/* Lado Direito */
.media-side {
    flex: 1.2;
    background: #000;
    position: relative;
}


.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
}

.social-overlay a {
    color: white;
    font-size: 2.2rem;
    margin-left: 20px;
    transition: opacity 0.3s;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

/*  --- Melhoria 4: Modal para Mobile --- */
.modal-body {
    background: var(--dark-blue);
    width: 95%; /* Quase toda a largura no telemóvel */
    max-width: 500px;
    margin: 20px auto;
    padding: clamp(20px, 5%, 40px);
    border-radius: 15px;
    max-height: 90vh; /* Impede que o modal saia do ecrã */
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer e Edge */  
}


.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 2rem;
    cursor: pointer;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-checkbox, .form-checkbox a{
    bottom: 30px;
    font-size: 0.8rem;
    color: var(--lime-green);
}

.btn-submit {
    width: 100%;
    background: var(--blue-bg);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

 
/* Responsividade Mobile 
@media (max-width: 992px) {
    .landing-container { flex-direction: column; }
    .content-side { padding: 60px 30px; min-height: 100vh; }
    .media-side { display: none; } 
}
*/
/* Responsividade Básica */
@media (max-width: 991px) {
    .landing-container { flex-direction: column; }

    .content-side { 
        height: auto; /* Deixa o conteúdo ditar a altura */
        min-height: 65vh; 
        padding: 10px 20px; /* Padding no topo para o logo não colar no limite */
        justify-content: flex-start; /* Move o conteúdo para o topo */
        
        /* Gradiente suavizado: menos preto/azul escuro e mais azul vibrante */
        background: linear-gradient(180deg, 
            var(--dark-blue) 0%, 
            var(--blue-bg) 40%, 
            var(--dark-blue) 99%,
            var(--lime-green) 99%, 
            var(--lime-green) 100%
        );
    }

    .logo-container {
        margin-top: 0;
        margin-bottom: 10px; /* Espaço entre o logo e o título */
        width: 100%;
    }

    .main-logo {
        width: 80%; /* Ajusta o tamanho do logo no mobile */
        max-width: 350px;
    }

    .media-side { 
        height: 35vh; 
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .legal-footer {
        position: relative; /* No mobile, segue o fluxo do texto em vez de flutuar */
        bottom: 0;
        margin-top: 30px;
    }

    .btn-primary {
        background-color: var(--white);
        color: var(--blue-bg);
        border: none;
        padding: 18px 30px;
        border-radius: 50px;
        font-weight: 700;
        text-transform: uppercase;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        margin: clamp(10px, 10%, 5px); 
    }    
}

/* Tablets e Portáteis Pequenos */
@media (max-width: 991px) {
    .landing-container {
        flex-direction: column;
    }
    
    .main-logo {
        width: 80%; /* Ajusta o tamanho do logo no mobile */
        max-width: 350px;
        margin: 0px;
    }

    .content-side {
        flex: none;
        width: 100%;
        padding: 10px 40px;
    }

    .media-side {
        height: 50vh; /* Dá destaque ao vídeo mas mantém o foco no texto */
    }
}

/* Smartphones */
@media (max-width: 480px) {
    .content-side {
        padding: 10px 20px;
    }
    

    .legal-footer {
        position: static; /* No mobile, o footer flutua menos e segue o fluxo */
        margin-top: 40px;
        font-size: 0.75rem;
    }
}


/* Estilos para o conteúdo minimalista */
.main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 15px;
}

.intro-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 25px;
    max-width: 600px;
}

/* Grelha de 4 colunas muito compacta */
.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.grid-item {
    text-align: center;
}

.grid-item i {
    font-size: 1.2rem;
    color: var(--lime-green);
    margin-bottom: 8px;
}

.grid-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: var(--white);
}

.grid-item p {
    font-size: 0.75rem;
    line-height: 1.2;
    color: rgba(255,255,255,0.8);
}

/* Linha de benefícios horizontal */
.benefits-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 5px;
    padding: 10px;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
}

.benefits-row span {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--lime-green);
}

/* Responsividade: No mobile passa a 2x2 para não esticar o scroll */
@media (max-width: 600px) {
    .compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-row {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    .main-title {
        text-align: center;
    }
}


/* Itens clicáveis */
.clickable-step {
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 10px;
    border-radius: 10px;
}

.clickable-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.clickable-step span {
    font-size: 0.8rem;
    color: var(--lime-green); /* Destaca o "Saber mais" */
    font-weight: normal;
}

/* Design do Mini Pop-up */
.mini-modal {
    display: none;
    position: fixed;
    z-index: 2000; /* Acima de tudo */
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.mini-modal-content {
    background: var(--white);
    color: var(--dark-blue);
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
}

.mini-modal-content h3 {
    color: var(--blue-bg);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mini-modal-content p {
    text-align: justify;
}

.close-info {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}