/**
 * Homepage legal specializations / services grid.
 */

.etqan-services {
	--etqan-services-bg: var(--etqan-color-sage, #3f5b2d);
	--etqan-services-ink: #ffffff;
	--etqan-services-muted: rgba(255, 255, 255, 0.78);
	--etqan-services-accent: var(--etqan-color-accent, #c8a96e);
	--etqan-services-sage: var(--etqan-color-primary, #81956b);
	--etqan-services-card: #ffffff;

	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	background: var(--etqan-services-bg);
	color: var(--etqan-services-ink);
	padding: clamp(4rem, 7vw, 6.5rem) 0;
	font-family: "Cairo", sans-serif;
	direction: rtl;
}

.etqan-services__inner {
	width: min(1200px, 92%);
	margin: 0 auto;
}

.etqan-services__header {
	max-width: 760px;
	margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
	text-align: center;
}

.etqan-services__eyebrow {
	margin: 0 0 14px;
	color: var(--etqan-services-accent);
	font-size: 15px;
	font-weight: 500;
}

.etqan-services__title {
	margin: 0 0 16px;
	font-size: clamp(1.85rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--etqan-services-ink);
}

.etqan-services__title span {
	color: var(--etqan-services-accent);
}

.etqan-services__desc {
	margin: 0;
	color: var(--etqan-services-muted);
	font-size: 18px;
	line-height: 2;
}

.etqan-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}

.etqan-services__card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
	background: var(--etqan-services-card);
	border: 1px solid rgba(63, 85, 68, 0.1);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(49, 71, 38, 0.04);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.etqan-services__card:hover {
	transform: translateY(-6px);
	border-color: rgba(200, 169, 110, 0.55);
	box-shadow: 0 16px 36px rgba(49, 71, 38, 0.14);
}

.etqan-services__card:hover .etqan-services__icon {
	background: rgba(200, 169, 110, 0.22);
	border-color: var(--etqan-services-accent);
	color: #a8843f;
}

.etqan-services__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(200, 169, 110, 0.14);
	border: 2px solid rgba(200, 169, 110, 0.35);
	color: var(--etqan-services-accent);
	box-shadow: 0 4px 14px rgba(200, 169, 110, 0.18);
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.etqan-services__icon svg,
.etqan-services__icon-svg {
	display: block;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.85;
	stroke-linecap: round;
	stroke-linejoin: round;
	shape-rendering: geometricPrecision;
}

.etqan-services__card:hover .etqan-services__icon svg,
.etqan-services__card:hover .etqan-services__icon-svg {
	stroke-width: 2;
}

.etqan-services__card-title {
	margin: 0 0 12px;
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	font-weight: 700;
	line-height: 1.45;
}

.etqan-services__card-title a {
	color: #314726;
	text-decoration: none;
	transition: color 0.2s ease;
}

.etqan-services__card-title a:hover,
.etqan-services__card-title a:focus-visible {
	color: var(--etqan-services-accent);
}

.etqan-services__card-text {
	flex: 1;
	margin: 0 0 20px;
	color: #666666;
	font-size: 16px;
	line-height: 1.9;
}

.etqan-services__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--etqan-color-sage, #3f5b2d);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.etqan-services__link:hover,
.etqan-services__link:focus-visible {
	color: var(--etqan-services-accent);
	gap: 12px;
}

.etqan-services__link-arrow {
	font-size: 14px;
	line-height: 1;
}

@media (max-width: 992px) {
	.etqan-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.etqan-services__grid {
		grid-template-columns: 1fr;
	}

	.etqan-services__desc {
		font-size: 16px;
	}
}
