/* Motion, responsive, reduced-motion, and print adaptations. */

/* Motion */
.wedset-animate,
.wedset-section-reveal {
	opacity: 1;
	transform: none;
}

.wedset-motion-ready .wedset-animate,
.wedset-motion-ready .wedset-section-reveal {
	opacity: 0;
	transform: translate3d(0, var(--wp--custom--motion--distance-standard), 0);
	transition-property: opacity, transform;
	transition-duration: var(--wp--custom--motion--duration-slow);
	transition-timing-function: var(--wp--custom--easing--out-quint);
}

.wedset-motion-ready .wedset-motion-from-left {
	transform: translate3d(calc(-1 * var(--wp--custom--motion--distance-standard)), 0, 0);
}

.wedset-motion-ready .wedset-motion-from-right {
	transform: translate3d(var(--wp--custom--motion--distance-standard), 0, 0);
}

.wedset-motion-ready .wedset-motion-quote {
	transform: translate3d(0, var(--wp--custom--motion--distance-subtle), 0) scale(var(--wp--custom--motion--scale-soft));
}

.wedset-motion-ready .wedset-animate.is-visible,
.wedset-motion-ready .wedset-section-reveal.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0) scale(1);
}

.wedset-animate-delay-1 {
	transition-delay: var(--wp--custom--motion--delay-1);
}

.wedset-animate-delay-2 {
	transition-delay: var(--wp--custom--motion--delay-2);
}

.wedset-animate-delay-3 {
	transition-delay: var(--wp--custom--motion--delay-3);
}

.wedset-motion-ready .wedset-testimonial::before {
	opacity: 0;
	transform: translate3d(0, calc(-1 * var(--wp--custom--motion--distance-subtle)), 0);
	transition: opacity var(--wp--custom--motion--duration-standard) var(--wp--custom--easing--out-quart), transform var(--wp--custom--motion--duration-standard) var(--wp--custom--easing--out-quart);
	transition-delay: var(--wp--custom--motion--delay-2);
}

.wedset-motion-ready .wedset-proof-panel.is-visible .wedset-testimonial::before,
.wedset-motion-ready .wedset-testimonial.is-visible::before {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.wedset-motion-ready .wedset-promise-grid .wedset-promise-item:nth-child(1) {
	transition-delay: var(--wp--custom--motion--delay-1);
}

.wedset-motion-ready .wedset-promise-grid .wedset-promise-item:nth-child(2) {
	transition-delay: var(--wp--custom--motion--delay-2);
}

.wedset-motion-ready .wedset-promise-grid .wedset-promise-item:nth-child(3) {
	transition-delay: var(--wp--custom--motion--delay-3);
}

.wedset-motion-ready .wedset-newsletter-cta .wp-block-button__link,
.wedset-motion-ready .wedset-shop-cta .wp-block-button__link {
	transform: translate3d(0, var(--wp--custom--motion--distance-subtle), 0);
}

.wedset-motion-ready .wedset-newsletter-section.is-visible .wedset-newsletter-cta .wp-block-button__link,
.wedset-motion-ready .wedset-featured-products.is-visible .wedset-shop-cta .wp-block-button__link {
	transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.wedset-animate,
	.wedset-section-reveal,
	.wedset-motion-ready .wedset-animate,
	.wedset-motion-ready .wedset-section-reveal,
	.wedset-motion-ready .wedset-testimonial::before,
	.wedset-motion-ready .wedset-newsletter-cta .wp-block-button__link,
	.wedset-motion-ready .wedset-shop-cta .wp-block-button__link {
		opacity: 1;
		transform: none;
		transition-duration: 1ms;
		transition-delay: 0ms;
	}
}

/* Responsive */
@media (max-width: 1180px) {
	.wedset-header-action { display: none; }
	.wedset-mobile-shop-link { display: flex; }
	.wedset-header-brand,
	.wedset-header-utilities { flex-basis: clamp(7rem, 18vw, 12rem); }
}

@media (max-width: 980px) {
	:root { --wp--custom--component--chrome--header-height: clamp(3.5rem, 7vw, 4.35rem); }
	.wedset-header-nav { order: 3; flex: 0 0 auto; justify-content: flex-end; }
	.wedset-header-brand { flex: 1 1 auto; }
	.wedset-header-utilities { flex: 0 0 auto; }
	.wedset-header-nav .wp-block-navigation__responsive-container-open { display: inline-flex; }
	.wedset-header-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.wedset-header .wp-block-navigation__responsive-container.is-menu-open {
		box-sizing: border-box;
		min-height: 100dvh;
		padding: max(var(--wp--custom--spacing--lg), env(safe-area-inset-top)) max(var(--wp--custom--spacing--lg), env(safe-area-inset-right)) max(var(--wp--custom--spacing--xl), env(safe-area-inset-bottom)) max(var(--wp--custom--spacing--lg), env(safe-area-inset-left));
	}
	.wedset-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		align-items: flex-start;
		gap: var(--wp--custom--spacing--sm);
		padding-top: clamp(var(--wp--custom--spacing--xl), 9vh, var(--wp--custom--spacing--3-xl));
	}
	.wedset-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	.wedset-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
		width: 100%;
		min-height: clamp(2.75rem, 8vh, 3.35rem);
		font-size: var(--wp--preset--font-size--small);
	}
	.wedset-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wedset-footer-about { grid-column: 1 / -1; max-width: min(100%, 42rem); }
}

@media (max-width: 782px) {
	.wedset-collections,
	.wedset-story-section,
	.wedset-featured-products,
	.wedset-testimonial-section,
	.wedset-promise-section,
	.wedset-newsletter-section {
		padding: var(--wp--custom--component--section--block-padding-mobile) var(--wp--custom--component--section--inline-padding-mobile);
	}
	.wedset-collection-grid,
	.wedset-story-grid,
	.wedset-promise-grid {
		grid-template-columns: 1fr;
	}
	.wedset-promise-item + .wedset-promise-item {
		border-left: 0;
		border-top: var(--wp--custom--border--soft);
		padding-left: 0;
		padding-top: var(--wp--custom--spacing--lg);
	}
}

@media (max-width: 680px) {
	.wedset-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wedset-footer-about { grid-column: 1 / -1; }
	.wedset-footer-column:last-child { grid-column: 1 / -1; }
	.wedset-footer-column:last-child .wedset-footer-links {
		grid-template-columns: repeat(3, minmax(0, max-content));
		column-gap: var(--wp--custom--spacing--xl);
	}
}

@media (max-width: 640px) {
	.wedset-home-hero .wp-block-cover { padding-inline: clamp(1.25rem, 6vw, 1.75rem); }
	.wedset-home-hero .wp-block-cover__image-background {
		clip-path: none;
		object-position: 62% center;
	}
	.wedset-home-hero::before {
		background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--linen) 84%, transparent) 0%, var(--wp--preset--color--linen) 76%);
		clip-path: none;
	}
	.wedset-home-hero .wp-block-cover__inner-container { align-items: flex-end; padding-bottom: clamp(1.25rem, 5vh, 3.25rem); }
	.wedset-home-hero .wedset-hero-content { max-width: var(--wp--custom--component--hero--content-width-mobile); gap: var(--wp--custom--spacing--sm); }
	.wedset-home-hero h1 { font-size: var(--wp--custom--type--display-hero-compact); }
	.wedset-card-image-wrap { aspect-ratio: var(--wp--custom--component--card--image-ratio-mobile); }
	.wedset-story-image img { aspect-ratio: 4 / 5; }
}

@media (max-width: 520px) {
	.wedset-footer-grid { grid-template-columns: 1fr; }
	.wedset-footer-column:last-child { grid-column: auto; }
	.wedset-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wedset-footer-links a { min-height: var(--wp--custom--component--chrome--icon-target); }
	.wedset-hero-cta,
	.wedset-category-link,
	.wedset-shop-cta,
	.wedset-newsletter-cta { max-width: 100%; }
	.wedset-hero-cta a,
	.wedset-category-link a,
	.wedset-shop-cta .wp-block-button__link,
	.wedset-newsletter-cta .wp-block-button__link { min-width: 0; max-width: 100%; white-space: normal; }
}

@media (max-width: 420px) {
	.wedset-brand-title,
	.wedset-brand-title a,
	.wedset-header .wp-block-site-title,
	.wedset-header .wp-block-site-title a {
		font-size: clamp(var(--wp--preset--font-size--medium), 5vw, var(--wp--preset--font-size--large));
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.wedset-header-icon,
	.wedset-header-icon a,
	.wedset-header-icon button,
	.wc-block-mini-cart__button,
	.wc-block-customer-account__account-icon,
	.wedset-header .wp-block-navigation__responsive-container-open,
	.wedset-header .wp-block-navigation__responsive-container-close { min-width: var(--wp--custom--component--chrome--icon-target-small); }
}

@media (max-width: 360px) {
	.wedset-footer-links { grid-template-columns: 1fr; }
}

@media (max-height: 740px) {
	.wedset-home-hero .wp-block-cover { padding-block: clamp(var(--wp--custom--spacing--sm), 2.25vh, var(--wp--custom--spacing--lg)); }
	.wedset-home-hero .wedset-hero-content { max-width: 29rem; gap: var(--wp--custom--spacing--sm); }
	.wedset-home-hero h1 { font-size: var(--wp--custom--type--display-hero-short); }
}

@media (max-height: 600px) {
	.wedset-home-hero .wedset-hero-content { max-width: var(--wp--custom--component--hero--content-width-short); gap: var(--wp--custom--spacing--xs); }
	.wedset-home-hero h1 { font-size: var(--wp--custom--type--display-hero-short); }
	.wedset-home-hero p:not(.wedset-hero-eyebrow) { font-size: var(--wp--preset--font-size--small); line-height: var(--wp--custom--line-height--compact); }
}

@media (orientation: landscape) and (max-height: 560px) {
	.wedset-header .wp-block-navigation__responsive-container.is-menu-open { overflow-y: auto; }
	.wedset-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: var(--wp--custom--spacing--xl);
		gap: var(--wp--custom--spacing--2-xs);
	}
	.wedset-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a { min-height: 2.45rem; }
}

@media (hover: none), (pointer: coarse) {
	.wedset-card:hover,
	.wedset-featured-products .wc-block-grid__product:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		scroll-behavior: auto;
		transition-duration: 0.01ms;
	}
}

@media print {
	.wedset-header,
	.wedset-footer,
	.wedset-newsletter-section,
	.wedset-shop-cta,
	.wedset-hero-cta,
	.wedset-category-link,
	.wp-block-navigation { display: none; }
	body,
	.wp-site-blocks,
	.wedset-page-shell,
	.wedset-collections,
	.wedset-story-section,
	.wedset-featured-products,
	.wedset-testimonial-section,
	.wedset-promise-section {
		background: var(--wp--preset--color--porcelain);
		color: var(--wp--preset--color--ink);
	}
	.wedset-page-shell,
	.wedset-collections,
	.wedset-story-section,
	.wedset-featured-products,
	.wedset-testimonial-section,
	.wedset-promise-section {
		padding: 0;
		break-inside: avoid;
	}
	a[href]::after { content: ' (' attr(href) ')'; font-size: var(--wp--preset--font-size--xs); }
}

/* Native cascade hardening after removing force flags: header utility visibility. */
@media (max-width: 1180px) {
	.wedset-header .wedset-header-action {
		display: none;
	}
	.wedset-header .wedset-mobile-shop-link {
		display: flex;
	}
}
