/* AlphaSoft — reusable component styles: header, brand mark, nav, buttons,
   mobile menu, footer. Ported from the V4 prototype design system. */

/* Brand mark sizing (shape mechanics live in base.css) */
.brand-mark {
	position: relative;
	width: 25px;
	height: 23px;
	color: currentcolor;
}

.brand-mark i {
	width: 2px;
	height: 25px;
	top: -1px;
}

.brand-mark i:first-child {
	left: 7px;
	transform: rotate(25deg);
}

.brand-mark i:nth-child(2) {
	right: 7px;
	transform: rotate(-25deg);
}

.brand-mark b {
	width: 13px;
	height: 2px;
	left: 6px;
	top: 14px;
}

/* Header */
.site-header {
	position: fixed;
	z-index: 200;
	top: 0;
	left: 0;
	width: 100%;
	height: 84px;
	padding: 0 var(--side-padding);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	mix-blend-mode: difference;
	color: #fff;
}

.brand {
	display: inline-flex;
	width: max-content;
	align-items: center;
	gap: 13px;
	font-weight: 600;
	letter-spacing: -0.035em;
}

.desktop-nav {
	display: flex;
	gap: 31px;
	font: 400 10px/1 var(--mono);
	text-transform: uppercase;
}

.desktop-nav a {
	position: relative;
}

.desktop-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -7px;
	width: 100%;
	height: 1px;
	background: currentcolor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s;
}

.desktop-nav a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

.header-actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 23px;
}

.language {
	border: 0;
	background: none;
	font: 400 9px/1 var(--mono);
	cursor: pointer;
}

.header-cta,
.large-link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 35px;
	min-height: 50px;
	padding: 0 19px 0 23px;
	border: 1px solid currentcolor;
	border-radius: 999px;
	font: 500 12px/1 var(--sans);
	transition: transform 0.2s;
}

.header-cta i,
.large-link i,
.contact-email i {
	font-style: normal;
}

/*
 * .large-link is used by the compact-contact CTA, the contact-form submit
 * button, the homepage capability-rail/integration CTAs and the legal-page
 * CTA. This override must come after the shared .header-cta, .large-link
 * rule above (both are plain class selectors, so load order decides which
 * padding wins) — it lives in components.css rather than base.css for
 * exactly that reason, even though it's conceptually the same
 * "always-loaded, cross-context component" case as .compact-contact.
 * .case-meta .large-link (portfolio.css) overrides margin/min-height for
 * the "Visit live project" button, but inherits this padding.
 */
.large-link {
	margin-top: 90px;
	min-width: 220px;
	min-height: 60px;
	padding-inline: 25px;
}

.menu-toggle {
	display: none;
}

/* Mobile menu */
.mobile-menu {
	position: fixed;
	z-index: 190;
	inset: 0;
	padding: 115px 22px 30px;
	display: flex;
	flex-direction: column;
	background: var(--ink);
	color: #fff;
	transform: translateY(-100%);
	transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.open {
	transform: translateY(0);
}

.mobile-menu-top {
	padding-bottom: 26px;
	font: 400 9px/1 var(--mono);
	text-transform: uppercase;
	color: #949494; /* #777 was right at the 4.5:1 AA edge on --ink */
}

.mobile-menu a {
	display: grid;
	grid-template-columns: 36px 1fr;
	align-items: center;
	padding: 18px 0;
	border-top: 1px solid rgb(255 255 255 / 20%);
	font-size: 42px;
	letter-spacing: -0.055em;
	color: #fff;
}

.mobile-menu a span {
	font: 400 9px/1 var(--mono);
}

/* Footer */
.site-footer {
	min-height: 125px;
	padding: 0 var(--side-padding);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 45px;
	background: var(--ink);
	color: #fff;
	font: 400 9px/1.5 var(--mono);
	text-transform: uppercase;
}

.site-footer > div {
	display: flex;
	gap: 28px;
}

.site-footer > div:last-child {
	justify-self: end;
}

@media (width <= 960px) {
	.site-header {
		height: 72px;
		padding: 0 20px;
		grid-template-columns: 1fr auto;
		background: rgb(8 8 8 / 94%);
		mix-blend-mode: normal;
	}

	.desktop-nav,
	.header-actions {
		display: none;
	}

	.menu-toggle {
		display: grid;
		gap: 6px;
		border: 0;
		background: none;
		padding: 10px 0 10px 15px;
	}

	.menu-toggle span {
		width: 26px;
		height: 1px;
		background: #fff;
		transition: 0.3s;
	}

	.menu-toggle.active span:first-child {
		transform: translateY(3.5px) rotate(45deg);
	}

	.menu-toggle.active span:last-child {
		transform: translateY(-3.5px) rotate(-45deg);
	}

	.site-footer {
		padding: 35px 20px;
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.site-footer > div:last-child {
		justify-self: start;
	}
}
