/* ==========================================================================
   Malharia Princesa — estilos principais
   Tokens extraídos do Figma (Gray/1..7, Montserrat 12/14/16/24/40).
   ========================================================================== */

:root {
	--c-black: #000;
	--c-gray-2: #111;
	--c-gray-3: #444;
	--c-gray-4: #848484;
	--c-gray-5: #e3e3e3;
	--c-gray-6: #d9d9d9;
	--c-white: #fff;
	--c-whatsapp: #55b637;

	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-12: 0.75rem;
	--fs-14: 0.875rem;
	--fs-16: 1rem;
	--fs-24: 1.5rem;
	--fs-title: clamp(1.5rem, 0.35rem + 2.67vw, 2.5rem); /* 24 no celular (até ~690px) → 40 a partir de ~1290px */

	--container: 1286px;
	--gutter: 40px;
	--header-h: 84px;
	--section-gap: 120px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (max-width: 1023px) {
	:root {
		--gutter: 24px;
		--header-h: 76px;
		--section-gap: 48px; /* Figma mobile: 48px entre os blocos */
	}
}

/* Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
/* Com o scroll suave via JS, o navegador não deve animar por conta própria. */
html.has-smooth-scroll { scroll-behavior: auto; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-16);
	line-height: 1.4;
	color: var(--c-black);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

/* Layout --------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.section { padding-block: calc(var(--section-gap) / 2); }
.divider { border: 0; border-top: 1px solid var(--c-gray-5); margin: 0; }

/* Tipografia ------------------------------------------------------------ */
.heading { display: flex; flex-direction: column; gap: 13px; }
.eyebrow {
	font-size: var(--fs-12);
	font-weight: 500;
	line-height: 1.2;
	color: var(--c-gray-4);
	text-transform: uppercase;
}
.heading .eyebrow:first-letter { text-transform: none; }
.title {
	font-size: var(--fs-title);
	font-weight: 400;
	line-height: 1.22;
	color: var(--c-black);
}
.title strong { font-weight: 600; }
.lead { font-size: var(--fs-16); line-height: 1.4; color: var(--c-gray-3); max-width: 433px; }

/* Páginas de texto (política de privacidade e outras do editor) */
.prose { max-width: 820px; font-size: var(--fs-16); line-height: 1.65; color: var(--c-gray-3); }
.prose .title { margin-bottom: 40px; }
.prose :is(p, ul, ol) { margin: 0 0 1em; }
.prose :is(ul, ol) { padding-left: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose :is(h2, h3, h4) { margin: 2em 0 0.6em; color: var(--c-black); font-weight: 600; line-height: 1.3; }
.prose h2 { font-size: var(--fs-24); }
.prose :is(h3, h4) { font-size: 1.125rem; }
.prose strong { color: var(--c-gray-2); font-weight: 600; }
.prose a { color: var(--c-black); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: none; }

.heading--center { align-items: center; text-align: center; }
.heading--center .title { max-width: 520px; }
.heading--light .eyebrow,
.heading--light .lead { color: var(--c-gray-6); }
.heading--light .title { color: var(--c-white); }

/* O eyebrow do Instagram (@usuario) não é caixa-alta */
.instagram .eyebrow { text-transform: none; }

/* Botões --------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 262px;
	min-height: 51px;
	padding: 8px 16px;
	border: 1px solid transparent;
	font-size: var(--fs-16);
	line-height: 1.4;
	white-space: nowrap;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: color 0.3s ease-out, border-color 0.3s ease-out;
}
/* Hover do protótipo: o fundo muda em "dissolve" de 0,3 s */
.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--btn-fill, rgba(235, 235, 235, 0.6));
	opacity: 0;
	transition: opacity 0.3s ease-out;
}
.btn:hover::before,
.btn:focus-visible::before { opacity: 1; }
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn .icon--whatsapp { width: 20px; height: 20px; }

.btn--outline { border-color: var(--c-black); color: var(--c-gray-2); }
.btn--outline { --btn-fill: rgba(235, 235, 235, 0.4); }

.btn--outline-light { border-color: var(--c-white); color: var(--c-white); }
.btn--outline-light { --btn-fill: rgba(255, 255, 255, 0.14); }

.btn--solid-light { background: var(--c-white); color: var(--c-gray-2); }
.btn--solid-light { --btn-fill: #ebebeb; }

.btn--solid-dark { background: var(--c-black); color: var(--c-white); }
.btn--solid-dark { --btn-fill: #2b2b2b; }

@media (max-width: 1023px) {
	.btn { width: 100%; min-width: 0; min-height: 48px; font-size: var(--fs-14); }
	.lead { font-size: var(--fs-14); }
}

/* Header --------------------------------------------------------------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	color: var(--c-black);
	/* Protótipo: troca em "dissolve" de 0,3 s (ease-out) ao sair do banner */
	transition: color 0.3s ease-out, border-color 0.3s ease-out;
}
/* Fundo e desfoque numa camada própria: com backdrop-filter no próprio header, o menu
   (fixo, dentro dele) ficaria preso à altura do header em vez de cobrir a tela. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	pointer-events: none;
	transition: background-color 0.3s ease-out, -webkit-backdrop-filter 0.3s ease-out, backdrop-filter 0.3s ease-out;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	padding-inline: 45px 40px;
}
.site-header__logo { display: block; width: 102px; }
.site-header__logo .logo-svg { width: 100%; }

.site-nav__list { display: flex; gap: 24px; }
.site-nav__list a {
	display: flex;
	align-items: center;
	height: 42px;
	font-size: var(--fs-14);
	letter-spacing: -0.03em;
	position: relative;
}
.site-nav__list a::after,
.site-footer__list a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.5s var(--ease-out);
}
.site-nav__list a:hover::after,
.site-footer__list a:hover::after { transform: scaleX(1); transform-origin: left center; }
.site-nav__list .current-menu-item > a::after { transform: scaleX(1); }

.site-header__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -12px; }
.site-header__toggle .icon { width: 20px; height: 20px; }
.site-header__toggle-close { display: none; }

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

@media (max-width: 1023px) {
	.site-header__inner { padding-inline: var(--gutter); }
	.site-header__logo { width: 101px; }
	.site-header__toggle { display: inline-flex; position: relative; z-index: 2; }

	/* Páginas com banner: header transparente sobre o hero até rolar */
	.has-hero .site-header:not(.is-scrolled) {
		border-color: rgba(255, 255, 255, 0.1);
		color: var(--c-white);
	}
	.has-hero .site-header:not(.is-scrolled)::before {
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		display: flex;
		justify-content: center;
		padding-top: 119px;
		/* Fundo e desfoque animados direto (sem opacidade no menu): no Safari do iPhone,
		   o desfoque dentro de um elemento em transição de opacidade só aparece no fim dela. */
		background: rgba(0, 0, 0, 0);
		-webkit-backdrop-filter: blur(0);
		backdrop-filter: blur(0);
		color: var(--c-white);
		visibility: hidden;
		transition: background-color 0.25s var(--ease), -webkit-backdrop-filter 0.25s var(--ease), backdrop-filter 0.25s var(--ease), visibility 0s 0.25s;
	}
	.site-nav__list { flex-direction: column; align-items: center; gap: 8px; opacity: 0; transition: opacity 0.2s var(--ease); }

	.menu-open { overflow: hidden; }
	.menu-open .site-nav {
		visibility: visible;
		background: rgba(0, 0, 0, 0.7);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		transition: background-color 0.25s var(--ease), -webkit-backdrop-filter 0.25s var(--ease), backdrop-filter 0.25s var(--ease), visibility 0s;
	}
	.menu-open .site-nav__list { opacity: 1; transition: opacity 0.25s var(--ease) 0.05s; }
	.menu-open .site-header,
	.menu-open.has-hero .site-header:not(.is-scrolled) {
		border-color: rgba(255, 255, 255, 0.1);
		color: var(--c-white);
	}
	.menu-open .site-header::before,
	.menu-open.has-hero .site-header:not(.is-scrolled)::before {
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		transition: none;
	}
	.menu-open .site-header__logo { position: relative; z-index: 2; }
	.menu-open .site-header__toggle-open { display: none; }
	.menu-open .site-header__toggle-close { display: block; }
}

/* Footer --------------------------------------------------------------- */
.site-footer { padding-block: calc(var(--section-gap) / 2) 0; }
.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: start;
	gap: 24px;
	padding-top: 34px;
	padding-bottom: 102px;
	position: relative;
}
.site-footer__inner::before {
	content: "";
	position: absolute;
	inset: 0 var(--gutter) auto;
	border-top: 1px solid var(--c-gray-5);
}
.site-footer__logo { display: block; width: 100px; }
.site-footer__list { display: flex; gap: 47px; padding-top: 25px; font-size: var(--fs-14); }
.site-footer__list a { position: relative; padding-bottom: 2px; }
.social { display: flex; justify-content: flex-end; gap: 12px; padding-top: 16px; }
.social a { display: block; transition: opacity 0.2s; }
.social a:hover { opacity: 0.6; }
.social .icon { width: 24px; height: 24px; }

@media (max-width: 1023px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 32px;
		padding-top: 40px;
		padding-bottom: 40px;
	}
	.site-footer__list { flex-direction: column; align-items: center; gap: 16px; padding-top: 0; }
	.social { order: -1; grid-row: 2; padding-top: 0; }
	.site-footer__nav { grid-row: 3; }
}

/* WhatsApp flutuante ------------------------------------------------------ */
.whatsapp-float {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--c-whatsapp);
	border: 1px solid rgba(253, 253, 253, 0.2);
	color: var(--c-white);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float .icon { width: 27px; height: 27px; }
@media (max-width: 1023px) {
	.whatsapp-float { right: 16px; bottom: 16px; width: 48px; height: 48px; }
	.whatsapp-float .icon { width: 22px; height: 22px; }
}

/* Hero (Home) ---------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 674px;
	padding-top: var(--header-h);
	color: var(--c-white);
	background: var(--c-black);
	overflow: hidden;
}
.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__content { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 48px; }
.hero__title { font-size: var(--fs-title); font-weight: 400; line-height: 1.22; max-width: 514px; }
.hero__title strong { font-weight: 600; }
.hero__text { max-width: 415px; color: var(--c-gray-6); }

@media (max-width: 1023px) {
	.hero { min-height: 620px; align-items: flex-end; padding-bottom: 96px; }
	.hero__content { gap: 32px; }
	.hero__text { font-size: var(--fs-14); }
	.hero .btn { width: auto; min-width: 262px; }
}

/* Linhas de tecido ------------------------------------------------------ */
.home-tecidos { padding-top: 32px; }
.home-tecidos__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 63px; }
.home-tecidos__head .heading { max-width: 524px; }
.home-tecidos__btn { min-width: 307px; }
.home-tecidos__btn-mobile { display: none; }
.home-tecidos .divider { margin-top: 63px; }

.linhas-slider {
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	cursor: grab;
}
.linhas-slider::-webkit-scrollbar { display: none; }
/* Com mouse o arraste tem física própria (main.js): sem encaixe, que brigaria com a inércia */
[data-drag-scroll].is-physics { scroll-snap-type: none; scroll-behavior: auto; cursor: grab; }
[data-drag-scroll] a, [data-drag-scroll] img { -webkit-user-drag: none; }
[data-drag-scroll].is-dragging { cursor: grabbing; user-select: none; }
[data-drag-scroll].is-dragging a { pointer-events: none; }
.linhas-slider__track {
	display: flex;
	gap: 16px;
	width: max-content;
	padding-inline: max(var(--gutter), (100vw - var(--container)) / 2);
}

.linha-card { position: relative; flex: none; width: 415px; aspect-ratio: 415 / 460; overflow: hidden; color: var(--c-white); scroll-snap-align: start; }
.linha-card a { display: block; height: 100%; }
.linha-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); -webkit-user-drag: none; user-select: none; }
.linha-card a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 40%), rgba(0, 0, 0, 0.2);
}
.linha-card__title,
.linha-card__text { position: absolute; z-index: 2; left: 7%; right: 7%; }
.linha-card__title { top: 8%; font-size: var(--fs-24); font-weight: 500; line-height: 1.2; }
.linha-card__text { bottom: 6%; min-height: 44px; }
.linha-card__hover {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.3s ease-out;
}
.linha-card__hover .btn { min-width: 0; }
@media (hover: hover) {
	.linha-card:hover .linha-card__hover { opacity: 1; }
}

@media (max-width: 1023px) {
	.home-tecidos__head { margin-bottom: 40px; }
	.home-tecidos__btn { display: none; }
	.home-tecidos__btn-mobile { display: flex; margin-top: 40px; }
	.home-tecidos .divider { margin-top: 40px; }
	.linha-card { width: min(300px, 78vw); }
	.linha-card__text { font-size: var(--fs-14); }
}

/* Split (texto + imagem) ------------------------------------------------- */
.split__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.split__content { display: flex; flex-direction: column; align-items: flex-start; gap: 48px; flex: 0 1 524px; }
.split__media { position: relative; flex: 0 1 686px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.split__media--benef { aspect-ratio: 686 / 482; }
.split__media--sobre { flex-basis: 633px; aspect-ratio: 633 / 444; }

.glass-badge {
	position: absolute;
	left: 24%;
	top: 22.4%;
	width: 51.9%;
	height: 59.1%;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--c-white);
}
.glass-badge .logo-svg { width: 52%; }

@media (max-width: 1023px) {
	.split__inner { flex-direction: column; align-items: stretch; gap: 28px; }
	.split__content { flex-basis: auto; gap: 32px; }
	.split__media { flex-basis: auto; }
	.split--media-first .split__media { order: -1; }
}

/* Banner de sustentabilidade -------------------------------------------- */
.banner-sust {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 501px;
	padding: 64px 24px;
	overflow: hidden;
	background: #696969;
}
.banner-sust__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js-parallax .banner-sust__bg { inset: -60px 0; height: calc(100% + 120px); }
.banner-sust::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.6); }
.banner-sust__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 48px; max-width: 565px; }
.banner-sust .title { max-width: 438px; }
.banner-sust .btn { width: auto; }
@media (max-width: 1023px) {
	.banner-sust { min-height: 430px; }
	.banner-sust__content { gap: 32px; }
}

/* Instagram ------------------------------------------------------------ */
.instagram .heading { margin-bottom: 56px; }
.marquee { overflow: hidden; }
.marquee__track {
	display: flex;
	gap: 20px;
	width: max-content;
	animation: mp-marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; width: 301px; aspect-ratio: 301 / 334; border: 1px solid var(--c-gray-5); overflow: hidden; }
.marquee__item a, .marquee__item img { display: block; width: 100%; height: 100%; }
.marquee__item img { object-fit: cover; }
@keyframes mp-marquee {
	to { transform: translateX(calc(-50% - 10px)); }
}
@media (max-width: 1023px) {
	.instagram .heading { margin-bottom: 32px; }
}

/* CTA contato ------------------------------------------------------------ */
.cta-contato__inner { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.cta-contato .btn { width: auto; }
@media (max-width: 1023px) {
	.cta-contato__inner { gap: 32px; }
}

/* Banner das páginas internas ------------------------------------------- */
.page-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 652px;
	padding-top: var(--header-h);
	background: var(--c-gray-2);
	color: var(--c-white);
	text-align: center;
	overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.6); }
.page-hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 39px; }
.page-hero__title { max-width: 563px; font-size: var(--fs-title); font-weight: 400; line-height: 1.22; }
.page-hero__title strong { font-weight: 600; }
.page-hero__text { max-width: 415px; }
.page-hero--no-overlay::before { display: none; }
[data-slideshow] .page-hero__bg { opacity: 0; transition: opacity 0.3s ease-out; }
[data-slideshow] .page-hero__bg.is-active { opacity: 1; }
.page-hero__logo { display: block; width: 101px; margin-bottom: 9px; }
.page-hero__logo svg { width: 100%; height: auto; }
@media (max-width: 1023px) {
	.page-hero { min-height: 520px; }
	.page-hero__content { gap: 20px; }
	.page-hero__logo { display: none; }
	.page-hero__text { font-size: var(--fs-14); }
}

/* Tecidos: grid de linhas ------------------------------------------------ */
.linhas .heading { margin-bottom: 71px; }
.linhas__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 72px 64px; }
.aplicacao { display: flex; flex-direction: column; }
.aplicacao__media { aspect-ratio: 611 / 429; overflow: hidden; margin-bottom: 39px; }
.aplicacao__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.aplicacao__title { font-size: var(--fs-24); font-weight: 500; line-height: 1.2; margin-bottom: 21px; }
.aplicacao__text { max-width: 471px; }
@media (max-width: 1023px) {
	.linhas .heading { margin-bottom: 40px; }
	.linhas__grid { grid-template-columns: 1fr; gap: 48px; }
	.aplicacao__media { margin-bottom: 24px; }
	.aplicacao__title { font-size: 20px; margin-bottom: 12px; }
}

/* Tecidos: tecnologias --------------------------------------------------- */
.tech__heading { margin-block: 114px 96px; }
.tech__seal { width: 77px; height: 14px; color: var(--c-gray-2); }
.tech__heading .lead { max-width: 546px; }
.tech__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 202px));
	justify-content: space-between;
	gap: 75px 40px;
	padding-inline: 9px;
	margin-bottom: 114px;
}
.tech__item img { width: 80px; height: 80px; margin-bottom: 30px; }
.tech__title { font-size: 20px; font-weight: 500; line-height: 1.2; margin-bottom: 21px; }
@media (max-width: 1023px) {
	.tech__heading { margin-block: 48px; }
	.tech__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 24px; padding-inline: 0; margin-bottom: 48px; }
	.tech__text { font-size: var(--fs-14); }
}

/* Tecidos: energia limpa ------------------------------------------------- */
.energia { padding-top: 0; }
.energia__inner { padding-block: 59px; align-items: center; }
.energia__media { position: relative; flex: 0 1 612px; aspect-ratio: 612 / 479; }
/* Enquadramento do Figma: faixa do meio da foto (25% a 77% da altura) */
.energia__media > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
/* Selo como no Figma: círculo branco de 95px com sombra suave e o selo de 82px no centro */
.energia__selo { position: absolute; top: 41px; right: 70px; width: 95px; height: 95px; padding: 6.5px; border-radius: 50%; background: var(--c-white); box-shadow: 0 0 20px rgba(0, 0, 0, 0.25); object-fit: contain; }
.energia__content { flex: 0 1 555px; }
.energia__content .lead { max-width: 442px; }
@media (max-width: 1023px) {
	.energia__inner { padding-block: 0 48px; }
	.energia__media,
	.energia__content { flex-basis: auto; width: 100%; }
	.energia__selo { top: 24px; right: 40px; width: 55px; height: 55px; padding: 4px; box-shadow: 0 0 12px rgba(0, 0, 0, 0.25); }
}

/* Beneficiamento: serviços --------------------------------------------- */
.servicos { padding-top: 61px; }
.servicos__list { display: flex; flex-direction: column; gap: 45px; }
.servico {
	display: grid;
	grid-template-columns: 610fr 678fr;
	min-height: 523px;
	border: 1px solid #e5e5e5;
}
.servico__media { position: relative; overflow: hidden; background: var(--c-gray-6); }
.servico__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.servico__badge {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 21px;
	width: 58.4%;
	max-width: 356px;
	aspect-ratio: 356 / 285;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.8);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	color: var(--c-white);
}
.servico__badge svg { width: 70px; height: auto; }
.servico__badge span { font-size: 30px; font-weight: 700; line-height: 1.2; }
.servico__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 48px;
	padding: 44px 40px 44px 109px;
	background: #fafafa;
}
.servico__body .heading { max-width: 524px; }
.servico__body .title { max-width: 440px; }
.servico__body .lead { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1023px) {
	.servicos { padding-top: 48px; }
	.servicos__list { gap: 48px; }
	.servico { grid-template-columns: 1fr; min-height: 0; border: 0; }
	.servico__media { aspect-ratio: 354 / 304; }
	.servico__badge { width: 207px; gap: 12px; aspect-ratio: 207 / 188; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
	.servico__badge svg { width: 41px; }
	.servico__badge span { font-size: var(--fs-14); }
	.servico__body { gap: 24px; padding: 28px 24px; }
	.servico__body .lead { gap: 18px; }
}

/* Sobre: linha do tempo ------------------------------------------------- */
.timeline-section { padding-top: 57px; }
.timeline {
	position: relative;
	margin-top: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	cursor: grab;
	padding-top: 47px;
}
.timeline::-webkit-scrollbar { display: none; }
.timeline.is-dragging { cursor: grabbing; }
.timeline__rail {
	position: absolute;
	left: 0;
	top: calc(47px + 75px + 14px);
	height: 1px;
	background: var(--c-black);
	pointer-events: none;
}
.timeline__progress {
	position: absolute;
	left: 0;
	top: -0.5px;
	height: 2px;
	width: 173px;
	background: var(--c-black);
	transition: width 0.2s linear;
}
.timeline__list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: minmax(75px, auto) 28px auto;
	column-gap: 22px;
	width: max-content;
	padding-inline: max(var(--gutter), (100vw - var(--container)) / 2) var(--gutter);
	list-style: none;
	margin: 0;
}
.timeline__item {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	justify-items: center;
	width: 252px;
	text-align: center;
	user-select: none;
}
.timeline__year { grid-row: 1; align-self: end; margin-bottom: 32px; font-size: var(--fs-24); line-height: 1.2; }
.timeline__dot { grid-row: 2; width: 28px; height: 28px; border: 1px solid var(--c-black); border-radius: 50%; background: var(--c-white); position: relative; z-index: 1; transition: background-color 0.3s var(--ease); }
.timeline__item.is-active .timeline__dot { background: var(--c-black); }
.timeline__text { grid-row: 3; margin-top: 32px; color: var(--c-gray-3); min-height: 90px; }
.timeline__item--flip .timeline__text { grid-row: 1; align-self: end; margin: 0 0 32px; min-height: 0; }
.timeline__item--flip .timeline__year { grid-row: 3; align-self: start; margin: 32px 0 0; }
@media (min-width: 1024px) {
	/* Desktop: faixa de cima fixa como no Figma (o texto mais alto sobe, sem empurrar a linha). */
	.timeline__list { grid-template-rows: 75px 28px auto; }
}
@media (max-width: 1023px) {
	.timeline { margin-top: 16px; padding-top: 16px; }
	.timeline__rail { top: calc(16px + 75px + 14px); }
	.timeline__text { font-size: var(--fs-14); }
}

/* Sobre: vídeo ----------------------------------------------------------- */
.video-section { padding-top: 29px; }
.video-frame { position: relative; aspect-ratio: 1280 / 637; overflow: hidden; background: var(--c-black); max-width: 1280px; margin-inline: auto; }
.video-frame video, .video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame video { position: absolute; inset: 0; }

/* Vídeos de fundo: entram em fade sobre a imagem de capa */
.bg-video { opacity: 0; transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1); }
.bg-video.is-playing { opacity: 1; }

/* Botão de som (vídeo institucional) */
/* Botão de som em cima (com a linha do tempo presa, a base do vídeo pode ficar fora da tela); controles do vídeo completo na base */
.video-ui { position: absolute; left: 16px; top: 16px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 8px; pointer-events: none; }
.video-ui > * { pointer-events: auto; }
.video-sound {
	flex: none;
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 14px 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.45);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: var(--c-white); font: inherit; font-size: var(--fs-14); cursor: pointer;
	opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out), background-color 0.2s;
}
.video-sound svg { width: 18px; height: 18px; flex: none; }
.video-sound .video-sound__on { display: none; }
.video-sound[aria-pressed="true"] .video-sound__on { display: block; }
.video-sound[aria-pressed="true"] .video-sound__off { display: none; }
.video-frame.is-playing .video-sound { opacity: 1; pointer-events: auto; }
.video-sound:hover { background: rgba(0, 0, 0, 0.65); }
.video-sound:focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }
.video-sound,
.video-controls { border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--c-white); }
.video-controls { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: none; align-items: center; gap: 2px; height: 40px; padding: 0 6px; }
.video-frame.is-full .video-controls { display: flex; }
.vc-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: inherit; cursor: pointer; }
.vc-btn svg { width: 18px; height: 18px; }
.vc-btn:hover { background: rgba(255, 255, 255, 0.12); }
.vc-btn:focus-visible, .vc-seek:focus-visible { outline: 2px solid var(--c-white); outline-offset: 1px; }
.vc-play { display: none; }
.video-frame.is-paused .vc-play { display: block; }
.video-frame.is-paused .vc-pause { display: none; }
.vc-seek { flex: 1 1 auto; min-width: 40px; height: 4px; margin: 0 8px; accent-color: var(--c-white); cursor: pointer; }
.vc-time { flex: none; min-width: 74px; font-size: var(--fs-12); font-variant-numeric: tabular-nums; text-align: right; padding-right: 4px; }
@media (max-width: 767px) {
	.video-ui { left: 10px; top: 10px; right: 10px; gap: 6px; }
	.video-sound { height: 36px; padding: 0 10px; } .video-sound__label { display: none; }
	.video-controls { left: 10px; right: 10px; bottom: 10px; height: 36px; padding: 0 4px; }
	.vc-time { display: none; }
}
.hero__video { z-index: 0; }
.hero__content { z-index: 1; }
/* Véu escuro sobre o vídeo/imagem do hero (protótipo do Figma) */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, 0.6); pointer-events: none; }

/* Páginas com banner: header transparente sobre o hero também no desktop, até sair dele */
.has-hero .site-header:not(.is-scrolled) {
	border-color: rgba(255, 255, 255, 0.08);
	color: var(--c-white);
}
.has-hero .site-header:not(.is-scrolled)::before {
	background: transparent;
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
}

/* Linha do tempo ligada à rolagem (desktop) */
/* Desktop: título, linha e vídeo ficam presos logo abaixo do header enquanto a linha anda na horizontal (main.js) */
.is-pinned .timeline-pin { position: sticky; top: 0; overflow: hidden; }
/* Presa, a folga acima do título vai para dentro do bloco: o título não encosta no header */
.timeline-section.is-pinned { padding-top: 0; }
.is-pinned .timeline-pin { padding-top: 57px; }
.timeline.is-pinned { overflow: hidden; cursor: default; }
.timeline.is-pinned .timeline__list,
.timeline.is-pinned .timeline__rail { will-change: transform; }
.timeline.is-pinned .timeline__progress { transition: none; }
@media (max-width: 1023px) { .video-section { padding-top: 16px; } .video-frame { aspect-ratio: 356 / 178; } }

/* Sobre: diretoria ------------------------------------------------------- */
.diretoria__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 53px; }
.diretoria__head .heading { max-width: 602px; }
.diretoria__head .lead { max-width: 306px; }
.diretoria__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perfil__media { aspect-ratio: 415 / 414; overflow: hidden; background: var(--c-gray-6); margin-bottom: 24px; }
.perfil__media img { width: 100%; height: 100%; object-fit: cover; }
.perfil__name { font-size: var(--fs-24); font-weight: 500; line-height: 1.2; }
.perfil__role { color: var(--c-gray-3); }
@media (max-width: 1023px) {
	.diretoria__head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 48px; }
	.diretoria__list { grid-template-columns: 1fr; gap: 24px; }
	.perfil__media { margin-bottom: 12px; }
	.perfil__role { font-size: var(--fs-14); }
}

/* Sobre: valores --------------------------------------------------------- */
.valores .heading { margin-block: 53px 58px; }
.valores__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 371px));
	justify-content: space-between;
	gap: 69px 40px;
	max-width: calc(var(--container) - 13px);
	margin: 0 auto 101px;
	padding-inline: calc(var(--gutter) + 2px);
	box-sizing: content-box;
}
.valor img { width: 56px; height: 56px; margin-bottom: 32px; }
.valor__title { font-size: var(--fs-24); font-weight: 500; line-height: 1.2; margin-bottom: 32px; }
.valor__text { padding-top: 33px; border-top: 1px solid var(--c-black); max-width: 371px; }
@media (max-width: 1023px) {
	.valores__scroller { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
	.valores__scroller::-webkit-scrollbar { display: none; }
	.valores .heading { margin-block: 48px; }
	.valores__grid { display: flex; gap: 24px; width: max-content; max-width: none; margin-bottom: 48px; padding-inline: var(--gutter); }
	.valor { width: 296px; scroll-snap-align: start; }
	.valor img { margin-bottom: 24px; }
	.valor__title { margin-bottom: 24px; }
	.valor__text { padding-top: 24px; font-size: var(--fs-14); }
}

/* Sustentabilidade ------------------------------------------------------ */
.manifesto { padding-top: 68px; }
.manifesto__inner { display: flex; flex-direction: column; align-items: center; gap: 35px; margin-bottom: 66px; }
.manifesto__coroa { width: 62px; height: auto; }
.manifesto__text { max-width: 816px; text-align: center; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 500; line-height: 1.22; }
.manifesto__text .w { opacity: 0.15; transition: opacity 0.25s linear; }
.manifesto__text .w.is-on { opacity: 1; }
.manifesto__media { aspect-ratio: 1267 / 462; overflow: hidden; max-width: 1267px; margin-inline: auto; }
.manifesto__media img { width: 100%; height: 100%; object-fit: cover; }

.emissoes { text-align: center; padding-top: 13px; }
.emissoes__intro { color: var(--c-gray-3); }
.emissoes__valor { margin-top: 8px; font-size: var(--fs-title); line-height: 1.22; }
.emissoes__valor strong { font-weight: 600; }
.emissoes__valor::after { content: ""; display: block; width: 84px; height: 1px; margin: 26px auto 0; background: var(--c-black); }
.emissoes__caption { margin-top: 110px; padding-bottom: 25px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); max-width: 942px; margin-inline: auto; }
.metricas { display: flex; justify-content: center; gap: 88px; margin-top: 56px; }
.metrica { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 173px; }
.metrica img { width: 60px; height: 60px; }
.metrica p { display: flex; flex-direction: column; white-space: nowrap; }
.metrica strong { font-size: var(--fs-title); font-weight: 600; line-height: 1.12; }

.agua { padding-top: 162px; }
.agua__inner { display: flex; align-items: center; justify-content: space-between; gap: 86px; padding-left: calc(var(--gutter) + 25px); }
.agua__content { flex: 0 1 588px; display: flex; flex-direction: column; gap: 56px; }
.agua__list li { padding-block: 0 36px; }
.agua__list li + li { padding-top: 36px; border-top: 1px solid var(--c-black); }
.agua__list li:last-child { padding-bottom: 0; }
.agua__media { flex: 0 1 587px; aspect-ratio: 587 / 462; overflow: hidden; }
.agua__media img { width: 100%; height: 100%; object-fit: cover; }

.banner-sust--baked::before { display: none; }
.banner-sust--baked .title { max-width: 565px; }

@media (max-width: 1023px) {
	.manifesto { padding-top: 48px; }
	.manifesto__inner { gap: 48px; margin-bottom: 48px; }
	.manifesto__coroa { width: 70px; }
	.emissoes { padding-top: 24px; }
	.emissoes__valor { margin-top: 16px; }
	.emissoes__valor::after { display: none; }
	.emissoes__caption { margin-top: 16px; }
	.metricas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; margin-top: 48px; }
	.metrica { width: auto; gap: 24px; }
	.metrica p { white-space: normal; font-size: var(--fs-14); }
	.agua { padding-top: 22px; }
	.agua__inner { flex-direction: column-reverse; align-items: stretch; gap: 24px; padding-left: var(--gutter); }
	.agua__content { flex-basis: auto; gap: 24px; }
	.agua__media { flex-basis: auto; width: 100%; }
	.agua__list li { padding-bottom: 24px; font-size: var(--fs-14); }
	.agua__list li + li { padding-top: 24px; }
}

/* Formulários ------------------------------------------------------------ */
.form-page { padding-top: 60px; }
.form-page__inner { display: flex; justify-content: space-between; gap: 48px; }
.form-page__intro { flex: 0 1 419px; padding-top: 10px; }
.form-page__intro .heading { gap: 17px; }
.form-page__intro .lead { margin-top: 19px; max-width: 388px; }
.form-page__form { flex: 0 1 512px; margin-right: 112px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 14px 10px;
	border: 1px solid var(--c-gray-6);
	border-radius: 0;
	background: var(--c-white);
	font: inherit;
	font-size: var(--fs-14);
	line-height: 1.2;
	color: var(--c-black);
	transition: border-color 0.2s var(--ease);
	-webkit-appearance: none;
	appearance: none;
}
.field textarea { height: 120px; resize: vertical; padding-top: 10px; }
.field ::placeholder { color: var(--c-gray-3); opacity: 1; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--c-black); }
.field .is-invalid { border-color: #c32828; }
.form__alert { padding: 12px 14px; border-left: 2px solid #c32828; background: #fdf3f3; font-size: var(--fs-14); }
.form__submit { width: 100%; }
.form__submit[disabled] { opacity: 0.6; cursor: wait; }

@media (max-width: 1023px) {
	.form-page { padding-top: 48px; }
	.form-page__inner { flex-direction: column; gap: 32px; }
	.form-page__intro { flex-basis: auto; padding-top: 0; }
	.form-page__intro .heading { align-items: center; text-align: center; gap: 16px; }
	.form-page__intro .lead { margin: 0 auto; }
	.form-page__form { flex-basis: auto; margin-right: 0; }
	.field input, .field textarea { padding-inline: 12px; }
}

/* Contato: localização --------------------------------------------------- */
.localizacao { padding-top: 72px; }
.localizacao__info { display: flex; flex-direction: column; gap: 37px; padding: 51px 7px 0; margin-bottom: 53px; }
.localizacao address { font-style: normal; max-width: 388px; }
.localizacao address a:hover { text-decoration: underline; }
.mapa { position: relative; display: block; aspect-ratio: 1286 / 276; overflow: hidden; background: var(--c-gray-6); }
/* Ponto da Malharia na imagem (marcador do Google): o mesmo valor no foco do recorte e no pino,
   assim o pino fica sobre o marcador em qualquer proporção de tela. */
.mapa { --mapa-x: 54.5%; --mapa-y: 32.2%; }
.mapa img { width: 100%; height: 100%; object-fit: cover; object-position: var(--mapa-x) var(--mapa-y); transition: transform 0.6s var(--ease); transform-origin: var(--mapa-x) var(--mapa-y); }
.mapa__pin { position: absolute; left: var(--mapa-x); top: var(--mapa-y); width: 30px; height: 40px; transform: translate(-50%, -100%); }
@media (max-width: 1023px) {
	.localizacao { padding-top: 32px; }
	.localizacao__info { gap: 20px; padding: 32px 0 0; margin-bottom: 32px; }
	.mapa { aspect-ratio: 354 / 240; }
	.mapa__pin { width: 26px; height: 35px; }
}

/* Sucesso / 404 ---------------------------------------------------------- */
.status { padding-block: 67px 90px; }
.status__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.status__icon svg { width: 62px; height: 62px; fill: none; stroke-width: 1.667; stroke-linecap: round; stroke-linejoin: round; }
.status__icon--success circle { fill: #b5f2bb; opacity: 0.4; }
.status__icon--success path { stroke: #50b637; }
.status__icon--error circle { fill: var(--c-gray-6); opacity: 0.4; }
.status__icon--error path { stroke: var(--c-black); }
.status__title { max-width: 546px; margin-top: 40px; font-size: var(--fs-title); font-weight: 400; line-height: 1.22; }
.status .lead { margin-top: 33px; max-width: 452px; }
.status .btn { margin-top: 51px; min-width: 307px; }
@media (max-width: 1023px) {
	.status { padding-block: 64px; }
	.status__title { margin-top: 24px; }
	.status .lead { margin-top: 16px; }
	.status .btn { margin-top: 32px; min-width: 0; }
}

/* ==========================================================================
   Movimento — efeitos sutis (desligados em prefers-reduced-motion)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	/* Entrada do banner: imagem aparece saindo do preto e branco; textos sobem em sequência
	   (preenchimento "backwards": ao terminar, a troca de fotos do banner volta a mandar na opacidade) */
	.hero__bg:not(video),
	.page-hero__bg:first-of-type { animation: mp-focus 2.8s var(--ease-out) backwards; }
	.page-hero__bg:not(:first-of-type) { animation: mp-gray 2.8s var(--ease-out) backwards; }
	.hero__content > *,
	.page-hero__content > * { animation: mp-rise 1.3s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 130ms + 250ms); }
	.hero__content > :nth-child(2), .page-hero__content > :nth-child(2) { --i: 1; }
	.hero__content > :nth-child(3), .page-hero__content > :nth-child(3) { --i: 2; }
	.hero__content > :nth-child(4), .page-hero__content > :nth-child(4) { --i: 3; }
	.site-header { animation: mp-fade 1s var(--ease-out) backwards 0.1s; } /* backwards: ao terminar, o header não fica "animado" (senão o desfoque do menu, dentro dele, não enxerga a página) */

	/* Revelação ao rolar */
	.js [data-reveal] {
		opacity: 0;
		transform: translate3d(0, 28px, 0);
		transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out);
		transition-delay: var(--reveal-delay, 0ms);
	}
	.js [data-reveal].is-revealed { opacity: 1; transform: none; }

	/* Imagens: sem escala. Aparecem e ganham cor com a rolagem (main.js, "Cor ao rolar") */
	.js [data-reveal="media"] { opacity: 1; transform: none; }
	/* Transição curta por cima do valor da rolagem: o fade fica macio, sem degraus */
	.js .is-color-scroll { transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out); }

	/* Selo e badge entram depois da imagem */
	.js [data-reveal="media"] .glass-badge,
	.js [data-reveal="media"] .servico__badge,
	.js [data-reveal="media"] .energia__selo,
	.js [data-reveal="media"] .mapa__pin { opacity: 0; transition: opacity 0.9s var(--ease-out) 0.6s; }
	.js [data-reveal="media"].is-revealed .glass-badge,
	.js [data-reveal="media"].is-revealed .servico__badge,
	.js [data-reveal="media"].is-revealed .energia__selo,
	.js [data-reveal="media"].is-revealed .mapa__pin { opacity: 1; }
	.js [data-reveal="media"] .mapa__pin { transform: translate(-50%, -130%); transition: opacity 0.6s var(--ease-out) 0.7s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s; }
	.js [data-reveal="media"].is-revealed .mapa__pin { transform: translate(-50%, -100%); }

	/* Linhas divisórias que se desenham */
	.js .divider[data-reveal] { opacity: 1; transform: scaleX(0); transform-origin: left center; transition: transform 1.6s var(--ease-in-out); }
	.js .divider[data-reveal].is-revealed { transform: scaleX(1); }
	.js .valor__text[data-reveal-line] { border-top-color: transparent; position: relative; }
	.js .valor__text[data-reveal-line]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--c-black); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-in-out) calc(var(--reveal-delay, 0ms) + 300ms); }
	.js .is-revealed .valor__text[data-reveal-line]::before { transform: scaleX(1); }

	/* Ícones das tecnologias e valores: leve giro no hover */
	.tech__item img,
	.valor img,
	.metrica img { transition: transform 0.7s var(--ease-out); }
	.tech__item:hover img,
	.valor:hover img,
	.metrica:hover img { transform: rotate(-8deg) scale(1.06); }

	/* Pontos da linha do tempo pulsam ao ativar */
	.timeline__item.is-active .timeline__dot { animation: mp-pop 0.6s var(--ease-out); }


	/* Botão de WhatsApp: aparece após o carregamento e respira de leve */
	.whatsapp-float { animation: mp-float-in 0.9s var(--ease-out) backwards 1.2s; }
	.whatsapp-float::after {
		content: "";
		position: absolute;
		inset: -1px;
		border-radius: 50%;
		border: 1px solid var(--c-whatsapp);
		animation: mp-ring 3.2s var(--ease-out) infinite 2.5s;
		pointer-events: none;
	}
}

@keyframes mp-focus { from { opacity: 0.4; filter: grayscale(1); } to { opacity: 1; filter: grayscale(0); } }
@keyframes mp-gray { from { filter: grayscale(1); } to { filter: grayscale(0); } }
@keyframes mp-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes mp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mp-pop { 0% { scale: 1; } 40% { scale: 1.25; } 100% { scale: 1; } }
@keyframes mp-float-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes mp-ring { 0% { opacity: 0.6; scale: 1; } 70%, 100% { opacity: 0; scale: 1.45; } }

/* Acessibilidade: menos movimento --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.marquee { overflow-x: auto; }
	.manifesto__text .w { opacity: 1; }
}

/* ==========================================================================
   Ajustes finos de espaçamento (desktop), medidos no Figma em 1366px.
   Os espaços entre as seções do layout não são todos iguais; aqui eles são
   reproduzidos página a página.
   ========================================================================== */

/* Rodapé sempre no fim da tela em páginas curtas (como os quadros do Figma) */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.site-main { flex: 1 0 auto; }

@media (min-width: 1024px) {
	/* Banner da Home: bloco de texto começa em 218px */
	.hero { padding-bottom: 32px; }

	/* Banner das páginas internas: título em 264px e logo 38px acima dele */
	.page-hero { place-items: start center; padding-top: 264px; padding-bottom: 60px; }
	.page-hero__logo { position: absolute; left: 50%; bottom: calc(100% + 38px); translate: -50% 0; margin: 0; }
	.is-tecidos .page-hero { padding-top: 277px; }
	.is-tecidos .page-hero__content { gap: 22px; }
	.is-tecidos .page-hero__title { max-width: 524px; }
	.is-beneficiamento .page-hero__title { max-width: 459px; }
	.is-sobre .page-hero__text,
	.is-sustentabilidade .page-hero__text { max-width: 511px; }

	/* CTA de contato → rodapé: 80px na maioria das páginas */
	.cta-contato { padding-bottom: 20px; }
	/* Sem texto de apoio, o título fica 58px acima do botão */
	.cta-contato .title:last-child { margin-bottom: 10px; }
	.cta-contato .lead { max-width: 497px; margin-top: 10px; }
	/* Energia limpa: espaço entre título e texto */
	.energia__content .lead { margin-top: 22px; }
	.is-sustentabilidade .energia__content .lead { margin-top: 35px; }

	/* Home */
	.home-tecidos { padding-bottom: 0; }
	.home .split--text-first { padding-block: 57px 29px; }
	.home .split--text-first + .section { padding-bottom: 0; }
	.home .split--media-first { padding-block: 67px 57px; }
	.home .instagram { padding-bottom: 30px; }
	.home .cta-contato { padding-bottom: 56px; }

	/* Tecidos */
	.is-tecidos .linhas { padding-block: 71px 20px; }
	.is-tecidos .linhas .heading { margin-bottom: 80px; }
	.is-tecidos .linhas__grid { row-gap: 80px; }
	.is-tecidos .tech__list { row-gap: 82px; }
	.is-tecidos .tech { padding-bottom: 0; }
	.is-tecidos .energia { padding-bottom: 15px; }

	/* Beneficiamento */
	.is-beneficiamento .servicos { padding-bottom: 38px; }
	.is-beneficiamento .servicos__list { gap: 40px; }
	.is-beneficiamento .cta-contato { padding-bottom: 2px; }

	/* Sobre */
	.is-sobre .timeline-section { padding-bottom: 8px; }
	.is-sobre .diretoria { padding-bottom: 50px; }
	.is-sobre .valores { padding-bottom: 0; }
	.is-sobre .cta-contato { padding-top: 53px; }

	/* Sustentabilidade */
	.manifesto__inner { margin-bottom: 72px; }
	.emissoes { padding-bottom: 0; }
	.agua { padding-bottom: 0; }
	.agua + .section { padding-block: 53px 16px; }
	.is-sustentabilidade .energia { padding-bottom: 0; }
	.is-sustentabilidade .energia__inner { padding-bottom: 83px; }
	.is-sustentabilidade .cta-contato { padding-block: 48px 7px; }

	/* Contato */
	.is-contato .form-page { padding-bottom: 0; }
	.is-contato .localizacao { padding-bottom: 0; }
	.is-contato .site-footer { padding-top: 36px; }
	.is-trabalhe-conosco .form-page { padding-bottom: 15px; }
}

/* Ajustes finos de espaçamento (celular), medidos no Figma em 402px ------ */
@media (max-width: 1023px) {
	/* Banner da Home: 24px entre título, texto e botão; bloco termina 170px acima do fim */
	.hero { padding-bottom: 170px; }
	.hero__content { gap: 24px; }
	/* Banners internos: texto centralizado na altura toda do banner */
	.page-hero { padding-top: 0; }

	/* Primeiro bloco após o banner e último antes do rodapé */
	.hero + .section,
	.page-hero + .section { padding-top: 48px; }
	.cta-contato { padding-bottom: 64px; }
	.cta-contato__inner { gap: 24px; }

	/* Rodapé: linha a 32px do topo, 24px entre os itens, 32px no fim */
	.site-footer { padding-top: 0; }
	.site-footer__inner { padding-block: 56px 32px; gap: 24px; }
	.site-footer__inner::before { top: 32px; }
	.social { gap: 26px; }

	/* Tecidos: cards e tecnologias nos tamanhos do Figma */
	.aplicacao__title { font-size: var(--fs-24); margin-bottom: 14px; }
	.aplicacao__text { font-size: var(--fs-14); }
	.tech__title { font-size: 20px; margin-bottom: 28px; }
	.tech__item img { width: 80px; height: 80px; margin-bottom: 25px; }

	/* Textos de 14px no celular usam entrelinha de 150% no Figma */
	.lead, .hero__text, .page-hero__text, .aplicacao__text, .tech__text, .linha-card__text { line-height: 1.5; }

	.linhas .heading { margin-bottom: 48px; }
	.linha-card__text { bottom: 45px; }
	.instagram .heading { margin-bottom: 28px; }

	/* Home: blocos a ~40px um do outro */
	.home .section { padding-block: 20px; }
	.home .hero + .section { padding-top: 48px; }
	.home .home-tecidos { padding-bottom: 16px; }
	.home .home-tecidos .divider { margin-top: 28px; }
	.home .instagram { padding-block: 31px 44px; }
	.home .cta-contato { padding-bottom: 64px; }

	/* Títulos de 24px no celular: entrelinha de 31px no Figma */
	.title, .hero__title, .page-hero__title, .manifesto__text, .emissoes__valor,
	.aplicacao__title, .valor__title, .perfil__name, .linha-card__title { line-height: 31px; }

	/* Cards de linha na Home: texto ancorado no mesmo ponto em todos */
	.linha-card__text { top: 73.8%; bottom: auto; }

	/* Tecidos: energia limpa 48px abaixo da linha; 32px entre foto e texto */
	.energia { padding-top: 24px; }
	.energia__inner { gap: 32px; }
	.tech__list { row-gap: 38px; }
	.split__content, .banner-sust__content { gap: 24px; }

	/* Sobre */
	.timeline__text { font-size: var(--fs-16); line-height: 1.4; }
	.timeline { margin-top: 0; padding-block: 50px 22px; }
	.is-sobre .video-section { padding-block: 15px 35px; }
	.perfil__media { aspect-ratio: 354 / 414; margin-bottom: 12px; }
	.perfil__role { font-size: var(--fs-14); line-height: 1.5; margin-top: 2px; }

	/* Sustentabilidade */
	.manifesto__media { aspect-ratio: 354 / 129; }
	.emissoes__intro { font-size: var(--fs-14); line-height: 1.5; }

	/* Rodapé: área do logo com 62px, como no Figma; links com entrelinha de 21px */
	.site-footer__logo { padding-block: 6px 7px; }
	.site-footer__list a { line-height: 1.5; }

	/* Segunda rodada de medição (402px) ------------------------------- */
	/* Tecidos: cards a cada 405px e tecnologias a 31px uma da outra */
	.linhas__grid { gap: 46px; }
	.tech__list { gap: 31px 20px; }
	/* Energia limpa: 32px entre título e texto (24px quando o título cabe em uma linha) */
	.energia__content .lead { margin-top: 19px; }
	.is-sustentabilidade .energia .title br { display: none; }
	.is-sustentabilidade .energia__content .lead { margin-top: 11px; }

	/* Beneficiamento: 52px entre os serviços */
	.servicos__list { gap: 52px; }
	.servico .btn { margin-top: 3px; }

	/* Sustentabilidade: coroa com 42px de respiro; números logo abaixo da legenda */
	.manifesto__inner { gap: 42px; }
	.emissoes__caption { padding-bottom: 0; border-bottom: 0; }
	.metricas { row-gap: 30px; }
	.emissoes { padding-bottom: 56px; }

	/* Contato: linha a 32px do botão; mapa encostado no rodapé */
	.is-contato .form-page { padding-bottom: 0; }
	.is-contato .localizacao { padding-block: 28px 0; }
	.is-contato .mapa { aspect-ratio: 354 / 205; }

	/* Sucesso e 404 */
	.status__title { margin-top: 12px; }
	.status .lead { margin-top: 28px; }
}

