/* ==========================================================================
   MA Bio — site-wide header & footer
   Champagne #C6A66B · deep gold #8C6B3E · charcoal #292724
   Palette line #E4D9C8 · footer #211F1C
   Scoped to .mbh / .mbf so nothing else on the site is affected.
   ========================================================================== */

/* ---------- Header ---------- */
.mbh {
	background: #ffffff;
	box-shadow: 0 1px 0 #E4D9C8;
	position: sticky;
	top: 0;
	z-index: 30;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
}

.mbh-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.1rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	box-sizing: border-box;
}

.mbh-wordmark {
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-size: 1.5rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: #292724;
	text-decoration: none;
	line-height: 1;
}

.mbh-wordmark:hover {
	color: #292724;
}

.mbh-nav {
	display: flex;
	align-items: center;
	gap: 2.1rem;
	flex-wrap: wrap;
}

.mbh-nav a {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: #292724;
	text-decoration: none;
	transition: color 0.2s ease;
}

.mbh-nav a:hover {
	color: #C6A66B;
}

.mbh-cta {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffffff;
	background: #C6A66B;
	border: 1px solid #C6A66B;
	border-radius: 2px;
	padding: 0.85rem 1.7rem;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mbh-cta:hover {
	background: #8C6B3E;
	border-color: #8C6B3E;
	color: #ffffff;
}

@media (max-width: 768px) {
	.mbh-inner {
		padding: 0.9rem 1.25rem;
		gap: 1rem;
	}

	.mbh-nav {
		gap: 1.1rem;
	}
}

/* ---------- Footer ---------- */
.mbf {
	background: #211F1C;
	padding: 4.5rem 2rem 2rem;
	width: 100%;
	box-sizing: border-box;
}

.mbf-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

.mbf-grid {
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr;
	gap: 2.5rem;
}

.mbf-brand,
.mbf-col {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.mbf-wordmark {
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-size: 1.35rem;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	color: #ffffff;
	text-decoration: none;
	line-height: 1;
}

.mbf-wordmark:hover {
	color: #ffffff;
}

.mbf-tagline {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.9rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
	max-width: 340px;
}

.mbf-title {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.68rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #C6A66B;
	margin: 0 0 0.5rem;
}

.mbf-col a {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.88rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mbf-col a:hover {
	color: #ffffff;
}

.mbf-note {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.84rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.45);
	margin: 0.35rem 0 0;
	max-width: 300px;
}

.mbf-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 1.4rem;
	box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.mbf-copy {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.76rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

.mbf-disc {
	font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 0.72rem;
	color: rgba(255, 255, 255, 0.38);
	margin: 0;
}

@media (max-width: 1024px) {
	.mbf-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	.mbf {
		padding: 3.5rem 1.25rem 1.75rem;
	}

	.mbf-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* ==========================================================================
   Brand logo lockup (uploaded MABIO_Logo PNG)
   The square source is cropped with a fixed viewport so the wordmark keeps
   its proportions; no text, colours or links are altered.
   ========================================================================== */

/* Header: wordmark band of the lockup */
.mbh-wordmark.mbh-logo {
	display: inline-flex;
	align-items: center;
	padding: 0;
	line-height: 0;
	letter-spacing: 0;
	font-size: 0;
	transition: opacity 0.2s ease;
}

.mbh-wordmark.mbh-logo:hover {
	opacity: 0.82;
}

.mbh-logo-crop {
	display: block;
	position: relative;
	width: 100px;
	height: 34px;
	overflow: hidden;
}

.mbh-logo-crop img {
	position: absolute;
	top: -31px;
	left: -7px;
	width: 112px;
	height: 112px;
	max-width: none;
	display: block;
}

/* Footer: full lockup, inverted to white on the charcoal footer */
.mbf-wordmark.mbf-logo {
	display: inline-flex;
	align-items: center;
	padding: 0;
	line-height: 0;
	letter-spacing: 0;
	font-size: 0;
	margin-bottom: 0.35rem;
	transition: opacity 0.2s ease;
}

.mbf-wordmark.mbf-logo:hover {
	opacity: 0.86;
}

.mbf-logo-crop {
	display: block;
	position: relative;
	width: 132px;
	height: 70px;
	overflow: hidden;
}

.mbf-logo-crop img {
	position: absolute;
	top: -42px;
	left: -10px;
	width: 150px;
	height: 150px;
	max-width: none;
	display: block;
	filter: brightness(0) invert(1);
}

/* Header rhythm refinements that follow the new logo proportions */
.mbh-inner {
	padding: 1.2rem 2rem;
	gap: 2.25rem;
}

.mbh-nav {
	gap: 2.2rem;
}

.mbh-nav a {
	font-size: 0.79rem;
	letter-spacing: 0.07em;
}

/* Footer rhythm refinements */
.mbf-brand {
	gap: 0.7rem;
}

.mbf-tagline {
	max-width: 320px;
}

@media (max-width: 1024px) {
	.mbf-logo-crop {
		width: 117px;
		height: 62px;
	}

	.mbf-logo-crop img {
		top: -37px;
		left: -9px;
		width: 133px;
		height: 133px;
	}
}

@media (max-width: 768px) {
	.mbh-inner {
		padding: 1rem 1.25rem;
		gap: 1.1rem;
	}

	.mbh-logo-crop {
		width: 88px;
		height: 30px;
	}

	.mbh-logo-crop img {
		top: -27px;
		left: -6px;
		width: 99px;
		height: 99px;
	}

	.mbf-logo-crop {
		width: 105px;
		height: 56px;
	}

	.mbf-logo-crop img {
		top: -34px;
		left: -8px;
		width: 120px;
		height: 120px;
	}
}

/* ==========================================================================
   Homepage chrome (Elementor canvas page 2116)
   The home page renders its own header and footer inside Elementor, so the
   same logo is applied there without touching the page structure.
   ========================================================================== */
.elementor-2116 .e-4c479e1f-13a2 > a.e-heading-link-base,
.elementor-2116 .e-1caeaffe-5f50 > a.e-heading-link-base {
	display: inline-block !important;
	overflow: hidden;
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: 0 !important;
	color: transparent !important;
	text-decoration: none !important;
	background-image: url('http://test.local/wp-content/uploads/2026/01/MABIO_Logo-removebg-preview-1.png');
	background-repeat: no-repeat;
	background-color: transparent;
}

/* Home header: wordmark band */
.elementor-2116 .e-4c479e1f-13a2 > a.e-heading-link-base {
	width: 100px !important;
	height: 34px !important;
	background-size: 112px 112px;
	background-position: -7px -31px;
}

/* Home footer brand: full lockup on the dark band */
.elementor-2116 .e-1caeaffe-5f50 > a.e-heading-link-base {
	width: 132px !important;
	height: 70px !important;
	background-size: 150px 150px;
	background-position: -10px -42px;
	filter: brightness(0) invert(1);
}

@media (max-width: 1024px) {
	.elementor-2116 .e-1caeaffe-5f50 > a.e-heading-link-base {
		width: 117px !important;
		height: 62px !important;
		background-size: 133px 133px;
		background-position: -9px -37px;
	}
}

@media (max-width: 768px) {
	.elementor-2116 .e-4c479e1f-13a2 > a.e-heading-link-base {
		width: 88px !important;
		height: 30px !important;
		background-size: 99px 99px;
		background-position: -6px -27px;
	}

	.elementor-2116 .e-1caeaffe-5f50 > a.e-heading-link-base {
		width: 105px !important;
		height: 56px !important;
		background-size: 120px 120px;
		background-position: -8px -34px;
	}
}

/* Shared header on tablet/mobile: logo + CTA row, scrollable nav row */
@media (max-width: 900px) {
	.mbh-inner {
		flex-wrap: wrap;
		row-gap: 0.55rem;
		padding: 0.85rem 1.1rem;
		gap: 0.75rem;
	}

	.mbh-wordmark.mbh-logo {
		order: 1;
		flex: 0 0 auto;
	}

	.mbh-cta {
		order: 2;
		margin-left: auto;
		padding: 0.6rem 1rem;
		font-size: 0.6rem;
		letter-spacing: 0.12em;
	}

	.mbh-nav {
		order: 3;
		flex: 1 0 100%;
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 1.35rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 0.1rem;
	}

	.mbh-nav::-webkit-scrollbar {
		display: none;
	}

	.mbh-nav a {
		white-space: nowrap;
		font-size: 0.76rem;
	}
}

@media (max-width: 420px) {
	.mbh-nav {
		gap: 1.1rem;
	}

	.mbh-cta {
		padding: 0.55rem 0.85rem;
		font-size: 0.56rem;
	}
}
