/* ===== Heroes (hero-home, hero-product) ===== */
.ig-hero {
	overflow: hidden;
	padding: 48px 0 0;
	background: linear-gradient(180deg, var(--wp--preset--color--white) 0%, var(--wp--preset--color--grey) 100%);
}
.ig-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 24px;
}
.ig-hero h1 {
	margin-top: 18px;
	font-size: clamp(38px, 6.4vw, 58px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.03em;
}
.ig-hero-product h1 {
	font-size: clamp(42px, 7vw, 64px);
	line-height: 1.02;
}
.ig-hero__lead {
	max-width: 520px;
	margin-top: 20px;
	color: var(--wp--custom--color--text-soft);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.65;
}
.ig-hero .wp-block-buttons { margin-top: 28px; }
.ig-crumbs {
	margin-bottom: 18px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
}
.ig-crumbs a {
	color: var(--wp--preset--color--blue);
	font-weight: 600;
	text-decoration: none;
}
.ig-crumbs a:hover { color: var(--wp--preset--color--navy); }

/* Audience chips (hero-home) and trust ticks (hero-product). */
.ig-chips,
.ig-trust {
	display: flex;
	flex-wrap: wrap;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.ig-chips { gap: 8px; }
.ig-chips li {
	padding: 6px 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--white);
	color: var(--wp--custom--color--text);
	font-size: 12.5px;
	font-weight: 600;
}
.ig-trust {
	gap: 8px 22px;
	margin-top: 24px;
	color: var(--wp--custom--color--text-soft);
	font-size: 13px;
	font-weight: 600;
}
.ig-trust li::before {
	content: "✓ ";
	color: var(--wp--preset--color--blue);
	font-weight: 800;
}

/* Phones over a blue circle; the column ends at the section's bottom edge. */
.ig-hero__media {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 400px;
}
.ig-hero__media::before {
	content: "";
	position: absolute;
	bottom: -110px;
	left: 50%;
	width: 360px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, var(--wp--preset--color--light-blue), var(--wp--preset--color--blue));
	translate: -50% 0;
}
.ig-hero__phone {
	position: relative;
	z-index: 1;
	margin-bottom: -90px;
}
.ig-hero .is-style-ig-phone { width: 230px; }
.ig-hero__back { display: none; }
.ig-notif { display: none; }
.ig-hero__text { padding-bottom: 8px; }

@media (min-width: 640px) {
	.ig-hero__media { height: 520px; }
	.ig-hero__media::before { width: 460px; }
	.ig-hero .is-style-ig-phone { width: 270px; }
	/* The back phone (an image that already has its device frame), tilted behind the front one. */
	.ig-hero__back {
		position: absolute;
		bottom: -60px;
		left: 50%;
		display: block;
		width: 222px;
		opacity: 0.95;
		translate: calc(-50% + 150px) 0;
		rotate: 8deg;
	}
	.ig-hero__back img { display: block; width: 100%; height: auto; }
	/* Notification card over the front phone. */
	.ig-notif {
		position: absolute;
		top: 90px;
		left: -90px;
		z-index: 2;
		display: flex;
		align-items: flex-start;
		gap: 10px;
		box-sizing: border-box;
		width: 240px;
		padding: 10px 12px;
		border-radius: 12px;
		background: var(--wp--preset--color--white);
		box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.35);
		color: var(--wp--preset--color--navy);
		font-size: 11.5px;
		line-height: 1.35;
	}
	.ig-notif .wp-block-image { flex: none; width: 30px; }
	.ig-notif .wp-block-image img { display: block; width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
	.ig-notif strong {
		color: var(--wp--preset--color--muted);
		font-size: 10px;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}
}
@media (min-width: 960px) {
	.ig-hero { padding-top: 80px; }
	.ig-hero__inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 40px;
	}
	.ig-hero__text { padding-bottom: 80px; }
	.ig-hero__media { height: 560px; }
}

/* Product hero on a photo (Municipalities): the photo hero's overlay and white text with hero-product's phone
   column, which runs to the band's bottom edge, so the band has no bottom padding. */
.ig-section.ig-hero-photo--product {
	padding-bottom: 0;
	overflow: hidden;
}
.ig-hero-photo--product h1 { font-size: clamp(36px, 5.6vw, 54px); }
.ig-hero-photo--product .ig-crumbs,
.ig-hero-photo--product .ig-crumbs a { color: var(--wp--preset--color--white); }
.ig-hero-photo--product .ig-crumbs a:hover { color: var(--wp--preset--color--grey); }
/* In the taller shared hero height (hero-photo.css) the phone still stands on the band's bottom edge: the content
   fills the hero, the text is centred in it and the phone column sits at the bottom. */
@media (min-width: 960px) {
	.ig-hero-photo--product .wp-block-cover__inner-container {
		display: flex;
		align-self: stretch;
	}
	.ig-hero-photo--product .ig-hero__inner { flex: 1; }
	.ig-hero-photo--product .ig-hero__media { align-self: end; }
}

/* Homepage: the whole phone centred in the hero, as on L3b, with no circle behind it. */
.ig-section.ig-hero-photo--demo { padding-bottom: 72px; }
.ig-hero-photo--demo .ig-hero__media {
	align-items: center;
	height: auto;
}
.ig-hero-photo--demo .ig-hero__media::before { display: none; }
.ig-hero-photo--demo .ig-hero__phone { margin-bottom: 0; }
@media (min-width: 782px) {
	.ig-section.ig-hero-photo--demo { padding-bottom: 112px; }
}
@media (min-width: 960px) {
	.ig-hero-photo--demo .ig-hero__media { align-self: center; }
}

/* Two app screenshots fanned out (Unions & Associations): the images already have their device frames. The front
   one stands left of centre so the tilted back one, peeking out on the right, keeps the pair centred. */
.ig-hero__fan {
	position: relative;
	width: 210px;
	margin-right: 70px;
}
.ig-hero__fan .wp-block-image { margin: 0; }
.ig-hero__fan img { display: block; width: 100%; height: auto; }
.ig-hero__fan-front {
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 25px 30px rgba(0, 0, 0, 0.35));
}
.ig-hero__fan-back {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	translate: 38% 4%;
	rotate: 8deg;
	opacity: 0.95;
}
@media (min-width: 640px) {
	.ig-hero__fan { width: 260px; margin-right: 90px; }
}
