/* Home page sections. Owned by front-page.php. */

/* A white first screen, then the paper sections under it: the photography comes from the records,
   and every heading uses the shared section head. */

/* Hero: a white first screen — the proposition on the left, the four instruments that answer it
   on the right. Every instrument in the panel is a product record's own photograph, so the panel can
   never show a model the catalogue does not carry. */
.home-hero {
	padding-block: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2rem);
	background: var(--surface);
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.home-hero__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	align-items: center;
}
@media (min-width: 62rem) {
	.home-hero__grid--split { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); }
}
.home-hero__body { max-width: 40rem; }
.home-hero h1 {
	max-width: 18ch;
	margin: 0;
	color: var(--ink);
	font-size: var(--text-4xl);
	font-weight: 700;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}
.home-hero .lede {
	max-width: 46ch;
	margin-top: var(--space-sm);
	color: var(--muted);
	font-size: var(--text-lg);
}

/* The classification line: four terms, each its own route into the catalogue, so a visitor who
   already knows what they are looking for does not have to read the page first. */
.home-hero__quick {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.55rem;
	margin-top: var(--space-sm);
	font-size: var(--text-sm);
	color: var(--muted);
}
.home-hero__quick a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 114, 168, 0.35);
}
.home-hero__quick a:hover {
	color: var(--brand);
	border-bottom-color: var(--brand);
}
.home-hero__sep { color: var(--line-strong); }

.home-hero .hero__actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: 0.5rem;
	max-width: 28rem;
	margin-top: var(--space-md);
}

/* The four instruments: white cards on a cool wash, each photograph in one square frame so four
   photographs of different shapes still read as a single row. */
.home-hero__showcase {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.55rem, 1.2vw, 0.85rem);
	margin: 0;
	padding: clamp(0.65rem, 1.6vw, 1rem);
	list-style: none;
	background: var(--brand-wash);
	border-radius: var(--radius-lg);
}
.home-hero__card {
	background: var(--surface);
	border: 1px solid var(--line-cool);
	border-radius: var(--radius-md);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.home-hero__card:hover {
	border-color: var(--brand);
	box-shadow: 0 16px 32px -24px rgba(15, 27, 36, 0.55);
	transform: translateY(-2px);
}
.home-hero__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(0.5rem, 1.2vw, 0.8rem);
	color: var(--ink);
	text-decoration: none;
}
.home-hero__card-media { display: block; }
.home-hero__card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}
.home-hero__card-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.15rem 0.5rem;
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--line-cool);
}
.home-hero__card-model {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.02em;
	color: var(--ink);
}
.home-hero__card-family {
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
	.home-hero__card { transition: none; }
	.home-hero__card:hover { transform: none; }
}

/* Range and counts under the two columns: still the first screen, so what the four families contain
   is legible before the fold ends. */
.home-hero__principles {
	display: grid;
	gap: 0.4rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	padding-top: var(--space-md);
	border-top: 1px solid var(--line);
	list-style: none;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}
@media (min-width: 48rem) {
	.home-hero__principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
}
.home-hero__principles li { padding-left: 0.85rem; position: relative; }
.home-hero__principles li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 6px;
	height: 1px;
	background: var(--brand);
}

.home-hero__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
	gap: var(--space-md) var(--space-lg);
	margin-top: clamp(1.5rem, 3vw, 2rem);
	padding-top: var(--space-md);
	border-top: 1px solid var(--line);
}
.home-stat__value {
	display: block;
	font-family: var(--font-mono);
	font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem);
	line-height: 1.1;
	color: var(--ink);
}
.home-stat__label {
	display: block;
	margin-top: 0.3rem;
	font-size: var(--text-xs);
	color: var(--muted);
}

/* Families: a photograph from inside the family, its count, and the categories it holds. */
.home-families {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.home-family {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-family:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}
.home-family__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #fff;
	border-bottom: var(--border);
}
.home-family__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: var(--space-sm);
}
.home-family__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.35rem;
	padding: var(--space-md);
}
.home-family__count {
	margin: 0;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.home-family__title { margin: 0; font-size: var(--text-xl); line-height: 1.2; }
.home-family__title a { text-decoration: none; }
.home-family__title a:hover { text-decoration: underline; }
/* The sentence that says when this family is the answer: the choice criteria, read from the term. */
.home-family__when {
	margin: 0;
	font-size: var(--text-sm);
	line-height: 1.5;
	color: var(--ink-soft);
	text-wrap: pretty;
}
.home-family__children { margin-top: 0.35rem; gap: 0.35rem; }
.home-family__children .chip { padding: 0.28rem 0.55rem; font-size: var(--text-xs); }

/* Products and applications: one card shape across both, so the page reads as a catalogue. */
.home-products .card__media,
.home-product .card__media {
	aspect-ratio: 4 / 3;
	background: #fff;
}
.home-product .card__media img { height: 100%; object-fit: contain; }
.home-app__media { aspect-ratio: 16 / 10; }
.home-app__media img { height: 100%; object-fit: cover; }

/* Field notes: editorial rather than photographic, so the eye rests between image-heavy sections. */
.home-note { border-top: 2px solid var(--ink); }
.home-note__tag { align-self: flex-start; }

/* How a point gets solved: the page's second dark band, numbered. */
.home-process .section-head__title { color: #fff; }
.home-process .section-head__text { color: var(--on-navy-muted); }
.home-process .eyebrow { color: var(--accent-tint); }
.home-steps {
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 56rem) {
	.home-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home-steps li {
	padding-top: var(--space-sm);
	border-top: 1px solid rgba(233, 240, 245, 0.22);
}
.home-steps__num {
	display: block;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	letter-spacing: 0.1em;
	color: var(--accent-tint);
}
.home-steps h3 { margin: 0.6rem 0 0.4rem; font-size: var(--text-lg); color: #fff; }
.home-steps p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--on-navy-muted); }

/* Documentation: the list carries the weight, the aside answers the question the list raises. */
.home-docs {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin-top: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 56rem) {
	.home-docs { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
}
.home-downloads { border-top: var(--border); }
.home-downloads .home-download { padding-block: 0.8rem; }
.home-download__link {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2xs) var(--space-sm);
	text-decoration: none;
}
.home-download__link:hover .home-download__title { text-decoration: underline; }
.home-download__title { font-size: var(--text-base); font-weight: 500; }
.home-download__file {
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}
.home-docs__ask {
	padding: var(--space-md);
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius-lg);
}
.home-docs__ask h3 { margin: 0 0 0.5rem; font-size: var(--text-lg); }
.home-docs__ask p { margin: 0 0 var(--space-sm); font-size: var(--text-sm); color: var(--ink-soft); }

/* Cards lift on hover so a product and an application behave the same way under the pointer. */
.home-product,
.home-app,
.home-note {
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.home-product:hover,
.home-app:hover,
.home-note:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lift);
	transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
	.home-family,
	.home-product,
	.home-app,
	.home-note { transition: none; }
	.home-family:hover,
	.home-product:hover,
	.home-app:hover,
	.home-note:hover { transform: none; }
}

/* Trust: the workshop photographs and the terms an order carries — two kinds of proof in one band. */
.home-trust .build-strip__grid { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.home-promise {
	margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
	padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
	border-top: var(--border);
}
.home-promise .eyebrow { margin-bottom: 0.85rem; }
.home-promise__list {
	display: grid;
	gap: 0.7rem 2rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}
@media (min-width: 48rem) {
	.home-promise__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-promise__list li {
	position: relative;
	padding-left: 1.15rem;
	font-size: var(--text-base);
	line-height: 1.5;
	color: var(--ink-soft);
	text-wrap: pretty;
}
.home-promise__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	background: var(--accent);
	border-radius: 1px;
}

/* Closing: the pitch on the left, the enquiry form itself on the right, so the last screen converts. */
.home-close { scroll-margin-top: calc(var(--header-height) + 0.75rem); }
.home-close__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 60rem) {
	.home-close__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: start; }
}
.home-close__pitch h2 { margin: 0.35rem 0 0.75rem; font-size: var(--text-3xl); text-wrap: balance; }
.home-close__pitch > p { max-width: 46ch; margin: 0; color: var(--ink-soft); }
.home-close__alternatives {
	display: grid;
	gap: 0.5rem;
	margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
	padding: 0;
	list-style: none;
}
.home-close__alternatives li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	align-items: baseline;
	font-size: var(--text-sm);
}
.home-close__label {
	min-width: 5.5rem;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.home-close__form {
	padding: clamp(1rem, 2vw, 1.35rem);
	background: var(--paper);
	border: var(--border);
	border-radius: var(--radius-lg);
}
.home-close__form .rfq__form { margin-top: 0; }
.home-close__form .rfq__note { margin-bottom: 0; }
