/**
 * Site-wide "now hiring" strip.
 *
 * Static, right-anchored, single line. Deliberately restrained — a loud
 * full-width orange banner reads as understaffed; a quiet line reads as a
 * business that is growing.
 */

.hb-hiring {
	/* Kadence's sticky header pins itself with an inline `top` equal to its
	   original document offset — which includes this bar. Left static, the bar
	   scrolls away and leaves a strip of page content showing above the pinned
	   header. Sticking it at 0 fills exactly that strip. */
	position: sticky;
	top: 0;
	z-index: 101;          /* the header's sticky wrapper is 100 */
	background: #262323;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 2px 0 #d44527;
	line-height: 1;
}

.hb-hiring__inner {
	display: flex;
	justify-content: flex-end;   /* anchor right */
	align-items: center;
	/* Matches the theme's gutter so the text lines up with the header above it. */
	padding: 0 clamp(1rem, 4vw, 3rem);
}

.hb-hiring__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	/* Never break onto a second row, at any width. */
	white-space: nowrap;
}

.hb-hiring__link:hover,
.hb-hiring__link:focus-visible {
	color: #fff;
}

.hb-hiring__link:focus-visible {
	outline: 2px solid #d44527;
	outline-offset: 2px;
}

.hb-hiring__dot {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: #d44527;
}

/* Small phones: shrink rather than wrap. At 0.7rem the line is ~190px, which
   clears a 320px viewport with the gutter still intact. */
@media (max-width: 480px) {
	.hb-hiring__link {
		font-size: 0.7rem;
		letter-spacing: 0.02em;
	}

	.hb-hiring__inner {
		padding-inline: 0.85rem;
	}
}

/* ------------------------------------------------ home page call-out */

/*
 * A full-width band, not a card. Typography deliberately matches the other
 * home-page sections, which were measured rather than guessed:
 *   headings  VFC Sulfer Press, 48px, uppercase, brand orange
 *   body      Barlow Condensed, 20px, uppercase, white, 1.5 line-height
 */
.hb-home-hiring {
	/* Break the theme container even if `alignfull` is not honoured here. */
	margin-inline: calc(50% - 50vw);
	width: 100vw;
	max-width: 100vw;
	padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 3rem);
	background: #262323;
	text-align: center;
}

.hb-home-hiring > * {
	max-width: 60rem;
	margin-inline: auto;
}

.hb-home-hiring h2 {
	margin: 0 0 1rem;
	font-family: "VFC Sulfer Press", var(--global-heading-font-family, serif);
	font-size: clamp(2rem, 4vw, 48px);
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: #d44527;
}

.hb-home-hiring p {
	max-width: 46rem;
	margin: 0 auto 2rem;
	font-family: "Barlow Condensed", var(--global-body-font-family, sans-serif);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
	color: #fff;
}

/* ckkblocks ships `body .wp-block-buttons .wp-block-button .wp-block-button__link
   { background-color: transparent }` at specificity (0,3,1) to neutralise core
   buttons in favour of Kadence ones. Matching that shape — (0,4,1) — wins on
   specificity rather than with !important. */
body .hb-home-hiring .wp-block-buttons .wp-block-button .wp-block-button__link {
	display: inline-block;
	padding: 0.9rem 2.1rem;
	background: #d44527;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 0;
	border-radius: 6px;
	text-decoration: none;
}

body .hb-home-hiring .wp-block-buttons .wp-block-button .wp-block-button__link:hover,
body .hb-home-hiring .wp-block-buttons .wp-block-button .wp-block-button__link:focus-visible {
	background: #b8371d;
	color: #fff;
}

/* Logged-in admins: sit below the WP admin bar rather than behind it. */
body.admin-bar .hb-hiring {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .hb-hiring {
		top: 46px;
	}
}
