/* front/css/index-colors.css */

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA A PÁGINA INICIAL E QUEM SOMOS
   ========================================================================== */

/* -------------------------------------------------------------
   MODO ESCURO E GERAL (Compartilhado)
   ------------------------------------------------------------- */
body.page-index, body.page-index * {
    font-family: 'Inter', sans-serif !important;
}

body:not(.light-theme).page-index *:not(.ai-assistant-container):not(.ai-assistant-container *):not(.btn):not(.btn *):not(.header-theme-btn) {
    color: #f9f9f9 !important;
}

.text-bg-light {
    padding: 0.2rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: fit-content !important;
    max-width: 100% !important;
    display: inline-block !important;
}

.page-index .feature-card-no-border,
.page-quem-somos .block-light {
    padding: 2rem !important;
    border-radius: var(--border-radius) !important;
    height: 100%;
}

.page-index #ai-answer-area {
    padding: 3rem !important;
    border-radius: var(--border-radius) !important;
}

/* -------------------------------------------------------------
   MODO CLARO (Apenas Cores e Backgrounds)
   ------------------------------------------------------------- */

body.light-theme.page-index,
body.light-theme.page-quem-somos {
    background-color: #CBDBEB !important; /* Modificado: Fundo da Index no tema claro */
}

body.light-theme.page-index .text-bg-light,
body.light-theme.page-index .text-bg-light *:not(.btn):not(.btn *),
body.light-theme.page-quem-somos .text-bg-light,
body.light-theme.page-quem-somos .text-bg-light *:not(.btn):not(.btn *) {
    background-color: transparent !important;
    color: #000000 !important;
}

body.light-theme.page-index .cta-section p.text-bg-light {
    background-color: #4A64C8 !important;
    color: #ffffff !important;
}

body.light-theme.page-index .feature-card-no-border,
body.light-theme.page-index #ai-answer-area,
body.light-theme.page-index .info-paragraphs-box,
body.light-theme.page-quem-somos .block-light,
body.light-theme.page-index .ai-assistant-container.widget-style {
    background-color: #ffffff !important;
}

body.light-theme.page-index .feature-card-no-border,
body.light-theme.page-index .feature-card-no-border *:not(.btn):not(.btn *),
body.light-theme.page-index .info-paragraphs-box,
body.light-theme.page-index .info-paragraphs-box *:not(.btn):not(.btn *),
body.light-theme.page-quem-somos .block-light,
body.light-theme.page-quem-somos .block-light *:not(.btn):not(.btn *) {
    color: #1a416c !important;
}

body.light-theme.page-index .info-paragraphs-box {
    border: 2px solid #598dbd !important;
}

body.light-theme.page-index .ai-assistant-container.widget-style,
body.light-theme.page-index .ai-assistant-container.widget-style *:not(.btn):not(.btn *),
body.light-theme.page-index #ai-answer-area,
body.light-theme.page-index #ai-answer-area *:not(.btn):not(.btn *) {
    color: #000000 !important;
}

body.light-theme.page-index .ai-assistant-container .std-input {
    background-color: #f0f5fa !important;
    color: #000000 !important;
    border-color: #829ab1 !important;
}

body.light-theme.page-index .landing-hero-image {
    background-color: #ffffff !important;
}

/* -------------------------------------------------------------
   MODIFICAÇÕES ESTRUTURAIS E LAYOUT DA LANDING PAGE
   ------------------------------------------------------------- */

/* Containers Base das Seções */
.landing-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6rem 2rem;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.landing-section:last-child {
    border-bottom: none;
}

.landing-content-wrapper {
    width: 100%;
    max-width: 120rem;
    display: flex;
    flex-direction: column;
}

/* Seção 1: Hero (Split Layout) */
.dual-layout {
    flex-direction: row;
    align-items: center;
    gap: 6rem;
}

.hero-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-image-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-action-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.hero-action-buttons .btn {
    font-size: 1.8rem;
    padding: 1.2rem 3rem;
    min-width: 18rem;
}

.info-paragraphs-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: left;
}

/* Seção 2: Features Grid */
.section-main-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
}

.feature-card-no-border h3 {
    font-size: 2.2rem !important;
    margin-bottom: 1rem;
    color: var(--selected-slot-border) !important;
}

.feature-card-no-border p {
    font-size: 1.7rem !important;
    line-height: 1.6;
    margin: 0;
}

/* Seção 3: AI Assistant Widget */
.ai-section {
    background-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .ai-section {
    background-color: rgba(255, 255, 255, 0.4);
}

.ai-wrapper {
    align-items: center;
    max-width: 90rem; /* Um pouco mais estreito para focar a atenção */
}

.ai-header-text {
    text-align: center;
    margin-bottom: 3rem;
}

.ai-assistant-container.widget-style {
    width: 100%;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.icon-only-btn {
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste do botão IA para se parecer com um input de chat */
#ai-question {
    border-radius: 3rem;
    padding-left: 2rem;
    font-size: 1.6rem;
}

#ai-send-btn {
    border-radius: 3rem;
}

/* Tipografia Hero unificada */
body.page-index .landing-hero-text {
    font-size: 4.8rem !important; 
    line-height: 1.2;
}

body:not(.light-theme).page-index .landing-hero-text,
body:not(.light-theme).page-index .info-paragraphs-box,
body:not(.light-theme).page-index .info-paragraphs-box * {
    color: #ffffff !important;
}

body.light-theme.page-index .landing-hero-text {
    color: #000000 !important;
}

/* Isolamento de imagens */
body.light-theme.page-index img,
body.light-theme.page-quem-somos img {
    mix-blend-mode: normal !important;
    filter: none !important;
    opacity: 1 !important;
}

/* -------------------------------------------------------------
   MODO ESCURO - CORES DE FUNDO E ALINHAMENTO
   ------------------------------------------------------------- */
body:not(.light-theme).page-index .feature-card-no-border,
body:not(.light-theme).page-index .info-paragraphs-box,
body:not(.light-theme).page-index .ai-assistant-container.widget-style,
body:not(.light-theme).page-quem-somos .block-light {
    background-color: #333333 !important;
}

body:not(.light-theme).page-index .feature-card-no-border,
body:not(.light-theme).page-index .feature-card-no-border *:not(.btn):not(.btn *),
body:not(.light-theme).page-index .info-paragraphs-box,
body:not(.light-theme).page-index .info-paragraphs-box *:not(.btn):not(.btn *),
body:not(.light-theme).page-index #ai-answer-area,
body:not(.light-theme).page-index #ai-answer-area *:not(.btn):not(.btn *),
body:not(.light-theme).page-index .ai-assistant-container,
body:not(.light-theme).page-index .ai-assistant-container *:not(.btn):not(.btn *) {
    color: #f9f9f9 !important;
}

body:not(.light-theme).page-index .info-paragraphs-box,
body:not(.light-theme).page-index .ai-assistant-container.widget-style {
    border: 1px solid var(--gray-900) !important;
}

body:not(.light-theme).page-index .ai-assistant-container .std-input {
    background-color: #1a1a1a !important;
    border-color: var(--gray-700) !important;
}

/* -------------------------------------------------------------
   RESPONSIVIDADE E MOBILE (MOBILE FRIENDLY)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .dual-layout {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-action-buttons {
        justify-content: center;
    }

    .info-paragraphs-box {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .landing-section.mf-section {
        padding: 3rem 1.5rem;
    }

    body.page-index .landing-hero-text {
        font-size: 3.2rem !important; 
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-main-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .hero-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-action-buttons .btn {
        width: 100%;
    }

    .ai-assistant-container.widget-style {
        padding: 1.5rem;
    }
}
