/**
 * File: /common/css/components.css
 * Package: Microba_Outlook
 * Version: 1.3.0
 * Revised: 24 July 2026
 */

/**
 * MICROBA OUTLOOK shared components.
 *
 * Includes:
 * - Header
 * - Navigation
 * - Buttons
 * - Mobile navigation
 * - Cards
 * - Footer
 */

/* =========================================================
   HEADER
   ========================================================= */

.mo-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--mo-z-header);
	width: 100%;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition:
		background-color var(--mo-duration-base) var(--mo-ease-standard),
		border-color var(--mo-duration-base) var(--mo-ease-standard),
		box-shadow var(--mo-duration-base) var(--mo-ease-standard),
		backdrop-filter var(--mo-duration-base) var(--mo-ease-standard);
}

.admin-bar .mo-site-header {
	top: 32px;
}

/**
 * MICROBA canonical header behaviour.
 *
 * The Header remains transparent before and after scrolling.
 * It must never change into a white or light Header.
 *
 * A subtle backdrop blur is applied after scrolling or while
 * the mobile navigation is open to preserve readability.
 */
.mo-site-header.is-scrolled,
.mo-site-header.has-open-menu {
	background: rgba(7, 10, 8, .12);
	border-bottom-color: rgba(255, 255, 255, .08);
	box-shadow: none;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.mo-header-inner {
	min-height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}


/* =========================================================
   BRANDING
   ========================================================= */

.mo-brand {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	width: auto;
	height: 52px;
	line-height: 0;
	overflow: visible;
}

.mo-brand-logo,
.mo-brand img {
	display: block;
	width: auto;
	height: 52px;
	max-width: 180px;
	object-fit: contain;
	object-position: left center;
}

.mo-brand-fallback {
	display: grid;
	line-height: 1;
}

.mo-brand-fallback strong {
	font-size: 1rem;
	letter-spacing: .12em;
}

.mo-brand-fallback small {
	margin-top: .35rem;
	font-size: .62rem;
	letter-spacing: .08em;
	color: var(--mo-muted);
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.mo-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.mo-nav-list {
	display: flex;
	align-items: center;
	gap: 1.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mo-nav-item {
	margin: 0;
	padding: 0;
}

.mo-nav a {
	font-size: .95rem;
	text-decoration: none;
	transition:
		color .2s ease,
		background-color .2s ease,
		border-color .2s ease,
		opacity .2s ease;
}

.mo-nav-link,
.mo-account-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	white-space: nowrap;
}

/**
 * MICROBA navigation remains white across every Header state.
 */
.mo-site-header .mo-nav-link,
.mo-site-header .mo-account-link {
	color: #fff;
}

/**
 * Hover and keyboard focus.
 */
.mo-nav-link:hover,
.mo-nav-link:focus-visible,
.mo-account-link:hover,
.mo-account-link:focus-visible {
	color: var(--mo-accent, var(--mo-gold));
}

/**
 * Active page indicator.
 */
.mo-nav-item.is-active .mo-nav-link,
.mo-nav-link[aria-current="page"],
.mo-account-link.is-active,
.mo-account-link[aria-current="page"] {
	color: var(--mo-accent, var(--mo-gold));
}

.mo-nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .2s ease;
}

.mo-nav-link:hover::after,
.mo-nav-link:focus-visible::after,
.mo-nav-item.is-active .mo-nav-link::after,
.mo-nav-link[aria-current="page"]::after {
	transform: scaleX(1);
}

.mo-account-link {
	font-weight: 700;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.mo-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: .7rem 1.25rem;
	border: 1px solid var(--mo-text);
	border-radius: var(--mo-radius-pill);
	background: var(--mo-text);
	color: var(--mo-inverse);
	font-weight: 600;
	text-decoration: none;
	transition:
		color .2s ease,
		background-color .2s ease,
		border-color .2s ease,
		opacity .2s ease,
		transform .2s ease;
}

.mo-button:hover,
.mo-button:focus-visible {
	opacity: .9;
	transform: translateY(-1px);
}

/**
 * Visitor CTA remains transparent across every Header state.
 */
.mo-site-header .mo-join-link {
	border-color: rgba(255, 255, 255, .85);
	background: transparent;
	color: #fff;
}

.mo-site-header .mo-join-link:hover,
.mo-site-header .mo-join-link:focus-visible {
	border-color: #fff;
	background: var(--mo-inverse);
	color: var(--mo-text);
}


/* =========================================================
   MOBILE NAVIGATION TOGGLE
   ========================================================= */

.mo-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: var(--mo-radius-pill);
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.mo-nav-toggle-icon {
	display: grid;
	width: 22px;
	gap: 5px;
}

.mo-nav-toggle-icon span {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: var(--mo-radius-pill);
	background: currentColor;
	transition:
		transform .2s ease,
		opacity .2s ease,
		background-color .2s ease;
}

/**
 * Hamburger remains white across every Header state.
 */
.mo-site-header .mo-nav-toggle {
	color: #fff;
}

.mo-nav-toggle:hover,
.mo-nav-toggle:focus-visible {
	background: rgba(255, 255, 255, .12);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mo-mobile-menu {
	display: none;
	background: rgba(7, 10, 8, .94);
	color: #fff;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.mo-mobile-menu a {
	color: #fff;
	text-decoration: none;
}

.mo-mobile-menu a:hover,
.mo-mobile-menu a:focus-visible,
.mo-mobile-menu a[aria-current="page"] {
	color: var(--mo-accent, var(--mo-gold));
}


/* =========================================================
   CARDS
   ========================================================= */

.mo-card {
	overflow: hidden;
	background: var(--mo-surface);
	border: 1px solid var(--mo-border);
	border-radius: var(--mo-radius);
	box-shadow: var(--mo-shadow-xs);
	transition: var(--mo-transition-base);
}

.mo-card-body {
	padding: clamp(var(--mo-space-3), 3vw, var(--mo-space-4));
}


.mo-card[href],
a.mo-card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.mo-card[href]:hover,
.mo-card[href]:focus-visible,
a.mo-card:hover,
a.mo-card:focus-visible {
	border-color: var(--mo-border-strong);
	box-shadow: var(--mo-shadow-sm);
	transform: translateY(-2px);
}



/* =========================================================
   FOOTER
   ========================================================= */

.mo-site-footer {
	position: relative;
	overflow: hidden;
	padding: clamp(4.75rem, 8vw, 7.5rem) 0 1.5rem;
	background:
		radial-gradient(circle at 12% 0%, rgba(178, 139, 69, .12), transparent 34rem),
		#0d100e;
	border-top: 1px solid rgba(255, 255, 255, .10);
	color: rgba(255, 255, 255, .70);
}

.mo-site-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(92%, var(--mo-container));
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(178, 139, 69, .68), transparent);
	transform: translateX(-50%);
}

.mo-footer-main {
	align-items: start;
	gap: clamp(2.75rem, 5vw, 5.5rem);
	padding-bottom: clamp(3.25rem, 6vw, 5.5rem);
}

.mo-footer-brand {
	display: grid;
	align-content: start;
	gap: .85rem;
	max-width: 32rem;
}

.mo-footer-brand .mo-brand {
	width: fit-content;
	height: 64px;
	margin-bottom: .45rem;
}

.mo-footer-brand .mo-brand img {
	width: auto;
	height: 64px;
	max-width: 210px;
}

.mo-footer-tagline,
.mo-footer-statement {
	margin: 0;
}

.mo-footer-tagline {
	color: #fff;
	font-family: var(--mo-font-display, serif);
	font-size: clamp(1.4rem, 2vw, 2rem);
	line-height: 1.2;
}

.mo-footer-statement {
	max-width: 32ch;
	font-size: .98rem;
	line-height: 1.75;
}

.mo-footer-group {
	min-width: 0;
}

.mo-footer-group h2 {
	margin: .35rem 0 1.35rem;
	color: var(--mo-accent, var(--mo-gold));
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.mo-footer-group ul {
	display: grid;
	gap: .82rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mo-footer-group li {
	margin: 0;
}

.mo-footer-group a,
.mo-footer-legal a {
	color: rgba(255, 255, 255, .72);
	text-decoration: none;
	transition: color .2s ease, transform .2s ease;
}

.mo-footer-group a {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	font-size: .96rem;
	line-height: 1.45;
}

.mo-footer-group a:hover,
.mo-footer-group a:focus-visible,
.mo-footer-legal a:hover,
.mo-footer-legal a:focus-visible {
	color: #fff;
}

.mo-footer-group a:hover,
.mo-footer-group a:focus-visible {
	transform: translateX(3px);
}

.mo-footer-group a:focus-visible,
.mo-footer-legal a:focus-visible {
	outline: 2px solid var(--mo-accent, #b28b45);
	outline-offset: 4px;
}

.mo-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.25rem 2.5rem;
	padding-top: 1.65rem;
	border-top: 1px solid rgba(255, 255, 255, .10);
	font-size: .86rem;
}

.mo-footer-copyright {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .35rem .7rem;
	margin: 0;
	color: rgba(255, 255, 255, .58);
	line-height: 1.65;
}

.mo-footer-copyright-primary,
.mo-footer-copyright-tagline {
	display: inline;
}

.mo-footer-copyright-tagline {
	color: rgba(255, 255, 255, .72);
}

.mo-footer-copyright-tagline::before {
	content: "•";
	margin-right: .7rem;
	color: rgba(178, 139, 69, .78);
}

.mo-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: .65rem 1.4rem;
}

.mo-footer-legal a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	white-space: nowrap;
}

.mo-footer-legal a:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -.75rem;
	width: 2px;
	height: 2px;
	border-radius: var(--mo-radius-pill);
	background: rgba(178, 139, 69, .72);
	transform: translateY(-50%);
}


/* =========================================================
   FOOTER NAVIGATION ICONS
   Revision: 2026-07-22
   ========================================================= */

.mo-footer-nav-link {
	gap: .7rem;
}

.mo-footer-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 1.15rem;
	width: 1.15rem;
	height: 1.15rem;
	color: var(--mo-accent, var(--mo-gold));
	opacity: .82;
	transform: translateX(0) scale(1);
	transition:
		color .2s ease,
		opacity .2s ease,
		transform .2s ease;
}

.mo-footer-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
}

.mo-footer-label {
	display: inline-block;
}

.mo-footer-nav-link:hover .mo-footer-icon,
.mo-footer-nav-link:focus-visible .mo-footer-icon {
	color: #fff;
	opacity: 1;
	transform: translateX(2px) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.mo-footer-icon,
	.mo-footer-group a {
		transition: none;
	}
}


/* =========================================================
   FOOTER SOCIAL CHANNELS
   Revision: 2026-07-22
   ========================================================= */

.mo-footer-social {
	display: grid;
	gap: .8rem;
	margin-top: 1.35rem;
}

.mo-footer-social-title {
	margin: 0;
	color: var(--mo-accent, var(--mo-gold));
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.mo-footer-social-list {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: .7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mo-footer-social-item {
	margin: 0;
	padding: 0;
}

.mo-footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--mo-radius-pill);
	background: rgba(255, 255, 255, .04);
	color: rgba(255, 255, 255, .78);
	text-decoration: none;
	transition:
		border-color .2s ease,
		background-color .2s ease,
		color .2s ease,
		opacity .2s ease,
		transform .2s ease;
}

.mo-footer-social-link:not(.mo-footer-social-link--disabled):hover,
.mo-footer-social-link:not(.mo-footer-social-link--disabled):focus-visible {
	border-color: var(--mo-accent, var(--mo-gold));
	background: rgba(178, 139, 69, .14);
	color: #fff;
	transform: translateY(-2px);
}

.mo-footer-social-link:focus-visible {
	outline: 2px solid var(--mo-accent, #b28b45);
	outline-offset: 4px;
}

.mo-footer-social-link--disabled {
	cursor: default;
	opacity: .42;
}

.mo-footer-social-icon {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
	.mo-footer-social-link {
		transition: none;
	}
}

/* =========================================================
   WORDPRESS ADMIN BAR
   ========================================================= */

@media (max-width: 782px) {
	.admin-bar .mo-site-header {
		top: 46px;
	}
}


/* =========================================================
   TABLET AND MOBILE HEADER
   ========================================================= */

@media (max-width: 860px) {
	.mo-header-inner {
		min-height: 68px;
	}

	.mo-brand {
		height: 44px;
	}

	.mo-brand-logo,
	.mo-brand img {
		height: 44px;
		max-width: 150px;
	}

	.mo-nav {
		gap: .75rem;
	}

	.mo-nav-list,
	.mo-nav-member > .mo-account-link {
		display: none;
	}

	.mo-nav-toggle {
		display: inline-flex;
	}

	.mo-mobile-menu.is-open {
		display: grid;
		gap: 1rem;
		padding: 1rem 1rem 1.5rem;
		border-top: 1px solid rgba(255, 255, 255, .12);
	}

	.mo-mobile-menu .mo-account-link {
		padding-top: 1rem;
		border-top: 1px solid rgba(255, 255, 255, .12);
	}
}


/* =========================================================
   RESPONSIVE FOOTER
   ========================================================= */

@media (max-width: 980px) {
	.mo-footer-main {
		gap: 3rem;
	}

	.mo-footer-brand {
		max-width: 38rem;
	}

	.mo-footer-bottom {
		align-items: flex-start;
	}

	.mo-footer-legal {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.mo-site-footer {
		padding-top: 4rem;
	}

	.mo-footer-main {
		gap: 2.4rem;
		padding-bottom: 3.25rem;
	}

	.mo-footer-brand {
		gap: .8rem;
	}

	.mo-footer-brand .mo-brand {
		margin-bottom: .3rem;
	}

	.mo-footer-social {
		margin-top: 1.15rem;
	}

	.mo-footer-group {
		padding-top: 1.5rem;
		border-top: 1px solid rgba(255, 255, 255, .08);
	}

	.mo-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 1.15rem;
		padding-top: 1.4rem;
	}

	.mo-footer-copyright {
		align-items: flex-start;
		flex-direction: column;
		gap: .15rem;
	}

	.mo-footer-copyright-tagline::before {
		content: none;
	}

	.mo-footer-legal {
		gap: .55rem 1.25rem;
	}

	.mo-footer-legal a:not(:last-child)::after {
		right: -.68rem;
	}
}
