/* --------------------------------------------------------------------
 * Cross Creek — additions to the Jesper theme
 *
 * Everything here is built on the theme's own custom properties so it
 * inherits the light/dark switch without a second set of rules.
 * Nothing in this file overrides a theme component; it only adds the
 * few pieces Jesper does not ship.
-------------------------------------------------------------------- */


/* Skip link
============ */
.tt-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 14px 22px;
	background-color: var(--tt-main-color);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 0 0 6px 0;
}
.tt-skip-link:focus {
	left: 0;
}


/* Breadcrumbs
=============== */
.tt-breadcrumbs {
	margin-bottom: 40px;
}
.tt-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tt-text-muted-color);
}
.tt-breadcrumbs li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}
.tt-breadcrumbs li:not(:last-child)::after {
	content: "";
	display: block;
	width: 14px;
	height: 1px;
	background-color: var(--tt-border-color);
}
.tt-breadcrumbs a {
	color: var(--tt-text-muted-color);
}
.tt-breadcrumbs a:hover {
	color: var(--tt-text-color);
}
.tt-breadcrumbs [aria-current="page"] {
	color: var(--tt-text-color);
}


/* Answer-first lead paragraph
============================== */
.tt-answer {
	font-size: calc(18px + 0.35vw);
	font-weight: 500;
	line-height: 1.55;
	max-width: 900px;
	text-wrap: pretty;
}
.tt-answer + .tt-answer {
	margin-top: 24px;
}


/* Key facts table
=================== */
.tt-facts {
	margin: 0;
	border: 1px solid var(--tt-border-color);
	border-radius: 10px;
	overflow: hidden;
}
.tt-facts table {
	margin: 0;
	border: 0;
	width: 100%;
}
.tt-facts caption {
	caption-side: top;
	padding: 18px 24px;
	text-align: left;
	font-family: var(--tt-alter-font);
	font-size: calc(20px + 0.3vw);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--tt-text-color);
	border-bottom: 1px solid var(--tt-border-color);
}
.tt-facts th,
.tt-facts td {
	padding: 14px 24px;
	border: 0;
	border-bottom: 1px solid var(--tt-border-color);
	vertical-align: top;
}
.tt-facts tr:last-child th,
.tt-facts tr:last-child td {
	border-bottom: 0;
}
.tt-facts th {
	width: 40%;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tt-text-muted-color);
}
.tt-facts td {
	color: var(--tt-text-color);
}


/* On-page contents
=================== */
.tt-contents {
	border-left: 1px solid var(--tt-border-color);
	padding-left: 26px;
}
.tt-contents-heading {
	margin: 0 0 18px 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tt-text-muted-color);
}
.tt-contents ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: contents;
}
.tt-contents li {
	margin: 0 0 14px 0;
	padding: 0;
	counter-increment: contents;
	line-height: 1.35;
}
.tt-contents li:last-child {
	margin-bottom: 0;
}
.tt-contents a {
	display: flex;
	gap: 12px;
	color: var(--tt-text-muted-color);
	font-size: 15px;
}
.tt-contents a::before {
	content: "0" counter(contents);
	font-family: var(--tt-alter-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--tt-main-color);
}
.tt-contents a:hover {
	color: var(--tt-text-color);
}


/* Glossary
=========== */
.tt-glossary {
	margin: 0;
}
.tt-glossary dt {
	font-family: var(--tt-alter-font);
	font-size: calc(22px + 0.35vw);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--tt-text-color);
	margin: 0 0 10px 0;
}
.tt-glossary dd {
	margin: 0 0 32px 0;
	padding: 0;
	color: var(--tt-text-muted-color);
	max-width: 760px;
}
.tt-glossary dd:last-child {
	margin-bottom: 0;
}


/* Term chips (keyword phrases)
=============================== */
.tt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tt-chips li {
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--tt-border-color);
	border-radius: 40px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--tt-text-muted-color);
}


/* Byline
========== */
.tt-byline {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px 0;
	border-top: 1px solid var(--tt-border-color);
	border-bottom: 1px solid var(--tt-border-color);
}
.tt-byline-image {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	overflow: hidden;
	background-color: color-mix(in oklab, var(--tt-text-muted-color) 18%, transparent);
}
.tt-byline-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tt-byline-text {
	font-size: 14px;
	line-height: 1.5;
	color: var(--tt-text-muted-color);
}
.tt-byline-text strong {
	display: block;
	color: var(--tt-text-color);
	font-weight: 600;
}


/* Team
======== */
.tt-team-item {
	padding-bottom: 56px;
	margin-bottom: 56px;
	border-bottom: 1px solid var(--tt-border-color);
	scroll-margin-top: 120px;
}
.tt-team-item:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}
.tt-team-image {
	position: relative;
	display: block;
	border-radius: 10px;
	overflow: hidden;
	background-color: color-mix(in oklab, var(--tt-text-muted-color) 18%, transparent);
	aspect-ratio: 3 / 4;
}
.tt-team-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.tt-team-item:hover .tt-team-image img {
	transform: scale(1.05);
}
.tt-team-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: var(--tt-alter-font);
	font-size: calc(48px + 2vw);
	line-height: 1;
	color: var(--tt-border-color);
}
.tt-team-name {
	margin: 0 0 4px 0;
	font-family: var(--tt-alter-font);
	font-size: calc(28px + 0.8vw);
	line-height: 1.05;
	text-transform: uppercase;
}
.tt-team-role {
	margin: 0 0 20px 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tt-main-color);
}
.tt-team-bio {
	color: var(--tt-text-muted-color);
	text-wrap: pretty;
	max-width: 760px;
}
@media (max-width: 767px) {
	.tt-team-image {
		margin-bottom: 24px;
		aspect-ratio: 4 / 3;
	}
}


/* Rating badge
=============== */
.tt-rating {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 22px;
	border: 1px solid var(--tt-border-color);
	border-radius: 40px;
	font-size: 14px;
	color: var(--tt-text-muted-color);
}
.tt-rating-stars {
	color: var(--tt-main-color);
	letter-spacing: 2px;
}
.tt-rating strong {
	color: var(--tt-text-color);
	font-weight: 600;
}


/* Service body copy (CMS HTML)
=============================== */
.tt-prose {
	text-wrap: pretty;
}
.tt-prose h2 {
	margin: 0 0 26px 0;
}
.tt-prose h3 {
	margin: 56px 0 18px 0;
	scroll-margin-top: 120px;
}
.tt-prose h3:first-child {
	margin-top: 0;
}
.tt-prose p {
	color: var(--tt-text-muted-color);
}
.tt-prose ul {
	color: var(--tt-text-muted-color);
}
.tt-prose iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 10px;
	margin: 40px 0;
}


/* Contact form messages
========================= */
.tt-form-alert {
	margin-bottom: 30px;
	padding: 18px 24px;
	border: 1px solid var(--tt-border-color);
	border-left: 3px solid var(--tt-main-color);
	border-radius: 6px;
	color: var(--tt-text-color);
}
.tt-form-alert ul {
	margin: 10px 0 0 0;
	padding-left: 18px;
	color: var(--tt-text-muted-color);
}
.tt-form-alert-error {
	border-left-color: var(--tt-link-color);
}


/* Service link list
==================== */
.tt-service-link a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--tt-border-color);
	color: var(--tt-text-color);
	font-size: 16px;
	line-height: 1.3;
}
.tt-service-link a:hover {
	color: var(--tt-main-color);
}
.tt-service-link-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--tt-border-color);
	border-radius: 50%;
	font-size: 13px;
	color: var(--tt-main-color);
	transition: border-color 0.3s ease;
}
.tt-service-link a:hover .tt-service-link-icon {
	border-color: var(--tt-main-color);
}


/* Numbered process list
========================= */
.tt-process {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: process;
}
.tt-process li {
	position: relative;
	margin: 0 0 44px 0;
	padding: 0 0 44px 76px;
	border-bottom: 1px solid var(--tt-border-color);
	counter-increment: process;
}
.tt-process li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}
.tt-process li::before {
	content: "0" counter(process);
	position: absolute;
	top: 2px;
	left: 0;
	font-family: var(--tt-alter-font);
	font-size: calc(34px + 1vw);
	line-height: 1;
	color: var(--tt-border-color);
}
.tt-process h3 {
	margin: 0 0 12px 0;
	font-size: calc(24px + 0.4vw);
}
.tt-process p {
	margin: 0;
	color: var(--tt-text-muted-color);
	text-wrap: pretty;
}
@media (max-width: 575px) {
	.tt-process li {
		padding-left: 0;
		padding-top: 52px;
	}
}


/* Small block headings (contact / NAP)
======================================== */
.tt-nap-heading {
	margin: 0 0 18px 0;
	font-size: calc(15px + 0.1vw);
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.2;
}
