/* ==========================================================================
   Landing Company Mega Menu
   Tokens follow the navigation spec (Section 9):
   ivory panel, charcoal text, Landing Green accent, serif display,
   tracked uppercase labels, generous spacing, thin warm-gray rules.
   Breakpoint: 993px (matches LC_MEGA_BREAKPOINT in PHP and JS).
   ========================================================================== */

.lc-mega {
	/* ----- design tokens ------------------------------------------------ */
	--lc-ivory: #fdfcf9;
	--lc-charcoal: #232120;
	--lc-ink-soft: #56514d;
	--lc-green: #12cfca;
	--lc-green-deep: #0aa3a0;   /* AA-contrast green for text on ivory */
	--lc-aqua-wash: #eefbfa;
	--lc-rule: #ebe6df;          /* very light warm gray */
	--lc-serif: "Unna", Georgia, serif;
	--lc-lora: "Lora", Georgia, serif;
	--lc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--lc-max: 1360px;
	--lc-ease: cubic-bezier(0.25, 0.1, 0.25, 1);

	position: relative;
	clear: both;
	width: 100%;
	font-family: var(--lc-sans);
}

/* Prevent the 100vw full-bleed panel from creating a horizontal scrollbar. */
body {
	overflow-x: clip;
}

.lc-mega ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.lc-mega__bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 0.75rem;
	border-top: 1px solid var(--lc-rule);
	border-bottom: 1px solid var(--lc-rule);
}

.lc-mega__top {
	display: flex;
	align-items: center;
}

.lc-mega__top-link {
	display: inline-block;
	padding: 1.05rem 0.9rem;
	font-family: var(--lc-serif);
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: -0.5px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--lc-charcoal);
	position: relative;
	white-space: nowrap;
}

/* Signature: a Landing Green hairline draws in beneath the active label. */
.lc-mega__top-link::after {
	content: "";
	position: absolute;
	left: 0.9rem;
	right: 0.9rem;
	bottom: 0.7rem;
	height: 1px;
	background: var(--lc-green);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s var(--lc-ease);
}

.lc-mega__top-link:hover,
.lc-mega__item.is-open > .lc-mega__top > .lc-mega__top-link {
	color: var(--lc-charcoal);
}

.lc-mega__top-link:hover::after,
.lc-mega__top-link:focus-visible::after,
.lc-mega__item.is-open > .lc-mega__top > .lc-mega__top-link::after {
	transform: scaleX(1);
}

.lc-mega__open {
	appearance: none;
	background: none;
	border: 0;
	margin: 0;
	margin-top: 0 !important;
	padding: 0.35rem 0.4rem;
	margin-left: -0.55rem;
	cursor: pointer;
	color: var(--lc-ink-soft);
	display: inline-flex;
	align-items: center;
	line-height: 1;
	vertical-align: middle;
}

.lc-mega__caret {
	transition: transform 0.25s var(--lc-ease);
}

.lc-mega__item.is-open .lc-mega__caret {
	transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   Desktop panel (full-bleed ivory sheet)
   -------------------------------------------------------------------------- */

@media (min-width: 993px) {

	.lc-mega__panel {
		position: absolute;
		top: 100%;
		left: 50%;
		width: 100vw;
		transform: translateX(-50%) translateY(-6px);
		background: var(--lc-ivory);
		border-top: 1px solid var(--lc-green);   /* the green hairline, full width */
		border-bottom: 1px solid var(--lc-rule);
		box-shadow: 0 24px 40px -28px rgba(35, 33, 32, 0.25);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			opacity 0.22s var(--lc-ease),
			transform 0.22s var(--lc-ease),
			visibility 0s linear 0.22s;
		z-index: 999;
	}

	.lc-mega__item.is-open > .lc-mega__panel,
	.lc-nojs .lc-mega__item--has-panel:hover > .lc-mega__panel,
	.lc-nojs .lc-mega__item--has-panel:focus-within > .lc-mega__panel {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(-50%) translateY(0);
		transition:
			opacity 0.22s var(--lc-ease),
			transform 0.22s var(--lc-ease),
			visibility 0s;
	}

	.lc-mega__panel-inner {
		display: flex;
		gap: 56px;
		max-width: var(--lc-max);
		margin: 0 auto;
		padding: 44px 40px 48px;
	}

	.lc-mega__cols {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: 48px;
		flex: 1 1 auto;
		min-width: 0;
	}

	.lc-mega__cards {
		display: flex;
		gap: 24px;
		flex: 0 0 auto;
	}

	/* Hide drawer chrome on desktop */
	.lc-mega__drawer-toggle {
		display: none;
	}

	/* Columns with a suppressed (-) eyebrow: reserve the heading's vertical
	   space so their content lines up with the headed columns. Matches
	   heading line-height + padding-bottom + border + margin. */
	.lc-mega__col--no-heading {
		padding-top: calc(1.1rem * 1.2 + 0.6rem + 1px + 0.9rem);
	}
}

/* Column headings — small serif, tracked, anchored by a thin rule */
.lc-mega__heading {
	margin: 0 0 0.9rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--lc-rule);
	font-family: var(--lc-serif);
	font-size: 1.1rem;
	font-weight: 400;
	letter-spacing: -1px;
	text-transform: uppercase;
	color: var(--lc-green);
}

.lc-mega__heading a {
	color: inherit;
	text-decoration: none;
}

.lc-mega__heading a:hover {
	color: var(--lc-green-deep);
}

.lc-mega__links li + li {
	margin-top: 0;
}

.lc-mega__links a {
	display: inline-block;
	padding: 0.34rem 0;
	font-size: 0.92rem;
	line-height: 1.35;
	color: var(--lc-ink-soft);
	text-decoration: none;
	transition: color 0.15s var(--lc-ease);
}

.lc-mega__links a:hover,
.lc-mega__links a:focus-visible {
	color: var(--lc-charcoal);
	text-decoration: underline;
	text-decoration-color: var(--lc-green);
	text-underline-offset: 4px;
}

.lc-mega__link--em {
	color: var(--lc-green-deep) !important;
	font-weight: 500;
}

/* Bold sub-groups inside a column (DY "Bracelets / Necklaces" pattern) */
.lc-mega__group + .lc-mega__group,
.lc-mega__links + .lc-mega__group,
.lc-mega__group + .lc-mega__links {
	margin-top: 1.5rem;
}

.lc-mega__group-title {
	margin: 0 0 0.3rem;
	font-family: var(--lc-lora);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--lc-charcoal);
}

.lc-mega__group-title a {
	color: inherit;
	text-decoration: none;
}

.lc-mega__group-title a:hover {
	color: var(--lc-green-deep);
}

/* Vertical hairline before a column (add CSS class lc-divider to the item) */
@media (min-width: 993px) {
	.lc-mega__col--divider {
		border-left: 1px solid var(--lc-rule);
		padding-left: 48px;
	}
}

/* --------------------------------------------------------------------------
   Editorial image cards
   -------------------------------------------------------------------------- */

.lc-mega__card {
	display: block;
	width: 280px;
	max-width: 100%;
	text-decoration: none;
	color: var(--lc-charcoal);
}

.lc-mega__card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--lc-aqua-wash);
}

.lc-mega__card-text {
	display: block;
	padding-top: 0.85rem;
}

.lc-mega__card-eyebrow {
	display: block;
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--lc-green-deep);
	margin-bottom: 0.35rem;
}

.lc-mega__card-headline {
	display: block;
	font-family: var(--lc-serif);
	font-size: 1.18rem;
	line-height: 1.25;
	margin-bottom: 0.3rem;
}

.lc-mega__card-sub {
	display: block;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--lc-ink-soft);
	margin-bottom: 0.5rem;
}

.lc-mega__card-cta {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lc-charcoal);
	border-bottom: 1px solid var(--lc-green);
	padding-bottom: 2px;
	transition: color 0.15s var(--lc-ease);
}

.lc-mega__card:hover .lc-mega__card-cta {
	color: var(--lc-green-deep);
}

.lc-mega__card:hover .lc-mega__card-img {
	opacity: 0.93;
}

/* Overlay variant — label sits on the image (image + headline only) */
.lc-mega__card--overlay {
	position: relative;
}

.lc-mega__card-overlay-label {
	position: absolute;
	left: 18px;
	bottom: 16px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
	border-bottom: 1px solid #fff;
	padding-bottom: 3px;
	transition: border-color 0.15s var(--lc-ease);
}

.lc-mega__card--overlay:hover .lc-mega__card-overlay-label {
	border-bottom-color: var(--lc-green);
}

/* --------------------------------------------------------------------------
   Footer strip (gray band across the panel bottom — class lc-footer)
   -------------------------------------------------------------------------- */

.lc-mega__strip {
	background: #f6f4f0;
	border-top: 1px solid var(--lc-rule);
}

.lc-mega__strip-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 2.25rem;
	max-width: var(--lc-max);
	margin: 0 auto;
	padding: 0.85rem 40px;
}

.lc-mega__strip-label {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lc-charcoal);
}

.lc-mega__strip-link {
	font-size: 0.88rem;
	color: var(--lc-ink-soft);
	text-decoration: none;
}

.lc-mega__strip-link:hover {
	color: var(--lc-charcoal);
	text-decoration: underline;
	text-decoration-color: var(--lc-green);
	text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Mobile drawer + accordion (below 993px)
   -------------------------------------------------------------------------- */

@media (max-width: 992.98px) {

	.lc-mega {
		border-top: 1px solid var(--lc-rule);
	}

	.lc-mega__drawer-toggle {
		display: flex;
		align-items: center;
		gap: 0.6rem;
		width: 100%;
		padding: 0.85rem 0;
		background: none;
		border: 0;
		cursor: pointer;
		font-size: 0.78rem;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--lc-charcoal);
	}

	.lc-mega__burger {
		display: inline-flex;
		flex-direction: column;
		gap: 4px;
		width: 18px;
	}

	.lc-mega__burger span {
		height: 1.5px;
		background: currentColor;
		transition: transform 0.2s var(--lc-ease), opacity 0.2s var(--lc-ease);
	}

	.lc-mega__drawer-toggle[aria-expanded="true"] .lc-mega__burger span:nth-child(1) {
		transform: translateY(5.5px) rotate(45deg);
	}
	.lc-mega__drawer-toggle[aria-expanded="true"] .lc-mega__burger span:nth-child(2) {
		opacity: 0;
	}
	.lc-mega__drawer-toggle[aria-expanded="true"] .lc-mega__burger span:nth-child(3) {
		transform: translateY(-5.5px) rotate(-45deg);
	}

	/* Drawer */
	.lc-mega__bar {
		display: none;
		flex-direction: column;
		border: 0;
		padding-bottom: 1rem;
	}

	.lc-js .lc-mega__bar.is-open,
	.lc-nojs .lc-mega__bar {
		display: flex;
	}

	.lc-mega__item {
		border-bottom: 1px solid var(--lc-rule);
	}

	.lc-mega__top {
		justify-content: space-between;
	}

	.lc-mega__top-link {
		flex: 1 1 auto;
		padding: 0.95rem 0;
		font-size: 0.82rem;
	}

	.lc-mega__top-link::after {
		display: none; /* no hover hairline on touch */
	}

	.lc-mega__open {
		margin: 0;
		padding: 0.95rem 0.25rem 0.95rem 1.25rem; /* generous tap target */
	}

	/* Accordion panel */
	.lc-mega__panel {
		display: none;
		padding: 0.25rem 0 1.25rem;
	}

	.lc-mega__item.is-open > .lc-mega__panel,
	.lc-nojs .lc-mega__panel {
		display: block;
	}

	.lc-mega__col + .lc-mega__col {
		margin-top: 1.4rem;
	}

	.lc-mega__heading {
		border: 0;
		padding-bottom: 0;
		margin-bottom: 0.4rem;
		color: var(--lc-ink-soft);
	}

	.lc-mega__links a {
		display: block;
		padding: 0.55rem 0; /* >= 44px effective tap height with line-height */
		font-size: 1rem;
		color: var(--lc-charcoal);
	}

	/* Cards become a compact horizontal scroller — text first, images lazy */
	.lc-mega__cards {
		display: flex;
		gap: 16px;
		margin-top: 1.5rem;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	/* Footer strip flattens into the accordion */
	.lc-mega__strip {
		background: none;
		border: 0;
	}

	.lc-mega__strip-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.15rem;
		padding: 0.75rem 0 0;
	}

	.lc-mega__strip-link {
		padding: 0.45rem 0;
		font-size: 1rem;
		color: var(--lc-charcoal);
	}

	.lc-mega__cards::-webkit-scrollbar {
		display: none;
	}

	.lc-mega__card {
		flex: 0 0 220px;
	}
}

/* --------------------------------------------------------------------------
   Focus visibility + reduced motion
   -------------------------------------------------------------------------- */

.lc-mega a:focus-visible,
.lc-mega button:focus-visible {
	outline: 2px solid var(--lc-green-deep);
	outline-offset: 3px;
	border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
	.lc-mega *,
	.lc-mega *::before,
	.lc-mega *::after {
		transition-duration: 0.01ms !important;
	}
}
