/* --- VARIABLES & BASE SETUP --- */
:root {
    /* Brand Colors (Derived from Mais Educacao SC logo) */
    --brand-orange: #FFA700;
    --brand-orange-hover: #E59600;
    --brand-blue: #002D85;
    --brand-blue-dark: #001f5c;
    --brand-purple: #6A0DAD;
    
    /* Neutrals */
    --text-main: #2D3748;
    --text-muted: #718096;
    --bg-main: #F7FAFC;
    --bg-white: #FFFFFF;
    --bg-light-blue: #F0F4F8;
    
    /* UI Values */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-strong: 0 20px 40px -10px rgba(0, 45, 133, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-logo {
    font-family: 'Montserrat', sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Utilities */
.t-orange { color: var(--brand-orange) !important; }
.t-blue { color: var(--brand-blue) !important; }
.t-purple { color: var(--brand-purple) !important; }
.t-light { color: var(--bg-white) !important; }
.bg-orange { background-color: var(--brand-orange) !important; }
.bg-purple { background-color: var(--brand-purple) !important; }
.bg-light-blue { background-color: var(--bg-light-blue) !important; }
.c-orange { color: var(--brand-orange); }
.c-blue { color: var(--brand-blue); }
.c-purple { color: var(--brand-purple); }
.text-center { text-align: center; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 32px; font-size: 1.15rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), #FF8C00);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(255, 167, 0, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 167, 0, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
}
.btn-outline-primary:hover {
    background: var(--brand-blue);
    color: var(--bg-white);
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: var(--brand-orange);
    color: var(--brand-blue);
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.1);
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trust-badge {
    font-size: 0.9rem;
    color: #38A169;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: var(--brand-blue-dark);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(106, 13, 173, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(255, 167, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1.1;
    color: var(--bg-white);
}

.tag-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 167, 0, 0.15);
    border: 1px solid rgba(255, 167, 0, 0.3);
    color: var(--brand-orange);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: var(--brand-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 167, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 167, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 167, 0, 0); }
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero-title span {
    color: var(--brand-orange);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #CBD5E0;
    margin-bottom: 35px;
    max-width: 90%;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.trust-item {
    display: flex; align-items: center; gap: 8px;
    font-weight: 500; font-size: 0.95rem;
    background: rgba(255,255,255,0.08);
    padding: 8px 16px; border-radius: 8px;
}
.trust-item i { color: #38A169; }

/* --- FORM (CRITICAL FOR LEADS) --- */
.hero-form-wrapper {
    flex: 0.9;
    max-width: 480px;
}

.lead-form-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
}

/* Colored top bar */
.lead-form-box::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 6px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple), var(--brand-orange));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-header { text-align: center; margin-bottom: 25px; }
.form-header h3 { color: var(--brand-blue); font-size: 1.8rem; font-weight: 800; margin-bottom: 5px; }
.form-header p { color: var(--text-muted); font-size: 0.95rem; }

.input-group { margin-bottom: 18px; }
.input-group label {
    display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-main); margin-bottom: 6px;
}

.input-with-icon { position: relative; }
.input-with-icon i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--brand-purple); font-size: 1.1rem; z-index: 2;
}

.input-with-icon input, .input-with-icon select {
    width: 100%; padding: 14px 14px 14px 45px;
    border: 1px solid #E2E8F0; border-radius: var(--radius-md);
    background: #F8FAFC; color: var(--text-main);
    font-size: 1rem; font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.input-with-icon input:focus, .input-with-icon select:focus {
    outline: none; border-color: var(--brand-orange);
    background: #FFF; box-shadow: 0 0 0 3px rgba(255, 167, 0, 0.15);
}

.select-wrapper::after {
    content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}
.input-with-icon select { appearance: none; cursor: pointer; }

.data-privacy {
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
    margin-top: 15px;
}
.data-privacy i { color: #38A169; }

/* --- SOCIAL PROOF STRIP --- */
.social-proof {
    background: var(--bg-white); padding: 25px 0;
    border-bottom: 1px solid #E2E8F0;
}
.sp-text { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }
.sp-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.logo-placeholder {
    font-weight: 700; color: #A0ABC0; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem;
    display: flex; align-items: center; gap: 8px;
}
.logo-placeholder::before {
    content: '\f058'; font-family: 'Font Awesome 6 Free'; color: #CBD5E0;
}

/* --- COURSES SECTION --- */
.top-courses { padding: 90px 0; }
.section-heading { margin-bottom: 50px; }
.section-heading h2 { font-size: 2.8rem; color: var(--brand-blue-dark); font-weight: 900; }
.section-heading h2 span { color: var(--brand-orange); }
.section-heading p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 15px auto 0; }

.course-filters {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px;
}
.filter-btn {
    background: var(--bg-white); border: 1px solid #E2E8F0; color: var(--text-muted);
    padding: 8px 20px; border-radius: 30px; font-weight: 600; cursor: pointer;
    transition: var(--transition); font-family: 'Inter', sans-serif;
}
.filter-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.filter-btn.active {
    background: var(--brand-blue); color: var(--bg-white); border-color: var(--brand-blue);
}

.course-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px;
}

.course-card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    padding: 35px 30px; display: flex; flex-direction: column;
    position: relative; border: 1px solid #E2E8F0;
    box-shadow: var(--shadow-soft); transition: var(--transition);
}
.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-strong); border-color: transparent; }

.card-badge {
    position: absolute; top: 20px; right: 20px;
    color: #FFF; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; letter-spacing: 0.5px;
}

.card-icon {
    width: 60px; height: 60px; border-radius: 14px;
    background: var(--bg-main); display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 25px; transition: var(--transition);
}
.course-card:hover .card-icon { background: currentColor; color: #FFF; transform: scale(1.1); }

.card-content { flex-grow: 1; }
.course-category {
    display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--brand-purple);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.course-title {
    font-size: 1.25rem; color: var(--brand-blue-dark); font-weight: 800;
    line-height: 1.4; margin-bottom: 15px;
}
.course-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }

.course-meta {
    list-style: none; display: flex; gap: 15px; margin-bottom: 25px;
    font-size: 0.85rem; color: var(--text-main); font-weight: 500;
}
.course-meta i { color: var(--brand-orange); }

.card-footer { margin-top: auto; }

/* --- BENEFITS SECTION --- */
.benefits { padding: 90px 0; overflow: hidden; }
.benefits-wrapper { display: flex; align-items: center; gap: 60px; }
.benefits-text { flex: 1; }
.benefits-text h2 { font-size: 2.5rem; color: var(--brand-blue-dark); margin-bottom: 20px; font-weight: 900;}
.benefits-text h2 span { color: var(--brand-purple); }
.benefits-text > p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; }

.benefits-list { list-style: none; display: flex; flex-direction: column; gap: 25px; }
.benefits-list li { display: flex; gap: 20px; }
.b-icon {
    flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255, 167, 0, 0.15); color: var(--brand-orange);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.b-text h4 { font-size: 1.15rem; color: var(--brand-blue-dark); margin-bottom: 5px; }
.b-text p { font-size: 0.95rem; color: var(--text-muted); }

.benefits-image {
    flex: 1; display: flex; justify-content: center; position: relative;
}
.img-box-placeholder {
    width: 400px; height: 400px; background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
    color: #FFF; font-size: 120px; position: relative;
    box-shadow: 0 30px 60px rgba(106, 13, 173, 0.3);
}
.floating-badge {
    position: absolute; background: #FFF; color: var(--text-main); font-weight: 700;
    padding: 12px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-strong);
    font-size: 0.9rem;
}
.fb-1 { top: 40px; right: -30px; animation: float 4s ease-in-out infinite; }
.fb-2 { bottom: 50px; left: -40px; animation: float 5s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* --- FOOTER --- */
.footer { background: var(--brand-blue-dark); color: #FFF; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: #A0ABC0; font-size: 0.9rem; max-width: 300px; }
.footer-links h4, .footer-contact h4 { font-family: 'Montserrat'; font-size: 1.2rem; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #A0ABC0; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--brand-orange); }
.footer-contact p { color: #A0ABC0; font-size: 0.9rem; margin-bottom: 10px; display: flex; align-items: center; gap: 10px;}
.footer-contact i { color: var(--brand-orange); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #718096; font-size: 0.85rem; }

/* --- MODAL (SMART DYNAMIC) --- */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 31, 92, 0.8); backdrop-filter: blur(8px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-dialog {
    background: var(--bg-white); width: 90%; max-width: 500px;
    border-radius: var(--radius-lg); position: relative;
    transform: translateY(30px); transition: var(--transition);
    overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}
.modal-backdrop.active .modal-dialog { transform: translateY(0); }

.modal-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    font-size: 24px; color: #A0ABC0; cursor: pointer; transition: 0.2s; z-index: 10;
}
.modal-close:hover { color: var(--brand-orange); transform: rotate(90deg); }

.modal-header {
    background: linear-gradient(135deg, var(--bg-light-blue), #FFF);
    padding: 30px 40px 20px; border-bottom: 1px solid #E2E8F0;
}
.modal-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--brand-purple); text-transform: uppercase; margin-bottom: 10px; }
.modal-header h3 { font-size: 1.6rem; color: var(--brand-blue-dark); line-height: 1.3; }

.modal-body { padding: 30px 40px 40px; }
.modal-highlight { background: rgba(255,167,0,0.1); padding: 12px; border-radius: var(--radius-md); font-size: 0.9rem; margin-bottom: 25px; text-align: center; }

.modal-details-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px;
}
.md-item { display: flex; gap: 12px; align-items: flex-start; }
.md-item i { color: var(--brand-blue); font-size: 1.2rem; margin-top: 3px; }
.md-item h5 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2px; }
.md-item span { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }

.modal-action-box { text-align: center; border-top: 1px solid #E2E8F0; padding-top: 20px; }
.modal-action-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.4; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero { padding-top: 120px; }
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 30px; }
    .trust-indicators { justify-content: center; }
    .hero-form-wrapper { width: 100%; max-width: 500px; }
    .benefits-wrapper { flex-direction: column; text-align: center; }
    .benefits-list li { text-align: left; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .footer-contact p { justify-content: center; }
}

@media (max-width: 576px) {
    .hidden-mobile { display: none !important; }
    .hero-title { font-size: 2rem; }
    .lead-form-box { padding: 25px 20px; }
    .course-grid { grid-template-columns: 1fr; }
    .img-box-placeholder { width: 100%; height: 300px; }
    .floating-badge { font-size: 0.8rem; padding: 8px 12px; }
    .modal-dialog { width: 95%; }
    .modal-header, .modal-body { padding: 20px; }
    .modal-details-grid { grid-template-columns: 1fr; }
}

