/* Voreva UX layer (1.6.0): announcement bar, hero scrim + CTA pills, trust bar, text minimums.
   Loads on every front-end page. Colours follow --vm-ink / --vm-paper from voreva-motion.css. */

/* ---------- 1. Announcement bar (only rendered when vm_announcement has text) ---------- */
.vm-ab {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	background: var(--vm-ink, #0b0b0b);
	color: var(--vm-paper, #fff);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	min-height: 36px;
	transition: opacity 0.22s ease, transform 0.22s ease;
}
.vm-ab-in {
	flex: 1;
	display: flex;
	justify-content: center;
	gap: 0 2.5em;
	padding: 9px 44px;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.vm-ab-in::-webkit-scrollbar { display: none; }
.vm-ab-item { flex: none; }
.vm-ab-item a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.vm-ab-x {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 52px;
	padding: 0 0 0 14px;
	border: 0;
	background: linear-gradient(to right, rgba(11, 11, 11, 0), var(--vm-ink, #0b0b0b) 35%);
	color: inherit;
	font: 20px/1 system-ui, sans-serif;
	cursor: pointer;
	opacity: 0.9;
}
.vm-ab-x:hover { opacity: 1; }
.vm-ab-hide { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.vm-ab-off .vm-ab { display: none; }
@media (max-width: 767px) {
	.vm-ab-in { justify-content: flex-start; padding-left: 16px; }
	.vm-ab-in::after { content: ""; flex: none; width: 32px; } /* end padding inside the scroller */
}

/* WoodMart "Header banner" with no content: a grey empty strip. Disable it in Theme Settings → Header Banner; this hides it meanwhile. */
.header-banner:not(:has(.wd-entry-content > *)) { display: none !important; }

/* ---------- 2. Hero: readable title, three links as pill buttons ---------- */
/* Scrim: a soft gradient from the bottom, where the title sits. --vm-scrim 0 turns it off. */
.vm-hero-style [data-settings*="background_slideshow_gallery"]::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, var(--vm-scrim, 0.42)) 0%, rgba(0, 0, 0, 0) 58%);
	opacity: 0;
	transition: opacity 0.5s ease;
}
.vm-hero-style:not(.vm-hero-wait) [data-settings*="background_slideshow_gallery"]::after,
.vm-hero-style .vm-hero-ready::after { opacity: 1; }
.vm-hero-style [data-settings*="background_slideshow_gallery"] > .e-con-inner { position: relative; z-index: 1; }
.vm-hero-style [data-settings*="background_slideshow_gallery"] .woodmart-title-container { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.25); }

/* The hero's quick links (mega menu widget) become outlined pills; fill on hover. */
.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li { margin: 0 5px 8px; }
.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li > a.woodmart-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li > a.woodmart-nav-link::after { display: none; } /* theme underline */
@media (hover: hover) and (pointer: fine) {
	.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li > a.woodmart-nav-link:hover {
		background: #fff;
		color: var(--vm-ink, #0b0b0b);
	}
}
.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li > a.woodmart-nav-link:active { transform: scale(0.97); }
/* First pill is the primary action: filled. */
.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li:first-child > a.woodmart-nav-link {
	background: #fff;
	color: var(--vm-ink, #0b0b0b);
}
@media (hover: hover) and (pointer: fine) {
	.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li:first-child > a.woodmart-nav-link:hover {
		background: rgba(255, 255, 255, 0.85);
	}
}

/* ---------- 3. Trust bar (under the hero on the front page, or [vm_trust] anywhere) ---------- */
.vm-trust-wrap {
	padding: 22px 16px;
	margin-bottom: 72px;
	animation: vm-trust-in 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}
[data-settings*="background_slideshow_gallery"].vm-hero-has-trust { margin-bottom: 0 !important; }
.vm-trust {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1100px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 48px;
}
.vm-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vm-ink, #0b0b0b);
}
.vm-trust svg {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@keyframes vm-trust-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
	/* The hero keeps 40px side padding on phones, which leaves 265px: not enough for the three pills in one row. */
	.vm-hero-style [data-settings*="background_slideshow_gallery"] { padding-left: 16px !important; padding-right: 16px !important; }
	.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li { margin: 0 3px 6px; }
	.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li > a.woodmart-nav-link { padding: 0 15px; min-height: 42px; font-size: 11.5px; letter-spacing: 0.1em; }
	.vm-trust-wrap { padding: 18px 12px; margin-bottom: 44px; }
	.vm-trust { gap: 14px 20px; }
	.vm-trust li { flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.06em; text-align: center; max-width: 104px; }
	.vm-trust li:nth-child(4) { display: none; } /* three fit a phone screen */
}

/* ---------- 4. Nothing below 12px where people read ---------- */
@media (max-width: 1024px) {
	.wd-toolbar-label { font-size: 12px !important; }
	.wd-tools-count { font-size: 10px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.vm-ab, .vm-trust-wrap,
	.vm-hero-style [data-settings*="background_slideshow_gallery"]::after,
	.vm-hero-style [data-settings*="background_slideshow_gallery"] .wd-nav > li > a.woodmart-nav-link { transition: none; animation: none; }
}
