/**
 * Widget: HL Services Practice Areas Grid
 * Values mirror live harrislieberman.com.au/services `.services-grid-section`
 * (breakpoints: ≤768 / 769–1024 / 1025–1280 / >1280).
 * @package HarrisLieberman
 */

.hl-services-grid {
	/* Live --light-bg #F5F5F5: no matching token (--hl-color-bg-light is #f6f7f9). */
	background-color: #f5f5f5;
	padding: var(--hl-space-20) 120px;
}

.hl-services-grid__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--hl-space-3);
	margin-bottom: var(--hl-space-12);
	text-align: center;
}

.hl-services-grid__tag {
	display: inline-block;
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-xs);
	font-weight: var(--hl-fw-semibold);
	line-height: var(--hl-lh-normal);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--hl-color-accent);
}

.hl-services-grid__title {
	margin: 0;
	font-family: var(--hl-font-heading);
	font-size: 40px;
	font-weight: var(--hl-fw-bold);
	line-height: 1.2;
	color: var(--hl-color-primary);
}

.hl-services-grid__title em {
	font-style: italic;
	color: inherit;
}

.hl-services-grid__subtitle {
	max-width: 600px;
	margin: 0 auto;
	font-family: var(--hl-font-body);
	font-size: var(--hl-fs-base);
	line-height: 1.6;
	color: var(--hl-color-text-muted);
}

.hl-services-grid__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--hl-space-6);
	max-width: 1100px;
	margin: 0 auto;
}

.hl-services-grid .hl-services-grid__card {
	display: flex;
	flex-direction: column;
	gap: var(--hl-space-4);
	padding: 36px 28px;
	background-color: var(--hl-color-white);
	border: 1px solid rgba(0, 0, 0, 0.04);
	border-radius: var(--hl-radius-md);
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s, box-shadow 0.25s;
}

a.hl-services-grid__card:hover,
a.hl-services-grid__card:focus {
	transform: translateY(-4px);
	/* Live shadow uses primary navy at 10%. */
	box-shadow: 0 12px 32px color-mix(in srgb, var(--hl-color-primary) 10%, transparent);
	color: inherit;
}

.hl-services-grid__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	/* Live: accent at 8% (lighter than --hl-color-accent-soft). Follows Theme Settings accent. */
	background-color: color-mix(in srgb, var(--hl-color-accent) 8%, transparent);
	color: var(--hl-color-accent);
	font-size: 22px;
}

.hl-services-grid__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.hl-services-grid__card-title {
	margin: 0;
	font-family: var(--hl-font-heading);
	font-size: var(--hl-fs-lg);
	font-weight: var(--hl-fw-bold);
	line-height: var(--hl-lh-normal);
	color: var(--hl-color-primary);
}

.hl-services-grid__card-desc {
	flex: 1;
	margin: 0;
	font-size: var(--hl-fs-sm);
	line-height: 1.65;
	color: var(--hl-color-text-muted);
}

.hl-services-grid__card-link {
	font-size: 13px;
	font-weight: var(--hl-fw-semibold);
	line-height: var(--hl-lh-normal);
	color: var(--hl-color-accent);
	transition: color 0.2s;
}

.hl-services-grid__card-link:hover {
	color: var(--hl-color-accent-hover);
}

@media (min-width: 1025px) and (max-width: 1280px) {
	.hl-services-grid__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.hl-services-grid {
		padding: 60px 40px;
	}

	.hl-services-grid__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.hl-services-grid {
		padding: var(--hl-space-12) 20px;
	}

	.hl-services-grid__list {
		grid-template-columns: 1fr;
	}
}
