/* Configurações básicas */
:root {
	--primary-color: #000000;
	--secondary-color: #ffd700;
	--text-color: #ffffff;
	--background-color: #1a1a1a;
	--card-background: #2e2e2e;
	--light-gray: #b0b0b0;
	--font-family: 'Montserrat', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: var(--font-family);
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
}

html {
	scroll-behavior: smooth;
}

/* Cabeçalho e Navegação */
.main-header {
	background-color: rgba(0, 0, 0, 0.8);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 1rem 0;
	backdrop-filter: blur(5px); /* Efeito de vidro para navegadores modernos */
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.logo {
	height: 60px;
}

.nav-links {
	list-style: none;
	display: flex;
}

.nav-links li {
	margin-left: 2rem;
}

.nav-links a {
	color: var(--text-color);
	text-decoration: none;
	font-weight: 700;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--secondary-color);
}

/* Seções e Conteúdo */
.content-section {
	padding: 6rem 2rem;
	max-width: 1200px;
	margin: 80px auto 0 auto; /* Adicionado margin-top para não ficar atrás do header fixo */
	text-align: center;
}

h1, h2 {
	color: var(--secondary-color);
	margin-bottom: 1rem;
}

h3 {
	color: var(--text-color);
	margin-bottom: 0.5rem;
}

p {
	font-size: 1.1rem;
	color: var(--light-gray);
}

/* Banner */
.hero-banner {
	background: url(banner1.jpg) no-repeat center center/cover;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: var(--text-color);
	padding: 0 2rem;
	background-attachment: fixed;
	margin-top: 0; /* Banner não precisa de margem */
}

.hero-banner h1 {
	font-size: 4rem;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-banner p {
	font-size: 1.5rem;
	max-width: 600px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn {
	display: inline-block;
	background-color: var(--secondary-color);
	color: var(--primary-color);
	padding: 0.8rem 2.5rem;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 700;
	margin-top: 2rem;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
	background-color: #e5c100;
	transform: translateY(-3px);
}

/* Flexbox para seções */
.container-flex {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4rem;
	text-align: left;
	flex-wrap: wrap; /* Melhora responsividade */
}

.container-flex.reverse-order {
	flex-direction: row-reverse;
}

.content-text {
	flex: 1;
	min-width: 300px; /* Melhora responsividade */
}

.content-image {
	flex: 1;
	min-width: 300px; /* Melhora responsividade */
}

.content-image img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Seção de Aulas */
.aulas-section {
	background-color: var(--primary-color); /* Alterado para combinar com o rodapé */
}

.aulas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.aula-item {
	background-color: var(--card-background); /* Alterado para o fundo de card */
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
	transition: transform 0.3s ease;
}

.aula-item:hover {
	transform: translateY(-10px);
}

.icon-aula {
	font-size: 3rem;
	color: var(--secondary-color);
	margin-bottom: 1rem;
}

/* Seção de Horários */
.grade-table-container {
	overflow-x: auto;
}

.grade-section table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 2rem;
	background-color: var(--card-background);
	border-radius: 8px;
	overflow: hidden;
}

.grade-section th, .grade-section td {
	padding: 1.2rem;
	border: 1px solid var(--primary-color);
}

.grade-section thead {
	background-color: var(--secondary-color);
	color: var(--primary-color);
	font-weight: bold;
}

/* --- Seção O Espaço --- */
.espaco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.espaco-grid a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-decoration: none;
}

.espaco-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
    display: block;
    transition: transform 0.4s ease;
}

.espaco-grid a:hover img {
    transform: scale(1.1); /* Efeito de zoom sutil no hover */
}

/* --- ESTILO PARA OS BOTÕES DE CONTATO (ADAPTADO AO TEMA) --- */
.contact-button {
	display: block;
	background-color: var(--card-background);
	color: var(--light-gray);
	padding: 15px 20px;
	margin: 1rem 0;
	border-radius: 8px;
	text-decoration: none;
	border: 1px solid #444;
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.contact-button:hover {
	background-color: #444;
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.3);
	color: var(--text-color);
}

.contact-button i {
	font-size: 1.5em;
	margin-right: 15px;
	min-width: 25px;
	text-align: center;
}

.contact-button span strong {
	color: var(--text-color); /* Destaca o label do botão */
}

.whatsapp-btn i { color: #25D366; }
.email-btn i { color: #EA4335; }
.maps-btn i { color: #4285F4; }
/* --- FIM DO ESTILO DOS BOTÕES DE CONTATO --- */


/* Formulário de Contato */
.contact-form {
	flex: 1;
	text-align: left;
	min-width: 300px;
}

.contact-form form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 1rem;
	border: 1px solid #444;
	border-radius: 5px;
	background-color: var(--card-background);
	color: var(--text-color);
	font-family: var(--font-family);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	background-color: #444;
	border-color: var(--secondary-color);
}

.contact-form textarea {
	resize: vertical;
	min-height: 120px;
}

#form-status {
	margin-top: 1rem;
	font-weight: bold;
}

/* Rodapé */
footer {
	background-color: var(--primary-color);
	padding: 2rem;
	text-align: center;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.footer-container p {
	flex-grow: 1;
	text-align: left;
}

.social-media a {
	color: var(--light-gray);
	font-size: 1.5rem;
	margin-left: 1rem;
	transition: color 0.3s ease;
}

.social-media a:hover {
	color: var(--secondary-color);
}

/* --- BOTÃO DE WHATSAPP NO MENU PRINCIPAL --- */
.nav-whatsapp-link {
    background-color: #25D366; /* Cor do WhatsApp */
    color: var(--text-color) !important; /* !important para sobrescrever outras regras */
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-whatsapp-link:hover {
    background-color: #128C7E;
    color: var(--text-color) !important;
    transform: scale(1.05);
}

.nav-whatsapp-link i {
    margin-right: 8px;
}

/* --- ESTILOS DO MENU RESPONSIVO --- */

/* Botão Hambúrguer - inicialmente escondido em telas grandes */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100; /* Para ficar acima de outros elementos */
}

/* Media Query: Aplica estes estilos quando a tela for menor que 850px */
@media (max-width: 850px) {
    /* Exibe o botão hambúrguer */
    .menu-toggle {
        display: block;
    }

    /* Esconde o menu de navegação e o prepara para a animação */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%; /* Largura do menu lateral */
        max-width: 300px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%); /* Começa fora da tela */
        transition: transform 0.3s ease-in-out;
    }

    /* Classe 'active' que será adicionada via JavaScript para mostrar o menu */
    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin-left: 0; /* Remove a margem lateral dos itens */
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
    }
    
    .nav-whatsapp-link {
        padding: 1rem; /* Ajusta o padding para ser consistente */
    }
}