/*
 * Natalia NCC - subtle motion.
 * CSS only. Scroll reveals use scroll-driven animations where supported and are skipped
 * otherwise; nothing moves when the visitor prefers reduced motion.
 */

@media (prefers-reduced-motion: no-preference) {

	/* Hero: copy rises in sequence on load, the quote card follows. */
	.wp-block-post-content > :first-child .wp-block-cover .wp-block-column:first-child > * {
		animation: nc-rise-in 0.9s cubic-bezier(0.2, 0, 0, 1) both;
	}

	.wp-block-post-content > :first-child .wp-block-cover .wp-block-column:first-child > :nth-child(2) {
		animation-delay: 0.12s;
	}

	.wp-block-post-content > :first-child .wp-block-cover .wp-block-column:first-child > :nth-child(3) {
		animation-delay: 0.24s;
	}

	.wp-block-post-content > :first-child .wp-block-cover .wp-block-column:first-child > :nth-child(n + 4) {
		animation-delay: 0.36s;
	}

	.wp-block-post-content > :first-child .wp-block-cover .wp-block-column:last-child {
		animation: nc-fade-in 1.1s 0.45s cubic-bezier(0.2, 0, 0, 1) both;
	}

	/* Phones: columns stack, so the quote card follows the copy a little later. */
	@media (max-width: 781px) {
		.wp-block-post-content > :first-child .wp-block-cover .wp-block-column:last-child {
			animation-delay: 0.8s;
		}
	}

	/* Day trip cards: slow zoom on hover. */
	#excursions .wp-block-image {
		overflow: hidden;
	}

	#excursions .wp-block-image img {
		transition: transform 1.2s cubic-bezier(0.2, 0, 0, 1);
	}

	#excursions .wp-block-column:hover .wp-block-image img {
		transform: scale(1.04);
	}

	@supports (animation-timeline: view()) {

		/* Sections: headings, copy and actions rise gently into place while scrolling. */
		.wp-block-post-content > :not(:first-child) :is(h2, h3, p, .wp-block-buttons, .wp-block-details, .wp-block-mintchat-chat-button, .nc-payments) {
			animation: nc-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 85%;
		}
	}
}

@keyframes nc-rise-in {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
}

@keyframes nc-fade-in {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}
}

@keyframes nc-rise {
	from {
		opacity: 0;
		transform: translateY(1.1rem);
	}
}
