/**
 * DistrictK home page — 2026 redesign.
 *
 * Replaces the Flatsome shortcode layout with a self-contained grid layout.
 * Carousels use CSS scroll-snap rather than the theme slider, so the page has
 * no JavaScript dependency and keeps working if Flatsome's bundle fails.
 *
 * Palette is carried over from the previous stylesheet so the redesign still
 * reads as District K: neon cyan and magenta on near-black.
 */

.dsk-home {
	--dsk-bg: #05070d;
	--dsk-bg-alt: #0a0e18;
	--dsk-surface: rgba(255, 255, 255, 0.045);
	--dsk-border: rgba(255, 255, 255, 0.1);
	--dsk-cyan: #37e2d5;
	--dsk-magenta: #e300b8;
	--dsk-blue: #0f62f9;
	--dsk-text: #f2f5f7;
	--dsk-muted: rgba(242, 245, 247, 0.62);
	--dsk-radius: 18px;
	--dsk-shell: min(1240px, 92vw);
	--dsk-section-y: clamp(64px, 9vw, 132px);

	background: var(--dsk-bg);
	color: var(--dsk-text);
	overflow-x: clip;
}

.dsk-home *,
.dsk-home *::before,
.dsk-home *::after {
	box-sizing: border-box;
}

.dsk-shell {
	width: var(--dsk-shell);
	margin-inline: auto;
}

/* ------------------------------------------------------------------ *
 * Section furniture
 * ------------------------------------------------------------------ */

.dsk-section {
	position: relative;
	padding-block: var(--dsk-section-y);
	background: var(--dsk-bg);
}

.dsk-section--alt {
	background: var(--dsk-bg-alt);
}

/* Background artwork sits behind a scrim so text stays readable whatever
   image an editor uploads. */
.dsk-section--media {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.dsk-section--media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 7, 13, 0.88), rgba(5, 7, 13, 0.94));
	pointer-events: none;
}

.dsk-section--media > * {
	position: relative;
	z-index: 1;
}

.dsk-section__head {
	max-width: 720px;
	margin: 0 auto clamp(36px, 5vw, 64px);
	text-align: center;
}

.dsk-eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--dsk-cyan);
}

.dsk-home .dsk-title {
	margin: 0;
	font-size: clamp(1.9rem, 4.4vw, 3.2rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	background: linear-gradient(96deg, var(--dsk-text) 12%, var(--dsk-cyan) 58%, var(--dsk-magenta) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* Flatsome paints headings via `.dark h2` and an inline Customizer rule.
	   text-fill-color wins over both, so the gradient survives regardless of
	   which colour declaration the cascade settles on. */
	-webkit-text-fill-color: transparent;
}

.dsk-lede {
	margin: 18px auto 0;
	max-width: 62ch;
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 1.7;
	color: var(--dsk-muted);
}

.dsk-rule {
	width: 84px;
	height: 2px;
	margin: 22px auto 0;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--dsk-cyan), var(--dsk-magenta), transparent);
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.dsk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 0.95em 2.1em;
	border: 0;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.dsk-btn--primary {
	color: #04070c;
	background: linear-gradient(96deg, var(--dsk-cyan), var(--dsk-magenta));
	box-shadow: 0 10px 34px -14px rgba(55, 226, 213, 0.85);
}

.dsk-btn--ghost {
	color: var(--dsk-text);
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--dsk-border);
}

.dsk-btn:hover,
.dsk-btn:focus-visible {
	transform: translateY(-2px);
}

.dsk-btn--primary:hover,
.dsk-btn--primary:focus-visible {
	box-shadow: 0 16px 40px -12px rgba(227, 0, 184, 0.9);
}

.dsk-btn--ghost:hover,
.dsk-btn--ghost:focus-visible {
	box-shadow: inset 0 0 0 1.5px var(--dsk-cyan);
	color: var(--dsk-cyan);
}

.dsk-section__cta {
	margin-top: clamp(36px, 5vw, 56px);
	text-align: center;
}

/* Keyboard focus must stay obvious against the dark ground. */
.dsk-home a:focus-visible,
.dsk-home button:focus-visible,
.dsk-home [tabindex]:focus-visible {
	outline: 2px solid var(--dsk-cyan);
	outline-offset: 3px;
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

.dsk-hero {
	position: relative;
	background: var(--dsk-bg);
}

.dsk-hero__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.dsk-hero__track::-webkit-scrollbar {
	display: none;
}

.dsk-hero__slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	min-height: clamp(460px, 78vh, 820px);
	display: grid;
	align-items: center;
	isolation: isolate;
}

.dsk-hero__media,
.dsk-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}

.dsk-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(1100px 620px at 18% 42%, rgba(15, 98, 249, 0.34), transparent 62%),
		linear-gradient(92deg, rgba(5, 7, 13, 0.93) 8%, rgba(5, 7, 13, 0.62) 52%, rgba(5, 7, 13, 0.34) 100%);
}

.dsk-hero__content {
	width: var(--dsk-shell);
	margin-inline: auto;
	max-width: 660px;
	padding-block: clamp(72px, 10vw, 120px);
}

.dsk-hero__title {
	margin: 0;
	font-size: clamp(2.3rem, 6.2vw, 4.5rem);
	font-weight: 800;
	line-height: 1.04;
	text-transform: uppercase;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

.dsk-home .dsk-hero__title span {
	background: linear-gradient(96deg, var(--dsk-cyan), var(--dsk-magenta));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.dsk-hero__text {
	margin: 22px 0 0;
	max-width: 52ch;
	font-size: clamp(1rem, 1.6vw, 1.18rem);
	line-height: 1.72;
	color: rgba(242, 245, 247, 0.86);
}

.dsk-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

/* Dot navigation — anchor links, so it works without scripting. */
.dsk-hero__dots {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 2;
}

.dsk-hero__dot {
	width: 34px;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
	transition: background 0.22s ease, width 0.22s ease;
}

.dsk-hero__dot:hover,
.dsk-hero__dot:focus-visible {
	width: 52px;
	background: var(--dsk-cyan);
}

/* ------------------------------------------------------------------ *
 * Brand strip
 * ------------------------------------------------------------------ */

.dsk-brands {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(28px, 5vw, 72px);
}

.dsk-brands__item {
	display: inline-flex;
	align-items: center;
	filter: grayscale(1) brightness(1.7);
	opacity: 0.66;
	transition: opacity 0.24s ease, filter 0.24s ease, transform 0.24s ease;
}

.dsk-brands__item:hover,
.dsk-brands__item:focus-visible {
	opacity: 1;
	filter: none;
	transform: translateY(-3px);
}

.dsk-brands__item img {
	display: block;
	width: auto;
	max-width: 190px;
	height: auto;
}

/* ------------------------------------------------------------------ *
 * Card grids
 * ------------------------------------------------------------------ */

.dsk-grid {
	display: grid;
	gap: clamp(18px, 2.4vw, 30px);
}

.dsk-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 30%, 340px), 1fr));
}

.dsk-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 44%, 480px), 1fr));
}

.dsk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--dsk-border);
	border-radius: var(--dsk-radius);
	background: var(--dsk-surface);
	text-decoration: none;
	color: inherit;
	transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.dsk-card:hover,
.dsk-card:focus-within {
	transform: translateY(-6px);
	border-color: rgba(55, 226, 213, 0.55);
	box-shadow: 0 26px 54px -30px rgba(55, 226, 213, 0.7);
}

.dsk-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #0d1220;
}

.dsk-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.dsk-card:hover .dsk-card__media img {
	transform: scale(1.06);
}

.dsk-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: clamp(18px, 2vw, 26px);
}

.dsk-home .dsk-card__title {
	margin: 0;
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	font-weight: 700;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--dsk-text);
}

.dsk-home .dsk-card:hover .dsk-card__title {
	color: var(--dsk-cyan);
}

.dsk-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
	color: var(--dsk-muted);
}

.dsk-card__excerpt {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.65;
	color: var(--dsk-muted);
}

/* Discount flag on promotion cards. */
.dsk-card__badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	padding: 0.42em 0.9em;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #04070c;
	background: linear-gradient(96deg, var(--dsk-cyan), var(--dsk-magenta));
}

/* ------------------------------------------------------------------ *
 * Menu tabs — radio driven, no JavaScript
 * ------------------------------------------------------------------ */

.dsk-tabs__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dsk-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.dsk-tabs__label {
	padding: 0.72em 1.6em;
	border-radius: 999px;
	border: 1px solid var(--dsk-border);
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dsk-muted);
	cursor: pointer;
	transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.dsk-tabs__label:hover {
	color: var(--dsk-text);
	border-color: rgba(55, 226, 213, 0.5);
}

.dsk-tabs__panel {
	display: none;
}

/* Each radio sits immediately before the panel it reveals, so one adjacent
   sibling rule drives every tab. The matching active-label rules are emitted
   inline by the template, since they must name each tab id. */
.dsk-tabs__radio:checked + .dsk-tabs__panel {
	display: block;
}

.dsk-menu-item {
	display: grid;
	grid-template-columns: 104px 1fr;
	gap: 18px;
	align-items: center;
	padding: 16px;
	border: 1px solid var(--dsk-border);
	border-radius: var(--dsk-radius);
	background: var(--dsk-surface);
	transition: border-color 0.24s ease, transform 0.24s ease;
}

.dsk-menu-item:hover {
	transform: translateY(-4px);
	border-color: rgba(227, 0, 184, 0.55);
}

.dsk-menu-item__thumb {
	width: 104px;
	height: 104px;
	border-radius: 12px;
	object-fit: cover;
	background: #0d1220;
}

.dsk-home .dsk-menu-item__name {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--dsk-text);
}

.dsk-home .dsk-menu-item__sub {
	margin: 4px 0 0;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	color: var(--dsk-cyan);
}

.dsk-menu-item__desc {
	margin: 8px 0 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--dsk-muted);
}

/* ------------------------------------------------------------------ *
 * Closing call to action
 * ------------------------------------------------------------------ */

.dsk-cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(72px, 10vw, 128px);
	text-align: center;
	background:
		radial-gradient(760px 420px at 22% 30%, rgba(15, 98, 249, 0.36), transparent 66%),
		radial-gradient(680px 400px at 80% 72%, rgba(227, 0, 184, 0.32), transparent 66%),
		var(--dsk-bg-alt);
}

.dsk-home .dsk-cta__title {
	margin: 0 auto;
	color: var(--dsk-text);
	max-width: 18ch;
	font-size: clamp(1.9rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
	text-wrap: balance;
}

.dsk-cta__text {
	margin: 18px auto 0;
	max-width: 54ch;
	font-size: clamp(1rem, 1.5vw, 1.1rem);
	line-height: 1.7;
	color: var(--dsk-muted);
}

.dsk-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 34px;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 640px) {
	.dsk-hero__slide {
		min-height: clamp(420px, 72vh, 620px);
		text-align: left;
	}

	.dsk-hero__actions .dsk-btn,
	.dsk-cta__actions .dsk-btn {
		flex: 1 1 100%;
	}

	.dsk-menu-item {
		grid-template-columns: 76px 1fr;
		gap: 14px;
	}

	.dsk-menu-item__thumb {
		width: 76px;
		height: 76px;
	}

	.dsk-brands__item img {
		max-width: 130px;
	}
}

/* ------------------------------------------------------------------ *
 * Motion and contrast preferences
 * ------------------------------------------------------------------ */

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

	.dsk-card:hover,
	.dsk-menu-item:hover,
	.dsk-btn:hover,
	.dsk-brands__item:hover {
		transform: none;
	}
}

@media (prefers-contrast: more) {
	.dsk-home {
		--dsk-muted: rgba(242, 245, 247, 0.85);
		--dsk-border: rgba(255, 255, 255, 0.32);
	}
}
