/* ==================== VARIÁVEIS E ESTILOS GLOBAIS ==================== */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --light-bg-color: #f8f9fa;
  --dark-text-color: #333;
  --light-text-color: #777;
  --white-color: #fff;
  --border-color: #e9ecef;
  
  --header-height: 70px;
  --font-family-title: 'Poppins', sans-serif;
  --font-family-body: 'Lato', sans-serif;

  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-family-title);
  font-size: 2.5rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
}

.bg-light {
  background-color: var(--light-bg-color);
}

.text-center {
  text-align: center;
}

.text-white {
    color: var(--white-color);
}

/* ==================== HEADER E NAVEGAÇÃO ==================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

#header.scrolled {
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
}

.logo i {
  color: var(--primary-color);
  margin-right: 10px;
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: var(--font-family-title);
  font-weight: 500;
  color: var(--secondary-color);
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  color: var(--secondary-color);
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1548681528-6a5c45b66b42?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 62, 80, 0.7);
  z-index: -1;
}

.hero-title {
  font-family: var(--font-family-title);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-button, .cta-button-outline, .cta-button-large {
  display: inline-block;
  font-family: var(--font-family-title);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 15px 35px;
  font-size: 1.1rem;
}

.cta-button:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-family: var(--font-family-title);
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* ==================== CURRICULUM & FAQ (ACCORDION) ==================== */
.curriculum-accordion, .faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.accordion-item {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 20px;
    font-family: var(--font-family-title);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header i {
    transition: transform 0.3s ease;
}
.accordion-header.active i {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-content p {
    padding: 0 20px 20px;
    color: var(--light-text-color);
}

/* ==================== TESTIMONIALS ==================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}
.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}
.testimonial-card p {
    font-style: italic;
    color: var(--light-text-color);
    margin-bottom: 15px;
}
.testimonial-card h4 {
    font-family: var(--font-family-title);
    color: var(--secondary-color);
}

/* ==================== PRICING ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.pricing-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.pricing-card:hover {
    transform: scale(1.05);
}
.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--primary-color);
    position: relative;
}
.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-family: var(--font-family-title);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.price sup {
    font-size: 1.5rem;
    font-weight: 500;
}
.price-description {
    color: var(--light-text-color);
    margin-bottom: 30px;
}
.pricing-card ul {
    margin-bottom: 30px;
    text-align: left;
}
.pricing-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.pricing-card ul li i {
    margin-right: 10px;
}
.fa-check { color: var(--success-color); }
.fa-times { color: var(--accent-color); }

.cta-button-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
  padding: 13px 35px;
}
.cta-button-outline:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* ==================== FINAL CTA ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
.cta-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}
.cta-button-large {
  background-color: var(--white-color);
  color: var(--primary-color);
  padding: 18px 40px;
  font-size: 1.2rem;
}
.cta-button-large:hover {
  background-color: var(--light-bg-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding-top: 60px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-about .logo {
    color: var(--white-color);
    margin-bottom: 15px;
}
.footer-about p {
    color: rgba(255,255,255,0.7);
}
.footer h4 {
    font-family: var(--font-family-title);
    margin-bottom: 15px;
}
.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: block;
    margin-bottom: 10px;
}
.footer-links ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}
.footer-social a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: var(--transition);
}
.footer-social a:hover {
    color: var(--primary-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* ==================== ANIMAÇÕES E OUTROS ==================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==================== MEDIA QUERIES (RESPONSIVIDADE) ==================== */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 3rem; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white-color);
        transition: right 0.4s ease;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 25px;
    }
    .nav-link {
        font-size: 1.2rem;
    }
    .nav-toggle {
        display: block;
    }
    
    .hero {
        height: 80vh;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    .pricing-card:hover {
        transform: scale(1.02);
    }
}