/**
 * WESHIPAC home reference correction — 0.9.33.
 *
 * Desktop-only compact equipment strip and reference-aligned home sections.
 * The max-620px mobile contract remains owned by the 0.9.32 mobile layers.
 */

.wsp-desktop-only {
	display: none !important;
}

.wsp-brand-showcase__logo {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.wsp-brand-showcase__logo-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 52px;
	object-fit: contain;
	object-position: left center;
	filter: none;
}

@media (min-width: 621px) {
	.wsp-catalog-first {
		--wsp-d33-white: #fff;
		--wsp-d33-ice: #f4f9fc;
		--wsp-d33-ice-soft: #f8fcfe;
		--wsp-d33-line: #d9e6ed;
		--wsp-d33-line-strong: #c8dce7;
		--wsp-d33-ink: #0a2038;
		--wsp-d33-copy: #5e7288;
		--wsp-d33-blue: #087fc2;
		--wsp-d33-blue-dark: #006cac;
		--wsp-d33-cyan: #00a9df;
		--wsp-d33-navy: #06192d;
		--wsp-d33-strip-size: clamp(220px, 19vw, 280px);
		--wsp-d33-radius: 8px;
		--wsp-d33-shadow: 0 10px 28px rgba(10, 32, 56, 0.08);
		background:
			radial-gradient(circle at 92% 7%, rgba(0, 169, 223, 0.08), transparent 24%),
			linear-gradient(rgba(8, 127, 194, 0.022) 1px, transparent 1px),
			linear-gradient(90deg, rgba(8, 127, 194, 0.022) 1px, transparent 1px),
			#fff;
		background-size: auto, 48px 48px, 48px 48px, auto;
	}

	.wsp-desktop-only {
		display: block !important;
	}

	/* Compact half-height image strip: category cards remain visible at 1440×900. */
	.wsp-reference-hero {
		position: relative;
		padding-block: 14px;
		border-block-end: 1px solid rgba(200, 220, 231, 0.72);
		background:
			radial-gradient(circle at 12% 24%, rgba(0, 169, 223, 0.09), transparent 27%),
			linear-gradient(90deg, #f9fcfe 0%, #fff 48%, #f5fbfe 100%);
	}

	.wsp-reference-hero::before {
		position: absolute;
		inset: 0;
		background:
			linear-gradient(rgba(8, 127, 194, 0.024) 1px, transparent 1px),
			linear-gradient(90deg, rgba(8, 127, 194, 0.024) 1px, transparent 1px);
		background-size: 44px 44px;
		content: "";
		mask-image: linear-gradient(90deg, #000, transparent 58%);
		pointer-events: none;
	}

	.wsp-reference-hero__panel {
		position: relative;
		z-index: 1;
		display: grid;
		grid-template-columns: minmax(340px, 0.82fr) minmax(480px, 1.18fr);
		gap: clamp(22px, 3.2vw, 52px);
		align-items: stretch;
		min-height: var(--wsp-d33-strip-size);
		max-height: 280px;
	}

	.wsp-reference-hero__copy {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-width: 0;
		padding-block: 4px;
	}

	.wsp-reference-hero__copy .aos-eyebrow {
		margin: 0 0 6px;
		color: var(--wsp-d33-blue);
		font-size: 0.68rem;
		letter-spacing: 0.1em;
	}

	.wsp-reference-hero__copy h1 {
		max-width: 20ch;
		margin: 0;
		color: var(--wsp-d33-ink);
		font-family: var(--aos-font-family-display);
		font-size: clamp(2.1rem, 3.1vw, 3.35rem);
		line-height: 1;
		letter-spacing: -0.035em;
	}

	.wsp-reference-hero__copy > p:not(.aos-eyebrow) {
		max-width: 54ch;
		margin: 8px 0 0;
		color: var(--wsp-d33-copy);
		font-size: clamp(0.84rem, 0.92vw, 0.98rem);
		line-height: 1.52;
	}

	.wsp-reference-hero__actions {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin-block-start: 10px;
	}

	.wsp-reference-hero__actions .aos-button {
		min-height: 42px;
		padding: 10px 18px;
		border-radius: 5px;
		font-size: 0.8rem;
	}

	.wsp-reference-hero__actions .aos-button svg {
		width: 16px;
		height: 16px;
	}

	.wsp-reference-hero__benefits {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(8px, 1.2vw, 18px);
		padding: 0;
		margin: 8px 0 0;
		list-style: none;
	}

	.wsp-reference-hero__benefits li {
		display: grid;
		grid-template-columns: 27px minmax(0, 1fr);
		align-items: center;
		gap: 7px;
		min-width: 0;
		color: var(--wsp-d33-ink);
		font-size: clamp(0.66rem, 0.72vw, 0.76rem);
		font-weight: 700;
		line-height: 1.25;
	}

	.wsp-reference-hero__benefits svg {
		width: 27px;
		height: 27px;
		color: var(--wsp-d33-blue);
	}

	.wsp-reference-hero__media {
		position: relative;
		min-width: 0;
		height: var(--wsp-d33-strip-size);
		max-height: 280px;
		margin: 0;
		overflow: hidden;
		border: 1px solid var(--wsp-d33-line);
		border-radius: var(--wsp-d33-radius);
		background: linear-gradient(135deg, #eef4f7, #dfeaf0);
		box-shadow: var(--wsp-d33-shadow);
	}

	.wsp-reference-hero__media::after {
		position: absolute;
		inset: 0;
		border: 1px solid rgba(255, 255, 255, 0.46);
		border-radius: inherit;
		content: "";
		pointer-events: none;
	}

	.wsp-reference-hero__image {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 62% center;
	}

	/* The reference shows an immediate, compact five-card equipment row. */
	.wsp-catalog-first .wsp-home-categories {
		padding-block: 16px 25px;
		border-block-end: 1px solid var(--wsp-d33-line);
		background: rgba(255, 255, 255, 0.96);
	}

	.wsp-catalog-first .wsp-home-categories__heading {
		display: block;
		margin-block-end: 9px;
	}

	.wsp-catalog-first .wsp-home-categories__heading .aos-eyebrow {
		margin: 0;
		font-size: 0.68rem;
		letter-spacing: 0.09em;
	}

	.wsp-catalog-first .wsp-home-categories__heading h2 {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.wsp-catalog-first .wsp-home-categories__heading > a {
		display: none;
	}

	.wsp-catalog-first .wsp-home-category-grid {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: clamp(8px, 1vw, 14px);
	}

	.wsp-catalog-first .wsp-home-category-card {
		grid-template-columns: minmax(0, 1fr) 22px;
		grid-template-rows: 104px auto;
		gap: 8px;
		min-height: 172px;
		padding: 10px 12px 12px;
		border: 1px solid var(--wsp-d33-line);
		border-radius: var(--wsp-d33-radius);
		background: #fff;
		box-shadow: 0 5px 16px rgba(10, 32, 56, 0.055);
		transition:
			transform 160ms cubic-bezier(0.25, 1, 0.5, 1),
			border-color 160ms ease,
			box-shadow 160ms ease;
	}

	.wsp-catalog-first .wsp-home-category-card::before {
		display: none;
	}

	.wsp-catalog-first .wsp-home-category-card:hover {
		transform: translateY(-2px);
		border-color: rgba(8, 127, 194, 0.38);
		box-shadow: 0 10px 24px rgba(10, 32, 56, 0.09);
	}

	.wsp-catalog-first .wsp-home-category-card__media {
		grid-column: 1 / -1;
		width: 100%;
		height: 104px;
		background: linear-gradient(180deg, #f9fcfe, #fff);
	}

	.wsp-catalog-first .wsp-home-category-card__media img {
		width: 100%;
		height: 100%;
		padding: 0 8px;
		object-fit: contain;
	}

	.wsp-catalog-first .wsp-home-category-card__copy {
		gap: 2px;
	}

	.wsp-catalog-first .wsp-home-category-card__copy strong {
		font-size: clamp(0.84rem, 0.88vw, 0.94rem);
	}

	.wsp-catalog-first .wsp-home-category-card__copy small {
		font-size: 0.7rem;
	}

	.wsp-catalog-first .wsp-home-category-card__arrow {
		align-self: end;
	}

	/* Compact reference review band. */
	.wsp-catalog-first .wsp-feedback {
		padding-block: clamp(28px, 3vw, 42px);
		background:
			linear-gradient(103deg, rgba(235, 248, 253, 0.98) 0 31%, rgba(255, 255, 255, 0.99) 31% 100%) !important;
	}

	.wsp-catalog-first .wsp-feedback__shell {
		grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr) !important;
		gap: clamp(24px, 3.5vw, 48px);
	}

	.wsp-catalog-first .wsp-review-carousel {
		min-height: 204px;
	}

	.wsp-catalog-first .wsp-review-card {
		min-height: 172px !important;
		max-height: 206px;
	}

	/* Reference cards stay dense enough to show six real products. */
	.wsp-catalog-first .aos-featured-section {
		padding-block: clamp(32px, 3.8vw, 54px);
	}

	.wsp-catalog-first .aos-featured-grid > .aos-product-card {
		flex-basis: calc((100% - 60px) / 6);
	}

	/* Official brand artwork replaces styled text. */
	.wsp-catalog-first .wsp-brand-showcase {
		padding-block: clamp(28px, 3vw, 44px);
	}

	.wsp-catalog-first .wsp-brand-showcase__brand {
		min-height: 142px;
	}

	.wsp-catalog-first .wsp-brand-showcase__logo {
		min-height: 54px;
	}

	.wsp-catalog-first .wsp-brand-showcase__logo-image {
		max-width: 190px;
		max-height: 54px;
	}

	.wsp-catalog-first .wsp-brand-showcase__brand--goodman .wsp-brand-showcase__logo-image {
		max-width: 176px;
	}

	.wsp-catalog-first .wsp-brand-showcase__brand .aos-brand-manifest-main > span:last-child {
		color: var(--wsp-d33-copy);
		font-size: 0.78rem;
	}

	/* Keep the selection workspace close to the reference proportions. */
	.wsp-catalog-first .wsp-equipment-selector {
		padding-block: clamp(32px, 3.8vw, 54px);
	}

	.wsp-catalog-first .wsp-equipment-selector__heading {
		grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	}

	/* Slanted navy-to-image blend: no vertical hard split. */
	.wsp-catalog-first .wsp-nationwide-support {
		padding-block: clamp(28px, 3.2vw, 46px);
	}

	.wsp-catalog-first .wsp-nationwide-support__panel {
		position: relative;
		display: block;
		min-height: 310px;
		overflow: hidden;
		border: 1px solid rgba(130, 180, 208, 0.38);
		border-radius: 9px;
		background: var(--wsp-d33-navy);
		box-shadow: 0 18px 44px rgba(3, 16, 30, 0.17);
	}

	.wsp-catalog-first .wsp-nationwide-support__panel::before {
		position: absolute;
		z-index: 1;
		inset: 0;
		background:
			linear-gradient(
				105deg,
				rgba(6, 25, 45, 1) 0%,
				rgba(6, 25, 45, 0.99) 35%,
				rgba(6, 25, 45, 0.93) 43%,
				rgba(6, 25, 45, 0.68) 50%,
				rgba(6, 25, 45, 0.24) 59%,
				rgba(6, 25, 45, 0) 69%
			);
		content: "";
		pointer-events: none;
	}

	.wsp-catalog-first .wsp-nationwide-support__panel::after {
		position: absolute;
		z-index: 3;
		inset: 0;
		border: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: inherit;
		content: "";
		pointer-events: none;
	}

	.wsp-catalog-first .wsp-nationwide-support__copy {
		position: relative;
		z-index: 2;
		display: flex;
		width: min(53%, 690px);
		min-height: 310px;
		justify-content: center;
		padding: clamp(28px, 3.6vw, 50px);
		background: transparent;
	}

	.wsp-catalog-first .wsp-nationwide-support__copy h2 {
		max-width: 14ch;
		font-size: clamp(2rem, 2.75vw, 3rem);
	}

	.wsp-catalog-first .wsp-nationwide-support__media {
		position: absolute;
		z-index: 0;
		inset: 0;
		min-height: 310px;
		background: #152536;
	}

	.wsp-catalog-first .wsp-nationwide-support__media::after {
		display: none;
	}

	.wsp-catalog-first .wsp-nationwide-support__media img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: 64% center;
	}

	.wsp-catalog-first :where(.wsp-reference-hero, .wsp-home-categories, .wsp-brand-showcase, .wsp-equipment-selector, .wsp-nationwide-support) :where(a, button):focus-visible {
		outline: 2px solid var(--wsp-d33-cyan);
		outline-offset: 3px;
	}
}

@media (min-width: 621px) and (max-width: 980px) {
	.wsp-reference-hero__panel {
		grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
		gap: 18px;
	}

	.wsp-reference-hero__copy h1 {
		font-size: clamp(1.85rem, 4.2vw, 2.55rem);
	}

	.wsp-reference-hero__copy > p:not(.aos-eyebrow) {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.wsp-reference-hero__benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wsp-reference-hero__benefits li {
		grid-template-columns: 22px minmax(0, 1fr);
		font-size: 0.62rem;
	}

	.wsp-reference-hero__benefits svg {
		width: 22px;
		height: 22px;
	}

	.wsp-catalog-first .wsp-home-category-card {
		grid-template-rows: 90px auto;
		min-height: 158px;
	}

	.wsp-catalog-first .wsp-home-category-card__media {
		height: 90px;
	}

	.wsp-catalog-first .wsp-nationwide-support__copy {
		width: 62%;
	}
}

@media (max-width: 620px) {
	.wsp-reference-hero {
		display: none !important;
	}

	.wsp-brand-showcase__logo-image {
		max-width: 150px;
		max-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wsp-reference-hero *,
	.wsp-home-category-card {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
