/* Section: hero. Tokens only; logical properties only. */
.s-hero {
	position: relative;
	padding-block: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--surface-alt);
	overflow: hidden;
	isolation: isolate;
}
.s-hero__inner {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
}
.s-hero__title {
	font-size: var(--wp--preset--font-size--xx-large);
	margin-block-end: var(--wp--preset--spacing--20);
	/* A hero title is often a name: fill the first line before breaking, as a logo writes it, instead of balancing the lines
	   (which can split a name in two). */
	text-wrap: pretty;
}
/* On a phone a three- or four-word Arabic title at xx-large runs to three lines and can leave one word alone: one size down. */
@media (max-width: 599px) {
	.s-hero__title { font-size: var(--wp--preset--font-size--x-large); }
}
.s-hero__text {
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--muted);
	max-inline-size: 38em;
}
.s-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--30);
}
.s-hero__media img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--large);
	box-shadow: var(--wp--custom--shadow--medium);
}
@media (min-width: 900px) {
	.s-hero--split .s-hero__inner { grid-template-columns: 1.1fr 1fr; }
	.s-hero { padding-block: var(--wp--preset--spacing--60); }
}
.s-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 var(--wp--preset--spacing--20);
	padding: 0.3rem 0.9rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--custom--tint--lime-soft);
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--weight--heading);
}
.s-hero__eyebrow-dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent); }
.s-hero__points { list-style: none; margin: var(--wp--preset--spacing--20) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.s-hero__points li { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: var(--wp--custom--weight--strong); }
.s-hero__points .icon { color: var(--wp--preset--color--primary); inline-size: 1.1em; block-size: 1.1em; }

/* centred */
.s-hero--center .s-hero__content {
	text-align: center;
	margin-inline: auto;
	max-inline-size: 48rem;
}
.s-hero--center .s-hero__text { margin-inline: auto; }
.s-hero--center :is(.s-hero__actions, .s-hero__points) { justify-content: center; }

/* text over the image */
.s-hero--cover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	min-block-size: min(80vh, 44rem);
	display: grid;
	align-items: end;
}
.s-hero__bg { position: absolute; inset: 0; }
.s-hero__bg-img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.s-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
}
.s-hero--cover .s-hero__inner { position: relative; }
.s-hero--cover .s-hero__title,
.s-hero--cover .s-hero__text { color: var(--wp--preset--color--surface); }
.s-hero--cover .btn--ghost { color: var(--wp--preset--color--surface); border-color: currentColor; }

/* ---------- dark: the night band, the text beside floating cards ---------- */
.s-hero--dark {
	background: var(--wp--custom--gradient--night);
	color: var(--wp--preset--color--primary-contrast);
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}
.s-hero--dark .s-hero__title { color: var(--wp--preset--color--primary-contrast); font-size: clamp(2rem, 1.2rem + 2.4vw, 3.3rem); line-height: 1.2; text-wrap: balance; }
html[lang^="ar"] .s-hero--dark .s-hero__title { line-height: 1.45; }
@media (max-width: 599px) {
	.s-hero--dark .s-hero__title { font-size: var(--wp--preset--font-size--x-large); }
}
.s-hero--dark .s-hero__text { color: rgba(255, 255, 255, 0.84); }
.s-hero--dark .s-hero__eyebrow { background: rgba(155, 225, 93, 0.14); color: var(--wp--custom--tint--lime-bright); border: 1px solid rgba(155, 225, 93, 0.3); }
.s-hero--dark .s-hero__points .icon { color: var(--wp--custom--tint--lime-bright); }
.s-hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.s-hero__glow span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.s-hero__glow span:first-child { inline-size: 26rem; block-size: 26rem; inset-block-start: -8rem; inset-inline-end: -6rem; background: rgba(108, 197, 26, 0.35); animation: hero-drift 14s ease-in-out infinite alternate; }
.s-hero__glow span:last-child { inline-size: 22rem; block-size: 22rem; inset-block-end: -10rem; inset-inline-start: -6rem; background: rgba(31, 179, 122, 0.4); animation: hero-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes hero-drift { from { transform: translate(0, 0); } to { transform: translate(3rem, 2rem); } }
@media (min-width: 900px) {
	.s-hero--dark .s-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--wp--preset--spacing--50); }
	.s-hero--dark.s-hero--solo .s-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.s-hero--dark { padding-block: var(--wp--preset--spacing--60); }
}
.s-hero--dark.s-hero--solo .s-hero__content { text-align: center; margin-inline: auto; max-inline-size: 50rem; }
.s-hero--dark.s-hero--solo :is(.s-hero__actions, .s-hero__points) { justify-content: center; }
.s-hero--dark.s-hero--solo .s-hero__text { margin-inline: auto; }

/* the floating cards: an illustrative picture drawn from the fields */
.s-hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; min-block-size: 22rem; }
.s-hero__orb {
	position: absolute;
	inline-size: min(22rem, 80%);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(155, 225, 93, 0.5), rgba(31, 179, 122, 0.22) 45%, transparent 70%);
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.s-hero__orb::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.16); animation: hero-spin 40s linear infinite; }
@keyframes hero-spin { to { transform: rotate(360deg); } }
.s-hero__visual-label { position: relative; padding: 0.15rem 0.7rem; border-radius: var(--wp--custom--radius--pill); border: 1px dashed rgba(255, 255, 255, 0.5); font-size: 0.8rem; font-weight: var(--wp--custom--weight--strong); color: rgba(255, 255, 255, 0.86); z-index: 2; }
.s-hero__cards { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; inline-size: min(100%, 24rem); }
.s-hero__card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--wp--preset--color--ink);
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55);
	animation: hero-float 6s ease-in-out infinite;
	animation-delay: calc(var(--i) * -1.4s);
}
.s-hero__card:nth-child(even) { margin-inline-start: 2.5rem; }
.s-hero__card:nth-child(3n) { margin-inline-start: 1rem; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.s-hero__card-icon { display: grid; place-items: center; inline-size: 2.6rem; block-size: 2.6rem; flex: none; border-radius: 12px; background: var(--wp--custom--gradient--brand); color: var(--wp--preset--color--primary-contrast); }
.s-hero__card:nth-child(2) .s-hero__card-icon { background: var(--wp--custom--gradient--lime); color: var(--wp--preset--color--accent-contrast); }
.s-hero__card-body { display: flex; flex-direction: column; min-inline-size: 0; line-height: 1.45; }
.s-hero__card-body strong { font-size: 0.98rem; }
.s-hero__card-body span { font-size: 0.86rem; color: var(--wp--preset--color--muted); }
@media (max-width: 599px) {
	.s-hero__visual { min-block-size: 0; }
	.s-hero__card:nth-child(n) { margin-inline-start: 0; }
}
