/**
 * RB Collective site header — single template, all pages.
 * All header/nav/logo rules live here (not in custom.css).
 */

.wp-site-blocks > #rb-site-header,
.wp-site-blocks > .rb-header,
.wp-block-template-part .rb-header {
	margin-block-start: 0 !important;
	max-width: none !important;
	width: 100%;
}

#rb-site-header.rb-header {
	overflow: visible;
	position: sticky;
	top: 0;
	z-index: 400;
}

#rb-site-header .rb-header__bar {
	backdrop-filter: blur(14px);
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid rgba(61, 49, 43, 0.1);
	box-shadow: 0 4px 24px rgba(61, 49, 43, 0.06);
	overflow: visible;
	position: relative;
	z-index: 401;
}

#rb-site-header .rb-header__inner {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1240px;
	min-height: var(--rb-header-height);
	padding: 0.75rem 2rem;
}

#rb-site-header .rb-logo {
	display: block;
	flex-shrink: 0;
	height: var(--rb-logo-height);
	line-height: 0;
	text-decoration: none;
	width: var(--rb-logo-width);
}

#rb-site-header .rb-logo__img {
	border: 0;
	display: block;
	height: 100%;
	margin: 0;
	object-fit: contain;
	object-position: left center;
	padding: 0;
	width: 100%;
}

#rb-site-header .rb-nav {
	flex-shrink: 0;
	margin-left: auto;
}

#rb-site-header .rb-nav__toggle {
	background: transparent;
	border: 1px solid rgba(61, 49, 43, 0.12);
	border-radius: 2px;
	cursor: pointer;
	display: none;
	height: 42px;
	padding: 0;
	position: relative;
	width: 42px;
}

#rb-site-header .rb-nav__toggle-icon,
#rb-site-header .rb-nav__toggle-icon::before,
#rb-site-header .rb-nav__toggle-icon::after {
	background: var(--rb-mocha);
	content: "";
	display: block;
	height: 2px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
}

#rb-site-header .rb-nav__toggle-icon::before {
	top: calc(50% - 6px);
}

#rb-site-header .rb-nav__toggle-icon::after {
	top: calc(50% + 6px);
}

#rb-site-header .rb-nav__list {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	flex-wrap: nowrap;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

#rb-site-header .rb-nav__item {
	flex-shrink: 0;
	position: relative;
}

#rb-site-header .rb-nav__item > a,
#rb-site-header .rb-nav__mega-trigger {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--rb-mocha) !important;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	opacity: 1 !important;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s ease;
	visibility: visible !important;
}

#rb-site-header .rb-nav__mega-trigger {
	align-items: center;
	display: inline-flex;
	gap: 0.35rem;
	padding: 0;
}

#rb-site-header .rb-nav__item > a:hover,
#rb-site-header .rb-nav__mega-trigger:hover,
#rb-site-header .rb-nav__item--mega:hover .rb-nav__mega-trigger {
	color: var(--rb-gold) !important;
}

#rb-site-header .rb-nav__chevron {
	border-bottom: 1px solid currentColor;
	border-right: 1px solid currentColor;
	display: inline-block;
	height: 6px;
	margin-left: 0.45rem;
	transform: rotate(45deg) translateY(-2px);
	vertical-align: middle;
	width: 6px;
}

#rb-site-header .rb-nav__cta,
#rb-site-header a.rb-nav__cta {
	background-color: var(--rb-gold) !important;
	border: 0 !important;
	border-radius: 2px;
	box-shadow: none !important;
	color: #fff !important;
	display: inline-block;
	padding: 0.75rem 1.25rem;
	text-decoration: none !important;
}

#rb-site-header .rb-nav__cta:hover,
#rb-site-header a.rb-nav__cta:hover {
	background-color: var(--rb-mocha) !important;
	color: #fff !important;
}

@media (min-width: 1024px) {
	#rb-site-header .rb-nav {
		display: block !important;
		opacity: 1 !important;
		position: static !important;
		visibility: visible !important;
	}

	#rb-site-header .rb-nav__list {
		display: flex !important;
	}

	#rb-site-header .rb-nav__item {
		display: list-item !important;
	}
}

@media (max-width: 1023px) {
	:root {
		--rb-header-height: 72px;
		--rb-logo-height: 40px;
		--rb-logo-width: 112px;
	}

	#rb-site-header .rb-header__inner {
		padding: 0.75rem 1.25rem;
		position: relative;
	}

	#rb-site-header .rb-nav__toggle {
		align-items: center;
		display: inline-flex;
		justify-content: center;
	}

	#rb-site-header .rb-nav {
		background: #fff;
		border-top: 1px solid rgba(61, 49, 43, 0.08);
		box-shadow: 0 18px 40px rgba(61, 49, 43, 0.08);
		display: none;
		left: 0;
		max-height: calc(100dvh - var(--rb-header-height));
		overflow-y: auto;
		position: absolute;
		right: 0;
		top: 100%;
		z-index: 450;
	}

	#rb-site-header .rb-nav.is-open {
		display: block;
	}

	#rb-site-header .rb-nav__list {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 0.5rem 1.25rem 1.5rem;
	}

	#rb-site-header .rb-nav__item {
		border-bottom: 1px solid rgba(61, 49, 43, 0.08);
	}

	#rb-site-header .rb-nav__item > a,
	#rb-site-header .rb-nav__mega-trigger {
		display: flex;
		font-size: 0.88rem;
		justify-content: space-between;
		padding: 1rem 0;
		width: 100%;
	}

	#rb-site-header .rb-nav__item--mega.is-open .rb-nav__chevron {
		transform: rotate(-135deg) translateY(1px);
	}

	#rb-site-header .rb-nav__item--cta {
		border-bottom: 0;
		padding-top: 0.75rem;
	}

	#rb-site-header .rb-nav__cta {
		display: block;
		padding: 1rem 1.25rem;
		text-align: center;
		width: 100%;
	}
}
