/* ============================================================
   Image Card Elementor Widget – Frontend Styles
   ============================================================ */

/* ---------- Card Container ---------- */
.ice-image-card {
	position: relative;
	display: block;
	width: 100%;
	height: 480px;
	overflow: hidden;           /* clips image + hover bar to card shape */
	border-radius: 12px;
	background: #111;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ---------- Background Image – fills card entirely ---------- */
.ice-image-card__bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	border-radius: 0;           /* NO radius – parent overflow:hidden handles clipping */
	transition: transform 600ms ease;
	will-change: transform;
	z-index: 0;
}

.ice-image-card:hover .ice-image-card__bg-img {
	transform: scale(1.08);
}

/* ---------- Gradient Overlay – sits above image ---------- */
.ice-image-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0)    0%,
		rgba(0, 0, 0, 0.72) 100%
	);
	border-radius: 0;
	z-index: 1;
	transition: background 400ms ease;
	pointer-events: none;
}

.ice-image-card:hover .ice-image-card__overlay {
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.15) 0%,
		rgba(0, 0, 0, 0.82) 100%
	);
}

/* ---------- Content – overlaid on image, sits at bottom ---------- */
.ice-image-card__content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	/* stop above the hover button so text is never hidden by it */
	bottom: 52px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;  /* badge → title → features float to bottom */
	padding: 24px;
	pointer-events: none;
}

/* ---------- Badge ---------- */
.ice-image-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	background-color: #C9A84C;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 2px;
	margin-bottom: 12px;
	pointer-events: auto;
}

.ice-image-card__badge-icon {
	font-size: 0.9em;
}

/* ---------- Title ---------- */
.ice-image-card__title {
	margin: 0 0 8px;
	padding: 0;
	color: #ffffff;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* ---------- Description ---------- */
.ice-image-card__description {
	margin: 0 0 8px;
	padding: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.6;
}

/* ---------- Features Row ---------- */
.ice-image-card__features {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	color: rgba(255, 255, 255, 0.8);
}

.ice-image-card__feature-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ice-image-card__feature-icon {
	font-size: 12px;
	line-height: 1;
	opacity: 0.85;
}

.ice-image-card__feature-icon svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
	vertical-align: middle;
}

.ice-image-card__feature-text {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ice-image-card__feature-separator {
	opacity: 0.5;
	font-size: 0.75rem;
}

/* ---------- Hover Button Bar – pinned to bottom edge ---------- */
.ice-image-card__hover-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 3;
	display: flex;
	align-items: stretch;
	justify-content: center;
	/* slide in from below */
	transform: translateY(100%);
	transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.ice-image-card:hover .ice-image-card__hover-overlay {
	transform: translateY(0);
	pointer-events: auto;
}

/* ---------- Hover Link Button ---------- */
.ice-image-card__hover-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background-color: #C9A84C;
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 20px;
	transition: background-color 250ms ease, color 250ms ease;
	pointer-events: auto;
}

.ice-image-card__hover-link:hover {
	background-color: #b8943c;
	color: #ffffff;
	text-decoration: none;
}

.ice-image-card__hover-link-icon {
	font-size: 0.85em;
	transition: transform 250ms ease;
}

.ice-image-card__hover-link:hover .ice-image-card__hover-link-icon {
	transform: translateX(3px);
}

.ice-image-card__hover-link-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: middle;
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.ice-image-card__bg-img,
	.ice-image-card__overlay,
	.ice-image-card__hover-overlay,
	.ice-image-card__hover-link,
	.ice-image-card__hover-link-icon {
		transition: none;
	}
	.ice-image-card__hover-overlay {
		transform: translateY(0);
	}
}
