/**
 * HESENT Stage 10A — sitewide visual simplification.
 * Presentation only: no routing, product data, schema or RFQ behavior.
 */

:root {
	--hesent-stage10-white: #ffffff;
	--hesent-stage10-neutral: #f8fafb;
	--hesent-stage10-line: rgba(15, 35, 58, 0.12);
	--hesent-stage10-accent: #d9562b;
}

body,
main {
	background: var(--hesent-stage10-white);
}

.has-surface-gray-background-color.has-background {
	background-color: var(--hesent-stage10-neutral) !important;
}

body:not(.home) .wp-site-blocks > main {
	margin-block-start: 0 !important;
}

body:not(.home) main.hesent-section {
	padding-block-start: clamp(2rem, 3vw, 2.75rem);
}

/* Header: tighter brand/navigation relationship, preserved sticky behavior. */
.site-header {
	background: rgba(255, 255, 255, 0.97);
	transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header__utility p {
	font-size: 0.75rem !important;
	line-height: 1.3;
	margin-block: 0.42rem;
}

@media (min-width: 1101px) {
	.site-header__main {
		column-gap: clamp(1.25rem, 2.2vw, 2rem) !important;
		display: grid !important;
		grid-template-columns: auto auto minmax(0, 1fr);
		margin-inline: auto;
		max-width: min(calc(100% - 3rem), 80rem) !important;
		min-height: 4.75rem;
		width: 100%;
	}

	.site-header__nav {
		justify-self: start;
	}

	.site-header__nav .wp-block-navigation__container {
		column-gap: clamp(1rem, 1.35vw, 1.35rem) !important;
	}

	.site-header__nav .site-header__mobile-rfq {
		display: none !important;
	}

	.site-header__rfq {
		justify-self: end;
	}
}

.site-header .wp-block-navigation-item__content,
.site-header__rfq .wp-block-button__link {
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header .wp-block-navigation-item__content:hover {
	color: var(--hesent-stage10-accent);
}

/* Shared page rhythm: compact heroes, deliberate white sections. */
.hesent-section {
	padding-block: clamp(3.75rem, 5vw, 5.25rem);
}

.hesent-section + .hesent-section {
	border-top: 1px solid var(--hesent-stage10-line);
}

.category-hero,
.solution-hero,
.product-industrial-hero,
.hesent-precision-punches-page .precision-punches-hero {
	margin-block-start: 0 !important;
}

.category-hero,
.solution-hero {
	padding-block: clamp(2.25rem, 3.7vw, 3.75rem) !important;
}

.category-hero .page-breadcrumb,
.solution-hero .page-breadcrumb {
	margin-block-end: clamp(1rem, 1.8vw, 1.5rem);
}

.category-hero h1,
.solution-hero h1 {
	margin-block: 0.6rem 1rem;
}

.category-hero .has-large-font-size,
.solution-hero .has-large-font-size {
	line-height: 1.55;
	max-width: 52rem;
}

.page-id-13 .category-hero--archive .hesent-p0-products-ecosystem-hero {
	max-height: 30rem;
	min-height: 25rem !important;
}

/* Reusable product modules: less repeated detail, cleaner cards. */
.hesent-product-module-grid {
	gap: clamp(1.1rem, 1.6vw, 1.35rem);
	margin-block: clamp(1.5rem, 2.5vw, 2rem);
}

.hesent-product-module {
	border-top-color: var(--hesent-stage10-accent);
	box-shadow: 0 0.3rem 1rem rgba(15, 35, 58, 0.045);
	padding: clamp(1.1rem, 1.5vw, 1.35rem);
}

.hesent-product-module figure {
	margin: calc(-1 * clamp(1.1rem, 1.5vw, 1.35rem)) calc(-1 * clamp(1.1rem, 1.5vw, 1.35rem)) 1rem;
}

.hesent-product-module__indicator {
	background: #fff3ee;
	color: #a83d1f;
	letter-spacing: 0.055em;
	margin-bottom: 0.6rem;
}

.hesent-product-module__description {
	margin-block: 0.65rem 0.85rem;
}

.hesent-product-module__attributes > div {
	padding-block: 0.45rem;
}

.page-id-13 .hesent-product-module__attributes > div:nth-child(2) {
	display: none;
}

.hesent-product-rfq-band {
	background: var(--hesent-stage10-white);
	border: 1px solid var(--hesent-stage10-line);
	border-left: 5px solid var(--hesent-stage10-accent);
}

/* Product detail heroes: one consistent header-to-content transition. */
.product-industrial-hero {
	padding-block: clamp(1.75rem, 3vw, 2.75rem) !important;
}

.product-industrial-hero__breadcrumb {
	margin-block-end: 1.25rem;
}

.product-industrial-hero__media {
	min-height: clamp(22rem, 32vw, 29rem);
}

.product-industrial-hero__content .wp-block-post-title {
	margin-block: 0.6rem 1rem;
}

.hesent-precision-punches-page .precision-punches-hero {
	background: var(--hesent-stage10-white) !important;
	padding-block: clamp(2.25rem, 3.5vw, 3.5rem) !important;
}

.hesent-precision-punches-page .precision-punches-hero__columns {
	gap: clamp(2rem, 3.5vw, 3.5rem);
}

.hesent-precision-punches-page .precision-punches-section,
.product-editorial-section {
	padding-block: clamp(3.75rem, 5vw, 5.25rem);
}

.hesent-precision-punches-page .precision-punches-section:nth-child(even),
.product-editorial-section--range,
.product-editorial-section--manufacturing,
.product-editorial-section--faq {
	background: var(--hesent-stage10-neutral);
}

/* Homepage: retain the full buyer journey, remove repeated visual weight. */
.home .hesent-v3-home-hero {
	min-height: 0;
}

.home .hesent-v3-home-hero__copy {
	padding-block: clamp(2.75rem, 4.5vw, 4rem);
}

.home .hesent-v3-home-hero__copy h1 {
	font-size: clamp(2.75rem, 3.55vw, 3.3rem);
	margin-bottom: 1.15rem;
}

.home .hesent-v3-home-hero__media {
	min-height: 28rem;
}

.home .hesent-v3-entity {
	background: var(--hesent-stage10-white);
	border-block: 1px solid var(--hesent-stage10-line);
	color: #33475b;
}

.home .hesent-v3-entity__item,
.home .hesent-v3-entity__item:first-child {
	border-color: var(--hesent-stage10-line);
	min-height: 6rem;
	padding: 1.15rem 1.25rem;
}

.home .hesent-v3-entity__intro {
	color: #0f233a;
}

.home .hesent-v3-entity__label {
	color: #b94320;
}

.home .hesent-v3-chapter {
	padding-block: clamp(3.75rem, 4.8vw, 4.75rem);
}

.home .hesent-v3-section {
	padding-block: clamp(3.25rem, 4.3vw, 4.25rem);
}

.home .hesent-v3-section-head {
	margin-bottom: clamp(1.75rem, 2.7vw, 2.5rem);
}

.home .hesent-v3-system-row {
	grid-template-columns: minmax(0, 1fr) 2rem;
	padding-block: 1rem;
}

.home .hesent-v3-system-row__number,
.home .hesent-v3-system-row p,
.home .hesent-v3-supply__number {
	display: none;
}

.home .hesent-v3-system-row__arrow {
	grid-column: 2;
}

.home .hesent-v3-supply,
.home .hesent-v3-manufacturing,
.home .hesent-v3-quality {
	background: var(--hesent-stage10-white);
}

.home .hesent-v3-supply {
	border-top: 1px solid var(--hesent-stage10-line);
}

.home .hesent-v3-supply__heading {
	margin-bottom: clamp(1.75rem, 2.8vw, 2.75rem);
}

.home .hesent-v3-supply__path {
	padding: clamp(1.5rem, 2.5vw, 2.25rem);
}

.home .hesent-v3-manufacturing-media .hesent-v3-media-slot--grinding,
.home .hesent-v3-manufacturing-media .hesent-v3-media-slot--component,
.home .hesent-v3-quality-media__details {
	display: none;
}

.home .hesent-v3-manufacturing-media,
.home .hesent-v3-quality-media {
	display: block;
}

.home .hesent-v3-manufacturing-media .hesent-v3-media-slot--cnc,
.home .hesent-v3-quality-media > .hesent-v3-media-slot--inspection {
	aspect-ratio: 16 / 10;
}

.home .hesent-v3-proof-row {
	padding-block: 0.8rem;
}

.home .hesent-v3-proof-row:nth-child(n + 4) {
	display: none;
}

.home .hesent-v3-quality__statement {
	margin: -2rem 1.25rem 0;
	padding: clamp(1.25rem, 2.5vw, 2rem);
}

.home .hesent-v3-applications {
	background: var(--hesent-stage10-neutral);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home .hesent-v3-applications__media {
	min-height: 28rem;
}

.home .hesent-v3-applications__copy {
	background: var(--hesent-stage10-white);
	border-left: 5px solid var(--hesent-stage10-accent);
	color: #33475b;
	padding: clamp(2.75rem, 4.5vw, 4.25rem);
}

.home .hesent-v3-applications__copy :where(h2, h3),
.home .hesent-v3-industry-list a {
	color: #0f233a;
}

.home .hesent-v3-applications__copy .hesent-v3-eyebrow {
	color: #b94320;
}

.home .hesent-v3-industry-list {
	border-color: var(--hesent-stage10-line);
	margin-top: 2rem;
}

.home .hesent-v3-industry-list p {
	border-color: var(--hesent-stage10-line);
	padding-block: 0.7rem;
}

.home .hesent-v3-trust {
	background: var(--hesent-stage10-neutral);
}

.home .hesent-v3-trust .hesent-v3-editorial:has(> .hesent-v3-media-slot:not(.has-active-media)) {
	grid-template-columns: minmax(0, 48rem);
	justify-content: center;
}

.home .hesent-v3-trust .hesent-v3-media-slot:not(.has-active-media) {
	display: none;
}

.home .hesent-v3-reason-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home .hesent-v3-reason {
	grid-template-columns: 1fr;
	padding: 0.75rem 0;
}

.home .hesent-v3-reason:nth-child(odd) {
	padding-right: 1.5rem;
}

.home .hesent-v3-reason:nth-child(even) {
	border-left: 1px solid var(--hesent-stage10-line);
	padding-left: 1.5rem;
}

.home .hesent-v3-reason span {
	display: none;
}

.home .hesent-v3-home-rfq-wrap {
	background: var(--hesent-stage10-white);
}

.home .hesent-v3-home-rfq {
	background: #0f233a;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.8);
	padding: clamp(2.25rem, 4vw, 3.5rem);
}

.home .hesent-v3-home-rfq :where(h2, .hesent-v3-text-link a) {
	color: #ffffff;
}

.home .hesent-v3-home-rfq .hesent-v3-lead {
	color: rgba(255, 255, 255, 0.75);
}

.home .hesent-v3-rfq-tags li {
	border-color: rgba(255, 255, 255, 0.22);
}

/* Natural reveal rhythm, with the existing reduced-motion protection. */
@media (prefers-reduced-motion: no-preference) {
	html.hesent-home-motion body.home main > section.hesent-motion-target {
		transform: translateY(0.65rem);
		transition-duration: 520ms;
		transition-delay: var(--hesent-reveal-delay, 0ms);
		transition-timing-function: cubic-bezier(0.22, 0.72, 0.24, 1);
	}
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.hesent-product-module:hover,
	.hesent-v3-system-row:hover,
	.hesent-v3-supply__path:hover,
	.hesent-precision-punches-page :where(.precision-punches-type-card, .precision-punches-application-card, .precision-punches-card):hover {
		box-shadow: 0 0.75rem 1.75rem rgba(15, 35, 58, 0.075);
		transform: translateY(-2px);
	}
}

@media (max-width: 1100px) {
	.site-header__main {
		max-width: calc(100% - 2rem) !important;
	}
}

@media (max-width: 782px) {
	.hesent-section,
	.hesent-precision-punches-page .precision-punches-section,
	.product-editorial-section {
		padding-block: 3.25rem;
	}

	.category-hero,
	.solution-hero,
	.hesent-precision-punches-page .precision-punches-hero {
		padding-block: 2.25rem !important;
	}

	.page-id-13 .category-hero--archive .hesent-p0-products-ecosystem-hero {
		max-height: none;
		min-height: 0 !important;
	}

	.home .hesent-v3-home-hero__copy {
		padding-block: 2.35rem;
	}

	.home .hesent-v3-home-hero__copy h1 {
		font-size: clamp(2.1rem, 9vw, 2.45rem);
	}

	.home .hesent-v3-home-hero__media {
		min-height: 0;
	}

	.home .hesent-v3-chapter {
		padding-block: 3.5rem;
	}

	.home .hesent-v3-section {
		padding-block: 3.25rem;
	}

	.home .hesent-v3-applications {
		grid-template-columns: 1fr;
	}

	.home .hesent-v3-applications__media {
		min-height: 0;
	}

	.home .hesent-v3-applications__copy {
		border-left: 0;
		border-top: 5px solid var(--hesent-stage10-accent);
		padding: 2.75rem var(--hesent-v3-gutter);
	}
}

@media (min-width: 700px) and (max-width: 782px) {
	.home .hesent-v3-home-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.home .hesent-v3-home-hero__copy {
		padding: 2.75rem 2rem;
	}

	.home .hesent-v3-home-hero__copy h1 {
		font-size: clamp(2.2rem, 5vw, 2.5rem);
	}

	.home .hesent-v3-home-hero__media {
		aspect-ratio: auto;
	}
}

@media (max-width: 520px) {
	.home .hesent-v3-entity__grid,
	.home .hesent-v3-reason-list {
		grid-template-columns: 1fr;
	}

	.home .hesent-v3-entity__item,
	.home .hesent-v3-entity__item:first-child {
		border-left: 0;
		border-right: 0;
	}

	.home .hesent-v3-reason:nth-child(odd),
	.home .hesent-v3-reason:nth-child(even) {
		border-left: 0;
		padding-inline: 0;
	}

	.home .hesent-v3-home-rfq {
		padding: 2rem 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header,
	.site-header *,
	.hesent-product-module,
	.hesent-v3-system-row,
	.hesent-v3-supply__path {
		transition: none !important;
	}
}
