/* ========================================
   PILLAR CONTENT PAGES - VISUAL REFINEMENT
   ======================================== */

/* 1️⃣ PRIMEIRO DOBRA & HERO (Compacto mobile) */
.pillar-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem 1rem 1.5rem; /* Ainda mais compacto no topo */
    text-align: center;
    border-bottom: 1px solid var(--color-border-subtle, #e2e8f0);
}

.pillar-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem; 
    line-height: 1.2;
    color: var(--color-text-heading, #1a202c);
    max-width: 900px;
    margin: 0 auto 0.5rem; /* Mínima margem */
    font-weight: 700;
}

@media (min-width: 768px) {
    .pillar-hero {
        padding: 5rem 2rem 3rem;
    }
    .pillar-hero h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
}

.pillar-meta {
    font-size: 0.8rem;
    color: var(--color-text-light, #718096);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 0;
}

/* 2️⃣ CONTAINER & LARGURA */
.pillar-container {
    max-width: 680px; /* Largura perfeita para leitura (~65-75 caracteres) */
    margin: 0 auto;
    padding: 2rem 1.25rem 6rem; /* Padding bottom generoso para transição footer */
}

@media (min-width: 768px) {
    .pillar-container {
        padding: 3.5rem 2rem 8rem;
    }
}

/* 3️⃣ RITMO H2 (Marcos de leitura) */
.pillar-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--color-text-heading, #1a202c);
    margin-top: 4rem; /* Mais espaço antes (respiro) */
    margin-bottom: 1rem; /* Menos espaço depois (conexão) */
    padding-top: 0.5rem;
    font-weight: 700;
    scroll-margin-top: 6rem;
    position: relative;
}

.pillar-content h2::before {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent, #e07a5f);
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .pillar-content h2 {
        font-size: 2rem;
        margin-top: 5rem; /* Capítulos bem definidos */
    }
}

/* H3 (Subcapítulos discretos) */
.pillar-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.35;
    color: #2d3748;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    scroll-margin-top: 6rem;
}

@media (min-width: 768px) {
    .pillar-content h3 {
        font-size: 1.35rem;
    }
}

/* PARÁGRAFOS */
.pillar-content p {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-body, #2d3748);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .pillar-content p {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}

/* LISTAS */
.pillar-content ul {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
}

.pillar-content ul li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-body, #2d3748);
    margin-bottom: 0.85rem;
    padding-left: 0.5rem;
}

.pillar-content ul li::marker {
    color: var(--color-primary, #606c38);
}

/* 7️⃣ IMAGENS (Ajuste Mobile Pequeno) */
.pillar-image {
    margin: 2.5rem 0 1.5rem;
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Sombra suavizada */
    background-color: var(--color-bg-soft, #f7fafc);
    width: 100%;
    
    /* Padrão Mobile */
    aspect-ratio: 16/9; 
    max-height: 280px;
}

/* 2️⃣ Ajuste para Telas Pequenas (< 390px) */
@media (max-width: 389px) {
    .pillar-image {
        aspect-ratio: 2/1; /* Mais retangular */
        max-height: 200px; /* Redução de altura agressiva */
        margin: 2rem 0 1rem;
    }
}

@media (min-width: 768px) {
    .pillar-image {
        aspect-ratio: 21/9;
        max-height: 400px;
        width: 110%; /* Sangria editorial */
        margin-left: -5%;
    }
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.8s ease-out;
}

.pillar-image:hover img {
    transform: scale(1.02);
}


.pillar-image figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem; /* Menor */
    color: #718096; /* Suave */
    text-align: center;
    padding: 0.6rem 1rem;
    background: white;
    border-top: 1px solid #f7fafc;
}

/* 1️⃣0️⃣ MICROANIMAÇÕES (Ajuste Final - Suave) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(10px); /* Apenas 10px de movimento */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Destaque Final */
.pillar-highlight {
    background: linear-gradient(135deg, #f7faf7 0%, #edf2ed 100%);
    border-left: 3px solid var(--color-primary, #606c38);
    padding: 1.75rem;
    margin: 2.5rem 0;
    border-radius: 8px;
}

/* Box do Ebook no final */
.pillar-highlight p {
    font-size: 1.05rem;
    color: #2d3748;
}

/* Navegação Rodapé */
.pillar-nav {
    border-top: 1px solid #edf2f7;
    margin-top: 4rem;
    padding-top: 2.5rem;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pillar-nav {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.pillar-nav-item {
    display: block;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pillar-nav-item:hover {
    border-color: #cbd5e0;
    background: #fff;
    transform: translateY(-1px); /* Menos movimento */
}

.pillar-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a0aec0;
    margin-bottom: 0.25rem;
    display: block;
}

.pillar-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}
