/* ============================================
   EPCAR - Military Aviation Theme
   Bold, impactful, purpose-driven design
   Força Aérea Brasileira inspired colors
   ============================================ */

/* EPCAR / FAB Official Colors - Military Identity */
:root {
    /* Cores da Força Aérea Brasileira */
    --epcar-azul: #003366; /* Azul militar profundo */
    --epcar-azul-medium: #004080;
    --epcar-azul-light: #0066CC;
    --epcar-azul-bright: #1E90FF;
    --epcar-dourado: #FFD700; /* Dourado FAB */
    --epcar-dourado-dark: #DAA520;
    --epcar-vermelho: #DC143C; /* Vermelho militar */
    
    /* Gradientes EPCAR */
    --exam-gradient: linear-gradient(135deg, #003366 0%, #004080 50%, #0066CC 100%);
    --exam-gradient-hero: linear-gradient(135deg, rgba(0, 51, 102, 0.95) 0%, rgba(0, 64, 128, 0.95) 100%);
    --exam-gradient-accent: linear-gradient(135deg, #003366 0%, #FFD700 100%);
    --exam-gradient-gold: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    
    /* Override primary colors for EPCAR page */
    --primary: var(--epcar-azul-bright);
    --primary-hover: var(--epcar-azul-light);
    --exam-accent: var(--epcar-azul-bright);
    --exam-accent-hover: var(--epcar-azul-light);
    --exam-accent-light: var(--epcar-azul-bright);
    --exam-accent-dark: var(--epcar-azul);
}

/* Hero Section - Modern with Image Background */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--exam-gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.hero-cta {
    margin-top: 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* EPCAR pattern overlay with military blue */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 150px,
            rgba(0, 51, 102, 0.02) 150px,
            rgba(0, 51, 102, 0.02) 151px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 150px,
            rgba(0, 64, 128, 0.02) 150px,
            rgba(0, 64, 128, 0.02) 151px
        );
    pointer-events: none;
    z-index: -1;
}

/* EPCAR card design with military blue accents */
.content-card {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 12px 32px rgba(0, 51, 102, 0.25);
    border-color: var(--epcar-azul-bright);
    transform: translateY(-2px);
}

/* Modern card design with military blue accent bar */
.competencia-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    position: relative;
    padding-left: 2.5rem;
    transition: all 0.3s ease;
}

.competencia-card::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--exam-gradient);
    border-radius: 2px;
}

.competencia-card:hover {
    border-color: var(--epcar-azul-bright);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.2);
}

/* EPCAR section title with military blue gradient underline */
.section-title {
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--exam-gradient);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--exam-gradient-gold);
    border-radius: 2px;
    opacity: 0.8;
}

/* EPCAR strategy cards with military blue top border animation */
.estrategia-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.estrategia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--exam-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.estrategia-card:hover::before {
    transform: scaleX(1);
}

.estrategia-card:hover {
    border-color: var(--epcar-azul-bright);
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 51, 102, 0.2);
}

/* Metodologia grid - modern card design */
.metodologia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.metodologia-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metodologia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--exam-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.metodologia-card:hover::before {
    transform: scaleY(1);
}

.metodologia-card:hover {
    border-color: var(--epcar-azul-bright);
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.2);
}

.metodologia-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.metodologia-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.metodologia-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Destaque box with military gradient */
.destaque-box {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.2) 0%, rgba(0, 64, 128, 0.2) 100%);
    border: 2px solid var(--epcar-azul-bright);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.destaque-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--exam-gradient-gold);
}

.destaque-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.destaque-text {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.destaque-text strong {
    color: var(--epcar-dourado);
    font-weight: 700;
}

/* Highlight text with gold accent */
.highlight-text {
    color: var(--epcar-dourado);
    font-weight: 600;
}

/* Intro text styling */
.intro-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Competencias grid */
.competencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.competencia-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.competencia-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Estratégias grid */
.estrategias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.estrategia-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.estrategia-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.estrategia-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Section with military theme */
.cta-section {
    background: var(--exam-gradient);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--epcar-dourado);
    color: var(--epcar-azul);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--epcar-dourado-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.125rem;
    padding: 1.25rem 3rem;
}

.cta-trust-indicators {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--epcar-dourado);
    font-family: 'Playfair Display', serif;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-primary);
    opacity: 0.9;
    margin-top: 0.5rem;
}

.cta-urgency {
    display: block;
    color: var(--epcar-dourado);
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .metodologia-grid,
    .competencias-grid,
    .estrategias-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
