/**
 * MediaOne Widgets — Services grid.
 *
 * Values transcribed from the original `.svc-card` / `.badge-guarantee` rules.
 * Grid: 1 column, 2 from 768px, 3 from 1024px.
 */

.mow-svc {

	/* One value drives every alignment in this section — `text-align`,
	   `align-items` and `justify-content` all accept start/center/end, so the
	   alignment control writes this once and the whole block follows. */
	--mow-align: center;
}

.mow-svc__head {
	max-width: 36rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: var(--mow-align);
	text-align: var(--mow-align);
}

.mow-svc__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mow-blue);
	background: var(--mow-sky);
	padding: 5px 16px;
	border-radius: 100px;
	margin-bottom: 14px;
}

.mow-svc__title {
	font-weight: 900;
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
	line-height: 1.25;
	margin: 0.75rem 0;
}

.mow-svc__hl {
	color: var(--mow-orange);
}

.mow-svc__sub {
	color: var(--mow-muted);
	line-height: 1.7;
}

/* ── Grid ─────────────────────────────────────────────────────────────── */

.mow-svc__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	margin-top: 3rem;
}

@media (min-width: 768px) {

	.mow-svc__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {

	.mow-svc__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ── Card ─────────────────────────────────────────────────────────────── */

.mow-svc__card {
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 14, 62, 0.08);
	transition: transform 0.25s, box-shadow 0.25s;
}

.mow-svc__card:hover,
/* Keyboard users get the same lift as the mouse hover. */
.mow-svc__card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(33, 90, 239, 0.14);
}

.mow-svc__card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.mow-svc__icon {
	width: 3rem;
	height: 3rem;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	font-size: 16px;
}

.mow-svc__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.mow-svc__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	background: #f0fdf4;
	border: 1px solid #86efac;
	color: #16a34a;
	text-align: center;
}

.mow-svc__card-title {
	font-family: var(--mow-font-head);
	font-size: 1rem;
	font-weight: 700;
	color: var(--mow-deep);
	margin-bottom: 0.5rem;
	line-height: 1.3;
}

.mow-svc__price {
	font-size: 0.875rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--mow-orange);
}

/* "Contact for pricing" is deliberately quieter than a real figure. */
.mow-svc__price--muted {
	color: var(--mow-faint);
}

.mow-svc__text {
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--mow-muted);
	/* Pushes the link to the bottom so cards in a row align. */
	flex: 1;
}

.mow-svc__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--mow-blue);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mow-svc__link:hover,
.mow-svc__link:focus-visible {
	color: var(--mow-orange);
}

.mow-svc__link svg {
	width: 0.75rem;
	height: 0.75rem;
	flex: 0 0 auto;
	fill: currentColor;
}

/* Narrow phones: the badge and icon compete for the same line. */
@media (max-width: 380px) {

	.mow-svc__card-top {
		flex-direction: column;
		align-items: flex-start;
	}
}
