/* ==========================================================================
   GenH Hero Carousel — "Choose Your Stage"
   Defaults replicate the GenH hero design 1:1. Every colour, radius, border
   and font below can be overridden from the Elementor Style tab.

   Selectors are intentionally written with extra ancestors (.ghc .ghc__tabs
   .ghc__tab, etc.) so they out-rank theme and Elementor-kit global button
   styles (button:focus / button:hover backgrounds, padding, min-heights),
   while still losing to Elementor's per-widget control CSS, which carries
   much higher specificity.
   ========================================================================== */

.ghc {
	--ghc-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ghc-dur: 240ms;
	--ghc-dur-slow: 420ms;
	width: 100%;
	color: #fff;
}

.ghc__inner {
	width: 100%;
	margin-inline: auto;
}

/* ---- Tabs bar: kicker left, pills right ---- */
.ghc__tabsbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.ghc__tabsbar--center { justify-content: center; }
.ghc__tabsbar--start  { justify-content: flex-start; }
.ghc__tabsbar--end    { justify-content: flex-end; }

.ghc__kicker {
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b9b9b9;
}

/* ---- Pill container ---- */
.ghc .ghc__tabs {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: #161616;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---- Tab buttons (full reset against theme/kit button styles) ---- */
.ghc .ghc__tabs .ghc__tab {
	appearance: none;
	-webkit-appearance: none;
	display: inline-block;
	border: none;
	margin: 0;
	cursor: pointer;
	padding: 9px 22px;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	border-radius: 999px;
	font-family: "Exo 2", system-ui, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
	background: transparent;
	background-image: none;
	box-shadow: none;
	color: #b9b9b9;
	transition: color var(--ghc-dur) var(--ghc-ease),
		background var(--ghc-dur) var(--ghc-ease),
		box-shadow var(--ghc-dur) var(--ghc-ease);
	-webkit-tap-highlight-color: transparent;
}

/* Keep theme button:hover / button:focus / button:active rules out. */
.ghc .ghc__tabs .ghc__tab:hover,
.ghc .ghc__tabs .ghc__tab:focus,
.ghc .ghc__tabs .ghc__tab:active {
	background: transparent;
	background-image: none;
	color: #fff;
	text-decoration: none;
	box-shadow: none;
	outline: none;
}

/* Per-slide stage colours arrive as inline CSS vars on each button:
   --ghc-active-bg / --ghc-active-ink / --ghc-glow.
   Repeated with :hover/:focus/:active so the stage colour holds while the
   button keeps browser focus right after being clicked. */
.ghc .ghc__tabs .ghc__tab.is-active,
.ghc .ghc__tabs .ghc__tab.is-active:hover,
.ghc .ghc__tabs .ghc__tab.is-active:focus,
.ghc .ghc__tabs .ghc__tab.is-active:active {
	color: var(--ghc-active-ink, #000);
	background: var(--ghc-active-bg, #ccff00);
	box-shadow: 0 4px 18px -6px var(--ghc-glow, rgba(204, 255, 0, 0.45));
}

/* Visible keyboard focus without disturbing the pill colours. */
.ghc .ghc__tabs .ghc__tab:focus-visible,
.ghc .ghc__dots .ghc__dot:focus-visible,
.ghc .ghc__nav .ghc__arrow:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.55);
	outline-offset: 2px;
}

/* ---- Viewport + track ---- */
.ghc__viewport {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghc__track {
	display: flex;
	width: 100%;
	transition: transform var(--ghc-dur-slow) var(--ghc-ease);
}

.ghc__slide {
	position: relative;
	flex: 0 0 100%;
	max-width: 100%;
	min-height: 520px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Let the chosen Elementor template fill the slide. */
.ghc__slide > .elementor {
	flex: 1 1 auto;
	width: 100%;
}

/* ---- Editor placeholder (no template selected) ---- */
.ghc__placeholder {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: inherit;
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 12px, transparent 12px 24px),
		#0d0d0d;
	color: #777;
	font: 600 13px/1.5 system-ui, sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	padding: 24px;
}

.ghc__placeholder strong {
	color: var(--ghc-active-bg, #ccff00);
	font-size: 18px;
}

/* ---- Arrows (full reset against theme/kit button styles) ---- */
.ghc__nav {
	position: absolute;
	bottom: 22px;
	right: 22px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 3;
}

.ghc .ghc__nav .ghc__arrow {
	appearance: none;
	-webkit-appearance: none;
	width: 46px;
	height: 46px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.4);
	background-image: none;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: none;
	text-shadow: none;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color var(--ghc-dur) var(--ghc-ease),
		background var(--ghc-dur) var(--ghc-ease),
		color var(--ghc-dur) var(--ghc-ease);
}

.ghc .ghc__nav .ghc__arrow:hover,
.ghc .ghc__nav .ghc__arrow:focus,
.ghc .ghc__nav .ghc__arrow:active {
	border-color: var(--ghc-active-bg, #ccff00);
	background: rgba(0, 0, 0, 0.6);
	background-image: none;
	color: #fff;
	box-shadow: none;
	outline: none;
}

/* ---- Dots (full reset against theme/kit button styles) ---- */
.ghc__dots {
	position: absolute;
	bottom: 34px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 3;
}

.ghc .ghc__dots .ghc__dot {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 9px;
	height: 9px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 999px;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.35);
	background-image: none;
	box-shadow: none;
	transition: width var(--ghc-dur) var(--ghc-ease),
		background var(--ghc-dur) var(--ghc-ease);
}

.ghc .ghc__dots .ghc__dot:hover,
.ghc .ghc__dots .ghc__dot:focus,
.ghc .ghc__dots .ghc__dot:active {
	background: rgba(255, 255, 255, 0.55);
	background-image: none;
	box-shadow: none;
	outline: none;
}

.ghc .ghc__dots .ghc__dot.is-active,
.ghc .ghc__dots .ghc__dot.is-active:hover,
.ghc .ghc__dots .ghc__dot.is-active:focus,
.ghc .ghc__dots .ghc__dot.is-active:active {
	width: 26px;
	background: var(--ghc-active-bg, #ccff00);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
	.ghc--hide-arrows-mobile .ghc__nav { display: none; }
	.ghc__slide { min-height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
	.ghc__track,
	.ghc__tab,
	.ghc__dot,
	.ghc__arrow { transition-duration: 0.001ms; }
}
