/* PASSO 1: Importar as fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;700&display=swap');

/* PASSO 2: Definir as variáveis de design */
:root {
    --primary-color: #0d2c4f;
    --secondary-color: #333;
    --accent-color: #d4af37;
    --bg-color: #ffffff;
    --light-bg-color: #f9f9f9;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
}

/* PASSO 3: Reset e Estilos Globais */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: smooth;
    font-size: 17px;
}
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--secondary-color); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary-color); margin-bottom: 1rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px;}
h4 { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--primary-color); }
a { color: var(--accent-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-color); }
ul { list-style: none; }
main { min-height: 70vh; }


/* ESTILOS DO POP-UP DE BOAS-VINDAS */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px; /* Adiciona um respiro nas laterais */
}
.popup-content {
    position: relative;
    background-color: var(--primary-color);
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    border-radius: 8px;
    text-align: center;
    
    /* --- CORREÇÕES DE RESPONSIVIDADE --- */
    width: 100%;             /* Ocupa 100% do espaço disponível no overlay */
    max-width: 600px;        /* Mas nunca passa de 600px de largura */
    max-height: 90vh;        /* Nunca passa de 90% da altura da tela */
    display: flex;           /* Usa flexbox para organizar o conteúdo interno */
    flex-direction: column;
    overflow-y: auto;        /* Adiciona barra de rolagem se o conteúdo for maior que a altura */
}
.popup-content img {
    display: block;
    width: 100%;
    height: auto;
    border-top-left-radius: 8px;  /* Arredonda os cantos da imagem */
    border-top-right-radius: 8px;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 2px;
    z-index: 3001; /* Garante que fique acima da imagem */
}
.popup-footer {
    background-color: var(--primary-color);
    padding: 20px;
    margin-top: -5px; /* Remove o espaço entre a imagem e o rodapé */
    position: relative;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.popup-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.popup-button:hover {
    background-color: #e9c450;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}


/* ESTILOS DO MODAL DE CRÉDITOS */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--accent-color);
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a5675;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.modal-header h2 {
    margin: 0;
    color: var(--white-color);
}
.modal-close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}
.modal-close:hover,.modal-close:focus {
    color: var(--white-color);
    text-decoration: none;
    cursor: pointer;
}
.modal-body ul { list-style: none; padding: 0; margin: 0; }
.modal-body li { padding: 8px 0; }
.modal-body li strong { color: var(--white-color); min-width: 150px; display: inline-block; }
.modal-body hr { border: none; height: 1px; background-color: #3a5675; margin: 20px 0; }
.contact-info p { margin: 10px 0; }

.contact-info a {
    color: var(--accent-color);
    text-decoration: underline;
    font-weight: 500;
}
.contact-info a:hover {
    color: var(--white-color);
}
.contact-info .contact-icon {
    stroke: var(--accent-color);
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: stroke 0.3s ease;
}
.contact-info a:hover .contact-icon {
    stroke: var(--white-color);
}


/* ESTILOS PARA CONTATOS INTERATIVOS */
.contact-line a { display: inline-flex; align-items: center; gap: 8px; }
.email-link { color: var(--accent-color); text-decoration: underline; }
.email-link:hover { color: var(--primary-color); }

.phone-link {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}
.contact-icon { flex-shrink: 0; }
.phone-icon { display: none; }

/* PASSO 4: Estilos do Cabeçalho (Header) */
#main-header { 
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease;
}
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
.header-left { flex: 1; justify-content: flex-start; }
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); }
.logo-mobile { display: none; }
.header-image-logo-mobile { display: none; }
.header-image-logo-desktop { height: 80px; width: auto; display: block; }
.main-nav ul { display: flex; justify-content: center; gap: 30px; }
.main-nav a { color: var(--primary-color); font-weight: 500; padding: 5px 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent-color); transition: width 0.3s ease; }
.main-nav a:hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; font-size: 2rem; color: var(--primary-color); cursor: pointer; }

/* PASSO 5: Estilos do Rodapé (Footer) - REDESENHADO */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0 0;
}
footer h4 {
    font-family: 'Playfair Display', serif;
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
}
#main-footer .footer-links a.phone-link {
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--white-color);
    padding-left: 5px;
}
#main-footer .phone-link { 
    color: rgba(255,255,255,0.7);
}
#main-footer .email-link { 
    color: var(--accent-color); 
    text-decoration: underline; 
}
#main-footer .email-link:hover { 
    color: var(--white-color); 
}
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}
.social-icons a {
    color: var(--white-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.social-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #3a5675;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}
.developer-credit {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}
.footer-link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: underline;
}
.footer-link:hover {
    color: var(--white-color);
}


/* =================================================================== */
/* --- ESTILOS DA SEÇÃO DE CONTATO (FUNDO AZUL) --- */
/* =================================================================== */

#contato {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
}
#contato h2,
#contato h4 {
    color: var(--white-color);
}

#contato .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

#contato .contact-form-wrapper {
    background: none;
}
#contato .contact-form label {
    color: var(--white-color);
    font-weight: 500;
}
#contato .contact-form input,
#contato .contact-form textarea,
#contato .contact-form select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    padding: 12px;
    border-radius: 5px;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

#contato .contact-form select option {
    color: var(--secondary-color);
    background-color: var(--white-color);
}

#contato .contact-form input::placeholder,
#contato .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
#contato .contact-form input:focus,
#contato .contact-form textarea:focus,
#contato .contact-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

#contato .contact-info-wrapper {
    background: none;
    padding: 0;
}
#contato .info-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}
#contato .info-block-icon {
    flex-shrink: 0;
    color: var(--white-color);
    margin-top: 5px;
}
#contato .info-block-icon svg {
    width: 20px;
    height: 20px;
}
#contato .info-block-text p {
    margin: 0;
    line-height: 1.6;
}
#contato .info-block-text p strong {
    color: var(--white-color);
    font-weight: 700;
}
#contato .contact-email-link {
    color: var(--accent-color);
    text-decoration: underline;
}
#contato .contact-email-link:hover {
    color: var(--white-color);
}
#contato .map-container {
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
}


/* --- ESTILOS DA PÁGINA INICIAL --- */
.hero { 
    position: relative; 
    height: 100vh;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: var(--white-color); 
    background: url('https://i.postimg.cc/hGxRt92c/rezende-rammel-patio-escola-lins-foto.jpg') no-repeat center center/cover; 
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(10, 10, 10, 0.7); }
.hero-content { position: relative; z-index: 2; }
.hero .subtitle { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto;}
.btn-primary { background-color: var(--accent-color); color: var(--primary-color); padding: 15px 35px; border-radius: 50px; font-weight: 700; text-transform: uppercase; display: inline-block; transition: all 0.3s ease; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-primary:hover { background-color: #e9c450; color: var(--primary-color); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.btn-primary:disabled {
    background-color: #bca04a;
    opacity: 0.7;
    cursor: not-allowed;
}

.hero h1 {
    color: var(--white-color);
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem; 
    line-height: 1.2;
}

.hero .hero-subtitle {
    font-family: 'Playfair Display', serif; 
    color: rgba(255, 255, 255, 0.9); 
    font-size: 2.2rem;
    font-weight: 400; 
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
    margin-bottom: 30px;
}

/* --- ESTILOS DAS SEÇÕES --- */
.content-section { 
    padding: 80px 0; 
}
.courses-section { 
    padding: 80px 0; 
}
.section-bg-light {
    background-color: var(--light-bg-color);
}
.content-section + .content-section:not(#contato) {
    border-top: 1px solid var(--border-color);
}
#parcerias + #matricula {
    border-top: none;
}
.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 60px auto;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--white-color);
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.stat-icon {
    color: var(--accent-color);
    font-size: 2.5rem;
}
.stat-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}
.stat-text p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}


.offerings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.offering-card { background: var(--white-color); border: 1px solid var(--border-color); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.advantages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 30px; }
.advantage-item { text-align: center; }
.advantage-icon { color: var(--accent-color); margin-bottom: 15px; }
.page-header { background: linear-gradient(45deg, var(--primary-color), #285a8e); color: var(--white-color); padding: 60px 0; text-align: center; }
.page-header h1 { color: var(--white-color); font-size: 3rem; }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.course-card { background: var(--white-color); border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.course-card-image { width: 100%; height: 200px; object-fit: cover; }
.course-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.course-card-content h3 { margin-bottom: 15px; }
.course-card-content h3 a { text-decoration: none; color: inherit; }
.course-card-content p { flex-grow: 1; margin-bottom: 20px; }
.btn-secondary { display: inline-block; background-color: transparent; color: var(--accent-color); padding: 10px 25px; text-align: center; border-radius: 50px; font-weight: 700; transition: all 0.3s ease; border: 2px solid var(--accent-color); align-self: flex-start; }
.page-header-curso { position: relative; height: 40vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white-color); background-size: cover; background-position: center; }
.page-header-curso h1 { color: var(--white-color); font-size: 3.5rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); }
.btn-back { position: fixed; top: 90px; left: 30px; z-index: 999; background-color: var(--primary-color); color: var(--white-color); padding: 12px 20px; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; transition: all 0.3s ease; }
.btn-back span { display: block; }
.course-detail-container { display: grid; grid-template-columns: 3fr 1fr; gap: 50px; }
.course-main-content h2 {text-align: left;}
.competencies-list li { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23d4af37" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left 5px; padding-left: 35px; margin-bottom: 15px; }
.course-sidebar .sidebar-widget { background-color: var(--light-bg-color); padding: 30px; border-radius: 8px; position: sticky; top: 120px; }
.sidebar-widget .btn-primary { display: block; text-align: center; margin-top: 20px; }
.advantages-list li, .docs-list li { background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23d4af37" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left 5px; padding-left: 35px; margin-bottom: 15px; font-size: 1.1rem; }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { background: none; border: none; width: 100%; text-align: left; padding: 20px; font-size: 1.2rem; font-weight: 700; color: var(--primary-color); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 2rem; color: var(--accent-color); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.15s ease; }
.faq-item.active .faq-answer { padding-bottom: 20px; }
.faq-answer p { padding: 0 20px 0 20px; }
.faq-search-wrapper {
    max-width: 800px;
    margin: 0 auto 40px auto;
}
#faq-search-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
}
#faq-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}
.faq-contact-box { text-align: center; margin-top: 60px; padding: 40px; background-color: var(--light-bg-color); border-radius: 8px; }
.faq-contact-box h3 { font-size: 1.8rem; }
.faq-contact-box p { margin-bottom: 25px; max-width: 450px; margin-left: auto; margin-right: auto; }
.map-container { margin-top: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-color);}

/* EFEITO HOVER */
.offering-card:hover, .course-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

/* BOTÃO FLUTUANTE DO WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float i {
    font-size: 35px;
    color: white;
}


/* --- REGRAS FINAIS DE RESPONSIVIDADE --- */
@media (min-width: 769px) {
    #main-header .container {
        max-width: none;
        padding: 0 40px;
    }
    
    .btn-back {
        top: 130px;
    }
}

@media (max-width: 992px) {
    .course-detail-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .phone-link,
    #main-footer .phone-link {
        color: var(--accent-color);
        text-decoration: underline;
        pointer-events: auto;
    }
    .phone-icon {
        display: inline-block;
    }

    .logo-desktop, .header-image-logo-desktop { display: none; }
    .logo-mobile { display: block; }
    .header-image-logo-mobile {
        display: block;
        height: 40px;
        width: auto;
    }
    .logo { font-size: 1.2rem; }
    .header-left, .header-right { flex: initial; }
    #main-header .container { justify-content: space-between; }
    h2 { font-size: 2rem; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white-color); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid var(--border-color); overflow: hidden; max-height: 0; transition: max-height 0.5s ease-in-out; }
    .main-nav.nav-active { display: block; max-height: 500px; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
    .main-nav a::after { display: none; }
    .menu-toggle { display: block; }
    .footer-columns, 
    .two-column-layout,
    #contato .contact-layout { 
        grid-template-columns: 1fr; 
    }
    
    #contato .contact-info-wrapper {
        margin-top: 50px;
    }

    .hero { 
        height: auto;
        padding: 120px 20px;
        min-height: 90vh;
    }
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    .hero .hero-subtitle {
        font-size: 1.3rem;
    }
    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .btn-back { 
        top: 90px; 
        left: 20px; 
        padding: 10px 15px; 
    }
    .btn-back span {
        display: none;
    }

    .whatsapp-float {
        bottom: 60px;
        right: 20px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card-image {
        height: 160px;
    }
    .course-card-content {
        padding: 15px;
    }
    .course-card-content h3 {
        margin-bottom: 8px;
        font-size: 1.1rem; 
    }
    .course-card-content p {
        margin-bottom: 12px;
        font-size: 0.9rem; 
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;  
        overflow: hidden;
        text-overflow: ellipsis;
        height: calc(1.5 * 0.9rem * 3);
    }
}