/* ========================================= */
/* --- Variaveis CSS e Reset Basico --- */
/* ========================================= */
:root {
    /* Cores da logo */
    --primary-color: #007bff; /* Azul vibrante */
    --primary-dark: #0056b3; /* Azul mais escuro para hover */
    --secondary-color: #6c757d; /* Cinza para textos e sub-titulos */
    --white-color: #ffffff;
    --light-gray-color: #f8f9fa;
    --dark-gray-color: #343a40;
}

/* Reset básico para garantir consistência entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark-gray-color);
    line-height: 1.6;
    background-color: var(--light-gray-color);
}

/* ========================================= */
/* --- Tipografia e Componentes Reutilizaveis --- */
/* ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-gray-color);
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

/* ========================================= */
/* --- Layouts com Flexbox e Grid --- */
/* ========================================= */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr; /* Padrão mobile-first */
    gap: 20px;
}

/* Media Queries para adaptar o layout */
@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================= */
/* --- Seções Específicas do Site --- */
/* ========================================= */
/* Header */
.main-header {
    background-color: var(--white-color);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo img {
    height: 50px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--dark-gray-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Banner */
.hero-banner {
    text-align: center;
    padding: 80px 20px;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
}

.hero-banner h1 {
    font-size: 2.5em;
    color: var(--white-color);
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Seção de Planos */
.plans-section {
    padding: 60px 20px;
    text-align: center;
}

.plans-section h2 {
    font-size: 2em;
    margin-bottom: 40px;
}

.plan-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.plan-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.plan-card .price {
    font-size: 2em;
    font-weight: bold;
    color: var(--dark-gray-color);
    margin: 15px 0;
}

/* Seção de Mapa */
.map-section {
    padding: 60px 20px;
    text-align: center;
}

#map {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Footer */
.main-footer {
    background-color: var(--dark-gray-color);
    color: var(--white-color);
    padding: 40px 20px;
    text-align: center;
}

/* Seção de Contato */
.contact-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--white-color);
}

.contact-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}

.contact-form button {
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
}

/* Badge para planos populares */
.plan-card .badge {
    display: inline-block;
    background-color: #ffc107; /* Amarelo para destaque */
    color: #343a40;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Estilo para a descrição do plano */
.plan-card .description {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    min-height: 80px; /* Garante altura mínima para descrições */
}

/* Ajustes responsivos */
@media (min-width: 768px) {
    .hero-banner h1 {
        font-size: 3.5em;
    }
    .hero-banner p {
        font-size: 1.5em;
    }
    .plans-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Layout flexível para planos */
    }
}

/* Estilos para o Modal de Pré-Cadastro */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-grid .message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.form-grid .message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-grid .message.error {
    background-color: #f8d7da;
    color: #721c24;
}

.terms-section {
    margin-top: 20px;
}

.terms-section label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ícone do Chat */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0088cc; /* Cor do Telegram */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon img {
    width: 35px;
    height: 35px;
}

/* Modal do Chat */
.chat-modal {
    display: none; /* Inicia oculto */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.chat-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    height: 60%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.chat-header {
    background-color: #0088cc;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
}

.chat-header h4 {
    margin: 0;
}

.chat-header .close-btn {
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f1f1f1;
}

/* Estilo das mensagens */
.chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background-color: #0088cc;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-footer {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.chat-footer input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 1em;
}

.chat-footer button {
    background-color: #0088cc;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Footer Styles */
.main-footer .footer-content {
    display: flex; /* Habilita o Flexbox */
    flex-direction: column; /* Em telas pequenas, empilha */
    align-items: center; /* Centraliza verticalmente */
    justify-content: space-between; /* Espaço entre os itens */
    padding: 20px 0;
    text-align: center; /* Centraliza o texto dentro do footer-info */
}

@media (min-width: 768px) { /* Em telas maiores, coloca lado a lado */
    .main-footer .footer-content {
        flex-direction: row;
        text-align: left; /* Volta o texto para a esquerda */
    }
}

.main-footer .footer-info {
    margin-bottom: 15px; /* Espaço entre info e ícones em telas pequenas */
}

@media (min-width: 768px) {
    .main-footer .footer-info {
        margin-bottom: 0;
    }
}

.social-icons {
    display: flex;
    gap: 15px; /* Espaço entre os ícones */
}

.social-icons a {
    color: #fff; /* Cor dos ícones (ex: branco) */
    font-size: 28px; /* Tamanho dos ícones */
    transition: color 0.3s ease; /* Transição suave na cor */
}

.social-icons a:hover {
    color: #007bff; /* Cor ao passar o mouse (ex: azul primário) */
}

/* Cores específicas para os ícones, opcional */
.social-icons .fa-telegram-plane:hover {
    color: #0088cc; /* Cor do Telegram */
}

.social-icons .fa-whatsapp:hover {
    color: #25D366; /* Cor do WhatsApp */
}

.social-icons .fa-instagram:hover {
    color: #E1306C; /* Cor do Instagram */
}