/**
 * TK Epic Carousel — shared styles (loaded in both editor + front end).
 * Default preset follows an industrial-minimalist look: dark background,
 * warm off-white text, sharp corners. Override the variables below to
 * reskin per-site without touching markup.
 */

.tkec-block {
	--tkec-bg: #0e0e10;
	--tkec-text: #f4efe6;
	--tkec-text-dim: rgba(244, 239, 230, 0.72);
	--tkec-accent: #f4efe6;
	--tkec-scrim: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
	--tkec-overlay-bg: rgba(10, 10, 11, 0.97);
	--tkec-radius: 0px;
	--tkec-font-display: "Archivo Expanded", "Inter", sans-serif;
	--tkec-font-body: "Inter", sans-serif;
	--tkec-slide-height-vh: 90;

	position: relative;
	width: 100%;
	font-family: var(--tkec-font-body);
	color: var(--tkec-text);
}

.tkec-carousel {
	position: relative;
	background: var(--tkec-bg);
	overflow: hidden;
}

.tkec-viewport {
	overflow: hidden;
	width: 100%;
}

.tkec-track {
	display: flex;
	will-change: transform;
}

.tkec-slide {
	position: relative;
	flex: 0 0 auto;
	width: 42%;
	height: var(--tkec-slide-height-px, max(320px, calc(var(--tkec-slide-height-vh, 90) * 1vh)));
	height: var(--tkec-slide-height-px, max(320px, calc(var(--tkec-slide-height-vh, 90) * 1svh)));
	cursor: pointer;
	background-color: #1a1a1c;
	overflow: hidden;
	border-right: 1px solid rgba(244, 239, 230, 0.08);
}

.tkec-slide:focus-visible {
	outline: 2px solid var(--tkec-accent);
	outline-offset: -2px;
}

.tkec-slide-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tkec-slide:hover .tkec-slide-media {
	transform: scale(1.04);
}

.tkec-slide-scrim {
	position: absolute;
	inset: 0;
	background: var(--tkec-scrim);
	pointer-events: none;
}

.tkec-slide-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: clamp(20px, 3vh, 32px) clamp(20px, 3vw, 32px) clamp(28px, 6vh, 56px);
}

.tkec-eyebrow {
	display: inline-block;
	font-family: var(--tkec-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tkec-text-dim);
	margin-bottom: 8px;
}

.tkec-title {
	font-family: var(--tkec-font-display);
	font-size: clamp(22px, 2.4vw, 34px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.05;
	margin: 0;
	color: var(--tkec-text);
}

/* Arrows */
.tkec-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: rgba(14, 14, 16, 0.55);
	border: 1px solid rgba(244, 239, 230, 0.25);
	color: var(--tkec-text);
	width: 44px;
	height: 44px;
	border-radius: var(--tkec-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.tkec-arrow:hover {
	background: rgba(14, 14, 16, 0.85);
	border-color: var(--tkec-accent);
}

.tkec-arrow-prev { left: 16px; }
.tkec-arrow-next { right: 16px; }

/* Dots */
.tkec-dots {
	position: absolute;
	bottom: 16px;
	right: 24px;
	display: flex;
	gap: 8px;
	z-index: 5;
}

.tkec-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(244, 239, 230, 0.3);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tkec-dot.is-active {
	background: var(--tkec-accent);
	transform: scale(1.3);
}

/* Expanded overlay */
.tkec-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: var(--tkec-overlay-bg);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.35s ease;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.tkec-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.tkec-overlay-media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.05);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tkec-overlay.is-open .tkec-overlay-media {
	transform: scale(1);
}

.tkec-overlay-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.1) 65%);
}

.tkec-overlay-content {
	position: relative;
	z-index: 2;
	padding: 48px 64px;
	max-width: 760px;
}

.tkec-overlay-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tkec-text-dim);
	margin-bottom: 12px;
}

.tkec-overlay-title {
	font-family: var(--tkec-font-display);
	font-size: clamp(32px, 5vw, 56px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.02;
	margin: 0 0 12px;
	color: var(--tkec-text);
}

.tkec-overlay-subtitle {
	font-size: 17px;
	color: var(--tkec-text-dim);
	margin: 0 0 8px;
}

.tkec-overlay-description {
	font-size: 15px;
	line-height: 1.6;
	color: var(--tkec-text-dim);
	margin: 0 0 24px;
	max-width: 60ch;
}

.tkec-overlay-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border: 1.5px solid var(--tkec-text);
	color: var(--tkec-text);
	font-family: var(--tkec-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--tkec-radius);
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease;
}

.tkec-overlay-cta:hover {
	background: var(--tkec-text);
	color: var(--tkec-bg);
}

.tkec-overlay-close {
	position: absolute;
	top: 24px;
	right: 24px;
	z-index: 3;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(14, 14, 16, 0.6);
	border: 1px solid rgba(244, 239, 230, 0.3);
	color: var(--tkec-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.tkec-overlay-close:hover {
	background: rgba(14, 14, 16, 0.9);
}

/* Responsive */
@media (max-width: 782px) {
	.tkec-slide { width: 78%; }
	.tkec-overlay-content { padding: 32px 24px; max-width: 100%; }
	.tkec-arrow { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
	.tkec-slide { width: 92%; }
	.tkec-slide-content { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.tkec-slide-media,
	.tkec-overlay-media,
	.tkec-overlay,
	.tkec-track {
		transition: none !important;
	}
}
