/* ===== NEST CONSTRUCTION - custom styles ===== */
/* --- 1. STICKY HEADER --- */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: -37px;
	z-index: 500;
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: -5px;
}

@media (max-width:781px) {
	.wp-site-blocks > header.wp-block-template-part {
		position: static;
	}
}

/* --- 2. SCROLL REVEAL (class added by script) --- */
.nest-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}

.nest-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* --- 3. HOVER LIFT --- */
.entry-content .wp-block-column.has-background {
	transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}

.entry-content .wp-block-column > figure.wp-block-image {
	transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}

.wp-block-button__link {
	transition: transform .25s ease, box-shadow .25s ease;
}

.entry-content .wp-block-column.has-background:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 34px rgba(0,0,0,.14);
}

.entry-content .wp-block-column:not(.has-background):hover > figure.wp-block-image {
	transform: translateY(-6px);
	box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

html {
	scroll-padding-top: 130px;
}

/* --- 4. REVIEW TRUST BADGES --- */
.nest-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 38px;
}

.nest-trust__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 20px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 10px;
	background: rgba(255,255,255,.05);
}

.nest-trust__logo {
	height: 24px;
	width: auto;
	display: block;
	flex: none;
}

.nest-trust__logo--tt {
	height: 38px;
	filter: brightness(0) invert(1);
}

.nest-trust__meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
	line-height: 1.3;
}

.nest-trust__score {
	font-weight: 700;
	color: #fff;
	font-size: 15px;
}

.nest-trust__stars {
	color: #E0A526;
	letter-spacing: .06em;
	margin-right: 6px;
}

.nest-trust__count {
	font-size: 12.5px;
	color: rgba(239,236,228,.68);
	letter-spacing: .02em;
}

/* --- 5. REVIEW SLIDER --- */
.nest-rev {
	overflow: hidden;
	margin: 0 0 20px;
}

.nest-rev__track {
	display: flex;
	width: 600%;
	animation-timing-function: cubic-bezier(.65,0,.35,1);
}

.nest-rev__slide {
	width: 16.6667%;
	flex: none;
	margin: 0;
	padding: 0 6% 0 0;
	box-sizing: border-box;
}

.nest-rev__quote {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	max-width: 820px;
	font-style: italic;
	color: #fff;
	font-size: clamp(17px,1.9vw,23px);
	line-height: 1.55;
}

.nest-rev__who {
	font-size: 14px;
	color: rgba(239,236,228,.72);
	letter-spacing: .03em;
}

.nest-rev__who b {
	color: #EFECE4;
	font-weight: 600;
}

.nest-rev__st {
	color: #E0A526;
	margin-right: 8px;
	letter-spacing: .06em;
}

.nest-rev__dots {
	display: flex;
	gap: 7px;
	margin: 0 0 30px;
}

.nest-rev__dots i {
	width: 22px;
	height: 3px;
	border-radius: 2px;
	display: block;
	background: rgba(239,236,228,.28);
}

@keyframes nest-slide {
	0%,17% {
		transform: translateX(0);
	}
	
	20%,37% {
		transform: translateX(-16.6667%);
	}
	
	40%,57% {
		transform: translateX(-33.3333%);
	}
	
	60%,77% {
		transform: translateX(-50%);
	}
	
	80%,97% {
		transform: translateX(-66.6667%);
	}
	
	100% {
		transform: translateX(-83.3333%);
	}
}

@keyframes nest-dot {
	0%,19.9% {
		background: #E0A526;
	}
	
	20%,100% {
		background: rgba(239,236,228,.28);
	}
}

@media (prefers-reduced-motion:no-preference) {
	.nest-rev__track {
		animation: nest-slide 32s infinite;
	}
	
	.nest-rev:hover .nest-rev__track {
		animation-play-state: paused;
	}
	
	.nest-rev__dots i {
		animation: nest-dot 32s infinite;
	}
	
	.nest-rev__dots i:nth-child(2) {
		animation-delay: -25.6s;
	}
	
	.nest-rev__dots i:nth-child(3) {
		animation-delay: -19.2s;
	}
	
	.nest-rev__dots i:nth-child(4) {
		animation-delay: -12.8s;
	}
	
	.nest-rev__dots i:nth-child(5) {
		animation-delay: -6.4s;
	}
}

@media (prefers-reduced-motion:reduce) {
	.nest-rev {
		overflow-x: auto;
	}
	
	.nest-rev__track {
		width: auto;
	}
	
	.nest-rev__slide {
		width: 88vw;
		max-width: 700px;
		scroll-snap-align: start;
	}
	
	.nest-rev__dots {
		display: none;
	}
	
	.nest-reveal {
		opacity: 1;
		transform: none;
	}
}

@media (max-width:781px) {
	.nest-rev__slide {
		padding-right: 2%;
	}
	
	.nest-trust__item {
		flex: 1 1 100%;
	}
}