/* --------------------------------------------------------------------------
   iSaive — header, footer, inner pages
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--isaive-header);
	background: rgba(0, 26, 51, 0.88);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: height 0.25s ease, background 0.25s ease;
}

.site-header.is-compact {
	height: 3.9rem;
	background: rgba(0, 26, 51, 0.96);
}

.site-header__inner {
	width: min(100% - 2rem, var(--isaive-container));
	height: 100%;
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.brand {
	display: inline-flex;
	align-items: baseline;
	font-weight: 800;
	font-size: 1.45rem;
	letter-spacing: -0.05em;
	color: #fff;
	line-height: 1;
	flex-shrink: 0;
}

.brand__mark {
	color: var(--isaive-cyan);
}

.brand--footer {
	margin-bottom: 0.85rem;
	font-size: 1.6rem;
}

.brand--logo .custom-logo-link,
.brand--logo .custom-logo {
	display: block;
	height: 2rem;
	width: auto;
}

body.nav-open {
	overflow: hidden;
}

.nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 1.35rem;
}

.nav__list a {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
	font-weight: 600;
}

.nav__list a:hover,
.nav__list a:focus-visible,
.nav__list .is-active a,
.nav__list a[aria-current="page"],
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a {
	color: #fff;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 2.75rem;
	height: 2.75rem;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--isaive-radius-sm);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 0;
	line-height: 0;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	flex-shrink: 0;
}

.nav-toggle__bar {
	display: block;
	width: 1.1rem;
	height: 2px;
	margin: 0;
	background: #fff;
	border-radius: 2px;
	transform-origin: center;
	transition: transform 0.2s var(--isaive-ease), opacity 0.2s ease;
}

body.nav-open .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
	background: #000d1c;
	color: rgba(255, 255, 255, 0.72);
	padding-top: 3.5rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 2.5rem;
}

.site-footer__heading {
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1rem;
}

.site-footer__intro {
	max-width: 22rem;
}

.site-footer__links {
	display: grid;
	gap: 0.55rem;
}

.site-footer__links a:hover {
	color: #fff;
}

.site-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.1rem 0;
	font-size: 0.9rem;
}

.page-main {
	padding: calc(var(--isaive-header) + 2.5rem) 0 4rem;
	background: var(--isaive-bg);
	min-height: 60vh;
}

.content-block {
	background: #fff;
	border-radius: var(--isaive-radius);
	padding: 2rem;
	border: 1px solid var(--isaive-border);
}

@media (max-width: 860px) {
	.site-header__inner {
		width: 100%;
		padding-inline: 1rem;
		gap: 0.75rem;
	}

	body.nav-open .site-header {
		height: var(--isaive-header);
	}

	.brand {
		align-items: center;
		position: relative;
		z-index: 2;
	}

	.nav-toggle {
		display: inline-flex;
		position: relative;
		z-index: 2;
	}

	.nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0.35rem;
		padding: 0.35rem 1rem 1.15rem;
		background: rgba(0, 26, 51, 0.98);
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		box-shadow: var(--isaive-shadow);
		max-height: calc(100vh - var(--isaive-header));
		max-height: calc(100dvh - var(--isaive-header));
		overflow-x: hidden;
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-0.4rem);
		transition:
			opacity 0.25s var(--isaive-ease),
			transform 0.25s var(--isaive-ease),
			visibility 0.25s;
	}

	body.nav-open .nav {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.nav__list li {
		width: 100%;
	}

	.nav__list a {
		display: block;
		padding: 0.85rem 0.15rem;
		font-size: 1.05rem;
		line-height: 1.4;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.nav__cta {
		width: 100%;
		margin-top: 0.65rem;
		justify-content: center;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}
