/*
Theme Name: IC Acabamentos
Theme URI: https://acabamentos.importconstrucao.com/
Author: UXP Web
Author URI: https://uxpweb.com.br
Description: Tema institucional IC Acabamentos — revestimentos WPC de alta performance. Home single-page com animações estilo Apple e blog integrado na identidade visual da marca.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ic-acabamentos
Tags: business, blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready
*/

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

:root {
    --oak: #3C2A14;
    --oak-light: #5A3D1E;
    --teca: #B8956A;
    --teca-light: #D4B896;
    --teca-pale: #F0E6D8;
    --cream: #FAF6F0;
    --sand: #EDE4D6;
    --charcoal: #1A1610;
    --charcoal-soft: #2E2820;
    --text: #3C3428;
    --text-soft: #6B6054;
    --white: #FFFFFF;
    --green-eco: #4A7C59;
    --green-light: #6B9E7A;
    --accent: #C8784E;
    --accent-hover: #A85E38;
    --border-soft: rgba(60, 42, 20, 0.12);
    --shadow-sm: 0 2px 12px rgba(60, 42, 20, 0.06);
    --shadow-md: 0 8px 30px rgba(60, 42, 20, 0.10);
    --shadow-lg: 0 20px 60px rgba(60, 42, 20, 0.14);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.serif { font-family: 'Instrument Serif', Georgia, serif; }

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--oak);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Instrument Serif', Georgia, serif;
    color: var(--charcoal);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p { margin-bottom: 1em; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVBAR
═══════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
    background: rgba(250, 246, 240, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: .85rem 0;
    box-shadow: 0 1px 0 var(--border-soft);
}

/* Em páginas internas (qualquer coisa que não seja a front-page),
   o header já começa com fundo cream e itens de menu escuros legíveis.
   Usamos body:not(.is-front-page) como seletor mestre porque essa classe é
   adicionada via ic_body_classes() SOMENTE quando is_front_page() é true. */
body:not(.is-front-page) .site-header {
    background: rgba(250, 246, 240, 0.92) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--border-soft);
}
/* Fallbacks clássicos do WordPress — redundância defensiva para qualquer
   cenário em que .is-front-page não estiver presente (plugins, cache, etc.) */
body.blog .site-header,
body.single .site-header,
body.archive .site-header,
body.search .site-header,
body.error404 .site-header,
body.page:not(.is-front-page) .site-header,
body.single-projeto .site-header,
body.post-type-archive .site-header {
    background: rgba(250, 246, 240, 0.92) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--border-soft);
}
/* Contraste dos itens do menu em páginas internas — texto escuro legível.
   Esta regra PROTEGE o contraste mesmo se o fundo cream falhar por qualquer motivo. */
body:not(.is-front-page) .nav-menu a,
body.blog .nav-menu a,
body.single .nav-menu a,
body.archive .nav-menu a,
body.search .nav-menu a,
body.error404 .nav-menu a,
body.page:not(.is-front-page) .nav-menu a {
    color: var(--charcoal);
}
body:not(.is-front-page) .nav-menu a:hover,
body:not(.is-front-page) .nav-menu .current-menu-item > a,
body:not(.is-front-page) .nav-menu .current_page_item > a {
    color: var(--accent);
}
body:not(.is-front-page) .nav-brand {
    color: var(--charcoal);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand:hover { color: var(--oak); }
.nav-brand em { font-style: italic; color: var(--accent); }

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav-menu li { margin: 0; }
.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: .3rem 0;
    transition: color .2s ease;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .3s ease;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: var(--accent);
}
.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

/* .nav-cta herda o visual dos outros itens do menu.
   A classe é preservada apenas para compatibilidade com menus legados
   que possam tê-la atribuída manualmente nas configurações do menu. */
.nav-cta {
    /* sem regras próprias — segue o estilo padrão de .nav-menu a */
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 34px;
    height: 34px;
    cursor: pointer;
    position: relative;
    padding: 0;
}
.nav-toggle span {
    display: block;
    position: absolute;
    left: 6px;
    right: 6px;
    height: 1.5px;
    background: var(--charcoal);
    transition: transform .3s ease, top .3s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 21px; }
.nav-toggle.is-open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.25rem;
        transform: translateX(100%);
        transition: transform .4s cubic-bezier(.25, .1, .25, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.is-open { transform: translateX(0); }
    .nav-menu a { font-size: 1.1rem; }
    .nav-cta { margin-top: 1rem; }
}

/* ═══════════════════════════════════════════════════════════
   SITE MAIN
═══════════════════════════════════════════════════════════ */
.site-main { min-height: 50vh; }

/* Páginas internas (blog, archive, single, page) — padding top pra não colar no header fixo */
body:not(.home) .site-main {
    padding-top: 6rem;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — ARCHIVE / LISTAGEM
═══════════════════════════════════════════════════════════ */
.blog-hero {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border-soft);
}
.blog-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}
.blog-hero .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.blog-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--charcoal);
}
.blog-hero h1 em {
    font-style: italic;
    color: var(--oak);
}
.blog-hero .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto;
}

.posts-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .posts-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 1.25rem;
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem 2rem;
}
@media (max-width: 600px) {
    .posts-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Primeiro post em destaque (archive/blog index) */
.posts-grid .post-card.is-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.posts-grid .post-card.is-featured > * {
    min-width: 0;
}
.posts-grid .post-card.is-featured .post-thumb {
    width: 100%;
    height: 100%;
    min-height: 360px;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
}
.posts-grid .post-card.is-featured .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.posts-grid .post-card.is-featured .post-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.posts-grid .post-card.is-featured .post-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
@media (max-width: 800px) {
    .posts-grid .post-card.is-featured {
        grid-template-columns: 1fr;
    }
    .posts-grid .post-card.is-featured .post-thumb {
        min-height: 240px;
    }
    .posts-grid .post-card.is-featured .post-body {
        padding: 1.75rem;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    transition: transform .4s cubic-bezier(.25, .1, .25, 1);
}
.post-card:hover { transform: translateY(-4px); }
.post-card .post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--sand);
    margin-bottom: 1.25rem;
    position: relative;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25, .1, .25, 1);
}
.post-card:hover .post-thumb img { transform: scale(1.04); }

.post-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teca);
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-style: italic;
    background: linear-gradient(135deg, var(--sand) 0%, var(--teca-pale) 100%);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: .7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}
.post-meta .post-category {
    color: var(--accent);
    font-weight: 600;
}
.post-meta .sep {
    width: 3px;
    height: 3px;
    background: var(--text-soft);
    border-radius: 50%;
    opacity: .6;
}

.post-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: .7rem;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}
.post-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: left bottom;
    transition: background-size .35s ease, color .25s ease;
}
.post-title a:hover {
    color: var(--accent);
    background-size: 100% 1px;
}

.post-excerpt {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}

.post-read-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--oak);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: auto;
}
.post-read-more::after {
    content: '→';
    transition: transform .3s ease;
}
.post-card:hover .post-read-more::after { transform: translateX(4px); }
.post-read-more:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */
.site-sidebar {
    position: sticky;
    top: 90px;
}
@media (max-width: 900px) {
    .site-sidebar {
        position: static;
        border-top: 1px solid var(--border-soft);
        padding-top: 2rem;
    }
}

.widget {
    margin-bottom: 2.5rem;
    padding: 1.75rem;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border-soft);
}
.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-soft);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: .5rem 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.95rem;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.widget ul li a:hover { color: var(--accent); }
.widget ul li .count {
    font-size: 0.8rem;
    color: var(--text-soft);
    background: var(--sand);
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 500;
}

.widget_search .search-form,
.widget .search-form {
    display: flex;
    gap: .5rem;
}
.widget_search .search-field,
.widget .search-field {
    flex: 1;
    padding: .7rem .9rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--cream);
    color: var(--charcoal);
    transition: border-color .2s ease;
}
.widget_search .search-field:focus,
.widget .search-field:focus {
    outline: none;
    border-color: var(--accent);
}
.widget_search .search-submit,
.widget .search-submit {
    padding: .7rem 1.1rem;
    background: var(--charcoal);
    color: var(--cream);
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: background .2s ease;
}
.widget_search .search-submit:hover,
.widget .search-submit:hover { background: var(--accent); }

.widget.widget-cta {
    background: linear-gradient(135deg, var(--oak) 0%, var(--charcoal) 100%);
    color: var(--cream);
    border: 0;
}
.widget.widget-cta .widget-title {
    color: var(--teca);
    border-bottom-color: rgba(184, 149, 106, 0.3);
}
.widget.widget-cta p {
    color: var(--teca-pale);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}
.widget.widget-cta .btn {
    display: inline-block;
    padding: .75rem 1.25rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.widget.widget-cta .btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Recent posts no sidebar */
.widget .recent-post-item {
    display: flex;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--border-soft);
}
.widget .recent-post-item:last-child { border-bottom: 0; }
.widget .recent-post-item:first-child { padding-top: 0; }
.widget .recent-post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sand);
}
.widget .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.widget .recent-post-body {
    flex: 1;
    min-width: 0;
}
.widget .recent-post-body a {
    font-family: 'Instrument Serif', serif;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--charcoal);
    text-decoration: none;
    display: block;
    margin-bottom: .25rem;
}
.widget .recent-post-body a:hover { color: var(--accent); }
.widget .recent-post-date {
    font-size: 0.75rem;
    color: var(--text-soft);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.pagination-wrap {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
}
.pagination-wrap .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    align-items: center;
}
.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .9rem;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border-soft);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all .2s ease;
}
.pagination-wrap .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination-wrap .page-numbers.current {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--cream);
}
.pagination-wrap .page-numbers.dots {
    background: transparent;
    border: 0;
    color: var(--text-soft);
}

/* ═══════════════════════════════════════════════════════════
   SINGLE POST
═══════════════════════════════════════════════════════════ */
.single-post-hero {
    padding: 2rem 1.5rem 3rem;
    background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border-soft);
}
.single-post-hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.single-post-crumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-size: 0.8rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}
.single-post-crumbs a { color: var(--text-soft); text-decoration: none; }
.single-post-crumbs a:hover { color: var(--accent); }
.single-post-crumbs .sep { opacity: .5; }

.single-post-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    text-decoration: none;
}

.single-post-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-soft);
    flex-wrap: wrap;
}
.single-post-meta .author {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    color: var(--text);
}
.single-post-meta .avatar {
    border-radius: 50%;
    width: 32px !important;
    height: 32px !important;
}
.single-post-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--text-soft);
    border-radius: 50%;
    opacity: .5;
}

.single-featured-image {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}
.single-featured-image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.single-post-content-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
@media (max-width: 600px) {
    .single-post-content-wrap { padding: 3rem 1.25rem; }
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text);
}
.entry-content > * + * { margin-top: 1.25em; }
.entry-content p {
    margin-bottom: 1.25em;
}
.entry-content p:first-of-type::first-letter {
    font-family: 'Instrument Serif', serif;
    font-size: 4.5em;
    float: left;
    line-height: 0.85;
    margin: 0.1em 0.12em 0 -0.05em;
    color: var(--accent);
    font-style: italic;
}
.entry-content h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-top: 2.5em;
    margin-bottom: .6em;
    color: var(--charcoal);
    line-height: 1.2;
}
.entry-content h3 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    margin-top: 2em;
    margin-bottom: .5em;
    color: var(--oak);
    line-height: 1.25;
}
.entry-content h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.8em;
    margin-bottom: .5em;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}
.entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color .2s ease;
}
.entry-content a:hover { color: var(--accent-hover); }
.entry-content strong { color: var(--charcoal); font-weight: 600; }
.entry-content em { font-style: italic; }
.entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    border-left: 3px solid var(--accent);
    background: var(--sand);
    border-radius: 0 14px 14px 0;
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--oak);
    font-style: italic;
    position: relative;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
    display: block;
    margin-top: .5em;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.entry-content ul,
.entry-content ol {
    margin: 1em 0 1.5em 1.5em;
}
.entry-content ul li,
.entry-content ol li {
    margin-bottom: .6em;
    padding-left: .3em;
}
.entry-content ul li::marker { color: var(--accent); }
.entry-content img {
    border-radius: 14px;
    margin: 2em auto;
    box-shadow: var(--shadow-md);
}
.entry-content figure {
    margin: 2em 0;
}
.entry-content figure img { margin: 0; }
.entry-content figcaption {
    margin-top: .7em;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-soft);
    font-style: italic;
}
.entry-content pre {
    background: var(--charcoal);
    color: var(--teca-pale);
    padding: 1.5em;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 2em 0;
}
.entry-content code {
    background: var(--sand);
    padding: .15em .45em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--oak);
}
.entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
    padding: .85em 1em;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.entry-content th {
    font-weight: 600;
    color: var(--charcoal);
    background: var(--sand);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.entry-content hr {
    border: 0;
    height: 1px;
    background: var(--border-soft);
    margin: 3em 0;
}

/* Galeria nativa do WP */
.entry-content .wp-block-gallery,
.entry-content .gallery {
    margin: 2em 0;
}

/* ═══════════════════════════════════════════════════════════
   TAGS / SHARE / AUTHOR BOX (SINGLE POST)
═══════════════════════════════════════════════════════════ */
.post-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.post-tags .tags-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-soft);
    font-weight: 600;
    margin-right: .5rem;
}
.post-tags a {
    display: inline-block;
    padding: .35rem .9rem;
    background: var(--sand);
    color: var(--oak);
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all .2s ease;
}
.post-tags a:hover {
    background: var(--accent);
    color: var(--white);
}

.post-share {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.post-share .share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-soft);
    font-weight: 600;
}
.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-soft);
    color: var(--oak);
    text-decoration: none;
    transition: all .2s ease;
}
.post-share a:hover {
    background: var(--charcoal);
    color: var(--cream);
    border-color: var(--charcoal);
    transform: translateY(-2px);
}
.post-share svg {
    width: 16px;
    height: 16px;
}

.author-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.author-box .avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    flex-shrink: 0;
}
.author-box .author-info h4 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.3rem;
    margin-bottom: .4rem;
    color: var(--charcoal);
}
.author-box .author-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: .6rem;
}
.author-box .author-bio {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .author-box { flex-direction: column; text-align: center; align-items: center; padding: 1.75rem 1.25rem; }
}

/* Navegação entre posts */
.post-nav {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    text-decoration: none;
    transition: all .25s ease;
}
.post-nav a:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.post-nav .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-soft);
    font-weight: 600;
    display: block;
    margin-bottom: .4rem;
}
.post-nav .nav-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.05rem;
    color: var(--charcoal);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-nav .next { text-align: right; }

/* Related posts */
.related-posts {
    margin-top: 5rem;
    padding: 4rem 0;
    background: var(--sand);
    border-top: 1px solid var(--border-soft);
}
.related-posts-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.related-posts h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--charcoal);
}
.related-posts h3 em {
    font-style: italic;
    color: var(--accent);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   COMMENTS
═══════════════════════════════════════════════════════════ */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-soft);
}
.comments-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--charcoal);
}
.comments-title em { font-style: italic; color: var(--accent); }
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem;
}
.comment-list li {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}
.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1.5rem;
}
.comment-author {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .8rem;
}
.comment-author .avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50%;
}
.comment-author .fn {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    color: var(--charcoal);
    font-style: normal;
    font-weight: 400;
}
.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: .75rem;
}
.comment-metadata a { color: var(--text-soft); }
.comment-content {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.65;
}
.comment-reply-link {
    display: inline-block;
    margin-top: .75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.comment-reply-link:hover { color: var(--accent-hover); }

.comment-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
}
.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    margin-bottom: 1rem;
}
.comment-form label {
    display: block;
    margin-bottom: .4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--cream);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--charcoal);
    transition: border-color .2s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}
.comment-form .submit {
    padding: .85rem 2rem;
    background: var(--charcoal);
    color: var(--cream);
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.comment-form .submit:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════════
   PAGE TEMPLATE (páginas comuns)
═══════════════════════════════════════════════════════════ */
.page-content-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.page-hero {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--charcoal);
}

/* ═══════════════════════════════════════════════════════════
   404
═══════════════════════════════════════════════════════════ */
.error-404-wrap {
    text-align: center;
    padding: 8rem 1.5rem 6rem;
}
.error-404-wrap h1 {
    font-size: clamp(5rem, 15vw, 10rem);
    color: var(--accent);
    line-height: 1;
    font-style: italic;
    margin-bottom: 1rem;
}
.error-404-wrap h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}
.error-404-wrap p {
    color: var(--text-soft);
    max-width: 500px;
    margin: 0 auto 2rem;
}
.error-404-wrap .btn {
    display: inline-block;
    padding: .9rem 2rem;
    background: var(--charcoal);
    color: var(--cream);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: background .2s ease, transform .2s ease;
}
.error-404-wrap .btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH RESULTS
═══════════════════════════════════════════════════════════ */
.search-results-info {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
}
.search-results-info strong {
    color: var(--charcoal);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--charcoal);
    color: var(--teca-pale);
    padding: 4rem 1.5rem 2rem;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

.footer-brand {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    color: var(--cream);
    margin-bottom: 1rem;
    display: inline-block;
    text-decoration: none;
}
.footer-brand em { color: var(--accent); font-style: italic; }
.footer-about {
    color: var(--teca);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 360px;
}

.footer-col h5 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teca);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: .6rem;
}
.footer-col ul li a {
    color: var(--teca-pale);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color .2s ease;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 149, 106, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--teca);
    flex-wrap: wrap;
}
.footer-bottom a { color: var(--teca); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   UTILITÁRIOS
═══════════════════════════════════════════════════════════ */
.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-soft);
    text-align: center;
    margin-top: .5em;
    font-style: italic;
}
.sticky .post-title::before { content: '★ '; color: var(--accent); }
.clearfix::after { content: ''; display: table; clear: both; }

/* WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}
