/*
Theme Name: Faz Simples Fortaleza
Author: Faz Simples
Description: Tema editorial próprio, leve e seguro para guias de vida prática.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
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: faz-fortaleza
*/

:root {
	--faz-ink: #18322c;
	--faz-green: #143d35;
	--faz-green-2: #215b4e;
	--faz-leaf: #85c85f;
	--faz-lime: #dff1b8;
	--faz-cream: #f7f4ea;
	--faz-paper: #fffdf8;
	--faz-sand: #e8dfcc;
	--faz-muted: #60716c;
	--faz-white: #fff;
	--faz-shadow: 0 18px 48px rgba(22, 61, 53, .12);
	--faz-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--faz-ink); background: var(--faz-cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body::before { position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; background: radial-gradient(circle at 10% 0%, rgba(133,200,95,.13), transparent 30%), radial-gradient(circle at 100% 25%, rgba(232,223,204,.55), transparent 32%); }
a { color: var(--faz-green-2); text-decoration: none; }
a:hover { color: #0b2a23; text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; z-index: 99999; width: auto; height: auto; padding: 12px 18px; clip: auto; background: #fff; border-radius: 10px; box-shadow: var(--faz-shadow); }

.trend-strip { color: #eef7ef; background: #0c2d26; font-size: .78rem; letter-spacing: .03em; }
.trend-strip__inner, .trend-strip__links { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 18px; }
.trend-strip__label { color: var(--faz-lime); font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.trend-strip__links { min-height: 0; margin: 0; padding: 0; list-style: none; }
.trend-strip a { color: #fff; }

.site-header { background: rgba(255,253,248,.94); border-bottom: 1px solid rgba(20,61,53,.09); backdrop-filter: blur(14px); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 112px; gap: 34px; }
.brand a { display: inline-flex; align-items: center; gap: 14px; color: var(--faz-green); text-decoration: none; }
.brand__mark { position: relative; display: inline-block; width: 56px; height: 56px; flex: 0 0 auto; border-radius: 18px 18px 18px 6px; background: linear-gradient(145deg, var(--faz-green), var(--faz-green-2)); box-shadow: 0 12px 26px rgba(20,61,53,.22); }
.brand__mark::before { position: absolute; width: 29px; height: 17px; left: 14px; top: 14px; content: ""; border: 5px solid var(--faz-leaf); border-left: 0; border-bottom: 0; border-radius: 50% 90% 20% 80%; transform: rotate(-28deg); }
.brand__mark::after { position: absolute; width: 5px; height: 30px; left: 27px; top: 18px; content: ""; border-radius: 4px; background: #fff; transform: rotate(39deg); }
.brand__name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.brand__tag { display: block; max-width: 470px; margin-top: 8px; color: var(--faz-muted); font-size: .68rem; font-weight: 800; line-height: 1.25; letter-spacing: .09em; text-transform: uppercase; }
.custom-logo { max-width: 330px; max-height: 84px; object-fit: contain; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; width: min(420px, 38vw); overflow: hidden; border: 1px solid var(--faz-sand); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(20,61,53,.06); }
.header-search input { min-width: 0; flex: 1; padding: 13px 15px; border: 0; outline: 0; background: transparent; }
.header-search button, .nav-toggle { padding: 12px 18px; border: 0; color: #fff; background: var(--faz-green); font-weight: 850; cursor: pointer; }
.nav-toggle { display: none; border-radius: 14px; }

.primary-nav { position: sticky; top: 0; z-index: 800; color: #fff; background: linear-gradient(90deg, var(--faz-green), #1a5145); box-shadow: 0 10px 28px rgba(20,61,53,.18); }
.admin-bar .primary-nav { top: 32px; }
.primary-nav__inner { display: flex; align-items: stretch; justify-content: space-between; }
.primary-nav ul { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.primary-nav a, .all-sections-toggle { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border: 0; color: #fff; background: transparent; font-size: .84rem; font-weight: 850; white-space: nowrap; cursor: pointer; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .all-sections-toggle:hover { color: var(--faz-lime); background: rgba(255,255,255,.08); text-decoration: none; }
.all-sections-toggle { gap: 8px; }
.all-sections-toggle span { color: var(--faz-leaf); font-size: 1.1rem; }
.sections-panel { display: none; padding: 28px 0 34px; color: var(--faz-ink); background: #fff; border-top: 1px solid rgba(20,61,53,.1); }
.sections-panel.is-open { display: block; }
.sections-panel h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 1.5rem; }
.sections-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 10px 18px; }
.sections-grid a { min-height: 0; padding: 9px 12px; color: var(--faz-green); border-radius: 10px; background: var(--faz-cream); white-space: normal; }

.site-main { padding: 34px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .75fr); gap: 22px; margin-bottom: 48px; }
.hero-main, .hero-side__item, .post-card, .article, .widget, .page-heading { overflow: hidden; background: var(--faz-paper); border: 1px solid rgba(20,61,53,.08); border-radius: var(--faz-radius); box-shadow: var(--faz-shadow); }
.hero-main a, .hero-side__item a { color: inherit; text-decoration: none; }
.hero-main { position: relative; min-height: 510px; }
.hero-media, .hero-media > img, .hero-media .radar-placeholder { width: 100%; height: 100%; min-height: 510px; object-fit: cover; }
.hero-main::after { position: absolute; inset: 25% 0 0; content: ""; pointer-events: none; background: linear-gradient(transparent, rgba(8,35,29,.96)); }
.hero-body { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 30px; color: #fff; }
.hero-title { max-width: 850px; margin: 13px 0 0; font-family: Georgia, serif; font-size: clamp(2rem, 4.3vw, 3.55rem); line-height: 1.02; letter-spacing: -.035em; }
.category-pill { display: inline-flex; align-items: center; padding: 6px 10px; color: #0d3128; background: var(--faz-lime); border-radius: 999px; font-size: .67rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.hero-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.hero-side__item a { display: grid; grid-template-columns: 42% 1fr; height: 100%; }
.hero-side__item .card-media, .hero-side__item img, .hero-side__item .radar-placeholder { width: 100%; height: 100%; min-height: 145px; object-fit: cover; }
.hero-side__body { display: flex; flex-direction: column; justify-content: center; padding: 18px; }
.hero-side__body h3 { margin: 7px 0 0; font-family: Georgia, serif; font-size: 1.12rem; line-height: 1.22; }
.eyebrow { color: var(--faz-green-2); font-size: .69rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.radar-placeholder { display: grid; place-items: center; color: rgba(255,255,255,.75); background: linear-gradient(140deg, var(--faz-green), #397c61); font-size: 4rem; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; align-items: start; }
.section-title { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: Georgia, serif; font-size: 1.75rem; }
.section-title::before { width: 38px; height: 6px; content: ""; border-radius: 9px; background: var(--faz-leaf); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--faz-green); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .card-media img { transform: scale(1.035); }
.card-overlay { position: absolute; inset: auto 0 0; padding: 42px 22px 20px; color: #fff; background: linear-gradient(transparent, rgba(8,35,29,.96)); }
.card-overlay h2 { margin: 9px 0 0; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.18; }
.post-card__body { padding: 20px 22px 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--faz-muted); font-size: .76rem; font-weight: 700; }
.post-summary { margin: 12px 0 16px; color: #4a5d58; }
.read-more { font-weight: 900; }
.sidebar { display: grid; gap: 20px; }
.widget { padding: 22px; box-shadow: 0 12px 34px rgba(20,61,53,.08); }
.widget-title { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.23rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 10px 0; border-top: 1px solid var(--faz-sand); }
.widget li:first-child { border-top: 0; }
.widget form { display: flex; }
.widget input[type="search"] { min-width: 0; width: 100%; padding: 11px; border: 1px solid var(--faz-sand); border-radius: 10px 0 0 10px; }
.widget input[type="submit"] { border: 0; color: #fff; background: var(--faz-green); border-radius: 0 10px 10px 0; }

.breadcrumb { margin: 0 0 18px; color: var(--faz-muted); font-size: .8rem; }
.page-heading { margin-bottom: 28px; padding: 28px 32px; }
.page-heading h1 { margin: 7px 0 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.article-shell { max-width: 930px; }
.article { padding: clamp(26px, 5vw, 58px); }
.article > header { margin-bottom: 32px; }
.article h1 { margin: 12px 0 18px; font-family: Georgia, serif; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.04; letter-spacing: -.04em; }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.13rem; }
.entry-content h2, .entry-content h3 { color: var(--faz-green); font-family: Inter, ui-sans-serif, sans-serif; line-height: 1.18; }
.entry-content h2 { margin-top: 2.3em; font-size: 1.7rem; }
.entry-content a { font-weight: 700; text-decoration: underline; }
.entry-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 5px solid var(--faz-leaf); background: var(--faz-cream); }
.entry-content img { border-radius: 18px; }
.navigation.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 0 12px; color: var(--faz-green); background: #fff; border-radius: 11px; font-weight: 800; }
.page-numbers.current { color: #fff; background: var(--faz-green); }

.site-footer { margin-top: 35px; color: #e9f3ed; background: #0c2d26; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 38px; padding-block: 55px; }
.site-footer .brand a { color: #fff; }
.site-footer .brand__tag, .site-footer p { color: #b9cdc6; }
.site-footer h3 { margin: 0 0 16px; color: var(--faz-lime); font-size: .77rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: #fff; }
.footer-bottom { padding: 17px 0; color: #b9cdc6; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.consent-banner { position: fixed; z-index: 9998; right: 22px; bottom: 22px; width: min(440px, calc(100% - 44px)); padding: 23px; background: #fff; border: 1px solid var(--faz-sand); border-radius: 20px; box-shadow: 0 24px 70px rgba(8,35,29,.25); }
.consent-banner[hidden] { display: none; }
.consent-banner h2 { margin: 0 0 8px; font-family: Georgia, serif; }
.consent-banner p { margin: 0 0 17px; color: var(--faz-muted); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions button { flex: 1; padding: 11px; border: 1px solid var(--faz-sand); background: #fff; border-radius: 11px; font-weight: 800; cursor: pointer; }
.consent-actions .accept { color: #fff; background: var(--faz-green); border-color: var(--faz-green); }

@media (max-width: 1020px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-main { min-height: 470px; }
	.hero-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
	.hero-side__item a { grid-template-columns: 1fr; }
	.content-layout { grid-template-columns: 1fr; }
	.sidebar { grid-template-columns: repeat(3, 1fr); }
	.primary-nav a, .all-sections-toggle { padding-inline: 10px; font-size: .77rem; }
}

@media (max-width: 782px) { .admin-bar .primary-nav { top: 46px; } }

@media (max-width: 760px) {
	.wrap { width: min(100% - 26px, 1180px); }
	.trend-strip__links li:first-child { display: none; }
	.site-header__row { min-height: 94px; }
	.brand__mark { width: 48px; height: 48px; }
	.brand__name { font-size: 2rem; }
	.brand__tag { display: none; }
	.header-search { display: none; }
	.nav-toggle { display: block; }
	.primary-nav { position: relative; top: auto; }
	.admin-bar .primary-nav { top: auto; }
	.primary-nav__inner { display: none; flex-direction: column; }
	.primary-nav.is-open .primary-nav__inner { display: flex; }
	.primary-nav ul { width: 100%; flex-direction: column; }
	.primary-nav a, .all-sections-toggle { justify-content: space-between; width: 100%; padding-inline: 18px; }
	.sections-grid { grid-template-columns: 1fr; }
	.hero-main, .hero-media, .hero-media > img, .hero-media .radar-placeholder { min-height: 410px; }
	.hero-body { left: 22px; right: 22px; bottom: 22px; }
	.hero-title { font-size: 2.25rem; }
	.hero-side { grid-template-columns: 1fr; }
	.hero-side__item a { grid-template-columns: 38% 1fr; }
	.post-grid, .sidebar, .footer-grid { grid-template-columns: 1fr; }
	.footer-grid { gap: 24px; }
	.article { padding: 27px 22px; }
	.article h1 { font-size: 2.35rem; }
	.consent-actions { flex-direction: column; }
}
