/*
Theme Name: Lar & Jardim
Theme URI: https://larejardim.com.br
Author: Vinicius Andrade
Author URI: https://larejardim.com.br
Description: Tema editorial de revista para conteúdo de decoração, arquitetura, jardim e lifestyle. Inspirado em layouts magazine, com grid de destaques, tipografia serifada elegante e seções por categoria. Totalmente responsivo e pronto para o editor de blocos.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lar-e-jardim
Tags: blog, magazine, news, editorial, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, block-styles, wide-blocks, translation-ready
*/

/* =========================================================
   0. FONTES AUTO-HOSPEDADAS (sem requisição externa)
   Inter é fonte variável: 1 arquivo cobre 400/600/700.
   Playfair idem para 700/800. Subconjunto "latin" cobre PT-BR.
   ========================================================= */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/inter.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url(assets/fonts/playfair.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url(assets/fonts/playfair-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   1. VARIÁVEIS / DESIGN TOKENS
   ========================================================= */
:root {
	--lj-verde:        #2f4a3c; /* verde folhagem escuro */
	--lj-verde-claro:  #3f6350;
	--lj-terracota:    #b56a4a; /* acento terracota */
	--lj-dourado:      #a98b57;
	--lj-creme:        #f7f4ee; /* fundo off-white */
	--lj-creme-2:      #efe9df;
	--lj-tinta:        #1c1c1a; /* quase preto */
	--lj-cinza:        #6b6b64;
	--lj-cinza-claro:  #d9d4c8;
	--lj-branco:       #ffffff;

	--lj-fonte-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
	--lj-fonte-corpo:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--lj-largura:      1200px;
	--lj-largura-texto:720px;
	--lj-raio:         2px;
	--lj-transicao:    .25s ease;
}

/* =========================================================
   2. RESET LEVE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lj-verde); text-decoration: none; transition: color var(--lj-transicao); }
a:hover, a:focus { color: var(--lj-terracota); }
figure { margin: 0; }
ul, ol { padding-left: 1.2em; }

/* =========================================================
   3. TIPOGRAFIA
   ========================================================= */
body {
	font-family: var(--lj-fonte-corpo);
	font-size: 17px;
	line-height: 1.7;
	color: var(--lj-tinta);
	background: var(--lj-creme);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--lj-fonte-titulo);
	font-weight: 700;
	line-height: 1.15;
	color: var(--lj-tinta);
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.4em; }

blockquote {
	border-left: 3px solid var(--lj-terracota);
	margin: 1.5em 0;
	padding: .4em 0 .4em 1.4em;
	font-family: var(--lj-fonte-titulo);
	font-style: italic;
	font-size: 1.3rem;
	color: var(--lj-verde);
}

.eyebrow, .cat-tag {
	font-family: var(--lj-fonte-corpo);
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--lj-terracota);
}

/* =========================================================
   4. LAYOUT / CONTAINERS
   ========================================================= */
.container {
	width: 100%;
	max-width: var(--lj-largura);
	margin: 0 auto;
	padding: 0 24px;
}

.site-content { padding: 48px 0 64px; }

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
}

@media (max-width: 900px) {
	.content-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Acessibilidade: skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--lj-verde);
	color: #fff;
	padding: 10px 18px;
	z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color:#fff; }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* =========================================================
   5. CABEÇALHO
   ========================================================= */
.site-header {
	background: var(--lj-creme);
	border-bottom: 1px solid var(--lj-cinza-claro);
	position: sticky;
	top: 0;
	z-index: 100;
}

.topbar {
	background: var(--lj-verde);
	color: #fff;
}
.topbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 34px;
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.topbar .topbar-date { opacity: .85; }
.topbar-social a { color:#fff; margin-left: 14px; opacity:.85; }
.topbar-social a:hover { opacity:1; }

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0;
}

.site-branding { text-align: left; }
.site-title {
	font-family: var(--lj-fonte-titulo);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: .01em;
	margin: 0;
	line-height: 1;
}
.site-title a { color: var(--lj-tinta); }
.site-title a:hover { color: var(--lj-verde); }
.site-title .amp { color: var(--lj-terracota); font-style: italic; }
.site-description {
	margin: 6px 0 0;
	font-size: .74rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--lj-cinza);
}
.custom-logo { max-height: 64px; width: auto; }

.header-actions { display:flex; align-items:center; gap: 8px; }

/* Navegação principal */
.main-navigation {
	border-top: 1px solid var(--lj-cinza-claro);
}
.main-navigation .container {
	display: flex;
	align-items: center;
	justify-content: center;
}
.main-navigation ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 14px 16px;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--lj-tinta);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--lj-terracota);
}
/* submenu */
.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--lj-branco);
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
	min-width: 210px;
	flex-direction: column;
	gap: 0;
	padding: 6px 0;
	z-index: 20;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul a { padding: 10px 18px; letter-spacing: .06em; }

/* Botão menu mobile */
.menu-toggle, .search-toggle {
	display: none;
	background: none;
	border: 1px solid var(--lj-cinza-claro);
	border-radius: var(--lj-raio);
	padding: 8px 10px;
	cursor: pointer;
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lj-tinta);
}
.search-toggle { display: inline-flex; align-items:center; gap:6px; }

@media (max-width: 780px) {
	.menu-toggle { display: inline-flex; align-items:center; gap:6px; }
	.main-navigation .container { justify-content: flex-start; }
	.main-navigation ul.menu { display: none; flex-direction: column; width: 100%; }
	.main-navigation.toggled ul.menu { display: flex; }
	.main-navigation a { padding: 12px 0; }
	.main-navigation ul ul { position: static; box-shadow: none; }
}

/* =========================================================
   6. HERO / DESTAQUE HOME
   ========================================================= */
.hero {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 4px;
	margin-bottom: 56px;
}
@media (max-width: 780px) { .hero { grid-template-columns: 1fr; } }

.hero-main, .hero-side-item {
	position: relative;
	overflow: hidden;
	background: var(--lj-verde);
}
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }

.hero-thumb { position: relative; height: 100%; }
.hero-thumb::after {
	content:""; position:absolute; inset:0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%);
}
.hero-main .hero-thumb { min-height: 480px; }
.hero-side-item .hero-thumb { min-height: 238px; }
.hero-thumb img { width:100%; height:100%; object-fit: cover; }

.hero-caption {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 28px;
	color: #fff;
	z-index: 2;
}
.hero-caption .cat-tag { color: #f3c8b6; }
.hero-main .hero-caption h2 {
	color:#fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: .3em 0 0;
}
.hero-side-item .hero-caption { padding: 18px; }
.hero-side-item .hero-caption h3 { color:#fff; font-size: 1.15rem; margin:.2em 0 0; }
.hero-caption a { color:#fff; }
.hero-caption a:hover { color:#f3c8b6; }

/* =========================================================
   7. CARDS / GRID DE POSTS
   ========================================================= */
.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-bottom: 2px solid var(--lj-tinta);
	padding-bottom: 8px;
	margin: 0 0 28px;
}
.section-heading h2 {
	margin: 0;
	font-size: 1.5rem;
	letter-spacing: .01em;
}
.section-heading .more-link {
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--lj-terracota);
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px 28px;
	margin-bottom: 56px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card-thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--lj-creme-2);
	margin-bottom: 14px;
}
.card-thumb img {
	width:100%; height:100%; object-fit: cover;
	transition: transform .5s ease;
}
.card:hover .card-thumb img { transform: scale(1.05); }
.card .cat-tag { display: block; margin-bottom: 6px; }
.card-title {
	font-size: 1.22rem;
	line-height: 1.25;
	margin: 0 0 8px;
}
.card-title a { color: var(--lj-tinta); }
.card-title a:hover { color: var(--lj-verde); }
.card-excerpt { font-size: .92rem; color: var(--lj-cinza); margin: 0 0 10px; }
.card-meta {
	font-size: .74rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lj-cinza);
}

/* Lista padrão (index/archive) */
.post-list { list-style: none; margin: 0; padding: 0; }

/* =========================================================
   8. ARTIGO ÚNICO (single)
   ========================================================= */
.single-header { max-width: var(--lj-largura-texto); margin: 0 auto 28px; text-align: center; }
.single-header .cat-tag { display:inline-block; margin-bottom: 14px; }
.single-header h1 { margin: 0 0 16px; }
.single-header .lead {
	font-family: var(--lj-fonte-titulo);
	font-size: 1.3rem;
	font-style: italic;
	color: var(--lj-cinza);
}
.entry-meta {
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lj-cinza);
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 16px;
}
.single-featured { margin: 0 0 40px; }
.single-featured img { width: 100%; }
.single-featured figcaption { font-size:.8rem; color: var(--lj-cinza); text-align:center; padding-top:8px; }

.entry-content {
	max-width: var(--lj-largura-texto);
	margin: 0 auto;
	font-size: 1.12rem;
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { margin: 1.4em 0; }
.entry-content > *:not(figure):not(.alignwide):not(.alignfull) { }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.aligncenter { margin-left:auto; margin-right:auto; }

.entry-footer {
	max-width: var(--lj-largura-texto);
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--lj-cinza-claro);
}
.tags-links a {
	display: inline-block;
	font-size: .74rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: var(--lj-creme-2);
	padding: 5px 12px;
	margin: 0 6px 6px 0;
	border-radius: 40px;
	color: var(--lj-cinza);
}
.tags-links a:hover { background: var(--lj-verde); color:#fff; }

.author-box {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--lj-creme-2);
	padding: 24px;
	border-radius: var(--lj-raio);
	margin: 32px auto 0;
	max-width: var(--lj-largura-texto);
}
.author-box img { border-radius: 50%; width: 66px; height: 66px; object-fit: cover; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { margin: 0; font-size: .92rem; color: var(--lj-cinza); }

/* Posts relacionados */
.related-posts {
	margin: 56px auto 0;
	padding-top: 40px;
	border-top: 1px solid var(--lj-cinza-claro);
}
.related-posts .section-heading { border-bottom-color: var(--lj-terracota); }
.related-posts .card-grid { margin-bottom: 0; }

/* Navegação de posts */
.post-navigation {
	max-width: var(--lj-largura-texto);
	margin: 40px auto 0;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}
.post-navigation a { font-weight: 600; }
.post-navigation .nav-subtitle {
	display:block; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color: var(--lj-cinza);
}

/* =========================================================
   9. SIDEBAR / WIDGETS
   ========================================================= */
.widget { margin-bottom: 40px; }
.widget-title {
	font-family: var(--lj-fonte-corpo);
	font-size: .82rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--lj-tinta);
	border-bottom: 2px solid var(--lj-terracota);
	padding-bottom: 8px;
	margin: 0 0 18px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--lj-cinza-claro); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--lj-tinta); font-weight: 500; }
.widget a:hover { color: var(--lj-terracota); }

.newsletter-widget {
	background: var(--lj-verde);
	color: #fff;
	padding: 28px 24px;
	border-radius: var(--lj-raio);
}
.newsletter-widget .widget-title { color:#fff; border-color: rgba(255,255,255,.4); }
.newsletter-widget p { font-size: .92rem; opacity: .9; }
.newsletter-widget input[type="email"] {
	width: 100%; padding: 12px; border: 0; border-radius: var(--lj-raio); margin-bottom: 10px;
	font-family: inherit;
}
.btn, .newsletter-widget button {
	display: inline-block;
	background: var(--lj-terracota);
	color: #fff;
	border: 0;
	padding: 12px 22px;
	font-family: var(--lj-fonte-corpo);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 600;
	border-radius: var(--lj-raio);
	cursor: pointer;
	transition: background var(--lj-transicao);
}
.btn:hover, .newsletter-widget button:hover { background: #96543a; color:#fff; }

/* =========================================================
   10. FORMULÁRIO DE BUSCA
   ========================================================= */
.search-form { display: flex; }
.search-form .search-field {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid var(--lj-cinza-claro);
	border-right: 0;
	font-family: inherit;
	font-size: .9rem;
}
.search-form .search-submit {
	border: 0;
	background: var(--lj-verde);
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .78rem;
}
.search-form .search-submit:hover { background: var(--lj-verde-claro); }

.header-search {
	display: none;
	padding: 16px 0;
	border-top: 1px solid var(--lj-cinza-claro);
	background: var(--lj-creme-2);
}
.header-search.open { display: block; }

/* =========================================================
   11. PAGINAÇÃO
   ========================================================= */
.pagination { margin: 48px 0 0; }
.pagination .nav-links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border: 1px solid var(--lj-cinza-claro);
	color: var(--lj-tinta);
	font-weight: 600;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--lj-verde);
	color: #fff;
	border-color: var(--lj-verde);
}

/* =========================================================
   12. RODAPÉ
   ========================================================= */
.site-footer {
	background: var(--lj-tinta);
	color: #cfcabf;
	margin-top: 64px;
}
.footer-widgets {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 56px 0;
}
@media (max-width: 780px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-widgets { grid-template-columns: 1fr; } }

.site-footer .footer-brand .site-title { color: #fff; }
.site-footer .footer-brand p { font-size: .92rem; }
.site-footer .widget-title { color: #fff; border-color: var(--lj-terracota); }
.site-footer a { color: #cfcabf; }
.site-footer a:hover { color: #fff; }
.site-footer .widget li { border-color: rgba(255,255,255,.1); }

.site-info {
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 22px 0;
	font-size: .82rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	color: #9a958b;
}

/* =========================================================
   13. UTILIDADES / BLOCOS WP
   ========================================================= */
.sticky, .bypostauthor { display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .82rem; color: var(--lj-cinza); }
.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.page-header { margin-bottom: 36px; }
.page-title { margin: 0; }
.archive-description { color: var(--lj-cinza); max-width: 60ch; }
.no-results { padding: 40px 0; }

.updated:not(.published) { display: none; }

/* =========================================================
   14. BANNER DE COOKIES (LGPD)
   ========================================================= */
.lej-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1000;
	background: var(--lj-tinta);
	color: #f1ede4;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0,0,0,.28);
	padding: 20px 22px;
	max-width: 920px;
	margin: 0 auto;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .3s ease, transform .3s ease;
}
.lej-cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.lej-cookie-banner[hidden] { display: none; }

.lej-cookie-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.lej-cookie-text {
	margin: 0;
	flex: 1;
	min-width: 240px;
	font-size: .92rem;
	line-height: 1.55;
	color: #d9d4c8;
}
.lej-cookie-text a { color: #f3c8b6; text-decoration: underline; }
.lej-cookie-text a:hover { color: #fff; }

.lej-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.lej-cookie-decline {
	background: transparent;
	border: 1px solid rgba(255,255,255,.35);
	color: #f1ede4;
}
.lej-cookie-decline:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 560px) {
	.lej-cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
	.lej-cookie-actions { width: 100%; }
	.lej-cookie-actions .btn { flex: 1; text-align: center; }
}

/* Ajustes responsivos finos */
@media (max-width: 560px) {
	.topbar .topbar-date { display: none; }
	.topbar .container { justify-content: center; }
	.site-content { padding: 28px 0 40px; }
	.container { padding: 0 16px; }
	blockquote { font-size: 1.15rem; }
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
	.card:hover .card-thumb img { transform: none; }
}
