/**
 * Service menu — shared styles for /services/ (archive-service.php) and
 * /service-category/{slug}/ (taxonomy-service_category.php).
 *
 * Layout primitives:
 *   .hbn-services-archive          page wrapper
 *   .hbn-services-archive__hero    page hero (aubergine band)
 *   .hbn-services-archive__section per-category block
 *   .hbn-services-archive__subcat  per-group / flat-leaf block
 *   .hbn-svc-group-banner          group heading card (replaces plain h3)
 *   .hbn-svc-grid / .hbn-svc-card  service cards with View + Book buttons
 *   .hbn-btn                       shared pill buttons
 */

.hbn-services-archive { background: var(--bone); color: var(--ink); padding-bottom: 64px; }

.hbn-services-archive__hero {
	background: var(--aubergine);
	color: var(--bone);
	padding: 56px 24px 64px;
	text-align: center;
	position: relative;
}
.hbn-services-archive__hero--has-image {
	background-size: cover;
	background-position: center;
	padding-top: 120px;
	padding-bottom: 120px;
}
.hbn-services-archive__hero--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(45,20,38,0.45) 0%, rgba(45,20,38,0.7) 100%);
}
.hbn-services-archive__hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.hbn-services-archive__eyebrow {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .8;
}
.hbn-services-archive__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 72px);
	line-height: 1;
	margin: 0;
}

.hbn-service-category__intro {
	max-width: 880px;
	margin: 48px auto 0;
	padding: 0 24px;
}
.hbn-service-category__intro-inner {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2, #4a3a45);
}
.hbn-service-category__intro-inner p { margin: 0 0 16px; }
.hbn-service-category__intro-inner h2,
.hbn-service-category__intro-inner h3 {
	font-family: var(--serif);
	font-weight: 400;
	color: var(--aubergine);
	margin: 24px 0 12px;
}
.hbn-service-category__intro-inner a { color: var(--aubergine); }

.hbn-services-archive__section {
	max-width: 1180px;
	margin: 56px auto 0;
	padding: 0 24px;
}
.hbn-services-archive__section-head { margin-bottom: 24px; }
.hbn-services-archive__cat-title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.1;
	margin: 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.hbn-services-archive__cat-title a { color: inherit; text-decoration: none; }

.hbn-services-archive__subcat { margin-top: 40px; }
.hbn-services-archive__subcat:first-child { margin-top: 0; }

/* Group banner — replaces the plain <h3> for a group + its sub-services. */
.hbn-svc-group-banner {
	display: grid;
	grid-template-columns: 160px 1fr auto;
	align-items: center;
	gap: 22px;
	padding: 16px 22px 16px 16px;
	margin: 0 0 22px;
	background: linear-gradient(135deg, var(--paper) 0%, var(--bone-2, #f3ece8) 100%);
	border: 1px solid var(--line-soft);
	border-left: 4px solid var(--aubergine);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hbn-svc-group-banner:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(52, 26, 48, 0.12);
	border-color: var(--rose);
	border-left-color: var(--aubergine);
}
.hbn-svc-group-banner__media {
	width: 160px;
	height: 100px;
	border-radius: 10px;
	background: var(--bone-2) center/cover no-repeat;
}
.hbn-svc-group-banner__body { min-width: 0; }
.hbn-svc-group-banner__title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(22px, 2.2vw, 28px);
	line-height: 1.15;
	margin: 0 0 8px;
	color: var(--aubergine);
}
.hbn-svc-group-banner__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
}
.hbn-svc-group-banner__count,
.hbn-svc-group-banner__price {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(52, 26, 48, 0.06);
	color: var(--ink-2);
	font-weight: 500;
}
.hbn-svc-group-banner__price { color: var(--aubergine); }
.hbn-svc-group-banner__cta {
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--rose-deep);
	white-space: nowrap;
}
.hbn-svc-group-banner:hover .hbn-svc-group-banner__cta { color: var(--aubergine); }
@media (max-width: 640px) {
	.hbn-svc-group-banner { grid-template-columns: 1fr; padding: 14px; }
	.hbn-svc-group-banner__media { width: 100%; height: 140px; }
	.hbn-svc-group-banner__cta { margin-top: 4px; }
}

/* Service cards. */
.hbn-svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 22px;
	margin-bottom: 12px;
}
.hbn-svc-card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.hbn-svc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(52, 26, 48, 0.12);
	border-color: var(--rose);
}
.hbn-svc-card__media-link { display: block; overflow: hidden; }
.hbn-svc-card__media {
	aspect-ratio: 4 / 3;
	background: var(--bone-2) center/cover no-repeat;
	transition: transform .35s ease;
}
.hbn-svc-card__media-link:hover .hbn-svc-card__media { transform: scale(1.03); }
.hbn-svc-card__body {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.hbn-svc-card__title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 22px;
	line-height: 1.2;
	margin: 0;
	color: var(--ink);
}
.hbn-svc-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--rose), var(--rose));
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .25s ease;
}
.hbn-svc-card__title a:hover { background-size: 100% 1px; }
.hbn-svc-card__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	color: var(--ink-2);
}
.hbn-svc-card__duration + .hbn-svc-card__price::before {
	content: "·";
	margin-right: 14px;
	color: var(--muted);
}
.hbn-svc-card__price { font-weight: 600; color: var(--aubergine); }
.hbn-svc-card__actions { margin-top: auto; display: flex; gap: 8px; }
.hbn-svc-card__view,
.hbn-svc-card__book { flex: 1; }

/* Pill buttons (reusable). */
.hbn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
	white-space: nowrap;
}
.hbn-btn:active { transform: translateY(1px); }
.hbn-btn--primary {
	background: var(--aubergine);
	color: var(--bone);
	border: 1px solid var(--aubergine);
}
.hbn-btn--primary:hover {
	background: var(--rose-deep, #8b3b5e);
	border-color: var(--rose-deep, #8b3b5e);
	color: #fff;
}
.hbn-btn--ghost {
	background: transparent;
	color: var(--aubergine);
	border: 1px solid var(--aubergine);
}
.hbn-btn--ghost:hover { background: var(--aubergine); color: var(--bone); }
