/*
 * Homepage Hero — single source of truth.
 *
 * All .home-hero rules live in this file. Do not re-add hero rules to main.css:
 * the previous duplicate blocks there fought each other and made this section
 * un-tunable.
 *
 * The hero is the one FULL-BLEED band on the homepage, so its grid must NOT
 * carry the shared .site-width content-column utility (front-page.php was
 * changed accordingly). .home .site-main .site-width caps every other homepage
 * section to the 1140px reference column; the hero deliberately sits outside it.
 *
 * Metrics measured from https://www.shouyasanitary.com/ at a 1440px viewport
 * (1425px document width, i.e. minus scrollbar):
 *   band height 669px · 50/50 split (712.5px per column)
 *   copy column padding 0 10% of the band (= 142.5px) → 428px text column
 *   copy block vertically centred in the band
 *   H1        36px / 600 / 1.4     margin-top 10px
 *   H2        24px / 600 / 1.4     margin-top 19px
 *   body      16px / 400 / 1.7     margin-top 20px
 *   trust row 6 × 63px, 10px gap   margin-top 20px
 *   CTA       44px tall, 8px 25px padding, 14px  margin-top 20px
 *
 * Font FAMILIES stay on the site-wide HSK token system (--font-heading /
 * --font-primary); only size/weight/line-height/spacing follow Shouya.
 */

.home .home-hero {
	min-height: 669px;
	padding: 0;
	background: #f4f4f4;
	font-family: var(--font-primary);
}

/* Full-bleed: spans the viewport, never the 1140px content column. */
.home .home-hero__grid {
	display: flex;
	width: 100%;
	max-width: none;
	min-height: 669px;
	margin: 0;
	gap: 0;
	align-items: stretch;
}

.home .home-hero__copy {
	display: flex;
	flex: 0 0 50%;
	max-width: 50%;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	/* 10% of the full band = 142.5px at 1425, matching Shouya's 428px column. */
	padding: 0 10%;
	box-sizing: border-box;
	background: #f4f4f4;
}

.home .home-hero__copy h1 {
	width: 100%;
	max-width: 428px;
	margin: 10px 0 0;
	font-family: var(--font-heading);
	font-size: 36px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}

.home .home-hero__subtitle {
	max-width: 428px;
	margin: 19px 0 0;
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
}

.home .home-hero__products {
	max-width: 428px;
	margin: 20px 0 0;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.7;
}

.home .home-hero__lead {
	max-width: 428px;
	margin: 20px 0 0;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: var(--font-weight-body);
	line-height: 1.7;
}

.home .home-hero__trust-logos {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	width: 428px;
	max-width: 100%;
	margin: 20px 0 0;
	padding: 0;
	gap: 10px;
	align-items: center;
	list-style: none;
}

.home .home-hero__trust-logos li,
.home .home-hero__trust-logos a {
	display: flex;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	align-items: center;
	justify-content: center;
}

.home .home-hero__trust-logos img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: center;
}

.home .home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	margin-top: 20px;
	gap: 14px;
	align-items: center;
}

.home .home-hero__actions .button {
	min-height: 44px;
	padding: 8px 25px;
	font-size: 14px;
}

/* Right half: image runs edge-to-edge to the viewport's right side. */
.home .home-hero__media {
	display: block;
	flex: 0 0 50%;
	max-width: 50%;
	min-height: 669px;
	margin: 0;
	overflow: hidden;
}

.home .home-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1180px) {
	.home .home-hero,
	.home .home-hero__grid,
	.home .home-hero__media {
		min-height: 56.7vw;
	}

	.home .home-hero__copy h1 {
		font-size: 30px;
	}

	.home .home-hero__subtitle {
		font-size: 21px;
	}
}

@media (max-width: 980px) {
	.home .home-hero,
	.home .home-hero__grid,
	.home .home-hero__media {
		min-height: max(390px, 50.8vw);
	}

	.home .home-hero__copy {
		flex-basis: 56%;
		max-width: 56%;
		padding: 30px 5%;
	}

	.home .home-hero__media {
		flex-basis: 44%;
		max-width: 44%;
	}

	.home .home-hero__copy h1 {
		max-width: 100%;
		font-size: 23px;
		line-height: 1.3;
	}

	.home .home-hero__subtitle {
		max-width: 100%;
		margin-top: 12px;
		font-size: 16px;
		line-height: 1.4;
	}

	.home .home-hero__products,
	.home .home-hero__lead {
		max-width: 100%;
		margin-top: 12px;
		font-size: 14px;
		line-height: 1.6;
	}

	.home .home-hero__trust-logos {
		width: 100%;
		margin-top: 14px;
		gap: 6px;
	}

	.home .home-hero__actions {
		margin-top: 14px;
	}
}

@media (max-width: 640px) {
	.home .home-hero {
		min-height: 0;
	}

	.home .home-hero__grid {
		display: block;
		min-height: 0;
	}

	.home .home-hero__copy,
	.home .home-hero__media {
		width: 100%;
		max-width: none;
	}

	.home .home-hero__copy {
		padding: 24px 6% 20px;
	}

	.home .home-hero__copy h1 {
		max-width: 100%;
		margin-top: 0;
		font-size: clamp(24px, 6.6vw, 28px);
		line-height: 1.2;
	}

	.home .home-hero__subtitle {
		max-width: 100%;
		margin-top: 12px;
		font-size: 18px;
		line-height: 1.35;
	}

	.home .home-hero__products,
	.home .home-hero__lead {
		max-width: 100%;
		margin-top: 12px;
		font-size: 15px;
		line-height: 1.6;
	}

	.home .home-hero__trust-logos {
		grid-template-columns: repeat(3, 64px);
		width: min(100%, 208px);
		margin-top: 12px;
		gap: 6px;
	}

	.home .home-hero__actions {
		margin-top: 14px;
		gap: 8px;
	}

	.home .home-hero__actions .button {
		min-height: 40px;
		padding: 8px 20px;
	}

	.home .home-hero__media {
		height: clamp(238px, 68vw, 320px);
		min-height: 0;
	}
}

@media (max-width: 400px) {
	.home .home-hero__trust-logos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
