/*
Theme Name: Active Interactive
Theme URI: https://activeinteractive.local/
Author: Active Interactive
Author URI: https://activeinteractive.local/
Description: Native lightweight block theme scaffold for Active Interactive.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: active-interactive
Tags: block-theme, full-site-editing, custom-colors, custom-logo
*/

:root {
	--ai-header-bg: rgba(248, 248, 248, 0.58);
	--ai-header-border: rgba(32, 40, 104, 0.14);
	--ai-shadow-soft: 0 14px 40px rgba(32, 40, 104, 0.08);
	--ai-header-offset: 0px;
	--ai-bg-shift: 0px;
}

.wp-site-blocks {
	min-height: 100vh;
	position: relative;
	isolation: isolate;
	overflow: visible;
	background-color: #f0f1f6;
	background:
		radial-gradient(circle at top left, rgba(168, 176, 208, 0.2) 0%, rgba(168, 176, 208, 0) 34%),
		radial-gradient(circle at 85% 18%, rgba(138, 111, 143, 0.1) 0%, rgba(138, 111, 143, 0) 20%),
		radial-gradient(circle at 18% 78%, rgba(232, 222, 210, 0.28) 0%, rgba(232, 222, 210, 0) 24%),
		linear-gradient(180deg, rgba(250, 248, 245, 0.54) 0%, rgba(245, 243, 246, 0.48) 52%, #f0f1f6 100%);
	background-position: top left, 85% 18%, 18% 78%, center;
	background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
	background-size: auto, auto, auto, cover;
}

.wp-site-blocks::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.22) 0%,
			rgba(245, 243, 246, 0.12) 45%,
			rgba(240, 241, 246, 0) 100%
		),
		var(--ai-hero-image);
	background-position: center center, center top;
	background-repeat: no-repeat, repeat-y;
	background-size: cover, 100% auto;
	opacity: 0.78;
	-webkit-mask-image: linear-gradient(
		180deg,
		rgba(0, 0, 0, 1) 0%,
		rgba(0, 0, 0, 1) 58%,
		rgba(0, 0, 0, 0) 100%
	);
	mask-image: linear-gradient(
		180deg,
		rgba(0, 0, 0, 1) 0%,
		rgba(0, 0, 0, 1) 58%,
		rgba(0, 0, 0, 0) 100%
	);
	transform: translate3d(0, var(--ai-bg-shift), 0) scale(1.08);
	transform-origin: center top;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.wp-site-blocks::before {
		transform: none;
	}
}

.wp-site-blocks > main {
	display: block;
}

.ai-home-main {
	display: block;
}

.ai-home-banner-section {
	margin-top: var(--wp--preset--spacing--m);
	margin-bottom: var(--wp--preset--spacing--m);
}

.ai-home-banner {
	position: relative;
	min-height: clamp(10rem, 20vw, 14rem);
	display: flex;
	align-items: flex-end;
	border-radius: 20px;
	background-image:
		linear-gradient(
			135deg,
			rgba(20, 24, 47, 0.08) 0%,
			rgba(20, 24, 47, 0.16) 40%,
			rgba(20, 24, 47, 0.58) 100%
		),
		var(--ai-home-banner-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center 56%;
	overflow: hidden;
}

.ai-contact-banner-section {
	margin-top: 0;
	margin-bottom: 0;
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
}

.ai-contact-banner-block {
	margin: 0 0 var(--wp--preset--spacing--m);
}

.ai-contact-banner {
	position: relative;
	border-radius: 0;
	min-height: clamp(8.5rem, 14vw, 11rem);
	display: flex;
	align-items: flex-end;
	width: 100%;
	overflow: hidden;
	--ai-footer-banner-shift: 0px;
}

.ai-contact-banner::before {
	content: "";
	position: absolute;
	inset: -10% 0;
	background-image:
		linear-gradient(
			135deg,
			rgba(20, 24, 47, 0.08) 0%,
			rgba(20, 24, 47, 0.16) 40%,
			rgba(20, 24, 47, 0.48) 100%
		),
		var(--ai-contact-banner-image);
	background-position: center 46%;
	background-repeat: no-repeat;
	background-size: cover;
	transform: translate3d(0, var(--ai-footer-banner-shift), 0) scale(1.14);
	transform-origin: center center;
	will-change: transform;
}

.ai-contact-banner > * {
	position: relative;
	z-index: 1;
}

.ai-surface {
	border: 0;
	border-radius: 24px;
	box-shadow: var(--ai-shadow-soft);
}

.ai-hero-signal {
	background-image:
		linear-gradient(
			90deg,
			rgba(20, 24, 47, 0.78) 0%,
			rgba(20, 24, 47, 0.42) 38%,
			rgba(20, 24, 47, 0.08) 100%
		),
		var(--ai-home-hero-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.home .ai-home-main > .wp-block-post-content > .wp-block-group.alignwide:first-child,
.home .ai-home-main > .wp-block-post-content > .alignwide.ai-surface:first-child,
.home .ai-home-main > .wp-block-post-content > .ai-hero-signal,
.home .ai-home-main > .wp-block-group.alignwide:first-child,
.home .ai-home-main > .alignwide.ai-surface:first-child,
.home .ai-hero-signal,
	.home .wp-block-post-content > .wp-block-group.alignwide:first-child,
	.home .wp-block-post-content > .alignwide.ai-surface:first-child,
	.home .wp-block-post-content > .ai-hero-signal {
		background-image:
			linear-gradient(
				90deg,
				rgba(20, 24, 47, 0.78) 0%,
				rgba(20, 24, 47, 0.42) 38%,
				rgba(20, 24, 47, 0.08) 100%
			),
			var(--ai-home-hero-image) !important;
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
	}

.ai-hero-signal .wp-block-heading,
.ai-hero-signal p,
.ai-hero-signal .wp-block-button__link,
.ai-hero-signal .wp-element-button {
	text-shadow:
		0 1px 2px rgba(20, 24, 47, 0.36),
		0 4px 10px rgba(20, 24, 47, 0.18);
}

.ai-section-label {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--indigo);
}

.ai-section-label.is-spot {
	color: var(--wp--preset--color--plum);
}

.ai-service-grid .has-cloud-background-color,
.ai-cta-panel {
	border: 1px solid rgba(32, 40, 104, 0.1);
	border-radius: 20px;
}

.ai-profile-photo {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--ai-shadow-soft);
}

.ai-profile-photo img {
	display: block;
	width: 100%;
	height: auto;
}

.ai-profile-link {
	margin: 0.85rem 0 0;
	font-size: 0.95rem;
}

.ai-profile-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.76);
	color: var(--wp--preset--color--indigo);
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(32, 40, 104, 0.08);
}

.ai-profile-link a:hover,
.ai-profile-link a:focus-visible {
	color: var(--wp--preset--color--plum);
}

.ai-profile-link__icon {
	display: inline-flex;
	width: 1rem;
	height: 1rem;
	flex: 0 0 1rem;
}

.ai-profile-link__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.site-footer .ai-profile-link a {
	background: rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--cloud);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: none;
}

.site-footer .ai-profile-link a:hover,
.site-footer .ai-profile-link a:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--sand);
}

.ai-service-grid .has-cloud-background-color {
	height: 100%;
	background: rgba(255, 255, 255, 0.76);
	box-shadow:
		inset 0 3px 0 rgba(138, 111, 143, 0.18),
		inset 0 0 0 1px rgba(232, 222, 210, 0.42);
}

.ai-quiet-text {
	color: rgba(20, 24, 47, 0.82);
}

.ai-contact-list a[href^="mailto:"] {
	display: inline-block;
	max-width: 100%;
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: normal;
	font-variant-numeric: tabular-nums;
}

.ai-contact-list p:has(a[href^="mailto:"]) {
	font-size: clamp(0.95rem, 1.8vw, 1rem);
}

.ai-spot-button .wp-element-button,
.ai-spot-button .wp-block-button__link {
	background: var(--wp--preset--color--plum);
	color: var(--wp--preset--color--cloud);
}

.wp-element-button,
.wp-block-button__link {
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		filter 180ms ease,
		background-color 180ms ease,
		color 180ms ease;
}

.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(32, 40, 104, 0.16);
	filter: brightness(1.04);
}

.site-header.is-style-ai-sticky-header,
header.wp-block-template-part,
.wp-site-blocks > header {
	position: sticky;
	top: var(--ai-header-offset);
	z-index: 1000;
	margin-bottom: 0;
	width: 100%;
	background: var(--ai-header-bg) !important;
	border-bottom: 1px solid var(--ai-header-border);
	backdrop-filter: blur(18px) saturate(145%);
	-webkit-backdrop-filter: blur(18px) saturate(145%);
	box-shadow: var(--ai-shadow-soft);
}

.site-header.is-style-ai-sticky-header::before,
header.wp-block-template-part::before,
.wp-site-blocks > header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.16) 0%,
		rgba(255, 255, 255, 0.04) 100%
	);
	pointer-events: none;
}

.site-header.is-style-ai-sticky-header > .alignwide,
header.wp-block-template-part > .alignwide,
.wp-site-blocks > header > .alignwide {
	position: relative;
	z-index: 1;
	overflow: visible;
}

.site-header.is-style-ai-sticky-header > .wp-block-group,
.site-header.is-style-ai-sticky-header > .alignwide,
header.wp-block-template-part > .wp-block-group,
header.wp-block-template-part > .alignwide,
.wp-site-blocks > header > .wp-block-group,
.wp-site-blocks > header > .alignwide {
	background: transparent !important;
}

	.site-header.is-style-ai-sticky-header .wp-block-site-logo img,
	.site-header.is-style-ai-sticky-header .custom-logo,
	header.wp-block-template-part .wp-block-site-logo img,
	header.wp-block-template-part .custom-logo,
	.wp-site-blocks > header .wp-block-site-logo img,
	.wp-site-blocks > header .custom-logo {
	max-height: 100px;
	width: auto;
}

.ai-brand-lockup {
	position: relative;
	gap: 0.7rem;
	align-items: center;
}

.ai-brand-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.05rem;
	min-width: 0;
	text-align: left;
}

.ai-brand {
	gap: 0.1em;
	font-size: clamp(1.25rem, 1.1rem + 0.35vw, 1.45rem);
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
}

.ai-brand strong {
	font-weight: 700;
}

.ai-brand span {
	font-weight: 400;
}

.ai-brand a {
	color: var(--wp--preset--color--indigo);
	text-decoration: none;
}

.ai-brand-tagline {
	margin: 0;
	font-size: 0.72rem;
	font-style: italic;
	letter-spacing: 0.03em;
	color: rgba(20, 24, 47, 0.54);
	text-align: left;
}

.site-header.is-style-ai-sticky-header .wp-block-navigation,
header.wp-block-template-part .wp-block-navigation,
.wp-site-blocks > header .wp-block-navigation {
	--navigation-layout-justification-setting: flex-end;
	font-size: 0.95rem;
}

.site-header .wp-block-navigation-item__content,
header.wp-block-template-part .wp-block-navigation-item__content,
.wp-site-blocks > header .wp-block-navigation-item__content {
	position: relative;
	transition:
		color 180ms ease,
		opacity 180ms ease,
		transform 180ms ease;
}

.site-header .wp-block-navigation-item__content:hover,
header.wp-block-template-part .wp-block-navigation-item__content:hover,
.wp-site-blocks > header .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--plum);
	opacity: 1;
	transform: translateY(-1px);
}

.site-header .wp-block-navigation-item__content::after,
header.wp-block-template-part .wp-block-navigation-item__content::after,
.wp-site-blocks > header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.18em;
	height: 1px;
	background: currentColor;
	opacity: 0;
	transform: scaleX(0.2);
	transform-origin: center;
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.site-header .wp-block-navigation-item__content:hover::after,
header.wp-block-template-part .wp-block-navigation-item__content:hover::after,
.wp-site-blocks > header .wp-block-navigation-item__content:hover::after,
.site-header .wp-block-navigation-item__content:focus-visible::after,
header.wp-block-template-part .wp-block-navigation-item__content:focus-visible::after,
.wp-site-blocks > header .wp-block-navigation-item__content:focus-visible::after {
	opacity: 0.35;
	transform: scaleX(1);
}

.site-footer {
	border-top: 1px solid var(--ai-header-border);
}

.site-footer {
	border-top-color: rgba(168, 176, 208, 0.2);
}

.site-footer a {
	color: var(--wp--preset--color--cloud);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	color: var(--wp--preset--color--sand);
}

.site-footer .wp-block-site-logo img,
.site-footer .custom-logo {
	max-height: 84px;
	width: auto;
}

.ai-footer-logo-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem;
	border-radius: 999px;
	background: rgba(248, 248, 248, 0.96);
	box-shadow:
		0 8px 22px rgba(0, 0, 0, 0.18),
		0 0 0 1px rgba(168, 176, 208, 0.2);
}

.ai-footer-brand,
.ai-footer-contact {
	max-width: 28rem;
}


body.admin-bar {
	--ai-header-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--ai-header-offset: 46px;
	}

	.site-header.is-style-ai-sticky-header > .alignwide,
	header.wp-block-template-part > .alignwide,
	.wp-site-blocks > header > .alignwide {
		flex-wrap: nowrap;
	}

	.ai-brand-lockup {
		gap: 0.45rem;
		min-width: 0;
	}

	.site-header.is-style-ai-sticky-header .wp-block-site-logo img,
	.site-header.is-style-ai-sticky-header .custom-logo,
	header.wp-block-template-part .wp-block-site-logo img,
	header.wp-block-template-part .custom-logo,
	.wp-site-blocks > header .wp-block-site-logo img,
	.wp-site-blocks > header .custom-logo {
		max-height: 42px;
	}

	.ai-brand {
		font-size: 1.05rem;
	}

	.site-header.is-style-ai-sticky-header .wp-block-navigation,
	header.wp-block-template-part .wp-block-navigation,
	.wp-site-blocks > header .wp-block-navigation {
		margin-left: auto;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open,
	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open,
	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		left: 0 !important;
		bottom: auto !important;
		width: 100% !important;
		height: auto !important;
		max-height: none !important;
		min-height: 0 !important;
		margin: 0 !important;
		box-sizing: border-box !important;
		background: rgba(20, 24, 47, 0.97) !important;
		color: var(--wp--preset--color--cloud) !important;
		padding: 1.25rem 1rem 1.5rem !important;
		overflow: hidden;
		z-index: 2000 !important;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		background: transparent !important;
		min-height: 0;
		padding-right: 0.75rem;
		padding-left: 0.75rem;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		box-sizing: border-box;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close,
	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close,
	.wp-site-blocks > header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		color: var(--wp--preset--color--cloud) !important;
	}

	.ai-mobile-fallback-nav {
		display: flex;
		flex-direction: column;
		gap: 0.85rem;
		margin-top: 0;
		width: 100%;
		padding-right: 0.85rem;
		box-sizing: border-box;
		align-items: flex-end;
	}

	.ai-mobile-fallback-link {
		color: #ffffff !important;
		font-weight: 600;
		font-size: 1.1rem;
		line-height: 1.35;
		padding: 0.2rem 0 0.2rem 1rem;
		text-decoration: none;
		text-align: right;
		max-width: 100%;
	}

	.site-header .wp-block-navigation__responsive-container-close svg,
	header.wp-block-template-part .wp-block-navigation__responsive-container-close svg,
	.wp-site-blocks > header .wp-block-navigation__responsive-container-close svg {
		fill: #ffffff !important;
		color: #ffffff !important;
	}

	.site-header .wp-block-navigation__responsive-container-close svg path,
	header.wp-block-template-part .wp-block-navigation__responsive-container-close svg path,
	.wp-site-blocks > header .wp-block-navigation__responsive-container-close svg path {
		fill: #ffffff !important;
		stroke: #ffffff !important;
	}
}

.wp-block-buttons.is-content-justification-left {
	align-items: center;
}

.wp-block-post-title a {
	text-decoration: none;
}

a {
	text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible,
.wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--preset--color--indigo);
	outline-offset: 3px;
}
