/* ==========================================================================
   Luxe Atelier — Structural CSS
   Layout mechanics that theme.json block supports cannot express:
   sticky positioning, mega menu panels, glass-morphism, focus helpers.
   Color/spacing values reference theme.json custom properties so the
   whole site stays governed by a single source of truth.
   ========================================================================== */

/* --- Accessibility helpers --------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	background: var(--wp--preset--color--metallic-gold);
	color: var(--wp--preset--color--rich-black);
	font-weight: 600;
	left: 0;
	padding: 0.85em 1.5em;
	position: absolute;
	top: -100px;
	transform: translateY(-100%);
	transition: transform 0.2s ease;
	z-index: 100000;
	text-decoration: none;
}

.skip-link:focus {
	top: 0;
	transform: translateY(0);
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--metallic-gold);
	outline-offset: 3px;
}

/* --- Sticky header ------------------------------------------------------ */

.luxe-site-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background-color: rgba(11, 11, 13, 0.82);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid rgba(201, 164, 76, 0.18);
	transition: box-shadow 0.35s ease, background-color 0.35s ease, padding 0.3s ease;
}

.luxe-site-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	background-color: rgba(11, 11, 13, 0.96);
}

.luxe-site-header .wp-block-navigation {
	align-items: center;
}

/* --- Mega menu ----------------------------------------------------------- */

.luxe-mega-menu .wp-block-navigation-submenu__content {
	position: static;
}

.luxe-mega-menu li.wp-block-navigation-item.has-mega-panel {
	position: static;
}

.luxe-mega-panel {
	background: linear-gradient(180deg, rgba(23, 21, 27, 0.98) 0%, rgba(11, 11, 13, 0.99) 100%);
	border: 1px solid rgba(201, 164, 76, 0.2);
	border-radius: 4px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	left: 0;
	margin-top: 0.5rem;
	padding: 2.5rem;
	position: absolute;
	right: 0;
	width: 100%;
}

.luxe-mega-panel .wp-block-column {
	border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.luxe-mega-panel .wp-block-column:last-child {
	border-right: none;
}

.luxe-mega-panel a {
	display: block;
	padding: 0.35rem 0;
	transition: color 0.2s ease, transform 0.2s ease;
}

.luxe-mega-panel a:hover,
.luxe-mega-panel a:focus {
	color: var(--wp--preset--color--metallic-gold-light);
	transform: translateX(4px);
}

@media (max-width: 781px) {
	.luxe-mega-panel {
		position: static;
		box-shadow: none;
		border: none;
		padding: 1rem 0;
	}

	.luxe-mega-panel .wp-block-column {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}
}

/* --- Glass / elevated card accents used across patterns ----------------- */

.is-style-glass-card {
	background: linear-gradient(135deg, rgba(248, 246, 242, 0.08) 0%, rgba(248, 246, 242, 0.02) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
}

/* --- Back to top button --------------------------------------------------- */

.luxe-back-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--wp--preset--color--metallic-gold);
	color: var(--wp--preset--color--rich-black);
	border: none;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
	z-index: 9998;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.luxe-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.luxe-back-to-top:hover {
	background: var(--wp--preset--color--metallic-gold-light);
}

.luxe-back-to-top svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* --- Scroll reveal base state --------------------------------------------- */

.luxe-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.luxe-reveal.is-revealed {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.luxe-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.luxe-back-to-top,
	.luxe-site-header {
		transition: none;
	}
}

/* --- Section dividers ------------------------------------------------------ */

.luxe-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(201, 164, 76, 0.6) 50%, transparent 100%);
	border: none;
	margin: 0;
}

/* --- Horizontal scroll row (New Arrivals carousel) ------------------------ */

.luxe-scroll-row {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--metallic-gold) transparent;
}

.luxe-scroll-row > * {
	flex: 0 0 280px;
	scroll-snap-align: start;
}

.luxe-scroll-row::-webkit-scrollbar {
	height: 6px;
}

.luxe-scroll-row::-webkit-scrollbar-thumb {
	background-color: var(--wp--preset--color--metallic-gold);
	border-radius: 3px;
}

.luxe-new-badge {
	display: inline-block;
	background: var(--wp--preset--color--emerald-green);
	color: var(--wp--preset--color--crisp-white);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: 2px;
}

.luxe-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.luxe-chip-row .wp-block-button__link {
	background: transparent;
	border: 1px solid rgba(201, 164, 76, 0.4);
	color: var(--wp--preset--color--crisp-white);
	font-size: 0.8rem;
	padding: 0.5rem 1.1rem;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	border-radius: 999px;
}

.luxe-chip-row .wp-block-button__link:hover {
	background: rgba(201, 164, 76, 0.12);
	border-color: var(--wp--preset--color--metallic-gold);
}

/* --- Newsletter form (core/html-based, see parts/newsletter-cta.html) ----- */

.luxe-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	max-width: 480px;
}

.luxe-newsletter-form input[type="email"] {
	flex: 1 1 240px;
	background: rgba(248, 246, 242, 0.06);
	border: 1px solid rgba(248, 246, 242, 0.25);
	border-radius: 2px;
	color: var(--wp--preset--color--crisp-white);
	padding: 0.9rem 1.1rem;
	font-size: 1rem;
}

.luxe-newsletter-form input[type="email"]::placeholder {
	color: rgba(248, 246, 242, 0.55);
}

.luxe-newsletter-form input[type="email"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--metallic-gold);
	outline-offset: 2px;
}

.luxe-newsletter-form button {
	background: var(--wp--preset--color--metallic-gold);
	color: var(--wp--preset--color--rich-black);
	border: none;
	border-radius: 2px;
	padding: 0.9rem 1.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.85rem;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.2s ease;
}

.luxe-newsletter-form button:hover {
	background: var(--wp--preset--color--metallic-gold-light);
	transform: translateY(-2px);
}
