/* 
 * Estilos Principais - Banco Classico SA
 * Cores: Azul Marinho (#00204D) e Dourado (#D4AF37)
 */

:root {
    --navy: #00204D;
    --gold: #D4AF37;
    --gold-hover: #B8860B;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-gray: #333333;
    --text-color: #444444;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

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

.py-5 { padding: 60px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.bg-navy { background-color: var(--navy); }
.bg-light { background-color: var(--light-gray); }
.bg-gold { background-color: var(--gold); }

/* Header & Navigation */
#main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

#main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

#main-nav ul li {
    margin-left: 25px;
    position: relative;
}

#main-nav ul li a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: block;
    padding: 10px 0;
}

#main-nav ul li a:hover {
    color: var(--gold);
}

/* Dropdown Fix */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: none !important; /* Força ocultação por padrão */
    min-width: 240px;
    padding: 10px 0;
    border-top: 3px solid var(--gold);
    z-index: 1001;
}

.dropdown:hover > .dropdown-menu {
    display: block !important; /* Mostra apenas no hover direto */
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px !important;
    font-size: 13px !important;
}

/* Hero Section */
#hero {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

/* Image Size Fixes */
.img-fluid {
    max-width: 100%;
    height: auto;
}

#intro img, .about-section img {
    max-width: 500px; /* Limita o tamanho das imagens gigantes */
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Grid & Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

/* Payment Keywords Grid Fix */
#payment-solutions .row {
    justify-content: center;
}

.keyword-tag {
    background: var(--white);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid var(--gold);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 100%;
}

.keyword-tag i {
    margin-right: 10px;
}

/* Footer Fixes */
#main-footer {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    /* Garante visibilidade no fundo escuro */
    filter: brightness(0) invert(1); 
}

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

/* Map Fix */
.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }

/* Responsive */
@media (max-width: 768px) {
    .col-md-6, .col-md-4, .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .hero-content h1 { font-size: 2rem; }
    #main-nav { display: none; }
}
