/* Estilos para o novo header premium com design split */

/* Hero header container */
.hero-header {
    background: var(--header-gradient-start);
    min-height: 550px;
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Overlay com efeito de gradiente/textura */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.02)' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E"),
        linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    opacity: 1;
    z-index: 1;
}

/* Container para o conteúdo do header */
.header-content {
    position: relative;
    width: 100%;
    z-index: 3;
    padding: 3rem 0;
    color: white;
}

/* Estilos para o texto do header */
.hero-text-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.accent-text {
    position: relative;
    color: var(--header-accent-color);
    display: inline-block;
}

.accent-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--header-accent-color);
    border-radius: 3px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Badges do header */
.header-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.header-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-badge:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-badge i {
    color: var(--header-accent-color);
    font-size: 1.1rem;
}

.header-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Container para a imagem/cartões */
.hero-image-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo para os "cartões de crédito" flutuantes */
.credit-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.credit-card {
    position: absolute;
    width: 260px;
    height: 160px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid rgba(var(--card-color), 0.4);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--card-color) 0%, transparent 80%);
    opacity: 0.2;
    z-index: -1;
}

.bank-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bank-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    align-self: flex-end;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Posicionamento dos cartões com efeito 3D */
.card1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    z-index: 4;
    animation: float1 6s ease-in-out infinite;
}

.card2 {
    top: 75px;
    left: 55%;
    transform: translateX(-50%) rotate(3deg);
    z-index: 3;
    animation: float2 5s ease-in-out infinite;
}

.card3 {
    top: 130px;
    left: 40%;
    transform: translateX(-50%) rotate(-8deg);
    z-index: 2;
    animation: float3 7s ease-in-out infinite;
}

.card4 {
    top: 185px;
    left: 50%;
    transform: translateX(-50%) rotate(5deg);
    z-index: 1;
    animation: float4 8s ease-in-out infinite;
}

/* Animações para os cartões */
@keyframes float1 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-5deg); }
    50% { transform: translateX(-50%) translateY(-15px) rotate(-4deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(3deg); }
    50% { transform: translateX(-50%) translateY(-10px) rotate(4deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(-8deg); }
    50% { transform: translateX(-50%) translateY(-12px) rotate(-7deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateX(-50%) translateY(0) rotate(5deg); }
    50% { transform: translateX(-50%) translateY(-8px) rotate(6deg); }
}

/* Wave na parte inferior do header */
.header-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 70px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    z-index: 5;
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .hero-header {
        min-height: 700px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .header-badges {
        justify-content: center;
    }
    
    .hero-image-container {
        height: 300px;
        margin-top: 1rem;
    }
    
    .credit-card {
        width: 220px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .hero-header {
        min-height: 650px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-image-container {
        height: 250px;
    }
    
    .credit-card {
        width: 200px;
        height: 120px;
        padding: 15px;
    }
    
    /* Ajuste da posição dos cartões em telas menores */
    .card1 {
        top: -10px;
    }
    
    .card2 {
        top: 30px;
    }
    
    .card3 {
        top: 70px;
    }
    
    .card4 {
        top: 110px;
    }
    
    .bank-icon {
        width: 30px;
        height: 30px;
    }
    
    .bank-logo {
        font-size: 1rem;
    }
    
    .header-badge {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-image-container {
        height: 230px;
    }
    
    .credit-card {
        width: 180px;
        height: 110px;
        padding: 12px;
    }
    
    /* Posicionamento mais compacto para telas muito pequenas */
    .card1 {
        top: -20px;
    }
    
    .card2 {
        top: 15px;
    }
    
    .card3 {
        top: 50px;
    }
    
    .card4 {
        top: 85px;
    }
    
    .bank-logo {
        font-size: 0.9rem;
    }
}

/* Tema escuro para o header */
@media (prefers-color-scheme: dark) {
    .hero-header {
        background: var(--header-gradient-start);
    }
    
    .hero-overlay {
        background-image: 
            url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.02)' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E"),
            linear-gradient(135deg, var(--header-gradient-start) 0%, var(--header-gradient-end) 100%);
    }
    
    .credit-card {
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .header-badge {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}
