/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    width: 100%;
    overflow-x: hidden;
    margin: auto;
}

/* Crie esta classe para os outros conteúdos */
.container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =====================
   NAVBAR
===================== */
.navbar {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    position: relative;
}

.logo img {
    height: 70px;
}

/* LINKS CENTRALIZADOS */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    position: relative;
    padding: 6px 0;
}

/* HOVER ELEGANTE */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #4aa3df;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #0b3c5d;
}

/* BOTÃO MENU MOBILE (NOVO) */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0b3c5d;
}

/* =====================
   HERO
===================== */


.hero {
    position: relative;
    width: '100vw';
    height: 420px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* SLIDES */
.hero-slides {
    position: absolute;
    inset: 0;
    width: '100vw';
}







.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    
}

/* overlay escuro */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 30, 60, 0.75);
}

/* slide ativo */
.slide.active {
    opacity: 1;
}

/* CONTEÚDO */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}



/* =====================
   CONTENT
===================== */
.content {
    padding: 50px 3px;
    max-width: 1100px;
    margin: 0 auto;
}

.content h3 {
    margin-bottom: 15px;
    color: #0b3c5d;
}


/* SIMULADOR */
.simulator-section {
    padding: 60px 40px;
    background-color: #fcfcfc;
}

.simulator-container {
    max-width: 1100px;
    margin: 0 auto;
}

.sim-title {
    color: #0b3c5d;
    margin-bottom: 30px;
    font-size: 24px;
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.input-group {
    margin-bottom: 40px;
}

.input-group label {
    display: block;
    font-weight: bold;
    color: #0b3c5d;
    margin-bottom: 15px;
}

/* Estilo do Slider Azul */
input[type=range] {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4aa3df;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

.current-val {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

/* Card de Resultado */
.simulator-result {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.simulator-result h3 {
    color: #0b3c5d;
    border-bottom: 2px solid #4aa3df;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.result-item strong {
    color: #4aa3df;
}

.disclaimer {
    font-size: 11px;
    color: #999;
    margin-top: 20px;
    line-height: 1.4;
}

.btn-simular {
    width: 100%;
    background: #4aa3df;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-simular:hover {
    background: #0b3c5d;
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .simulator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =====================
   INFO SECTION (3 COLUNAS)
===================== */
.info-section {
    padding: 70px 40px;
    background: #fff;
}

.info-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

.info-box {
    flex: 1;
}

.info-box h3 {
    font-size: 18px;
    color: #0b3c5d;
    margin-bottom: 20px;
    line-height: 1.4;
}

.info-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

.info-box a {
    color: #4aa3df;
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}


.doc-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.doc-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

.doc-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4aa3df;
    font-weight: bold;
}




/* =====================
   FOOTER
===================== */

.site-footer { 
    background: #f4f4f4; 
    padding: 40px 20px; 
    font-size: 13px; 
}

.footer-top { 
    border-bottom: 1px solid #ddd; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
}
.footer-main { 
    display: flex; 
    justify-content: space-between; 
}


/* ABOUT SESSION */

/* CONTAINER DA SEÇÃO */
.about-section {
    padding: 80px 20px;
    background: #ffffff;
}

/* GRID RESPONSIVO */
.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Padrão Mobile: 1 coluna */
    gap: 50px;
    align-items: center;
}

/* IMAGEM E DESIGN VISUAL */
.about-visual .image-wrapper {
    position: relative;
    padding-right: 20px;
}

.about-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: block;
}

.experience-card {
    position: absolute;
    bottom: -20px;
    right: -25px;
    background: #4aa3df;
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 140px;
    box-shadow: 0 10px 20px rgba(74, 163, 223, 0.4);
}

.experience-card .years {
    font-size: 30px;
    font-weight: bold;
    display: block;
}

/* TEXTO E TIPOGRAFIA */
.top-label {
    color: #4aa3df;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}

.about-text {
    margin: 0px 10px;
}

.about-text h2 {
    color: #0b3c5d;
    font-size: 32px;
    margin: 15px 0 25px;
    line-height: 1.2;
}

.about-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* MINI ESTATÍSTICAS */
.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 35px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.stat-item strong {
    display: block;
    color: #0b3c5d;
    font-size: 20px;
}

.stat-item span {
    font-size: 12px;
    color: #888;
}

/* CONFIGURAÇÃO PARA DESKTOP (Ecrãs maiores que 992px) */
@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1fr; /* Divide em 2 colunas */
    }

    .about-text h2 {
        font-size: 42px;
    }

}



/* =====================
   RESPONSIVO + MENU MOBILE
===================== */
@media (max-width: 768px) {

    /* NAVBAR */
    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        display: none;
        border-top: 1px solid #eee;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        padding: 15px 0;
        display: block;
    }

    /* HERO */
    .hero h1 {
        font-size: 42px;
    }

    /* CONTENT */
    .content {
        padding: 40px 20px;
    }

    /* INFO */
    .info-container {
        flex-direction: column;
        gap: 40px;
    }

    /* FOOTER */
    /* .footer-main {
        flex-direction: column;
    }

    .footer-text {
        max-width: 100%;
    }

    .footer-logos {
        justify-content: center;
        margin-top: 20px;
    } */


    /* Estrutura Base (Desktop) */
    .footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
        gap: 40px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        align-items: start;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .footer-location {
        display: block !important; /* Força a exibição */
        width: 100%;
    }

    .map-box {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        background: #f0f0f0; /* Fundo cinza caso o mapa demore a carregar */
        line-height: 0; /* Remove espaços vazios abaixo do iframe */
    }

    /* Ajuste para Telemóveis (Ecrãs menores que 768px) */
    @media (max-width: 768px) {
        .footer-main {
            grid-template-columns: 1fr; /* Muda para 1 coluna apenas */
            text-align: center;
        }

        .footer-logos {
            display: flex;
            justify-content: center;
        }
    }
    /* Ajuste para Telemóveis */
    @media (max-width: 768px) {
        .footer-main {
            flex-direction: column;
            text-align: center;
        }
        
        .footer-location {
            width: 100%;
            max-width: 100%;
        }
        
        .footer-logos {
            justify-content: center;
            margin-bottom: 20px;
        }
    }


    /* ABOUT SESSION */
    .experience-card {
        bottom: 250px;
        right: 90px;
        padding: 20px;
        border-radius: 15px;
        min-width: 140px;
        box-shadow: 0 10px 20px rgba(74, 163, 223, 0.4);
    }
}


/* Hero específico para páginas internas */
.hero-page {
    height: 450px; /* Mais curto que o da index */

    /* background: linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 30, 60, 0.8)), 
                url('assets/logo.jpg') center/cover; */

    background: linear-gradient(rgba(0, 30, 60, 0.6), rgba(0, 30, 60, 0.6)), 
            url('assets/logo.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* Destaque para o link ativo no menu */
.nav-links a.active {
    color: #4aa3df;
}
.nav-links a.active::after {
    width: 100%;
}


/* Layout de Contactos */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info menor, Form maior */
    gap: 50px;
    padding: 60px 0;
}

.contact-info > p {
    padding-bottom: 10px;
}

.contact-info h3, .contact-form-container h3 {
    color: #0b3c5d;
    margin-bottom: 25px;
    font-size: 24px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 24px;
    background: #f0f7fd;
    padding: 10px;
    border-radius: 50%;
}

/* Formulário */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.hero-internal {
    height: 300px !important;
    background: linear-gradient(rgba(11, 60, 93, 0.7), rgba(11, 60, 93, 0.7)), url('assets/slides/slide3.jpg') center/cover !important;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* Products BAR */

/* Top Bar de Anúncios */
.top-announcement {
    background: #4aa3df;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
}

/* Hero de Produtos */
.products-hero {
    background: #f4f7f9;
    padding: 0;
    overflow: hidden;
}

.hero-grid-prod {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
}

.hero-blue-box {
    background: #007cc3; /* Azul vibrante da imagem */
    color: white;
    padding: 50px;
    z-index: 2;
    margin-right: -10%; /* Sobreposição na imagem */
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
}

.hero-blue-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-image-prod img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.category-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Lista de Produtos Estilizada */
.category-header {
    border-left: 4px solid #007cc3;
    padding-left: 20px;
    margin: 60px 0 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #007cc3;
}

.product-card .arrow {
    color: #007cc3;
    font-weight: bold;
    font-size: 20px;
}

.product-info h4 {
    color: #0b3c5d;
    margin-bottom: 10px;
}

.product-info a {
    color: #007cc3;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-grid-prod {
        grid-template-columns: 1fr;
    }
    .hero-blue-box {
        margin-right: 0;
        padding: 30px;
    }
}
