/*
 * Home hero. Source: wordpress/aronex mvp/Home.dc.html.
 * Mobile first (390 layout). Desktop from 1024px (1440 layout).
 * Image in the middle of the stack, card on top of it, advantages at the bottom.
 * Colors and sizes come only from assets/css/tokens.css.
 */

.aronex-hero {
	display: grid;
	grid-template-rows: 640px auto;
	background: var(--color-bg-muted);
}

.aronex-hero__media,
.aronex-hero__card {
	grid-area: 1 / 1;
}

/* The photo is positioned, so the card and advantages must be positioned too to paint above it */
.aronex-hero__card,
.aronex-hero__advantages {
	position: relative;
	z-index: 1;
}

.aronex-hero__media {
	position: relative;
	overflow: hidden;
}

/* <picture> is inline by default: it must fill the photo area so the image can fill it too. */
.aronex-hero__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.aronex-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

/* Card: on mobile sits at the bottom of the photo */
.aronex-hero__card {
	align-self: end;
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
	margin: var(--space-4);
	padding: var(--space-5);
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	box-sizing: border-box;
}

.aronex-hero__eyebrow,
.aronex-hero__price,
.aronex-hero__text {
	display: none;
}

.aronex-hero__title {
	margin: 0;
	font-size: var(--text-xl);
	line-height: 1.2;
	font-weight: var(--font-weight-medium);
	color: var(--color-text);
}

.aronex-hero__chips {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: 0;
	padding: var(--space-4) 0 0;
	border-top: 1px solid var(--color-border);
	list-style: none;
	font-size: var(--text-sm);
	color: var(--color-text);
}

.aronex-hero__chip {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.aronex-hero__chip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: var(--radius-pill);
	background: var(--color-accent-strong);
	flex: none;
}

.aronex-hero__actions {
	display: flex;
	gap: var(--space-2);
}

/* Both hero buttons share one size (design: 48px tall on mobile). */
.aronex-hero__actions .aronex-button {
	flex: 1;
	min-height: 48px;
	padding: var(--space-3) var(--space-3);
	font-size: var(--text-sm);
}

.aronex-hero__only-desktop {
	display: none;
}

/* Advantages: a row of three blocks on mobile, below the photo */
.aronex-hero__advantages {
	grid-area: 2 / 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: var(--space-4) var(--space-3);
	border-bottom: 1px solid var(--color-border);
	list-style: none;
	box-sizing: border-box;
}

.aronex-hero__advantage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: 0 var(--space-1);
	text-align: center;
}

.aronex-hero__advantage + .aronex-hero__advantage {
	border-inline-start: 1px solid var(--color-border);
}

.aronex-hero__icon {
	display: inline-flex;
	color: var(--color-text);
}

.aronex-hero__advantage-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.aronex-hero__advantage-title {
	font-size: var(--text-xs);
	font-weight: var(--font-weight-medium);
	color: var(--color-text);
	line-height: 1.3;
}

.aronex-hero__advantage-sub {
	font-size: var(--text-xs);
	line-height: 1.3;
	color: var(--color-text-muted);
}

/* Desktop (1440 layout) */
@media (min-width: 1024px) {
	.aronex-hero {
		grid-template-rows: 720px;
	}

	.aronex-hero__advantages {
		grid-area: 1 / 1;
		align-self: end;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
		padding: 0;
		background: var(--color-bg-muted);
		border-top: 1px solid var(--color-border);
		border-bottom: 0;
	}

	.aronex-hero__advantage {
		flex-direction: row;
		align-items: center;
		gap: var(--space-4);
		padding: var(--space-5) var(--space-6);
		text-align: start;
	}

	.aronex-hero__icon {
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		border-radius: var(--radius-pill);
		background: var(--color-bg);
		border: 1px solid var(--color-border);
	}

	.aronex-hero__advantage-title {
		font-size: var(--text-base);
	}

	.aronex-hero__only-desktop {
		display: block;
	}

	.aronex-hero__only-mobile {
		display: none;
	}

	.aronex-hero__advantage-sub {
		margin-top: 2px;
		font-size: var(--text-sm);
	}

	.aronex-hero__card {
		grid-area: 1 / 1;
		align-self: start;
		justify-self: start;
		width: 640px;
		max-width: calc(100% - 2 * var(--gutter-desktop));
		margin: 96px var(--gutter-desktop) 0;
		padding: var(--space-7);
		gap: var(--space-6);
		box-shadow: var(--shadow-card);
	}

	.aronex-hero__eyebrow {
		display: block;
		margin: 0;
		font-size: var(--text-base);
		font-weight: var(--font-weight-medium);
		color: var(--color-text);
	}

	.aronex-hero__title {
		font-size: var(--text-4xl);
		line-height: 1.15;
		white-space: nowrap;
	}

	.aronex-hero__price {
		display: block;
		margin: 0;
		font-size: var(--text-3xl);
		line-height: 1;
		font-weight: var(--font-weight-medium);
		color: var(--color-price);
	}

	.aronex-hero__text {
		display: block;
		margin: 0;
		max-width: 480px;
		font-size: var(--text-md);
		line-height: 1.7;
		color: var(--color-text-muted);
	}

	.aronex-hero__chips {
		flex-direction: row;
		flex-wrap: wrap;
		gap: var(--space-2);
		padding: 0;
		border-top: 0;
		font-size: var(--text-sm);
	}

	.aronex-hero__chip {
		padding: var(--space-2) var(--space-4);
		border-radius: var(--radius-pill);
		background: var(--color-bg-muted);
		white-space: nowrap;
	}

	.aronex-hero__chip::before {
		display: none;
	}

	.aronex-hero__actions {
		gap: var(--space-3);
	}

	.aronex-hero__actions .aronex-button {
		flex: 0 0 auto;
		min-height: 52px;
		padding: var(--space-4) var(--space-6);
		font-size: var(--text-base);
	}
}
