/* =========================================
   VARIÁVEIS DE COR E BASE
   ========================================= */
:root {
    --accent-color: #E4C7A7; 
    --accent-dark: #CFA87D;  
    --primary-dark: #1A120E; 
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F9FA;
    --text-main: #333333;
    --text-muted: #666666;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light-gray);
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary-dark); }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 4rem 0; }

/* Botões */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border: none; padding: 12px 25px; border-radius: 5px;
    font-weight: 600; cursor: pointer; transition: 0.3s;
    display: inline-block; text-align: center; font-size: 1rem;
}
.btn-primary:hover { background-color: var(--accent-dark); }
.btn-primary:disabled { background-color: #ccc; cursor: not-allowed; }

/* =========================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================= */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo img { height: 60px; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-dark); }

/* =========================================
   BANNER DA PÁGINA
   ========================================= */
.page-banner {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 5px solid var(--accent-color);
}
.page-banner h1 { color: var(--accent-color); font-size: 3rem; margin-bottom: 1rem; }
.page-banner p { font-size: 1.2rem; max-width: 600px; margin: 0 auto; opacity: 0.9; }

/* =========================================
   LAYOUT PRINCIPAL
   ========================================= */
.layout-wrapper {
    display: grid;
    /* Divide a tela meio a meio em telas grandes */
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.1rem; }

/* =========================================
   GRADE DE HORÁRIOS (CARDS)
   ========================================= */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 coluna por padrão, os cards preenchem o espaço */
    gap: 1.5rem;
}

.class-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--accent-color);
    transition: transform 0.2s;
}
.class-card:hover { transform: translateY(-3px); }

/* Se a turma estiver lotada */
.class-card.full {
    border-left-color: var(--danger-color);
    opacity: 0.8;
}

.class-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem;
}
.class-level {
    font-weight: 600; font-size: 0.9rem; padding: 3px 10px;
    background: var(--bg-light-gray); border-radius: 20px; color: var(--primary-dark);
}
.class-spots { font-size: 0.85rem; font-weight: 600; color: var(--success-color); }
.class-spots.full-text { color: var(--danger-color); }

.class-time h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.class-time p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.class-instructor { font-size: 0.9rem; color: #555; }

/* =========================================
   FORMULÁRIO DE MATRÍCULA
   ========================================= */
.registration-section {
    background: var(--bg-white);
    padding: 2.5rem; border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.registration-section h2 { margin-bottom: 0.5rem; font-size: 2rem; }

.registration-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 600; font-size: 0.95rem; color: var(--primary-dark); }

.form-group input, .form-group select {
    padding: 12px 15px; border: 1px solid #ccc; border-radius: 5px;
    font-family: 'Inter', sans-serif; font-size: 1rem; transition: border-color 0.3s;
    background-color: #fff;
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--accent-dark);
    box-shadow: 0 0 0 2px rgba(228, 199, 167, 0.3);
}

.btn-submit { width: 100%; margin-top: 1rem; font-size: 1.1rem; }

.success-message {
    background-color: #e6f4ea; border: 1px solid var(--success-color);
    color: #1e7e34; padding: 2rem; border-radius: 8px; text-align: center;
}
.success-message h3 { color: #1e7e34; margin-bottom: 0.5rem; }

/* Telas de Loading */
.loading-container { text-align: center; padding: 3rem 0; }
.spinner {
    width: 40px; height: 40px; border: 4px solid #e0e0e0;
    border-top: 4px solid var(--accent-color); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   RODAPÉ E RESPONSIVIDADE
   ========================================= */
footer { background-color: #111; color: #fff; padding: 2rem 0; text-align: center; }

@media (min-width: 1025px) {
    .nav-links { display: flex !important; flex-direction: row !important; position: relative !important; background-color: transparent !important; box-shadow: none !important; padding: 0 !important; }
}
@media (max-width: 900px) {
    .layout-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .page-banner h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; } .mobile-menu-icon { display: block; }
    .form-row { grid-template-columns: 1fr; } /* Quebra colunas do form no mobile */
    .registration-section { padding: 1.5rem; }
}

/* BOTÃO FLUTUANTE DA MARCA - ADICIONAR EM TODAS AS PAGINAS */
.floating-brand {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color: #FFFFFF; /* Cor de fundo branca para destacar a logo */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #E4C7A7; /* Cor dourada da AXJPG */
    text-decoration: none; /* Remove sublinhado do link */
}

.floating-brand img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.floating-brand:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Balão de texto (Tooltip) */
.floating-brand .tooltip {
    position: absolute;
    right: 80px;
    background-color: #1A120E;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    font-weight: 500;
}

.floating-brand:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animação de pulsação */
@keyframes pulse-brand {
    0% { box-shadow: 0 0 0 0 rgba(228, 199, 167, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(228, 199, 167, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 199, 167, 0); }
}

.floating-brand {
    animation: pulse-brand 2s infinite;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .floating-brand {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    .floating-brand .tooltip {
        display: none;
    }
}

/* =========================================
   RODAPÉ PERSONALIZADO CORETEK (COM LOGO)
   ========================================= */
footer {
    background-color: #111;
    color: #fff;
    padding: 2.5rem 0;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    color: #888;
    font-size: 0.85rem;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinha tudo à direita no PC */
}

.footer-branding span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 8px;
}

.coretek-wrapper {
    display: flex;
    align-items: center; /* Alinha logo e texto no meio */
    gap: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.coretek-logo {
    height: 35px; /* Ajuste o tamanho da sua logo aqui */
    width: auto;
    filter: grayscale(1) brightness(1.5); /* Deixa a logo em tons de branco/cinza para o footer */
    transition: 0.3s;
}

.coretek-wrapper:hover .coretek-logo {
    filter: grayscale(0) brightness(1); /* Volta a cor original no hover */
}

.coretek-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.coretek-text strong {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.coretek-dot {
    color: var(--accent-color);
}

.coretek-text small {
    font-size: 0.55rem;
    color: var(--accent-dark);
    text-align: right;
    letter-spacing: 1px;
    margin-top: 2px;
}

.coretek-wrapper:hover {
    transform: translateY(-3px);
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-branding {
        align-items: center;
    }
    .coretek-text small {
        text-align: center;
    }
}

/* CONTAINER DA ESFERA */
.coretek-floating-sphere {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100px;
    height: 100px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* EFEITO DE ESFERA (AURA) */
.sphere-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.2) 0%, rgba(188, 19, 254, 0) 70%);
    border: 2px solid rgba(188, 19, 254, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4), inset 0 0 20px rgba(188, 19, 254, 0.2);
    animation: sphere-pulse 3s ease-in-out infinite;
}

/* O ROBÔ DENTRO DA ESFERA */
.robot-inside {
    width: 75%;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(188, 19, 254, 0.5));
    animation: robot-float 4s ease-in-out infinite;
}

/* TOOLTIP */
.tooltip-coretek {
    position: absolute;
    right: 110px;
    background: #1a120e;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border-left: 3px solid #bc13fe;
}

.coretek-floating-sphere:hover .tooltip-coretek {
    opacity: 1;
    visibility: visible;
}

/* ANIMAÇÕES */
@keyframes sphere-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; border-color: rgba(188, 19, 254, 0.3); }
    50% { transform: scale(1.1); opacity: 1; border-color: rgba(0, 243, 255, 0.5); } /* Brilho muda levemente para ciano */
}

@keyframes robot-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* AJUSTE MOBILE */
@media (max-width: 768px) {
    .coretek-floating-sphere { width: 80px; height: 80px; bottom: 20px; right: 20px; }
    .tooltip-coretek { display: none; }
}

/* BLINDAGEM VISUAL CORETEK */
* {
    /* Impede seleção de texto em todos os navegadores */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Remove o destaque azul ao tocar em botões no mobile */
    -webkit-tap-highlight-color: transparent;
}

/* Proteção específica para imagens */
img {
    -webkit-user-drag: none;
    -webkit-user-drag: none;
    pointer-events: none; /* Impede clique e arraste */
}

/* Reabilitar seleção apenas em campos de entrada (formulários) */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* =========================================
   SOCIAL LINKS - CORETEK STYLE
   ========================================= */
.footer-social {
    display: flex;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    font-size: 1.2rem;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.social-link i {
    font-size: 1.8rem;
    color: var(--accent-color); /* Usa o dourado AXJPG */
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 600;
}

.social-link:hover {
    color: #FFFFFF;
    transform: translateY(-3px);
}

.social-link:hover i {
    filter: drop-shadow(0 0 8px var(--accent-color));
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
        width: 100%;
        margin: 10px 0;
    }
}