/**
 * Shared hub hero — cover + strip under cover.
 * Aanbod fietsen (3 cards), Merken (brand marquee), Blog (3 cards).
 *
 * Pattern: full-shell rounded cover (≈1200px), then page-specific bar.
 */

body.page-id-23,
body.elementor-page-23,
body.page-id-6391,
body.page-id-7824,
body.page-slug-aanbod-nieuwe-fietsen {
	--fv-usps-blue: #008afd;
	--fv-usps-navy: #0b1f33;
	--fv-usps-text: #0f172a;
	--fv-usps-muted: #5c6670;
	--fv-usps-border: #e2e8f0;
	--fv-usps-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.07);
	--fv-usps-radius: 20px;
	--fv-hub-cover-radius: 20px;
	--fv-hub-cover-gap: 0.75rem;
	--fv-usps-bar-max: 960px;
	--fv-hub-card-radius: 14px;
	--fv-hub-card-gap: 0.85rem;
	/* Locked top rhythm under header */
	--fv-usps-page-pad-top: 1.5rem;
	/* Space below USP bar / marquee before page content */
	--fv-usps-gap-below: 2.25rem;
}

/* Equal content top inset + horizontal shell on all three hub pages */
body.page-id-23 #content > .ast-container,
body.elementor-page-23 #content > .ast-container,
body.page-id-23 .site-content > .ast-container,
body.elementor-page-23 .site-content > .ast-container,
body.page-id-6391 #content > .ast-container,
body.page-id-6391 .site-content > .ast-container,
body.page-id-7824 #content > .ast-container,
body.page-id-7824 .site-content > .ast-container,
body.page-slug-aanbod-nieuwe-fietsen #content > .ast-container,
body.page-slug-aanbod-nieuwe-fietsen .site-content > .ast-container {
	max-width: var(--fv-site-width, 1200px) !important;
	width: 100% !important;
	padding-left: 1.25rem !important;
	padding-right: 1.25rem !important;
	padding-top: var(--fv-usps-page-pad-top) !important;
	box-sizing: border-box;
}

body.page-id-23 #primary,
body.elementor-page-23 #primary,
body.page-id-6391 .entry-content,
body.page-id-7824 .entry-content,
body.page-slug-aanbod-nieuwe-fietsen .entry-content {
	padding-top: 0 !important;
}

body.page-id-23 .entry-header,
body.elementor-page-23 .entry-header,
body.page-id-6391 .entry-header,
body.page-id-7824 .entry-header,
body.page-slug-aanbod-nieuwe-fietsen .entry-header,
body.page-id-23 h1.entry-title,
body.page-id-6391 h1.entry-title,
body.page-id-7824 h1.entry-title {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Hub hero shell: cover full width, strip inset below
   ------------------------------------------------------------------------- */

.fv-hub-hero {
	width: 100%;
	max-width: var(--fv-site-width, 1200px);
	margin: 0 0 var(--fv-usps-gap-below);
	padding: 0;
	box-sizing: border-box;
}

.fv-hub-cover {
	display: block;
	width: 100%;
	max-width: var(--fv-site-width, 1200px);
	margin: 0 0 var(--fv-hub-cover-gap);
	padding: 0;
	border-radius: var(--fv-hub-cover-radius);
	overflow: hidden;
	aspect-ratio: 2.8 / 1;
	max-height: 420px;
	background: #e8eef4;
	box-sizing: border-box;
}

.fv-hub-cover__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
}

.fv-hub-scroll-target {
	display: block;
	width: 0;
	height: 0;
	overflow: hidden;
	scroll-margin-top: 6rem;
}

#categories {
	scroll-margin-top: 6rem;
}

/* -------------------------------------------------------------------------
   Legacy single USP card (fallback)
   ------------------------------------------------------------------------- */

.fv-usps {
	width: 100%;
	max-width: var(--fv-usps-bar-max);
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.fv-usps__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 0;
	padding: 1.15rem 1.25rem;
	background: #fff;
	border: 1px solid var(--fv-usps-border);
	border-radius: var(--fv-usps-radius);
	box-shadow: var(--fv-usps-shadow);
	box-sizing: border-box;
}

.fv-usps__item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
	text-align: left;
}

.fv-usps__title {
	color: var(--fv-usps-blue);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.3;
}

.fv-usps__text {
	color: var(--fv-usps-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

@media (min-width: 640px) {
	.fv-usps__inner {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.25rem;
		padding: 1.35rem 1.5rem;
	}
}

/* -------------------------------------------------------------------------
   3-card hub bar (Aanbod + Blog)
   Equal-height grid; progressive hide: icons → subtitles → titles only.
   Breakpoints:
     ≤479px  — titles only
     480–719 — titles + subtitles (icons hidden)
     ≥720px  — titles + subtitles + icons
   ------------------------------------------------------------------------- */

.fv-hub-hero--cards-aanbod .fv-hub-cover,
.fv-hub-hero--cards-blog .fv-hub-cover {
	margin-bottom: 0;
}

.fv-hub-cards {
	width: 100%;
	max-width: var(--fv-usps-bar-max);
	/* Mild overlap with cover; less pull-up = more air under photo */
	margin: -0.55rem auto 0;
	padding: 0;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
}

.fv-hub-cards__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.fv-hub-cards__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.55rem;
	min-width: 0;
	height: 100%;
	min-height: 3.1rem;
	padding: 0.65rem 0.55rem;
	background: #fff;
	border: 1px solid var(--fv-usps-border);
	border-radius: var(--fv-hub-card-radius);
	box-shadow: var(--fv-usps-shadow);
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fv-hub-cards__card:hover {
	border-color: rgba(0, 138, 253, 0.35);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.1);
	transform: translateY(-1px);
}

.fv-hub-cards__card:focus-visible {
	outline: 2px solid var(--fv-usps-blue);
	outline-offset: 2px;
}

.fv-hub-cards__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	min-width: 0;
	flex: 1 1 auto;
	align-self: stretch;
}

/* Locked title/subtitle slots so all 3 cards share one baseline */
.fv-hub-cards__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-family: "Open Sans", sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.25;
	height: calc(1.25em * 2);
	color: var(--fv-usps-blue);
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.fv-hub-cards__subtitle {
	display: none;
	font-family: "Open Sans", sans-serif;
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.35;
	height: calc(1.35em * 2);
	color: var(--fv-usps-muted);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* Base / narrow mobile: icons + subtitles hidden — titles only */
.fv-hub-cards__icon {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--fv-usps-navy);
	opacity: 0.88;
}

.fv-hub-cards__icon-svg {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
}

/* Mid: show subtitles, keep icons hidden */
@media (min-width: 480px) {
	.fv-hub-cards__inner {
		gap: 0.65rem;
	}

	.fv-hub-cards__card {
		min-height: 4.25rem;
		padding: 0.8rem 0.75rem 0.8rem 0.9rem;
	}

	.fv-hub-cards__title {
		font-size: 0.88rem;
	}

	.fv-hub-cards__subtitle {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		font-size: 0.78rem;
	}
}

/* Desktop / large tablet: full cards with icons */
@media (min-width: 720px) {
	.fv-hub-cards__inner {
		gap: 1rem;
	}

	.fv-hub-cards__card {
		min-height: 5.1rem;
		padding: 1rem 1.05rem 1rem 1.2rem;
		gap: 0.75rem;
	}

	.fv-hub-cards__title {
		font-size: 0.98rem;
	}

	.fv-hub-cards__subtitle {
		font-size: 0.82rem;
	}

	.fv-hub-cards__icon {
		display: flex;
	}
}

@media (min-width: 900px) {
	.fv-hub-cards {
		margin-top: -0.8rem;
	}

	.fv-hub-cards__title {
		font-size: 1.02rem;
	}

	.fv-hub-cards__subtitle {
		font-size: 0.86rem;
	}
}

/* -------------------------------------------------------------------------
   Brand marquee (Merken)
   ------------------------------------------------------------------------- */

.fv-hub-hero--marquee .fv-hub-cover {
	margin-bottom: 1.35rem;
}

.fv-brands-marquee {
	width: 100%;
	max-width: var(--fv-site-width, 1200px);
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.fv-brands-marquee__shell {
	height: 56px;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--fv-usps-border);
	border-radius: 14px;
	box-shadow: var(--fv-usps-shadow);
	overflow: hidden;
	box-sizing: border-box;
}

.fv-brands-marquee__viewport {
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.fv-brands-marquee__track {
	display: flex;
	width: max-content;
	align-items: center;
	animation: fv-brands-marquee-scroll 42s linear infinite;
	will-change: transform;
}

.fv-brands-marquee__shell:hover .fv-brands-marquee__track {
	animation-play-state: paused;
}

.fv-brands-marquee__list {
	display: flex;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.fv-brands-marquee__item {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 1.35rem;
	position: relative;
}

.fv-brands-marquee__item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(0, 138, 253, 0.45);
	transform: translateY(-50%);
}

.fv-brands-marquee__link {
	font-family: "Open Sans", sans-serif;
	font-size: 0.92rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	color: var(--fv-usps-navy);
	text-decoration: none;
	white-space: nowrap;
	line-height: 1;
	transition: color 0.15s ease;
}

a.fv-brands-marquee__link:hover,
a.fv-brands-marquee__link:focus-visible {
	color: var(--fv-usps-blue);
}

a.fv-brands-marquee__link:focus-visible {
	outline: 2px solid var(--fv-usps-blue);
	outline-offset: 3px;
	border-radius: 3px;
}

.fv-brands-marquee__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 1rem;
	background: #fff;
	border: 1px dashed rgba(0, 138, 253, 0.35);
	border-radius: 14px;
	color: var(--fv-usps-muted);
	font-size: 0.9rem;
}

@keyframes fv-brands-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.fv-brands-marquee__track {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
		row-gap: 0.35rem;
		padding: 0.55rem 0.75rem;
	}

	.fv-brands-marquee__shell {
		height: auto;
		min-height: 52px;
	}

	.fv-brands-marquee__list:nth-child(2) {
		display: none;
	}

	.fv-brands-marquee__viewport {
		mask-image: none;
		-webkit-mask-image: none;
		overflow: visible;
	}

	.fv-brands-marquee__list {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 0.35rem;
	}
}

/* -------------------------------------------------------------------------
   Breakpoints — shared hub rhythm
   ------------------------------------------------------------------------- */

@media (min-width: 768px) {
	body.page-id-23,
	body.elementor-page-23,
	body.page-id-6391,
	body.page-id-7824,
	body.page-slug-aanbod-nieuwe-fietsen {
		--fv-usps-page-pad-top: 1.75rem;
		--fv-usps-gap-below: 2.5rem;
		--fv-hub-cover-gap: 0.85rem;
		--fv-usps-bar-max: 980px;
	}

	.fv-hub-cover {
		aspect-ratio: 3 / 1;
		max-height: 400px;
	}

	.fv-brands-marquee__shell {
		height: 58px;
	}
}

@media (max-width: 639px) {
	body.page-id-23,
	body.elementor-page-23,
	body.page-id-6391,
	body.page-id-7824,
	body.page-slug-aanbod-nieuwe-fietsen {
		--fv-usps-bar-max: 100%;
		--fv-hub-cover-radius: 16px;
		--fv-usps-radius: 16px;
		--fv-hub-card-radius: 12px;
	}

	.fv-hub-cover {
		width: 100%;
		aspect-ratio: 2.2 / 1;
		max-height: 220px;
	}

	.fv-hub-cards {
		margin-top: -0.25rem;
		max-width: 100%;
	}

	.fv-brands-marquee__shell {
		height: 50px;
		border-radius: 12px;
	}

	.fv-brands-marquee__link {
		font-size: 0.86rem;
	}

	.fv-brands-marquee__item {
		padding: 0 1.1rem;
	}
}

/* Narrowest phones (~390px): tighter title-only cards, still tappable */
@media (max-width: 479px) {
	.fv-hub-cards__card {
		min-height: 3.35rem;
		padding: 0.55rem 0.4rem;
		justify-content: center;
	}

	.fv-hub-cards__copy {
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.fv-hub-cards__title {
		font-size: 0.74rem;
		/* Keep 2-line slot so wrapped vs single-line titles stay level */
		height: calc(1.25em * 2);
	}

	.fv-hub-cover {
		max-height: 180px;
	}
}

@media (min-width: 640px) and (max-width: 899px) {
	body.page-id-23,
	body.elementor-page-23,
	body.page-id-6391,
	body.page-id-7824,
	body.page-slug-aanbod-nieuwe-fietsen {
		--fv-usps-bar-max: 92%;
	}
}
