/**
 * Base do tema: reset, tipografia, layout, cabecalho e rodape.
 *
 * @package AstrazFitTheme
 */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--af-white);
	color: var(--af-ink-800);
	font-family: var(--af-font);
	font-size: var(--af-text-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
picture,
video,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--af-ink-900);
	text-decoration-color: var(--af-volt-dark);
	text-underline-offset: 3px;
}

a:hover { color: var(--af-volt-dark); }

h1, h2, h3, h4 {
	margin: 0 0 .4em;
	font-family: var(--af-font-display);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.12;
	color: var(--af-ink-900);
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button { font-family: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.af-skip {
	position: absolute;
	top: -60px;
	left: 12px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: 0 0 12px 12px;
	background: var(--af-volt);
	color: var(--af-ink-900);
	font-weight: 700;
	text-decoration: none;
	transition: top var(--af-transition);
}

.af-skip:focus { top: 0; }

/* ---------------------------------------------------------------- Layout */

.af-container {
	width: 100%;
	max-width: var(--af-container);
	margin: 0 auto;
	padding-left: var(--af-gutter);
	padding-right: var(--af-gutter);
}

.af-main { display: block; }

.af-section {
	padding-top: var(--af-space-section);
	padding-bottom: var(--af-space-section);
}

.af-section--tight {
	padding-top: clamp( 28px, 4vw, 48px );
	padding-bottom: clamp( 40px, 6vw, 72px );
}

.af-section--muted { background: var(--af-mist-100); }

.af-section--dark {
	background: var(--af-ink-900);
	color: var(--af-mist-200);
}

.af-section--dark h1,
.af-section--dark h2,
.af-section--dark h3 { color: var(--af-white); }

.af-section__head { margin-bottom: clamp( 26px, 3.5vw, 44px ); }

.af-section__head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
}

.af-section__head--center {
	text-align: center;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

.af-section__title {
	margin: 0;
	font-size: var(--af-text-h2);
	max-width: 22ch;
}

.af-section__head--center .af-section__title { max-width: none; }

.af-section__lead {
	margin: 12px 0 0;
	font-size: var(--af-text-lead);
	color: var(--af-slate-500);
}

.af-section--dark .af-section__lead { color: var(--af-slate-300); }

.af-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--af-ink-900);
	color: var(--af-volt);
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.af-eyebrow--light {
	background: rgba(216, 255, 61, .16);
	color: var(--af-volt);
}

.af-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.af-link-arrow:hover { gap: 12px; }

.af-section--dark .af-link-arrow { color: var(--af-volt); }

.af-image-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--af-radius);
	background:
		linear-gradient( 135deg, var(--af-ink-800) 0%, var(--af-ink-600) 100% );
}

/* ---------------------------------------------------------------- Cabecalho */

.af-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--af-mist-200);
	transition: box-shadow var(--af-transition);
}

.af-header.is-scrolled { box-shadow: 0 8px 24px -20px rgba(11, 14, 19, .6); }

.af-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 72px;
}

.af-logo {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	font-family: var(--af-font-display);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.03em;
	text-decoration: none;
	color: var(--af-ink-900);
	text-transform: uppercase;
}

.af-logo__mark {
	padding: 2px 8px;
	border-radius: 8px;
	background: var(--af-ink-900);
	color: var(--af-volt);
}

.af-logo--image img { max-height: 44px; width: auto; }

.af-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--af-mist-200);
	border-radius: 12px;
	background: var(--af-white);
	cursor: pointer;
}

.af-header__toggle-icon,
.af-header__toggle-icon::before,
.af-header__toggle-icon::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	border-radius: 2px;
	background: var(--af-ink-900);
	transition: transform var(--af-transition), opacity var(--af-transition);
}

.af-header__toggle-icon { position: relative; }

.af-header__toggle-icon::before,
.af-header__toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.af-header__toggle-icon::before { top: -6px; }
.af-header__toggle-icon::after { top: 6px; }

.af-header__toggle[aria-expanded="true"] .af-header__toggle-icon { background: transparent; }
.af-header__toggle[aria-expanded="true"] .af-header__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.af-header__toggle[aria-expanded="true"] .af-header__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.af-header__nav {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
}

.af-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.af-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--af-ink-700);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--af-transition), color var(--af-transition);
}

.af-menu a:hover,
.af-menu .current-menu-item > a {
	background: var(--af-mist-100);
	color: var(--af-ink-900);
}

.af-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.af-header__member {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--af-ink-700);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.af-header__member:hover { background: var(--af-mist-100); color: var(--af-ink-900); }

/* ---------------------------------------------------------------- Rodape */

.af-footer {
	background: var(--af-ink-900);
	color: var(--af-slate-300);
}

.af-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
	gap: 40px;
	padding-top: clamp( 44px, 6vw, 72px );
	padding-bottom: clamp( 32px, 4vw, 52px );
}

.af-footer .af-logo { color: var(--af-white); }
.af-footer .af-logo__mark { background: var(--af-volt); color: var(--af-ink-900); }

.af-footer__about {
	margin: 16px 0 18px;
	font-size: 14px;
	max-width: 40ch;
}

.af-footer__social {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.af-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 50%;
	color: var(--af-white);
	transition: background var(--af-transition), border-color var(--af-transition);
}

.af-footer__social a:hover {
	background: var(--af-volt);
	border-color: var(--af-volt);
	color: var(--af-ink-900);
}

.af-footer__column h2 {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--af-white);
}

.af-footer__small {
	margin: 20px 0 10px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--af-slate-400);
}

.af-footer__column ul,
.af-footer__units,
.af-footer__hours,
.af-footer__contact,
.af-footer__legal {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
	font-size: 14px;
}

.af-footer a { color: var(--af-slate-300); text-decoration: none; }
.af-footer a:hover { color: var(--af-volt); }

.af-footer__units li { display: flex; flex-direction: column; gap: 2px; }
.af-footer__units strong { color: var(--af-white); font-size: 14.5px; }
.af-footer__units span { font-size: 13px; }

.af-footer__hours li { font-size: 13px; }

.af-footer__contact li { display: flex; align-items: center; gap: 9px; }
.af-footer__contact svg { color: var(--af-volt); flex: none; }

.af-footer__legal { gap: 7px; }

.af-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 18px 0;
	font-size: 13px;
}

.af-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.af-footer__bottom p { margin: 0; }

.af-float-whatsapp {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 55;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 12px 28px -12px rgba(37, 211, 102, .8);
	transition: transform var(--af-transition);
}

.af-float-whatsapp:hover { transform: translateY(-3px); color: #fff; }

/* ---------------------------------------------------------------- Prosa */

.af-prose {
	max-width: 72ch;
	font-size: 17px;
}

.af-prose h2 { margin-top: 1.6em; font-size: var(--af-text-h3); }
.af-prose h3 { margin-top: 1.4em; font-size: 19px; }
.af-prose img { border-radius: var(--af-radius); }
.af-prose__cover { margin-bottom: 24px; }

.af-prose ul li,
.af-prose ol li { margin-bottom: .5em; }

/* ---------------------------------------------------------------- Responsivo */

@media (max-width: 1024px) {
	.af-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 860px) {
	.af-header__toggle { display: block; }

	.af-header__nav {
		position: fixed;
		inset: 72px 0 auto;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 20px var(--af-gutter) 28px;
		background: var(--af-white);
		border-bottom: 1px solid var(--af-mist-200);
		box-shadow: var(--af-shadow-lg);
		max-height: calc(100vh - 72px);
		overflow-y: auto;
	}

	.af-header__nav.is-open { display: flex; }

	.af-menu { flex-direction: column; align-items: stretch; gap: 2px; }

	.af-menu a {
		padding: 12px 14px;
		border-radius: 12px;
		font-size: 16px;
	}

	.af-header__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 10px;
		padding-top: 14px;
		border-top: 1px solid var(--af-mist-200);
	}

	.af-header__member { justify-content: center; padding: 12px; border: 1px solid var(--af-mist-200); }
	.af-header__actions .af-cta { justify-content: center; }
}

@media (max-width: 620px) {
	.af-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.af-float-whatsapp { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}
