/**
 * Homepage + chrome layout. Loaded after style.css.
 * Seeded page HTML often lacks is-layout-constrained, so we pin
 * a single 1180px column and CSS grids instead of wrapping columns.
 */

:root {
	--sh-container: 1180px;
	--sh-gutter: clamp(20px, 3.2vw, 28px);
	--sh-section-y: clamp(3.25rem, 6.5vw, 5.5rem);
	--sh-band-y: clamp(1.5rem, 3vw, 2rem);
}

/* ------------------------------------------------------------------ */
/* Shared column — header, hero, sections, footer share one axis      */
/* ------------------------------------------------------------------ */
.sh-site-header,
.sh-site-footer,
.sh-hero,
.sh-trust,
.sh-compat-section,
.sh-solutions-section,
.sh-section,
.sh-contact-band,
#marques,
#modeles,
#installation,
#showroom,
#faq {
	padding-inline: var(--sh-gutter) !important;
}

.sh-hero,
.sh-compat-section,
.sh-solutions-section,
.sh-section,
.sh-contact-band,
#marques,
#modeles,
#installation,
#showroom,
#faq {
	padding-block: var(--sh-section-y) !important;
}

.sh-trust {
	padding-block: var(--sh-band-y) !important;
}

.sh-site-header > *,
.sh-site-footer > *,
.sh-hero > *,
.sh-trust > *,
.sh-compat-section > *,
.sh-solutions-section > *,
.sh-section > *,
#marques > *,
#modeles > *,
#installation > *,
#showroom > *,
.sh-contact-band > * {
	max-width: var(--sh-container);
	margin-inline: auto;
	width: 100%;
}

#faq > * {
	margin-inline: auto;
	width: 100%;
}

.sh-works-section > .sh-work-dialog {
	width: min(400px, calc(100vw - 32px));
	max-width: min(400px, calc(100vw - 32px));
	height: auto;
	aspect-ratio: 9 / 16;
	max-height: 86dvh;
	margin: auto;
	background: var(--sh-navy-deep);
	overflow: hidden;
	border-radius: 12px;
}

.sh-works-section > #shWorksData {
	display: none;
	width: 0;
	max-width: 0;
	margin: 0;
}

.sh-contact-band > * {
	max-width: var(--sh-container);
}

/* ------------------------------------------------------------------ */
/* Header — one row, collapse nav before it overflows                 */
/* ------------------------------------------------------------------ */
.sh-site-header {
	padding-block: 12px !important;
}

.sh-site-header > .wp-block-group.is-layout-flex,
.sh-site-header .is-content-justification-space-between {
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 16px !important;
	min-width: 0;
	width: 100%;
}

.sh-site-header .wp-block-site-title {
	font-size: 1.0625rem !important;
	white-space: nowrap;
}

.sh-site-header .wp-block-navigation {
	min-width: 0;
	flex: 1 1 auto;
	justify-content: flex-end !important;
}

.sh-site-header .wp-block-navigation__container {
	gap: 8px 18px !important;
}

.sh-site-header .wp-block-navigation-item__label {
	font-size: 0.875rem;
	white-space: nowrap;
}

.sh-header-wa-link {
	flex-shrink: 0;
	white-space: nowrap;
}

@media (max-width: 1023px) {
	.sh-site-header .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.sh-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.sh-site-header .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
	}

	.sh-site-header .wp-block-group.is-layout-flex {
		flex-wrap: nowrap !important;
	}

	.sh-site-header .wp-block-navigation {
		flex: 0 0 auto;
		width: auto;
	}

	.sh-site-header {
		padding-block: 10px !important;
	}
}

@media (min-width: 1024px) {
	.sh-site-header .wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.sh-site-header .wp-block-navigation__responsive-container {
		display: block !important;
		position: static !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
		background: transparent !important;
	}

	.sh-site-header .wp-block-navigation__responsive-container-content {
		display: flex !important;
		align-items: center;
		justify-content: flex-end;
	}
}

/* ------------------------------------------------------------------ */
/* Hero — split only on real desktop; lifestyle image is the visual   */
/* ------------------------------------------------------------------ */
.sh-hero {
	display: block !important;
	min-height: 0 !important;
	padding-block: clamp(2rem, 4.5vw, 3.5rem) !important;
}

/* Full-bleed stage: image edge-to-edge, copy centered */
.sh-hero--stage {
	display: flex !important;
	align-items: center !important;
	min-height: min(92dvh, 820px) !important;
	padding-inline: 0 !important;
	padding-block: 0 !important;
}

.sh-hero--stage > * {
	max-width: none !important;
	width: 100% !important;
	margin-inline: 0 !important;
}

.sh-hero .wp-block-html {
	width: 100%;
}

.sh-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
	width: 100%;
}

.sh-hero-grid--stage {
	position: relative;
	display: grid;
	place-items: center;
	min-height: min(92dvh, 820px);
	gap: 0;
	padding-inline: var(--sh-gutter);
	padding-block: clamp(5.75rem, 14vw, 7.5rem) clamp(3rem, 7vw, 4.75rem);
	align-items: center;
	justify-items: center;
}

.sh-hero-grid--stage .sh-hero-visual {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	min-width: 0;
	width: 100%;
	height: 100%;
}

.sh-hero-grid--stage .sh-hero-visual::before {
	display: none;
}

.sh-hero-grid--stage .sh-hero-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 75% 60% at 50% 42%, rgba(10, 39, 64, 0.28) 0%, rgba(10, 39, 64, 0.48) 72%),
		linear-gradient(180deg, rgba(10, 39, 64, 0.42) 0%, rgba(10, 39, 64, 0.22) 40%, rgba(10, 39, 64, 0.58) 100%);
}

@media (max-width: 720px) {
	.sh-hero-grid--stage .sh-hero-lifestyle-img {
		object-position: 82% 26% !important;
	}

	.sh-hero-grid--stage .sh-hero-visual::after {
		background:
			radial-gradient(ellipse 95% 65% at 50% 38%, rgba(10, 39, 64, 0.3) 0%, rgba(10, 39, 64, 0.52) 80%),
			linear-gradient(180deg, rgba(10, 39, 64, 0.4) 0%, rgba(10, 39, 64, 0.2) 42%, rgba(10, 39, 64, 0.62) 100%);
	}

	.sh-hero--stage::before {
		opacity: 0.12;
	}
}

.sh-hero-grid--stage .sh-hero-copy {
	position: relative;
	z-index: 2;
	width: min(100%, 40rem);
	margin-inline: auto;
	padding: 0;
	text-align: center;
	align-items: center;
	justify-content: center;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.sh-hero-copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 12px;
}

.sh-hero-title {
	max-width: 11.5em;
}

.sh-hero-grid--stage .sh-hero-title {
	max-width: none;
}

.sh-hero-lead {
	max-width: 42ch !important;
	margin-bottom: 24px !important;
}

.sh-hero-cta-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 0 !important;
}

.sh-hero-visual {
	position: relative;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.sh-hero-visual::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 12%;
	width: min(88%, 420px);
	height: 48%;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(64, 136, 176, 0.38), transparent 72%);
	pointer-events: none;
	z-index: 0;
}

.sh-hero-lifestyle {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	margin: 0;
}

.sh-hero-grid--stage .sh-hero-lifestyle {
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.sh-hero-lifestyle-img {
	width: 100% !important;
	height: auto !important;
	max-height: min(58dvh, 520px) !important;
	object-fit: cover !important;
	object-position: center 35% !important;
	filter: none;
}

.sh-hero-grid--stage .sh-hero-lifestyle-img {
	height: 100% !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center 32% !important;
	filter: blur(0.6px) saturate(1.05) brightness(1) !important;
	transform: scale(1.04);
}

.sh-hero-showcase {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.sh-showcase-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.sh-showcase-item[hidden] {
	display: none !important;
}

.sh-hero-product,
.sh-hero-showcase img {
	display: block;
	position: relative;
	z-index: 1;
	width: min(100%, 340px) !important;
	height: min(52dvh, 420px) !important;
	max-width: 100% !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center 22% !important;
	filter: drop-shadow(0 28px 40px rgba(5, 20, 35, 0.55));
}

.sh-hero-product-name {
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: var(--sh-on-dark-mute);
	line-height: 1.4;
}

.sh-hero-product-name strong {
	display: block;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--sh-on-dark);
}

.sh-showcase-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
}

.sh-showcase-tab {
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

@media (min-width: 1100px) {
	.sh-hero-grid:not(.sh-hero-grid--stage) {
		grid-template-columns: minmax(0, 5.2fr) minmax(0, 4.8fr);
		gap: 24px 56px;
		align-items: start;
	}

	.sh-hero-grid:not(.sh-hero-grid--stage) .sh-hero-visual {
		justify-content: flex-end;
		min-height: 0;
	}

	.sh-hero-product,
	.sh-hero-showcase img {
		width: min(100%, 460px) !important;
		height: min(72dvh, 620px) !important;
		object-fit: cover !important;
		object-position: center 18% !important;
	}

	.sh-hero-grid:not(.sh-hero-grid--stage) .sh-hero-lifestyle {
		width: min(100%, 460px);
	}

	.sh-hero-grid:not(.sh-hero-grid--stage) .sh-hero-lifestyle-img {
		max-height: min(72dvh, 620px) !important;
	}

	.sh-hero-grid:not(.sh-hero-grid--stage) .sh-hero-copy {
		padding-top: 36px;
		padding-bottom: 24px;
	}
}

@media (max-width: 560px) {
	.sh-hero-cta-group .wp-element-button,
	.sh-hero-cta-group a {
		width: 100%;
		justify-content: center;
	}

	.sh-hero-visual::before {
		bottom: 22%;
	}

	.sh-hero-grid--stage .sh-hero-cta-group {
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Trust — equal columns, divide (not cards)                          */
/* ------------------------------------------------------------------ */
.sh-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sh-trust-item {
	min-width: 0;
	height: auto;
	align-items: center;
	padding-inline: 20px;
}

.sh-trust-item:first-child {
	padding-inline-start: 0;
}

.sh-trust-item:last-child {
	padding-inline-end: 0;
}

.sh-trust-item:not(:first-child) {
	border-inline-start: 1px solid var(--sh-border);
}

.sh-trust-copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.sh-trust-label {
	color: var(--sh-text-mute);
	font-size: 0.8125rem;
	line-height: 1.35;
	font-weight: 500;
}

.sh-stat-num {
	display: block;
}

@media (max-width: 900px) {
	.sh-trust-grid {
		grid-template-columns: 1fr 1fr;
		gap: 18px 0;
	}

	.sh-trust-item {
		padding-inline: 16px;
	}

	.sh-trust-item:nth-child(odd) {
		padding-inline-start: 0;
		border-inline-start: 0;
	}

	.sh-trust-item:nth-child(even) {
		border-inline-start: 1px solid var(--sh-border);
	}

	.sh-trust-item:nth-child(-n + 2) {
		padding-block-end: 4px;
		border-block-end: 1px solid var(--sh-border);
	}
}

@media (max-width: 560px) {
	.sh-trust-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.sh-trust-item,
	.sh-trust-item:nth-child(odd),
	.sh-trust-item:nth-child(even),
	.sh-trust-item:first-child,
	.sh-trust-item:last-child {
		padding-inline: 0;
		padding-block: 14px;
		border-inline-start: 0;
		border-block-end: 1px solid var(--sh-border);
	}

	.sh-trust-item:first-child {
		padding-block-start: 0;
	}

	.sh-trust-item:last-child {
		padding-block-end: 0;
		border-block-end: 0;
	}

	.sh-trust-item:nth-child(-n + 2) {
		border-block-end: 1px solid var(--sh-border);
	}
}

/* ------------------------------------------------------------------ */
/* Section headers — left aligned, consistent stack                   */
/* ------------------------------------------------------------------ */
.sh-section-header {
	margin-bottom: 32px;
}

.sh-section-header.text-center {
	text-align: left;
}

.sh-section-header.text-center .sh-lead-text {
	margin-inline: 0;
}

.sh-catalog-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 24px;
	margin-bottom: 32px;
}

.sh-catalog-head > div {
	flex: 1 1 28rem;
	min-width: 0;
}

.sh-catalog-head h2 {
	margin: 4px 0 8px !important;
}

.sh-catalog-head p {
	margin: 0 !important;
}

.sh-catalog-head .sh-btn-secondary {
	flex-shrink: 0;
	align-self: flex-end;
}

/* ------------------------------------------------------------------ */
/* Quiz — wizard stepper                                              */
/* ------------------------------------------------------------------ */
.sh-quiz--wizard {
	width: 100%;
	max-width: 40rem;
	margin-inline: auto;
}

.sh-quiz-stage {
	width: 100%;
	min-width: 0;
}

.sh-quiz-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.sh-quiz-btn {
	cursor: pointer;
}

.sh-quiz-nav-btn {
	cursor: pointer;
}

.sh-quiz-product {
	width: 100%;
	min-width: 0;
}

/* ------------------------------------------------------------------ */
/* Use cases — zig-zag (layout overrides)                             */
/* ------------------------------------------------------------------ */
.sh-use-cases {
	width: 100%;
}

.sh-use-case {
	min-width: 0;
}

.sh-use-body {
	min-width: 0;
}

.sh-use-link {
	cursor: pointer;
}

/* Legacy solutions bento (older content) */
.sh-solutions-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 20px;
	align-items: stretch;
}

.sh-solution-card {
	min-width: 0;
	height: 100%;
}

.sh-solution-card.is-highlighted {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.sh-solution-card:hover {
	transform: none;
}

@media (hover: hover) and (pointer: fine) {
	.sh-solution-card:hover {
		transform: translateY(-3px);
	}
}

@media (max-width: 900px) {
	.sh-solutions-grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.sh-solution-card.is-highlighted {
		grid-column: auto;
		grid-row: auto;
	}
}

.sh-sol-list li::before {
	content: "";
	width: 14px;
	height: 14px;
	margin-top: 3px;
	background: no-repeat center / 14px
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234088B0' stroke-width='2.4'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ */
/* Marques / showroom — CSS grid                                      */
/* ------------------------------------------------------------------ */
.sh-marques {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100%;
}

.sh-marque {
	min-width: 0;
	height: 100%;
}

.sh-marque-visual {
	position: relative;
	overflow: hidden;
}

.sh-marque-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sh-marque-body {
	min-width: 0;
}

.sh-marque-link {
	cursor: pointer;
}

@media (max-width: 820px) {
	.sh-marques {
		grid-template-columns: 1fr !important;
	}
}

.sh-brands-grid {
	display: grid;
	gap: 24px;
	align-items: stretch;
	grid-template-columns: 1fr 1fr;
}

.sh-showroom-stage {
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.sh-showroom-map {
	min-height: 440px;
	height: 100%;
}

.sh-reviews-block {
	margin-top: 0.5rem;
	padding-top: clamp(1.5rem, 3vw, 2rem);
	border-top: 1px solid var(--sh-border);
}

.sh-brand-panel {
	height: 100%;
}

.sh-brand-highlights span {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.sh-brand-highlights span::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: 0.45em;
	flex-shrink: 0;
	border-radius: 1px;
	background: var(--sh-steel);
}

.sh-brand-panel:hover,
.sh-hw-card:hover,
.sh-timeline-item:hover,
.sh-install-step:hover {
	transform: none;
}

@media (hover: hover) and (pointer: fine) {
	.sh-brand-panel:hover {
		transform: translateY(-3px);
	}

	.sh-hw-card:hover {
		transform: translateY(-4px);
	}

	.sh-timeline-item:hover {
		transform: none;
	}
}

@media (max-width: 800px) {
	.sh-brands-grid,
	.sh-showroom-stage {
		grid-template-columns: 1fr;
	}

	.sh-showroom-map {
		min-height: 0;
		height: auto;
		aspect-ratio: 4 / 3;
		order: 2;
	}

	.sh-showroom-copy {
		order: 1;
	}

	.sh-showroom-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.sh-showroom-actions .sh-btn-primary,
	.sh-showroom-directions {
		justify-content: center;
		width: 100%;
	}
}

/* ------------------------------------------------------------------ */
/* Catalog — product cards                                            */
/* ------------------------------------------------------------------ */
.sh-catalog {
	width: 100%;
}

.sh-catalog-slot,
.sh-catalog-card {
	min-width: 0;
}

.sh-catalog-media,
.sh-catalog-title a,
.sh-catalog-footer .sh-wa-cta {
	cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Installation process                                               */
/* ------------------------------------------------------------------ */
.sh-install {
	width: 100%;
}

.sh-install-step,
.sh-install-body {
	min-width: 0;
}

.sh-install-cta .sh-btn-primary {
	cursor: pointer;
}

/* ------------------------------------------------------------------ */
.sh-timeline-stepper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.sh-timeline-item {
	height: 100%;
	min-width: 0;
}

@media (max-width: 900px) {
	.sh-timeline-stepper {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.sh-timeline-stepper {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ */
/* Reviews — no emoji stars                                           */
/* ------------------------------------------------------------------ */
.sh-review-stars {
	display: flex;
	gap: 2px;
	letter-spacing: 0;
	margin-bottom: 8px;
	color: var(--sh-promo);
}

.sh-review-stars svg {
	width: 14px;
	height: 14px;
}

.sh-review-quote {
	font-style: normal;
}

.sh-reviews-block {
	gap: 12px;
}

/* ------------------------------------------------------------------ */
/* Motion — no section cascade (home.md); allow one hero entrance     */
/* ------------------------------------------------------------------ */
.sh-reveal,
.sh-reveal.is-visible,
.sh-hero-showcase,
.sh-hero-product {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.sh-pulse-dot,
	.sh-wa-pulse {
		animation: none !important;
	}

	.sh-hero-copy {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* FAQ: aside + accordion handled in style.css */
.sh-faq-layout {
	width: 100%;
}

.sh-contact {
	width: 100%;
}

.sh-cta-inner {
	align-items: flex-start;
	text-align: left;
}
