/**
 * Phase 8.1 Om oss page.
 *
 * All presentation is isolated to .t0-about so the approved public pages and
 * shared header/footer remain unchanged.
 */

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

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

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

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

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

.t0-about-heading h2,
.t0-about-work h2 {
	margin: 0;
	font-size: clamp(1.875rem, 3.5vw, 2.75rem);
	line-height: 1.12;
}

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

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

/* Hero */
.t0-about-hero {
	padding-block: clamp(2.75rem, 4.5vw, 4rem);
	background: #fff;
}

.t0-about-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-about-hero__content {
	max-width: 36rem;
}

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

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

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

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

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

/* Building-company logo marquee */
.t0-about-partners {
	overflow: hidden;
	background: var(--wp--preset--color--surface-soft, #f8f6f5);
}

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

.t0-about-partners h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.t0-about-logo-marquee {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large, 1rem);
	touch-action: pan-y;
}

.t0-about-logo-marquee__track {
	--t0-logo-gap: 1rem;

	display: flex;
	width: max-content;
	gap: var(--t0-logo-gap);
	animation: t0-about-logo-marquee 36s linear infinite;
	will-change: transform;
}

.t0-about-logo-marquee__group {
	display: flex;
	flex: none;
	gap: var(--t0-logo-gap);
}

.t0-about-logo-card {
	display: grid;
	flex: 0 0 clamp(12rem, 58vw, 16rem);
	width: clamp(12rem, 58vw, 16rem);
	height: clamp(6.5rem, 30vw, 8rem);
	place-items: center;
	overflow: hidden;
	padding: 1rem;
	border: 1px solid var(--wp--preset--color--border, #e5dfdb);
	border-radius: var(--wp--custom--radius--large, 1rem);
	background: var(--wp--preset--color--surface, #fff);
	box-shadow: var(--wp--custom--shadow--card, 0 0.75rem 2.5rem rgb(36 33 31 / 0.05));
}

.t0-about-logo {
	display: block;
	flex: none;
	height: auto;
	object-fit: contain;
}

.t0-about-logo--kovka {
	width: 78%;
}

.t0-about-logo--mercon-group {
	width: 74%;
}

.t0-about-logo--swepartner-ab {
	width: 90%;
	transform: translateY(-22%);
}

.t0-about-logo-marquee:hover .t0-about-logo-marquee__track {
	animation-play-state: paused;
}

@keyframes t0-about-logo-marquee {
	to {
		transform: translateX(calc(-50% - (var(--t0-logo-gap) / 2)));
	}
}

@media (prefers-reduced-motion: reduce) {
	.t0-about-logo-marquee {
		overflow-x: auto;
		scrollbar-width: none;
		touch-action: pan-x pan-y;
	}

	.t0-about-logo-marquee::-webkit-scrollbar {
		display: none;
	}

	.t0-about-logo-marquee__track {
		animation: none;
		will-change: auto;
	}
}

/* Strengths */
.t0-about-strengths {
	padding-block: clamp(3.25rem, 5vw, 4.25rem);
	background: #fff;
}

.t0-about-strength-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: stretch;
	gap: 0.875rem;
}

.t0-about-strength {
	display: grid;
	min-width: 0;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.75rem;
	height: 100%;
	padding: 1rem;
	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-about-strength > div {
	min-width: 0;
}

.t0-about-strength > .dashicons {
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border-radius: var(--wp--custom--radius--small, 0.375rem);
	background: #f6efea;
	color: var(--wp--preset--color--primary, #b0744a);
	font-size: 1.35rem;
	line-height: 1;
}

.t0-about-strength h3 {
	min-block-size: 2.7em;
	margin-block-end: 0.35rem;
	font-size: 0.95rem;
	line-height: 1.35;
}

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

/* Focus */
.t0-about-focus {
	background: var(--wp--preset--color--surface-soft, #f8f6f5);
}

.t0-about-focus-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	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);
	list-style: none;
}

.t0-about-focus-list li {
	display: grid;
	min-width: 0;
	min-height: 8.5rem;
	place-items: center;
	align-content: center;
	gap: 0.8rem;
	margin: 0;
	padding: 1.2rem 1rem;
	border-inline-end: 1px solid var(--wp--preset--color--border, #e5dfdb);
	text-align: center;
}

.t0-about-focus-list li:last-child {
	border-inline-end: 0;
}

.t0-about-focus-list .dashicons {
	display: grid;
	width: 2.7rem;
	height: 2.7rem;
	place-items: center;
	border-radius: 999px;
	background: #f6efea;
	color: var(--wp--preset--color--primary, #b0744a);
	font-size: 1.4rem;
	line-height: 1;
}

.t0-about-focus-list strong {
	font-size: 0.9rem;
	line-height: 1.4;
}

/* Work visual */
.t0-about-work {
	background: #fff;
}

.t0-about-work__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(30rem, 1.15fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.t0-about-work__content {
	max-width: 36rem;
}

.t0-about-work h2 {
	margin-block-end: 1.25rem;
}

.t0-about-work__content > p:not(.t0-meta) {
	margin-block-end: 1.5rem;
	color: var(--wp--preset--color--text-muted, #6d6762);
	line-height: 1.65;
}

.t0-about-work__media {
	display: grid;
	min-width: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.6rem;
}

.t0-about-work__media figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--medium, 0.625rem);
	background: #eee9e5;
}

.t0-about-work__media img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

.t0-about-work__media > p {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.8rem;
}

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

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

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

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

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

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

.t0-about-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-about-cta__contact a:hover {
	border-color: var(--wp--preset--color--primary, #b0744a);
	text-decoration: none;
}

.t0-about-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-about-cta__contact span:last-child,
.t0-about-cta__contact small,
.t0-about-cta__contact strong {
	display: block;
	min-width: 0;
}

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

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

@media (max-width: 63.99rem) {
	.t0-about-hero__inner,
	.t0-about-work__inner,
	.t0-about-cta__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0-about-hero__content,
	.t0-about-work__content {
		max-width: 44rem;
	}

	.t0-about-strength-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.t0-about-strength {
		grid-column: span 2;
	}

	.t0-about-strength:nth-last-child(2) {
		grid-column: 2 / span 2;
	}

	.t0-about-strength:last-child {
		grid-column: 4 / span 2;
	}

	.t0-about-focus-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.t0-about-focus-list li {
		border-block-end: 1px solid var(--wp--preset--color--border, #e5dfdb);
	}

	.t0-about-focus-list li:nth-child(3) {
		border-inline-end: 0;
	}

	.t0-about-focus-list li:nth-last-child(-n + 2) {
		border-block-end: 0;
	}

	.t0-about-focus-list li:last-child {
		grid-column: span 2;
	}
}

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

	.t0-about-strengths {
		padding-block: 3.25rem;
	}

	.t0-about-hero {
		padding-block: 2.75rem;
	}

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

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

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

	.t0-about-strength-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0-about-strength,
	.t0-about-strength:nth-last-child(-n + 2),
	.t0-about-strength:last-child {
		grid-column: auto;
		padding: 1rem;
	}

	.t0-about-strength h3 {
		min-block-size: 0;
	}

	.t0-about-focus-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.t0-about-focus-list li {
		min-height: 7.5rem;
		border-inline-end: 1px solid var(--wp--preset--color--border, #e5dfdb);
		border-block-end: 1px solid var(--wp--preset--color--border, #e5dfdb);
	}

	.t0-about-focus-list li:nth-child(even) {
		border-inline-end: 0;
	}

	.t0-about-focus-list li:nth-last-child(-n + 2) {
		border-block-end: 1px solid var(--wp--preset--color--border, #e5dfdb);
	}

	.t0-about-focus-list li:last-child {
		grid-column: 1 / -1;
		border-block-end: 0;
		border-inline-end: 0;
	}

	.t0-about-work__inner {
		gap: 1.75rem;
	}

	.t0-about-work__media {
		gap: 0.35rem;
	}

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

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

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