/*
 * PERSONALIZAÇÕES DO SITE FINANCIEL
 *
 * Cabeçalho mais fino, logo ampliada,
 * título reduzido e efeito de luz branca.
 */


/* ==================================================
   CABEÇALHO
   ================================================== */

.header .nav {
    min-height: 78px !important;
    padding: 6px 14px !important;
}


/* ==================================================
   RETÂNGULO BRANCO DA LOGO
   ================================================== */

.header .nav > a:first-child {
    width: 240px !important;
    height: 68px !important;
    flex-shrink: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 5px 12px !important;
    overflow: hidden !important;

    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 16px !important;

    box-shadow:
        0 10px 25px rgba(2, 18, 46, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.80) !important;
}


/* ==================================================
   LOGO MAIOR, APROXIMADA E CENTRALIZADA
   ================================================== */

.header .logo {
    display: block !important;

    width: 225px !important;
    height: 58px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: translateY(4px) scale(2.4) !important;
    transform-origin: center center !important;
}


/* ==================================================
   MENU
   ================================================== */

.header .menu {
    gap: 22px !important;
}

.header .menu .btn {
    min-height: 44px !important;
    padding: 0 20px !important;
}


/* ==================================================
   TAMANHO DO TÍTULO PRINCIPAL
   ================================================== */

.video-copy h1 {
    font-size: clamp(2.7rem, 4.8vw, 5.1rem) !important;
    line-height: 0.98 !important;
}


/* ==================================================
   CORES ORIGINAIS DO TÍTULO
   ================================================== */

.titulo-com-luz {
    position: relative !important;
    display: block !important;
    isolation: isolate !important;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/*
 * Mantém o trecho final com o degradê verde original.
 */
.titulo-com-luz .gradient-text {
    position: relative !important;
    z-index: 1 !important;

    background: linear-gradient(
        135deg,
        #159d76 0%,
        #29ad69 48%,
        #91bd16 100%
    ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}


/* ==================================================
   LUZ BRANCA PASSANDO PELAS LETRAS
   ================================================== */

.titulo-com-luz::after {
    content: attr(data-text);

    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;

    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-align: inherit !important;

    white-space: normal !important;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    background-image: linear-gradient(
        110deg,
        transparent 0%,
        transparent 41%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.45) 48%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.50) 52%,
        rgba(255, 255, 255, 0.10) 55%,
        transparent 59%,
        transparent 100%
    ) !important;

    background-size: 260% 100% !important;
    background-position: 180% 0;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    filter: drop-shadow(
        0 0 6px rgba(255, 255, 255, 0.28)
    );

    mix-blend-mode: screen;

    pointer-events: none !important;

    animation:
        luzBrancaNoTitulo 6.5s
        cubic-bezier(0.45, 0, 0.55, 1)
        infinite;
}


/* Movimento da faixa de luz */
@keyframes luzBrancaNoTitulo {

    0%,
    22% {
        background-position: 180% 0;
    }

    62% {
        background-position: -80% 0;
    }

    100% {
        background-position: -80% 0;
    }
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1040px) {

    .header .nav {
        min-height: 74px !important;
        padding: 5px 12px !important;
    }

    .header .nav > a:first-child {
        width: 210px !important;
        height: 64px !important;
        padding: 4px 10px !important;
    }

    .header .logo {
        width: 195px !important;
        height: 54px !important;

        transform:
            translateY(3px)
            scale(2.2) !important;

        transform-origin: center center !important;
    }

    .header .menu {
        gap: 16px !important;
    }

    .header .menu .btn {
        min-height: 42px !important;
        padding: 0 18px !important;
    }

    .video-copy h1 {
        font-size: clamp(
            2.55rem,
            6.5vw,
            4.4rem
        ) !important;
    }
}


/* ==================================================
   CELULAR
   ================================================== */

@media (max-width: 760px) {

    .header .nav {
        min-height: 66px !important;
        padding: 5px 8px !important;
    }

    .header .nav > a:first-child {
        width: 165px !important;
        height: 54px !important;

        padding: 3px 8px !important;
        border-radius: 13px !important;
    }

    .header .logo {
        width: 150px !important;
        height: 46px !important;

        max-width: none !important;
        max-height: none !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform:
            translateY(2px)
            scale(2) !important;

        transform-origin: center center !important;
    }

    .header .menu .btn {
        min-height: 42px !important;
        padding: 0 18px !important;
    }

    .video-copy h1 {
        font-size: clamp(
            2.2rem,
            10vw,
            3.25rem
        ) !important;

        line-height: 1 !important;
    }

    .titulo-com-luz::after {
        animation-duration: 7.5s !important;
    }
}


/* ==================================================
   ACESSIBILIDADE
   ================================================== */

@media (prefers-reduced-motion: reduce) {

    .titulo-com-luz::after {
        animation: none !important;
        display: none !important;
    }
}

/* ==================================================
   EFEITOS SUAVES DE ZOOM AO PASSAR O MOUSE
   ================================================== */

@media (hover: hover) and (pointer: fine) {

    /* Vídeo de fundo */
    .hero-bg-video {
        transition: transform 1.2s ease !important;
        will-change: transform;
    }

    .video-hero:hover .hero-bg-video {
        transform: scale(1.025) !important;
    }


    /* Retângulo da logo */
    .header .nav > a:first-child {
        transition:
            transform 0.35s ease,
            box-shadow 0.35s ease !important;

        transform-origin: center center;
    }

    .header .nav > a:first-child:hover {
        transform: scale(1.025) !important;

        box-shadow:
            0 14px 32px rgba(2, 18, 46, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
    }


    /* Título principal */
    .video-copy h1 {
        transition:
            transform 0.45s ease,
            filter 0.45s ease !important;

        transform-origin: left center;
        will-change: transform;
    }

    .video-copy h1:hover {
        transform: scale(1.012) !important;
        filter: drop-shadow(
            0 8px 20px rgba(255, 255, 255, 0.08)
        );
    }


    /* Selo acima do título */
    .video-eyebrow {
        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease !important;
    }

    .video-eyebrow:hover {
        transform: scale(1.035) !important;

        box-shadow:
            0 10px 24px rgba(208, 218, 41, 0.12);
    }


    /* Card de simulação */
    .video-glass-card {
        transition:
            transform 0.42s ease,
            box-shadow 0.42s ease,
            border-color 0.42s ease !important;

        transform-origin: center center;
        will-change: transform;
    }

    .video-glass-card:hover {
        transform:
            translateY(-5px)
            scale(1.018) !important;

        border-color:
            rgba(255, 255, 255, 0.35) !important;

        box-shadow:
            0 30px 65px rgba(2, 18, 46, 0.28) !important;
    }


    /* Blocos internos do card */
    .video-mini-grid > div,
    .video-card-value {
        transition:
            transform 0.3s ease,
            background-color 0.3s ease !important;
    }

    .video-mini-grid > div:hover,
    .video-card-value:hover {
        transform: translateY(-3px) scale(1.018) !important;
    }


    /* Botões */
    .hero-actions .btn,
    .header .menu .btn {
        transition:
            transform 0.28s ease,
            box-shadow 0.28s ease,
            filter 0.28s ease !important;
    }

    .hero-actions .btn:hover,
    .header .menu .btn:hover {
        transform:
            translateY(-2px)
            scale(1.035) !important;

        filter: brightness(1.05);
    }


    /* Links do menu */
    .header .menu-link {
        transition:
            transform 0.25s ease,
            color 0.25s ease !important;
    }

    .header .menu-link:hover {
        transform: scale(1.045) !important;
    }


    /* Botão flutuante do WhatsApp */
    .whatsapp-float {
        transition:
            transform 0.3s ease,
            box-shadow 0.3s ease !important;
    }

    .whatsapp-float:hover {
        transform: scale(1.09) !important;

        box-shadow:
            0 20px 38px rgba(0, 0, 0, 0.28) !important;
    }
}

/* ==================================================
   SEÇÃO ESCURA DE CONVÊNIOS
   ================================================== */

.convenios-dark-section {
    position: relative;
    overflow: hidden;
}


/* Grade com três cards por linha */
.convenios-dark-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


/* Card individual */
.convenio-dark-card {
    position: relative;

    min-height: 185px;
    padding: 24px;

    overflow: hidden;

    display: flex;
    align-items: flex-start;
    gap: 17px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.055)
        );

    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.10);

    backdrop-filter: blur(10px);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}


/* Brilho decorativo do card */
.convenio-dark-card::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -80px;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(208, 218, 41, 0.17),
            transparent 68%
        );

    pointer-events: none;

    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}


/* Ícone com as iniciais */
.convenio-dark-icon {
    position: relative;
    z-index: 2;

    width: 52px;
    height: 52px;
    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 16px;

    color: #041b46;
    font-size: 0.92rem;
    font-weight: 950;

    background:
        linear-gradient(
            135deg,
            #e2e85e,
            #d0da29
        );

    box-shadow:
        0 14px 26px rgba(208, 218, 41, 0.18);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* Categoria acima do nome */
.convenio-dark-category {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}


/* Nome do convênio */
.convenio-dark-card h3 {
    color: #ffffff;

    font-size: 1.06rem;
    line-height: 1.25;
}


/* Descrição */
.convenio-dark-card p {
    margin-top: 8px;

    color: rgba(255, 255, 255, 0.64);

    font-size: 0.88rem;
    line-height: 1.6;
}


/* ==================================================
   CHAMADA FINAL DOS CONVÊNIOS
   ================================================== */

.convenios-dark-action {
    position: relative;
    z-index: 2;

    margin-top: 30px;
    padding: 23px 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.10),
            rgba(255, 255, 255, 0.05)
        );

    backdrop-filter: blur(12px);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.12);
}

.convenios-dark-action span {
    display: block;

    color: var(--lime-400);

    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.convenios-dark-action strong {
    display: block;

    margin-top: 4px;

    color: #ffffff;
    font-size: 1.02rem;
}


/* ==================================================
   EFEITOS AO PASSAR O MOUSE
   ================================================== */

@media (hover: hover) and (pointer: fine) {

    .convenio-dark-card:hover {
        transform:
            translateY(-6px)
            scale(1.018);

        border-color:
            rgba(208, 218, 41, 0.26);

        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.14),
                rgba(255, 255, 255, 0.075)
            );

        box-shadow:
            0 26px 50px rgba(0, 0, 0, 0.18);
    }

    .convenio-dark-card:hover::before {
        transform: scale(1.25);
        opacity: 1;
    }

    .convenio-dark-card:hover .convenio-dark-icon {
        transform:
            translateY(-2px)
            scale(1.08);

        box-shadow:
            0 18px 32px rgba(208, 218, 41, 0.26);
    }

    .convenios-dark-action {
        transition:
            transform 0.35s ease,
            border-color 0.35s ease;
    }

    .convenios-dark-action:hover {
        transform: translateY(-3px);

        border-color:
            rgba(208, 218, 41, 0.22);
    }
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1040px) {

    .convenios-dark-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==================================================
   CELULAR
   ================================================== */

@media (max-width: 760px) {

    .convenios-dark-grid {
        grid-template-columns: 1fr;
    }

    .convenio-dark-card {
        min-height: auto;
        padding: 21px;
    }

    .convenios-dark-action {
        flex-direction: column;
        align-items: flex-start;

        padding: 22px;
    }

    .convenios-dark-action .btn {
        width: 100%;
    }
}