/* ═══════════════════════════════════════════════════════════════
   Houngnibo – Service Section Widget
   ═══════════════════════════════════════════════════════════════ */

.hgb-sec {
	position: relative;
	width: 100%;
	scroll-margin-top: 130px;
	font-family: "Montserrat", sans-serif;
	box-sizing: border-box;
}

.hgb-sec__card {
	background-color: #f7f3ea;
	border: 1px solid #d3c4b9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
	display: grid;
	grid-template-columns: 1fr;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hgb-sec__card:hover {
	border-color: #825500;
	box-shadow: 0 12px 28px -6px rgba(50, 29, 8, 0.08);
}

@media (min-width: 1024px) {
	.hgb-sec__card {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: stretch;
	}

	/* Image Right (default): content 7 cols, visual 5 cols */
	.hgb-sec--image-right .hgb-sec__content-col {
		grid-column: span 7 / span 7;
		order: 1;
	}
	.hgb-sec--image-right .hgb-sec__visual-col {
		grid-column: span 5 / span 5;
		order: 2;
	}

	/* Image Left: visual 5 cols on left, content 7 cols on right */
	.hgb-sec--image-left .hgb-sec__visual-col {
		grid-column: span 5 / span 5;
		order: 1;
	}
	.hgb-sec--image-left .hgb-sec__content-col {
		grid-column: span 7 / span 7;
		order: 2;
	}
}

/* Content Column */
.hgb-sec__content-col {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

@media (min-width: 768px) {
	.hgb-sec__content-col {
		padding: 2.5rem;
	}
}

/* Eyebrow Badge */
.hgb-sec__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	border-radius: 4px;
	background-color: rgba(255, 221, 178, 0.5);
	color: #724a00;
	font-size: 10px;
	line-height: 14px;
	letter-spacing: 0.1em;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.hgb-sec__badge-icon {
	font-size: 13px;
	line-height: 1;
}

/* Title */
.hgb-sec__title {
	font-family: "Montserrat", sans-serif;
	font-size: clamp(1.375rem, 2.5vw, 2rem);
	line-height: 1.25;
	font-weight: 700;
	color: #321d08;
	margin: 0 0 0.75rem 0;
}

/* Frieze Divider */
.hgb-sec__divider {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	color: #825500;
}

.hgb-sec__diamond {
	font-size: 11px;
	color: #825500;
}

.hgb-sec__divider-line {
	height: 1.5px;
	width: 4rem;
	background-color: #825500;
	display: inline-block;
}

/* Description */
.hgb-sec__desc {
	font-size: 15px;
	line-height: 1.6;
	color: #4f453d;
	margin: 0 0 1.5rem 0;
}

/* Prestations List */
.hgb-sec__prestations {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
	margin-bottom: 2rem;
}

.hgb-sec__prest-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background-color: #fdf9f0;
	border: 1px solid rgba(211, 196, 185, 0.4);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hgb-sec__prest-card:hover {
	background-color: #ffffff;
	border-color: #825500;
}

.hgb-sec__prest-icon {
	color: #825500;
	font-size: 20px;
	margin-top: 0.125rem;
	flex-shrink: 0;
	line-height: 1;
}

.hgb-sec__prest-body {
	display: flex;
	flex-direction: column;
}

.hgb-sec__prest-title {
	font-size: 13px;
	line-height: 18px;
	letter-spacing: 0.05em;
	font-weight: 700;
	color: #321d08;
	margin: 0;
}

.hgb-sec__prest-desc {
	font-size: 12px;
	line-height: 18px;
	color: #4f453d;
	margin: 0.125rem 0 0 0;
}

/* Footer / Actions */
.hgb-sec__footer {
	padding-top: 1rem;
	border-top: 1px solid rgba(211, 196, 185, 0.4);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.hgb-sec__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	background-color: #825500;
	color: #ffffff;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.08em;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hgb-sec__btn:hover {
	background-color: #624000;
	color: #ffffff;
	transform: translateY(-1px);
}

.hgb-sec__btn .hgb-ms {
	font-size: 16px;
	transition: transform 0.2s ease;
}

.hgb-sec__btn:hover .hgb-ms {
	transform: translateX(2px);
}

.hgb-sec__trust {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #825500;
	font-size: 11px;
	line-height: 14px;
	letter-spacing: 0.08em;
	font-weight: 600;
	text-transform: uppercase;
}

.hgb-sec__trust-icon {
	font-size: 15px;
	line-height: 1;
}

/* Visual Column */
.hgb-sec__visual-col {
	position: relative;
	min-height: 280px;
	overflow: hidden;
	background-color: #321d08;
}

@media (min-width: 1024px) {
	.hgb-sec__visual-col {
		height: 100%;
		min-height: 100%;
	}
}

.hgb-sec__img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	min-height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	z-index: 0 !important;
	transition: transform 0.6s ease;
}

.hgb-sec__card:hover .hgb-sec__img {
	transform: scale(1.05);
}

.hgb-sec__img-overlay-mobile {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(50, 29, 8, 0.8) 0%, transparent 60%);
	pointer-events: none;
	z-index: 1;
}

@media (min-width: 1024px) {
	.hgb-sec__img-overlay-mobile {
		display: none;
	}
}

.hgb-sec__loc-badge {
	position: absolute;
	bottom: 0.875rem;
	right: 0.875rem;
	background: rgba(247, 243, 234, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.375rem 0.75rem;
	border-radius: 4px;
	border: 1px solid #d3c4b9;
	font-size: 11px;
	line-height: 14px;
	font-weight: 600;
	color: #321d08;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	z-index: 2;
}

/* If image is on the left, position the badge on bottom-left for harmony */
.hgb-sec--image-left .hgb-sec__loc-badge {
	right: auto;
	left: 0.875rem;
}
