/*
Theme Name: Gaiga Precatórios
Theme URI: https://gaigaprecatorios.com.br
Author: Felipe Couto
Description: Tema sob medida para a Gaiga Precatórios — landing page editável pelo Personalizador, perguntas frequentes, formulário de contato com registro de leads e blog.
Version: 1.5.5
Requires at least: 6.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: gaiga
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--gold: #bd9c66;
	--gold-dark: #a8874f;
	--gold-light: #e9d9bd;
	--gold-line: #dcc7a3;
	--bg: #f8f6f4;
	--white: #fff;
	--ink: #2b2b2b;
	--text: #666;
	--muted: #8a8a8a;
	--line: #e3e0dc;
	--radius: 2px;       /* caixas, cards, imagens */
	--radius-btn: 2px;   /* botões e campos */
	--shadow: 0 10px 30px rgba(60, 45, 20, .08);
	--container: 1140px;
	--font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

	/* Escala tipográfica — use sempre estes tokens */
	--fs-display: clamp(34px, 3.6vw, 46px);  /* título do banner e páginas internas */
	--fs-h2: clamp(28px, 2.8vw, 38px);       /* título de seção */
	--fs-big-num: 40px;                      /* numerais do Como funciona */
	--fs-stat: clamp(20px, 1.9vw, 25px);     /* números em destaque */
	--fs-h3: 24px;                           /* título de card/bloco */
	--fs-h4: 18px;                           /* subtítulo de card, pergunta, item */
	--fs-lead: 18px;                         /* texto de apoio da seção */
	--fs-body: 16px;                         /* texto corrido */
	--fs-small: 14px;                        /* texto de card, legendas, rótulos */
	--fs-xs: 12px;                           /* sobretítulos e metadados */
	--lh-tight: 1.15;
	--lh-snug: 1.3;
	--lh-body: 1.6;
	--header-h: 96px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
/* Recorta deslocamentos laterais das animações de entrada (evita rolagem lateral no celular) */
.site-main,
.site-footer { overflow-x: clip; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: var(--lh-tight); margin: 0 0 .5em; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
p, li, summary, legend { text-wrap: pretty; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 808px; }

.screen-reader-text,
.hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--white); padding: 8px 16px; }
.skip-link:focus { left: 8px; }

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.4em;
	border: 0;
	border-radius: var(--radius-btn);
	background: var(--gold);
	color: var(--white);
	font: 700 var(--fs-body)/1.2 var(--font);
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--gold-dark); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .7em 1.1em; font-size: var(--fs-small); }
.btn--lg { padding: .95em 1.5em; font-size: var(--fs-body); }
.btn--block { display: flex; width: 100%; }
.btn--light { background: var(--white); color: var(--gold); }
.btn--light:hover { background: var(--ink); color: var(--white); }

.link-arrow { font-weight: 700; text-decoration: none; color: var(--gold); }
.link-arrow:hover { color: var(--ink); }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	transition: box-shadow .2s;
}
.site-header { transition: box-shadow .2s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.admin-bar .site-header { top: 32px; }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}
.site-logo { display: inline-flex; flex-shrink: 0; }
.site-logo__img { width: 200px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.nav-menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
	color: var(--gold);
	font-size: var(--fs-body);
	white-space: nowrap;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { color: var(--ink); }
.nav-menu .sub-menu { display: none; }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 0; padding: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute;
	left: 10px;
	width: 24px; height: 2px;
	background: var(--ink);
	transition: transform .25s, opacity .25s;
	content: "";
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -8px; }
.nav-toggle__bar::after { left: 0; top: 8px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	background: var(--gold);
	min-height: 520px;
}
.hero__content {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 56px 48px 56px 24px;
}
.hero__inner { width: 100%; max-width: 522px; }
.hero__title { color: var(--white); font-size: var(--fs-display); margin-bottom: .45em; }
.hero__text { color: var(--white); font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; margin-bottom: 2em; max-width: 470px; }
.hero__media { position: relative; min-height: 320px; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Números
   ========================================================================== */
/* ==========================================================================
   Seções genéricas
   ========================================================================== */
.section { padding: 56px 0; }
.section__head { margin-bottom: 36px; }
.section__head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section__title { color: var(--gold); font-size: var(--fs-h2); margin-bottom: .4em; }
.section__title--narrow { max-width: 420px; }
.section__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 520px; margin: 0; }

/* ==========================================================================
   Serviços
   ========================================================================== */
.services { padding-top: 64px; }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.service-card { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: calc(var(--header-h) + 24px); }
.service-card__body {
	flex: 1;
	padding: 28px 34px 24px;
	background: var(--white);
	border: 1px solid var(--gold-line);
	border-radius: var(--radius);
	transition: box-shadow .25s, transform .25s;
}
.service-card:hover .service-card__body { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card__label { color: var(--gold); font-size: var(--fs-h3); margin-bottom: .5em; }
.service-card__title { color: var(--ink); font-size: var(--fs-h4); font-weight: 500; line-height: var(--lh-snug); margin-bottom: .8em; }
.service-card__text { color: var(--text); font-size: var(--fs-small); line-height: var(--lh-body); margin: 0; }

/* ==========================================================================
   Diferenciais
   ========================================================================== */
.why { padding-top: 24px; }
.why .section__title { margin-bottom: 1em; }
.why__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.why-card {
	padding: 32px 16px 22px;
	background: var(--white);
	border: 1px solid var(--gold-line);
	border-radius: var(--radius);
	transition: border-color .2s, box-shadow .2s;
}
.why-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.why-card__title { color: var(--gold); font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-snug); margin-bottom: .6em; }
.why-card__text { color: var(--text); font-size: var(--fs-small); line-height: 1.5; margin: 0; }

/* ==========================================================================
   Metodologia 360°
   ========================================================================== */
.method { padding-top: 24px; }
.method__head { margin-bottom: 40px; }
.method__head .section__lead { max-width: 640px; }
.method__grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.method__panel {
	min-height: 0;
	padding: 28px 32px;
	background: var(--white);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
}
.method__step { animation: fade .3s ease; }
.method__step[hidden] { display: none; }
.method__step h3 { color: var(--gold); font-size: var(--fs-h3); margin-bottom: .5em; }
.method__step-num { display: block; color: var(--gold-dark); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.method__desc { font-size: var(--fs-body); line-height: var(--lh-body); margin-bottom: 18px; }
.method__desc p { margin-bottom: .7em; }
.method__desc p:last-child { margin-bottom: 0; }
.method__more { border-top: 1px solid var(--line); }
.method__more:last-child { border-bottom: 1px solid var(--line); }
.method__more summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	color: var(--ink);
	font-weight: 700;
	font-size: var(--fs-body);
	cursor: pointer;
	list-style: none;
}
.method__more summary::-webkit-details-marker { display: none; }
.method__more summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 400; line-height: 1; }
.method__more[open]:not(.is-closing) summary::after { content: "–"; }
.method__more-body { padding: 0 0 14px; font-size: var(--fs-small); line-height: var(--lh-body); }
.method__more-body ul { margin: 0; padding-left: 1.15em; }
.method__more-body li { margin-bottom: 4px; }
.method__more-body li::marker { color: var(--gold); }
.method__more-body ul ul { margin-top: 4px; list-style: circle; }
.method__more-body p:last-child { margin-bottom: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.method__wheel { width: 100%; max-width: 440px; justify-self: center; position: sticky; top: calc(var(--header-h) + 24px); }
.method__hint { margin: 20px auto 0; max-width: 400px; text-align: center; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.wheel { width: 100%; height: auto; overflow: visible; }
.wheel__seg { cursor: pointer; transition: transform .25s ease, filter .25s; transform-origin: 200px 200px; outline: none; }
.wheel__seg path { transition: fill .25s; }
.wheel__seg text { fill: #fff; font: 700 11px var(--font); pointer-events: none; }
.wheel__seg .wheel__num { font-size: 9px; opacity: .85; }
.wheel__seg--light text { fill: #6e5530; }
.wheel__seg.is-active text { fill: #fff; }
.wheel__seg:hover,
.wheel__seg:focus-visible { transform: scale(1.035); filter: brightness(1.04); }
.wheel__seg.is-active { transform: scale(1.05); }
.wheel__seg.is-active path { fill: var(--gold-dark); }
.wheel__seg:focus-visible path { stroke: var(--ink); }
.wheel__center { fill: #fff; font: 500 46px Georgia, "Times New Roman", serif; }

/* ==========================================================================
   Como funciona
   ========================================================================== */
.how { margin: 40px 0; padding: 64px 0 72px; background: var(--gold); }
.how .section__title { color: var(--white); }
.how__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0; margin: 16px 0 0; }
.how__item { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.how__num { flex-shrink: 0; color: var(--white); font-size: var(--fs-big-num); font-weight: 700; line-height: .9; }
/* Seta entre as etapas */
.how__item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 12px;
	right: -26px;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--white);
	border-right: 2px solid var(--white);
	transform: rotate(45deg);
	opacity: .7;
}
.how__title { color: var(--white); font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-snug); margin: 0 0 .35em; }
.how__text { color: var(--white); font-weight: 500; font-size: var(--fs-small); line-height: 1.5; margin: 0; }

/* ==========================================================================
   Resultados
   ========================================================================== */
.results { padding: 48px 0 8px; }
.results__inner { padding-bottom: 40px; border-bottom: 1px solid var(--gold-line); }
.results__title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
	color: var(--gold-dark);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-wrap: nowrap;
}
.results__title::before,
.results__title::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.results__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.results__item { margin: 0; }
.results__value { margin: 0 0 6px; color: var(--gold); font-size: clamp(22px, 2.1vw, 28px); font-weight: 700; line-height: var(--lh-tight); text-wrap: nowrap; }
.results__label { max-width: 220px; margin: 0 auto; color: var(--text); font-size: var(--fs-small); font-weight: 500; line-height: var(--lh-snug); }

/* ==========================================================================
   Vídeo
   ========================================================================== */
.video__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.video__info .section__title { max-width: 480px; }
.video__text { color: var(--text); font-size: var(--fs-lead); line-height: 1.5; max-width: 440px; margin-bottom: 2em; }
.video__frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.video__frame iframe,
.video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__frame video { object-fit: cover; background: #000; }

/* Player: só o play no centro; controles nativos aparecem enquanto o vídeo roda */
.player { position: absolute; inset: 0; }
.player__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--white);
	cursor: pointer;
	transition: opacity .3s, visibility .3s;
}
.player__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
}
/* Círculo dourado a 40% que surge só no hover */
.player__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(189, 156, 102, .4);
	transform: scale(.4);
	opacity: 0;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
/* O triângulo já vem deslocado no desenho; sem ajuste extra fica opticamente centrado */
.player__icon svg { position: relative; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45)); transition: transform .3s; }
.player__play:hover .player__icon::before,
.player__play:focus-visible .player__icon::before { transform: none; opacity: 1; }
.player__play:hover .player__icon svg,
.player__play:focus-visible .player__icon svg { transform: scale(.9); filter: none; }
.player.is-playing .player__play { opacity: 0; visibility: hidden; }
.video__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 16px; text-align: center; font-size: var(--fs-small); color: var(--muted); }

/* ==========================================================================
   Blog (cards)
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.post-card:hover { box-shadow: var(--shadow); border-color: var(--gold-line); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__media img { transition: transform .5s ease; }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--gold); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; }
.post-card__placeholder img { width: 160px; height: auto; opacity: .9; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card__title { font-size: var(--fs-h4); line-height: var(--lh-snug); margin: .4em 0 .5em; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt { font-size: var(--fs-small); flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-meta a { color: var(--gold); text-decoration: none; font-weight: 500; }

/* Blog: último artigo em faixa compacta */
.blog-teaser { padding: 24px 0 48px; }
.blog-teaser__post {
	position: relative;
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	align-items: center;
	gap: 28px;
	--hover-pad: 16px; /* respiro que aparece só no hover, desenhado para fora da caixa */
	color: inherit;
	text-decoration: none;
}
/* Borda que "percorre" a caixa no hover: ::before desenha topo → direita, ::after base → esquerda */
.blog-teaser__post::before,
.blog-teaser__post::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border: 1px solid transparent;
	border-radius: var(--radius);
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s, width 0s .25s, height 0s .25s;
}
.blog-teaser__post::before { top: calc(var(--hover-pad) * -1); left: calc(var(--hover-pad) * -1); }
.blog-teaser__post::after { right: calc(var(--hover-pad) * -1); bottom: calc(var(--hover-pad) * -1); }
.blog-teaser__post:hover::before,
.blog-teaser__post:focus-visible::before {
	width: calc(100% + var(--hover-pad) * 2);
	height: calc(100% + var(--hover-pad) * 2);
	opacity: 1;
	border-top-color: var(--gold);
	border-right-color: var(--gold);
	transition: opacity 0s, width .25s ease-out, height .25s ease-out .25s;
}
.blog-teaser__post:hover::after,
.blog-teaser__post:focus-visible::after {
	width: calc(100% + var(--hover-pad) * 2);
	height: calc(100% + var(--hover-pad) * 2);
	opacity: 1;
	border-bottom-color: var(--gold);
	border-left-color: var(--gold);
	transition: opacity 0s .5s, width .25s ease-out .5s, height .25s ease-out .75s;
}
.blog-teaser__post:focus-visible { outline: none; }
.blog-teaser__media { display: block; aspect-ratio: 16 / 10; background: var(--gold); border-radius: var(--radius); overflow: hidden; }
.blog-teaser__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-teaser__media .post-card__placeholder { display: grid; place-items: center; height: 100%; }
.blog-teaser__media .post-card__placeholder img { width: 96px; height: auto; object-fit: contain; }
.blog-teaser__post:hover .blog-teaser__media img { transform: scale(1.04); }
.blog-teaser__body { display: flex; flex-direction: column; gap: 6px; }
.blog-teaser__title { color: var(--ink); font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-snug); text-wrap: balance; transition: color .2s; }
.blog-teaser__post:hover .blog-teaser__title { color: var(--gold-dark); }
.blog-teaser__excerpt { color: var(--text); font-size: var(--fs-small); line-height: 1.5; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-top: 24px; }
.faq__list { border-top: 0; }
.faq__item { border-bottom: 2px solid var(--line); }
.faq__q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	color: var(--text);
	font-size: var(--fs-h4);
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
	content: "";
	flex-shrink: 0;
	width: 28px; height: 28px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23bd9c66' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
	transition: transform .4s cubic-bezier(.25, .8, .25, 1);
}
.faq__item[open]:not(.is-closing) .faq__q::after { transform: rotate(180deg); }
.faq__q:hover { color: var(--ink); }
.faq__a { padding: 0 48px 18px 0; font-size: var(--fs-body); }
.faq__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact { padding-top: 24px; }
.contact .section__head { margin-bottom: 24px; }
.contact .section__title { margin-bottom: .2em; }
.contact__lead { margin: 0; }

.contact-form {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 56px;
	align-items: stretch;
}
.contact-form__main { display: flex; flex-direction: column; gap: 32px; }
.contact-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.contact-form__media { min-height: 320px; }
.contact-form__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.contact-form__interest { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-form__interest legend { color: var(--gold); font-size: var(--fs-h4); font-weight: 700; padding: 0; margin-bottom: 14px; }
.contact-form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.contact-form__actions small { color: var(--muted); font-size: var(--fs-xs); }
.field { display: flex; flex-direction: column; gap: 2px; }
.field span { font-size: var(--fs-small); font-weight: 500; color: var(--text); }
.field input,
.field select {
	width: 100%;
	padding: 8px 0;
	border: 0;
	border-bottom: 2px solid var(--line);
	background: transparent;
	color: var(--ink);
	font: 400 var(--fs-body) var(--font);
	border-radius: 0;
	transition: border-color .2s;
	-webkit-appearance: none;
	appearance: none;
}
.field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.field input:focus,
.field select:focus { outline: none; border-color: var(--gold); }

.radio { display: flex; align-items: center; gap: 10px; font-size: var(--fs-body); color: var(--ink); cursor: pointer; width: fit-content; }
.radio input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }

.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; }
.notice--success { background: #eef6ec; color: #2e6b2a; border: 1px solid #c8e2c3; }
.notice--error { background: #fbeeee; color: #8a2a2a; border: 1px solid #efc9c9; }

/* ==========================================================================
   Páginas internas / blog
   ========================================================================== */
.page-hero { background: var(--gold); padding: 64px 0 56px; margin-bottom: 48px; }
.page-hero__title { color: var(--white); font-size: var(--fs-display); margin: 0; }
.page-hero__text { color: var(--white); margin-top: 12px; font-size: var(--fs-lead); }
.page-hero__text p:last-child { margin: 0; }
.page-hero--post .post-meta { color: rgba(255, 255, 255, .9); margin-bottom: 12px; }
.page-hero--post .post-meta a { color: var(--white); }

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding-bottom: 72px; }
.blog-layout__side { display: flex; flex-direction: column; gap: 24px; }
.widget { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.widget-title { color: var(--gold); font-size: var(--fs-h4); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border: 0; }
.widget li a { color: var(--text); text-decoration: none; }
.widget li a:hover { color: var(--gold); }
.widget--cta { background: var(--gold); border: 0; color: var(--white); }
.widget--cta .widget-title { color: var(--white); }

.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); font: var(--fs-small) var(--font); }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.page-numbers { display: inline-block; padding: 8px 14px; border-radius: var(--radius-btn); background: var(--white); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.page-numbers.current,
.page-numbers:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.empty-state { background: var(--white); padding: 32px; border-radius: var(--radius); }

.single__thumb { margin-bottom: 32px; }
.single__thumb img { width: 100%; border-radius: var(--radius); }

.entry-content { padding-bottom: 32px; color: #4a4a4a; font-size: var(--fs-lead); line-height: 1.7; }
.entry-content h2 { color: var(--gold); font-size: var(--fs-h2); margin-top: 1.4em; }
.entry-content h3 { font-size: var(--fs-h3); margin-top: 1.3em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--gold); color: var(--ink); font-size: var(--fs-h4); }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 10px; }
.entry-content .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text,
.wp-element-caption { font-size: var(--fs-small); color: var(--muted); text-align: center; }

.single__footer { padding-bottom: 72px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tags a { padding: 4px 12px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: var(--fs-small); }
.single__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; background: var(--gold); color: var(--white); border-radius: var(--radius); margin-bottom: 40px; }
.single__cta strong { display: block; font-size: var(--fs-h4); margin-bottom: 4px; }
.single__cta p { margin: 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; }
.post-navigation a { display: block; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; height: 100%; }
.post-navigation a span { display: block; font-size: var(--fs-xs); color: var(--gold); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { background: var(--gold); color: var(--white); padding: 56px 0 0; margin-top: 32px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer__grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-bottom: 48px; }
.site-footer__logo .site-logo__img { width: 220px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-small); line-height: 1.45; }
.footer-contact li { display: flex; align-items: flex-start; gap: 14px; }
.footer-contact__icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 24px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: var(--fs-xs); opacity: .9; }

/* Voltar ao topo */
.to-top {
	position: fixed;
	right: 28px;
	bottom: 92px;
	z-index: 59;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--gold-line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .92);
	color: var(--gold-dark);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .3s, transform .3s, visibility .3s, background .2s, color .2s;
	backdrop-filter: blur(4px);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
}
.wa-float__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
	transition: transform .2s;
}
.wa-float__label {
	padding: 8px 14px;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--ink);
	font-size: var(--fs-small);
	font-weight: 500;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	opacity: 0;
	transform: translateX(8px);
	transition: opacity .2s, transform .2s;
	pointer-events: none;
	white-space: nowrap;
}
.wa-float:hover .wa-float__icon { transform: scale(1.06); }
.wa-float:hover .wa-float__label,
.wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }
.wa-float:hover { color: #fff; }

/* ==========================================================================
   Animação de entrada
   ========================================================================== */
.js [data-reveal] {
	opacity: 0;
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}
.js [data-reveal="up"] { transform: translateY(32px); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Linha dourada que "desenha" sob os títulos de seção */
.js .section__title[data-reveal]::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	margin-top: 14px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .9s cubic-bezier(.2, .7, .2, 1) .35s;
}
.js .section__title.is-visible::after { transform: scaleX(1); }

/* Banner: entrada ao carregar */
.js .hero__inner > * { opacity: 0; transform: translateY(24px); animation: hero-in .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero__inner > :nth-child(2) { animation-delay: .15s; }
.js .hero__inner > :nth-child(3) { animation-delay: .3s; }
.js .hero__media img { animation: hero-zoom 1.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: none; } }

/* Números da linha do "Como funciona" crescem ao aparecer */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal],
	.js .hero__inner > * { opacity: 1; transform: none; transition: none; animation: none; }
	.js .section__title[data-reveal]::after { transform: none; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
	.why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.how__list { grid-template-columns: 1fr; max-width: 560px; gap: 36px; }
	.how__item:not(:last-child)::after { top: auto; right: auto; left: 12px; bottom: -24px; transform: rotate(135deg); }
	.results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.services__grid { gap: 24px; }
	.service-card__body { padding: 24px; }
	.nav-menu { gap: 18px; }
	.nav-menu a { font-size: 15px; }
	.site-nav { gap: 24px; }
	.site-logo__img { width: 170px; }
	.method__grid { grid-template-columns: 1fr 360px; gap: 36px; }
}

@media (max-width: 960px) {
	:root { --header-h: 76px; }
	.site-logo__img { width: 160px; }
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed;
		top: var(--header-h);
		left: 0; right: 0; bottom: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 24px;
		background: var(--white);
		opacity: 0;
		transform: translateY(-12px);
		visibility: hidden;
		pointer-events: none;
		transition: opacity .25s ease, transform .25s ease, visibility .25s;
		overflow-y: auto;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
	html:has(.nav-open) { overflow: hidden; }
	.nav-menu { flex-direction: column; gap: 0; }
	.nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-h4); }
	.site-nav__cta { padding: 1em; font-size: var(--fs-body); }

	.hero { grid-template-columns: 1fr; }
	.hero__content { justify-content: flex-start; padding: 48px 24px; }
	.hero__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }

	.services__grid { grid-template-columns: 1fr; max-width: 520px; }
	.method__grid { grid-template-columns: 1fr; }
	.method__head { margin-bottom: 24px; }
	.method__grid { grid-template-columns: 1fr; gap: 28px; }
	.method__wheel { order: 1; max-width: 400px; position: static; }
	.method__panel { order: 2; min-height: 0; padding: 24px 20px; }
	.video__grid { grid-template-columns: 1fr; gap: 32px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.blog-layout { grid-template-columns: 1fr; }
	.contact-form { grid-template-columns: 1fr; gap: 32px; }
	.contact-form__media { min-height: 0; aspect-ratio: 16 / 9; }
	.blog-teaser__post { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 640px) {
	:root { --fs-h3: 22px; --fs-lead: 17px; }
	.container { padding: 0 16px; }
	.section { padding: 44px 0; }
	.hero__content { padding: 40px 16px; }
	.hero .btn { width: 100%; }
	.why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.why-card { padding: 22px 14px 18px; }
	.why-card__title { font-size: 16px; }
	.results { padding-top: 36px; }
	.results__inner { padding-bottom: 32px; }
	.results__grid { grid-template-columns: 1fr; gap: 20px; }
	.results__value { font-size: 24px; }
	.blog-teaser__post { grid-template-columns: 1fr; gap: 14px; --hover-pad: 10px; }
	.blog-teaser__media { aspect-ratio: 16 / 7; }
	.post-grid,
	.post-grid--2 { grid-template-columns: 1fr; }
	.contact-form__fields { grid-template-columns: 1fr; }
	.contact-form__actions .btn { width: 100%; }
	.contact-form__fields { gap: 16px; }
	.single__cta { flex-direction: column; align-items: flex-start; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
	.site-footer__grid { flex-direction: column; align-items: flex-start; gap: 32px; }
	.site-footer__logo .site-logo__img { width: 180px; }
	.site-footer__bottom { padding: 18px 16px 96px; }
	.to-top { right: 24px; bottom: 88px; }
	.page-hero { padding: 44px 0 40px; margin-bottom: 32px; }
	.faq__a { padding-right: 0; }
}
