/**
 * XZ Salon — Front Page (Homepage) styles.
 *
 * White/cream mode, olive palette driven by the CSS custom properties emitted
 * from functions.php (egateweb_palette_css). Only a few sections (hero, CTA)
 * intentionally go dark for contrast.
 *
 * @package eGateweb
 */

/* ===== Full-bleed reset: override the theme's 900px .site-main container ===== */
#primary.site-main.xz-home,
.site-main.xz-home {
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	min-height: 0;
}
/* Homepage hero sits flush under the floating header (kill the 90px gap) */
.home #page {
	padding-top: 0;
}

/* ============================ Base / tokens ============================ */
.xz-home {
	--xz-radius: 18px;
	--xz-radius-lg: 26px;
	--xz-shadow-sm: 0 6px 18px rgba(31, 36, 19, 0.06);
	--xz-shadow: 0 18px 44px rgba(31, 36, 19, 0.10);
	--xz-shadow-lg: 0 30px 70px rgba(31, 36, 19, 0.16);
	--xz-ease: cubic-bezier(0.22, 1, 0.36, 1);

	color: var(--xz-ink);
	background: var(--xz-cream);
	overflow-x: clip;
	font-family: inherit;
}

.xz-home *,
.xz-home *::before,
.xz-home *::after {
	box-sizing: border-box;
}

.xz-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(20px, 5vw, 48px);
}

/* Subtle page background texture (very light olive dots + wash) */
.xz-home::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-color: var(--xz-cream);
	background-image:
		radial-gradient(rgba(var(--xz-primary-rgb), 0.05) 1px, transparent 1.4px);
	background-size: 26px 26px;
	opacity: 0.9;
}

/* ============================ Shared bits ============================ */
.xz-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--xz-primary-dark);
	margin-bottom: 16px;
}
.xz-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background: var(--xz-primary);
}
.xz-eyebrow--light {
	color: #eef0e2;
}
.xz-eyebrow--light::before {
	background: var(--xz-primary-light);
}

.xz-section {
	position: relative;
	padding-block: clamp(64px, 9vw, 120px);
}

.xz-section__head {
	max-width: 680px;
	margin-bottom: clamp(36px, 5vw, 60px);
}
.xz-section__head.xz-section__head--center {
	margin-inline: auto;
	text-align: center;
}

.xz-section__title {
	font-size: clamp(28px, 4.4vw, 46px);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	color: var(--xz-ink);
}

.xz-section__intro {
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.7;
	color: var(--xz-ink-soft);
	margin: 0;
}

/* ============================ Buttons ============================ */
.xz-btn {
	--btn-pad-y: 15px;
	--btn-pad-x: 30px;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: var(--btn-pad-y) var(--btn-pad-x);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform 0.4s var(--xz-ease), box-shadow 0.4s var(--xz-ease),
		background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	will-change: transform;
	overflow: hidden;
}
.xz-btn__arrow {
	transition: transform 0.4s var(--xz-ease);
}
.xz-btn:hover .xz-btn__arrow {
	transform: translateX(5px);
}
.xz-btn--lg {
	--btn-pad-y: 18px;
	--btn-pad-x: 38px;
	font-size: 16px;
}

.xz-btn--primary {
	background: var(--xz-primary);
	color: #fff;
	box-shadow: 0 10px 26px rgba(var(--xz-primary-rgb), 0.32);
}
.xz-btn--primary:hover {
	background: var(--xz-primary-dark);
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(var(--xz-primary-rgb), 0.42);
	color: #fff;
}

.xz-btn--ghost {
	background: transparent;
	color: var(--xz-primary-dark);
	border-color: rgba(var(--xz-primary-rgb), 0.35);
}
.xz-btn--ghost:hover {
	background: var(--xz-primary);
	border-color: var(--xz-primary);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(var(--xz-primary-rgb), 0.32);
}

.xz-btn--ghost-light {
	background: rgba(255, 255, 255, 0.10);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(4px);
}
.xz-btn--ghost-light:hover {
	background: #fff;
	color: var(--xz-primary-dark);
	border-color: #fff;
	transform: translateY(-3px);
}

.xz-btn--whatsapp {
	background: #25d366;
	color: #fff;
}
.xz-btn--whatsapp svg {
	width: 20px;
	height: 20px;
}
.xz-btn--whatsapp:hover {
	background: #1da851;
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(37, 211, 102, 0.36);
}

/* ============================ 1 · HERO ============================ */
.xz-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #fff;
}
.xz-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.xz-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transform: scale(1.08);
	transition: opacity 1.6s ease, transform 8s linear;
}
.xz-hero__slide.is-active {
	opacity: 1;
	transform: scale(1);
}
.xz-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(20, 26, 8, 0.78) 0%, rgba(20, 26, 8, 0.45) 45%, rgba(20, 26, 8, 0.20) 100%),
		linear-gradient(to top, rgba(15, 20, 5, 0.65), rgba(15, 20, 5, 0) 55%);
}

/* Grid texture over the slides (aligned with the header/booking motif). */
.xz-hero__grid {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 54px 54px;
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000 30%, transparent 82%);
	mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000 30%, transparent 82%);
	pointer-events: none;
}
/* Soft olive glow for depth. */
.xz-hero__glow {
	position: absolute;
	z-index: 1;
	width: 620px;
	height: 620px;
	right: -140px;
	top: -160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--xz-primary-rgb), 0.34), transparent 62%);
	filter: blur(50px);
	pointer-events: none;
	animation: xzHeroGlow 18s ease-in-out infinite;
}
@keyframes xzHeroGlow {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-60px, 50px) scale(1.12); }
}

.xz-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1400px;
	margin-inline: auto;
	/* Match the header glass container so the card lines up under the logo. */
	padding-inline: clamp(24px, calc(20px + 3vw), 60px);
}
.xz-hero__card {
	position: relative;
	max-width: 600px;
	padding: clamp(30px, 3.6vw, 52px);
	border-radius: 28px;
	background:
		linear-gradient(155deg, rgba(28, 34, 14, 0.66), rgba(16, 20, 8, 0.42));
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(18px) saturate(130%);
	-webkit-backdrop-filter: blur(18px) saturate(130%);
	box-shadow:
		0 40px 90px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* Olive accent bar along the top edge (echoes the booking card). */
.xz-hero__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: clamp(30px, 3.6vw, 52px);
	right: clamp(30px, 3.6vw, 52px);
	height: 3px;
	border-radius: 0 0 6px 6px;
	background: linear-gradient(90deg, transparent, var(--xz-primary), transparent);
}
/* Icon badge above the eyebrow. */
.xz-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 20px;
	border-radius: 15px;
	color: #fff;
	background: linear-gradient(135deg, var(--xz-primary), var(--xz-primary-dark));
	box-shadow: 0 12px 26px rgba(var(--xz-primary-rgb), 0.45);
}
.xz-hero__badge svg { width: 26px; height: 26px; }
.xz-hero__title {
	font-size: clamp(38px, 6.2vw, 74px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 18px;
	color: #fff;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.xz-hero__subtitle {
	font-size: clamp(16px, 1.7vw, 20px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 30px;
	max-width: 52ch;
}
.xz-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.xz-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	z-index: 3;
	width: 26px;
	height: 42px;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 16px;
	display: flex;
	justify-content: center;
	padding-top: 7px;
}
.xz-hero__mouse {
	width: 4px;
	height: 8px;
	border-radius: 3px;
	background: #fff;
	animation: xzScroll 1.6s var(--xz-ease) infinite;
}
@keyframes xzScroll {
	0% { opacity: 0; transform: translateY(-4px); }
	40% { opacity: 1; }
	80% { opacity: 0; transform: translateY(12px); }
	100% { opacity: 0; }
}

/* ============================ 2 · FEATURES ============================ */
.xz-features {
	background: var(--xz-white);
	border-top: 1px solid var(--xz-line);
}
.xz-features__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2vw, 26px);
}
.xz-feature {
	padding: 34px 26px;
	border-radius: var(--xz-radius);
	background: var(--xz-cream);
	border: 1px solid var(--xz-line);
	transition: transform 0.45s var(--xz-ease), box-shadow 0.45s var(--xz-ease), border-color 0.3s ease;
}
.xz-feature:hover {
	transform: translateY(-8px);
	box-shadow: var(--xz-shadow);
	border-color: rgba(var(--xz-primary-rgb), 0.35);
}
.xz-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	margin-bottom: 20px;
	color: var(--xz-primary-dark);
	background: var(--xz-primary-soft);
	transition: transform 0.45s var(--xz-ease), background-color 0.3s ease, color 0.3s ease;
}
.xz-feature:hover .xz-feature__icon {
	background: var(--xz-primary);
	color: #fff;
	transform: rotate(-6deg) scale(1.06);
}
.xz-feature__title {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var(--xz-ink);
}
.xz-feature__text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--xz-muted);
	margin: 0;
}

/* ============================ 3 · OVER ONS ============================ */
.xz-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(36px, 6vw, 84px);
	align-items: center;
}
.xz-about__media {
	position: relative;
	min-height: 460px;
}
.xz-about__img {
	position: absolute;
	overflow: hidden;
	border-radius: var(--xz-radius-lg);
	box-shadow: var(--xz-shadow-lg);
}
.xz-about__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s var(--xz-ease);
}
.xz-about__media:hover .xz-about__img img {
	transform: scale(1.05);
}
.xz-about__img--main {
	width: 74%;
	aspect-ratio: 3 / 4;
	top: 0;
	left: 0;
	z-index: 1;
}
.xz-about__img--sub {
	width: 52%;
	aspect-ratio: 3 / 4;
	right: 0;
	bottom: 0;
	z-index: 2;
	border: 6px solid var(--xz-cream);
}
.xz-about__stat {
	position: absolute;
	top: 18px;
	right: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 128px;
	height: 128px;
	border-radius: 50%;
	background: var(--xz-primary);
	color: #fff;
	box-shadow: 0 18px 40px rgba(var(--xz-primary-rgb), 0.4);
	text-align: center;
	animation: xzFloat 5s ease-in-out infinite;
}
@keyframes xzFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}
.xz-about__stat-num {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}
.xz-about__stat-label {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 4px;
	opacity: 0.9;
}
.xz-about__text {
	font-size: 16px;
	line-height: 1.75;
	color: var(--xz-ink-soft);
	margin: 4px 0 28px;
}
.xz-about__text p {
	margin: 0 0 16px;
}

/* ============================ 4 · SERVICES ============================ */
.xz-services {
	background: var(--xz-white);
	border-top: 1px solid var(--xz-line);
}
.xz-services__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(16px, 2vw, 26px);
}
.xz-service {
	position: relative;
	padding: 36px 28px;
	border-radius: var(--xz-radius);
	background: var(--xz-cream);
	border: 1px solid var(--xz-line);
	overflow: hidden;
	transition: transform 0.45s var(--xz-ease), box-shadow 0.45s var(--xz-ease);
	z-index: 0;
}
.xz-service::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(160deg, var(--xz-primary), var(--xz-primary-darker));
	opacity: 0;
	transition: opacity 0.45s ease;
}
.xz-service:hover {
	transform: translateY(-10px);
	box-shadow: var(--xz-shadow-lg);
}
.xz-service:hover::before {
	opacity: 1;
}
.xz-service__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 18px;
	margin-bottom: 22px;
	color: #fff;
	background: var(--xz-primary);
	transition: background-color 0.4s ease, color 0.4s ease, transform 0.45s var(--xz-ease);
}
.xz-service:hover .xz-service__icon {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	transform: scale(1.08) rotate(-5deg);
}
.xz-service__title {
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--xz-ink);
	transition: color 0.4s ease;
}
.xz-service__text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--xz-muted);
	margin: 0 0 20px;
	transition: color 0.4s ease;
}
.xz-service__link {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: var(--xz-primary-dark);
	text-decoration: none;
	display: inline-flex;
	gap: 6px;
	transition: color 0.4s ease, gap 0.3s ease;
}
.xz-service__link:hover {
	gap: 12px;
}
.xz-service:hover .xz-service__title,
.xz-service:hover .xz-service__text,
.xz-service:hover .xz-service__link {
	color: #fff;
}

/* ============================ 5 · PRIJSLIJST ============================ */
.xz-pricing {
	background:
		radial-gradient(1200px 500px at 100% 0, var(--xz-primary-wash), transparent 60%),
		var(--xz-cream);
}
.xz-pricing__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(18px, 2.4vw, 30px);
}
.xz-pricecard {
	background: var(--xz-white);
	border: 1px solid var(--xz-line);
	border-radius: var(--xz-radius-lg);
	padding: clamp(26px, 3vw, 40px);
	box-shadow: var(--xz-shadow-sm);
	transition: transform 0.45s var(--xz-ease), box-shadow 0.45s var(--xz-ease);
}
.xz-pricecard:hover {
	transform: translateY(-6px);
	box-shadow: var(--xz-shadow);
}
.xz-pricecard__title {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 22px;
	padding-bottom: 16px;
	color: var(--xz-primary-dark);
	border-bottom: 2px solid var(--xz-primary-soft);
	display: flex;
	align-items: center;
	gap: 10px;
}
.xz-pricecard__title::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--xz-primary);
}
.xz-pricecard__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.xz-priceitem {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--xz-line);
}
.xz-priceitem:last-child {
	border-bottom: 0;
}
.xz-priceitem__name {
	font-size: 15.5px;
	color: var(--xz-ink-soft);
	line-height: 1.4;
}
.xz-priceitem__dots {
	flex: 1;
	border-bottom: 1px dotted rgba(31, 36, 19, 0.22);
	transform: translateY(-4px);
	min-width: 16px;
}
.xz-priceitem__price {
	font-size: 15.5px;
	font-weight: 800;
	color: var(--xz-primary-dark);
	white-space: nowrap;
}
.xz-pricing__note {
	margin: 34px auto 0;
	max-width: 760px;
	text-align: center;
	font-size: 14px;
	font-style: italic;
	color: var(--xz-muted);
}
.xz-pricing__cta {
	margin-top: 34px;
	text-align: center;
}

/* ============================ 6 · GALERIJ ============================ */
.xz-gallery {
	background: var(--xz-white);
	border-top: 1px solid var(--xz-line);
}
.xz-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 200px;
	gap: 16px;
}
.xz-gallery__item {
	position: relative;
	overflow: hidden;
	border-radius: var(--xz-radius);
	margin: 0;
	box-shadow: var(--xz-shadow-sm);
}
.xz-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s var(--xz-ease);
}
.xz-gallery__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 26, 8, 0.5), transparent 60%);
	opacity: 0;
	transition: opacity 0.45s ease;
}
.xz-gallery__item:hover img {
	transform: scale(1.09);
}
.xz-gallery__item:hover .xz-gallery__overlay {
	opacity: 1;
}
/* Feature layout: make some tiles span for an editorial mosaic */
.xz-gallery__item--1 { grid-row: span 2; }
.xz-gallery__item--4 { grid-row: span 2; }
.xz-gallery__cta {
	margin-top: 34px;
	text-align: center;
}

/* ============================ 7 · CTA band ============================ */
.xz-cta {
	position: relative;
	overflow: hidden;
	color: #fff;
	padding-block: clamp(72px, 10vw, 130px);
	background: var(--xz-primary-darker);
}
.xz-cta__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.05);
}
.xz-cta__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(28, 34, 10, 0.92), rgba(40, 48, 16, 0.72));
}
.xz-cta__inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 760px;
}
.xz-cta__title {
	font-size: clamp(30px, 5vw, 52px);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	color: #fff;
}
.xz-cta__text {
	font-size: clamp(16px, 1.7vw, 19px);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 32px;
}
.xz-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}
.xz-cta__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px 34px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.xz-cta__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 15px;
	transition: color 0.3s ease;
}
.xz-cta__meta-item svg {
	width: 20px;
	height: 20px;
	color: var(--xz-primary-light);
	flex-shrink: 0;
}
.xz-cta__meta-item:hover {
	color: #fff;
}

/* ============================ Reveal on scroll ============================ */
.xz-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s var(--xz-ease), transform 0.7s var(--xz-ease);
	transition-delay: var(--d, 0ms);
}
.xz-reveal.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.xz-reveal { opacity: 1; transform: none; transition: none; }
	.xz-hero__slide { transition: opacity 0.6s ease; transform: none; }
	.xz-about__stat, .xz-hero__mouse { animation: none; }
}

/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
	.xz-features__grid,
	.xz-services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.xz-about__grid { grid-template-columns: 1fr; }
	.xz-about__media { min-height: 420px; max-width: 520px; }
	.xz-pricing__grid { grid-template-columns: 1fr; }
	.xz-gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 560px) {
	.xz-features__grid,
	.xz-services__grid { grid-template-columns: 1fr; }
	.xz-hero { min-height: 88vh; }
	.xz-hero__card { background: rgba(30, 36, 15, 0.42); }
	.xz-gallery__item--1,
	.xz-gallery__item--4 { grid-row: span 1; }
	.xz-btn { width: 100%; justify-content: center; }
	.xz-hero__actions .xz-btn { width: 100%; }
}
