/*
 * Configurações Base
 * Aplica a fonte Roboto em toda a página.
 */
* {
    font-family: inherit;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-top: 60px; /* Espaço para o menu fixo */
    line-height: 1.6;
    color: #333; /* Cor de texto escura e formal */
    background-color: #f4f4f9; /* Fundo suave */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Títulos */
h1, h2, h3 {
    color: #004a7c; /* Cor principal azul-escuro (profissional) */
    font-weight: 700;
}

/* --- Estilos para o Menu de Navegação Fixo --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a; 
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 0;
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

#main-nav .logo {
    color: white;
    font-size: 1.5em;
    font-weight: 700;
    text-decoration: none;
}

#main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

#main-nav ul li a:hover {
    background-color: #004a7c;
}

/* --- Estilos para os Ícones Material Symbols (Geral) --- */
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    vertical-align: middle; 
    margin-right: 8px;
}

/* --- 1. Estilo da Apresentação (Hero Section) --- */
.hero {
    background-color: #004a7c;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}

.hero .tagline {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 30px;
}

/* --- 2. Estilo da Faixa de Logos de Compatibilidade --- */
.logo-strip {
    padding: 30px 0;
    text-align: center;
    background-color: #f7f7f7;
    border-bottom: 1px solid #eee;
    border-top: 1px solid #eee;
}

.logo-strip h4 {
    font-size: 1em;
    font-weight: 500;
    color: #555;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* NOVO: Estilização para o ícone (i tag) */
.client-logo {
    font-size: 30px; /* Define o tamanho do ícone */
    color: #333; /* Cor inicial */
    opacity: 0.6; /* Deixa-os mais subtis */
    filter: grayscale(100%); /* Torna-os a preto e branco */
    transition: opacity 0.3s, filter 0.3s;
    width: 30px; 
    height: 30px;
}

.client-logo:hover {
    opacity: 1; /* Cor total ao passar o rato */
    filter: none;
    color: #004a7c; /* Cor de destaque da marca ao passar o rato */
}

/* --- 3. Estilo da Secção de Funcionalidades (CARDS) --- */
.features {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff; 
}

.features h2 {
    margin-bottom: 5px;
}

.features .intro-text {
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #555;
}

.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px; 
    flex-wrap: wrap; 
}

.feature-item {
    flex-basis: calc(25% - 22.5px); 
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    background-color: #f7f7f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Efeito de Card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background-color: #e3eff7; 
}

.feature-item h3 {
    color: #004a7c; 
    font-size: 1.2em;
    margin-top: 0;
}

.feature-item h3 .icon-feature {
    color: #007bff;
    font-size: 1.8em;
    margin-right: 0;
    display: block; 
    margin-bottom: 5px;
}

/* --- 4. Estilo da Secção de Compatibilidade de Tecnologia (CARDS) --- */
.tech-stack {
    padding: 40px 0;
    text-align: center;
    background-color: #e3eff7; 
}

.tech-icons-grid {
    display: flex;
    justify-content: center;
    gap: 30px; 
    margin-top: 30px;
    flex-wrap: wrap; 
}

.tech-icon-item {
    text-align: center;
    color: #004a7c;
    flex-basis: 200px; /* Largura fixa para o card */
    padding: 20px;
    background-color: #ffffff; /* Fundo branco para o card */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-icon-item:hover {
    transform: translateY(-5px); /* Efeito de elevação */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon-item h4 {
    margin: 10px 0 0 0;
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
}

.tech-icon-item .icon-tech {
    font-size: 3.5em;
    display: block;
    margin: 0 auto; /* Centraliza o ícone */
    color: #007bff; /* Azul de destaque */
}


/* --- 5. Estilo da Tabela de Comparação --- */
.pricing-plan {
    padding: 40px 0;
    text-align: center;
}

.comparison-table-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.comparison-table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: center;
}

.comparison-table-container table thead th {
    font-size: 1.1em;
    text-transform: uppercase;
}

.comparison-table-container table th, 
.comparison-table-container table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

/* Colunas dos Planos */
.starter-col, .pro-col {
    background-color: #f7f7f7;
    transition: background-color 0.3s;
}

/* Destaque para a coluna do plano selecionado (via JS) */
.selected-plan {
    background-color: #e3eff7 !important; 
    font-weight: 700;
    border: 1px solid #004a7c;
}

.price-cell {
    font-size: 1.2em;
    padding: 15px 10px;
    color: #cc0000;
}


/* --- 6. Estilo do Formulário de Encomenda com Toggles Duplos --- */
.order-form-section {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Contém ambos os toggles */
.price-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    border-radius: 20px;
    max-width: 450px;
    padding: 5px;
}

/* Estilo para o Toggle de Faturação (Mensal/Anual) */
.billing-selector-container {
    background-color: #e6e6e6;
}

/* Estilo para o Toggle de Plano (Starter/Pro) - MAIS DESTAQUE */
.plan-selector-container {
    background-color: transparent;
    border: 1px solid #e6e6e6;
    margin-top: 30px;
}

.price-label {
    font-weight: 700;
    color: #555;
    margin: 0 10px 0 0;
    font-size: 0.9em;
}

.plan-toggle, .billing-toggle {
    background-color: transparent;
    border: none;
    color: #555;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1em;
}

.plan-toggle.active, .billing-toggle.active {
    background-color: #004a7c;
    color: white;
}

/* Estilos para o Preço Display */
.price-display {
    text-align: center;
    margin: 15px 0 5px 0;
    font-size: 1.2em;
    font-weight: 400;
}

.price-old {
    color: #888;
    text-decoration: line-through;
    margin-right: 10px;
}

.price-new {
    color: #cc0000;
    font-size: 1.5em;
    font-weight: 700;
}

.small-text {
    text-align: center;
    font-size: 0.8em;
    color: #555;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #333;
}

/* Estilo para Validação */
.error-message {
    color: #dc3545;
    font-size: 0.85em;
    display: block;
    margin-top: 5px;
}

.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group input[type="text"],
.form-group input[type="email"],
.custom-form-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: #007bff; 
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* --- Estilos para o Ícone de Carregamento AJAX --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-icon {
    font-size: 1.2em !important;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* --- 7. Estilo da Secção de Plano Personalizado (CTA) --- */
.custom-plan-cta {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff; 
}

/* --- 8. Estilos para a Secção de Perguntas Frequentes (FAQ) --- */
.faq {
    padding: 60px 0;
    background-color: #f4f4f9; 
    text-align: center;
}

.faq-question {
    background-color: #ffffff; 
    color: #004a7c;
    cursor: pointer;
    padding: 18px 25px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 25px;
    background-color: #f9f9f9;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

/* --- 9. Rodapé --- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9em;
}

/* --- 10. Responsividade (Media Queries) --- */
@media (max-width: 900px) {
    .feature-item {
        flex-basis: calc(50% - 15px); 
        margin-bottom: 30px;
    }
}

@media (max-width: 600px) {
    .client-logo {
        height: 25px;
        margin: 10px 0;
    }
    
    .feature-item {
        flex-basis: 100%; 
    }
    .container {
        width: 95%;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    
    #main-nav ul {
        display: none;
    }
    #main-nav .container {
        justify-content: center;
    }
    body {
        padding-top: 40px;
    }

    .plan-selector-container, .billing-selector-container {
        flex-direction: column;
        align-items: stretch;
    }
    .price-label {
        margin: 5px 0;
        text-align: center;
    }
    .plan-toggle, .billing-toggle {
        margin: 5px 0;
    }
    .comparison-table-container {
        overflow-x: auto;
    }
    .comparison-table-container table {
        min-width: 550px;
    }
}
