/* Site header shell — logo left, primary nav right. */
.site-header {
	position: relative;
	z-index: 1000; /* Above .ben-mobile-nav's fixed full-screen overlay (see nav.css) — its own opaque background then masks the overlay's top edge, so the mobile menu visually starts below the header without needing to know the header's exact (logo-size-dependent) height. */
	background: #ffffff;
	border-bottom: 1px solid #EEF1EA;
}

/* Figma "Header Menu": 1920 wide, 20px padding, logo (210.93x80) hard left.
   The 1320px cap this replaces was indenting the logo ~324px from the
   viewport edge. */
.site-header__inner {
	display: flex;
	align-items: center;
	/* Mobile relies on this: logo left, hamburger hard right. Desktop swaps to
	   the grid below, so this only governs the ≤1024px row. */
	justify-content: space-between;
	gap: 24px;
	max-width: 1920px;
	margin: 0 auto;
	/* 20px matches Figma's header padding — with the 80px logo that lands the
	   header at the spec's 120px total height. */
	padding: 20px;
}

/* Logo left, nav centred in the header. Figma actually left-aligns the nav a
   fixed 266px after the logo, which left a large gap of dead space on the
   right — centring it reads better at full width. Three columns
   (1fr | auto | 1fr) centre the middle child no matter how wide the logo is,
   which a flex gap can't do. Desktop only: at 1024px and below the nav becomes
   the hamburger menu (see nav.css) and needs the plain two-item row above. */
@media (min-width: 1025px) {
	.site-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}

	.site-logo-link {
		justify-self: start;
	}
}

.site-logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.site-logo-img {
	display: block;
	/* Figma: logo 210.93 x 80. Width stays auto so the real logo's own aspect
	   ratio drives it — the height is what the design pins. */
	height: 80px;
	width: auto;
}

.site-logo-fallback {
	font-family: var(--ben-font, "Sora", system-ui, sans-serif);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.02em;
	color: #1B250E;
}

.ben-nav-only-admin-note {
	font-size: 13px;
	color: #92400e;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	padding: 8px 12px;
	margin: 0;
}

/* Wraps the nav + CTA buttons together so .site-header__inner's
   space-between only ever splits two things (logo, this wrapper) — with
   three separate flex children instead, space-between would push the nav
   and buttons apart from each other too, not just away from the logo. */
.site-header__right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-header__cta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.site-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 10px;
	font-family: var(--ben-font, "Sora", system-ui, sans-serif);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header__btn--outline {
	background: #fff;
	border: 1.5px solid #7FB04F;
	color: #1B250E;
}

.site-header__btn--outline:hover,
.site-header__btn--outline:focus-visible {
	background: #D6E5B1;
	outline: none;
}

.site-header__btn--solid {
	background: #7FB04F;
	border: 1.5px solid #7FB04F;
	color: #fff;
}

.site-header__btn--solid:hover,
.site-header__btn--solid:focus-visible {
	background: #5f8f3a;
	border-color: #5f8f3a;
	color: #fff;
	outline: none;
}

@media (max-width: 1200px) {
	.site-header__btn {
		padding: 9px 16px;
		font-size: 14px;
	}
}

@media (max-width: 1024px) {
	.site-header__inner {
		padding: 12px 16px;
	}

	.site-logo-img {
		height: 40px;
	}

	/* The nav itself becomes the full-screen mobile menu at this width (see
	   nav.css) — the header row only has room for the logo + hamburger
	   toggle, so the CTA buttons move out of the way here rather than
	   crowding/wrapping next to it. */
	.site-header__cta {
		display: none;
	}
}
