/* Videlis — base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
/* Lenis assume a rolagem suave (regras recomendadas pela biblioteca). */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--font-title);
	color: var(--text-heading);
	font-weight: 400;
	line-height: 1.2;
}
h1, .h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1.1; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.1; }
h3, .h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); line-height: 1.25; }

p { margin: 0; }
.small { font-size: var(--fs-small); line-height: 1.5; color: var(--text-small); }
.italic { font-style: italic; }

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

:focus-visible { outline: 2px solid var(--color-terracota); outline-offset: 3px; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }

.section { padding: var(--section-y) var(--gutter); }
.section > .container { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-24); }
.section--cream { background: var(--color-cream); }
.section--sand-50 { background: var(--color-sand-50); }
.section--sand-100 { background: var(--color-sand-100); }
.section--sand { background: var(--color-sand); }

/* Bloco de título + intro: à esquerda por padrão */
.section-head {
	display: flex;
	flex-direction: column;
	gap: var(--space-16);
	align-items: flex-start;
	width: 100%;
	margin-bottom: var(--space-16);
}
.section-head h2 { max-width: 1000px; }
.section-head p { max-width: var(--text-narrow); }
.section-head--center { align-items: center; text-align: center; }

.grid { display: grid; gap: var(--space-24); width: 100%; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-32); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.site-main { padding-top: var(--header-h); }

/* Conteúdo do editor (page.php / single.php) */
.entry-content { max-width: 720px; margin-inline: auto; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 32px; margin-top: 1.6em; }
