/**
 * Phase 5 Start page.
 *
 * Page-specific rules stay inside the .t0-start namespace so the existing
 * global header, footer and client dashboard remain unchanged.
 */

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

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

.t0-start-section {
	padding-block: clamp(3.75rem, 7vw, 6rem);
}

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

.t0-start-heading {
	max-width: 42rem;
	margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

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

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

.t0-start-heading--split {
	display: flex;
	max-width: none;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

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

.t0-start-text-link:hover {
	text-decoration: none;
}

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

.t0-start-text-link:hover span {
	transform: translateX(0.2rem);
}

/* Hero */
.t0-start-hero {
	padding-block: clamp(2.5rem, 6vw, 5.5rem);
	background: linear-gradient(115deg, #fff 0%, #fff 54%, #f8f6f5 54%, #f8f6f5 100%);
}

.t0-start-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5rem);
}

.t0-start-hero__content {
	max-width: 37rem;
}

.t0-start-hero h1 {
	max-width: 16ch;
	margin-block-end: 1.25rem;
	font-size: clamp(2.25rem, 3.8vw, 3.25rem);
	line-height: 1.06;
}

.t0-start-hero__lead {
	max-width: 36rem;
	margin-block-end: 1.5rem;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: clamp(1.05rem, 1.7vw, 1.2rem);
	line-height: 1.6;
}

.t0-start-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.t0-start-hero__facts li {
	position: relative;
	margin: 0;
	padding-inline-start: 1rem;
	color: var(--wp--preset--color--text, #24211f);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 600;
}

.t0-start-hero__facts li::before {
	position: absolute;
	top: 0.68em;
	inset-inline-start: 0;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #b0744a);
	content: "";
	transform: translateY(-50%);
}

.t0-start-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 2rem;
}

.t0-start-actions .dashicons {
	width: 1.15rem;
	height: 1.15rem;
	font-size: 1.15rem;
}

.t0-start-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-start-hero__media::after {
	position: absolute;
	inset: 0;
	border: 1px solid rgb(36 33 31 / 0.08);
	border-radius: inherit;
	content: "";
	pointer-events: none;
}

.t0-start-hero__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Services */
.t0-service-scroll {
	margin-inline: -0.25rem;
	padding: 0.25rem;
	overflow-x: auto;
	-ms-overflow-style: none;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
}

.t0-service-scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.t0-service-scroll.is-button-scrolling {
	scroll-snap-type: none !important;
}

.t0-service-scroll:focus-visible {
	border-radius: var(--wp--custom--radius--medium, 0.625rem);
	outline: 0.1875rem solid var(--wp--preset--color--primary, #b0744a);
	outline-offset: 0.1875rem;
}

.t0-service-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem;
}

.t0-service-card {
	display: flex;
	min-width: 0;
	min-height: 12.25rem;
	flex-direction: column;
	align-items: flex-start;
	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);
	color: var(--wp--preset--color--text, #24211f);
	scroll-snap-align: start;
	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-service-card: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.15rem);
}

.t0-service-card > .dashicons {
	width: 2rem;
	height: 2rem;
	margin-block-end: 1rem;
	color: var(--wp--preset--color--primary, #b0744a);
	font-size: 2rem;
}

.t0-service-card__title {
	font-weight: 700;
	line-height: 1.3;
}

.t0-service-card__text {
	margin-block-start: 0.6rem;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (pointer: coarse) {
	.t0-service-card,
	.t0-service-card * {
		-webkit-tap-highlight-color: transparent;
	}
}


.t0-service-slider {
	position: relative;
}

.t0-service-controls {
	display: none;
}

.t0-service-control {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--primary-dark, #8d5835);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	user-select: none;
	transition:
		color var(--wp--custom--transition--fast, 160ms ease),
		opacity var(--wp--custom--transition--fast, 160ms ease),
		transform var(--wp--custom--transition--fast, 160ms ease);
}

.t0-service-control:hover:not(:disabled) {
	color: var(--wp--preset--color--primary, #b0744a);
}

.t0-service-control:focus {
	outline: none;
}

.t0-service-control:focus-visible {
	outline: none;
	color: var(--wp--preset--color--primary, #b0744a);
	text-decoration: underline;
	text-underline-offset: 0.25rem;
}

.t0-service-control:disabled {
	opacity: 0.35;
	cursor: default;
}

.t0-service-control .dashicons {
	width: 1.25rem;
	height: 1.25rem;
	font-size: 1.25rem;
}

.t0-service-controls__hint {
	margin: 0;
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: center;
}

/* Published projects */
.t0-project-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.t0-project-card {
	display: grid;
	min-width: 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);
}

.t0-project-card--featured {
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

.t0-project-card__media {
	display: block;
	min-height: 14rem;
	overflow: hidden;
	background: #eee9e5;
}

.t0-project-card__media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 300ms ease;
}

.t0-project-card__media:hover img {
	transform: scale(1.02);
}

.t0-project-card__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.t0-project-card__meta {
	margin-block-end: 0.6rem;
	color: var(--wp--preset--color--primary-dark, #8d5835);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.t0-project-card h3 {
	margin-block-end: 1rem;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.t0-project-card h3 a {
	color: inherit;
}

.t0-project-card h3 a:hover {
	color: var(--wp--preset--color--primary-dark, #8d5835);
	text-decoration: none;
}

.t0-project-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.t0-project-card__facts li {
	margin: 0;
	padding: 0.35rem 0.65rem;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--surface-soft, #f8f6f5);
	color: var(--wp--preset--color--text-muted, #6d6762);
	font-size: 0.8125rem;
	font-weight: 600;
}

.t0-project-card__body > .t0-start-text-link {
	margin-block-start: auto;
}

/* Trust */
.t0-start-trust {
	padding-block: clamp(3rem, 5vw, 4.25rem);
}

.t0-start-trust .t0-start-heading {
	margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

.t0-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.875rem, 1.5vw, 1.35rem);
}

.t0-trust-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.75rem;
}

.t0-trust-item > .dashicons {
	display: grid;
	width: 2.6rem;
	height: 2.6rem;
	place-items: center;
	border-radius: var(--wp--custom--radius--small, 0.375rem);
	background: var(--wp--preset--color--surface-soft, #f8f6f5);
	color: var(--wp--preset--color--primary, #b0744a);
	font-size: 1.45rem;
	line-height: 1;
}

.t0-trust-item h3 {
	margin-block-end: 0.45rem;
	font-size: 1rem;
	line-height: 1.35;
}

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

/* Process */
.t0-start-process {
	padding-block: clamp(3rem, 5vw, 4.5rem);
}

.t0-start-process .t0-start-heading {
	margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

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

.t0-process-step {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: clamp(1.25rem, 2vw, 1.5rem);
	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);
	text-align: center;
}

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

.t0-process-step h3 {
	margin-block-end: 0.65rem;
	font-size: 1.2rem;
}

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

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

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

.t0-start-cta__content {
	max-width: 39rem;
}

.t0-start-cta h2 {
	margin-block-end: 1rem;
	font-size: clamp(2rem, 4vw, 3.1rem);
}

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

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

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

.t0-start-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-start-cta__contact span:last-child {
	min-width: 0;
}

.t0-start-cta__contact small,
.t0-start-cta__contact strong {
	display: block;
}

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

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

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

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

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

	.t0-service-row {
		grid-template-columns: repeat(5, minmax(12.5rem, 1fr));
	}

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

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

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

	.t0-start-heading--split {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.5rem;
	}

	.t0-start-hero {
		padding-block: 2.5rem 3.75rem;
	}

	.t0-start-hero h1 {
		max-width: 18ch;
		font-size: clamp(1.875rem, 7.2vw, 2.35rem);
		line-height: 1.08;
	}

	.t0-start-hero__media img {
		aspect-ratio: 4 / 3;
	}

	.t0-service-slider {
		padding-inline: 0;
	}

	.t0-service-scroll {
		margin-inline: 0;
		padding: 0.25rem 0;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
	}

	.t0-service-row {
		display: flex;
		grid-template-columns: none;
		gap: 0.75rem;
	}

	.t0-service-card {
		flex: 0 0 100%;
		width: 100%;
		min-height: 10.25rem;
		justify-content: center;
		align-items: center;
		padding: 1.25rem 3.5rem;
		text-align: center;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.t0-service-controls {
		display: block;
		position: absolute;
		inset: 0;
		pointer-events: none;
	}

	.t0-service-control {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		pointer-events: auto;
		touch-action: manipulation;
	}

	.t0-service-control:active {
		transform: translateY(-50%) scale(0.92);
	}

	.t0-service-control--prev {
		left: 0.75rem;
	}

	.t0-service-control--next {
		right: 0.75rem;
	}

	.t0-service-controls__hint {
		display: none;
	}

	.t0-service-card > .dashicons {
		margin-block-end: 0.75rem;
	}

	.t0-service-card__title,
	.t0-service-card__text {
		max-width: 18rem;
	}

	.t0-service-card__text {
		margin-block-start: 0.5rem;
	}

	.t0-project-list,
	.t0-project-card--featured,
	.t0-start-cta__inner {
		grid-template-columns: 1fr;
	}

	.t0-project-card--featured {
		grid-column: auto;
	}

	.t0-project-card__media {
		min-height: 0;
	}

	.t0-project-card__body {
		padding: 1.1rem;
	}

	.t0-project-card h3 {
		margin-block-end: 0.75rem;
	}

	.t0-project-card__facts {
		margin-block-end: 1rem;
	}

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

	.t0-process-step {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 0 1rem;
		padding: 1.15rem;
		text-align: left;
	}

	.t0-process-step__number {
		grid-row: 1 / span 2;
		margin: 0;
	}

	.t0-process-step h3 {
		margin-block-end: 0.35rem;
	}

	.t0-process-step p {
		grid-column: 2;
	}

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

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

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

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

@media (max-width: 31.25rem) {
	.t0-start-actions {
		display: grid;
	}

	.t0-start-actions .t0-button {
		width: 100%;
	}

	.t0-trust-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.t0-service-scroll {
		scroll-behavior: auto;
	}

	.t0-service-card:hover,
	.t0-project-card__media:hover img,
	.t0-start-text-link:hover span {
		transform: none;
	}
}
