/* ==========================================================================
   Arise Solvx Technology — progressive-enhancement CSS
   Everything expressible in theme.json lives there. This file only
   handles what theme.json cannot: keyframe animation, orbital motion,
   sticky header transition, and a few structural helpers.
   ========================================================================== */

/* ---------- Sticky header, transparent-over-hero → solid on scroll ------- */
.arise-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.arise-header.is-scrolled {
	background-color: rgba(11, 31, 77, 0.96);
	border-bottom-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 24px rgba(11, 31, 77, 0.12);
}

body.has-light-header .arise-header.is-scrolled {
	background-color: rgba(255, 255, 255, 0.97);
	border-bottom-color: var(--wp--preset--color--border-subtle);
}

/* ---------- Section background rhythm (brief section 31) ----------------- */
.arise-section--dark {
	background-color: var(--wp--preset--color--deep-navy);
	color: #ffffff;
}
.arise-section--dark h1,
.arise-section--dark h2,
.arise-section--dark h3 {
	color: #ffffff;
}
.arise-section--soft {
	background-color: var(--wp--preset--color--light-background);
}

/* ---------- Hero orbital / particle motion (brief section 10) ------------ */
.arise-hero {
	position: relative;
	overflow: hidden;
}

.arise-hero__particles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.arise-hero__node {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--electric-cyan);
	opacity: 0.55;
	filter: blur(0.2px);
	animation-name: arise-float;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

@keyframes arise-float {
	0%   { transform: translateY(0) translateX(0); opacity: 0.25; }
	50%  { transform: translateY(-18px) translateX(6px); opacity: 0.7; }
	100% { transform: translateY(0) translateX(0); opacity: 0.25; }
}

.arise-hero__orbit {
	position: absolute;
	border: 1px solid rgba(0, 200, 232, 0.25);
	border-radius: 50%;
	pointer-events: none;
}

.arise-hero.is-animated .arise-hero__orbit {
	animation: arise-spin 40s linear infinite;
}

@keyframes arise-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* Users with reduced-motion get the full layout with zero motion. */
@media (prefers-reduced-motion: reduce) {
	.arise-hero__node,
	.arise-hero__orbit {
		animation: none !important;
	}
}
.arise-hero.is-static .arise-hero__node {
	display: none;
}

/* ---------- Solution / Industry interactive panels (brief section 13) ---- */
.arise-solution-item {
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	transition: background-color 0.2s ease;
}
.arise-solution-item:hover,
.arise-solution-item:focus-within {
	background-color: var(--wp--preset--color--light-background);
}
.arise-solution-item__detail {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}
.arise-solution-item:hover .arise-solution-item__detail,
.arise-solution-item:focus-within .arise-solution-item__detail {
	grid-template-rows: 1fr;
}
.arise-solution-item__detail > div {
	overflow: hidden;
}

/* ---------- Focus visibility (accessibility, brief section 42) ----------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--wp--preset--color--electric-cyan);
	outline-offset: 2px;
}

/* ---------- Contact form (brief section 26) ------------------------------ */
.arise-contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	color: var(--wp--preset--color--deep-navy);
}
.arise-contact-form input,
.arise-contact-form select,
.arise-contact-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--border-subtle);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	margin-bottom: 1.25rem;
	background: #fff;
}
.arise-contact-form input:focus,
.arise-contact-form select:focus,
.arise-contact-form textarea:focus {
	border-color: var(--wp--preset--color--primary-blue);
}

/* ---------- Skip link (accessibility) ------------------------------------ */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	z-index: 999;
	background: var(--wp--preset--color--deep-navy);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 4px;
}
.skip-link:focus {
	left: 1rem;
	top: 1rem;
}
