/**
 * Home heroes 2 to 7: the parts every new variant shares (inc/templates/home-hero-v3.php loads this file
 * and the variant's own home-hero-{key}.css, only for the variant that renders). The current
 * dark hero keeps its styles in v3-base.css and home-v3.css.
 *
 * @package acmasoft
 */

.acma-v3 .v3-hh {
	--hh-display: clamp(36px, 2.8vw + 14px, 92px);
	--hh-lead: clamp(16px, .3vw + 13px, 21px);
	--hh-top: clamp(32px, 3.6vw, 96px);
	--hh-panel: clamp(16px, 1.4vw, 28px);
	/* Buttons on light: navy outline wiping navy; the solid colour is set per variant. */
	--hh-solid: var(--v3-navy);
	--hh-solid-ink: #fff;
	--hh-wipe: var(--v3-navy);
	--hh-wipe-ink: #fff;
	--hh-line: var(--v3-navy);
	--hh-line-ink: var(--v3-navy);
	--hh-line-wipe: var(--v3-navy);
	--hh-line-wipe-ink: #fff;
	position: relative;
	isolation: isolate;
	background: #fff;
	color: var(--v3-ink);
}
/* Dark heroes sit under the transparent header (header.php adds is-over-dark for them). */
.acma-v3 .v3-hh--dark {
	--hh-line: #fff;
	--hh-line-ink: #fff;
	--hh-line-wipe: #fff;
	--hh-line-wipe-ink: var(--v3-navy);
	margin-top: calc(-1 * var(--hdr-h, 84px));
	padding-top: var(--hdr-h, 84px);
	color: #fff;
}

.acma-v3 .v3-hh__title {
	font-size: var(--hh-display);
	line-height: 1.04;
	letter-spacing: -.03em;
	font-weight: 700;
	color: var(--v3-navy);
	text-wrap: balance;
}
.acma-v3 .v3-hh--dark .v3-hh__title { color: #fff; }
.acma-v3 .v3-hh__lead {
	max-width: 46ch;
	font-size: var(--hh-lead);
	line-height: 1.6;
	color: var(--v3-text);
}

.acma-v3 .v3-hh__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.acma-v3 .v3-hh .v3-btn {
	gap: 10px;
	border: 2px solid var(--hh-line);
	color: var(--hh-line-ink);
	font-size: clamp(15px, .3vw + 12px, 19px); /* The site button scale (DESIGN.md). */
}
.acma-v3 .v3-hh .v3-btn::before { background: var(--hh-line-wipe); }
.acma-v3 .v3-hh .v3-btn:is(:hover, :focus-visible) { color: var(--hh-line-wipe-ink); border-color: var(--hh-line-wipe); }
.acma-v3 .v3-hh .v3-btn--solid { background: var(--hh-solid); color: var(--hh-solid-ink); border-color: var(--hh-solid); }
.acma-v3 .v3-hh .v3-btn--solid::before { background: var(--hh-wipe); }
.acma-v3 .v3-hh .v3-btn--solid:is(:hover, :focus-visible) { color: var(--hh-wipe-ink); border-color: var(--hh-wipe); }
.acma-v3 .v3-hh .v3-btn .v3-arrow { width: 18px; height: 18px; }

/* Figures: tabular, as on the previews. */
.acma-v3 .v3-hh-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.acma-v3 .v3-hh-figs dd,
.acma-v3 .v3-hh-proof dd { order: -1; margin: 0; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.acma-v3 .v3-hh-figs > div,
.acma-v3 .v3-hh-proof > div { display: flex; flex-direction: column; min-width: 0; }
.acma-v3 .v3-hh-figs dt,
.acma-v3 .v3-hh-proof dt { margin-top: 8px; font-size: clamp(14px, .2vw + 11px, 17px); font-weight: 500; line-height: 1.6; }

/* Six-figure proof bar (navigator, wall). */
.acma-v3 .v3-hh-proof { --rule: var(--v3-line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.acma-v3 .v3-hh-proof > div { padding: clamp(16px, 1.4vw, 26px) clamp(12px, 1.2vw, 24px) clamp(16px, 1.4vw, 26px) 0; }
.acma-v3 .v3-hh-proof > div + div { padding-left: clamp(12px, 1.2vw, 24px); border-left: 1px solid var(--rule); }
.acma-v3 .v3-hh-proof dd { font-size: clamp(26px, 1.4vw + 10px, 56px); }
@media (max-width: 1023.98px) {
	.acma-v3 .v3-hh-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.acma-v3 .v3-hh-proof > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 559.98px) {
	.acma-v3 .v3-hh-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.acma-v3 .v3-hh-proof > div,
	.acma-v3 .v3-hh-proof > div + div { padding-left: 0; border-left: 0; }
	.acma-v3 .v3-hh-proof > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
}

@media (max-width: 639.98px) {
	.acma-v3 .v3-hh__btns .v3-btn { flex: 1 1 auto; }
}

@media (min-width: 1800px) {
	.acma-v3 .v3-hh-figs dt,
	.acma-v3 .v3-hh-proof dt { font-size: clamp(14px, .3vw + 9px, 21px); }
}

/* Band alternation below: a hero that ends on white is followed by the services band in grey. */
.acma-v3 .v3-hh--end-white + .v3-services { background: var(--v3-surface); }

/* Large screens: the previews were drawn to 1440; type and gaps keep growing to 4K through clamp(). */
html.translated-ltr .acma-v3 .v3-hh__title { letter-spacing: normal; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
	.acma-v3 .v3-hh *,
	.acma-v3 .v3-hh *::before { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
