/* NICHO Finanças · KIT E · Controle */

:root {
	/* Visual "flutuando": sombras suaves no lugar das linhas de borda. */
	--float: 0 1px 2px rgba(12, 32, 51, .04), 0 10px 30px rgba(12, 32, 51, .08);
	--float-hover: 0 2px 4px rgba(12, 32, 51, .05), 0 20px 44px rgba(12, 32, 51, .13);
	--float-sm: 0 1px 2px rgba(12, 32, 51, .05), 0 4px 12px rgba(12, 32, 51, .07);
	--nx-ink: #052E23;
	--nx-muted: #4A5F55;
	--nx-line: #DFEAE3;
	--nx-bg: #FFFFFF;
	--nx-soft: #F1F8F4;
	--nx-white: #FFFFFF;
	--nx-font: 'Poppins', Arial, sans-serif;
	--nx-gutter: 112px;
	--fx-display: 'Poppins', Arial, sans-serif;
	--fx-display-weight: 700;
	--fx-display-tracking: -.04em;
	--fx-radius: 18px;
	/* Verde bem escuro (logo, rodapé, cartões do topo) e o verde-claro das etiquetas. */
	--fx-navy: #052E23;
	--fx-gold: #25C47A;
	--fx-chip: #E6F5EC;
	--fx-chip-ink: #156B2F;
	/* Tom mais escuro da Cor destaque, para texto e ícones em fundo claro. */
	--fx-ink: color-mix(in oklab, var(--nx-accent) 70%, #000);
	--fx-mark: color-mix(in oklab, var(--nx-accent) 85%, #000);
	--fx-tint-8: color-mix(in oklab, var(--nx-accent) 8%, #fff);
	--fx-tint-10: color-mix(in oklab, var(--nx-accent) 10%, #fff);
	--fx-tint-11: color-mix(in oklab, var(--nx-accent) 11%, #fff);
	--fx-tint-16: color-mix(in oklab, var(--nx-accent) 16%, #fff);
	--fx-wash: color-mix(in oklab, var(--nx-accent) 9%, #fff);
	--fx-gradient: linear-gradient(135deg, var(--nx-accent) 0%, var(--fx-mark) 100%);
	--fx-shadow: 0 30px 50px rgba(5, 46, 35, .22);
	/* Fundo quadriculado dos topos. */
	--fx-grade: linear-gradient(rgba(5, 46, 35, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(5, 46, 35, .045) 1px, transparent 1px);
}

/* Cor destaque preenchida em Definições: o verde-escuro e o verde-claro viram tons dela. */
.nx-cor-destaque {
	--fx-navy: color-mix(in oklab, var(--nx-accent) 30%, #000);
	--fx-chip: color-mix(in oklab, var(--nx-accent) 12%, #fff);
	--fx-chip-ink: color-mix(in oklab, var(--nx-accent) 55%, #000);
}

/* Logo ------------------------------------------------------------------ */
.nx-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	color: var(--nx-header-ink, var(--nx-ink)) !important;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.nx-logo img {
	display: block;
	width: auto;
	max-height: 44px;
}

/* Quadradinho escuro com 4 barras subindo, do verde-claro ao branco. */
.nx-logo__mark {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	padding-bottom: 6px;
	border-radius: 7px;
	background: var(--fx-navy);
}

.nx-logo__mark i {
	width: 3px;
	border-radius: 2px;
}

.nx-logo__mark i:nth-child(1) { height: 6px; background: color-mix(in oklab, var(--nx-accent) 45%, #fff); }
.nx-logo__mark i:nth-child(2) { height: 10px; background: color-mix(in oklab, var(--nx-accent) 70%, #fff); }
.nx-logo__mark i:nth-child(3) { height: 13px; background: var(--nx-accent); }
.nx-logo__mark i:nth-child(4) { height: 18px; background: #fff; }

.nx-logo__name {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -.03em;
}

.nx-logo__tag {
	color: var(--fx-mark);
}

.nx-logo--footer {
	color: #fff !important;
}

.nx-logo--footer .nx-logo__mark {
	width: 31px;
	height: 31px;
	background: color-mix(in oklab, var(--fx-navy) 88%, #fff);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.nx-logo--footer .nx-logo__name {
	font-size: 22px;
}

.nx-logo--footer .nx-logo__tag {
	color: var(--nx-accent);
}

.nx .nx-logo-by {
	font-family: 'Schibsted Grotesk', Inter, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	opacity: .72;
}

.nx-footer .nx-logo-by {
	color: #fff;
}

/* Botão de ícone (menu do celular). */
.nx-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	box-shadow: var(--float-sm);
	border-radius: 50%;
	background: var(--nx-white);
	color: var(--nx-ink);
	cursor: pointer;
}

.nx-icon-btn:hover,
.nx-icon-btn[aria-expanded="true"] {
	box-shadow: var(--float);
	transform: translateY(-1px);
}

/* Cabeçalho ------------------------------------------------------------- */
.nx-header {
	position: relative;
	z-index: 20;
	background: var(--nx-header-bg, var(--nx-white));
	box-shadow: 0 1px 0 rgba(12, 32, 51, .04), 0 6px 20px rgba(12, 32, 51, .06);
}

.nx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 84px;
}

.nx-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nx-nav a {
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	color: var(--nx-header-ink, var(--nx-ink));
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.nx-nav a:hover,
.nx-nav a[aria-current="page"] {
	border-bottom-color: var(--nx-accent);
}

.nx-header__menu {
	display: none;
}

/* Rodapé ---------------------------------------------------------------- */
/* O espaço de cima e de baixo fica no .nx-footer (o .nx-wrap do base.css zera o padding vertical). */
.nx-footer {
	padding: 44px 0 28px;
	background: var(--nx-footer-bg, var(--fx-navy));
	color: var(--nx-footer-ink, #fff);
}

.nx-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-align: center;
}

.nx-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 32px;
}

.nx-footer__links a {
	color: #D7E7DF;
	font-size: 14px;
	text-decoration: none;
}

.nx-footer__links a:hover {
	color: #fff;
	text-decoration: underline;
}

.nx-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding-top: 20px;
}

.nx-footer__aviso {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nx-footer__aviso p,
.nx-footer__copy {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #B5CCC1;
}

/* Responsivo ------------------------------------------------------------ */
@media (max-width: 1200px) {
	:root {
		--nx-gutter: 48px;
	}

	.nx-nav {
		gap: 22px;
	}
}

@media (max-width: 1024px) {
	.nx-header__inner {
		gap: 16px;
		min-height: 72px;
	}

	.nx-header__menu {
		display: inline-flex;
	}

	/* Menu vira painel embaixo do cabeçalho. */
	.nx-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--nx-gutter) 16px;
		border-bottom: 1px solid var(--nx-line);
		background: var(--nx-header-bg, var(--nx-white));
		box-shadow: 0 16px 32px rgba(5, 46, 35, .08);
	}

	.nx-nav.is-open {
		display: flex;
	}

	.nx-nav a {
		padding: 12px 0;
		border-bottom: 1px solid var(--nx-line);
	}

	.nx-nav a:last-child {
		border-bottom: 0;
	}
}

@media (max-width: 640px) {
	:root {
		--nx-gutter: 20px;
	}

	.nx-logo__name {
		font-size: 19px;
	}

	.nx-footer {
		padding: 36px 0 24px;
	}

	.nx-footer__links {
		gap: 10px 20px;
	}
}
