/* Mystic Luxury A — sitewide base (header, footer, buttons, focus). Low-risk layer over Kadence. */

body {
	background-color: var(--lm-obsidian);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * Kadence defaults content to --global-palette9 (#FFFFFF) when the child theme has no
 * Customizer mods. Force the dark surface (palette1 → tokens → obsidian).
 */
.content-bg,
body.content-style-unboxed .site {
	background: var(--global-palette1);
}

/* Brand is the logo image; hide the text site title Kadence may print beside it. */
#masthead .site-branding .site-title-wrap {
	display: none;
}

::selection {
	background: var(--lm-gold);
	color: var(--lm-obsidian);
}

:focus-visible {
	outline: 2px solid var(--lm-gold);
	outline-offset: 3px;
}

/* Header */
#masthead .site-main-header-wrap .site-header-row-container-inner {
	background: rgba(16, 12, 20, 0.92);
	border-bottom: 1px solid var(--lm-gold-hair);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a,
#masthead .header-cart-wrap,
#masthead .header-account-wrap,
#mobile-drawer .mobile-navigation ul li > a {
	font-family: var(--lm-font-body);
	font-size: var(--lm-text-sm);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lm-ivory);
	transition: color 0.3s var(--lm-ease);
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
	position: relative;
	padding-inline: 1em;
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a::after {
	content: "";
	position: absolute;
	left: 1em;
	right: 1em;
	bottom: 0.3em;
	height: 1px;
	background: var(--lm-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s var(--lm-ease);
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a {
	background: transparent;
	color: var(--lm-gold);
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover::after,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a::after {
	transform: scaleX(1);
}

#masthead .menu-toggle-open,
#masthead .menu-toggle-open:hover {
	color: var(--lm-gold);
}

/*
 * Some course pages embed a script that adds .fade-up (opacity + transform) to every element.
 * A transform on the page shell turns the sticky header's position: fixed into scrolling content,
 * so the shell, header and membership bar are kept out of that animation.
 */
#wrapper.fade-up,
#masthead.fade-up,
#masthead .fade-up,
.lm-mbar.fade-up,
.lm-mbar .fade-up {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* Footer */
#colophon .site-middle-footer-wrap .site-footer-row-container-inner,
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner {
	background: var(--lm-obsidian);
}

#colophon {
	border-top: 1px solid var(--lm-gold-hair);
	font-family: var(--lm-font-body);
	color: var(--lm-ivory-muted);
}

#colophon a {
	color: var(--lm-ivory);
	text-decoration: none;
	transition: color 0.3s var(--lm-ease);
}

#colophon a:hover {
	color: var(--lm-gold);
}

/* Compact footer: brand + currency | links on one line | copyright. Kadence builder markup, CSS only. */
#colophon .site-middle-footer-inner-wrap {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.25rem 2.5rem;
	padding-block: 1.75rem 1.5rem;
}

#colophon .site-footer-section {
	align-items: center;
}

#colophon .widget,
#colophon .footer-widget-area p,
#colophon .wp-block-image {
	margin: 0;
}

#colophon .site-footer-middle-section-1 .footer-widget-area-inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

#colophon .site-footer-middle-section-1 .wp-block-image img {
	width: 104px;
	height: auto;
}

#colophon .site-footer-middle-section-3 {
	order: 2;
	justify-content: center;
}

#colophon .site-footer-middle-section-2 {
	order: 3;
}

#colophon .site-footer-middle-section-3,
#colophon .site-footer-middle-section-3 .footer-widget-area-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0;
}

#colophon .site-footer-middle-section-3 .widget {
	display: flex;
	align-items: center;
	font-size: 0.8125rem;
	line-height: 1.4;
}

#colophon .site-footer-middle-section-3 .widget a {
	color: var(--lm-ivory-muted);
}

#colophon .site-footer-middle-section-3 .widget a:hover {
	color: var(--lm-gold);
}

#colophon .site-footer-middle-section-3 .widget::after {
	content: "·";
	margin-inline: 0.7rem;
	color: var(--lm-gold);
	opacity: 0.6;
}

#colophon .site-footer-middle-section-3 .footer-widget2 .widget:last-child::after {
	content: none;
}

#colophon .footer-html {
	margin: 0;
	color: var(--lm-ivory-faint);
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	#colophon .site-middle-footer-inner-wrap {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		gap: 1rem;
		padding-block: 1.5rem 1.25rem;
	}

	#colophon .site-footer-section,
	#colophon .footer-widget-area {
		justify-content: center;
		text-align: center;
	}

	#colophon .site-footer-middle-section-1 .footer-widget-area-inner {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.75rem 1rem;
	}

	#colophon .site-footer-middle-section-1 .wp-block-image img {
		width: 92px;
	}

	#colophon .site-footer-middle-section-3,
	#colophon .site-footer-middle-section-3 .footer-widget-area-inner {
		justify-content: center;
	}

	#colophon .footer-html {
		white-space: normal;
	}
}

/* Ceremonial eyebrow label (home, shop hero, product summary) */
.lm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.9em;
	color: var(--lm-gold);
	font-family: var(--lm-font-ceremonial);
	font-size: var(--lm-text-xs);
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

.lm-eyebrow::before {
	content: "";
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

/*
 * Interior page header component: restyles Kadence's own hero markup
 * (section.entry-hero > header.entry-header > h1) on standard pages (body.lm-inner)
 * and on the product archive (body.lm-woo). Eyebrow/lead are injected by functions.php.
 */
body.lm-inner .page-hero-section .entry-hero-container-inner,
body.lm-woo .product-archive-hero-section .entry-hero-container-inner {
	position: relative;
	background:
		radial-gradient(60% 120% at 85% 0%, rgba(117, 85, 120, 0.35), transparent 60%),
		radial-gradient(50% 100% at 0% 100%, rgba(40, 20, 47, 0.9), transparent 70%),
		linear-gradient(180deg, var(--lm-obsidian) 0%, var(--lm-plum-deep) 100%);
	border-bottom: 1px solid var(--lm-gold-hair);
}

body.lm-inner .page-hero-section .hero-section-overlay,
body.lm-woo .product-archive-hero-section .hero-section-overlay {
	display: none;
}

body.lm-inner .entry-hero.page-hero-section .entry-header,
body.lm-woo .entry-hero.product-archive-hero-section .entry-header {
	display: grid;
	gap: var(--lm-space-2);
	align-content: center;
	justify-items: center;
	min-height: clamp(180px, 9rem + 8vw, 300px);
	margin: 0;
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
	text-align: center;
}

body.lm-inner .page-hero-section .entry-title,
body.lm-woo .product-archive-hero-section .archive-title {
	margin: 0;
	color: var(--lm-ivory);
	font-family: var(--lm-font-display);
	font-size: var(--lm-h2);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.05;
	text-transform: none;
	overflow-wrap: anywhere;
}

.lm-page-hero__eyebrow {
	margin: 0;
}

.lm-page-hero__eyebrow::after {
	content: "";
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.lm-page-hero__lead {
	max-width: 36rem;
	margin: 0;
	color: var(--lm-ivory-muted);
	font-family: var(--lm-font-body);
	font-size: var(--lm-text-lg);
	line-height: 1.6;
}

.lm-page-hero__lead p {
	margin: 0;
}

@media (max-width: 767px) {
	.lm-page-hero__eyebrow {
		letter-spacing: 0.24em;
	}

	.lm-page-hero__eyebrow::before,
	.lm-page-hero__eyebrow::after {
		width: 1.5rem;
	}

	.lm-page-hero__lead {
		font-size: var(--lm-text-base, 1rem);
	}
}

/*
 * YayCurrency switcher (footer widget, product form): dark skin only.
 * Plugin markup, scripts and conversion untouched.
 */
.yay-currency-custom-select-wrapper .yay-currency-custom-select__trigger {
	border-color: var(--lm-gold-hair);
	background: rgba(16, 12, 20, 0.72);
	color: var(--lm-ivory);
}

.yay-currency-custom-select-wrapper .yay-currency-custom-select__trigger:hover,
.yay-currency-custom-select-wrapper .yay-currency-custom-select.open .yay-currency-custom-select__trigger {
	border-color: var(--lm-gold-soft);
}

.yay-currency-custom-select-wrapper .yay-currency-custom-selected-option,
.yay-currency-custom-select-wrapper .yay-currency-selected-option {
	color: var(--lm-ivory);
	font-family: var(--lm-font-body);
}

.yay-currency-custom-select-wrapper .yay-currency-custom-arrow::before,
.yay-currency-custom-select-wrapper .yay-currency-custom-arrow::after {
	background-color: var(--lm-gold);
}

.yay-currency-custom-select-wrapper .yay-currency-custom-options {
	border-color: var(--lm-gold-soft);
	background: var(--lm-obsidian-2);
}

.yay-currency-custom-select-wrapper .yay-currency-custom-option-row {
	background-color: transparent;
	color: var(--lm-ivory-muted);
}

.yay-currency-custom-select-wrapper .yay-currency-custom-option-row:hover {
	background-color: var(--lm-plum);
	color: var(--lm-ivory);
}

.yay-currency-custom-select-wrapper .yay-currency-custom-option-row.selected {
	background-color: var(--lm-plum);
	color: var(--lm-gold);
}

/* Shared button system (used by the home; safe to reuse in later phases) */
.lm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px;
	padding: 0.85rem 2rem;
	border: 1px solid var(--lm-gold);
	border-radius: var(--lm-radius);
	font-family: var(--lm-font-body);
	font-size: var(--lm-text-sm);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.4s var(--lm-ease), color 0.4s var(--lm-ease), border-color 0.4s var(--lm-ease), transform 0.4s var(--lm-ease);
}

.lm-btn--primary {
	background: var(--lm-gold);
	color: var(--lm-obsidian);
}

.lm-btn--primary:hover,
.lm-btn--primary:focus-visible {
	background: var(--lm-ivory);
	border-color: var(--lm-ivory);
	color: var(--lm-obsidian);
	transform: translateY(-2px);
}

.lm-btn--ghost {
	background: transparent;
	color: var(--lm-ivory);
	border-color: var(--lm-gold-soft);
}

.lm-btn--ghost:hover,
.lm-btn--ghost:focus-visible {
	border-color: var(--lm-gold);
	color: var(--lm-gold);
	transform: translateY(-2px);
}

/* ---------- Course modality tags (homepage, shop cards, product page) ---------- */

.lm-modality {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	margin: 0 0 0.6rem;
	font-family: var(--lm-font-body);
	font-size: 0.6875rem;
	line-height: 1.3;
}

.lm-modality__label {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.3em 0.75em;
	border: 1px solid var(--lm-gold-soft);
	border-radius: 999px;
	background: rgba(16, 12, 20, 0.7);
	color: var(--lm-gold);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.lm-modality--live .lm-modality__label::before {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0.2em rgba(197, 164, 109, 0.22);
}

.lm-modality--running .lm-modality__label {
	border-color: var(--lm-gold);
	background: var(--lm-gold);
	color: var(--lm-obsidian);
}

.lm-modality--finished .lm-modality__label {
	border-color: var(--lm-gold-hair);
	color: var(--lm-ivory-faint);
}

.lm-modality--recorded .lm-modality__label {
	border-color: rgba(117, 85, 120, 0.7);
	color: #d6c3d8;
}

.lm-modality__date {
	color: var(--lm-ivory-muted);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.lm-modality--in-single {
	margin: 0.25rem 0 1.25rem;
	font-size: 0.75rem;
}

.lm-modality--in-single .lm-modality__date {
	color: var(--lm-ivory);
	font-size: 0.9375rem;
}

/* Closed live course (lluvia-course-schedule): informative page, no purchase form */
.lcs-closed-notice {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--lm-gold-hair);
	border-left: 2px solid var(--lm-gold);
	border-radius: 4px;
	background: rgba(40, 20, 47, 0.55);
	color: var(--lm-ivory);
	font-size: var(--lm-text-sm);
	line-height: 1.6;
}

/* ---------- 404, search results and the Kadence search form ---------- */

body.error404 .page-content,
body.search .page-content,
body.error404 .entry-content p {
	color: var(--lm-ivory-muted);
}

body .search-form input.search-field {
	border: 1px solid var(--lm-gold-hair);
	border-radius: 4px;
	background: rgba(16, 12, 20, 0.72);
	color: var(--lm-ivory) !important; /* legacy header.php: input {color:black !important} */
}

body .search-form input.search-field:focus {
	border-color: var(--lm-gold);
	outline: none;
	box-shadow: 0 0 0 3px rgba(197, 164, 109, 0.18);
}

body .search-form input.search-field::placeholder {
	color: var(--lm-ivory-faint);
	opacity: 1;
}

body .search-form .search-submit,
body .search-form .kadence-search-icon-wrap {
	color: var(--lm-gold);
}

/* ---------- Shared keyboard focus ---------- */

body a:focus-visible,
body button:focus-visible,
body .button:focus-visible,
body input[type="submit"]:focus-visible {
	outline: 2px solid var(--lm-gold);
	outline-offset: 3px;
}

/* ---------- Annual membership top bar (until the deadline) ---------- */

/* Sticky like the Kadence header, which already places itself right below anything before #wrapper. */
.lm-mbar {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1001;
	border-bottom: 1px solid var(--lm-gold-soft);
	background:
		radial-gradient(60% 180% at 50% 0%, rgba(197, 164, 109, 0.16), transparent 70%),
		linear-gradient(90deg, var(--lm-plum-deep), var(--lm-plum) 50%, var(--lm-plum-deep));
	color: var(--lm-ivory);
	font-family: var(--lm-font-body);
}

.lm-mbar[hidden] {
	display: none;
}

.lm-mbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem 1.5rem;
	max-width: var(--lm-container);
	margin: 0 auto;
	padding: 0.55rem 3rem;
}

.lm-mbar p {
	margin: 0;
}

.lm-mbar__text {
	font-family: var(--lm-font-ceremonial);
	font-size: 0.8125rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lm-mbar__star {
	margin-right: 0.4em;
	color: var(--lm-gold);
}

.lm-mbar__timer {
	display: flex;
	align-items: baseline;
	gap: 0.45rem;
	color: var(--lm-ivory-muted);
	font-size: 0.75rem;
}

.lm-mbar__until {
	margin-right: 0.2rem;
	letter-spacing: 0.04em;
}

.lm-mbar__unit b {
	margin-right: 0.1em;
	color: var(--lm-gold);
	font-family: var(--lm-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.lm-mbar__cta {
	padding: 0.35rem 0.95rem;
	border: 1px solid var(--lm-gold);
	border-radius: var(--lm-radius);
	background: var(--lm-gold);
	color: var(--lm-obsidian);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.3s var(--lm-ease), color 0.3s var(--lm-ease);
}

.lm-mbar__cta:hover,
.lm-mbar__cta:focus-visible {
	background: transparent;
	color: var(--lm-gold);
}

/* Centred without transform: some course pages inject a script that animates every element's transform. */
.lm-mbar__close {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-block: auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--lm-ivory-muted);
	cursor: pointer;
}

.lm-mbar__close:hover,
.lm-mbar__close:focus-visible {
	color: var(--lm-gold);
}

.lm-mbar__close svg {
	width: 14px;
	height: 14px;
}

.lm-mbar__short {
	display: none;
}

/* One compact row on phones: the bar stays on screen together with the sticky header. */
@media (max-width: 767px) {
	.lm-mbar__inner {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0.6rem;
		padding: 0.4rem 2.4rem 0.4rem 0.75rem;
	}

	.lm-mbar__text {
		flex-shrink: 0;
		font-size: 0.625rem;
		letter-spacing: 0.1em;
	}

	.lm-mbar__long {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.lm-mbar__short {
		display: inline;
	}

	.lm-mbar__timer {
		gap: 0.25rem;
		font-size: 0.625rem;
	}

	.lm-mbar__until {
		display: none;
	}

	.lm-mbar__unit b {
		font-size: 0.9375rem;
	}

	.lm-mbar__cta {
		flex-shrink: 0;
		margin-left: auto;
		padding: 0.3rem 0.65rem;
		font-size: 0.5625rem;
		letter-spacing: 0.12em;
	}

	.lm-mbar__close {
		right: 0.25rem;
	}
}

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