/* ================================================================
   Remote Hive — Creative Hero Section
   BEM: rh-creativehero-*
   Mobile-first responsive: 480→768→1024→1280+
   Colours via CSS custom properties (set in enqueue.php)
   ================================================================ */

/* ── Section wrapper ── */
.rh-creativehero {
	--rh-creativehero-bg: #0c1e2b;
	--rh-creativehero-accent1: #7ec8e3;
	--rh-creativehero-accent2: #88d8b0;
	--rh-creativehero-cloud: #d4f1f9;
	--rh-creativehero-spider-red: #e32832;
	--rh-creativehero-spider-blue: #1b1676;
	--rh-creativehero-spider-dark: #140243;

	position: relative;
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--rh-creativehero-bg);
}

/* ================================================================
   CANVAS — wavy background
   ================================================================ */
.rh-creativehero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	will-change: contents;
}

/* ================================================================
   SPIDER-MAN — CSS art, top-center
   ================================================================ */
.rh-creativehero__spider {
	position: absolute;
	top: 0;
	right: 50%;
	transform: translateX(50%);
	z-index: 5;
	pointer-events: none;
}

.rh-creativehero__spider-container {
	position: relative;
	font-size: clamp(7px, 1.5vw, 18px);
}

/* Rope + swing */
.rh-creativehero__spider-rope {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 0.15em;
	margin: 0 auto;
	background-color: #fff;
	height: 10em;
	animation: rh-creativehero-swing 2s infinite;
	transform-origin: top center;
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

@keyframes rh-creativehero-swing {
	0%, 100% { transform: rotate(0deg); }
	25%      { transform: rotate(3deg); }
	75%      { transform: rotate(-3deg); }
}

/* Legs */
.rh-creativehero__spider-legs {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	height: 1.12em;
	width: 7.5em;
	background-color: transparent;
	box-shadow:
		0 0 0 0.12em var(--rh-creativehero-spider-dark),
		0 0 0 1.06em var(--rh-creativehero-spider-blue),
		0 0 0 1.18em var(--rh-creativehero-spider-dark);
	top: 10em;
	border-radius: 3.12em;
}

/* Boots */
.rh-creativehero__spider-boot {
	height: 1.25em;
	width: 2.5em;
	background-color: var(--rh-creativehero-spider-red);
	position: absolute;
	border: 0.12em solid var(--rh-creativehero-spider-dark);
	bottom: 1.12em;
}

.rh-creativehero__spider-boot--left  { left: 1em; }
.rh-creativehero__spider-boot--right { transform: rotateY(180deg); left: 3.81em; }

.rh-creativehero__spider-boot::before {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border-bottom: 1.12em solid var(--rh-creativehero-spider-dark);
	border-left: 1.18em solid transparent;
	bottom: 1.31em;
	left: 1.46em;
}

.rh-creativehero__spider-boot::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border-bottom: 1.12em solid var(--rh-creativehero-spider-red);
	border-left: 1em solid transparent;
	right: 0;
	top: -0.93em;
}

/* Costume */
.rh-creativehero__spider-costume {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	height: 6.25em;
	width: 5.62em;
	background: linear-gradient(
		to right,
		var(--rh-creativehero-spider-blue) 20%,
		var(--rh-creativehero-spider-red) 20%,
		var(--rh-creativehero-spider-red) 80%,
		var(--rh-creativehero-spider-blue) 80%
	);
	border: 0.12em solid var(--rh-creativehero-spider-dark);
	top: 12.25em;
}

/* Emblem */
.rh-creativehero__spider-emblem {
	height: 1.87em;
	width: 0.93em;
	background-color: var(--rh-creativehero-spider-dark);
	border-radius: 45%;
	position: absolute;
	transform: translate(-50%, -50%);
	top: calc(50% + 0.93em);
	left: 50%;
}

.rh-creativehero__spider-emblem-s1,
.rh-creativehero__spider-emblem-s3 {
	height: 7.5em;
	width: 2.5em;
	border-radius: 0 0 1.37em 1.37em;
	border-bottom: 0.12em solid var(--rh-creativehero-spider-dark);
	position: absolute;
	left: 50%;
}

.rh-creativehero__spider-emblem-s2,
.rh-creativehero__spider-emblem-s4 {
	height: 7.5em;
	width: 3.12em;
	border-radius: 0 0 1.56em 1.56em;
	border-bottom: 0.12em solid var(--rh-creativehero-spider-dark);
	position: absolute;
	left: 50%;
}

.rh-creativehero__spider-emblem-s1 { transform: translateX(-50%); bottom: 1.43em; }
.rh-creativehero__spider-emblem-s2 { transform: translateX(-50%); bottom: 0.93em; }
.rh-creativehero__spider-emblem-s3 { transform: translateX(-50%) rotateX(180deg); top: 1.43em; }
.rh-creativehero__spider-emblem-s4 { transform: translateX(-50%) rotateX(180deg); top: 0.93em; }

/* Belt */
.rh-creativehero__spider-belt {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	height: 0.43em;
	width: 5.87em;
	background-color: var(--rh-creativehero-spider-red);
	border: 0.12em solid var(--rh-creativehero-spider-dark);
	top: -0.12em;
}

/* Hands */
.rh-creativehero__spider-hand {
	height: 8.12em;
	background: linear-gradient(
		var(--rh-creativehero-spider-red) 4.6em,
		var(--rh-creativehero-spider-dark) 4.6em,
		var(--rh-creativehero-spider-dark) 4.75em,
		var(--rh-creativehero-spider-blue) 4.75em,
		var(--rh-creativehero-spider-blue) 8.12em
	);
	width: 1.12em;
	border: 0.12em solid var(--rh-creativehero-spider-dark);
	border-radius: 1.25em;
	position: absolute;
	transform-origin: bottom;
	bottom: -0.12em;
}

.rh-creativehero__spider-hand--right { right: -0.75em; transform: rotate(-22deg); }
.rh-creativehero__spider-hand--left  { left: -0.75em; transform: rotate(22deg); }

/* Neck */
.rh-creativehero__spider-neck {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	height: 0.37em;
	width: 1.25em;
	background-color: var(--rh-creativehero-spider-red);
	bottom: -0.62em;
	border: 0.12em solid var(--rh-creativehero-spider-dark);
}

/* Mask */
.rh-creativehero__spider-mask {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	height: 4.65em;
	width: 4.06em;
	background-color: var(--rh-creativehero-spider-red);
	border-radius: 50% 50% 50% 50% / 54% 54% 46% 46%;
	border: 0.12em solid var(--rh-creativehero-spider-dark);
	top: 6.56em;
}

/* Eyes */
.rh-creativehero__spider-eye {
	height: 0.68em;
	width: 1.37em;
	background-color: #fff;
	border-radius: 1.37em 1.37em 0 0;
	border: 0.12em solid var(--rh-creativehero-spider-dark);
	position: absolute;
	top: 2.1em;
}

.rh-creativehero__spider-eye--left  { left: 0.3em; }
.rh-creativehero__spider-eye--right { right: 0.3em; }

/* Cover (web thread above mask) */
.rh-creativehero__spider-cover {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	height: 3.12em;
	width: 0.15em;
	background-color: #fff;
	bottom: 8.12em;
}

/* ================================================================
   CLOUDS — soft animated bottom layer
   ================================================================ */
.rh-creativehero__clouds {
	position: absolute;
	width: 100%;
	height: 40%;
	bottom: 0;
	left: 0;
	z-index: 4;
	overflow: hidden;
	pointer-events: none;
}

.rh-creativehero__cloud {
	position: absolute;
	background: var(--rh-creativehero-cloud);
	border-radius: 50%;
	opacity: 0.18;
	animation: rh-creativehero-clouds linear infinite;
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.rh-creativehero__cloud::before,
.rh-creativehero__cloud::after {
	content: "";
	position: absolute;
	background: var(--rh-creativehero-cloud);
	border-radius: 50%;
}

.rh-creativehero__cloud::before { width: 60%; height: 60%; top: -30%; left: 10%; }
.rh-creativehero__cloud::after  { width: 40%; height: 40%; top: -20%; left: 50%; }

.rh-creativehero__cloud--1 { width: 100px; height: 60px; top: 10%;  left: 1400px; animation-duration: 8s; }
.rh-creativehero__cloud--2 { width: 150px; height: 80px; top: 30%;  left: 1600px; animation-duration: 12s; }
.rh-creativehero__cloud--3 { width: 80px;  height: 50px; top: 55%;  left: 2000px; animation-duration: 15s; }
.rh-creativehero__cloud--4 { width: 120px; height: 70px; top: 70%;  left: 1100px; animation-duration: 10s; }
.rh-creativehero__cloud--5 { width: 170px; height: 50px; top: 45%;  left: 1500px; animation-duration: 7s; }
.rh-creativehero__cloud--6 { width: 90px;  height: 55px; top: 85%;  left: 1800px; animation-duration: 9s;  opacity: 0.12; }
.rh-creativehero__cloud--7 { width: 130px; height: 65px; top: 20%;  left: 1200px; animation-duration: 11s; opacity: 0.1; }

@keyframes rh-creativehero-clouds {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-2500px); }
}

/* ================================================================
   CONTENT — centred text + CTAs
   ================================================================ */
.rh-creativehero__content {
	position: relative;
	z-index: 10;
	text-align: center;
	max-width: 800px;
	padding: 2rem 1.25rem;
}

/* Badge */
.rh-creativehero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(126, 200, 227, 0.12);
	border: 1px solid rgba(126, 200, 227, 0.25);
	color: var(--rh-creativehero-accent1);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.5rem 1.25rem;
	border-radius: 100px;
	margin-bottom: 1.5rem;
	animation: rh-creativehero-fadeInUp 0.8s ease-out both;
}

.rh-creativehero__badge-dot {
	width: 6px;
	height: 6px;
	background: var(--rh-creativehero-accent1);
	border-radius: 50%;
	animation: rh-creativehero-pulse 1.5s ease-in-out infinite;
}

/* H1 Heading — typography scale */
.rh-creativehero__heading {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
	animation: rh-creativehero-fadeInUp 0.8s ease-out 0.15s both;
}

/* Subheading / Subtitle */
.rh-creativehero__subheading {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.65;
	margin: 0 auto 2rem;
	max-width: 600px;
	animation: rh-creativehero-fadeInUp 0.8s ease-out 0.3s both;
}

/* CTA Group */
.rh-creativehero__cta-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	animation: rh-creativehero-fadeInUp 0.8s ease-out 0.45s both;
}

/* CTA Buttons */
.rh-creativehero__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 2rem;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 15px;
	font-weight: 600;
	border-radius: 100px;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.rh-creativehero__cta--primary {
	background: linear-gradient(135deg, var(--rh-creativehero-accent1), var(--rh-creativehero-accent2));
	color: #fff;
	border: 2px solid transparent;
}

.rh-creativehero__cta--primary:hover,
.rh-creativehero__cta--primary:focus,
.rh-creativehero__cta--primary:active,
.rh-creativehero__cta--primary:visited {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(126, 200, 227, 0.35);
}

.rh-creativehero__cta--secondary {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.rh-creativehero__cta--secondary:hover,
.rh-creativehero__cta--secondary:focus,
.rh-creativehero__cta--secondary:active,
.rh-creativehero__cta--secondary:visited {
	color: #fff;
	border-color: #fff;
	transform: translateY(-2px);
}

.rh-creativehero__cta-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.rh-creativehero__cta--primary:hover .rh-creativehero__cta-icon {
	transform: translateX(4px);
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes rh-creativehero-fadeInUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes rh-creativehero-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.5; transform: scale(0.8); }
}

/* ================================================================
   RESPONSIVE — Mobile Large (480–767px)
   ================================================================ */
@media (min-width: 480px) {
	.rh-creativehero__heading {
		font-size: 38px;
	}
	.rh-creativehero__subheading {
		font-size: 17px;
	}
	.rh-creativehero__badge {
		font-size: 12px;
	}
	.rh-creativehero__cta {
		font-size: 15px;
	}
}

/* ================================================================
   RESPONSIVE — Tablet (768–1023px)
   ================================================================ */
@media (min-width: 768px) {
	.rh-creativehero__content {
		padding: 2rem 1.25rem;
	}
	.rh-creativehero__heading {
		font-size: 46px;
	}
	.rh-creativehero__subheading {
		font-size: 19px;
	}
	.rh-creativehero__badge {
		font-size: 13px;
	}
	.rh-creativehero__cta {
		font-size: 16px;
	}
	.rh-creativehero__cta-group {
		flex-direction: row;
	}
}

/* ================================================================
   RESPONSIVE — Laptop (1024–1279px)
   ================================================================ */
@media (min-width: 1024px) {
	.rh-creativehero__heading {
		font-size: 56px;
	}
	.rh-creativehero__subheading {
		font-size: 20px;
	}
}

/* ================================================================
   RESPONSIVE — Desktop (1280px+)
   ================================================================ */
@media (min-width: 1280px) {
	.rh-creativehero__heading {
		font-size: 64px;
	}
	.rh-creativehero__subheading {
		font-size: 22px;
		line-height: 1.8;
	}
	.rh-creativehero__badge {
		font-size: 14px;
	}
	.rh-creativehero__cta {
		font-size: 16px;
	}
}

/* ================================================================
   MOBILE — stack CTAs + performance optimizations (≤767px)
   ================================================================ */
@media (max-width: 767px) {
	.rh-creativehero__content {
		padding: 6rem 1rem 4rem;
	}
	.rh-creativehero__cta-group {
		flex-direction: column;
	}
	.rh-creativehero__cta {
		width: 100%;
		justify-content: center;
	}

	/* ── Hide extra clouds on mobile (keep only 4) ── */
	.rh-creativehero__cloud--5,
	.rh-creativehero__cloud--6,
	.rh-creativehero__cloud--7 {
		display: none;
	}

	/* ── Slower cloud animation = fewer repaints ── */
	.rh-creativehero__cloud--1 { animation-duration: 14s; }
	.rh-creativehero__cloud--2 { animation-duration: 18s; }
	.rh-creativehero__cloud--3 { animation-duration: 22s; }
	.rh-creativehero__cloud--4 { animation-duration: 16s; }

	/* ── Pause Spider-Man swing on mobile ── */
	.rh-creativehero__spider-rope {
		animation: none;
	}

	/* ── Softer canvas on mobile (blur handled in JS) ── */
	.rh-creativehero__canvas {
		opacity: 0.7;
	}
}

/* ================================================================
   REDUCED MOTION — accessibility + low-power / battery saver
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
	.rh-creativehero__cloud {
		animation: none !important;
	}
	.rh-creativehero__spider-rope {
		animation: none !important;
	}
	.rh-creativehero__canvas {
		display: none;
	}
	.rh-creativehero__badge,
	.rh-creativehero__heading,
	.rh-creativehero__subheading,
	.rh-creativehero__cta-group {
		animation: none !important;
		opacity: 1;
		transform: none;
	}
	.rh-creativehero__badge-dot {
		animation: none !important;
		opacity: 1;
	}
}