/* ===================================================================
   Batistela Contabilidade — Blog (listagem + single de post)
   Carregado só nessas duas telas (ver functions.php: batistela_blog_assets)
   porque o tailwind.css do tema é um build já compilado e podado do site
   Next.js original — não tem classes novas de utilitário disponíveis.
   =================================================================== */

:root {
	--b-green: #4eba57;
	--b-green-dark: #3da648;
	--b-dark-1: #0a0f1c; /* mesmo tom do hero/header solid */
	--b-dark-2: #0f172a; /* mesmo tom da seção de contato */
	--b-dark-3: #080d14; /* mesmo tom do footer */
	--b-slate-900: #0f172a;
	--b-slate-700: #334155;
	--b-slate-600: #475569;
	--b-slate-500: #64748b;
	--b-slate-400: #94a3b8;
	--b-slate-200: #e2e8f0;
	--b-slate-50: #f8fafc;
}

/* ---------- Layout base ---------- */
.b-container {
	max-width: 80rem; /* mesmo max-w-7xl usado no resto do tema */
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}
@media (min-width: 640px) {
	.b-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
	.b-container { padding-left: 2rem; padding-right: 2rem; }
}

/* ---------- Hero de página (topo escuro, compensa o header fixo) ---------- */
.b-page-hero {
	background-color: var(--b-dark-2);
	padding-top: 7.5rem;   /* espaço para o header fixo (h-16/h-18) + respiro */
	padding-bottom: 3.5rem;
	position: relative;
	overflow: hidden;
}
@media (min-width: 1024px) {
	.b-page-hero { padding-top: 9rem; padding-bottom: 4.5rem; }
}
.b-page-hero__eyebrow {
	color: var(--b-green);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 0.75rem;
}
.b-page-hero__title {
	font-family: var(--font-dm-sans), sans-serif;
	color: #fff;
	font-weight: 700;
	font-size: 2rem;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.75rem 0;
}
@media (min-width: 1024px) {
	.b-page-hero__title { font-size: 2.75rem; }
}
.b-page-hero__subtitle {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.95rem;
	line-height: 1.7;
	max-width: 38rem;
	margin: 0;
}
.b-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.4);
	margin-bottom: 1.25rem;
}
.b-breadcrumb a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.b-breadcrumb a:hover { color: var(--b-green); }

/* ---------- Grid de posts (listagem) ---------- */
.b-blog-section {
	background-color: #fff;
	padding-top: 4rem;
	padding-bottom: 5rem;
}
.b-blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	margin-top: 0.5rem;
}
@media (min-width: 640px) {
	.b-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.b-blog-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.b-card {
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border: 1px solid var(--b-slate-200);
	border-radius: 1rem;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.b-card:hover {
	border-color: rgba(78, 186, 87, 0.6);
	box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.18);
	transform: translateY(-2px);
}
.b-card__media {
	position: relative;
	width: 100%;
	padding-top: 62.5%; /* proporção 8:5, igual ao card de "Sobre" do tema */
	background-color: var(--b-slate-50);
	overflow: hidden;
}
.b-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.b-card__media--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--b-slate-400);
	font-size: 0.75rem;
}
.b-card__body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex-grow: 1;
}
.b-card__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--b-green);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.b-card__meta time { color: var(--b-slate-400); font-weight: 500; text-transform: none; letter-spacing: normal; }
.b-card__title {
	font-family: var(--font-dm-sans), sans-serif;
	color: var(--b-slate-900);
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.4;
	margin: 0;
}
.b-card__excerpt {
	color: var(--b-slate-500);
	font-size: 0.875rem;
	line-height: 1.6;
	margin: 0;
	flex-grow: 1;
}
.b-card__link {
	color: var(--b-green);
	font-size: 0.8rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

.b-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--b-slate-500);
}

/* ---------- Paginação (paginate_links do WP) ---------- */
.b-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	margin-top: 3rem;
}
.b-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid var(--b-slate-200);
	color: var(--b-slate-600);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}
.b-pagination .page-numbers.current {
	background-color: var(--b-green);
	border-color: var(--b-green);
	color: #fff;
}
.b-pagination .page-numbers:hover:not(.current) {
	border-color: var(--b-green);
	color: var(--b-green);
}
.b-pagination .page-numbers.dots {
	border: none;
}

/* ---------- Single de post ---------- */
.b-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
	margin-bottom: 1rem;
}
.b-single__meta a { color: var(--b-green); text-decoration: none; font-weight: 600; }
.b-single__cover {
	position: relative;
	max-width: 56rem;
	margin: -2.5rem auto 0;
	padding: 0 1rem;
}
.b-single__cover img {
	width: 100%;
	border-radius: 1rem;
	box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3);
	display: block;
}
.b-single__wrap {
	background-color: #fff;
	padding-bottom: 5rem;
}
.b-single__body {
	max-width: 42rem;
	margin: 0 auto;
	padding: 3rem 1rem 0;
}

/* Tipografia do conteúdo do post (funciona tanto pra editor clássico/blocos
   quanto como base para conteúdo montado no Elementor) */
.b-content { color: var(--b-slate-700); font-size: 1rem; line-height: 1.85; }
.b-content > * + * { margin-top: 1.25em; }
.b-content h2 {
	font-family: var(--font-dm-sans), sans-serif;
	color: var(--b-slate-900);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.3;
	margin-top: 2em;
}
.b-content h3 {
	font-family: var(--font-dm-sans), sans-serif;
	color: var(--b-slate-900);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.35;
	margin-top: 1.75em;
}
.b-content a { color: var(--b-green); text-decoration: underline; text-underline-offset: 2px; }
.b-content a:hover { color: var(--b-green-dark); }
.b-content strong { color: var(--b-slate-900); font-weight: 600; }
.b-content ul, .b-content ol { padding-left: 1.25em; }
.b-content li + li { margin-top: 0.4em; }
.b-content blockquote {
	border-left: 3px solid var(--b-green);
	padding-left: 1.1em;
	color: var(--b-slate-600);
	font-style: italic;
}
.b-content img {
	border-radius: 0.75rem;
	width: 100%;
	height: auto;
}
.b-content figcaption {
	color: var(--b-slate-400);
	font-size: 0.8rem;
	text-align: center;
	margin-top: 0.5em;
}

.b-single__footer {
	max-width: 42rem;
	margin: 3rem auto 0;
	padding: 2rem 1rem 0;
	border-top: 1px solid var(--b-slate-200);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.b-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--b-slate-600);
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
}
.b-back-link:hover { color: var(--b-green); }
.b-cta-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--b-green);
	color: #fff;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.7rem 1.25rem;
	border-radius: 0.75rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.b-cta-whatsapp:hover { background-color: var(--b-green-dark); }
