/* ==========================================================================
   CM WordPress KC Gift Widgets — Hero Banner Stylesheet
   Strict Theme Font Inheritance (font-family: inherit) & Isolated Scoping
   ========================================================================== */

.kcgift-hero-wrapper,
.kcgift-hero-wrapper * {
	box-sizing: border-box;
	font-family: inherit;
}

.kcgift-hero-wrapper {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Main Banner Container (PC Default — matches 1024x403 proportion) */
.kcgift-hero-wrapper .kcgift-hero-section {
	position: relative;
	width: 100%;
	min-height: clamp(380px, 39.4vw, 580px);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding: clamp(46px, 5.8vw, 84px) 24px clamp(110px, 12vw, 180px);
	overflow: hidden;
	isolation: isolate;
	background-color: #ead8c7;
}

/* ==========================================================================
   Responsive Background Image Layers (PC / Tablet / Mobile)
   ========================================================================== */
.kcgift-hero-wrapper .kcgift-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.kcgift-hero-wrapper .kcgift-hero-bg--desktop {
	display: block;
}

.kcgift-hero-wrapper .kcgift-hero-bg--tablet,
.kcgift-hero-wrapper .kcgift-hero-bg--mobile {
	display: none;
}

/* Optional Subtle Zoom on Hover */
.kcgift-hero-wrapper .kcgift-hero-section.kcgift-bg-hover-zoom:hover .kcgift-hero-bg {
	transform: scale(1.045);
}

/* Optional Overlay Layer */
.kcgift-hero-wrapper .kcgift-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 0.35s ease;
	pointer-events: none;
}

/* ==========================================================================
   Content Block
   ========================================================================== */
.kcgift-hero-wrapper .kcgift-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 780px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Heading ("KC GIFTS") */
.kcgift-hero-wrapper .kcgift-hero-heading {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-family: inherit;
	font-size: clamp(42px, 5.2vw, 76px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.10);
	transition: color 0.3s ease;
}

/* Subheading ("KOOTENAY COLLECTIONS") */
.kcgift-hero-wrapper .kcgift-hero-subheading {
	margin: 8px 0 0 0;
	padding: 0;
	color: #ffffff;
	font-family: inherit;
	font-size: clamp(13px, 1.55vw, 22px);
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.12);
	transition: color 0.3s ease;
}

/* ==========================================================================
   Button & Hover Effects
   ========================================================================== */
.kcgift-hero-wrapper .kcgift-hero-btn-wrap {
	margin: 20px 0 0 0;
	padding: 0;
	max-width: 100%;
}

.kcgift-hero-wrapper .kcgift-hero-btn {
	--kcgift-btn-hover-bg: #ffffff;
	--kcgift-btn-duration: 320ms;
	--kcgift-btn-glow-color: rgba(255, 255, 255, 0.75);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 26px;
	color: #ffffff;
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	z-index: 1;
	transition:
		color var(--kcgift-btn-duration) ease,
		background-color var(--kcgift-btn-duration) ease,
		border-color var(--kcgift-btn-duration) ease,
		transform var(--kcgift-btn-duration) cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow var(--kcgift-btn-duration) ease;
}

.kcgift-hero-wrapper .kcgift-hero-btn:hover,
.kcgift-hero-wrapper .kcgift-hero-btn:focus {
	color: #3a2f26;
	border-color: #ffffff;
	text-decoration: none;
	outline: none;
}

.kcgift-hero-wrapper .kcgift-hero-btn-label {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.kcgift-hero-wrapper .kcgift-hero-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.kcgift-hero-wrapper .kcgift-hero-btn-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	transition: fill var(--kcgift-btn-duration) ease;
}

/* 1. Smooth Color Fade (Default) */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fade:hover,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fade:focus {
	background-color: var(--kcgift-btn-hover-bg);
}

/* 2. Sweep Fill — Left to Right */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-left::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--kcgift-btn-hover-bg);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--kcgift-btn-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-left:hover::before,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-left:focus::before {
	transform: scaleX(1);
}

/* 3. Sweep Fill — Right to Left */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-right::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--kcgift-btn-hover-bg);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform var(--kcgift-btn-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-right:hover::before,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-right:focus::before {
	transform: scaleX(1);
}

/* 4. Sweep Fill — Bottom to Top */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-up::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--kcgift-btn-hover-bg);
	transform: scaleY(0);
	transform-origin: center bottom;
	transition: transform var(--kcgift-btn-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-up:hover::before,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-up:focus::before {
	transform: scaleY(1);
}

/* 5. Expand Fill — From Center */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-center::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: var(--kcgift-btn-hover-bg);
	transform: scaleX(0);
	transform-origin: center center;
	transition: transform var(--kcgift-btn-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-center:hover::before,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-fill-center:focus::before {
	transform: scaleX(1);
}

/* 6. Float Lift Up */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-lift:hover,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-lift:focus {
	background-color: var(--kcgift-btn-hover-bg);
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* 7. Gentle Scale Zoom */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-scale:hover,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-scale:focus {
	background-color: var(--kcgift-btn-hover-bg);
	transform: scale(1.045);
}

/* 8. Luxury Shimmer Shine */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-shine::after {
	content: "";
	position: absolute;
	top: -10%;
	left: -130%;
	width: 65%;
	height: 120%;
	z-index: 3;
	background: linear-gradient(
		110deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.45) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-22deg);
	transition: left calc(var(--kcgift-btn-duration) * 1.6) ease;
	pointer-events: none;
}

.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-shine:hover,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-shine:focus {
	background-color: var(--kcgift-btn-hover-bg);
}

.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-shine:hover::after,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-shine:focus::after {
	left: 145%;
}

/* 9. Luminous Border Glow */
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-outline-glow:hover,
.kcgift-hero-wrapper .kcgift-hero-btn.kcgift-hover-outline-glow:focus {
	background-color: var(--kcgift-btn-hover-bg);
	box-shadow: 0 0 18px var(--kcgift-btn-glow-color), inset 0 0 12px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Responsive Breakpoints (Elementor Standard: Tablet <= 1024px, Mobile <= 767px)
   ========================================================================== */

/* Tablet View */
@media (max-width: 1024px) {
	.kcgift-hero-wrapper .kcgift-hero-bg--desktop {
		display: none;
	}

	.kcgift-hero-wrapper .kcgift-hero-bg--tablet {
		display: block;
	}

	.kcgift-hero-wrapper .kcgift-hero-section {
		min-height: 440px;
		padding: 64px 24px 120px;
	}
}

/* Mobile View (Matches 368x538 vertical layout) */
@media (max-width: 767px) {
	.kcgift-hero-wrapper .kcgift-hero-bg--desktop,
	.kcgift-hero-wrapper .kcgift-hero-bg--tablet {
		display: none;
	}

	.kcgift-hero-wrapper .kcgift-hero-bg--mobile {
		display: block;
	}

	.kcgift-hero-wrapper .kcgift-hero-section {
		min-height: 538px;
		padding: 122px 20px 140px;
	}

	.kcgift-hero-wrapper .kcgift-hero-heading {
		font-size: clamp(44px, 13.5vw, 64px);
		letter-spacing: 0.10em;
		line-height: 1.04;
	}

	.kcgift-hero-wrapper .kcgift-hero-subheading {
		margin-top: 8px;
		font-size: clamp(13px, 3.8vw, 17px);
		letter-spacing: 0.22em;
	}

	.kcgift-hero-wrapper .kcgift-hero-btn-wrap {
		margin-top: 24px;
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.kcgift-hero-wrapper .kcgift-hero-btn {
		min-width: 82%;
		padding: 11px 20px;
		font-size: 13px;
	}
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.kcgift-hero-wrapper .kcgift-hero-bg,
	.kcgift-hero-wrapper .kcgift-hero-overlay,
	.kcgift-hero-wrapper .kcgift-hero-heading,
	.kcgift-hero-wrapper .kcgift-hero-subheading,
	.kcgift-hero-wrapper .kcgift-hero-btn,
	.kcgift-hero-wrapper .kcgift-hero-btn::before,
	.kcgift-hero-wrapper .kcgift-hero-btn::after {
		transition: none !important;
	}
}
