/* ==========================================================================
   CSS CUSTOM PROPERTIES & TOKENS
   ========================================================================== */
:root {
	/* Radii tokens */
	--radius-sm: 8px;
	--radius-btn: 16px;
	--radius-card: 24px;
	--radius-photo: 28px;
	--radius-pill: 999px;

	/* Ring & hairline helpers */
	--gold-ring: 0 0 0 1px rgba(216, 188, 126, 0.45);
	--dark-ring: 0 0 0 1px rgba(61, 38, 69, 0.12);
	--card-shadow: 0 12px 32px -8px rgba(30, 17, 36, 0.08);
	--gold-glow: 0 4px 18px rgba(216, 188, 126, 0.35);
}

/* ==========================================================================
   ACCESSIBILITY: FOCUS STATES & KEYBOARD NAVIGATION (WCAG AA)
   ========================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--wp--preset--color--plum);
	outline-offset: 2px;
}

/* On dark backgrounds, ensure focus ring is extra distinct with Gold */
.has-night-background a:focus-visible,
.has-night-background button:focus-visible,
.has-night-background .wp-block-button__link:focus-visible,
.has-night-background-color a:focus-visible,
.has-night-background-color button:focus-visible,
.has-night-background-color .wp-block-button__link:focus-visible,
.has-plum-background a:focus-visible,
.has-plum-background button:focus-visible,
.has-plum-background .wp-block-button__link:focus-visible,
.has-plum-background-color a:focus-visible,
.has-plum-background-color button:focus-visible,
.has-plum-background-color .wp-block-button__link:focus-visible,
.has-plum-dark-background-color a:focus-visible,
.has-plum-dark-background-color button:focus-visible,
.has-plum-dark-background-color .wp-block-button__link:focus-visible,
.is-style-card-night a:focus-visible,
.is-style-card-night button:focus-visible,
.is-style-card-night .wp-block-button__link:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
	outline: 3px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

/* Accessibility guardrail: never allow gold text on light backgrounds (ivory, white, mist) */
.has-ivory-background-color .has-gold-color:not(.site-footer *):not([class*="night"] *):not([class*="plum"] *),
.has-ivory-background-color .has-gold-deep-color:not(.site-footer *):not([class*="night"] *):not([class*="plum"] *),
.has-white-background-color .has-gold-color:not(.site-footer *):not([class*="night"] *):not([class*="plum"] *),
.has-white-background-color .has-gold-deep-color:not(.site-footer *):not([class*="night"] *):not([class*="plum"] *),
.has-mist-background-color .has-gold-color:not(.site-footer *):not([class*="night"] *):not([class*="plum"] *),
.has-mist-background-color .has-gold-deep-color:not(.site-footer *):not([class*="night"] *):not([class*="plum"] *) {
	color: var(--wp--preset--color--plum) !important;
}

/* Explicitly ensure gold text and badges on dark containers shine with high contrast */
.has-night-background-color .has-gold-color,
.has-plum-background-color .has-gold-color,
.has-plum-dark-background-color .has-gold-color,
.site-footer .has-gold-color,
.is-style-card-night .has-gold-color {
	color: var(--wp--preset--color--gold) !important;
}

/* ==========================================================================
   FOOTER BRAND LOCKUP & ACTION ROW (Guaranteed inline across all screen sizes)
   ========================================================================== */
.lgm-footer-brand-lockup {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex-wrap: nowrap !important;
	gap: 14px !important;
	margin: 0 0 1.25rem 0 !important;
	padding: 0 !important;
	width: 100% !important;
	text-align: left !important;
}

.lgm-footer-brand-logo {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.lgm-footer-brand-logo img {
	width: 54px !important;
	height: auto !important;
	max-height: 58px !important;
	display: block !important;
	object-fit: contain !important;
	margin: 0 !important;
}

.lgm-footer-brand-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 1.35rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	color: var(--wp--preset--color--gold, #D8BC7E) !important;
	text-align: left !important;
	letter-spacing: -0.01em !important;
}

/* Schedule badge & Free Trial button guaranteed in one row */
.lgm-footer-actions-inline {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	flex-wrap: nowrap !important; /* NEVER wrap to next line! */
	gap: 10px !important;
	margin: 18px 0 16px 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

.lgm-footer-sched-badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	color: var(--wp--preset--color--gold, #D8BC7E) !important;
	font-weight: 700 !important;
	font-size: 0.8125rem !important;
	margin: 0 !important;
	padding: 7px 12px !important;
	border-radius: 8px !important;
	background: rgba(216, 188, 126, 0.1) !important;
	border: 1px solid rgba(216, 188, 126, 0.25) !important;
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	line-height: 1.3 !important;
}

.lgm-footer-trial-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: var(--wp--preset--color--gold, #D8BC7E) !important;
	color: #1E1124 !important; /* High contrast dark plum text */
	font-size: 0.8125rem !important;
	font-weight: 800 !important;
	padding: 7px 14px !important;
	border-radius: 14px !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	line-height: 1.3 !important;
	flex-shrink: 0 !important;
	transition: background 0.2s ease, transform 0.2s ease !important;
	box-shadow: 0 4px 12px rgba(216, 188, 126, 0.25) !important;
}

.lgm-footer-trial-btn:hover,
.lgm-footer-trial-btn:focus-visible {
	background: var(--wp--preset--color--gold-deep, #B8995A) !important;
	color: #1E1124 !important;
	transform: translateY(-1px) !important;
}

@media (max-width: 480px) {
	.lgm-footer-brand-title {
		font-size: 1.15rem !important;
	}
	.lgm-footer-brand-logo img {
		width: 46px !important;
	}
	.lgm-footer-actions-inline {
		gap: 6px !important;
	}
	.lgm-footer-sched-badge {
		font-size: 0.72rem !important;
		padding: 6px 8px !important;
		letter-spacing: -0.01em !important;
	}
	.lgm-footer-trial-btn {
		font-size: 0.72rem !important;
		padding: 6px 10px !important;
	}
}

/* Footer social channels row */
.lgm-footer-social-row {
	display: flex;
	align-items: center;
	margin-top: 16px;
}

.lgm-footer-social {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.lgm-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(224, 159, 62, 0.45);
	color: var(--wp--preset--color--gold, #e09f3e);
	background: transparent;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lgm-footer-social a:hover,
.lgm-footer-social a:focus-visible {
	background: var(--wp--preset--color--gold, #e09f3e);
	color: #1e1124;
	border-color: #e09f3e;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(224, 159, 62, 0.4);
}

.lgm-footer-social a svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
	display: block;
}


/* Smooth motion for users who don't restrict it */
@media (prefers-reduced-motion: no-preference) {
	a,
	button,
	.wp-block-button__link {
		transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
	}
}

