/*
Theme Name: Stone Blog
Theme URI: https://stoneexperienceshop.com/blog/
Author: ROI Digital Marketing USA
Author URI: https://roimktusa.com/
Description: Tema do blog (The Stone Journal) da Stone Experience. Carrega o CSS e o JS do site principal (stoneexperienceshop.com), então cabeçalho, rodapé, cores e fontes ficam idênticos. Compatível com Rank Math.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: stone-blog
*/

/* As variáveis (--ink, --stone-100, --brass...) e o cabeçalho/rodapé vêm de /css/style.css do site. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; clip: auto; padding: .7rem 1rem; background: var(--brass); color: var(--white); }

/* ---------- Topo do blog e do artigo ---------- */
.stone-blog .page-hero { min-height: 46vh; }
.stone-blog .page-hero .crumb a { color: inherit; }
.stone-blog .page-hero .crumb a:hover { color: var(--white); }
.blog-lead { max-width: 640px; font-size: 1.08rem; color: var(--stone-200); opacity: .9; margin-top: .4em; }
.article-hero h1 { max-width: 900px; font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.article-meta { display: block; margin-top: .6em; font-size: .82rem; letter-spacing: .04em; color: var(--stone-300); }

/* ---------- Filtro de categorias ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.blog-cats a { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: .6em 1.1em; border: 1px solid var(--line-dark); transition: all .3s var(--ease); }
.blog-cats a:hover, .blog-cats a.is-current { border-color: var(--brass); color: var(--brass-dark); background: rgba(178, 116, 75, .06); }

/* ---------- Cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-dark); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 17, 16, .10); }
.blog-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--charcoal); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.blog-card-ph img { width: 46%; height: auto; object-fit: contain; opacity: .55; }
.blog-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: .8em; }
.blog-card h2 { font-size: 1.5rem; line-height: 1.15; margin-bottom: .5em; }
.blog-card p { font-size: .92rem; opacity: .75; flex: 1; }
.blog-more { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--brass-dark); margin-top: .4em; }
.blog-pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.blog-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-dark); font-size: .9rem; }
.blog-pagination .page-numbers.current, .blog-pagination .page-numbers:hover { background: var(--ink); color: var(--stone-100); border-color: var(--ink); }
.blog-empty { padding: 2rem 0; font-size: 1.05rem; }
.blog-empty a { color: var(--brass-dark); text-decoration: underline; }

/* ---------- Artigo ---------- */
.article-wrap { max-width: 820px; }
.entry { font-size: 1.07rem; line-height: 1.78; color: var(--ink-soft); }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); margin: 2em 0 .6em; color: var(--ink); }
.entry h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 1.6em 0 .5em; color: var(--ink); }
.entry p, .entry ul, .entry ol, .entry table, .entry blockquote { margin: 0 0 1.25em; }
.entry ul { list-style: disc; padding-left: 1.3em; }
.entry ol { list-style: decimal; padding-left: 1.3em; }
.entry li { margin-bottom: .45em; }
.entry li::marker { color: var(--brass); }
.entry a { color: var(--brass-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { color: var(--brass); }
.entry strong { color: var(--ink); font-weight: 600; }
.entry img, .entry figure { margin: 2em 0; height: auto; }
.entry figcaption { font-size: .82rem; opacity: .65; margin-top: .5em; }
.entry blockquote { border-left: 2px solid var(--brass); padding: .2em 0 .2em 1.3em; font-family: var(--font-serif); font-size: 1.35rem; font-style: italic; }
.entry table { width: 100%; border-collapse: collapse; font-size: .93rem; }
@media (max-width: 640px) { .entry table { display: block; overflow-x: auto; } }
.entry th, .entry td { text-align: left; padding: .75em .9em; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.entry th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-dark); background: var(--stone-200); }
.entry hr { border: 0; border-top: 1px solid var(--line-dark); margin: 2.5em 0; }

/* ---------- Caixa de orçamento ---------- */
.article-cta { margin: 3rem 0 2.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--ink); color: var(--stone-100); position: relative; overflow: hidden; }
.article-cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border: 1px solid rgba(211, 164, 124, .25); border-radius: 50%; }
.article-cta .eyebrow { color: var(--brass-light); }
.article-cta .eyebrow::before { background: var(--brass-light); }
.article-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--white); }
.article-cta p { opacity: .82; max-width: 560px; }
.article-cta .btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
.article-cta .btn-outline.on-light { color: var(--stone-100); border-color: rgba(246, 243, 236, .4); }

/* ---------- Links internos ---------- */
.article-related { margin-top: 2.25rem; }
.article-related h2 { font-size: 1.45rem; margin-bottom: .8em; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-block; font-size: .82rem; padding: .45em .9em; border: 1px solid var(--line-dark); transition: all .3s var(--ease); }
.chips a:hover { border-color: var(--brass); color: var(--brass-dark); }
.related-list li { padding: .7em 0; border-bottom: 1px solid var(--line-dark); }
.related-list a { font-family: var(--font-serif); font-size: 1.25rem; }
.related-list a:hover { color: var(--brass-dark); }
.article-nap { margin-top: 1.2rem; font-size: .82rem; opacity: .6; }

/* ---------- Blocos do WordPress ---------- */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { height: auto; }
