/* ==========================================================================
   TshwaneBiz header — self-contained.
   Everything is scoped under .tbiz-hdr so the theme cannot interfere and
   this cannot leak out. No Divi columns involved.
   ========================================================================== */

.tbiz-hdr {
	--tbiz-black: #0a0b0d;
	--tbiz-bar: #16181c;
	--tbiz-red: #e0332c;
	--tbiz-muted: #8b929c;
	--tbiz-logo-w: 420px;
	--tbiz-banner-w: 420px;

	display: block;
	width: 100%;
	background: var(--tbiz-black);
	border-bottom: 2px solid var(--tbiz-red);
	font-family: inherit;
	position: relative;
	z-index: 100;
}

.tbiz-hdr *, .tbiz-hdr *::before, .tbiz-hdr *::after { box-sizing: border-box; }

.tbiz-hdr-inner {
	width: 92%;
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
}

/* --- top strip ---------------------------------------------------------- */
.tbiz-hdr-strip {
	background: var(--tbiz-bar);
	padding: 7px 0;
	font-size: 13px;
}
.tbiz-hdr-strip .tbiz-hdr-inner { justify-content: space-between; }
.tbiz-hdr-tagline { color: var(--tbiz-muted); }
.tbiz-hdr-striplink { color: #ff5a52 !important; text-decoration: none; transition: opacity .15s ease; }
.tbiz-hdr-striplink:hover { opacity: .75; }

/* --- main bar ----------------------------------------------------------- */
.tbiz-hdr-main { padding: 16px 0; }

.tbiz-hdr-logo {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
	text-decoration: none;
}
.tbiz-hdr-logo img {
	width: var(--tbiz-logo-w);
	max-width: 100%;
	height: auto;
	display: block;
}
.tbiz-hdr-sitename { color: #fff; font-size: 26px; font-weight: 800; line-height: 1.2; }

/* Right side stacks: menu row on top, banner underneath */
.tbiz-hdr-right {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.tbiz-hdr-navrow {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
	justify-content: flex-end;
}

/* --- navigation --------------------------------------------------------- */
.tbiz-hdr-nav ul {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tbiz-hdr-nav li { position: relative; margin: 0; padding: 0; list-style: none; }
.tbiz-hdr-nav a {
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	padding-bottom: 6px;
	position: relative;
	display: block;
	transition: color .15s ease;
}
.tbiz-hdr-nav a::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 2px;
	background: var(--tbiz-red);
	transition: width .2s ease;
}
.tbiz-hdr-nav a:hover { color: var(--tbiz-red) !important; }
.tbiz-hdr-nav a:hover::after,
.tbiz-hdr-nav .current-menu-item > a::after { width: 100%; }
.tbiz-hdr-nav .current-menu-item > a { color: #fff !important; }

/* dropdowns */
.tbiz-hdr-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 220px;
	background: var(--tbiz-bar);
	border-top: 2px solid var(--tbiz-red);
	box-shadow: 0 12px 30px rgba(0,0,0,.45);
	padding: 6px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 50;
}
.tbiz-hdr-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.tbiz-hdr-nav .sub-menu a { padding: 10px 18px; letter-spacing: .03em; }
.tbiz-hdr-nav .sub-menu a:hover { background: rgba(224,51,44,.14); }
.tbiz-hdr-nav .sub-menu a::after { display: none; }

/* --- button ------------------------------------------------------------- */
.tbiz-hdr-btn {
	flex: 0 0 auto;
	display: inline-block;
	background: var(--tbiz-red);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 6px;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(224,51,44,.32);
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tbiz-hdr-btn:hover {
	background: #c42821;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(224,51,44,.45);
}

/* --- banner ------------------------------------------------------------- */
.tbiz-hdr-banner { width: 100%; display: flex; justify-content: flex-end; }
.tbiz-hdr-banner .tbiz-banner,
.tbiz-hdr-banner .tbiz-banner-empty {
	width: 100%;
	max-width: var(--tbiz-banner-w);
	margin: 0;
	aspect-ratio: 4 / 1;
	min-height: 0;
}
.tbiz-hdr-banner .tbiz-banner-empty { background: var(--tbiz-bar); border-color: #3a3d44; }
.tbiz-hdr-banner .tbiz-banner-empty:hover { border-color: var(--tbiz-red); background: #1d2025; }
.tbiz-hdr-banner .tbiz-banner-empty-main { font-size: .95rem; }
.tbiz-hdr-banner .tbiz-banner-empty-sub { color: var(--tbiz-muted); font-size: .74rem; }

/* --- hamburger ---------------------------------------------------------- */
.tbiz-hdr-burger {
	display: none;
	flex: 0 0 auto;
	width: 40px;
	height: 34px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 6px 4px;
	flex-direction: column;
	justify-content: space-between;
}
.tbiz-hdr-burger span {
	display: block;
	height: 3px;
	width: 100%;
	background: #fff;
	border-radius: 2px;
	transition: transform .22s ease, opacity .18s ease;
}
.tbiz-hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.tbiz-hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tbiz-hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- mobile menu panel -------------------------------------------------- */
.tbiz-hdr-mobilemenu {
	background: var(--tbiz-black);
	border-top: 2px solid var(--tbiz-red);
	padding: 6px 0 18px;
}
.tbiz-hdr-mobilemenu ul { list-style: none; margin: 0; padding: 0; }
.tbiz-hdr-mobilemenu li { margin: 0; }
.tbiz-hdr-mobilemenu a {
	display: block;
	color: #fff !important;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	padding: 15px 5%;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.tbiz-hdr-mobilemenu a:hover,
.tbiz-hdr-mobilemenu .current-menu-item > a { background: rgba(224,51,44,.16); }
.tbiz-hdr-mobilemenu .sub-menu a { padding-left: 9%; font-weight: 400; opacity: .85; }
.tbiz-hdr-btn-mobile {
	display: block !important;
	margin: 16px 5% 0;
	text-align: center;
	border-bottom: 0 !important;
}

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
	.tbiz-hdr-inner { gap: 16px; }
	.tbiz-hdr-nav, .tbiz-hdr-navrow .tbiz-hdr-btn { display: none; }
	.tbiz-hdr-burger { display: flex; }

	.tbiz-hdr-main { padding: 14px 0 16px; }
	.tbiz-hdr-main .tbiz-hdr-inner { flex-wrap: wrap; }

	.tbiz-hdr-logo { flex: 1 1 auto; }
	.tbiz-hdr-logo img { width: 300px; }

	.tbiz-hdr-right { flex: 0 0 auto; width: auto; }
	.tbiz-hdr-navrow { width: auto; }

	/* Banner drops to its own full-width line */
	.tbiz-hdr-banner {
		order: 3;
		flex: 0 0 100%;
		width: 100%;
		justify-content: center;
		margin-top: 14px;
	}
	.tbiz-hdr-main .tbiz-hdr-inner > .tbiz-hdr-right { align-items: center; }
	.tbiz-hdr-right { flex-direction: row; }
	.tbiz-hdr-banner .tbiz-banner,
	.tbiz-hdr-banner .tbiz-banner-empty { max-width: 100%; }
}

@media (max-width: 620px) {
	.tbiz-hdr-tagline { display: none; }
	.tbiz-hdr-strip .tbiz-hdr-inner { justify-content: center; }
	.tbiz-hdr-logo img { width: 230px; }
	.tbiz-hdr-strip { font-size: 12px; }
}
