/* AG Service Paths */

.ag-paths__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(16px, 2vw, 28px);
}

.ag-paths__panel {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(460px, 78vh, 760px);
	overflow: hidden;
	isolation: isolate;
	background-color: var(--ag-charcoal);
	color: var(--ag-ivory);
}

.ag-paths__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.ag-paths__panel--empty .ag-paths__media {
	background:
		radial-gradient(110% 80% at 80% 0%, rgba(176, 141, 87, 0.3) 0%, rgba(176, 141, 87, 0) 60%),
		linear-gradient(170deg, #34322d 0%, #1e1d1b 70%);
}

.ag-paths__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ag-ease, ease);
}

.ag-paths__panel:hover .ag-paths__img,
.ag-paths__panel:focus-within .ag-paths__img {
	transform: scale(1.03);
}

.ag-paths__panel::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(30, 29, 27, 0.15) 0%, rgba(30, 29, 27, 0.35) 45%, rgba(30, 29, 27, 0.9) 100%);
	content: "";
	transition: background-color 0.5s var(--ag-ease, ease);
}

.ag-paths__panel:hover::after,
.ag-paths__panel:focus-within::after {
	background-color: rgba(30, 29, 27, 0.35);
}

.ag-paths__body {
	width: 100%;
	padding: clamp(24px, 3.5vw, 48px);
}

.ag-paths__label {
	margin: 0 0 14px;
	color: var(--ag-ivory);
	font-size: var(--ag-eyebrow);
	font-weight: 600;
	letter-spacing: 0.18em;
}

.ag-paths__title {
	margin: 0;
	font-size: clamp(2.75rem, 4vw + 1rem, 4.75rem);
	line-height: 1;
}

.ag-paths__title a {
	color: inherit;
	text-decoration: none;
}

.ag-paths__text {
	max-width: 30rem;
	margin: 0 0 20px;
	color: rgba(247, 243, 236, 0.9);
}

.ag-paths__list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ag-hairline-light);
	list-style: none;
}

.ag-paths__list li {
	border-bottom: 1px solid var(--ag-hairline-light);
}

.ag-paths__list a,
.ag-paths__list span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	color: var(--ag-ivory);
	font-size: 1.0625rem;
	text-decoration: none;
	transition: color var(--ag-speed, 0.3s) var(--ag-ease, ease), padding-left var(--ag-speed, 0.3s) var(--ag-ease, ease);
}

.ag-paths__list a:hover {
	padding-left: 8px;
	color: var(--ag-brass);
}

.ag-paths__reveal {
	padding-top: 20px;
}

.ag-paths__more-wrap {
	margin: 28px 0 0;
}

.ag-paths__panel .ag-paths__more {
	color: var(--ag-ivory);
}

@media (min-width: 900px) {
	.ag-paths__grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ag-paths__grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Hover reveal — only where a mouse is available; touch screens always show everything. */
@media (hover: hover) and (min-width: 900px) {
	.ag-paths__reveal {
		display: grid;
		grid-template-rows: 0fr;
		padding-top: 0;
		opacity: 0;
		transition: grid-template-rows 0.55s var(--ag-ease, ease), opacity 0.45s var(--ag-ease, ease), padding-top 0.55s var(--ag-ease, ease);
	}

	.ag-paths__reveal-inner {
		min-height: 0;
		overflow: hidden;
	}

	.ag-paths__panel:hover .ag-paths__reveal,
	.ag-paths__panel:focus-within .ag-paths__reveal {
		grid-template-rows: 1fr;
		padding-top: 20px;
		opacity: 1;
	}
}
