/*
Theme Name: ThetiCore
Theme URI: https://theticore.com
Author: [Seu Nome ou Nome da Agência]
Author URI: https://seusite.com
Description: Tema 'Em Breve' para o lançamento da plataforma ThetiCore, com captura de leads.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: landing-page, coming-soon, one-column, custom-menu
Text Domain: theticore
*/

/* CSS Reset e Configuração Básica */
:root {
    --primary-color: #0b1933; /* Cor azul marinho do logo */
    --background-color: #f7f8fa;
    --text-color: #333333;
    --light-text-color: #6c757d;
    --success-color: #28a745;
    --error-color: #dc3545;
    --border-color: #ced4da;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    /* --- ALTERAÇÕES AQUI --- */
    background-color: var(--background-color); /* Cor de fallback */
    /* Padrão de fundo gerado com SVG para leveza e performance */
    /* background-image: url("images/theticore-bg-500.png"); */
    background-attachment: fixed; /* O fundo fica fixo enquanto a página rola */
}

/* Container Principal */
.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Logo */
.logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 40px;
}

/* Mensagem Principal */
.headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    max-width: 650px;
}

.sub-headline {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
    max-width: 600px;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

/* Container do Formulário e Mensagens */
#form-wrapper {
    max-width: 500px;
    width: 100%;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

/* Estilos do Formulário */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 25, 51, 0.1);
}

/* Botão de Envio */
.submit-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-button:hover {
    background-color: #1a3b70;
}

/* Indicador de Loading (Spinner) */
#loading {
    display: none;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensagem de Sucesso */
#success-message {
    display: none;
    font-size: 1.3rem;
    color: var(--success-color);
    font-weight: 600;
}

/* Mensagens de Erro */
.error-text {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* Estilos do Modal */
.modal {
    display: none; /* Inicia oculto */
    position: fixed; /* Fica sobre todo o conteúdo */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* Fundo preto semi-transparente */
    animation: fadeIn 0.3s;
}
.modal-content {
    background-color: #fff;
    margin: 10vh auto; /* 10% do topo e centralizado */
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
    line-height: 1.7;
    padding-right: 20px; /* Espaço para a barra de rolagem */
}

.modal-body h2 { color: var(--primary-color); }
.modal-body h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: black;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Rodapé */
.footer {
    flex-shrink: 0; /* Impede que o rodapé encolha */
    padding: 20px;
    text-align: center;
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
}
.footer-links {
    margin: 0 0 10px 0;
    padding: 0;
    list-style: none;
}
.footer-links li {
    display: inline-block;
    margin: 0 15px;
}
.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.footer-links a:hover {
    text-decoration: underline;
}
.copyright {
    color: var(--light-text-color);
    font-size: 0.9rem;
}

/* Ajustes para telas menores */
@media (max-width: 600px) {
    .headline { font-size: 1.5rem; }
    .sub-headline { font-size: 1rem; }
    #form-wrapper { padding: 20px; }
    .modal-content { width: 95%; margin: 5vh auto; padding: 20px; }
}
