/* ============================================================
   ESTILOS DA LANDING PAGE (HOME.CSS)
   Caminho: static/css/pages/home.css
============================================================ */

/* ------------------------------------------------------------
   1. Hero Section Estilo Panorâmico (Fusão com Degradê)
------------------------------------------------------------ */
.zyon-hero-section {
    position: relative;
    background-color: var(--azul-escuro);
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

/* Área da foto posicionada à direita */
.zyon-hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    height: 100%;
    z-index: 1;
}

.zyon-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

/* Máscara de transição em curva suave */
.zyon-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--azul-escuro) 0%,
        color-mix(in srgb, var(--azul-escuro) 96.0%, transparent) 15%,
        color-mix(in srgb, var(--azul-escuro) 85.0%, transparent) 28%,
        color-mix(in srgb, var(--azul-escuro) 65.0%, transparent) 42%,
        color-mix(in srgb, var(--azul-escuro) 35.0%, transparent) 58%,
        color-mix(in srgb, var(--azul-escuro) 12.0%, transparent) 72%,
        transparent 88%
    );
    pointer-events: none;
}

/* Container de conteúdo à esquerda */
.zyon-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.zyon-hero-content {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.zyon-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.18;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.zyon-hero-title .text-highlight-pink {
    color: var(--cor-destaque, var(--cor-destaque));
}

.zyon-hero-subtitle {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #E2E8F0;
    margin-bottom: 2.25rem;
}

/* Grupo de Botões de Ação */
.zyon-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-hero-primary-pink {
    background-color: var(--cor-destaque, var(--cor-destaque)) !important;
    color: #FFFFFF !important;
    padding: 0.95rem 1.85rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 10px);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--cor-destaque) 42.0%, transparent);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-hero-primary-pink:hover {
    background-color: var(--cor-destaque-escuro, var(--cor-destaque-escuro)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--cor-destaque) 52.0%, transparent);
}

.btn-hero-secondary-dark {
    background-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.9rem 1.65rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm, 10px);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-hero-secondary-dark:hover {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   2. Grid dos 3 Eixos Institucionais
------------------------------------------------------------ */
.features-grid {
    max-width: 1240px;
    margin: 3.5rem auto 4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: #FFFFFF;
    border: 1px solid var(--borda-cinza, #E2E8F0);
    border-radius: var(--radius-md, 14px);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.icon-bg-blue { background-color: color-mix(in srgb, var(--azul-vibrante) 10.0%, transparent); }
.icon-bg-pink { background-color: color-mix(in srgb, var(--cor-destaque) 10.0%, transparent); }
.icon-bg-green { background-color: rgba(4, 120, 87, 0.12); }

.icon-blue { color: var(--azul-vibrante, var(--azul-vibrante)); width: 26px; height: 26px; }
.icon-pink { color: var(--cor-destaque, var(--cor-destaque)); width: 26px; height: 26px; }
.icon-green { color: #047857; width: 26px; height: 26px; }

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--texto-escuro, #0F172A);
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--texto-cinza, #475569);
    margin: 0;
}

/* ------------------------------------------------------------
   3. Vitrine e Carrossel Polo Glauber Rocha
------------------------------------------------------------ */
.espaco-showcase-card {
    max-width: 1240px;
    margin: 0 auto 4.5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background-color: #FFFFFF;
    border: 1px solid var(--borda-cinza, #E2E8F0);
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.espaco-carousel-container {
    position: relative;
    background-color: transparent;
    min-height: 380px;
    outline: none;
    box-shadow: none;
}

.carousel-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.espaco-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    top: 1.25rem;
    right: auto;
    bottom: auto;
    left: 1.25rem;
    width: auto;
    height: auto;
    background-color: transparent;
    backdrop-filter: none;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0;
    border: 0;
    border-radius: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    z-index: 5;
}

.carousel-nav-bar {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    z-index: 10;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.carousel-control {
    background-color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--texto-escuro, #0F172A);
    transition: background-color 0.2s;
}

.carousel-control:hover {
    background-color: #FFFFFF;
}

.carousel-control svg {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    width: 22px;
    border-radius: 999px;
    background-color: var(--cor-destaque, var(--cor-destaque));
}

.espaco-showcase-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.espaco-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--azul-vibrante, var(--azul-vibrante));
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.espaco-title {
    font-size: 1.95rem;
    font-weight: 800;
    color: var(--texto-escuro, #0F172A);
    margin-bottom: 1.2rem;
    line-height: 1.25;
}

.espaco-text {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--texto-cinza, #475569);
    margin-bottom: 1rem;
}

.espaco-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.pill-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--fundo-cinza, #F8FAFC);
    border: 1px solid var(--borda-cinza, #E2E8F0);
    color: var(--texto-escuro, #0F172A);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.pill-item i {
    color: #047857;
    width: 15px;
    height: 15px;
}

/* ------------------------------------------------------------
   4. Passo a Passo (4 Etapas)
------------------------------------------------------------ */
.steps-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.steps-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--texto-escuro, #0F172A);
    margin-bottom: 0.75rem;
}

.steps-subtitle {
    font-size: 1rem;
    color: var(--texto-cinza, #475569);
    line-height: 1.6;
    margin: 0;
}

.steps-grid {
    max-width: 1240px;
    margin: 0 auto 4.5rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background-color: #FFFFFF;
    border: 1px solid var(--borda-cinza, #E2E8F0);
    border-radius: var(--radius-md, 14px);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.03));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.step-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #CBD5E1;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.step-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: color-mix(in srgb, var(--azul-vibrante) 8.0%, transparent);
    color: var(--azul-vibrante, var(--azul-vibrante));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.step-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--texto-escuro, #0F172A);
    margin-bottom: 0.65rem;
}

.step-card-description {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--texto-cinza, #475569);
    margin: 0;
}

/* ------------------------------------------------------------
   5. Banner Call to Action Final
------------------------------------------------------------ */
.cta-banner {
    max-width: 960px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.cta-content {
    background: linear-gradient(135deg, var(--azul-vibrante, var(--azul-vibrante)) 0%, var(--azul-escuro) 100%);
    border-radius: var(--radius-lg, 16px);
    padding: 3.5rem 2rem;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 14px 36px color-mix(in srgb, var(--azul-vibrante) 22.0%, transparent);
}

.cta-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--cor-amarelo, var(--cor-amarelo));
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.cta-alert-icon {
    width: 16px;
    height: 16px;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.cta-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #CBD5E1;
    max-width: 650px;
    margin: 0 auto 2.2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

.btn-download-primary {
    background-color: var(--cor-destaque, var(--cor-destaque)) !important;
    color: #FFFFFF !important;
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 10px);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--cor-destaque) 42.0%, transparent);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-download-primary:hover {
    background-color: var(--cor-destaque-escuro, var(--cor-destaque-escuro)) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--cor-destaque) 52.0%, transparent);
}

/* ------------------------------------------------------------
   6. Widget da IA (Orientador Virtual Flutuante)
------------------------------------------------------------ */
.public-ai-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 990;
}

.public-ai-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--cor-amarelo, var(--cor-amarelo));
    color: #713F12;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.public-ai-fab:hover {
    transform: scale(1.08);
    background-color: #FACC15;
}

.public-ai-tooltip {
    position: absolute;
    bottom: 66px;
    right: 0;
    background: #0F172A;
    color: #FFFFFF;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.public-ai-tooltip.show {
    opacity: 1;
}

.public-ai-chat {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 500px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--borda-cinza, #E2E8F0);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.public-ai-chat.hidden {
    display: none !important;
}

.public-ai-chat-header {
    background: var(--azul-escuro);
    color: #FFFFFF;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.public-ai-chat-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.assistente-icon-btn-sm {
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.assistente-icon-btn-sm:hover {
    color: #FFFFFF;
}

.public-ai-chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assistente-balao.resposta {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
}

.assistente-rotulo {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--azul-vibrante, var(--azul-vibrante));
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.public-ai-chat-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
}

.assistente-composer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#public-ai-chat-input {
    flex: 1;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    resize: none;
    outline: none;
    font-family: inherit;
}

#public-ai-chat-input:focus {
    border-color: var(--azul-vibrante, var(--azul-vibrante));
}

.assistente-composer-enviar {
    background: var(--azul-vibrante, var(--azul-vibrante));
    color: #FFFFFF;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.assistente-composer-enviar:hover {
    background: var(--azul-escuro);
}

/* ------------------------------------------------------------
   7. Responsividade Unificada
------------------------------------------------------------ */
@media (max-width: 900px) {
    .zyon-hero-section {
        min-height: auto;
        position: relative;
    }

    .zyon-hero-media {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0.22;
        z-index: 1;
    }

    .zyon-hero-overlay {
        background: linear-gradient(180deg, color-mix(in srgb, var(--azul-escuro) 80.0%, transparent) 0%, var(--azul-escuro) 100%);
    }

    .zyon-hero-container {
        padding: 3.5rem 1.25rem 4rem;
    }

    .zyon-hero-title {
        font-size: 2.15rem;
        line-height: 1.2;
    }

    .zyon-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .zyon-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary-pink,
    .btn-hero-secondary-dark {
        width: 100%;
        justify-content: center;
    }

    .espaco-showcase-card {
        grid-template-columns: 1fr;
    }

    .espaco-showcase-content {
        padding: 2rem 1.5rem;
    }

    .cta-content {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .public-ai-widget-container {
        right: 16px;
        bottom: 16px;
    }

    .zyon-hero-title {
        font-size: 1.8rem;
    }

    .public-ai-chat {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 84px;
        height: 420px;
    }
}
