/* Pequi Games — estilos do tema (complementa o theme.json). */

:root {
	--pg-radius-card: 28px;
	--pg-radius-ui: 999px;
	--pg-line: rgba(246, 236, 210, 0.12);
	--pg-header-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pg-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--wp--preset--color--polpa); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- cabeçalho */
.pg-header-wrap { position: sticky; top: 0; z-index: 50; }
.pg-header {
	background: color-mix(in srgb, var(--wp--preset--color--noite) 82%, transparent);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--pg-line);
}
.pg-header__inner { min-height: var(--pg-header-h); }
.pg-logo { display: inline-flex; line-height: 0; }
.pg-logo img { height: 40px; width: auto; }
.pg-nav { font-weight: 700; font-size: 1rem; gap: 1.75rem; }
.pg-nav a { color: var(--wp--preset--color--capim); text-decoration: none; }
.pg-nav a:hover { color: var(--wp--preset--color--pequi); }
.admin-bar .pg-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .pg-header-wrap { top: 46px; } }

/* ---------------------------------------------------------------- abertura */
.pg-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: max(620px, calc(100svh - var(--pg-header-h)));
	display: flex;
	align-items: flex-start;
	padding-top: clamp(2.5rem, 9vh, 6.5rem);
	padding-bottom: clamp(17rem, 40vh, 26rem);
}
.pg-hero {
	background: linear-gradient(180deg, #0F2A1B 0%, #143823 40%, #1D4A31 70%, #2C4F2E 100%);
}
.pg-hero > .pg-hero__art {
	position: absolute; left: 0; right: 0; bottom: 0;
	height: clamp(300px, 46vh, 520px);
	max-width: none !important; margin: 0 !important;
	z-index: -1; line-height: 0; pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
}
.pg-hero__art svg { width: 100%; height: 100%; display: block; }
.pg-hero__content { position: relative; max-width: 1240px; width: 100%; margin-inline: auto; }
.pg-hero__title {
	max-width: 13ch;
	margin: 0;
	font-size: clamp(3rem, 7.4vw, 6.75rem);
	line-height: 0.95;
	letter-spacing: -0.025em;
	font-variation-settings: "wdth" 96, "opsz" 96;
	color: var(--wp--preset--color--capim);
}
.pg-hero__lead { max-width: 46ch; margin-top: 1.5rem; color: var(--wp--preset--color--capim); opacity: 0.92; }
.pg-hero__actions { margin-top: 2rem; gap: 0.75rem; }

/* o sol-pequi nasce atrás da chapada: único movimento automático da página */
.pg-sol { transform-box: view-box; animation: pg-nascer 2.2s cubic-bezier(0.16, 0.84, 0.24, 1) 0.15s both; }
@keyframes pg-nascer { from { transform: translateY(190px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pg-sol { animation: none; } }

/* botão contornado */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--capim);
	border: 2px solid currentColor;
	padding: calc(0.85rem - 2px) calc(1.5rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--wp--preset--color--pequi); background: transparent; }

/* ---------------------------------------------------------------- seções */
.pg-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); margin-top: 0; }
.pg-section__head { margin-bottom: var(--wp--preset--spacing--50); }
.pg-section__head p { max-width: 62ch; }
.pg-section__head h2 { margin-bottom: 0.75rem; }
.pg-main > * + * { margin-top: 0; }

.pg-estudio h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.pg-estudio a { color: var(--wp--preset--color--casca); }
.pg-pilares { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pg-pilares li {
	position: relative;
	padding: 1.25rem 1.25rem 1.25rem 4rem;
	background: #fff8e6;
	border-radius: 20px;
	border: 1px solid rgba(15, 42, 27, 0.08);
}
.pg-pilares li::before {
	content: "";
	position: absolute; left: 1.25rem; top: 1.35rem;
	width: 1.6rem; height: 1.6rem; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, var(--wp--preset--color--polpa) 0 22%, var(--wp--preset--color--pequi) 23% 100%);
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--laranja);
}
.pg-pilares li:nth-child(2)::before { background: var(--wp--preset--color--ipe-roxo); box-shadow: none; }
.pg-pilares li:nth-child(3)::before { background: var(--wp--preset--color--buriti); box-shadow: none; }

/* ---------------------------------------------------------------- páginas internas */
.pg-page { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); min-height: 60vh; }

/* ---------------------------------------------------------------- rodapé */
.pg-footer { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--40); margin-top: 0; }
.pg-footer h3 { margin-top: 0.5rem; }
.pg-footer a { color: var(--wp--preset--color--capim); }
.pg-footer .pg-logo img { height: 40px; }
.pg-footer__copy { border-top: 1px solid var(--pg-line); padding-top: 1.25rem; margin-top: 2rem; }

/* celular: enquadra o lado do sol, buritis e ipê-amarelo */
@media (max-width: 700px) {
	.pg-hero__art svg { position: absolute; bottom: 0; height: 100%; width: auto; aspect-ratio: 1600 / 530; right: -12%; }
	.pg-hero__title { font-size: clamp(2.9rem, 13vw, 4rem); }
}
