/**
 * hotbrazil — Global Header Nav (v1.4.7)
 *
 * Replica 1:1 do nav da home (front-page.php) mas com tokens escopados
 * no elemento .fah-nav para funcionar em qualquer página do tema, não só
 * em body.fa-home.
 *
 * Carregado em todo template que chama get_header().
 *
 * @package hotbrazil
 * @since   1.4.7
 */

.fah-nav {
	--fah-brand-500: #e8504e;
	--fah-brand-600: #d43c3c;
	--fah-ink: #1a1a1a;
	--fah-line: #ececec;

	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--fah-line);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.fah-nav .fah-container {
	max-width:1180px;
	margin: 0 auto;
	padding: 0 72px;
}
@media (max-width: 1200px) {
	.fah-nav .fah-container { padding: 0 40px; }
}
@media (max-width: 768px) {
	.fah-nav .fah-container { padding: 0 20px; }
}
@media (max-width: 480px) {
	.fah-nav .fah-container { padding: 0 14px; }
}

.fah-nav__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 0 !important;
	gap: 32px;
}

@media (max-width: 768px) {
	.fah-nav__row {
		padding: 18px 0 !important;
	}
}

.fah-nav .fah-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.fah-nav .fah-logo__text {
	font: 700 20px/1 'Poppins', 'Inter', system-ui, sans-serif;
	letter-spacing: -.02em;
	color: var(--fah-ink);
}
.fah-nav .fah-logo__text b {
	color: var(--fah-brand-500);
	font-weight: 700;
}

.fah-nav__actions {
	display: flex;
	align-items: center;
	gap: 18px;
}

.fah-nav__link {
	color: var(--fah-ink);
	font: 600 13px/1 'Inter', system-ui, sans-serif;
	text-decoration: none;
	letter-spacing: .02em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .15s;
}
.fah-nav__link:hover { color: var(--fah-brand-500); }

.fah-nav__fav {
	position: relative;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: var(--fah-ink);
	line-height: 0;
	transition: transform .15s;
}
.fah-nav__fav:hover { transform: scale(1.08); }

@media (max-width: 640px) {
	.fah-nav__link--cadastro { display: none; }
	.fah-nav__actions { gap: 10px; }
}

/* v1.4.8 — Search bar central (só em listings) */
.fah-nav__search {
	flex: 1 1 auto;
	max-width: 620px;
	min-width: 240px;
	margin: 0;
	background: #fff;
	border: 1.5px solid var(--fah-line);
	border-radius: 100px;
	padding: 6px;
	display: flex;
	align-items: center;
	transition: border-color .15s, box-shadow .15s;
}
.fah-nav__search:focus-within {
	border-color: var(--fah-brand-500);
	box-shadow: 0 0 0 3px rgba(232, 80, 78, .12);
}
.fah-nav__search input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font: 400 14px/1.4 'Inter', system-ui, sans-serif;
	padding: 9px 16px;
	color: var(--fah-ink);
	min-width: 0;
}
.fah-nav__search input::placeholder {
	color: #9a9a9a;
	font-weight: 400;
}
.fah-nav__search button {
	width: 38px;
	height: 38px;
	min-width: 38px;
	border-radius: 50%;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fah-ink);
	transition: background .15s, color .15s;
}
.fah-nav__search button:hover {
	background: var(--fah-brand-500);
	color: #fff;
}

/* v1.4.8 — Flag pill (com chevron pra indicar trocar idioma no futuro) */
.fah-nav__flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 4px 2px;
	color: var(--fah-ink);
	text-decoration: none;
	transition: opacity .15s;
}
.fah-nav__flag:hover { opacity: .75; }

/* v1.4.8 — Notification bell (user logado, substitui o heart) */
.fah-nav__bell {
	position: relative;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 4px;
	color: var(--fah-ink);
	line-height: 0;
	transition: transform .15s;
}
.fah-nav__bell:hover { transform: scale(1.08); color: var(--fah-brand-500); }
.fah-nav__bell-badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--fah-brand-500);
	color: #fff;
	border-radius: 100px;
	font: 700 10px/18px 'Inter', system-ui, sans-serif;
	text-align: center;
	border: 2px solid #fff;
	box-sizing: content-box;
}

/* v1.4.12 — Responsive ajustes quando tem search */
@media (max-width: 1080px) {
	.fah-nav--with-search .fah-nav__row { gap: 20px; }
	.fah-nav--with-search .fah-nav__search { max-width: 480px; }
}
@media (max-width: 900px) {
	.fah-nav--with-search .fah-nav__link { font-size: 12px; }
	.fah-nav--with-search .fah-nav__search { max-width: 360px; }
}
@media (max-width: 720px) {
	.fah-nav--with-search .fah-logo__text { display: none; }
	.fah-nav--with-search .fah-nav__link--cadastro { display: none; }
	.fah-nav--with-search .fah-nav__search input { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 480px) {
	.fah-nav--with-search .fah-nav__flag { display: none; }
}
