/* ======================================================================
   FORTUNE HOME — RESPONSIVE SYSTEM (PURE CSS, NO JS DEPENDENCY)
   Theme colour: #B8922D  |  Soft: #FEF9E7
   The mobile slider uses scroll-snap, so it can never fail to render.
   ====================================================================== */

:root {
	--fh-gold: #B8922D;
	--fh-gold-dark: #9A7826;
	--fh-gold-soft: #FEF9E7;
	--fh-gold-line: rgba(184, 146, 45, .28);
	--fh-ink: #1F2430;
	--fh-muted: #6B7280;
	--fh-card: #ffffff;
	--fh-line: #E8E6E1;
	--fh-peek: 86%;
}

/* ======================================================================
   WHY CHOOSE US — FEATURE GRID
   Desktop: 4 per row, extras wrap onto the next row.
   Mobile: horizontal scroll-snap slider, 1 full card + a peek of the next.
   ====================================================================== */

.fhs-feat-grid,
.fhs-feat-grid.style-card,
.fhs-feat-grid.style-tile,
.fhs-feat-grid.style-bubble {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.fhs-feat {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	background: var(--fh-card);
	border: 1px solid var(--fh-line);
	border-radius: 14px;
	padding: 30px 20px;
	overflow: hidden;
	transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}

.fhs-feat::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--fh-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}

.fhs-feat:hover {
	border-color: var(--fh-gold);
	box-shadow: 0 14px 34px rgba(184, 146, 45, .16);
	transform: translateY(-4px);
}

.fhs-feat:hover::after {
	transform: scaleX(1);
}

.fhs-feat-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background: var(--fh-gold-soft);
	color: var(--fh-gold);
	transition: background .28s ease, color .28s ease, transform .28s ease;
}

.fhs-feat-ico svg {
	width: 26px;
	height: 26px;
	stroke: currentColor;
	color: currentColor;
}

.fhs-feat:hover .fhs-feat-ico {
	background: var(--fh-gold);
	color: #fff;
	transform: scale(1.08);
}

.fhs-feat-title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: var(--fh-ink);
	line-height: 1.35;
	transition: color .28s ease;
}

.fhs-feat:hover .fhs-feat-title {
	color: var(--fh-gold);
}

.fhs-feat-desc {
	display: block;
	font-size: 14px;
	line-height: 1.65;
	color: var(--fh-muted);
}

/* ---------------------------------------------------------------- arrow */

.fhs-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--fh-gold);
	flex-shrink: 0;
	transition: transform .28s ease;
}

.fhs-arrow svg {
	width: 20px;
	height: 20px;
}

.fhs-dest-card:hover .fhs-arrow {
	transform: translateX(4px);
}

/* ======================================================================
   TABLET
   ====================================================================== */

@media (max-width: 1100px) {
	.fhs-feat-grid,
	.fhs-feat-grid.style-card,
	.fhs-feat-grid.style-tile,
	.fhs-feat-grid.style-bubble {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 16px;
	}
}

@media (max-width: 900px) {
	.fhs-feat-grid,
	.fhs-feat-grid.style-card,
	.fhs-feat-grid.style-tile,
	.fhs-feat-grid.style-bubble {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.fhs-feat {
		padding: 24px 16px;
	}
}

/* ======================================================================
   MOBILE — SCROLL-SNAP SLIDER
   ====================================================================== */

@media (max-width: 680px) {

	.fhs-feat-grid,
	.fhs-feat-grid.style-card,
	.fhs-feat-grid.style-tile,
	.fhs-feat-grid.style-bubble {
		display: flex !important;
		grid-template-columns: none !important;
		flex-wrap: nowrap;
		gap: 12px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 14px;
		margin-bottom: -6px;
	}

	.fhs-feat-grid::-webkit-scrollbar {
		display: none;
		width: 0;
		height: 0;
	}

	.fhs-feat {
		flex: 0 0 var(--fh-peek);
		width: var(--fh-peek);
		max-width: var(--fh-peek);
		scroll-snap-align: start;
		scroll-snap-stop: always;
		padding: 24px 18px;
	}

	.fhs-feat-ico {
		width: 50px;
		height: 50px;
	}

	.fhs-feat-ico svg {
		width: 23px;
		height: 23px;
	}

	.fhs-feat-title {
		font-size: 15px;
	}

	.fhs-feat-desc {
		font-size: 13px;
	}

	/* Hover lift feels wrong on touch. */
	.fhs-feat:hover {
		transform: none;
	}
}

/* Very small phones — wider card, smaller peek. */
@media (max-width: 400px) {
	:root {
		--fh-peek: 89%;
	}
}

/* ======================================================================
   SWIPE HINT — shown only under the mobile slider
   ====================================================================== */

.fhs-swipe-hint {
	display: none;
}

@media (max-width: 680px) {
	.fhs-swipe-hint {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		margin-top: 12px;
		font-size: 12px;
		font-weight: 500;
		color: var(--fh-gold);
		letter-spacing: .2px;
	}

	.fhs-swipe-hint::before,
	.fhs-swipe-hint::after {
		content: "";
		width: 22px;
		height: 1px;
		background: var(--fh-gold-line);
	}
}

/* ======================================================================
   DARK MODE
   ====================================================================== */

@media (prefers-color-scheme: dark) {
	.fhs-feat {
		background: #16181D;
		border-color: #2C2F36;
	}

	.fhs-feat-title {
		color: #F3F4F6;
	}

	.fhs-feat-desc {
		color: #A8ADB8;
	}

	.fhs-feat-ico {
		background: rgba(184, 146, 45, .16);
	}
}

/* ======================================================================
   REDUCED MOTION
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
	.fhs-feat,
	.fhs-feat::after,
	.fhs-feat-ico,
	.fhs-arrow {
		transition: none !important;
	}

	.fhs-feat:hover {
		transform: none;
	}
}
