/* -------------------------------------------------
 * Halal Enquiry Popup
 * ------------------------------------------------- */

.hep-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.hep-popup-overlay.hep-active {
	opacity: 1;
	visibility: visible;
}

.hep-popup-box {
	background: #f7f3ea;
	border-radius: 16px;
	max-width: 1000px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 50px 40px;
	box-sizing: border-box;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: scale(0.95) translateY(10px);
	transition: transform .25s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.hep-popup-overlay.hep-active .hep-popup-box {
	transform: scale(1) translateY(0);
}

.hep-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0, 0, 0, 0.06);
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #444;
	cursor: pointer;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 50%;
	transition: background .15s ease;
	z-index: 2;
}

.hep-popup-close:hover {
	background: rgba(0, 0, 0, 0.12);
}

.hep-popup-title {
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(19px, 6vw, 34px);
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 12px;
	padding: 0 34px;
	line-height: 1.25;
	word-wrap: break-word;
}

.hep-popup-subtitle {
	text-align: center;
	color: #6b7280;
	font-size: clamp(12.5px, 3vw, 16px);
	max-width: 560px;
	margin: 0 auto 30px;
	line-height: 1.5;
}

.hep-cards {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, 1fr);
}

.hep-cards-3 {
	grid-template-columns: repeat(3, 1fr);
}

.hep-card {
	background: #ffffff;
	border-radius: 14px;
	padding: 34px 26px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.hep-card-icon {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #eaf1e8;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

.hep-card-icon .dashicons {
	width: 30px;
	height: 30px;
	font-size: 30px;
	color: #1a4321;
}

.hep-card-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(16px, 4.5vw, 21px);
	color: #1d2327;
	margin: 0 0 10px;
	word-wrap: break-word;
}

.hep-card-desc {
	color: #6b7280;
	font-size: clamp(12.5px, 3vw, 14.5px);
	line-height: 1.55;
	margin: 0 0 22px;
	flex-grow: 1;
	word-wrap: break-word;
}

.hep-card-btn {
	display: inline-block;
	padding: 13px 22px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	width: 100%;
	box-sizing: border-box;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* ---- Tablet & below: stack cards to a single column ---- */
@media (max-width: 720px) {
	.hep-cards,
	.hep-cards-3 {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.hep-popup-box {
		padding: 38px 22px 26px;
		border-radius: 14px;
	}

	.hep-popup-title {
		padding: 0 26px;
	}

	.hep-popup-subtitle {
		margin-bottom: 24px;
	}

	.hep-card {
		padding: 24px 18px;
	}
}

/* ---- Narrow phones ---- */
@media (max-width: 420px) {
	.hep-popup-overlay {
		padding: 8px;
	}

	.hep-popup-box {
		padding: 32px 14px 20px;
		border-radius: 12px;
		max-height: 94vh;
	}

	.hep-popup-close {
		top: 8px;
		right: 8px;
		width: 28px;
		height: 28px;
		font-size: 18px;
	}

	.hep-popup-title {
		padding: 0 22px;
		margin-bottom: 8px;
	}

	.hep-popup-subtitle {
		margin-bottom: 18px;
	}

	.hep-card {
		padding: 20px 14px;
	}

	.hep-card-icon {
		width: 48px;
		height: 48px;
		margin-bottom: 10px;
	}

	.hep-card-icon .dashicons {
		width: 22px;
		height: 22px;
		font-size: 22px;
	}

	.hep-card-title {
		margin-bottom: 6px;
	}

	.hep-card-desc {
		margin-bottom: 16px;
	}

	.hep-card-btn {
		padding: 11px 14px;
		font-size: 11.5px;
	}
}

.hep-btn-filled {
	background: #1a4321;
	color: #ffffff !important;
	border: 2px solid #1a4321;
}

.hep-btn-filled:hover {
	background: #102b15;
	border-color: #102b15;
	color: #ffffff !important;
}

.hep-btn-filled:active,
.hep-btn-filled:focus {
	color: #b5903d !important;
}

.hep-btn-outline {
	background: transparent;
	color: #1a4321 !important;
	border: 2px solid #1a4321;
}

.hep-btn-outline:hover {
	background: #1a4321;
	color: #ffffff !important;
}
