/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #ff4500;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --bradesco-color: #cc0000;
    --itau-color: #4169e1;
    --santander-color: #ff0000;
    --card-height: 120px;
    --card-width: 100%;
    --logo-max-height: 60px;
    --logo-max-width: 80%;
    --card-aspect-ratio: 16/9;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Botão Voltar */
.btn-voltar {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Header Styles */
header {
    background-color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    width: 100%;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.logo {
    max-width: 280px;
    height: auto;
}

.tagline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.tagline-text {
    margin-right: 5px;
}

.typing-effect {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    min-width: 80px;
}

.title {
    font-size: 1.9rem;
    color: var(--secondary-color);
    margin: 12px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

.title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* Gradient Text Animation */
.gradient-text {
    background-image: linear-gradient(90deg, #0056b3, #00a8e8, #0077cc, #003366, #0056b3);
    background-size: 400% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Main Content Styles */
main {
    padding: 10px 0;
    width: 100%;
}

/* Stats Container - Redesenhado para layout horizontal como os boxes dos bancos */
.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 15px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    width: 100%;
    max-width: 1000px; /* Exatamente a mesma largura do conjunto de bancos */
}

.stat-item {
    width: 100%;
    padding: 5px;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2px;
    /* Ajustando para ficar igual aos boxes dos bancos */
    height: 70px; /* Altura bem reduzida */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:first-child {
    margin-bottom: 10px;
    border-radius: 10px;
}

.stat-item:last-child {
    margin-top: 0;
    border-radius: 10px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    will-change: contents;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    /* Centralizando melhor */
    width: 100%;
    text-align: center;
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 0;
    padding: 0;
    line-height: 1.1;
    /* Centralizando melhor */
    width: 100%;
    text-align: center;
    margin-top: 3px;
}

/* Banks Grid */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px auto;
    max-width: 1000px;
}

.bank-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px var(--shadow-color);
    position: relative;
    overflow: hidden;
    height: var(--card-height);
    width: var(--card-width);
    aspect-ratio: var(--card-aspect-ratio);
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.bank-card.active {
    box-shadow: 0 6px 15px rgba(204, 0, 0, 0.3);
    border: 1px solid var(--bradesco-color);
}

.bank-logo {
    max-width: var(--logo-max-width);
    max-height: var(--logo-max-height);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Ajustes específicos para logos individuais - AJUSTADOS PARA PROPORCIONALIDADE */
img[alt="Porto Seguro"] {
    max-width: 50%;
    max-height: 45px;
}

img[alt="Bradesco Seguros"] {
    max-width: 90%;
    max-height: 70px;
}

img[alt="SulAmérica Seguros"] {
    max-width: 90%;
    max-height: 70px;
}

img[alt="BB Seguros"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Zurich Santander"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Localiza"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Unidas"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Movida"] {
    max-width: 65%;
    max-height: 50px;
}

/* Ajustes para logos de bancos tradicionais */
img[alt="Bradesco"] {
    max-width: 85%;
    max-height: 65px;
}

img[alt="Itaú"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Santander"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Caixa"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Banco do Brasil"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Banco Pan"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Banco BV"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Sicoob"] {
    max-width: 65%;
    max-height: 50px;
}

img[alt="Sicredi"] {
    max-width: 65%;
    max-height: 50px;
}

.bank-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.bank-card:hover .bank-tooltip {
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    font-size: 1.7rem;
    color: var(--secondary-color);
    margin: 25px 0 15px;
    text-align: center;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 15px auto;
    max-width: 1000px;
}

.partner-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px var(--shadow-color);
    height: var(--card-height);
    width: var(--card-width);
    aspect-ratio: var(--card-aspect-ratio);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.partner-logo {
    max-width: 80%;
    max-height: var(--logo-max-height);
    object-fit: contain;
}

/* Logo final da página */
.final-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 15px;
    padding: 15px;
    text-align: center;
    max-width: 600px;
}

.animated-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.final-logo {
    max-width: 230px;
    height: auto;
    animation: pulse 3s infinite ease-in-out;
}

.final-tagline {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.typing-effect-final {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    min-width: 80px;
}

.typing-effect-final::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    margin-top: 25px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.footer-logo {
    margin-bottom: 12px;
}

.logo-small {
    max-width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-info {
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

.contact-info {
    margin-top: 6px;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 12px;
    }
    
    .banks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .partners-grid {
        gap: 12px;
    }
    
    :root {
        --card-height: 110px;
        --logo-max-height: 50px;
    }
    
    .final-logo {
        max-width: 210px;
    }
    
    .final-tagline {
        font-size: 1.3rem;
    }
    
    .stat-item {
        width: 100%;
        padding: 5px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        margin: 0 0 10px 0;
        padding: 5px;
        height: 60px;
    }
    
    .banks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .title,
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    :root {
        --card-height: 100px;
        --logo-max-height: 45px;
    }
    
    .final-logo {
        max-width: 190px;
    }
    
    .final-tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .banks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    :root {
        --card-height: 80px;
        --logo-max-height: 40px;
    }
    
    .bank-card,
    .partner-card {
        padding: 8px;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .stat-item {
        padding: 5px;
        width: 100%;
        height: 50px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .final-logo {
        max-width: 170px;
    }
    
    .final-tagline {
        font-size: 1.1rem;
    }
    
    .final-logo-container {
        padding: 12px;
        margin: 25px auto 12px;
    }
}
