/**
 * Phase 6 Tjänster page.
 *
 * All rules are isolated to .t0-services so Start, the global header and the
 * global footer retain their approved presentation.
 */

.t0-services {
	--t0-services-width: 74rem;
}

.t0-services-container {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-services-width));
	margin-inline: auto;
}

.t0-services-section {
	padding-block: clamp(3.5rem, 6vw, 5rem);
}

.t0-services-section--soft {
	background: var(--wp--preset--color--surface-soft, #f8f6f5);
}

.t0-services-heading {
	max-width: 42rem;
	margin-block-end: clamp(1.75rem, 3vw, 2.5rem);
}

.t0-services-heading .t0-meta,
.t0-services-hero .t0-meta,
.t0-services-cta .t0-meta {
	margin-block-end: 0.75rem;
}

.t0-services-heading h2 {
	margin: 0;
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
}

.t0-services-heading--center {
	margin-inline: auto;
	text-align: center;
}

.t0-services-heading--center .t0-accent-underline::after {
	inset-inline: 50% auto;
	transform: translateX(-50%);
}

/* Hero */
.t0-services-hero {
	padding-block: clamp(2.75rem, 4.5vw, 4rem);
	background: linear-gradient(110deg, #fff 0%, #fff 58%, #f8f6f5 58%, #f8f6f5 100%);
}

.t0-services-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5rem);
}

.t0-services-hero__content {
	max-width: 36rem;
}

.t0-services-hero h1 {
	max-width: 13ch;
	margin-block-end: 1.5rem;
	font-size: clamp(2.35rem, 4vw, 3.35rem);
	line-height: 1.06;
}

.t0-services-hero__content > p:last-child {
	max-width: 35rem;
	margin: 0;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: clamp(1.025rem, 1.5vw, 1.15rem);
	line-height: 1.68;
}

.t0-services-hero__media {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large, 1rem);
	box-shadow: var(--wp--custom--shadow--card, 0 0.75rem 2.5rem rgb(36 33 31 / 0.07));
}

.t0-services-hero__media::after {
	position: absolute;
	inset: 0;
	border: 1px solid rgb(36 33 31 / 0.08);
	border-radius: inherit;
	content: "";
	pointer-events: none;
}

.t0-services-hero__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Service rows */
.t0-services-offer {
	padding-block-start: clamp(1rem, 2.5vw, 2rem);
}

.t0-services-list {
	display: grid;
	gap: 0.75rem;
}

.t0-services-row {
	display: grid;
	min-width: 0;
	min-height: 10.5rem;
	grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
	align-items: stretch;
	gap: clamp(1rem, 2.5vw, 2rem);
	padding: 0.75rem;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border, #e5dfdb);
	border-radius: var(--wp--custom--radius--large, 1rem);
	background: var(--wp--preset--color--surface, #fff);
	color: var(--wp--preset--color--text, #24211f);
	text-decoration: none;
	transition:
		border-color var(--wp--custom--transition--fast, 160ms ease),
		box-shadow var(--wp--custom--transition--fast, 160ms ease),
		transform var(--wp--custom--transition--fast, 160ms ease);
}

.t0-services-row:hover {
	border-color: var(--wp--preset--color--primary, #b0744a);
	box-shadow: var(--wp--custom--shadow--card, 0 0.75rem 2.5rem rgb(36 33 31 / 0.07));
	text-decoration: none;
	transform: translateY(-0.125rem);
}

.t0-services-row__copy {
	display: grid;
	min-width: 0;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: clamp(1rem, 2.25vw, 1.5rem);
	padding: clamp(0.5rem, 1.8vw, 1.1rem);
}

.t0-services-row__icon {
	display: grid;
	width: 4rem;
	height: 4rem;
	place-items: center;
	border-radius: 999px;
	background: #f6efea;
	color: var(--wp--preset--color--primary, #b0744a);
}

.t0-services-row__icon .dashicons {
	width: 2rem;
	height: 2rem;
	font-size: 2rem;
	line-height: 1;
}

.t0-services-row h3 {
	margin-block-end: 0.45rem;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.t0-services-row p {
	max-width: 48ch;
	margin-block-end: 0.55rem;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.925rem;
	line-height: 1.55;
}

.t0-services-row__link-text {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	gap: 0.45rem;
	color: var(--wp--preset--color--primary-dark, #8d5835);
	font-size: 0.875rem;
	font-weight: 700;
}

.t0-services-row__link-text span {
	transition: transform var(--wp--custom--transition--fast, 160ms ease);
}

.t0-services-row:hover .t0-services-row__link-text span {
	transform: translateX(0.2rem);
}

.t0-services-row__media {
	position: relative;
	display: block;
	min-width: 0;
	min-height: 9rem;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--medium, 0.625rem);
	background: #eee9e5;
}

.t0-services-row__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.t0-services-row:hover .t0-services-row__media img {
	transform: scale(1.025);
}

/* Audiences */
.t0-services-audience-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.t0-services-audience {
	display: grid;
	min-width: 0;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.9rem;
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--border, #e5dfdb);
	border-radius: var(--wp--custom--radius--medium, 0.625rem);
	background: rgb(255 255 255 / 0.75);
}

.t0-services-audience--priority {
	border-color: rgb(176 116 74 / 0.45);
	background: #f4ebe5;
}

.t0-services-audience > .dashicons {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	border-radius: 999px;
	background: var(--wp--preset--color--surface, #fff);
	color: var(--wp--preset--color--primary, #b0744a);
	font-size: 1.5rem;
	line-height: 1;
}

.t0-services-audience h3 {
	margin-block-end: 0.4rem;
	font-size: 1.05rem;
	line-height: 1.35;
}

.t0-services-audience p {
	margin: 0;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.875rem;
	line-height: 1.55;
}

/* Process */
.t0-services-process-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t0-services-process-step {
	display: grid;
	min-width: 0;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 1.25rem;
	border: 1px solid var(--wp--preset--color--border, #e5dfdb);
	border-radius: var(--wp--custom--radius--medium, 0.625rem);
	background: var(--wp--preset--color--surface, #fff);
}

.t0-services-process-step__icon {
	display: grid;
	width: 3.75rem;
	height: 3.75rem;
	place-items: center;
	border-radius: 999px;
	background: #f6efea;
	color: var(--wp--preset--color--primary, #b0744a);
}

.t0-services-process-step__icon .dashicons {
	width: 1.75rem;
	height: 1.75rem;
	font-size: 1.75rem;
	line-height: 1;
}

.t0-services-process-step__number {
	display: inline-grid;
	width: 1.75rem;
	height: 1.75rem;
	margin-block-end: 0.45rem;
	place-items: center;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #b0744a);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1;
}

.t0-services-process-step h3 {
	margin-block-end: 0.35rem;
	font-size: 1.1rem;
}

.t0-services-process-step p {
	margin: 0;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Bottom CTA */
.t0-services-cta {
	padding-block: clamp(3.5rem, 6vw, 5rem);
	background: #eee8e4;
}

.t0-services-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
}

.t0-services-cta__content {
	max-width: 40rem;
}

.t0-services-cta h2 {
	margin-block-end: 1rem;
	font-size: clamp(2rem, 3.7vw, 3rem);
}

.t0-services-cta__content > p:not(.t0-meta) {
	max-width: 36rem;
	margin-block-end: 1.5rem;
	color: var(--wp--preset--color--text-muted, #6d6762);
}

.t0-services-cta__contact {
	display: grid;
	gap: 0.75rem;
}

.t0-services-cta__contact a {
	display: grid;
	min-width: 0;
	min-height: 4.5rem;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.9rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgb(176 116 74 / 0.28);
	border-radius: var(--wp--custom--radius--medium, 0.625rem);
	background: rgb(255 255 255 / 0.7);
	color: var(--wp--preset--color--text, #24211f);
}

.t0-services-cta__contact a:hover {
	border-color: var(--wp--preset--color--primary, #b0744a);
	text-decoration: none;
}

.t0-services-cta__contact > a > .dashicons {
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #b0744a);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
}

.t0-services-cta__contact span:last-child,
.t0-services-cta__contact small,
.t0-services-cta__contact strong {
	display: block;
	min-width: 0;
}

.t0-services-cta__contact small {
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.75rem;
}

.t0-services-cta__contact strong {
	overflow-wrap: anywhere;
	font-size: 0.95rem;
}

@media (max-width: 61.99rem) {
	.t0-services-hero {
		background: linear-gradient(180deg, #fff 0%, #fff 58%, #f8f6f5 58%, #f8f6f5 100%);
	}

	.t0-services-hero__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.t0-services-hero__content {
		max-width: 44rem;
	}

	.t0-services-row {
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.8fr);
	}

	.t0-services-audience-grid {
		grid-template-columns: 1fr;
	}

	.t0-services-cta__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 47.99rem) {
	.t0-services-section {
		padding-block: 3.5rem;
	}

	.t0-services-heading {
		margin-block-end: 1.75rem;
	}

	.t0-services-hero {
		padding-block: 2.5rem;
		background: #fff;
	}

	.t0-services-hero h1 {
		font-size: clamp(1.95rem, 8vw, 2.4rem);
	}

	.t0-services-hero__content > p:last-child {
		font-size: 1rem;
		line-height: 1.6;
	}

	.t0-services-hero__media {
		display: none;
	}

	.t0-services-offer {
		padding-block-start: 1rem;
	}

	.t0-services-list {
		gap: 0.625rem;
	}

	.t0-services-row {
		min-height: 8.75rem;
		grid-template-columns: minmax(0, 1fr) 7.25rem;
		gap: 0.75rem;
		padding: 0.65rem;
		border-radius: var(--wp--custom--radius--medium, 0.625rem);
	}

	.t0-services-row__copy {
		grid-template-columns: 2.25rem minmax(0, 1fr);
		align-items: start;
		gap: 0.65rem;
		padding: 0.35rem 0;
	}

	.t0-services-row__icon {
		width: 2.25rem;
		height: 2.25rem;
	}

	.t0-services-row__icon .dashicons {
		width: 1.25rem;
		height: 1.25rem;
		font-size: 1.25rem;
	}

	.t0-services-row h3 {
		margin-block-end: 0.35rem;
		font-size: 1rem;
		line-height: 1.3;
	}

	.t0-services-row p {
		margin-block-end: 0.25rem;
		font-size: 0.8rem;
		line-height: 1.45;
	}

	.t0-services-row__link-text {
		min-height: 2.25rem;
		gap: 0;
		font-size: 0;
	}

	.t0-services-row__link-text span {
		font-size: 1rem;
	}

	.t0-services-row__media {
		min-height: 7.45rem;
	}

	.t0-services-audience {
		padding: 1rem;
	}

	.t0-services-process-list {
		grid-template-columns: 1fr;
	}

	.t0-services-process-step {
		padding: 1rem;
	}

	.t0-services-process-step__icon {
		width: 3.25rem;
		height: 3.25rem;
	}

	.t0-services-cta {
		padding-block: 3rem;
	}

	.t0-services-cta__inner {
		gap: 1.5rem;
	}

	.t0-services-cta h2 {
		margin-block-end: 0.75rem;
	}

	.t0-services-cta__content > p:not(.t0-meta) {
		margin-block-end: 1.25rem;
	}
}

@media (max-width: 31.25rem) {
	.t0-services-row {
		grid-template-columns: minmax(0, 1fr) 6.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.t0-services-row:hover,
	.t0-services-row:hover .t0-services-row__media img,
	.t0-services-row:hover .t0-services-row__link-text span {
		transform: none;
	}
}
