/**
 * Home hero section styles.
 * Loaded automatically with templates/page-home/hero.php (see growhall_enqueue_home_sections()).
 */

/* Full-bleed: break out of the .site-content (max 1120px) wrapper that
   header.php opens, and butt flush against the header. */
.gh-hero {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	/* margin-top: -2rem; */
	background: var(--gh-accent);
	overflow: hidden;
}

.gh-hero__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 80px 16px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.gh-hero__title {
	margin: 0;
	font-family: 'schibsted_grotesk_demi', Arial, sans-serif;
	font-weight: normal;
	font-size: 48px;
	line-height: 64px;
	color: var(--gh-text-primary);
}

.gh-hero__subtitle {
	margin: 0;
	font-family: 'avenir_next_worldmedium', 'Verdana';
	font-weight: normal;
	font-size: 14px;
	line-height: 24px;
	color: var(--gh-text-primary);
}

.gh-hero__cards {
	margin-top: 40px;
	width: 100%;
	/* No clipping here — rotated cards spill vertically and must stay visible.
	   The .gh-hero section clips the horizontal full-width bleed. */
	padding: 72px 0;
	display: flex;
	justify-content: center;
}

.gh-hero__fan {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.gh-hero__card {
	position: relative;
	flex: 0 0 auto;
	width: var(--w, 228px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-right: -160px;
	will-change: transform;
}

.gh-hero__tip {
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(calc(-50% + var(--tip-shift, 0px))) translateY(6px);
	margin-bottom: 8px;
	padding: 6px 10px;
	background: var(--gh-text-primary);
	color: var(--gh-white);
	font-family: 'avenir_next_worlddemi', 'Verdana';
	font-weight: normal;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 10;
}

/* Little pointer triangle under the tooltip. */
.gh-hero__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: var(--gh-text-primary);
}

.gh-hero__card:hover .gh-hero__tip {
	opacity: 1;
	visibility: visible;
	transform: translateX(calc(-50% + var(--tip-shift, 0px))) translateY(0);
}

.gh-hero__card:last-child {
	margin-right: 0;
}

.gh-hero__card-img {
	display: block;
	width: 228px;
	height: auto;
	border-radius: 10px;
	transform: rotate(var(--rot, 0deg));
	box-shadow: 0 8px 8px rgba(255, 194, 174, 0.4);
}
@media (min-width: 1600px) {
    .gh-hero__card {
		width: 280px;
	}
	.gh-hero__card-img {
		width: 280px;
	}
}
@media (min-width: 1800px) {
	.gh-hero__card {
		width: 295px;
	}
	.gh-hero__card-img {
		width: 295px;
	}
}
@media (min-width: 2000px) {
	.gh-hero__card {
		width: 305px;
	}
	.gh-hero__card-img {
		width: 305px;
	}
}
@media (max-width: 768px) {
	/* Figma mobile node 3173:12743: text column max 328px, 24px gap between
	   title/subtitle/CTA, full-width CTA. .site-content already adds 16px
	   side gutters, so no extra horizontal padding here. */
	.gh-hero__inner {
		padding-top: 48px;
		gap: 24px;
	}

	.gh-hero__title {
		font-size: 32px;
		line-height: 40px;
		/* max-width: 328px; */
	}

	/* CTA goes full-width across the text column (Figma: 48px tall, 16px text). */
	.gh-hero .gh-btn--primary {
		width: 100%;
		max-width: 328px;
		padding: 13px 16px;
		font-size: 16px;
		line-height: 24px;
	}

	/* Mobile fan (Figma node 3173:12752): keep the cards near full size and let
	   the fan bleed off both edges, centred. A fixed-height window clips the
	   bottom so only the top band of the fan shows (cards run off below), instead
	   of scaling the whole strip down. */
	.gh-hero__cards {
		margin-top: 24px;
		/* Top padding leaves room for the rotated cards' corners (they poke above
		   their layout box); height = padding + the visible band, so only the
		   bottom of the fan is clipped. box-sizing: border-box (style.css). */
		padding: 48px 0 0;
		height: 288px;
		overflow: hidden;
		align-items: flex-start;
	}

	.gh-hero__card-img {
		width: 200px;
	}

	/* Spread to match the Figma fan width (~1282px / 13 cards ≈ 90px advance):
	   img 200 − 110 overlap = 90px centre-to-centre. */
	.gh-hero__card {
		width: auto;
		margin-right: -100px;
	}
}
@media (max-width: 600px) {
	.gh-hero__subtitle br, .gh-hero__title br{
		display: none;
	}
}