/*! Solutions Grid widget (v1.0.0) */

.avd-sg__grid {
	display: grid;
	grid-template-columns: repeat(var(--avd-cols, 3), minmax(0, 1fr));
	gap: 24px;
}

.avd-sg__item {
	position: relative;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px;
	border: 1px solid var(--sc-border);
	border-radius: var(--avd-radius-card);
	background: var(--sc-surface);
	color: var(--sc-heading);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.avd-sg--surface-white .avd-sg__item {
	background: var(--sc-card);
}

.avd-sg__item:hover {
	transform: translateY(-4px);
	border-color: #C9D6EA;
	box-shadow: 0 24px 50px rgba(10, 10, 10, 0.08);
	color: var(--sc-heading);
}

.avd-sg__icon {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: #FFFFFF;
	color: var(--avd-blue);
}

.avd-sg--surface-white .avd-sg__icon {
	background: var(--avd-tint-blue);
}

.avd-scheme-dark .avd-sg__icon {
	background: var(--sc-icon-bg);
	color: var(--sc-icon);
}

.avd-sg__text {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.avd-sg__name {
	margin: 0;
	padding-top: 4px;
	font-family: var(--avd-font-body);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
	color: inherit;
}

.avd-sg__tagline {
	font-size: 16px;
	line-height: 1.55;
	color: var(--sc-text);
}

.avd-sg__more {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	color: var(--sc-accent);
}

.avd-sg__arrow {
	transition: transform 0.2s ease;
}

.avd-sg__item:hover .avd-sg__arrow {
	transform: translateX(4px);
}

/* Compact list */
.avd-sg--list .avd-sg__grid {
	gap: 8px 16px;
}

.avd-sg--list .avd-sg__item {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 16px;
}

.avd-sg--list .avd-sg__item:hover {
	transform: none;
	box-shadow: none;
}

.avd-sg--list .avd-sg__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
}

.avd-sg--list .avd-sg__text {
	flex: 1;
	min-width: 0;
	gap: 3px;
}

.avd-sg--list .avd-sg__name {
	padding-top: 0;
	font-size: 16px;
}

.avd-sg--list .avd-sg__tagline {
	font-size: 14px;
	color: var(--sc-muted);
}

.avd-sg__go {
	display: flex;
	color: var(--sc-muted);
	transition: transform 0.2s ease, color 0.2s ease;
}

.avd-sg--list .avd-sg__item:hover .avd-sg__go {
	transform: translateX(3px);
	color: var(--sc-accent);
}

.avd-sg__item[aria-current="page"] {
	border-color: var(--sc-accent);
}

@media (prefers-reduced-motion: reduce) {
	.avd-sg__item,
	.avd-sg__arrow,
	.avd-sg__go {
		transition: none;
	}

	.avd-sg__item:hover {
		transform: none;
	}
}
