/**
 * Kovka homepage styles.
 *
 * Phase 4.4 contains the homepage hero, primary navigation cards, current project and featured service blocks.
 * Version 0.5.0 adds the CMS-driven Köksmontage feature.
 */

.t0k-home {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.t0k-home-hero {
	position: relative;
	display: grid;
	min-height: clamp(30rem, 68vh, 46rem);
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--background, #f4f6f8);
}

.t0k-home-hero::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(244, 246, 248, 0.88) 0%,
		rgba(244, 246, 248, 0.7) 34%,
		rgba(244, 246, 248, 0.3) 64%,
		rgba(244, 246, 248, 0.06) 100%
	);
	content: "";
}

.t0k-home-hero__media {
	position: absolute;
	z-index: -2;
	inset: 0;
}

.t0k-home-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.t0k-home-hero__inner {
	display: flex;
	min-height: inherit;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	padding-block: clamp(3.25rem, 5.5vw, 5rem);
}

.t0k-home-hero__content {
	width: min(100%, 40rem);
}

.t0k-home-hero__title {
	max-width: 14ch;
	margin: 0;
	font-size: clamp(2.5rem, 5.5vw, 4.25rem);
	line-height: 1.06;
}

.t0k-home-hero__summary {
	max-width: 38rem;
	margin-block-start: var(--wp--preset--spacing--50, 1.5rem);
	color: var(--wp--preset--color--text, #14243b);
	font-size: var(--wp--preset--font-size--large, 1.125rem);
	line-height: 1.65;
}

.t0k-home-hero__summary > :last-child {
	margin-block-end: 0;
}

@media (max-width: 47.9375rem) {
	.t0k-home-hero {
		min-height: clamp(27rem, 72vh, 36rem);
	}

	.t0k-home-hero::after {
		background: linear-gradient(
			90deg,
			rgba(244, 246, 248, 0.92) 0%,
			rgba(244, 246, 248, 0.78) 68%,
			rgba(244, 246, 248, 0.48) 100%
		);
	}

	.t0k-home-hero__inner {
		padding-block: clamp(2.75rem, 10vw, 4rem);
	}

	.t0k-home-hero__title {
		max-width: 12ch;
		font-size: clamp(2.35rem, 11vw, 3.5rem);
	}

	.t0k-home-hero__summary {
		font-size: 1rem;
	}
}

/**
 * Homepage navigation cards.
 */
.t0k-home-nav {
	width: 100%;
	margin-block-start: clamp(2rem, 4vw, 3.5rem);
}

.t0k-home-nav__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(0.75rem, 1.3vw, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.t0k-home-nav__item {
	min-width: 0;
	margin: 0;
}

.t0k-home-nav-card {
	height: 100%;
	min-height: 15.5rem;
	padding: clamp(1.1rem, 1.5vw, 1.4rem);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 0.5rem 1.5rem rgba(20, 36, 59, 0.08);
}

.t0k-home-nav-card__heading {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.7rem;
}

.t0k-home-nav-card__icon {
	display: inline-grid;
	width: 3.25rem;
	height: 3.25rem;
	flex: 0 0 3.25rem;
	place-items: center;
	border: 1px solid rgba(43, 96, 191, 0.16);
	border-radius: 50%;
	background: rgba(238, 245, 255, 0.92);
}

.t0k-home-nav-card__icon img {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
}

.t0k-home-nav-card__title {
	min-width: 0;
	margin: 0;
	font-size: clamp(0.88rem, 1vw, 1rem);
	line-height: 1.25;
	overflow-wrap: normal;
	text-transform: uppercase;
	white-space: nowrap;
	word-break: normal;
}

.t0k-home-nav-card__text {
	margin-block: 1rem 0;
	color: var(--wp--preset--color--text-muted, #536176);
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.94rem;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.t0k-home-nav-card__footer {
	margin-block-start: auto;
	padding-block-start: 1.25rem;
}

.t0k-home-nav-card__link {
	display: inline-flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	color: var(--wp--preset--color--primary, #2b60bf);
	font-weight: 650;
	text-decoration: none;
}

.t0k-home-nav-card__link:hover {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

.t0k-home-nav-card__link:focus-visible {
	border-radius: 0.25rem;
	outline: 0.1875rem solid var(--wp--preset--color--focus, #184a9c);
	outline-offset: 0.25rem;
}

.t0k-home-nav-card__arrow {
	font-size: 1.25rem;
	line-height: 1;
}

@media (max-width: 74.9375rem) {
	.t0k-home-nav__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 61.9375rem) {
	.t0k-home-nav__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.t0k-home-nav-card {
		min-height: 13.5rem;
	}
}

@media (max-width: 47.9375rem) {
	.t0k-home-nav {
		margin-block-start: 2rem;
	}

	.t0k-home-nav__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-home-nav-card {
		min-height: 0;
	}
}

/**
 * Homepage feature row.
 */
.t0k-home-feature-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-block-start: clamp(1rem, 2vw, 1.5rem);
}

.t0k-home-feature-row > * {
	min-width: 0;
}

.t0k-home-feature-row > :only-child {
	width: min(100%, 48rem);
	grid-column: 1 / -1;
}

/**
 * Current project block.
 */
.t0k-home-current-project {
	width: 100%;
	margin: 0;
}

.t0k-current-project {
	display: grid;
	min-height: 15.5rem;
	grid-template-columns: minmax(15rem, 0.9fr) minmax(0, 1.35fr);
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
}

.t0k-current-project__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: clamp(1.35rem, 2.5vw, 2rem);
}

.t0k-current-project__section-title {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1.25;
	text-transform: uppercase;
}

.t0k-current-project__accent {
	display: block;
	width: 2.25rem;
	height: 0.125rem;
	margin-block-start: 0.9rem;
	background: var(--wp--preset--color--primary, #2b60bf);
}

.t0k-current-project__title {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	gap: 0.55rem;
	margin: 1.25rem 0 0;
	font-size: 0.96rem;
	font-weight: 600;
	line-height: 1.45;
}

.t0k-current-project__location-icon {
	width: 1.1rem;
	height: 1.1rem;
	flex: 0 0 1.1rem;
	margin-block-start: 0.12rem;
	color: var(--wp--preset--color--primary-dark, #173f82);
}

.t0k-current-project__text {
	margin: 0.8rem 0 0;
	color: var(--wp--preset--color--text-muted, #536176);
	font-size: 0.92rem;
	line-height: 1.55;
}

.t0k-current-project__actions {
	margin-block-start: auto;
	padding-block-start: 1.35rem;
}

.t0k-current-project__button {
	justify-content: space-between;
}

.t0k-current-project__gallery {
	display: grid;
	min-width: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 1rem;
	background: rgba(244, 246, 248, 0.8);
	list-style: none;
}

.t0k-current-project__gallery-item,
.t0k-current-project__gallery-item + .t0k-current-project__gallery-item {
	min-width: 0;
	min-height: 0;
	margin: 0;
}

.t0k-current-project__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 6.25rem;
	object-fit: cover;
	border-radius: 0.35rem;
}

@media (max-width: 61.9375rem) {
	.t0k-home-feature-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-home-feature-row > :only-child {
		width: 100%;
	}
}

@media (max-width: 47.9375rem) {
	.t0k-current-project {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-current-project__gallery {
		min-height: 18rem;
	}

	.t0k-current-project__image {
		min-height: 8.25rem;
	}
}

@media (max-width: 29.9375rem) {
	.t0k-current-project__gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-current-project__image {
		aspect-ratio: 16 / 10;
	}
}
/**
 * Featured kitchen installation block.
 */
.t0k-home-featured-service {
	min-width: 0;
}

.t0k-featured-service {
	display: grid;
	height: 100%;
	min-height: 15.5rem;
	grid-template-columns: minmax(13rem, 0.85fr) minmax(0, 1.15fr);
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
}

.t0k-featured-service__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: clamp(1.35rem, 2.5vw, 2rem);
}

.t0k-featured-service__title {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1.25;
	text-transform: uppercase;
}

.t0k-featured-service__accent {
	display: block;
	width: 2.25rem;
	height: 0.125rem;
	margin-block-start: 0.9rem;
	background: var(--wp--preset--color--primary, #2b60bf);
}

.t0k-featured-service__text {
	margin: 1.25rem 0 0;
	color: var(--wp--preset--color--text-muted, #536176);
	font-size: 0.92rem;
	line-height: 1.55;
}

.t0k-featured-service__actions {
	margin-block-start: auto;
	padding-block-start: 1.35rem;
}

.t0k-featured-service__button {
	justify-content: space-between;
}

.t0k-featured-service__media {
	min-width: 0;
	min-height: 100%;
	background: rgba(244, 246, 248, 0.8);
}

.t0k-featured-service__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 15.5rem;
	object-fit: cover;
}

@media (max-width: 47.9375rem) {
	.t0k-featured-service {
		grid-template-columns: minmax(0, 1fr);
	}

	.t0k-featured-service__media {
		order: -1;
	}

	.t0k-featured-service__image {
		min-height: 15rem;
		aspect-ratio: 16 / 10;
	}
}

