/**
 * Layout — estrutura de seções, grades, cabeçalho, rodapé e elementos fixos.
 *
 * @package ABDC
 */

/* ==========================================================================
   Seções e grades
   ========================================================================== */

.section {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: var(--section-py) var(--section-px);
}

.section--narrow { --wrap: 760px; }
.section--medium { --wrap: 900px; }
.section--tight { --wrap: 640px; }

/* Primeira seção da página: respiro maior no topo. */
.section--lead {
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(28px, 4vw, 48px);
}

/* Última seção da página: respiro maior na base. */
.section--last {
	padding-bottom: clamp(40px, 6vw, 72px);
}

.section--flush-top {
	padding-top: 0;
}

.section--center {
	text-align: center;
}

/* Faixa de largura total com fundo próprio. */
.band {
	padding: var(--section-py) var(--section-px);
	background: var(--color-surface);
}

.band__inner {
	max-width: 640px;
	margin-inline: auto;
	text-align: center;
}

/* Duas colunas assimétricas. */
.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

.split--7-5 {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split--6-6 {
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: clamp(28px, 5vw, 48px);
	align-items: center;
}

/* Inverte a ordem visual mantendo a ordem semântica da marcação. */
.split__media--first {
	order: -1;
}

.grid {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--260 { gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--240 { gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--220 { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ==========================================================================
   Títulos de seção
   ========================================================================== */

.page-title {
	margin: 0 0 var(--space-4);
	font-size: clamp(32px, 4.6vw, 54px);
	letter-spacing: -0.02em;
}

.page-title--flush {
	margin-bottom: 0;
}

.section-kicker {
	display: block;
	margin-bottom: var(--space-3);
	color: var(--color-accent-700);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.section-title {
	margin: 0 0 36px;
	font-size: clamp(26px, 3vw, 38px);
}

.section-title--sm {
	margin: 0 0 var(--space-4);
	font-size: clamp(24px, 2.8vw, 34px);
}

.section-title--band {
	margin: 0 0 var(--space-3);
	font-size: clamp(24px, 2.8vw, 32px);
}

.section-header {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 36px;
}

.section-header .section-title {
	margin: 0;
}

.lead {
	max-width: 62ch;
	margin: 0;
	color: var(--color-text-78);
	font-size: 16px;
	line-height: 1.6;
}

.lead--wide {
	max-width: 70ch;
	margin-bottom: 36px;
}

.lead--band {
	max-width: none;
	margin-bottom: var(--space-6);
	font-size: 15px;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
}

.actions--spaced {
	margin-top: var(--space-8);
}

/* ==========================================================================
   Cabeçalho e navegação
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--color-bg);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.site-nav {
	display: flex;
	gap: var(--space-4);
	align-items: center;
	max-width: var(--wrap);
	margin-inline: auto;
	padding: var(--space-3) var(--section-px);
}

.site-brand {
	display: inline-flex;
	min-height: 28px;
	margin-right: auto;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.site-brand__logo {
	width: auto;
	height: 33.6px;
}

/**
 * Ao passar o mouse, o logotipo dá lugar ao nome por extenso. Os dois textos
 * ocupam a mesma célula da grade para que a barra não mude de altura.
 */
.site-brand__full {
	display: none;
	max-width: 220px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

.site-brand:hover .site-brand__full,
.site-brand:focus-visible .site-brand__full {
	display: block;
}

.site-brand:hover .site-brand__logo,
.site-brand:focus-visible .site-brand__logo {
	display: none;
}

.site-nav__list {
	display: flex;
	gap: var(--space-4);
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	color: inherit;
	font-size: 14px;
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-parent > a {
	color: var(--color-accent);
}

.nav-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--color-divider);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: relative;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4px; }

/* ==========================================================================
   Hero com imagem de fundo
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	overflow: hidden;
	min-height: 640px;
	align-items: center;
	background: #000;
	color: #fff;
}

.hero--short {
	min-height: 520px;
	background: none;
}

.hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: var(--overlay-hero);
}

.hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding: clamp(64px, 9vw, 120px) var(--section-px);
}

.hero--short .hero__inner {
	padding-block: clamp(56px, 8vw, 96px);
}

.hero__content {
	max-width: 640px;
}

.hero--short .hero__content {
	max-width: 620px;
}

.hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(36px, 5.4vw, 64px);
	line-height: 1.06;
	letter-spacing: -0.02em;
}

.hero--short .hero__title {
	margin-bottom: var(--space-4);
	font-size: clamp(30px, 4vw, 46px);
}

.hero__text {
	max-width: 56ch;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.6;
}

.hero--short .hero__text {
	max-width: none;
	margin-bottom: var(--space-6);
	color: rgba(255, 255, 255, 0.9);
	font-size: 16px;
}

.hero__play {
	position: absolute;
	right: var(--section-px);
	bottom: 40px;
	display: flex;
	width: 60px;
	height: 60px;
	align-items: center;
	justify-content: center;
	border: none;
	background: var(--color-bg);
	color: var(--color-text);
	cursor: pointer;
}

.hero__video {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	background: #000;
	object-fit: contain;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: clamp(40px, 6vw, 72px) var(--section-px) var(--space-8);
	border-top: 2px solid var(--color-divider);
}

.site-footer__claim {
	max-width: 44ch;
	margin: 0 0 40px;
	font-size: 19px;
	font-weight: 600;
}

.site-footer__cols {
	display: grid;
	gap: var(--space-8);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 40px;
}

.site-footer__heading {
	margin: 0 0 14px;
}

.site-footer__links {
	display: grid;
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__links a {
	font-size: 14px;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
	justify-content: space-between;
	margin-top: var(--space-4);
}

.site-footer__legal {
	max-width: 70ch;
	margin: 0;
	color: var(--color-text-60);
	font-size: 12px;
	line-height: 1.6;
}

.social {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: flex;
	color: inherit;
}

.social a:hover {
	color: var(--color-accent);
}

/* ==========================================================================
   Elementos fixos: vinheta de abertura e barra de adesão
   ========================================================================== */

.intro-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.intro-overlay__frame {
	overflow: hidden;
	width: 56.25%;
	line-height: 0;
}

/* A margem negativa esconde a borda de compressão do arquivo original. */
.intro-overlay__video {
	display: block;
	width: calc(100% + 6px);
	height: auto;
	margin: -3px;
	border: none;
	outline: none;
}

.intro-overlay__skip {
	position: absolute;
	right: 20px;
	bottom: 20px;
}

.sticky-join {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: var(--color-text);
	color: var(--color-bg);
	box-shadow: var(--shadow-lg);
}

.sticky-join[hidden] {
	display: none;
}

.sticky-join__text {
	font-size: 14px;
	font-weight: 600;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1023px) {
	.nav-toggle {
		display: block;
		order: 3;
	}

	.site-nav {
		flex-wrap: wrap;
	}

	.site-nav__list {
		display: none;
		order: 4;
		flex-direction: column;
		width: 100%;
		gap: var(--space-3);
		padding-block: var(--space-3);
		border-top: 1px solid var(--color-divider);
		align-items: flex-start;
	}

	.site-nav__list.is-open {
		display: flex;
	}

	.site-nav > .btn {
		order: 2;
	}
}

@media (max-width: 899px) {
	.split,
	.split--7-5,
	.split--6-6 {
		grid-template-columns: minmax(0, 1fr);
	}

	.split__media--first {
		order: 0;
	}

	.hero {
		min-height: 520px;
	}

	.hero__play {
		bottom: 20px;
	}
}

@media (max-width: 599px) {
	.section-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.intro-overlay__frame {
		width: 100%;
	}

	.sticky-join {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}
