/* Hypac Hydraulics — supplemental front-end styles (theme.json covers the design tokens). */

/* Floating header — overlays the hero/title band instead of pushing it down. */
.site-header {
	position: absolute;
	top: 3rem;
	left: 0;
	right: 0;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	z-index: 40;
	background: transparent;
}

/* WordPress adds automatic margin-top between top-level blocks based on DOM
   order, even though the header is absolutely positioned and out of flow —
   so the first block after it was inheriting an unwanted gap. The header
   template part renders inside its own wrapper element (not .site-header
   itself), so target main/hero directly rather than via a sibling selector. */
.hypac-hero,
main {
	margin-top: 0 !important;
}

/* Left-align hero content; vertical clearance from the floating header is
   handled by explicit top padding on the inner container (see hero.php) —
   the content block is tall enough that flex slack alone isn't reliable. */
.hypac-hero.hypac-hero {
	justify-content: flex-start;
	align-items: flex-start;
}

.hypac-header-bar.hypac-header-bar {
	display: inline-flex !important;
	width: auto !important;
	flex-basis: auto !important;
	background: var(--wp--preset--color--white);
	padding: 1.1rem 1.75rem;
	align-items: center;
	column-gap: 2.5rem;
	row-gap: 0.5rem;
}

.site-header .wp-block-navigation a {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color 0.15s ease;
}

.site-header .wp-block-navigation-item {
	position: relative;
}

.site-header .wp-block-navigation-item.current-menu-item > a,
.site-header .wp-block-navigation-item a:hover {
	color: var(--wp--preset--color--bronze) !important;
}

.site-header .wp-block-navigation-item.current-menu-item::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -0.85rem;
	transform: translateX(-50%);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid var(--wp--preset--color--bronze);
}

@media (max-width: 600px) {
	.site-header {
		position: relative;
		top: 0;
	}

	.hypac-header-bar {
		display: flex;
		width: 100%;
	}

	/* No floating header to clear on mobile (it's back in normal flow above
	   the hero), so the large desktop clearance padding isn't needed here. */
	.hypac-hero .wp-block-cover__inner-container {
		padding-top: 3rem !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		width: 100% !important;
		align-self: stretch !important;
		align-items: center !important;
		text-align: center;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
		justify-content: center !important;
		flex-wrap: wrap !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > a.wp-block-navigation-item__content {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		text-align: center !important;
	}

	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		align-items: center;
		text-align: center;
	}
}

.hypac-footer-logo {
	margin: 0 0 0.25rem;
}

/* Small muted eyebrow label — no color block, no rule, just type hierarchy doing the work. */
.hypac-badge {
	display: block;
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: var(--wp--preset--font-size--small);
}

.hypac-hero .hypac-badge {
	color: rgba(255, 255, 255, 0.75);
}

/* Stats strip — inline data row with quiet hairline dividers. */
.hypac-stat {
	text-align: center;
	position: relative;
}

.hypac-stat:not(:first-child)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 1px;
	background: rgba(255, 255, 255, 0.14);
}

.hypac-stat.is-layout-constrained {
	--wp--style--block-gap: 0.75rem;
}

.hypac-stat .stat-number {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--bronze);
	line-height: 1;
	display: block;
}

/* Product lines — full-width rows, generous whitespace, thin hairline separators. */
.hypac-product-row {
	display: flex;
	gap: var(--wp--preset--spacing--50);
	align-items: flex-start;
	padding: var(--wp--preset--spacing--50) 0;
	border-bottom: 1px solid var(--wp--preset--color--border-grey);
}

.hypac-product-row:first-of-type {
	border-top: 1px solid var(--wp--preset--color--border-grey);
}

.hypac-product-icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	padding-top: 0.3rem;
	color: var(--wp--preset--color--navy);
}

.hypac-product-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.hypac-product-row a {
	white-space: nowrap;
	font-weight: 500;
}

/* Full-bleed media — image runs flush to the section edge, no frame or border. */
.hypac-fullbleed-media {
	align-self: stretch;
	min-height: 420px;
}

.hypac-fullbleed-media figure,
.hypac-fullbleed-media img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	margin: 0;
}

.hypac-hero {
	position: relative;
	overflow: hidden;
}

.hypac-hero .wp-block-cover__background {
	background: var(--wp--preset--color--navy);
}

/* Subtle motion on interactive elements. */
.wp-block-button__link {
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(24, 34, 49, 0.15);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	box-shadow: none;
}

a {
	transition: color 0.15s ease;
}

@media (max-width: 782px) {
	.hypac-stat .stat-number {
		font-size: var(--wp--preset--font-size--large);
	}

	.hypac-product-row {
		flex-direction: column;
		gap: 1rem;
	}

	.hypac-fullbleed-media {
		min-height: 280px;
	}
}
