/* ===================== RESET & BASE ===================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

:root {
    --ink: #3D1A0D;
    --ink-soft: #76331A;
    --ink-warm: #8C3D22;
    --ink-mid: #A84520;
    --gold: #FFBD2C;
    --gold-light: #FFD97A;
    --gold-deep: #F87319;
    --cream: #FFEEC8;
    --cream-soft: #FFF8ED;
    --cream-dark: #F5DFB0;
    --parchment: #FAF0DC;
    --text: #2E1206;
    --text-soft: #5A2D0C;
    --text-muted: #A0622A;
    --border: rgba(168, 69, 32, 0.14);
    --border-solid: #C4763A;
    --border-warm: rgba(248, 115, 25, 0.22);
    --success: #2a7d4f;
    --danger: #c0392b;
    --warning: #c07a00;
    --shadow-sm: 0 1px 4px rgba(61, 26, 13, 0.08);
    --shadow-md: 0 4px 18px rgba(61, 26, 13, 0.12);
    --shadow-lg: 0 12px 40px rgba(61, 26, 13, 0.16);
    --shadow-warm: 0 8px 32px rgba(168, 69, 32, 0.18);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lato', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--ink-soft);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ===================== HEADER (mesmo do index) ===================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--ink);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--cream-soft);
    letter-spacing: .02em;
}

.logo-sub {
    font-family: 'Lato', sans-serif;
    font-size: .68rem;
    color: var(--gold);
    letter-spacing: .12em;
    font-weight: 600;
    text-transform: uppercase;
}

#menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

#menu a {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s ease;
}

#menu a:hover {
    color: var(--cream-soft);
    background: rgba(255, 255, 255, .08);
}

.btn-cta-nav {
    background: var(--ink-mid) !important;
    color: var(--cream-soft) !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-cta-nav:hover {
    background: var(--ink-warm) !important;
}

#btn-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream-soft);
    border-radius: 2px;
    transition: 0.3s ease;
}

#btn-mobile.open .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#btn-mobile.open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

#btn-mobile.open .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    #btn-mobile {
        display: flex;
    }

    #menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--ink);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 0 24px;
        gap: 2px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
        display: none;
    }

    #menu.active {
        display: flex;
    }

    #menu a {
        padding: 12px 24px;
        border-radius: 0;
        font-size: .95rem;
    }

    .btn-cta-nav {
        margin: 8px 16px 0;
        justify-content: center;
        border-radius: 6px !important;
    }
}

/* ===================== SECTION HELPERS ===================== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: 14px;
}

.section-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink-mid);
    flex-shrink: 0;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.section-title em {
    font-style: italic;
    color: var(--ink-mid);
}

.section-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===================== REVEAL ANIMATION ===================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== HERO BLOG ===================== */
.blog-hero {
    padding: 140px 2rem 80px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--parchment) 50%, var(--cream-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 70% 60%, rgba(255, 189, 44, 0.12), transparent 60%);
    pointer-events: none;
}

.blog-hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 55% 50% at 75% 50%, rgba(255, 189, 44, 0.08) 0%, transparent 60%);
}

.blog-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 5.5vw, 66px);
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--ink-soft);
    margin-bottom: 16px;
    position: relative;
}

.blog-hero h1 em {
    font-style: italic;
    color: var(--ink-mid);
}

.blog-hero p {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

/* ===================== FILTROS ===================== */
.cat-bar {
    max-width: 1200px;
    margin: -24px auto 40px;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-btn {
    background: var(--cream-soft);
    border: 1.5px solid var(--border);
    padding: 9px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.cat-btn.active,
.cat-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
    transform: translateY(-2px);
}

/* ===================== SEARCH ===================== */
.search-bar {
    max-width: 480px;
    margin: 0 auto 40px;
    padding: 0 2rem;
}

.search-input-wrap {
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    background: var(--cream-soft);
    color: var(--text);
    transition: 0.2s;
    outline: none;
}

.search-input-wrap input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 189, 44, 0.2);
}

/* ===================== FEED GRID ===================== */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 80px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* ===================== POST CARD ===================== */
.post-card {
    background: var(--cream-soft);
    border-radius: 18px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--ink-mid) 0%, var(--ink-soft) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(118, 51, 26, 0.15);
    border-color: rgba(248, 115, 25, 0.2);
}

.post-card:hover::before {
    transform: scaleX(1);
}

.post-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--ink-soft), var(--ink-mid));
    position: relative;
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.25;
    color: white;
}

.post-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: var(--ink);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.post-meta i {
    font-size: 10px;
    margin-right: 4px;
}

.post-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-body p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
    flex: 1;
}

.read-more {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s, color 0.2s;
}

.read-more:hover,
.post-card:hover .read-more {
    gap: 10px;
    color: var(--gold-deep);
}

/* ===================== ESTADOS VAZIO / CARREGANDO ===================== */
.feed-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.feed-empty i {
    display: block;
    font-size: 52px;
    opacity: 0.2;
    margin-bottom: 16px;
}

.feed-skeleton {
    background: linear-gradient(90deg, var(--cream-soft) 25%, var(--cream) 50%, var(--cream-soft) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 18px;
    height: 360px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===================== LOAD MORE ===================== */
.load-more-wrap {
    text-align: center;
    margin-top: 48px;
}

.btn-load-more {
    background: var(--ink-soft);
    color: var(--cream);
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-load-more:hover {
    background: var(--gold-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 115, 25, 0.3);
}

/* ===================== ARTIGO (VIEW DE LEITURA) ===================== */
[hidden] {
    display: none !important;
}

#article-loading,
#article-erro {
    padding-top: 120px;
}

.article-back {
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 2rem 20px;
}

.btn-voltar-feed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: gap 0.2s, color 0.2s;
    padding: 0;
    text-decoration: none;
}

.btn-voltar-feed:hover {
    gap: 12px;
    color: var(--gold-deep);
}

.article-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 2rem 80px;
}

.article-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin-bottom: 32px;
    box-shadow: 0 20px 50px rgba(61, 26, 13, 0.2);
}

.article-cat {
    display: inline-block;
    background: var(--gold);
    color: var(--ink);
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink-soft);
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1.5px solid var(--border);
}

.article-meta i {
    margin-right: 6px;
    font-size: 12px;
}

.article-body {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
}

.article-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 40px 0 16px;
    line-height: 1.25;
}

.article-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-mid);
    margin: 28px 0 12px;
}

.article-body p {
    margin-bottom: 18px;
    font-weight: 300;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 6px;
}

.article-body blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    margin: 28px 0;
    background: rgba(255, 189, 44, 0.07);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 17px;
    color: var(--ink-soft);
}

.article-body a {
    color: var(--gold-deep);
    text-decoration: underline;
}

.article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

/* ==========================================================
   FOOTER REFATORADO
   ========================================================== */

/* ── Wrapper geral ── */
/* ── Topo do footer ── */
/* ── Grid de 4 colunas ── */
/* ────────────────────────────────────────────
   COLUNA 1 · MARCA
──────────────────────────────────────────── */
/* ────────────────────────────────────────────
   TÍTULOS DAS COLUNAS — padrão compartilhado
──────────────────────────────────────────── */
/* ────────────────────────────────────────────
   COLUNA 2 · NAVEGAÇÃO (grade 2×N interna)
──────────────────────────────────────────── */
/* ────────────────────────────────────────────
   COLUNA 3 · REDES SOCIAIS
──────────────────────────────────────────── */
/* ────────────────────────────────────────────
   COLUNA 4 · FALE CONOSCO
──────────────────────────────────────────── */
/* Botão admin sutil */
/* ────────────────────────────────────────────
   SUB-FOOTER (barra inferior)
──────────────────────────────────────────── */
.footer-legal-links a:hover {
    color: var(--gold);
}

/* ════════════════════════════════════════════
   RESPONSIVIDADE DO FOOTER
   ════════════════════════════════════════════ */

/* Tablets — ≤ 1024px */
/* Mobile — ≤ 768px */
@media (max-width: 768px) {
    /* Centraliza logo e brand */
    /* Títulos das colunas centralizados */
    /* Navegação: mantém 2 colunas lado a lado */
    .footer-nav-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: start;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Ícones sociais centralizados */
    /* Lista de contato centralizada */
    .footer-contact-list {
        align-items: center;
        display: inline-flex;
        flex-direction: column;
        width: auto;
    }

    /* Sub-footer */
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    }

@media (max-width: 768px) {
    .blog-hero {
        padding: 110px 1.5rem 60px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .article-wrap {
        padding: 20px 1.5rem 60px;
    }

    .article-back {
        padding: 90px 1.5rem 20px;
    }
}

@media (max-width: 576px) {
    .cat-btn {
        padding: 7px 16px;
        font-size: 12px;
    }

    .section-inner {
        padding: 0 1.2rem;
    }
}

/* ===================== COMPARTILHAR ===================== */
.post-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1.5px solid var(--border);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-soft);
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--cream-soft);
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.post-share-btn:hover {
    border-color: var(--gold-deep);
    color: var(--gold-deep);
}