/* Header — standaardstijlen (uit Figma "Header/Winterhaven Desktop"). Overschrijfbaar via Winterhaven → Header → Vormgeving / Mobiel. */

.wh-site-header {
	position: relative;
	z-index: 50;
}

.wh-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 44px;
	background: var(--wh-c-teal-dark);
}

/* logo / icoon: ring van 34px, streek 1px, kleur zand */
.wh-header__logo {
	display: inline-flex;
	width: 34px;
	height: 34px;
	color: var(--wh-icon-color, var(--wh-c-tan));
}
.wh-header__logo-img {
	display: block;
	width: auto;
	height: 100%;
	max-width: none;
}
.wh-header__icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* navigatie: menu + knop, 36px ertussen */
.wh-header__nav {
	display: flex;
	align-items: center;
	gap: 36px;
}
.wh-header__menu {
	display: flex;
	align-items: center;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wh-header__item {
	margin: 0;
	padding: 0;
}

/* links: Jost 15/18, letterafstand 12%, hoofdletters, kleur zand */
.wh-header__link {
	display: block;
	font-family: var(--wh-font-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wh-c-tan);
	text-decoration: none;
}
/* streep eronder: 2px, 4px afstand. Altijd aanwezig (ruimte gereserveerd, alle links even hoog), maar ingeklapt
   (scaleX 0) tot je hovert of de link actief is. De animatie-stijl komt uit data-underline op .wh-site-header. */
.wh-header__link::after {
	content: "";
	display: block;
	height: var(--wh-underline-size, 2px);
	margin-top: 4px;
	background: var(--wh-underline-color, var(--wh-c-coral));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--wh-anim-dur, 0.35s) var(--wh-ease, cubic-bezier(0.22, 0.75, 0.2, 1));
}
.wh-header__link.is-active::after {
	transform: scaleX(1);
}
.wh-header__link:hover {
	color: var(--wh-c-tan);
}

/* knop: pil, koraal, Jost Medium 15/18, letterafstand 10% */
.wh-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--wh-c-coral);
	color: var(--wh-c-ink);
	font-family: var(--wh-font-sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	isolation: isolate; /* pseudo-elementen (vulling/glans) liggen boven de achtergrond maar onder de tekst */
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

/* de algemene a:hover (zand) mag de knoptekst niet overnemen: anders verdwijnt hij tegen de vulling */
.wh-header__cta:hover,
.wh-header__cta:focus-visible {
	color: var(--wh-c-ink);
}

/* hamburger: alleen mobiel */
.wh-header__toggle {
	display: none;
	position: relative;
	z-index: 70;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wh-icon-color, var(--wh-c-tan));
	cursor: pointer;
}
.wh-header__toggle-lines {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}
.wh-header__toggle-lines span {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}
.wh-header__toggle-lines span:last-child {
	width: 16px;
}
.wh-header.is-open .wh-header__toggle-lines span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.wh-header.is-open .wh-header__toggle-lines span:nth-child(2) {
	opacity: 0;
}
.wh-header.is-open .wh-header__toggle-lines span:nth-child(3) {
	width: 24px;
	transform: translateY(-8px) rotate(-45deg);
}

body.wh-menu-open {
	overflow: hidden;
}

/* Reserveren-knop in de mobiele balk (op desktop niet zichtbaar: daar staat de gewone knop in het menu) */
.wh-header__cta-m {
	display: none;
}

@media (max-width: 767px) {
	.wh-header__bar {
		padding: 18px 20px;
	}
	.wh-header__cta-m {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 40px;
		margin-left: auto;
		margin-right: 4px;
		padding: 0 18px;
		border-radius: 999px;
		background: var(--wh-c-coral);
		font-family: var(--wh-font-sans);
		font-size: 12px;
		font-weight: 500;
		line-height: 16px;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--wh-c-ink);
		text-decoration: none;
		white-space: nowrap;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}
	.wh-header__cta-m:hover,
	.wh-header__cta-m:focus-visible {
		color: var(--wh-c-ink);
		transform: translateY(-1px);
	}
	/* menu open: de knop staat dan in het menu zelf */
	.wh-header.is-open .wh-header__cta-m {
		visibility: hidden;
	}
	.wh-header__toggle {
		display: inline-flex;
	}
	.wh-header__nav {
		display: none;
	}
	/* geopend: volledig-scherm menu — grote Bodoni-koppen, cijfers, tijden en socials onderaan */
	.wh-header.is-open .wh-header__nav {
		position: fixed;
		inset: 0;
		z-index: 60;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: safe center;
		gap: 36px;
		padding: 104px 24px 32px;
		background:
			radial-gradient(120% 70% at 100% 0%, rgba(224, 105, 108, 0.2), transparent 60%),
			var(--wh-c-teal-dark);
		overflow-y: auto;
		overflow-x: hidden;
		animation: wh-menu-in 0.35s ease both;
	}
	/* grote, zachte ring als sfeerelement (past bij het ronde logo) */
	.wh-header.is-open .wh-header__nav::before {
		content: "";
		position: fixed;
		right: -140px;
		bottom: -140px;
		width: 420px;
		height: 420px;
		border: 1px solid rgba(239, 216, 189, 0.14);
		border-radius: 50%;
		box-shadow: 0 0 0 40px rgba(239, 216, 189, 0.03), 0 0 0 41px rgba(239, 216, 189, 0.08);
		pointer-events: none;
	}
	.wh-header.is-open .wh-header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
		counter-reset: whnav;
	}
	.wh-header.is-open .wh-header__item {
		counter-increment: whnav;
		display: flex;
		align-items: baseline;
		gap: 16px;
		border-bottom: 1px solid rgba(239, 216, 189, 0.14);
		padding: 6px 0 10px;
	}
	.wh-header.is-open .wh-header__item::before {
		content: counter(whnav, decimal-leading-zero);
		flex: none;
		min-width: 24px;
		font-family: var(--wh-font-sans);
		font-size: 12px;
		letter-spacing: 0.2em;
		color: var(--wh-c-pink);
	}
	.wh-header.is-open .wh-header__link {
		font-family: var(--wh-font-serif);
		font-size: 40px;
		line-height: 1.15;
		letter-spacing: 0;
		text-transform: none;
	}
	.wh-header.is-open .wh-header__link.is-active {
		color: var(--wh-c-pink);
	}
	.wh-header.is-open .wh-header__cta {
		align-self: stretch;
		justify-content: center;
		text-align: center;
	}
	.wh-header.is-open .wh-header__extra {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding-top: 24px;
		border-top: 1px solid rgba(239, 216, 189, 0.2);
	}
	.wh-header.is-open .wh-header__hours-title {
		margin: 0 0 6px;
		font-size: 12px;
		line-height: 16px;
		letter-spacing: 0.3em;
		text-transform: uppercase;
		color: var(--wh-c-pink);
	}
	.wh-header.is-open .wh-header__hours-line {
		margin: 0;
		font-size: 15px;
		line-height: 24px;
		color: var(--wh-c-mist);
	}
	.wh-header.is-open .wh-header__socials {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.wh-header.is-open .wh-header__social {
		display: inline-block;
		padding: 7px 14px;
		border: 1px solid rgba(239, 216, 189, 0.45);
		border-radius: 999px;
		font-size: 12px;
		line-height: 16px;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--wh-c-tan);
		text-decoration: none;
	}
}

/* buiten het mobiele menu is dit blok niet zichtbaar */
.wh-header__extra {
	display: none;
}
@keyframes wh-menu-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ═════════════════════════════ ANIMATIES ═════════════════════════════
   Gestuurd door data-attributen op .wh-site-header (Winterhaven → Header → tab Animatie):
   data-underline = grow | center | slide | none
   data-intro     = 1  (actieve streep tekent zich bij het laden)
   data-stagger   = 1  (mobiel menu: links komen na elkaar binnen)
   data-cta-hover = fill | lift | arrow | glow | invert | shine | none
   --wh-anim-dur (snelheid) en --wh-cta-fill (kleur van de vulling) staan inline op de wrapper. */

@keyframes wh-underline-draw {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}
@keyframes wh-rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}
@keyframes wh-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(224, 105, 108, 0.55); }
	50% { box-shadow: 0 0 0 10px rgba(224, 105, 108, 0); }
}

/* actieve streep tekent zich bij het laden */
.wh-site-header[data-intro="1"] .wh-header__link.is-active::after {
	animation: wh-underline-draw 0.7s 0.2s var(--wh-ease, cubic-bezier(0.22, 0.75, 0.2, 1)) both;
}

/* streep-varianten */
.wh-site-header[data-underline="center"] .wh-header__link::after {
	transform-origin: center;
}
.wh-site-header[data-underline="slide"] .wh-header__link::after {
	transform-origin: right center; /* verlaat de link naar rechts … */
}
.wh-site-header[data-underline="slide"] .wh-header__link:hover::after {
	transform-origin: left center; /* … en komt bij hoveren weer van links binnen */
}
.wh-site-header[data-underline="slide"] .wh-header__link.is-active::after {
	transform-origin: left center;
}
.wh-site-header[data-underline="none"] .wh-header__link::after {
	transition: none;
}

/* knop: vulling / lift / pijl / gloed / omkeren / glans — alleen op apparaten mét hover */
@media (hover: hover) {
	.wh-header__link:hover::after,
	.wh-header__link:focus-visible::after {
		transform: scaleX(1);
	}
	.wh-site-header[data-underline="none"] .wh-header__link:hover::after {
		transform: scaleX(1);
	}

	/* 1. Vulling schuift van links in */
	.wh-site-header[data-cta-hover="fill"] .wh-header__cta::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		border-radius: inherit;
		background: var(--wh-cta-fill, var(--wh-c-tan));
		transform: translateX(-101%);
		transition: transform 0.45s var(--wh-ease, cubic-bezier(0.22, 0.75, 0.2, 1));
	}
	.wh-site-header[data-cta-hover="fill"] .wh-header__cta:hover::before {
		transform: translateX(0);
	}

	/* 2. Omhoog met zachte schaduw */
	.wh-site-header[data-cta-hover="lift"] .wh-header__cta:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 22px -8px rgba(224, 105, 108, 0.7);
	}

	/* 3. Pijltje schuift in */
	.wh-site-header[data-cta-hover="arrow"] .wh-header__cta::after {
		content: "";
		display: inline-block;
		width: 0;
		height: 12px;
		margin-left: 0;
		opacity: 0;
		background: currentColor;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M0 6h12M7 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M0 6h12M7 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
		transition: width 0.3s ease, margin-left 0.3s ease, opacity 0.3s ease;
	}
	.wh-site-header[data-cta-hover="arrow"] .wh-header__cta:hover::after {
		width: 14px;
		margin-left: 10px;
		opacity: 1;
	}

	/* 4. Zachte gloed die pulseert */
	.wh-site-header[data-cta-hover="glow"] .wh-header__cta:hover {
		animation: wh-glow 1.2s ease-out infinite;
	}

	/* 5. Omkeren: vlak → omlijnd */
	.wh-site-header[data-cta-hover="invert"] .wh-header__cta:hover {
		background-color: transparent;
		color: var(--wh-c-coral);
		box-shadow: inset 0 0 0 1.5px var(--wh-c-coral);
	}

	/* 6. Glans die over de knop veegt */
	.wh-site-header[data-cta-hover="shine"] .wh-header__cta::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: -60%;
		z-index: -1;
		width: 40%;
		background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
		transform: skewX(-20deg);
		transition: left 0.7s ease;
	}
	.wh-site-header[data-cta-hover="shine"] .wh-header__cta:hover::before {
		left: 130%;
	}
}

/* mobiel menu: links komen na elkaar binnen */
@media (max-width: 767px) {
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__item,
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__extra,
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__cta {
		animation: wh-rise 0.5s var(--wh-ease, cubic-bezier(0.22, 0.75, 0.2, 1)) both;
	}
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__item {
		animation-delay: calc(var(--i, 0) * 70ms + 120ms);
	}
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__cta {
		animation-delay: 440ms;
	}
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__extra {
		animation-delay: 560ms;
	}
}

/* geen beweging voor mensen die dat liever niet hebben */
@media (prefers-reduced-motion: reduce) {
	.wh-header__link::after,
	.wh-header__cta,
	.wh-header__cta::before,
	.wh-header__cta::after,
	.wh-header__toggle-lines span {
		transition: none !important;
		animation: none !important;
	}
	.wh-site-header[data-intro="1"] .wh-header__link.is-active::after,
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__item,
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__extra,
	.wh-site-header[data-stagger="1"] .wh-header.is-open .wh-header__cta,
	.wh-header.is-open .wh-header__nav {
		animation: none !important;
	}
}
