/*
 * Traders Edge - Site Header & Footer.
 * Same design values as the other traders-edge-* plugins (copied, not shared,
 * so each plugin stays independently reversible). Only applies on pages that
 * get body.te-chrome.
 */

/* Hide the theme header/footer and the Elementor Pro Theme Builder header/footer. */
body.te-chrome #progression-studios-header-position,
body.te-chrome #progression-sticky-header,
body.te-chrome .elementor-location-header,
body.te-chrome .elementor-location-footer,
body.te-chrome #progression-studios-footer-page-builder,
body.te-chrome #site-footer {
	display: none !important;
}

.te-chrome-bar {
	--te-bg: #14130f;
	--te-bg-alt: #1b1a15;
	--te-gold: #c9a25a;
	--te-gold-soft: rgba(201, 162, 90, 0.35);
	--te-off-white: #f2efe7;
	--te-off-white-bright: #fffaf0;
	--te-off-white-dim: rgba(242, 239, 231, 0.72);

	position: relative;
	z-index: 1000;
	color: var(--te-off-white);
	background: var(--te-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	box-sizing: border-box;
	text-align: left;
}

.te-chrome-bar:not(.te-chrome-bar--footer) {
	position: sticky;
	top: 0;
}

body.admin-bar .te-chrome-bar:not(.te-chrome-bar--footer) {
	top: 32px;
}

.te-chrome-bar *,
.te-chrome-bar *::before,
.te-chrome-bar *::after {
	box-sizing: inherit;
}

.te-chrome__inner {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Buttons */

.te-chrome__btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 2px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-decoration: none !important;
	text-align: center;
	transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.te-chrome__btn--primary,
.te-chrome__btn--primary:visited {
	background: var(--te-gold);
	color: #14130f !important;
}

.te-chrome__btn--primary:hover {
	opacity: 0.88;
}

.te-chrome__btn--secondary,
.te-chrome__btn--secondary:visited {
	background: transparent;
	color: var(--te-off-white) !important;
	border: 1px solid var(--te-gold-soft);
}

.te-chrome__btn--secondary:hover {
	border-color: var(--te-gold);
	color: var(--te-gold) !important;
}

.te-chrome__btn--small {
	padding: 9px 18px;
	font-size: 13px;
}

.te-chrome-bar a:focus-visible,
.te-chrome-bar button:focus-visible {
	outline: 2px solid var(--te-gold) !important;
	outline-offset: 3px;
}

/* Header */

.te-chrome__site-header {
	background: var(--te-bg);
	border-bottom: 1px solid rgba(242, 239, 231, 0.08);
}

.te-chrome__site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.te-chrome__brand,
.te-chrome__brand:visited {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--te-off-white-bright) !important;
	text-decoration: none !important;
}

.te-chrome__brand:hover {
	color: var(--te-gold) !important;
}

.te-chrome__brand-icon {
	display: block;
	width: auto !important;
	height: 28px !important;
	max-width: none !important;
	flex-shrink: 0;
}

.te-chrome__nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.te-chrome__nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.te-chrome__nav-links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.te-chrome__nav-links a,
.te-chrome__nav-links a:visited {
	font-size: 14px;
	font-weight: 500;
	color: var(--te-off-white-dim) !important;
	text-decoration: none !important;
	transition: color 0.15s ease;
}

.te-chrome__nav-links a:hover {
	color: var(--te-off-white) !important;
}

.te-chrome__nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.te-chrome__nav-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	cursor: pointer;
}

.te-chrome__nav-toggle span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--te-off-white);
}

.te-chrome__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* Footer */

.te-chrome__site-footer {
	background: var(--te-bg-alt);
	padding: 48px 0 32px;
	border-top: 1px solid rgba(242, 239, 231, 0.08);
}

.te-chrome__site-footer-inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.te-chrome__footer-brand {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.te-chrome__brand--footer {
	margin: 0;
	font-size: 15px;
}

.te-chrome__footer-tagline {
	margin: 0;
	max-width: 420px;
	font-size: 14px;
	color: var(--te-off-white-dim);
}

.te-chrome__footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.te-chrome__footer-links a,
.te-chrome__footer-links a:visited {
	font-size: 13.5px;
	color: var(--te-off-white-dim) !important;
	text-decoration: none !important;
}

.te-chrome__footer-links a:hover {
	color: var(--te-gold) !important;
}

.te-chrome__footer-copy {
	margin: 8px 0 0;
	padding-top: 20px;
	font-size: 12.5px;
	color: rgba(242, 239, 231, 0.52);
	border-top: 1px solid rgba(242, 239, 231, 0.06);
}

/* Mobile menu */

@media (max-width: 860px) {
	.te-chrome__nav-toggle {
		display: flex;
	}

	.te-chrome__site-header-inner {
		position: relative;
	}

	.te-chrome__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: 0;
		overflow: hidden;
		background: var(--te-bg);
		border-bottom: 1px solid rgba(242, 239, 231, 0.08);
		transition: max-height 0.2s ease;
	}

	.te-chrome__nav.is-open {
		max-height: 420px;
	}

	.te-chrome__nav-links {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.te-chrome__nav-links li {
		width: 100%;
	}

	.te-chrome__nav-links a {
		display: block;
		width: 100%;
		padding: 14px 24px;
		border-top: 1px solid rgba(242, 239, 231, 0.06);
	}

	.te-chrome__nav-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 16px 24px 20px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .te-chrome-bar:not(.te-chrome-bar--footer) {
		top: 0;
	}
}

@media (max-width: 600px) {
	.te-chrome__inner {
		padding: 0 20px;
	}

	.te-chrome__footer-links {
		gap: 14px;
	}
}
