/* =========================================================
   eh-layanan.css  —  Layanan Proyek Section
   ========================================================= */

/* ── Section wrapper ──────────────────────────────────── */
.eh-layanan-block {
	display: block;
	width: 100%;
	background: #ffffff;
	overflow: visible;
}

/* ── Header ───────────────────────────────────────────── */
.eh-layanan__header {
	max-width: 1440px;
	margin: 0 auto;
	padding: 56px 56px 44px;
	text-align: center;
	box-sizing: border-box;
}

/* Badge row: repurposed as the section heading row (icon + title inline) */
.eh-layanan__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 12px;
}

.eh-layanan__badge-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	display: block;
}

.eh-layanan__badge-text {
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

/* h2 heading duplicates badge-text — suppress it visually */
.eh-layanan__heading {
	display: none;
}

/* Italic sub-heading */
.eh-layanan__subheading {
	font-size: 14px;
	line-height: 1.65;
	color: #475569;
	font-style: italic;
	margin: 0;
}

/* ── Services strip ───────────────────────────────────── */
.eh-layanan__strip {
	display: grid;
	/* Each service = 1 card col + 1 photo col. 3 services = 6 cols */
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: 1fr;
	align-items: stretch;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
	min-height: 240px;
	/* Align with other home blocks (hero: 56px, event slider: 56px) */
	max-width: 1440px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 56px;
	padding-right: 56px;
	box-sizing: border-box;
}

/* ── Service cards ────────────────────────────────────── */
.eh-layanan__card {
	padding: 32px 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border-right: 1px solid #e2e8f0;
	background: #ffffff;
}

/* ── Service icon ─────────────────────────────────────── */
.eh-layanan__icon {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
}

.eh-layanan__icon-img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

/* ── Card title & desc ────────────────────────────────── */
.eh-layanan__card-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.35;
	margin: 0;
}

.eh-layanan__card-desc {
	font-size: 12.5px;
	line-height: 1.65;
	color: #64748b;
	margin: 0;
	flex: 1;
}

/* ── CTA button ───────────────────────────────────────── */
.eh-layanan__cta {
	display: inline-block;
	margin-top: auto;
	padding: 7px 18px;
	font-size: 12px;
	font-weight: 600;
	color: #0d9488;
	border: 1.5px solid #0d9488;
	border-radius: 6px;
	text-decoration: none;
	align-self: flex-start;
	transition: background .18s, color .18s;
	letter-spacing: 0.01em;
}

.eh-layanan__cta:hover {
	background: #0d9488;
	color: #ffffff;
}

/* ── Companion photos ─────────────────────────────────── */
.eh-layanan__photo {
	position: relative;
	overflow: hidden;
	border-right: 1px solid #e2e8f0;
}

.eh-layanan__photo:last-child {
	border-right: none;
}

.eh-layanan__photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

.eh-layanan__photo:hover .eh-layanan__photo-img {
	transform: scale(1.04);
}

/* ── Empty photo slot: neutral fill ──────────────────── */
.eh-layanan__photo--empty {
	background: #f1f5f9;
	border-right: 1px solid #e2e8f0;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
	.eh-layanan__header {
		padding: 48px 32px 36px;
	}

	.eh-layanan__strip {
		grid-template-columns: repeat(3, 1fr);
		grid-template-rows: auto auto;
		padding-left: 32px;
		padding-right: 32px;
	}

	/* On tablet: show 3 cards on row 1, photos on row 2 */
	.eh-layanan__card  { grid-row: 1; }
	.eh-layanan__photo { grid-row: 2; min-height: 180px; }
}

@media (max-width: 640px) {
	.eh-layanan__header {
		padding: 32px 20px 24px;
	}

	.eh-layanan__badge-text {
		font-size: 20px;
	}

	.eh-layanan__subheading {
		font-size: 13px;
	}

	.eh-layanan__strip {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		padding-left: 0;
		padding-right: 0;
	}

	.eh-layanan__card {
		grid-row: auto;
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
		padding: 24px 20px;
	}

	.eh-layanan__photo {
		grid-row: auto;
		min-height: 220px;
		border-right: none;
		border-bottom: 1px solid #e2e8f0;
	}

	.eh-layanan__photo:last-child {
		border-bottom: none;
	}

	.eh-layanan__cta {
		align-self: flex-start;
		padding: 8px 20px;
	}
}

@media (max-width: 400px) {
	.eh-layanan__header {
		padding: 28px 16px 20px;
	}

	.eh-layanan__badge-text {
		font-size: 18px;
	}

	.eh-layanan__strip {
		border-left: none;
		border-right: none;
	}
}
