/**
 * Estilos do Hero/Banners e Seção de Recursos
 *
 * @package GN9V_Solucoes
 */

/* =================================================================
   HERO SECTION
   ================================================================= */

.hero-section {
    position: relative;
    width: 100%;
}

.hero-swiper {
    width: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    /* Igual ao overlap do card de recursos (-100px).
       Centraliza o conteúdo na área visível: 640 - 100 = 540px */
    padding-bottom: 100px;
}

/* Máscara escura - gradiente da esquerda */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
    90deg, 
    rgb(22 57 95) 0%,
    rgb(22 57 95 / 63%) 35%, 
    rgba(22, 57, 95, 0.35) 70%, 
    rgba(22, 57, 95, 0.25) 100%);
    z-index: 1;
}

/* Conteúdo do Hero - ALINHADO À ESQUERDA */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.12;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 24px;
    max-width: 800px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 400;
    color: #fff;
    margin: 0 0 32px;
    max-width: 620px;
}

/* Botões */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition);
    border-radius: 0;
}

/* Botão outline (transparente com borda) */
.hero-btn-outline {
    background-color: rgba(0, 0, 0, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.hero-btn-outline:hover {
    background-color: #fff;
    color: var(--gn-navy);
    border-color: #fff;
}

/* Botão vermelho preenchido */
.hero-btn-primary {
    background-color: var(--gn-red);
    color: #fff;
    border: 1px solid var(--gn-red);
}

.hero-btn-primary:hover {
    background-color: #d02830;
    border-color: #d02830;
    color: #fff;
}

/* Setas de Navegação */
.hero-button-prev,
.hero-button-next {
    width: 64px;
    height: 64px;
    background-color: transparent;
    position: absolute;
    /* Centro da área visível: metade do overlap (100px / 2) */
    top: calc(50% - 50px);
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.hero-button-prev { left: 24px; }
.hero-button-next { right: 24px; }

.hero-button-prev:hover::after,
.hero-button-next:hover::after {
    filter: brightness(0) saturate(100%) invert(30%) sepia(72%) saturate(2343%) hue-rotate(356deg) brightness(96%) contrast(102%);
}

.hero-button-prev::after,
.hero-button-next::after {
    content: '';
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-button-prev::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>');
}

.hero-button-next::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"/></svg>');
}

/* Esconder setas quando só tem 1 slide */
.hero-swiper.single-slide .hero-button-prev,
.hero-swiper.single-slide .hero-button-next,
.hero-swiper.single-slide .hero-pagination {
    display: none;
}

/* Paginação */
.hero-pagination {
    /* 100px do overlap + 30px de respiro */
    bottom: 130px !important;
    left: 0 !important;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left !important;
    z-index: 5;
}

.hero-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: all var(--transition);
    margin: 0 5px !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    background-color: var(--gn-red);
    width: 28px;
    border-radius: 5px;
}

/* =================================================================
   SEÇÃO DE RECURSOS - Card que invade o hero
   ================================================================= */

.recursos-section {
    position: relative;
    z-index: 3;
    /* Overlap sobre o hero - deve bater com o padding-bottom do .hero-slide */
    margin-top: -100px;
    padding-bottom: 80px;
}

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

.recursos-card {
    background-color: #f5f6f8;
    border-radius: 8px;
    padding: 48px 56px;
}

.recursos-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recursos-swiper {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.recursos-nav {
    flex: 0 0 auto;
    width: 32px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.recursos-nav::after {
    content: '';
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--gn-navy);
    border-right: 2px solid var(--gn-navy);
    transition: border-color 0.3s ease;
}

.recursos-prev::after {
    transform: rotate(-135deg);
    margin-left: 6px;
}

.recursos-next::after {
    transform: rotate(45deg);
    margin-right: 6px;
}

.recursos-nav:hover::after {
    border-color: var(--gn-red);
}

.recursos-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.recursos-nav.swiper-button-disabled:hover::after {
    border-color: var(--gn-navy);
}

.recursos-nav.swiper-button-lock {
    display: none;
}

.recurso-item {
    text-align: left;
}

.recurso-icone {
    margin-bottom: 20px;
    height: 48px;
    display: flex;
    align-items: flex-end;
}

.recurso-icone img {
    height: 44px;
    width: auto;
    display: block;
}

.recurso-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gn-navy);
    margin: 0 0 10px;
    line-height: 1.3;
}

.recurso-descricao {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

/* =================================================================
   RESPONSIVIDADE
   ================================================================= */

@media (max-width: 1536px) {
    .hero-content {
        padding: 0 60px;
    }

    .recursos-container {
        padding: 0 60px;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .recursos-card {
        padding: 40px 40px;
    }
}

@media (max-width: 1024px) {
    .hero-slide {
        min-height: 520px;
        padding-bottom: 90px;
    }

    .hero-button-prev,
    .hero-button-next {
        top: calc(50% - 45px);
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .recursos-section {
        margin-top: -90px;
        padding-bottom: 60px;
    }

    .hero-pagination {
        bottom: 120px !important;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 440px;
        padding-bottom: 50px;
    }

    .hero-overlay {
            background: linear-gradient(
    90deg, 
    rgb(22 57 95) 0%,
    rgb(22 57 95 / 63%) 35%, 
    rgba(22, 57, 95, 0.35) 70%, 
    rgba(22, 57, 95, 0.25) 100%);
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-btn {
        text-align: center;
        padding: 14px;
        font-size: 0.85rem;
    }

    .hero-button-prev,
    .hero-button-next {
        display: none;
    }

    .hero-pagination {
        bottom: 24px !important;
        text-align: center !important;
    }

    .recursos-section {
        margin-top: -50px;
        padding-bottom: 48px;
    }

    .recursos-card {
        padding: 32px 24px;
    }

    .recursos-carousel {
        gap: 8px;
    }

    .recursos-nav {
        width: 24px;
        height: 36px;
    }

    .recursos-nav::after {
        width: 14px;
        height: 14px;
    }

    .recursos-prev::after {
        margin-left: 4px;
    }

    .recursos-next::after {
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 0 30px;
    }

    .recursos-container {
        padding: 0 30px !important;
    }

    .recursos-card {
        padding: 28px 20px;
    }
}
