/*
 * Hormuz Preferred Source — front-end rail
 * v1.8.0
 * Isolated BEM styles with low-specificity selectors.
 */

.hps-bar {
	--hps-bg: #074b48;
	--hps-text: #f6fbfa;
	--hps-text-soft: rgba(229, 246, 244, 0.76);
	--hps-heading: rgba(220, 245, 242, 0.78);
	--hps-line: rgba(226, 248, 245, 0.12);
	--hps-line-strong: rgba(226, 248, 245, 0.19);
	--hps-gold: rgba(215, 182, 107, 0.9);

	box-sizing: border-box;
	position: relative;
	z-index: 2;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	direction: ltr;
	text-align: left;
	color: var(--hps-text);
	background: var(--hps-bg);
	border-top: 1px solid rgba(255, 255, 255, 0.045);
	border-bottom: 1px solid var(--hps-line);
	font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hps-bar *,
.hps-bar *::before,
.hps-bar *::after {
	box-sizing: border-box;
}

.hps-bar::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 100%;
	height: 1px;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(215, 182, 107, 0.26) 18%,
		rgba(246, 251, 250, 0.11) 50%,
		rgba(215, 182, 107, 0.2) 82%,
		transparent 100%
	);
}

.hps-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(26px, 3vw, 46px);
	width: min(1460px, calc(100% - 88px));
	min-height: 64px;
	margin: 0 auto;
	padding: 11px 0;
}

.hps-bar__copy {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 13px;
}

.hps-bar__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	color: var(--hps-heading);
	font-size: 9.5px;
	font-weight: 820;
	line-height: 1.2;
	letter-spacing: 0.105em;
	text-transform: uppercase;
	white-space: nowrap;
}

.hps-bar__kicker::before {
	content: "";
	display: block;
	width: 5px;
	height: 5px;
	flex: 0 0 5px;
	border-radius: 999px;
	background: var(--hps-gold);
	box-shadow: 0 0 0 3px rgba(215, 182, 107, 0.08);
}

.hps-bar__divider {
	display: block;
	width: 1px;
	height: 18px;
	flex: 0 0 1px;
	background: var(--hps-line-strong);
}

.hps-bar__text {
	min-width: 0;
	margin: 0;
	padding: 0;
	color: var(--hps-text-soft);
	font-size: 11.35px;
	font-weight: 510;
	line-height: 1.48;
	letter-spacing: -0.008em;
}

.hps-bar__button {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 8px;
	min-height: 34px;
	margin: 0;
	padding: 7px 12px 7px 13px;
	border: 1px solid rgba(246, 251, 250, 0.88);
	border-radius: 9px;
	background: var(--hps-text);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 18px rgba(0, 0, 0, 0.08);
	color: var(--hps-bg);
	font-size: 10.8px;
	font-weight: 760;
	line-height: 1.2;
	letter-spacing: -0.004em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hps-bar__button:hover,
.hps-bar__button:focus-visible {
	background: #ffffff;
	border-color: #ffffff;
	color: #043532;
	transform: translateY(-1px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hps-bar__button:active {
	transform: translateY(0);
}

.hps-bar__button:focus-visible {
	outline: 2px solid rgba(246, 251, 250, 0.72);
	outline-offset: 3px;
}

.hps-bar__button-icon {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.78;
}

@media (max-width: 1180px) {
	.hps-bar__inner {
		width: min(100% - 54px, 1460px);
	}
}

@media (max-width: 760px) {
	.hps-bar__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		min-height: 0;
		padding: 14px 0 15px;
	}

	.hps-bar__copy {
		flex-wrap: wrap;
		gap: 7px 10px;
	}

	.hps-bar__divider {
		display: none;
	}

	.hps-bar__text {
		flex-basis: 100%;
		font-size: 11px;
	}

	.hps-bar__button {
		min-height: 33px;
		padding: 7px 11px 7px 12px;
		font-size: 10.6px;
	}
}

@media (max-width: 620px) {
	.hps-bar__inner {
		width: min(100% - 30px, 1460px);
	}

	.hps-bar__kicker {
		font-size: 9.2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hps-bar__button {
		transition: none;
	}
}

/* Footer nesting + multilingual hardening. */
.hps-bar a.hps-bar__button {
	color: var(--hps-bg);
}

.hps-bar a.hps-bar__button:hover,
.hps-bar a.hps-bar__button:focus-visible {
	color: #043532;
}

.hps-bar__kicker,
.hps-bar__text,
.hps-bar__button span {
	unicode-bidi: plaintext;
}

html[dir="rtl"] .hps-bar {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .hps-bar__copy {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .hps-bar__kicker,
html[dir="rtl"] .hps-bar__text,
html[dir="rtl"] .hps-bar__button {
	letter-spacing: 0;
}

html[dir="rtl"] .hps-bar__kicker {
	text-transform: none;
}
