/* Sigiriya — site frame: top bar + footer */

/* ---------- Top bar ---------- */
.sgr-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	padding: 1.25rem var(--wp--custom--gutter);
	background-color: var(--wp--preset--color--base);
}

/* Over the scroll hero the bar floats on a soft scrim, as in the design */
body:has(.sgr-hero, .ssh-hero) .sgr-header {
	position: fixed;
	inset: var(--wp-admin--admin-bar--height, 0px) 0 auto 0;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent),
		color-mix(in srgb, var(--wp--preset--color--base) 0%, transparent));
}

.sgr-header .sgr-header__brand {
	margin: 0;
	line-height: 1.2;
}
.sgr-header .sgr-header__brand a {
	color: inherit;
	text-decoration: none;
}

.sgr-header .sgr-header__actions {
	gap: clamp(16px, 3vw, 36px);
}

.sgr-header .sgr-nav a {
	text-decoration: none;
	opacity: 0.85;
	transition: opacity 0.2s;
}
.sgr-header .sgr-nav a:hover {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 5px;
}

.sgr-header .sgr-header__cta .wp-block-button__link {
	white-space: nowrap;
	transition: background-color 0.2s;
}

@media (max-width: 760px) {
	.sgr-header .sgr-nav {
		display: none;
	}
}

/* ---------- Footer ---------- */
.sgr-footer {
	border-top: 1px solid var(--wp--preset--color--accent-6);
	padding: var(--wp--preset--spacing--50) var(--wp--custom--gutter);
}
.sgr-footer .sgr-footer__brand {
	margin: 0;
	line-height: 1.2;
}
.sgr-footer .sgr-footer__brand a {
	color: inherit;
	text-decoration: none;
}
.sgr-footer .sgr-footer__tagline,
.sgr-footer .sgr-footer__note {
	margin: 0;
	color: var(--wp--preset--color--accent-4);
}

@media (prefers-reduced-motion: reduce) {
	.sgr-header .sgr-nav a,
	.sgr-header .sgr-header__cta .wp-block-button__link {
		transition: none;
	}
}
