/* =========================================================================
   Boyle Built — Services

   ONE data source (boyle_built_get_services()) renders into two
   structurally different grids: .services__grid--standard (desktop +
   mobile, shared card-service.php) and .services__grid--tablet (tablet
   only, card-service-tablet.php). CSS shows exactly one per breakpoint;
   `display: none` removes the other from the accessibility tree too, so
   no duplicate links are ever exposed to assistive tech.
   ========================================================================= */

.services {
	background-color: var(--color-bg);
	display: flex;
	flex-direction: column;
}

.services__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.services__eyebrow {
	margin: 0;
	color: var(--color-gold);
	font-family: var(--font-body);
	font-weight: 800;
	text-transform: uppercase;
}

.services__title {
	margin: 0;
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 500;
}

.services__accent {
	background-color: var(--color-gold);
	height: 2px;
}

.services__grid--tablet {
	display: none;
}

/* -------------------------------------------------------------------------
   Service card — desktop + mobile (card-service.php)
   ------------------------------------------------------------------------- */

.service-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-card);
	overflow: hidden;
}

.service-card__image-wrapper {
	position: relative;
	width: 100%;
}

.service-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.service-card__icon-wrapper {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-primary-green);
}

.service-card__content {
	position: relative;
	display: flex;
	flex-direction: column;
}

.service-card__text {
	display: flex;
	flex-direction: column;
}

.service-card__title {
	margin: 0;
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
}

.service-card__description {
	margin: 0;
	color: var(--color-body-muted);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
}

.service-card__action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-ink);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	text-decoration: none;
}

.service-card__action:focus-visible {
	outline: 2px solid var(--color-ink);
	outline-offset: 2px;
}

.service-card__arrow {
	display: block;
	width: 12px;
	height: 12px;
}

/* -------------------------------------------------------------------------
   Mobile (0–600px)
   ------------------------------------------------------------------------- */

.services {
	gap: 32px;
	padding: 56px 16px;
}

.services__eyebrow {
	font-size: 10px;
}

.services__title {
	font-size: 28px;
}

.services__accent {
	width: 30px;
}

.services__grid--standard {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Mobile card has no fill colour — the section background shows through
   the bordered outline (matches canonical Figma; desktop is the only
   variant with an explicit white card background). */
.service-card__image-wrapper {
	height: 140px;
}

.service-card__icon-wrapper {
	left: 16px;
	top: -24px;
	width: 40px;
	height: 40px;
	border-radius: 20px;
}

.service-card__icon {
	width: 16px;
	height: 16px;
}

.service-card__content {
	gap: 12px;
	padding: 24px 16px;
}

.service-card__text {
	gap: 8px;
}

/* -------------------------------------------------------------------------
   Tablet (601–1024px)
   ------------------------------------------------------------------------- */

@media (min-width: 601px) {
	.services {
		gap: 48px;
		padding: 80px 32px;
	}

	.services__eyebrow {
		font-size: 11px;
	}

	.services__title {
		font-size: 36px;
	}

	.services__accent {
		width: 40px;
	}

	.services__grid--standard {
		display: none;
	}

	.services__grid--tablet {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	.service-card-tablet {
		display: flex;
		align-items: stretch;
		border: 1px solid var(--color-border-light);
		border-radius: var(--radius-card);
		overflow: hidden;
	}

	.service-card-tablet__image-wrapper {
		position: relative;
		flex-shrink: 0;
		width: 280px;
	}

	.service-card-tablet__image {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.service-card-tablet__content {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		gap: 16px;
		padding: 32px;
		min-width: 0;
	}

	.service-card-tablet__icon-title {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.service-card-tablet__icon-wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 36px;
		height: 36px;
		border-radius: 18px;
		background-color: var(--color-primary-green);
	}

	.service-card-tablet__icon {
		width: 14px;
		height: 14px;
	}

	.service-card-tablet__title {
		margin: 0;
		color: var(--color-ink);
		font-family: var(--font-body);
		font-weight: 800;
		font-size: 14px;
		text-transform: uppercase;
	}

	.service-card-tablet__description {
		margin: 0;
		color: var(--color-body-muted);
		font-family: var(--font-body);
		font-weight: 400;
		font-size: 13px;
		line-height: 1.5;
	}

	.service-card-tablet__action {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		color: var(--color-ink);
		font-family: var(--font-body);
		font-weight: 700;
		font-size: 11px;
		text-transform: uppercase;
		text-decoration: none;
	}

	.service-card-tablet__action:focus-visible {
		outline: 2px solid var(--color-ink);
		outline-offset: 2px;
	}

	.service-card-tablet__arrow {
		display: block;
		width: 12px;
		height: 12px;
	}
}

/* -------------------------------------------------------------------------
   Desktop (1025px+)
   ------------------------------------------------------------------------- */

@media (min-width: 1025px) {
	.services {
		gap: 48px;
		padding: 80px 40px;
	}

	.services__heading {
		gap: 12px;
	}

	.services__eyebrow {
		font-size: 12px;
	}

	.services__title {
		font-size: 44px;
	}

	.services__accent {
		width: 40px;
	}

	.services__grid--standard {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		gap: 16px;
	}

	.services__grid--tablet {
		display: none;
	}

	.service-card {
		flex: 1 1 0%;
		min-width: 0;
		background-color: #fff;
	}

	.service-card__image-wrapper {
		height: 160px;
	}

	.service-card__icon-wrapper {
		left: 20px;
		top: -24px;
		width: 48px;
		height: 48px;
		border-radius: 24px;
		box-shadow: 0 4px 4px rgba(0, 0, 0, 0.11);
	}

	.service-card__icon {
		width: 20px;
		height: 20px;
	}

	.service-card__content {
		gap: 16px;
		padding: 28px 20px;
	}

	.service-card__text {
		gap: 10px;
	}

	.service-card__description {
		height: 78px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
