/* Header + footer chrome, reproducing stage-header / stage-footer from velta.sg. */

.vh, .vh *, .vf, .vf * {
	box-sizing: border-box;
}

:root {
	--velta-header-height: 74px;
	--velta-logo-width: 112px;
}

/* ---------- Header ---------- */

/* The sticky pin lives on WP's template-part wrapper: it spans the page flow,
   so sticking works; .vh alone would only stick inside its own-height wrapper. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.vh {
	position: relative;
	background: #f6f4ee;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
	will-change: transform;
}

.vh.hide {
	transform: translateY(-100%);
	pointer-events: none;
}

.vh.scrolled {
	box-shadow: 0 8px 24px rgba(22, 24, 23, 0.08);
}

.vh-in {
	margin: 0 auto;
	width: 100%;
	max-width: 1480px;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 74px;
	transition: min-height 0.3s ease-out;
}

.vh.scrolled .vh-in {
	min-height: 60px;
}

.vh-logo {
	display: block;
	line-height: 0;
}

.vh-logo img {
	width: var(--velta-logo-width);
	height: auto;
}

.vh.scrolled .vh-logo img {
	width: var(--velta-logo-width);
}

.vh-nav {
	display: none;
	align-items: center;
	gap: 28px;
}

.vh-nav a {
	font-size: 14px;
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}

.vh-nav a:hover,
.vh-nav a:focus-visible {
	color: #0d1793;
}

.vh-right {
	display: none;
	align-items: center;
	gap: 20px;
}

.vh-cart {
	font-size: 14px;
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}

.vh-cart:hover,
.vh-cart:focus-visible {
	color: #0d1793;
}

.vh-contact {
	display: inline-block;
	border: 1px solid #161817;
	padding: 12px 16px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: inherit;
	text-decoration: none;
	transition: padding 0.3s, background-color 0.3s, color 0.3s;
}

.vh.scrolled .vh-contact {
	padding-top: 10px;
	padding-bottom: 10px;
}

.vh-contact:hover,
.vh-contact:focus-visible {
	background: #161817;
	color: #fff;
}

/* Products mega-menu (desktop) */
.vh-prod { position: relative; }

.vh-prod summary {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
	transition: color 0.15s;
}

.vh-prod summary::-webkit-details-marker { display: none; }
.vh-prod summary:hover { color: #0d1793; }
.vh-prod summary:focus-visible { color: #0d1793; }
.vh-prod[open] summary svg { transform: rotate(180deg); }
.vh-prod summary svg { transition: transform 0.2s; }

.vh-prod-panel {
	position: fixed;
	left: 50%;
	top: 72px;
	transform: translateX(-50%);
	margin-top: 0;
	width: min(1120px, calc(100vw - 40px));
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: #f6f4ee;
	padding: 28px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	z-index: 60;
}

.vh-prod-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.vh-prod-h {
	margin: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	padding-bottom: 12px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 25px;
	font-weight: 400;
	line-height: 1.15;
	color: #161817;
}

.vh-prod-list {
	display: grid;
	gap: 28px;
	margin-top: 20px;
}

.vh-prod-catblock {
	min-width: 0;
}

.vh-prod-cat {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	color: #161817;
	text-decoration: none;
}

.vh-prod-cat strong {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.25;
	transition: color 0.15s;
}

.vh-prod-cat small {
	display: block;
	margin-top: 4px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	color: #626865;
}

.vh-prod-cat:hover strong,
.vh-prod-cat:focus-visible strong {
	color: #0d1793;
}

.vh-prod-cat .chip {
	border: 1px solid rgba(0, 0, 0, 0.15);
	padding: 4px 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #676d69;
	white-space: nowrap;
}

.vh-prod-links {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.vh-prod-links a {
	font-size: 12px;
	color: #646a66;
	text-decoration: none;
}

.vh-prod-links a:hover,
.vh-prod-links a:focus-visible { color: #0d1793; }

.vh-prod-foot {
	margin-top: 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	padding-top: 16px;
}

.vh-prod-foot a {
	font-size: 12px;
	color: #161817;
	text-decoration: none;
}

.vh-prod-foot a:hover,
.vh-prod-foot a:focus-visible { color: #0d1793; }

/* Mobile menu */
.vh-mob {
	position: static;
}

.vh-mob summary {
	cursor: pointer;
	list-style: none;
	border: 1px solid #161817;
	padding: 8px 16px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.vh-mob summary::-webkit-details-marker {
	display: none;
}

.vh-mob summary:focus-visible {
	outline: 2px solid #2e42d4;
	outline-offset: 2px;
}

.vh-mob-panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #f6f4ee;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	padding: 20px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	max-height: calc(100dvh - 74px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.vh-mob-panel a {
	display: block;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 16px 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 400;
	color: inherit;
	text-decoration: none;
}

.vh-mob-h {
	margin: 0;
	padding: 0 0 12px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #6b716d;
}

.vh-mob-group {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 12px 0;
}

.vh-mob-group-h {
	margin: 0 0 10px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.15;
	color: #161817;
}

.vh-mob-panel .vh-mob-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border: 0;
	padding: 8px 0;
	font-size: 16px;
}

.vh-mob-cat small {
	font-family: var(--wp--preset--font-family--body);
	font-size: 9px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #626865;
	white-space: nowrap;
}

.vh-mob-sub {
	border-left: 1px solid rgba(0, 0, 0, 0.15);
	padding-left: 16px;
	margin: 0 0 8px;
}

.vh-mob-sub a {
	border-bottom: 0;
	padding: 10px 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	font-weight: 400;
	color: #5f6662;
}

.vh-mob-panel a:hover,
.vh-mob-panel a:focus-visible {
	color: #0d1793;
}

@media (min-width: 1024px) {
	.vh-in { padding: 0 32px; }
}

@media (min-width: 1280px) {
	.vh-in { padding: 0 48px; }
	.vh-nav { display: flex; }
	.vh-right { display: flex; }
	.vh-mob { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.vh, .vh-in, .vh-contact { transition: none; }
}

/* ---------- Footer ---------- */

.vf {
	background: #151817;
	color: #fff;
	padding: 56px 0;
}

.vf-in {
	margin: 0 auto;
	width: 100%;
	max-width: 1480px;
	padding: 0 20px;
}

.vf-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 56px;
}

.vf-brand img {
	width: 120px;
	height: auto;
}

.vf-tag {
	margin: 32px 0 0;
	max-width: 24rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 32px;
	font-weight: 300;
	line-height: 1.2;
}

.vf-desc {
	margin: 24px 0 0;
	max-width: 28rem;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.vf-contactblock {
	margin-top: 32px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

.vf-contactblock a {
	display: block;
	margin-bottom: 8px;
	color: inherit;
	text-decoration: none;
}

.vf-contactblock a:hover {
	color: #fff;
}

.vf-contactblock p {
	margin: 8px 0 0;
	padding-top: 8px;
}

.vf-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.vf-col .vf-h {
	margin: 0;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.7);
}

.vf-col ul {
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.vf-col li {
	margin-bottom: 12px;
}

.vf-col a {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.vf-col a:hover {
	color: #fff;
}

.vf-col a:focus-visible,
.vf-contactblock a:focus-visible,
.vf-bottom a:focus-visible {
	color: #fff;
}

.vf-col a span {
	color: rgba(255, 255, 255, 0.7);
}

.vf-bottom {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 28px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.7);
}

.vf-bottom p {
	margin: 0;
}

.vf-bottom a {
	color: inherit;
	text-decoration: none;
}

.vf-bottom a:hover {
	color: #fff;
}

.vf-legal {
	display: flex;
	gap: 20px;
}

@media (min-width: 512px) {
	.vf-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
	.vf { padding: 80px 0; }
	.vf-in { padding: 0 32px; }
	.vf-grid { grid-template-columns: repeat(12, 1fr); }
	.vf-brand { grid-column: span 5; }
	.vf-cols { grid-column: span 7; }
	.vf-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 1280px) {
	.vf-in { padding: 0 48px; }
}
