/* Hover Cards – Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@500;700&family=Playfair+Display:wght@700&display=swap');

.hover-cards-section {
	margin: 40px 0;
	overflow: hidden;
}

.hover-cards-title {
	font-family: 'Raleway', sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #5D4037;
	text-align: center;
	margin-bottom: 20px;
}

.hover-cards-carousel {
	position: relative;
	padding: 0;
	overflow: hidden;
}

.hover-cards-container {
	padding: 24px 0 30px;
	display: flex;
	flex-wrap: nowrap !important;
	justify-content: flex-start;
	gap: 20px;
	overflow-x: auto;
	overflow-y: visible;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.hover-cards-container::-webkit-scrollbar {
	display: none;
}

.hover-cards-empty {
	text-align: center;
	color: #888;
	font-style: italic;
}

/* ── Card Wrap ─────────────────────────────────────────── */
.hc-card-wrap {
	perspective: 800px;
	transform-style: preserve-3d;
	cursor: pointer;
	flex: 0 0 calc((100% - 40px) / 3);
	min-width: calc((100% - 40px) / 3);
	scroll-snap-align: start;
}

/* ── Card Shell ─────────────────────────────────────────── */
.hc-card {
	position: relative;
	width: 100%;
	height: 300px;
	background-color: #333;
	overflow: hidden;
	border-radius: 10px;
	/*box-shadow:*/
	/*	rgba(0,0,0,.35)    0 14px 30px 0,*/
	/*	inset #333         0  0  0 5px,*/
	/*	inset rgba(255,255,255,.28) 0 0 0 6px;*/
	transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.hc-card-wrap:hover .hc-card {
	transition:
		0.6s cubic-bezier(0.23, 1, 0.32, 1),
		box-shadow 2s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow:
		rgba(255,255,255,.16) 0    0 24px 2px,
		rgba(255,255,255,.95) 0    0  0   1px,
		rgba(0,0,0,.45)       0   18px 36px 0,
		inset #333           0    0  0   5px,
		inset #fff           0    0  0   6px;
}

/* ── Background Image Layer ─────────────────────────────── */
.hc-card-bg {
	/*opacity: .5;*/
	position: absolute;
	top: -20px; left: -20px;
	width: calc(100% + 40px);
	height: calc(100% + 40px);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95),
	            opacity 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
	pointer-events: none;
}

.hc-card-wrap:hover .hc-card-bg {
	transition:
		0.6s cubic-bezier(0.23, 1, 0.32, 1),
		opacity 5s cubic-bezier(0.23, 1, 0.32, 1);
	opacity: .8;
}

/* ── Card Info ──────────────────────────────────────────── */
.hc-card-info {
	padding: 20px;
	position: absolute;
	bottom: 0;
	color: #fff;
	transform: translateY(40%);
	transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
	z-index: 1;
}

.hc-card-wrap:hover .hc-card-info {
	transform: translateY(0);
	transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hc-card-info::after {
	content: '';
	position: absolute;
	top: 0; left: 0;
	z-index: -1;
	width: 100%;
	height: 100%;
	background-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.6) 100%);
	opacity: 0;
	transform: translateY(100%);
	transition: 5s 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.hc-card-wrap:hover .hc-card-info::after {
	transition: 5s cubic-bezier(0.23, 1, 0.32, 1);
	opacity: 1;
	transform: translateY(0);
}

.hc-card-info h3 {
	font-family: 'Playfair Display', serif;
	font-size: 36px;
	font-weight: 700;
	margin: 0 0 6px;
	color: #000;
	text-shadow: rgba(0,0,0,.5) 0 10px 10px;
	position: relative;
	z-index: 1;
	transition: color 0.3s ease;
}

.hc-card-info p {
	opacity: 0;
	margin: 0;
	line-height: 1.5;
	text-shadow: rgba(0,0,0,1) 0 2px 3px;
	color: #000;
	font-family: 'Raleway', sans-serif;
	font-size: 14px;
	font-weight: 500;
	transition: 0.6s 1.6s cubic-bezier(0.215, 0.61, 0.355, 1);
	position: relative;
	z-index: 1;
}

.hc-card-wrap:hover .hc-card-info p {
	opacity: 1;
	color: #fff;
	transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hc-card-wrap:hover .hc-card-info h3 {
	color: #fff;
}

/* ── Responsive ─────────────────────────────────────────── */
@media ( max-width: 600px ) {
	.hover-cards-carousel { padding: 0; }
	.hover-cards-container { padding: 20px 0; }
	.hc-card-wrap { flex-basis: calc((100% - 20px) / 2); min-width: calc((100% - 20px) / 2); }
	.hc-card { height: 330px; }
	.hc-card-info h3 { font-size: 28px; }
}

@media ( max-width: 1024px ) {
	.hc-card-wrap { flex-basis: calc((100% - 20px) / 2); min-width: calc((100% - 20px) / 2); }
}

@media ( max-width: 768px ) {
	.hc-card-wrap { flex-basis: calc((100% - 20px) / 2); min-width: calc((100% - 20px) / 2); }
}
