/*
 * digiloom: home hero.
 * Source: Figma Make `Home.tsx` section 1 — a min-85vh dark slab with a rounded
 * 24px radius, badge, gradient-accented headline, lead and CTA row.
 */

.digiloom-hero {
	background-color: rgba(15, 23, 42, 0.95);
	border: 1px solid rgba(30, 41, 59, 0.5);
	border-radius: var(--wp--custom--radius--xl);
	box-shadow: var(--wp--preset--shadow--deep);
	margin-bottom: 64px;
	min-height: 65vh;
	overflow: hidden;
	padding: 80px 32px 96px;
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (min-width: 782px) {

	.digiloom-hero {
		padding: 80px 64px 96px;
	}
}

/*
 * The content column: 1024px centred in the slab, with everything inside it
 * left-aligned. The prototype's `max-w-5xl mx-auto` + `md:text-left`.
 */
.digiloom-hero__inner {
	margin-inline: auto;
	max-width: 1024px;
	width: 100%;
}

/* Eyebrow badge ------------------------------------------------------ */

.digiloom-hero__badge {
	align-items: center;
	background-color: rgba(99, 102, 241, 0.1);
	border: 1px solid rgba(99, 102, 241, 0.2);
	border-radius: var(--wp--custom--radius--full);
	color: var(--wp--preset--color--indigo-pale);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: var(--wp--custom--font-weight--semi-bold);
	gap: 8px;
	margin-bottom: 32px;
	padding: 8px 16px;
	width: auto;
}

/* Sparkles glyph, decorative. */
.digiloom-hero__badge::before {
	background-color: var(--wp--preset--color--pink-bright);
	content: "";
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Headline ----------------------------------------------------------- */

.digiloom-hero__title {
	color: var(--wp--preset--color--white);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin-bottom: 24px;
	max-width: 20ch;
}

/*
 * The gradient word. `mark` keeps it a real, editable inline element in the
 * block editor rather than a nested block or raw HTML.
 */
.digiloom-hero__title .digiloom-gradient-text,
mark.digiloom-gradient-text {
	background-color: transparent;
	background-image: var(--wp--custom--brand--gradient-light);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding: 0;
}

/* Lead + actions ----------------------------------------------------- */

.digiloom-hero__lead {
	color: var(--wp--preset--color--slate-light);
	font-size: clamp(20px, 2.2vw, 24px);
	font-weight: var(--wp--custom--font-weight--light);
	line-height: var(--wp--custom--line-height--body);
	margin-bottom: 40px;
	max-width: 42rem;
}

.digiloom-hero__actions {
	gap: 16px;
}

.digiloom-hero__note {
	color: var(--wp--preset--color--slate-muted);
	font-size: var(--wp--preset--font-size--xx-small);
	margin: 0;
	padding-inline: 16px;
}

/* Mail button — icon supplied by CSS so the label stays editable text. */
.digiloom-button--mail .wp-block-button__link {
	align-items: center;
	box-shadow: 0 10px 15px -3px rgba(49, 46, 129, 0.5);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--medium);
	gap: 12px;
	padding: 16px 32px;
}

.digiloom-button--mail .wp-block-button__link::before {
	background-color: currentColor;
	content: "";
	flex: 0 0 auto;
	height: 20px;
	width: 20px;
	transition: transform var(--wp--custom--transition--base);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

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

/* Centred on small screens, left-aligned from the tablet breakpoint up,
   matching the prototype's `text-center md:text-left`. */
@media (max-width: 781px) {

	.digiloom-hero {
		text-align: center;
	}

	.digiloom-hero__badge {
		display: inline-flex;
	}

	.digiloom-hero__inner {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.digiloom-hero__lead,
	.digiloom-hero__title {
		margin-inline: auto;
	}

	.digiloom-hero__actions {
		justify-content: center;
	}
}
