/* ==========================================================================
   LUNASTUDIOS v2.0.9 - PRODUCTION STYLES
   
   Naming:    BEM-influenced with .luna- namespace
   Ordering:  ITCSS (Settings -> Tools -> Generic -> Elements -> Objects -> Components -> Utilities)
   Standards: WordPress CSS Coding Standards
   Asset Check: /wp-content/themes/lunastudios/assets/css/custom.css
   ========================================================================== */

/* ==========================================================================
   01. SETTINGS - Custom Properties
   ========================================================================== */

:root {
	/* Easing curves */
	--luna-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--luna-ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
	--luna-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* Timing */
	--luna-duration-fast: 150ms;
	--luna-duration-base: 250ms;
	--luna-duration-slow: 400ms;

	/* Layout */
	--luna-header-height: 72px;
	--luna-admin-bar-offset: 0px;

	/* Glass surfaces (can't be in theme.json - they use rgba) */
	--luna-glass-bg: rgba(15, 15, 36, 0.6);
	--luna-glass-bg-hover: rgba(15, 15, 36, 0.8);
	--luna-glass-border: rgba(255, 255, 255, 0.06);
	--luna-glass-border-hover: rgba(255, 255, 255, 0.12);

	/* Accent rgba variants */
	--luna-indigo-10: rgba(99, 102, 241, 0.1);
	--luna-indigo-15: rgba(99, 102, 241, 0.15);
	--luna-indigo-20: rgba(99, 102, 241, 0.2);
	--luna-indigo-30: rgba(99, 102, 241, 0.3);
	--luna-indigo-40: rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   02. GENERIC - Resets & Baseline
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--luna-header-height) + 2rem);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-size-adjust: 100%;
}

body {
	overflow-x: hidden;
	position: relative;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

::selection {
	background-color: var(--luna-indigo-30);
	color: var(--wp--preset--color--text-primary);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--indigo);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   03. BACKGROUND EFFECTS - Constellations, Grain & Ambient Glow
   ========================================================================== */

/* Fixed constellation layer - visible behind page content */
.luna-theme::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	opacity: 0.65;
	background-image:
		radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
		radial-gradient(circle at 24% 32%, rgba(129, 140, 248, 0.75) 0 1px, transparent 1.8px),
		radial-gradient(circle at 38% 14%, rgba(34, 211, 238, 0.65) 0 1px, transparent 1.8px),
		radial-gradient(circle at 52% 28%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.6px),
		radial-gradient(circle at 68% 16%, rgba(167, 139, 250, 0.7) 0 1px, transparent 1.8px),
		radial-gradient(circle at 82% 34%, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.6px),
		radial-gradient(circle at 16% 68%, rgba(34, 211, 238, 0.58) 0 1px, transparent 1.8px),
		radial-gradient(circle at 34% 78%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.6px),
		radial-gradient(circle at 58% 72%, rgba(129, 140, 248, 0.65) 0 1px, transparent 1.8px),
		radial-gradient(circle at 76% 62%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.6px),
		url("data:image/svg+xml,%3Csvg width='1440' height='960' viewBox='0 0 1440 960' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23818cf8' stroke-opacity='.18' stroke-width='1'%3E%3Cpath d='M173 173 346 307 548 134 749 269 979 154 1181 326'/%3E%3Cpath d='M230 653 490 749 835 691 1080 806 1267 595'/%3E%3Cpath d='M346 307 490 749M749 269 835 691M979 154 1080 806'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.72'%3E%3Ccircle cx='173' cy='173' r='1.6'/%3E%3Ccircle cx='346' cy='307' r='1.4'/%3E%3Ccircle cx='548' cy='134' r='1.5'/%3E%3Ccircle cx='749' cy='269' r='1.4'/%3E%3Ccircle cx='979' cy='154' r='1.6'/%3E%3Ccircle cx='1181' cy='326' r='1.4'/%3E%3Ccircle cx='230' cy='653' r='1.5'/%3E%3Ccircle cx='490' cy='749' r='1.4'/%3E%3Ccircle cx='835' cy='691' r='1.5'/%3E%3Ccircle cx='1080' cy='806' r='1.4'/%3E%3Ccircle cx='1267' cy='595' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
	background-position:
		0 0,
		0 0,
		0 0,
		0 0,
		0 0,
		0 0,
		0 0,
		0 0,
		0 0,
		0 0,
		center top;
	background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat-y;
	background-size:
		420px 420px,
		520px 520px,
		460px 460px,
		580px 580px,
		500px 500px,
		620px 620px,
		480px 480px,
		560px 560px,
		640px 640px,
		540px 540px,
		1440px 960px;
	mask-image: radial-gradient(ellipse at 50% 20%, black 0%, rgba(0, 0, 0, 0.8) 42%, transparent 82%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 0%, rgba(0, 0, 0, 0.8) 42%, transparent 82%);
}

/* Subtle noise grain overlay */
.luna-theme::after {
	content: "";
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 1;
	opacity: 0.5;
	mix-blend-mode: overlay;
}

/* Ensure all content renders above grain */
.wp-site-blocks {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   04. HEADER - Sticky Glass Navigation
   ========================================================================== */

.luna-header {
	position: fixed;
	top: var(--luna-admin-bar-offset);
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--luna-header-height);
	display: flex;
	align-items: center;
	transition:
		background-color var(--luna-duration-slow) var(--luna-ease-out-expo),
		border-color var(--luna-duration-slow) var(--luna-ease-out-expo);
	border-bottom: 1px solid transparent;
}

.luna-header.is-scrolled {
	background: var(--luna-glass-bg);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom-color: var(--luna-glass-border);
}

/* Header inner container - uses WP layout classes */
.luna-header .wp-block-group {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	width: 100%;
}

/* Logo treatment */
.luna-header .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* Nav item hover underline */
.luna-header .wp-block-navigation-item a {
	position: relative;
	padding-block: 0.25rem;
}

.luna-header .wp-block-navigation-item a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--indigo);
	border-radius: 1px;
	transition: width var(--luna-duration-base) var(--luna-ease-out-expo);
}

.luna-header .wp-block-navigation-item a:hover::after,
.luna-header .wp-block-navigation-item.current-menu-item a::after {
	width: 100%;
}

/* CTA button in navigation */
.luna-header .wp-block-button .wp-block-button__link {
	padding: 0.625rem 1.5rem;
	font-size: var(--wp--preset--font-size--x-small);
}

/* Mobile overlay */
.luna-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--void);
}

.luna-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	font-size: var(--wp--preset--font-size--xx-large);
	font-family: var(--wp--preset--font-family--sora);
	font-weight: 600;
	color: var(--wp--preset--color--text-primary);
}


/* ==========================================================================
   05. SECTION PRIMITIVES
   ========================================================================== */

/* Eyebrow / label above headings */
.luna-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: var(--wp--preset--color--indigo);
	margin-block-end: var(--wp--preset--spacing--30);
}

.luna-eyebrow::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background-color: var(--wp--preset--color--indigo);
}

/* Gradient heading text */
.is-style-luna-gradient-text {
	background: linear-gradient(135deg, #818cf8 0%, #a78bfa 40%, #22d3ee 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Animated shimmer variant */
.luna-shimmer-text {
	background: linear-gradient(
		135deg,
		#818cf8 0%,
		#a78bfa 25%,
		#22d3ee 50%,
		#818cf8 75%,
		#a78bfa 100%
	);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: luna-shimmer 6s linear infinite;
}

@keyframes luna-shimmer {
	0% {
		background-position: 0% center;
	}

	100% {
		background-position: 200% center;
	}
}

/* ==========================================================================
   06. BUTTON STYLES
   ========================================================================== */

/* Base transition for all buttons */
.wp-block-button__link,
.wp-element-button {
	transition:
		background-color var(--luna-duration-base) ease,
		color var(--luna-duration-base) ease,
		transform var(--luna-duration-base) var(--luna-ease-out-expo),
		box-shadow var(--luna-duration-base) var(--luna-ease-out-expo);
	cursor: pointer;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.wp-block-button__link:active {
	transform: translateY(0);
}

/* Primary Glow - gradient background + glow on hover */
.is-style-luna-primary .wp-block-button__link {
	background: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--white);
	position: relative;
	overflow: hidden;
	z-index: 0;
}

.is-style-luna-primary .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
	opacity: 0;
	transition: opacity var(--luna-duration-base) ease;
	z-index: -1;
}

.is-style-luna-primary .wp-block-button__link:hover {
	box-shadow: 0 8px 30px var(--luna-indigo-40);
}

.is-style-luna-primary .wp-block-button__link:hover::before {
	opacity: 1;
}

/* Secondary Ghost - transparent with border */
.is-style-luna-secondary .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--text-secondary);
	border: 1px solid var(--luna-glass-border);
}

.is-style-luna-secondary .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--luna-glass-border-hover);
	color: var(--wp--preset--color--text-primary);
}

/* Text Link - no background at all */
.is-style-luna-text .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--text-secondary);
	padding-inline: 0;
	border-radius: 0;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 4px;
}

.is-style-luna-text .wp-block-button__link:hover {
	color: var(--wp--preset--color--text-primary);
	text-decoration-color: var(--wp--preset--color--indigo);
	transform: none;
	box-shadow: none;
}

/* ==========================================================================
   07. GLASS CARD BLOCK STYLES
   ========================================================================== */

/* Glass Card base */
.is-style-luna-glass-card {
	background: var(--luna-glass-bg);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid var(--luna-glass-border);
	border-radius: var(--wp--custom--border-radius--xl) !important;
	overflow: hidden;
}

/* Glass Card with hover interaction */
.is-style-luna-glass-card-hover {
	background: var(--luna-glass-bg);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid var(--luna-glass-border);
	border-radius: var(--wp--custom--border-radius--xl) !important;
	overflow: hidden;
	transition:
		border-color var(--luna-duration-base) ease,
		transform var(--luna-duration-slow) var(--luna-ease-out-expo),
		box-shadow var(--luna-duration-slow) var(--luna-ease-out-expo);
}

.is-style-luna-glass-card-hover:hover {
	border-color: var(--luna-glass-border-hover);
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px var(--luna-indigo-10);
}

/* Gradient top-bar on hover */
.is-style-luna-glass-card-hover::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--luna-duration-slow) var(--luna-ease-out-expo);
}

.is-style-luna-glass-card-hover:hover::before {
	transform: scaleX(1);
}

/* Bordered variant */
.is-style-luna-bordered {
	border: 1px solid var(--luna-glass-border);
	border-radius: var(--wp--custom--border-radius--xl) !important;
}

/* ==========================================================================
   08. HERO SECTION
   ========================================================================== */

.luna-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-block-start: calc(var(--luna-header-height) + var(--wp--preset--spacing--80));
	padding-block-end: var(--wp--preset--spacing--80);
}

/* Ambient radial glow */
.luna-hero::before {
	content: "";
	position: absolute;
	top: -30%;
	left: 50%;
	transform: translateX(-50%);
	width: 140%;
	height: 80%;
	background: radial-gradient(
		ellipse at center,
		rgba(99, 102, 241, 0.08) 0%,
		rgba(139, 92, 246, 0.04) 35%,
		transparent 70%
	);
	pointer-events: none;
	z-index: 0;
}

/* Decorative grid lines */
.luna-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
	background-size: 80px 80px;
	mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 60%);
	-webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 60%);
	pointer-events: none;
	z-index: 0;
}

/* Hero content stacking */
.luna-hero > * {
	position: relative;
	z-index: 1;
}

/* Availability badge */
.luna-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 1.25rem;
	background: var(--luna-indigo-10);
	border: 1px solid var(--luna-indigo-15);
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
}

/* Pulse dot */
.luna-pulse {
	position: relative;
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--success);
	border-radius: 50%;
}

.luna-pulse::after {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	background: var(--wp--preset--color--success);
	animation: luna-pulse-ring 2s ease-out infinite;
}

@keyframes luna-pulse-ring {

	0% {
		transform: scale(1);
		opacity: 0.5;
	}

	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}

/* Scroll indicator */
.luna-scroll-indicator {
	position: absolute;
	bottom: var(--wp--preset--spacing--60);
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	color: var(--wp--preset--color--text-tertiary);
	font-size: var(--wp--preset--font-size--x-small);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	animation: luna-float 3s ease-in-out infinite;
}

.luna-scroll-indicator::after {
	content: "";
	width: 1px;
	height: 40px;
	background: linear-gradient(180deg, var(--wp--preset--color--indigo), transparent);
}

@keyframes luna-float {

	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}

	50% {
		transform: translateX(-50%) translateY(8px);
	}
}

/* ==========================================================================
   09. SERVICE CARDS - Icon + Title + Description
   ========================================================================== */

.luna-service-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--luna-indigo-10);
	border: 1px solid var(--luna-indigo-15);
	border-radius: var(--wp--custom--border-radius--lg);
	flex-shrink: 0;
}

.luna-service-icon svg {
	width: 24px;
	height: 24px;
	color: var(--wp--preset--color--indigo);
	stroke-width: 1.5;
}

/* Feature list checkmarks */
.is-style-luna-check-list {
	list-style: none;
	padding-left: 0 !important;
}

.is-style-luna-check-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-block-end: 0.5rem;
}

.is-style-luna-check-list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--success);
	font-weight: 700;
	font-size: 0.875rem;
}

/* ==========================================================================
   10. PROCESS / TIMELINE SECTION
   ========================================================================== */

.luna-process-step {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: var(--wp--preset--spacing--40);
	position: relative;
}

.luna-step-number {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--indigo);
	color: var(--wp--preset--color--white);
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--sora);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

/* Connector line between steps */
.luna-process-step:not(:last-child) .luna-step-number::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: calc(100% + var(--wp--preset--spacing--50));
	background: linear-gradient(
		180deg,
		var(--wp--preset--color--indigo),
		var(--wp--preset--color--cosmic)
	);
}

/* ==========================================================================
   10.5 RESPONSIVE SECTION GRIDS
   ========================================================================== */

#services .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--wp--preset--spacing--40);
}

#services .wp-block-column {
	min-width: 0;
}

#services .wp-block-heading.has-x-large-font-size {
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
	line-height: 1.12;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}

@media (max-width: 960px) {

	#services .wp-block-columns {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   11. PROJECT CARDS
   ========================================================================== */

.luna-project-query {
	max-width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

.luna-project-query .wp-block-post-template {
	display: grid;
	grid-template-columns: minmax(0, 860px);
	justify-content: center;
	gap: var(--wp--preset--spacing--40);
}

.luna-project-query .wp-block-post {
	list-style: none;
	width: 100%;
}

.luna-project-card {
	position: relative;
	min-height: clamp(320px, 44vw, 520px);
	border-radius: var(--wp--custom--border-radius--xl);
	overflow: hidden;
	cursor: pointer;
}

.luna-project-card img {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.7s var(--luna-ease-out-expo);
}

.luna-project-card .wp-block-post-featured-image {
	height: 100%;
	margin: 0;
}

.luna-project-card .wp-block-post-featured-image img {
	display: block;
}

.luna-project-card:hover img {
	transform: scale(1.04);
}

.luna-project-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(6, 6, 14, 0.08) 0%,
		rgba(6, 6, 14, 0.28) 38%,
		rgba(6, 6, 14, 0.94) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: clamp(1.5rem, 3vw, var(--wp--preset--spacing--70));
	opacity: 1;
	transition: background var(--luna-duration-slow) var(--luna-ease-out-expo);
}

.luna-project-card:hover .luna-project-overlay,
.luna-project-card:focus-within .luna-project-overlay {
	background: linear-gradient(
		180deg,
		rgba(6, 6, 14, 0.02) 0%,
		rgba(6, 6, 14, 0.18) 34%,
		rgba(6, 6, 14, 0.96) 100%
	);
}

.luna-project-overlay h3 {
	color: var(--wp--preset--color--white);
	margin-block-end: 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.luna-project-overlay h3 a {
	color: inherit;
	text-decoration: none;
}

.luna-project-overlay p {
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	margin: 0;
}

.luna-project-overlay .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.luna-project-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block-end: 0.75rem;
}

.luna-project-terms a {
	display: inline-block;
	padding: 0.25rem 0.875rem;
	background: var(--luna-indigo-15);
	color: var(--wp--preset--color--indigo);
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--jetbrains-mono);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.luna-project-empty {
	max-width: 720px;
	margin-inline: auto;
	padding: var(--wp--preset--spacing--60);
	text-align: center;
}

.luna-project-empty p {
	max-width: 48ch;
	margin-inline: auto;
}


.luna-portfolio-proof-grid {
	max-width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

.luna-proof-card {
	padding: var(--wp--preset--spacing--40);
	background: rgba(15, 15, 36, 0.36);
}

.luna-proof-card h3 {
	margin-block-end: 0.5rem;
}

.luna-proof-card p {
	margin: 0;
}

/* ==========================================================================
   12. TESTIMONIAL CARDS
   ========================================================================== */

.luna-testimonial {
	position: relative;
}

.luna-testimonial-quote-mark {
	position: absolute;
	top: var(--wp--preset--spacing--40);
	right: var(--wp--preset--spacing--50);
	font-size: 5rem;
	line-height: 1;
	color: var(--wp--preset--color--indigo);
	opacity: 0.08;
	font-family: Georgia, "Times New Roman", serif;
	pointer-events: none;
}

.luna-stars {
	display: flex;
	gap: 0.125rem;
	color: #fbbf24;
	font-size: 1rem;
	margin-block-end: var(--wp--preset--spacing--30);
}

.luna-stars svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.luna-client-info {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	margin-block-start: var(--wp--preset--spacing--40);
}

.luna-client-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--luna-glass-border);
}

.luna-client-avatar-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 48px;
	background: var(--luna-indigo-15);
	color: var(--wp--preset--color--indigo);
	font-family: var(--wp--preset--font-family--sora);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.luna-client-name {
	font-family: var(--wp--preset--font-family--sora);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-primary);
	margin: 0;
	line-height: var(--wp--custom--line-height--snug);
}

.luna-client-role {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-tertiary);
	margin: 0;
	line-height: var(--wp--custom--line-height--snug);
}

/* ==========================================================================
   13. STATS BAR
   ========================================================================== */

.luna-stats-bar {
	max-width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

.luna-stats-grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(8.5rem, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.luna-stat {
	min-width: 0;
	text-align: center;
	padding: var(--wp--preset--spacing--40);
}

.luna-stat-number {
	font-family: var(--wp--preset--font-family--sora);
	font-size: clamp(2rem, 4vw, var(--wp--preset--font-size--4-x-large));
	font-weight: 800;
	line-height: var(--wp--custom--line-height--none);
	color: var(--wp--preset--color--text-primary);
	margin-block-end: var(--wp--preset--spacing--10);
	white-space: nowrap;
	overflow-wrap: normal;
	word-break: keep-all;
}

.luna-stat-number .luna-stat-accent {
	display: inline-block;
	background: linear-gradient(135deg, #818cf8, #22d3ee);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.luna-stat-label {
	max-width: 12ch;
	margin-inline: auto;
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-tertiary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-wrap: balance;
}

/* Divider between stats (vertical line) */
.luna-stat-divider {
	width: 1px;
	align-self: stretch;
	background: linear-gradient(
		180deg,
		transparent,
		var(--luna-glass-border),
		transparent
	);
}

@media (max-width: 760px) {

	.luna-stats-grid {
		grid-template-columns: repeat(2, minmax(8rem, 1fr));
	}
}

@media (max-width: 420px) {

	.luna-stats-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   14. CTA BANNER
   ========================================================================== */

.luna-cta-banner {
	position: relative;
	overflow: hidden;
}

/* Ambient glow behind CTA */
.luna-cta-banner::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	height: 120%;
	background: radial-gradient(
		ellipse at center,
		rgba(99, 102, 241, 0.1) 0%,
		transparent 60%
	);
	pointer-events: none;
}

/* ==========================================================================
   15. CONTACT FORM (compatible with WPForms / Gravity Forms / native)
   ========================================================================== */

/* Input base styles */
.luna-form input[type="text"],
.luna-form input[type="email"],
.luna-form input[type="tel"],
.luna-form input[type="url"],
.luna-form textarea,
.luna-form select,
.wpforms-form .wpforms-field input,
.wpforms-form .wpforms-field textarea,
.wpforms-form .wpforms-field select {
	background: var(--luna-glass-bg);
	border: 1px solid var(--luna-glass-border);
	border-radius: var(--wp--custom--border-radius--md);
	color: var(--wp--preset--color--text-primary);
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.875rem 1.25rem;
	width: 100%;
	transition:
		border-color var(--luna-duration-base) ease,
		box-shadow var(--luna-duration-base) ease;
	appearance: none;
}

.luna-form input:focus,
.luna-form textarea:focus,
.luna-form select:focus,
.wpforms-form .wpforms-field input:focus,
.wpforms-form .wpforms-field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--indigo);
	box-shadow: 0 0 0 3px var(--luna-indigo-15);
}

.luna-form input::placeholder,
.luna-form textarea::placeholder {
	color: var(--wp--preset--color--text-tertiary);
}

.luna-form label,
.wpforms-form .wpforms-field-label {
	font-family: var(--wp--preset--font-family--inter);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--text-secondary);
	margin-block-end: 0.5rem;
	display: block;
}

.luna-form textarea {
	min-height: 160px;
	resize: vertical;
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.luna-footer {
	border-top: 1px solid var(--luna-glass-border);
}

.luna-footer a {
	color: var(--wp--preset--color--text-tertiary);
	transition: color var(--luna-duration-base) ease;
}

.luna-footer a:hover {
	color: var(--wp--preset--color--text-primary);
}

/* Social icons in footer */
.luna-social-links {
	display: flex;
	gap: var(--wp--preset--spacing--20);
}

.luna-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--luna-glass-bg);
	border: 1px solid var(--luna-glass-border);
	color: var(--wp--preset--color--text-tertiary);
	transition:
		background-color var(--luna-duration-base) ease,
		border-color var(--luna-duration-base) ease,
		color var(--luna-duration-base) ease;
}

.luna-social-link:hover {
	background: var(--luna-indigo-10);
	border-color: var(--luna-indigo-20);
	color: var(--wp--preset--color--indigo);
}

.luna-social-link svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   17. BENTO GRID LAYOUT
   ========================================================================== */

.is-style-luna-bento-grid {
	display: grid !important;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--wp--preset--spacing--30);
}

.is-style-luna-bento-grid > *:nth-child(1) {
	grid-column: span 7;
}

.is-style-luna-bento-grid > *:nth-child(2) {
	grid-column: span 5;
}

.is-style-luna-bento-grid > *:nth-child(3) {
	grid-column: span 4;
}

.is-style-luna-bento-grid > *:nth-child(4) {
	grid-column: span 4;
}

.is-style-luna-bento-grid > *:nth-child(5) {
	grid-column: span 4;
}

@media (max-width: 781px) {

	.is-style-luna-bento-grid {
		grid-template-columns: 1fr;
	}

	.is-style-luna-bento-grid > * {
		grid-column: span 1 !important;
	}
}

/* ==========================================================================
   18. PRICING TABLE
   ========================================================================== */

.luna-pricing-columns {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
	max-width: min(100%, var(--wp--style--global--wide-size));
	margin-inline: auto;
}

.luna-pricing-columns .wp-block-column {
	min-width: 0;
}

.luna-pricing-card {
	position: relative;
	height: 100%;
}

.luna-pricing-card h3,
.luna-price {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.luna-pricing-card h3,
.luna-price {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.luna-pricing-card.is-featured {
	border-color: var(--luna-indigo-30);
	box-shadow: 0 24px 80px rgba(99, 102, 241, 0.16);
	transform: translateY(-0.5rem);
}

@media (max-width: 980px) {

	.luna-pricing-columns {
		grid-template-columns: 1fr;
		max-width: 32rem;
	}

	.luna-pricing-card.is-featured {
		transform: none;
	}
}


.luna-pricing-card.is-featured::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
}

.luna-pricing-badge {
	display: inline-flex;
	padding: 0.25rem 0.875rem;
	background: var(--luna-indigo-15);
	color: var(--wp--preset--color--indigo);
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--sora);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.luna-price {
	font-family: var(--wp--preset--font-family--sora);
	font-size: var(--wp--preset--font-size--4-x-large);
	font-weight: 800;
	color: var(--wp--preset--color--text-primary);
	line-height: var(--wp--custom--line-height--none);
}

.luna-price-period {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	color: var(--wp--preset--color--text-tertiary);
}

/* ==========================================================================
   19. 404 PAGE
   ========================================================================== */

.luna-404-code {
	font-family: var(--wp--preset--font-family--sora);
	font-size: clamp(6rem, 4rem + 10vw, 12rem);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(135deg, #818cf8 0%, #22d3ee 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	opacity: 0.3;
}

/* ==========================================================================
   20. SCROLL-TRIGGERED ANIMATIONS
   ========================================================================== */

.luna-animations-enabled .luna-animate {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.8s var(--luna-ease-out-expo),
		transform 0.8s var(--luna-ease-out-expo),
		filter 0.8s var(--luna-ease-out-expo);
}

.luna-animations-enabled .luna-animate.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger children */
.luna-animations-enabled .luna-stagger > * {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.6s var(--luna-ease-out-expo),
		transform 0.6s var(--luna-ease-out-expo);
}

.luna-animations-enabled .luna-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.luna-animations-enabled .luna-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.luna-animations-enabled .luna-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.luna-animations-enabled .luna-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.luna-animations-enabled .luna-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.luna-animations-enabled .luna-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Animation variants */
.luna-animations-enabled .luna-animate-fade-up    { transform: translateY(40px); }
.luna-animations-enabled .luna-animate-fade-down  { transform: translateY(-30px); }
.luna-animations-enabled .luna-animate-fade-left  { transform: translateX(40px); }
.luna-animations-enabled .luna-animate-fade-right { transform: translateX(-40px); }
.luna-animations-enabled .luna-animate-scale-up   { transform: scale(0.95); }
.luna-animations-enabled .luna-animate-blur-in    { filter: blur(10px); transform: translateY(15px); }

.luna-animations-enabled .luna-animate-fade-up.is-visible,
.luna-animations-enabled .luna-animate-fade-down.is-visible,
.luna-animations-enabled .luna-animate-fade-left.is-visible,
.luna-animations-enabled .luna-animate-fade-right.is-visible {
	transform: translate(0);
}

.luna-animations-enabled .luna-animate-scale-up.is-visible {
	transform: scale(1);
}

.luna-animations-enabled .luna-animate-blur-in.is-visible {
	filter: blur(0);
	transform: translateY(0);
}

/* ==========================================================================
   21. ACCESSIBILITY - Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.luna-animate,
	.luna-stagger > * {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
		transition: none !important;
	}

	.luna-shimmer-text {
		animation: none;
	}

	.luna-pulse::after {
		animation: none;
	}

	.luna-scroll-indicator {
		animation: none;
	}
}

/* ==========================================================================
   22. PRINT STYLES
   ========================================================================== */

@media print {

	.luna-header,
	.luna-footer,
	.luna-scroll-indicator,
	.cursor-glow,
	.luna-cta-banner {
		display: none !important;
	}

	body,
	.luna-theme {
		background: white !important;
		color: black !important;
	}

	.luna-theme::after {
		display: none !important;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #666;
	}

	.is-style-luna-gradient-text,
	.luna-shimmer-text {
		-webkit-text-fill-color: black !important;
		color: black !important;
		background: none !important;
	}
}

/* ==========================================================================
   23. WORDPRESS ADMIN BAR COMPAT
   ========================================================================== */

.admin-bar .luna-header {
	--luna-admin-bar-offset: 32px;
	top: var(--luna-admin-bar-offset);
}

@media (max-width: 782px) {

	.admin-bar .luna-header {
		--luna-admin-bar-offset: 46px;
	}
}

@media (max-width: 600px) {

	.admin-bar .luna-header {
		--luna-admin-bar-offset: 0px;
	}
}

/* ==========================================================================
   24. IMAGE GLOW BLOCK STYLE
   ========================================================================== */

.is-style-luna-glow {
	position: relative;
}

.is-style-luna-glow::after {
	content: "";
	position: absolute;
	inset: 10%;
	background: radial-gradient(
		ellipse at center,
		rgba(99, 102, 241, 0.2) 0%,
		transparent 70%
	);
	filter: blur(40px);
	z-index: -1;
	pointer-events: none;
}
