/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Cruzeiro do Sul */
    --primary-color: #003366;
    --secondary-color: #ff6600;
    --accent-color: #0066cc;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --light-bg: #f5f7fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e1e4e8;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.hero-info-item,
.highlight-card,
.course-card,
.timeline-day,
.info-box,
.contact-card {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 32px;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

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

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== HERO ===== */
/* ===== HERO ===== */
.hero {
    padding: 120px 0 80px;
    min-height: 70vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.hero-logos img {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    background: #fff;
    padding: 4px 6px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.hero-logos img:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
}

.hero-edition {
    font-size: 32px;
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.hero-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-align: center;
    min-height: 100px;
}

.hero-info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.info-icon {
    font-size: 28px;
    line-height: 1;
}

.info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
    border-radius: 10px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.about {
    background: #fff;
}

.registration {
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    gap: 48px;
    margin-bottom: 64px;
}

.about-main h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.about-main p {
    font-size: 17px;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.highlight-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.highlight-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 15px;
    color: var(--text-light);
}

/* ===== COURSES ===== */
.courses-section {
    margin-top: 64px;
}

.courses-section h3 {
    font-size: 28px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 32px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.course-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.course-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.course-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.course-card h4 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.course-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== CHALLENGE SECTION ===== */
.challenge {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    color: var(--text-color);
}

.challenge-box {
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.challenge-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 24px;
}

.challenge-box h3 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.challenge-box p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-color);
}

.challenge-box strong {
    color: var(--primary-color);
    font-weight: 700;
}

.challenge-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-item {
    background: var(--light-bg);
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.challenge-note {
    background: var(--secondary-color);
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    color: #fff;
}

.challenge-note strong {
    color: #fff;
    font-weight: 700;
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
    background: var(--primary-color);
    color: #fff;
}

.timeline-section .section-header h2,
.timeline-section .section-description {
    color: #fff;
}

/* ===== TIMELINE ===== */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.timeline-day {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.day-header {
    background: var(--primary-color);
    color: #fff;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.day-number {
    font-size: 32px;
    font-weight: 700;
}

.day-date {
    font-size: 20px;
    font-weight: 600;
}

.timeline-events {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-event {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.timeline-event.mandatory {
    border-left-color: var(--secondary-color);
    background: rgba(255, 102, 0, 0.05);
}

.timeline-event.optional {
    border-left-color: var(--text-light);
    opacity: 0.7;
}

.event-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    min-width: 100px;
}

.event-content {
    flex: 1;
}

.event-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.event-content p {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.event-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-badge.optional {
    background: var(--text-light);
}

/* ===== REGISTRATION ===== */
.registration-content {
    max-width: 1000px;
    margin: 0 auto;
}

.registration-main {
    display: grid;
    gap: 48px;
}

.registration-box {
    background: #fff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.registration-box h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 32px;
    text-align: center;
}

.registration-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-content h4 {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content small {
    font-size: 13px;
    color: var(--text-light);
}

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

.cta-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
}

.registration-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-box {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.info-box h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.info-box ul {
    list-style: none;
}

.info-box li {
    font-size: 15px;
    color: var(--text-color);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.info-box li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== CONTACT ===== */
.contact {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.contact-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    margin: 4px 0;
}

.contact-card a:hover {
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 64px 0 32px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logos img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
}

.footer-section p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    margin: 8px 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }
    
    .nav a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .challenge-features {
        grid-template-columns: 1fr;
    }
    
    .registration-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .registration-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-content {
        height: 70px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .logo-divider {
        height: 32px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-logos img {
        height: 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-edition {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero-info-item {
        min-height: 90px;
        padding: 14px 10px;
    }
    
    .info-icon {
        font-size: 24px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
    .info-label {
        font-size: 10px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .challenge-box {
        padding: 32px 24px;
    }
    
    .challenge-box h3 {
        font-size: 24px;
    }
    
    .day-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .timeline-events {
        padding: 20px;
    }
    
    .timeline-event {
        flex-direction: column;
        gap: 12px;
    }
    
    .event-time {
        min-width: auto;
    }
    
    .registration-box {
        padding: 32px 24px;
    }
    
    .registration-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container,
    .container-fluid {
        padding: 0 16px;
    }
    
    .hero-logos {
        gap: 24px;
    }
    
    .hero-logos img {
        height: 50px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .btn {
        width: 100%;
    }
}
