/* --- 1. ESTILOS GERAIS E TIPOGRAFIA --- */
:root {
    --cor-principal: #007bff; 
    --cor-secundaria: #0056b3;
    --cor-fundo: #f4f7f6; 
    --cor-texto: #333;
    --cor-branco: #fff;
    --cor-destaque-amarelo: #ffc107;
    --cor-destaque-amarelo-hover: #e0a800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--cor-secundaria);
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.2em; 
    text-align: center;
    margin-bottom: 1em; 
}

h3 {
    font-size: 1.6em; 
    margin-bottom: 0.6em; 
}

p {
    margin-bottom: 0.8em; 
}

/* --- 2. CABEÇALHO (HEADER) --- */
header {
    background-color: var(--cor-fundo); 
    padding: 0.3em 0; 
    box-shadow: none; 
}

header .container {
    display: flex;
    justify-content: center; 
    align-items: center;
}

header img.logo {
    max-width: 195px; 
    height: auto;
    background-color: transparent; 
}

/* --- 3. SEÇÕES DE CONTEÚDO --- */
section {
    padding: 40px 0; 
    margin-bottom: 10px; 
}

/* Hero/Destaque */
#hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('ev-hero-background.png') no-repeat center center/cover; 
    color: var(--cor-branco);
    text-align: center;
    padding: 80px 0; 
    border-radius: 8px;
    margin-top: 15px; 
    min-height: 350px; 
}

#hero h1 { 
    font-size: 3em; 
    margin-bottom: 0.2em;
    color: var(--cor-branco);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#hero p {
    font-size: 1.4em; 
    margin-bottom: 1.5em; 
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn-cta {
    background-color: var(--cor-destaque-amarelo);
    color: var(--cor-texto);
    padding: 12px 30px; 
    text-decoration: none;
    font-size: 1.2em; 
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-cta:hover {
    background-color: var(--cor-destaque-amarelo-hover);
    transform: translateY(-2px);
}

/* Tabela de Autonomia (Cartões Responsivos) */
#autonomia {
    background-color: var(--cor-branco);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); 
    padding: 30px; 
    margin-bottom: 20px; 
}

#autonomia p {
    text-align: center;
    font-size: 1em; 
    margin-bottom: 1.5em; 
}

/* Estilos para a Galeria de Imagens Técnicas */
.image-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2em;
    flex-wrap: wrap; 
}

.image-gallery img {
    max-width: 100%;
    width: 48%; 
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* NOVOS ESTILOS PARA CARTÕES DE AUTONOMIA (RESPONSIVO) */
.autonomy-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap; 
    justify-content: center;
}

.autonomy-cards .card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    flex: 1; 
    min-width: 280px; 
    text-align: center;
}

.autonomy-cards .card h3 {
    color: var(--cor-secundaria);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.autonomy-cards .card .original {
    color: #555;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.autonomy-cards .card .upgrade {
    font-weight: bold;
    color: var(--cor-principal); 
    font-size: 1.2em;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

blockquote {
    border-left: 5px solid var(--cor-destaque-amarelo);
    padding-left: 20px;
    margin: 20px auto; 
    font-style: italic;
    font-size: 1.05em; 
    color: #555;
    max-width: 800px;
    text-align: left;
}


/* --- 4. FORMULÁRIO DE CONTACTO --- */
#contacto {
    background-color: var(--cor-branco);
    padding: 40px; 
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-top: 20px; 
    margin-bottom: 40px; 
}

#contacto p {
    text-align: center;
    font-size: 1em; 
    margin-bottom: 1.5em; 
}

.location-info { 
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--cor-secundaria);
}

.location-info i {
    margin-right: 5px;
    color: var(--cor-principal);
}

.highlight-location { 
    font-weight: bold;
    font-size: 1.2em; 
    color: var(--cor-secundaria);
}

.form-group {
    margin-bottom: 15px; 
}

.form-group label {
    display: block;
    margin-bottom: 6px; 
    font-weight: bold;
    color: var(--cor-secundaria);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px; 
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em; 
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px; 
}

.submit-btn {
    background-color: var(--cor-principal);
    color: var(--cor-branco);
    border: none;
    padding: 12px 25px; 
    cursor: pointer;
    font-size: 1.1em; 
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-btn:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-2px);
}

#form-message {
    margin-top: 15px; 
    padding: 12px; 
    border-radius: 6px;
    display: none;
    text-align: center;
    font-weight: bold;
}

#form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- 5. RODAPÉ (FOOTER) --- */
footer {
    background-color: var(--cor-secundaria);
    color: var(--cor-branco);
    text-align: center;
    padding: 20px 0; 
    margin-top: 20px; 
    font-size: 0.9em;
}

/* --- 6. MEDIA QUERIES (RESPONSIVIDADE) --- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column; 
        align-items: center;
        gap: 5px; 
    }
    header img.logo {
        max-width: 150px; 
    }
    #hero {
        padding: 40px 0;
        min-height: 300px;
    }
    #autonomia, #contacto {
        padding: 20px;
    }
    .image-gallery img {
        width: 100%;
    }
}
@media (max-width: 650px) {
    .autonomy-cards .card {
        width: 100%;
        margin-bottom: 15px;
    }
}