/* ==========================================================================
   CONECTADO EM SERGIPE — HOME REDESIGN: FAIXAS TEMÁTICAS, CONTRASTE & TIPOGRAFIA
   Conceito: "Uma tela para cada coisa", respiro generoso, alternância de fundos
   e tipografia com hierarquia e contraste refinado.
   ========================================================================== */

/* ── 1. TRANSITION & SPACING DA PRIMEIRA DOBRA (HERO + BUSCA) ── */
.home-search-band {
    position: relative;
    width: 100%;
    margin-top: -95px; /* Respiro equilibrado no desktop */
    padding-bottom: 3.5rem;
    z-index: 10;
}

@media (max-width: 991.98px) {
    .home-search-band {
        margin-top: -70px;
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .home-search-band {
        margin-top: 0 !important; /* Sem invadir nem encostar no texto do banner no celular */
        padding-top: 0.75rem !important;
        padding-bottom: 2rem !important;
    }

    .swiper-hero {
        height: 270px !important;
    }

    /* Hero Slide no Mobile: altura confortável e respiro amplo */
    .hero-swiper-slide-responsive {
        height: 270px !important;
        min-height: 270px !important;
        max-height: 270px !important;
        padding-top: 10px !important;
        padding-bottom: 12px !important;
    }

    .hero-slide-container-responsive {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .hero-slide-container-responsive h1 {
        font-size: clamp(1.2rem, 5.2vw, 1.5rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .hero-slide-container-responsive p {
        font-size: clamp(0.82rem, 3.4vw, 0.92rem) !important;
        line-height: 1.35 !important;
        opacity: 0.95 !important;
        margin-bottom: 0 !important;
    }

    /* No mobile as setas laterais são desnecessárias e poluem o texto (navega por touch swipe) */
    .home-hero-navigation {
        display: none !important;
    }
}

.home-search-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .home-search-panel {
    background: rgba(22, 27, 39, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.5);
}

/* Transição suave para o sumiço das mensagens da Hero */
.home-hero-copy {
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hero-copy.hero-copy-faded {
    opacity: 0 !important;
    transform: translateY(-12px) !important;
    pointer-events: none !important;
}

/* ── 2. SISTEMA DE FAIXAS EM LARGURA TOTAL (FULL-WIDTH BANDS) ── */
.home-band {
    width: 100%;
    position: relative;
    padding: 4.75rem 0; /* Espaçamento generoso: "uma tela para cada coisa" */
    transition: background-color 0.25s ease;
}

@media (max-width: 991.98px) {
    .home-band {
        padding: 3.25rem 0;
    }
}

@media (max-width: 575.98px) {
    .home-band {
        padding: 2.5rem 0;
    }
}

/* Remove margens verticais conflitantes herdadas de .home-content-section */
.home-band .home-content-section,
.home-band > .container {
    margin-bottom: 0 !important;
}

/* ── 3. ALTERNÂNCIA DE CORES E CONTRASTE CROMÁTICO POR FAIXA ── */

/* Faixa 1: Destaques (Fundo Claro Limpo) */
.home-band-featured {
    background-color: #ffffff;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
[data-theme="dark"] .home-band-featured {
    background-color: #0b1120;
    border-top-color: rgba(30, 41, 59, 0.8);
    border-bottom-color: rgba(30, 41, 59, 0.8);
}

/* Faixa 2: Categorias Populares (Fundo Neutro Suave / Pérola Sergipano) */
.home-band-categories {
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
[data-theme="dark"] .home-band-categories {
    background-color: #0f172a;
    border-bottom-color: rgba(30, 41, 59, 0.8);
}

/* Faixa 3: Prestadores em Destaque Geral (Fundo Claro Limpo) */
.home-band-providers {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
[data-theme="dark"] .home-band-providers {
    background-color: #0b1120;
    border-bottom-color: rgba(30, 41, 59, 0.8);
}

/* Faixa 4: CTA Comercial & Atendimento Suporte (Destaque Azul Sergipe Nobre) */
.home-band-cta {
    background: linear-gradient(135deg, #072a4d 0%, #0d3b66 60%, #001f3f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.home-band-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.22) 0%, transparent 60%);
    pointer-events: none;
}
[data-theme="dark"] .home-band-cta {
    background: linear-gradient(135deg, #05162a 0%, #09203f 60%, #000f24 100%);
}

/* Faixa 5: Avaliações da Comunidade (Fundo Neutro Suave) */
.home-band-reviews {
    background-color: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
[data-theme="dark"] .home-band-reviews {
    background-color: #0f172a;
    border-bottom-color: rgba(30, 41, 59, 0.8);
}

/* Faixa 6: Baixe o Aplicativo (Fundo Claro Limpo) */
.home-band-app {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
[data-theme="dark"] .home-band-app {
    background-color: #0b1120;
    border-bottom-color: rgba(30, 41, 59, 0.8);
}

/* ── 4. SISTEMA TIPOGRÁFICO DE CABEÇALHOS DE SEÇÃO (REFINADO & CONTRASTANTE) ── */
.home-section-header {
    margin-bottom: 2.25rem;
    position: relative;
}

@media (max-width: 767.98px) {
    .home-section-header {
        margin-bottom: 1.5rem;
    }
}

/* Badges Supertítulo de contexto */
.home-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.home-section-badge-primary {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
[data-theme="dark"] .home-section-badge-primary {
    background: rgba(13, 110, 253, 0.22);
    color: #60a5fa;
}

.home-section-badge-emerald {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
[data-theme="dark"] .home-section-badge-emerald {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.home-section-badge-indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}
[data-theme="dark"] .home-section-badge-indigo {
    background: rgba(99, 102, 241, 0.22);
    color: #818cf8;
}

.home-section-badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}
[data-theme="dark"] .home-section-badge-amber {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

/* Título de Seção Principal com Alto Contraste */
.home-section-title {
    font-size: clamp(1.45rem, 2.3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

[data-theme="dark"] .home-section-title {
    color: #f8fafc;
}

/* Subtítulo de Seção */
.home-section-subtitle {
    font-size: clamp(0.9rem, 1.05vw, 1.02rem);
    font-weight: 400;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0;
    max-width: 680px;
}

[data-theme="dark"] .home-section-subtitle {
    color: #94a3b8;
}

/* Botões de Ação do Cabeçalho ("Ver todos") */
.home-section-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0d6efd;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.06);
    border: 1px solid rgba(13, 110, 253, 0.15);
    transition: all 0.2s ease;
}
.home-section-action-btn:hover {
    background: #0d6efd;
    color: #ffffff;
    transform: translateX(2px);
}
[data-theme="dark"] .home-section-action-btn {
    background: rgba(13, 110, 253, 0.15);
    color: #60a5fa;
    border-color: rgba(13, 110, 253, 0.3);
}
[data-theme="dark"] .home-section-action-btn:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Ajustes específicos do bloco de CTA dentro da Faixa Destaque */
.home-band-cta .card-planos-cta {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff;
}
.home-band-cta .card-planos-cta h4,
.home-band-cta .card-planos-cta h5 {
    color: #ffffff !important;
    font-weight: 800;
}
.home-band-cta .card-planos-cta p {
    color: #bfdbfe !important;
}
.home-band-cta .card-planos-cta .badge {
    background: rgba(251, 191, 36, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(251, 191, 36, 0.4);
}
.home-band-cta .card-planos-cta .btn-primary {
    background: #ffffff !important;
    color: #072a4d !important;
    border-color: #ffffff !important;
}
.home-band-cta .card-planos-cta .btn-primary:hover {
    background: #f1f5f9 !important;
    transform: translateY(-2px);
}
.home-band-cta .card-planos-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}
.home-band-cta .card-planos-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ── 5. SUPORTE CONECTADO EM SERGIPE & BOTÃO WHATSAPP (ALTO CONTRASTE MODOS CLARO E ESCURO) ── */
.home-support-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 20px !important;
}

[data-theme="dark"] .home-support-card,
[data-bs-theme="dark"] .home-support-card {
    background: rgba(15, 23, 42, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.home-support-icon {
    background: #25d366 !important;
    color: #ffffff !important;
    font-size: 1.85rem !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
}

/* Botão Oficial Falar com o suporte WhatsApp: Verde vibrante, texto branco puro e alto contraste */
.home-support-whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.home-support-whatsapp i {
    color: #ffffff !important;
    font-size: 1.35rem !important;
}

.home-support-whatsapp:hover,
.home-support-whatsapp:focus {
    background: #1ebe5d !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6) !important;
}

/* Blindagem explícita para o Modo Escuro */
[data-theme="dark"] .home-support-whatsapp,
[data-bs-theme="dark"] .home-support-whatsapp,
html[data-theme="dark"] .home-support-whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

[data-theme="dark"] .home-support-whatsapp i,
[data-bs-theme="dark"] .home-support-whatsapp i,
html[data-theme="dark"] .home-support-whatsapp i {
    color: #ffffff !important;
}

.home-support-plans-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.home-support-plans-link:hover {
    color: #ffffff !important;
}

/* ── 6. INSTALAÇÃO FACILITADA DO APLICATIVO (CLEAN, MODERNO E DIRETO) ── */
.app-install-easy-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 3.5rem 3.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .app-install-easy-card,
[data-bs-theme="dark"] .app-install-easy-card,
html[data-theme="dark"] .app-install-easy-card {
    background: #111a2e;
    border-color: #1e293b;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991.98px) {
    .app-install-easy-card {
        padding: 2.5rem 1.75rem;
    }
}

.app-install-benefits-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.app-install-benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .app-install-benefit-pill,
[data-bs-theme="dark"] .app-install-benefit-pill,
html[data-theme="dark"] .app-install-benefit-pill {
    background: #17233d;
    border-color: #243556;
    color: #e2e8f0;
}

/* Botão Principal de Instalação 1 Clique */
.btn-app-install-pulse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-app-install-pulse:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0043a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13, 110, 253, 0.45);
    color: #ffffff !important;
}

[data-theme="dark"] .btn-app-install-pulse,
[data-bs-theme="dark"] .btn-app-install-pulse,
html[data-theme="dark"] .btn-app-install-pulse {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 26px rgba(37, 99, 235, 0.4);
}

/* Smartphone Showcase Minimalista */
.app-phone-showcase {
    perspective: 1000px;
}

.app-phone-frame {
    width: 250px;
    height: 330px;
    background: #ffffff;
    border: 6px solid #1e293b;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .app-phone-frame,
[data-bs-theme="dark"] .app-phone-frame,
html[data-theme="dark"] .app-phone-frame {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.65);
}

.app-phone-speaker {
    width: 50px;
    height: 4px;
    background: #94a3b8;
    border-radius: 4px;
    margin: 10px auto 6px;
}

.app-phone-screen-content {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.app-phone-screen-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-phone-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.app-phone-banner-mini {
    background: linear-gradient(135deg, #072a4d 0%, #0d6efd 100%);
    border-radius: 14px;
    padding: 12px 14px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.app-phone-action-box {
    padding-top: 8px;
}

