/**
 * Custom Page Layouts Stylesheet - Intelligence TI
 * Stylesheet shared by page-claro.php and page-escuro.php page templates.
 * Styles Gutenberg content dynamically based on theme mode.
 */

/* ==========================================================================
   1. Componentes e Estrutura Compartilhada (Shared Layout Components)
   ========================================================================== */

/* Wrapper Principal do Template */
.s-page-layout {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding-bottom: var(--space-xl);
    transition: var(--transition-smooth);
}

/* Seção Hero do Template */
.s-tmpl-hero {
    position: relative;
    padding: var(--space-xl) 0 var(--space-lg) 0;
    overflow: hidden;
}

.s-tmpl-hero__container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: 40px;
}

.s-tmpl-hero__tag {
    align-self: flex-start;
}

.s-tmpl-hero__title {
    margin: 0;
    font-family: var(--font-headline);
    text-transform: uppercase;
    font-weight: var(--weight-regular);
}

.s-tmpl-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

/* Seção de Conteúdo do Editor WordPress (Folha em Branco) */
.s-tmpl-content {
    padding: var(--space-lg) 0;
}

.s-tmpl-content__container {
    max-width: 800px;
}

.s-tmpl-content__wysiwyg {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Espaçamento comum para os blocos gerados pelo editor do WordPress */
.s-tmpl-content__wysiwyg p {
    margin-bottom: var(--space-md);
}

.s-tmpl-content__wysiwyg h1,
.s-tmpl-content__wysiwyg h2,
.s-tmpl-content__wysiwyg h3,
.s-tmpl-content__wysiwyg h4,
.s-tmpl-content__wysiwyg h5,
.s-tmpl-content__wysiwyg h6 {
    font-family: var(--font-headline);
    text-transform: uppercase;
    font-weight: var(--weight-regular);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.s-tmpl-content__wysiwyg h1 {
    font-size: 3rem;
}

.s-tmpl-content__wysiwyg h2 {
    font-size: 2.25rem;
}

.s-tmpl-content__wysiwyg h3 {
    font-size: 1.75rem;
}

.s-tmpl-content__wysiwyg h4 {
    font-size: 1.4rem;
}

.s-tmpl-content__wysiwyg h5 {
    font-size: 1.15rem;
}

.s-tmpl-content__wysiwyg h6 {
    font-size: 1rem;
}


/* ==========================================================================
   2. Estilos Exclusivos do Layout Escuro (.s-page-layout--escuro)
   ========================================================================== */

.s-page-layout--escuro {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.s-page-layout--escuro .s-tmpl-hero {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.s-page-layout--escuro .s-tmpl-hero__title {
    color: var(--color-text);
}

.s-page-layout--escuro .s-tmpl-hero__subtitle {
    color: var(--color-text-muted);
}

/* Configuração de Cores para Títulos e Textos no Editor (Escuro) */
.s-page-layout--escuro .s-tmpl-content__wysiwyg {
    color: var(--color-text-muted);
}

.s-page-layout--escuro .s-tmpl-content__wysiwyg h1,
.s-page-layout--escuro .s-tmpl-content__wysiwyg h2,
.s-page-layout--escuro .s-tmpl-content__wysiwyg h3,
.s-page-layout--escuro .s-tmpl-content__wysiwyg h4,
.s-page-layout--escuro .s-tmpl-content__wysiwyg h5,
.s-page-layout--escuro .s-tmpl-content__wysiwyg h6 {
    color: var(--color-text);
}


/* ==========================================================================
   3. Estilos Exclusivos do Layout Claro (.s-page-layout--claro)
   ========================================================================== */

.s-page-layout--claro {
    background-color: #ffffff;
    color: #1a1a1a;
}

.s-page-layout--claro .s-tmpl-hero {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.s-page-layout--claro .s-tmpl-hero__title {
    color: #1a1a1a;
}

.s-page-layout--claro .s-tmpl-hero__subtitle {
    color: rgba(26, 26, 26, 0.7);
}

/* Configuração de Cores para Títulos e Textos no Editor (Claro) */
.s-page-layout--claro .s-tmpl-content__wysiwyg {
    color: rgba(26, 26, 26, 0.8);
}

.s-page-layout--claro .s-tmpl-content__wysiwyg h1,
.s-page-layout--claro .s-tmpl-content__wysiwyg h2,
.s-page-layout--claro .s-tmpl-content__wysiwyg h3,
.s-page-layout--claro .s-tmpl-content__wysiwyg h4,
.s-page-layout--claro .s-tmpl-content__wysiwyg h5,
.s-page-layout--claro .s-tmpl-content__wysiwyg h6 {
    color: #1a1a1a;
}