/* =========================================================
   Dotyrich — Services Grid widget
   Scope: .dr-sg-wrap, .dr-sg
   ========================================================= */

.dr-sg-wrap { background: var(--dr-bg); }

.dr-sg {
	background: var(--dr-bg);
	padding: 96px 32px;
}

.dr-sg__inner {
	max-width: 1280px;
	margin: 0 auto;
}

.dr-sg__heading {
	text-align: center;
	margin-bottom: 56px;
}

.dr-sg__eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--dr-accent);
	margin-bottom: 14px;
}

.dr-sg__title {
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	font-weight: 600;
	color: var(--dr-text);
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.dr-sg__title.is-serif {
	font-family: 'Source Serif Pro', 'Playfair Display', Georgia, 'Times New Roman', serif !important;
	font-weight: 600;
	letter-spacing: -0.005em;
}

/* === Grid === */
.dr-sg__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* === Card === */
.dr-sg__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 36px 32px;
	background: var(--dr-bg-card);
	border: 1px solid var(--dr-border);
	border-radius: 4px;
	color: var(--dr-text) !important;
	text-decoration: none !important;
	transition: var(--dr-transition);
	position: relative;
	overflow: hidden;
	min-height: 100px;
}

.dr-sg__item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(63, 123, 131, 0.12) 0%, transparent 80%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.dr-sg__item:hover { transform: translateY(-3px); }
.dr-sg__item:hover::before { opacity: 1; }

.dr-sg__item.is-active {
	background: var(--dr-accent) !important;
	border-color: var(--dr-accent) !important;
	color: #ffffff !important;
}

.dr-sg__item.is-active::before { opacity: 0; }

.dr-sg__label {
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--dr-text);
	transition: color 0.3s ease;
	line-height: 1.3;
}

.dr-sg__item.is-active .dr-sg__label,
.dr-sg__item:hover .dr-sg__label { color: #ffffff !important; }

.dr-sg__arrow {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1.5px solid var(--dr-text-muted);
	color: var(--dr-text-muted);
	transition: var(--dr-transition);
}

.dr-sg__arrow svg { width: 14px; height: 14px; }

.dr-sg__item.is-active .dr-sg__arrow,
.dr-sg__item:hover .dr-sg__arrow {
	color: #ffffff !important;
	border-color: #ffffff !important;
	transform: translateX(4px);
}

/* === Responsive === */
@media (max-width: 1024px) {
	.dr-sg__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.dr-sg { padding: 56px 20px; }
	.dr-sg__heading { margin-bottom: 36px; }
	.dr-sg__grid { grid-template-columns: 1fr; gap: 10px; }
	.dr-sg__item { padding: 28px 24px; min-height: auto; }
	.dr-sg__label { font-size: 1rem; }
}
