/**
 * =====================================================
 * ESTANTE DE TALENTOS - CSS GLOBAL
 * =====================================================
 */

/* ===== VARIÁVEIS ===== */
:root {
    --primary-color: #0d1f3a;
    --primary-dark: #070f1c;
    --primary-light: #1a3a5c;
    --secondary-color: #5a0d22;
    --secondary-light: #7a1030;
    --secondary-dark: #3d0817;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-display: 'Bebas Neue', cursive;
    --font-heading: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-pill: 50px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: #fafafa;
    line-height: 1.6;
}

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

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

/* ===== HEADER ===== */
.site-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    width: auto !important;
    max-width: 300px !important;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.logo span {
    color: var(--primary-color);
}

.logo:hover {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    margin: 0 8px;
    padding: 10px 15px !important;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: var(--gray-100);
}

.navbar-nav .nav-link i {
    margin-right: 5px;
}

.btn-header {
    background: var(--secondary-color);
    color: white !important;
    padding: 10px 25px !important;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.btn-header:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    background-size: cover !important;
    background-position: center !important;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    text-align: center;
    color: white;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(13, 31, 58, 0.7), rgba(90, 13, 34, 0.7));
}

.hero-slide .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    animation: fadeInDown 1s;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    max-width: 900px;
    margin: 0 auto 40px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    animation: fadeInUp 1s;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, rgba(13, 31, 58, 0.85), rgba(90, 13, 34, 0.85)), 
                url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0;
    text-align: center;
}

.page-header .container {
    width: 100%;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

.page-header p {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(90, 13, 34, 0.4);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

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

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ===== CARDS ===== */
.card-projeto {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    background: white;
    box-shadow: var(--shadow-sm);
}

.card-projeto:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-projeto .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-projeto .card-body {
    padding: 25px;
}

.card-projeto .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-projeto .card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Badge de Status */
.badge-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-aberto {
    background: var(--success-color);
    color: white;
}

.badge-encerrado {
    background: var(--gray-600);
    color: white;
}

.badge-em-breve {
    background: var(--info-color);
    color: white;
}

.badge-financiando {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* ===== PROGRESS BAR ===== */
.progress-custom {
    height: 10px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
}

.progress-success .progress-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.progress-warning .progress-bar {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

/* ===== SECTIONS ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ===== STATS ===== */
.stats-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stats-label {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ===== FORMS ===== */
.form-control,
.form-select {
    padding: 12px 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 31, 58, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-logo {
    width: auto !important;
    max-width: 250px !important;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.site-footer h4,
.site-footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 25px;
}

.site-footer p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 8px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    margin-top: 40px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: white;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 15px 20px;
}

/* ===== ACCORDION ===== */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    padding: 20px 25px;
}

.accordion-button:not(.collapsed) {
    background: var(--gray-100);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border: none;
    color: var(--primary-color);
    padding: 12px 18px;
    margin: 0 3px;
    border-radius: var(--radius-md);
}

.pagination .page-item.active .page-link {
    background: var(--secondary-color);
    color: white;
}

.pagination .page-link:hover {
    background: var(--gray-200);
}

/* ===== UTILITIES ===== */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hero-title,
    .page-header h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle,
    .page-header p {
        font-size: 1.5rem;
    }
    
    .hero-slide,
    .page-header {
        min-height: 500px;
        padding: 100px 0;
    }
    
    .logo-img {
        height: 45px !important;
        max-height: 45px !important;
        min-height: 45px !important;
    }
}

@media (max-width: 767px) {
    .hero-slide,
    .page-header {
        min-height: 450px;
        padding: 80px 0;
    }
    
    .hero-title,
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle,
    .page-header p {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 38px !important;
        max-height: 38px !important;
        min-height: 38px !important;
    }
    
    .footer-logo {
        height: 32px !important;
        max-height: 32px !important;
        min-height: 32px !important;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}
