/* --- VARIÁVEIS DE CORES --- */
:root {
    --blue-dark: #002D62; /* Azul Institucional */
    --blue-light: #0056b3;
    --green-fomento: #009B3A; /* Verde Bandeira PR/Fomento */
    --green-hover: #007a2d;
    --gold: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --text-dark: #333333;
}

/* --- RESET E GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- UTILITÁRIOS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--blue-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-green {
    background-color: var(--green-fomento);
    color: var(--white);
}

.btn-green:hover {
    background-color: var(--green-hover);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.section-title span {
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 0 auto;
}

/* --- HEADER --- */
header {
    background: rgba(0, 45, 98, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 69px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-menu a {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.05rem;
    transition: 0.3s;
}

.nav-menu a:hover {
    background: none;
    -webkit-text-fill-color: var(--white);
    color: var(--white);
}

.mobile-menu-icon {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
#home {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 15s infinite;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideShow {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 45, 98, 0.85), rgba(0, 45, 98, 0.7));
    z-index: -1;
}

.hero-content {
    color: var(--white);
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

/* --- SOBRE (MVV) --- */
#sobre {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mvv-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 3px solid var(--gold);
    transition: 0.3s;
    overflow: hidden;
}

.mvv-card:hover {
    transform: translateY(-10px);
}

/* Removed .mvv-icon styles as they are replaced by .card-header i */

.mvv-card h3 {
    color: var(--white);
    margin-bottom: 0; /* Header handles padding */
}

/* --- LINHAS DE CRÉDITO --- */
#solucoes {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.credit-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
    position: relative;
}

.credit-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    background-color: var(--blue-dark);
    padding: 20px;
    text-align: center;
    color: var(--white);
}

.card-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    color: var(--green-fomento);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.rate-highlight {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: block;
}

.card-body p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.target-tag {
    display: inline-block;
    background: #e8f5e9;
    color: var(--green-fomento);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* --- CTA BANNER --- */
.cta-banner {
    background: var(--blue-dark);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 {
    margin-bottom: 20px;
}

/* --- CONTATO --- */
#contato {
    padding: 80px 0;
    background: var(--white);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    color: var(--blue-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* --- FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: var(--gold-gradient);
    color: var(--blue-dark);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    .mobile-menu-icon { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 100%; /* Posiciona logo abaixo do header */
        right: 0; /* Alinha à direita da tela */
        left: auto; /* Remove o alinhamento à esquerda */
        width: 250px; /* Menu mais compacto */
        background: rgba(0, 45, 98, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 25px;
        border-bottom-left-radius: 20px;
        box-shadow: -5px 10px 30px rgba(0,0,0,0.2);
        
        /* Transição Moderna */
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-menu.active { 
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li {
        margin-bottom: 20px;
        text-align: right; /* Texto alinhado à direita */
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }

    .nav-menu li:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-content h1 { font-size: 2.2rem; }
    #home {
        height: auto;
        min-height: 500px;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    /* Mobile Buttons Fix */
    .hero-content .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important; /* Override inline styles */
    }

    /* Mobile WhatsApp Fix */
    .whatsapp-float {
        right: 20px;
        bottom: 20px;
    }
}