/* =========================================
   1. Variáveis e Reset
   ========================================= */
:root {
    --primary-color: #E30613;
    --secondary-color: #002366;
    --accent-yellow: #ffca28;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #4a4a4a;
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* =========================================
   2. Header e Navegação
   ========================================= */
#main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

#main-header .container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%; 
    padding: 0 50px;
}

/* Ajuste para celular */
@media (max-width: 768px) {
    #main-header .container {
        padding: 0 20px;
    }
}

/* Logo */
#brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary-color);
}

/* Menu Centralizado */
#navbar {
    flex: 1;
    margin-left: 60px;
}

#navbar ul {
    display: flex;
    align-items: center;
    width: 100%;
}

#navbar ul li {
    margin-right: 30px;
}

#navbar a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
    transition: 0.3s;
    text-transform: uppercase;
}

#navbar a:hover {
    color: var(--primary-color);
}

/* Botão CTA Menu à direita */
#navbar ul li:last-child {
    margin-left: auto; 
    margin-right: 0;
}

.btn-nav {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(227, 6, 19, 0.2);
}

.btn-nav:hover {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

#mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    margin-left: auto;
}

/* =========================================
   3. Hero Section (Layout Dividido & Ajustado)
   ========================================= */
#home {
    background: #f4f6f8;
    min-height: 100vh;
    padding-top: 70px;
    display: flex;
    align-items: center; 
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 150px; 
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--secondary-color);
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

/* Efeito Marca-texto */
.text-highlight {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(255, 202, 40, 0.4);
    z-index: -1;
}

.hero-text p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-cta:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* Imagem Hero */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 20px 20px 0px rgba(0, 35, 102, 0.1);
}

/* Forma decorativa */
.blob-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
}

/* Ajuste para Mobile */
@media (max-width: 768px) {
    .hero-container {
        margin-bottom: 50px;
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
}

/* =========================================
   4. Metodologia
   ========================================= */
#methodology {
    padding: 100px 0;
    background: #fff;
}

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

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    font-size: 1.1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    border: 1px solid #eee;
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 35, 102, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
}

.step-card h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 700;
}

/* =========================================
   5. Features
   ========================================= */
#features {
    padding: 80px 0;
    background: var(--secondary-color);
    color: #fff;
}

#features .container {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 40px;
}

.feature-box {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.feature-box:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.feature-box p {
    color: #ddd;
}

/* =========================================
   6. Cursos
   ========================================= */
#courses {
    padding: 80px 0;
    background: var(--light-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.img-container {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.item-info {
    padding: 25px;
    text-align: left;
}

.item-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: 700;
}

.item-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.price {
    display: inline-block;
    background: var(--light-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

/* =========================================
   7. Sobre
   ========================================= */
#about {
    background: #fff;
    padding: 100px 0;
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-weight: 800;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 1.05rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 15px 15px 0px var(--primary-color);
}

/* =========================================
   8. Contato
   ========================================= */
#contact {
    background: var(--secondary-color);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

#contact h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

#contact p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 2rem;
    color: #fff;
    transition: 0.3s;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    background: #001845;
    color: #888;
    padding: 30px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.developer a {
    color: var(--primary-color);
    font-weight: bold;
    transition: 0.3s;
}

.developer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* =========================================
   10. Responsividade (Mobile)
   ========================================= */
@media (max-width: 768px) {
    #mobile-menu-btn { display: block; }
    
    #navbar {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        display: none;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        margin-left: 0;
    }

    #navbar.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    #navbar ul {
        flex-direction: column;
        padding: 20px 0;
    }

    #navbar ul li {
        margin: 15px 0;
        margin-right: 0;
    }
    
    #navbar ul li:last-child {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .btn-nav { width: 80%; justify-content: center; }
    
    /* Hero Mobile */
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }
    
    .hero-text h1 { font-size: 2.2rem; }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: 1;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    /* Outros Ajustes */
    #features .container, .flex-container { flex-direction: column; }
    
    .about-img { order: -1; width: 100%; margin-bottom: 30px; }
    
    .footer-content { flex-direction: column; gap: 10px; text-align: center; }
}