/*
 * V0.07 reusable inner-page system and Services hub.
 *
 * The design keeps the locked Terra Tech palette and typography while giving
 * non-homepage content a consistent hierarchy, modern interaction system, and
 * conversion-focused responsive layout.
 */

.inner-page {
	background: var(--tt-white);
}

/* Reusable inner hero */
.inner-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(34rem, 62vh, 44rem);
	overflow: hidden;
	background: var(--tt-navy-950);
}

.inner-hero__media,
.inner-hero__media img,
.inner-hero__overlay,
.inner-hero__pattern,
.inner-hero__route {
	position: absolute;
	inset: 0;
}

.inner-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 52%;
	filter: saturate(0.92) contrast(1.04);
}

.inner-hero__overlay {
	z-index: 1;
	background:
		linear-gradient(100deg, rgba(6, 20, 47, 0.98) 0%, rgba(6, 20, 47, 0.92) 44%, rgba(6, 20, 47, 0.62) 72%, rgba(6, 20, 47, 0.35) 100%),
		radial-gradient(circle at 78% 25%, rgba(11, 99, 182, 0.28), transparent 32%),
		radial-gradient(circle at 74% 78%, rgba(211, 154, 53, 0.16), transparent 28%);
}

.inner-hero__pattern {
	z-index: 2;
	opacity: 0.11;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
	background-size: 82px 82px;
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15) 78%, transparent);
}

.inner-hero__route {
	z-index: 2;
	left: auto;
	right: -7rem;
	top: auto;
	bottom: 0;
	width: min(56vw, 820px);
	height: min(28vw, 350px);
	opacity: 0.74;
	pointer-events: none;
}

.inner-hero__route svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.inner-hero__route path {
	fill: none;
	stroke: rgba(236, 199, 128, 0.78);
	stroke-width: 1.6;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: tt-route-draw 1.6s var(--tt-ease) 280ms forwards;
}

.inner-hero__route circle {
	fill: var(--tt-gold-500);
	stroke: var(--tt-white);
	stroke-width: 2;
	opacity: 0;
	filter: drop-shadow(0 0 10px rgba(236, 199, 128, 0.72));
	animation: tt-node-in 520ms var(--tt-ease) forwards;
}

.inner-hero__route circle:nth-of-type(1) { animation-delay: 0.85s; }
.inner-hero__route circle:nth-of-type(2) { animation-delay: 1.05s; }
.inner-hero__route circle:nth-of-type(3) { animation-delay: 1.25s; }

.inner-hero__inner {
	position: relative;
	z-index: 3;
	display: grid;
	align-content: center;
	min-height: inherit;
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

.breadcrumbs a {
	color: var(--tt-gold-200);
	text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

.inner-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.68fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
}

.inner-hero__content h1 {
	margin: 0;
	color: var(--tt-white);
	font-size: clamp(2.741rem, 5.22vw, 4.655rem);
	line-height: 0.96;
	text-wrap: balance;
}

.inner-hero__lead {
	max-width: 65ch;
	margin: 1.4rem 0 0;
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1.03rem, 1.45vw, 1.18rem);
	line-height: 1.72;
}

.inner-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.8rem;
}

.inner-hero__facts {
	display: grid;
	gap: 0.7rem;
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 1.1rem;
	background: rgba(6, 20, 47, 0.62);
	box-shadow: 0 24px 68px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(16px) saturate(1.1);
}

.inner-hero__fact {
	display: grid;
	grid-template-columns: 2.7rem minmax(0, 1fr);
	gap: 0.8rem;
	align-items: center;
	padding: 0.9rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.06);
}

.inner-hero__fact > svg {
	width: 2rem;
	height: 2rem;
	stroke: var(--tt-gold-200);
	stroke-width: 1.55;
	fill: none;
}

.inner-hero__fact span {
	display: grid;
	gap: 0.1rem;
}

.inner-hero__fact strong {
	color: var(--tt-white);
	font-family: var(--tt-font-heading);
	font-size: 1.2rem;
	line-height: 1;
}

.inner-hero__fact small {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.84rem;
	line-height: 1.4;
}

/* Shared inner-page heading system */
.section-heading {
	max-width: 74rem;
}

.section-heading--center {
	display: block;
	max-width: 52rem;
	margin-inline: auto;
	text-align: center;
}

.section-heading--center h2,
.section-heading--center > p {
	max-width: 100%;
	margin-inline: auto;
}

.section-heading h2 {
	margin-top: 0.45rem;
	text-wrap: balance;
}


.services-intro .section-heading,
.service-process-section .section-heading,
.services-faq .section-heading {
	display: block;
	margin-bottom: 0;
}

.services-intro .section-heading h2,
.service-process-section .section-heading h2,
.services-faq .section-heading h2 {
}

.section-heading > p:last-child:not(.eyebrow) {
	margin-top: 1rem;
	color: var(--tt-ink-600);
	font-size: 1.03rem;
	line-height: 1.7;
}

/* Services introduction */
.services-intro__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: start;
}

.services-intro__copy {
	display: grid;
	gap: 1rem;
	padding-left: clamp(1.5rem, 4vw, 3rem);
	border-left: 2px solid var(--tt-gold-500);
}

.services-intro__copy p {
	margin: 0;
	color: var(--tt-ink-600);
	font-size: 1.05rem;
	line-height: 1.75;
}

/* Interactive service explorer */
.service-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem;
	margin: clamp(2rem, 4vw, 3rem) auto 2rem;
}

.service-filter__button {
	min-height: 2.9rem;
	padding: 0.72rem 1.05rem;
	border: 1px solid var(--tt-border);
	border-radius: 999px;
	background: var(--tt-white);
	color: var(--tt-navy-950);
	font-weight: 700;
	transition:
		transform var(--tt-fast) var(--tt-ease),
		border-color var(--tt-fast) ease,
		background var(--tt-fast) ease,
		color var(--tt-fast) ease;
}

.service-filter__button:hover,
.service-filter__button:focus-visible {
	border-color: var(--tt-blue-600);
	transform: translateY(-2px);
}

.service-filter__button.is-active {
	border-color: var(--tt-navy-950);
	background: var(--tt-navy-950);
	color: var(--tt-white);
	box-shadow: 0 10px 24px rgba(6, 20, 47, 0.16);
}

.service-explorer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.service-detail-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: clamp(1.3rem, 2.2vw, 1.7rem);
	border: 1px solid var(--tt-border);
	border-radius: 1rem;
	background:
		linear-gradient(145deg, rgba(11, 99, 182, 0.035), transparent 40%),
		var(--tt-white);
	box-shadow: 0 12px 35px rgba(6, 20, 47, 0.06);
	transition:
		transform var(--tt-medium) var(--tt-ease),
		box-shadow var(--tt-medium) var(--tt-ease),
		border-color var(--tt-medium) ease,
		opacity var(--tt-medium) ease;
}

.service-detail-card::before {
	position: absolute;
	top: 0;
	right: 1.2rem;
	left: 1.2rem;
	height: 3px;
	border-radius: 999px;
	background: var(--tt-gradient-gold);
	content: "";
	transform: scaleX(0.28);
	transform-origin: left;
	transition: transform var(--tt-medium) var(--tt-ease);
}

.service-detail-card:hover,
.service-detail-card:focus-within {
	border-color: rgba(11, 99, 182, 0.32);
	box-shadow: 0 22px 52px rgba(6, 20, 47, 0.12);
	transform: translateY(-6px);
}

.service-detail-card:hover::before,
.service-detail-card:focus-within::before {
	transform: scaleX(1);
}

.service-detail-card[hidden] {
	display: none;
}

.service-detail-card__topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.2rem;
}

.service-detail-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.85rem;
	background: var(--tt-navy-950);
}

.service-detail-card__icon svg {
	width: 1.55rem;
	height: 1.55rem;
	stroke: var(--tt-gold-200);
	stroke-width: 1.5;
	fill: none;
}

.service-detail-card__number {
	color: rgba(6, 20, 47, 0.22);
	font-family: var(--tt-font-heading);
	font-size: 2.15rem;
	font-weight: 700;
	line-height: 1;
}

.service-detail-card h3 {
	margin: 0;
	color: var(--tt-navy-950);
	font-size: clamp(1.488rem, 2.016vw, 1.824rem);
	line-height: 1.03;
}

.service-detail-card > p {
	margin: 0.9rem 0 0;
	color: var(--tt-ink-600);
	line-height: 1.65;
}

.service-detail-card ul {
	display: grid;
	gap: 0.55rem;
	padding: 1rem 0 0;
	margin: 1rem 0 0;
	border-top: 1px solid var(--tt-border);
	list-style: none;
}

.service-detail-card li {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	color: var(--tt-ink-900);
	font-size: 0.91rem;
	line-height: 1.45;
}

.service-detail-card li svg {
	width: 0.92rem;
	height: 0.92rem;
	flex: 0 0 auto;
	margin-top: 0.18rem;
	stroke: var(--tt-blue-600);
	stroke-width: 2;
	fill: none;
}

.service-detail-card__link {
	display: inline-flex;
	gap: 0.55rem;
	align-items: center;
	margin-top: auto;
	padding-top: 1.3rem;
	color: var(--tt-navy-950);
	font-weight: 700;
	text-decoration: none;
}

.service-detail-card__link svg {
	width: 1rem;
	height: 1rem;
	stroke: var(--tt-gold-700);
	stroke-width: 2;
	fill: none;
	transition: transform var(--tt-fast) var(--tt-ease);
}

.service-detail-card__link:hover svg,
.service-detail-card__link:focus-visible svg {
	transform: translateX(4px);
}

/* Communication focus */
.communication-service-feature {
	position: relative;
	overflow: hidden;
	background: var(--tt-gradient-navy);
}

.communication-service-feature::before {
	position: absolute;
	inset: 0;
	opacity: 0.08;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
	background-size: 76px 76px;
	content: "";
}

.communication-service-feature__layout {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
	padding-block: var(--tt-section-space);
}

.communication-service-feature__media {
	position: relative;
}

.communication-service-feature__media picture {
	display: block;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 1rem;
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.communication-service-feature__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: 68% center;
	transition: transform 900ms var(--tt-ease);
}

.communication-service-feature__media:hover img {
	transform: scale(1.035);
}

.communication-service-feature__media > span {
	display: block;
	margin-top: 0.65rem;
	color: rgba(255, 255, 255, 0.58);
	font-size: 0.78rem;
}

.communication-service-feature__content h2 {
	margin-top: 0.5rem;
	color: var(--tt-white);
}

.communication-service-feature__content > p:not(.eyebrow) {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.75;
}

.feature-checks {
	display: grid;
	gap: 0.75rem;
	margin: 1.5rem 0 1.7rem;
}

.feature-checks span {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	color: var(--tt-white);
}

.feature-checks svg {
	width: 1.25rem;
	height: 1.25rem;
	stroke: var(--tt-gold-200);
	stroke-width: 1.55;
	fill: none;
}

/* Audience cards */
.service-audience-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}

.service-audience-card {
	padding: 1.4rem;
	border: 1px solid var(--tt-border);
	border-radius: 1rem;
	background: var(--tt-white);
	box-shadow: var(--tt-shadow-sm);
	transition: transform var(--tt-medium) var(--tt-ease), box-shadow var(--tt-medium) var(--tt-ease);
}

.service-audience-card:hover {
	box-shadow: var(--tt-shadow-md);
	transform: translateY(-5px);
}

.service-audience-card > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.9rem;
	height: 2.9rem;
	border-radius: 0.8rem;
	background: rgba(11, 99, 182, 0.1);
}

.service-audience-card svg {
	width: 1.45rem;
	height: 1.45rem;
	stroke: var(--tt-blue-600);
	stroke-width: 1.6;
	fill: none;
}

.service-audience-card h3 {
	margin: 1rem 0 0;
	color: var(--tt-navy-950);
}

.service-audience-card p {
	margin: 0.65rem 0 0;
	color: var(--tt-ink-600);
	font-size: 0.94rem;
	line-height: 1.6;
}

/* Process */
.service-process-section {
	overflow: hidden;
}

.service-process {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1rem;
	padding: 0;
	margin: clamp(2.5rem, 5vw, 4rem) 0 0;
	list-style: none;
}

.service-process::before {
	position: absolute;
	top: 1.6rem;
	right: 6%;
	left: 6%;
	height: 2px;
	background: linear-gradient(90deg, var(--tt-gold-500), var(--tt-blue-600));
	content: "";
}

.service-process li {
	position: relative;
	z-index: 1;
}

.service-process li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border: 4px solid var(--tt-white);
	border-radius: 999px;
	background: var(--tt-navy-950);
	box-shadow: 0 0 0 1px var(--tt-border);
	color: var(--tt-gold-200);
	font-family: var(--tt-font-heading);
	font-size: 1.05rem;
}

.service-process li > div {
	padding-top: 1rem;
}

.service-process h3 {
	margin: 0;
	color: var(--tt-navy-950);
	font-size: 1.323rem;
}

.service-process p {
	margin: 0.5rem 0 0;
	color: var(--tt-ink-600);
	font-size: 0.91rem;
	line-height: 1.6;
}

/* Assurance */
.service-assurance {
	padding-block: clamp(2.2rem, 4vw, 3.4rem);
	background: var(--tt-navy-950);
}

.service-assurance__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: clamp(1.3rem, 3vw, 2.5rem);
	align-items: center;
}

.service-assurance__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border: 1px solid rgba(236, 199, 128, 0.35);
	border-radius: 1rem;
	background: rgba(236, 199, 128, 0.08);
}

.service-assurance__icon svg {
	width: 2rem;
	height: 2rem;
	stroke: var(--tt-gold-200);
	stroke-width: 1.55;
	fill: none;
}

.service-assurance h2 {
	margin: 0.3rem 0 0;
	color: var(--tt-white);
	font-size: clamp(1.674rem, 2.79vw, 2.418rem);
}

.service-assurance p:not(.eyebrow) {
	margin: 0.65rem 0 0;
	color: rgba(255, 255, 255, 0.74);
	line-height: 1.65;
}

/* FAQ */
.services-faq__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}

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

.services-faq__item {
	border: 1px solid var(--tt-border);
	border-radius: 0.9rem;
	background: var(--tt-white);
	overflow: hidden;
}

.services-faq__item summary {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	min-height: 4.2rem;
	padding: 1rem 1.2rem;
	color: var(--tt-navy-950);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.services-faq__item summary::-webkit-details-marker {
	display: none;
}

.services-faq__item summary span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: var(--tt-surface-100);
	color: var(--tt-blue-600);
	font-size: 1.2rem;
	transition: transform var(--tt-fast) var(--tt-ease), background var(--tt-fast) ease;
}

.services-faq__item[open] summary span {
	background: var(--tt-gold-500);
	color: var(--tt-navy-950);
	transform: rotate(45deg);
}

.services-faq__item > div {
	padding: 0 1.2rem 1.2rem;
}

.services-faq__item p {
	margin: 0;
	color: var(--tt-ink-600);
	line-height: 1.68;
}

/* Partnership callout */
.partnership-callout {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	background: var(--tt-surface-100);
}

.partnership-callout__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2rem;
	align-items: center;
	padding: clamp(1.6rem, 4vw, 2.5rem);
	border: 1px solid rgba(11, 99, 182, 0.18);
	border-radius: 1rem;
	background:
		radial-gradient(circle at 95% 10%, rgba(211, 154, 53, 0.14), transparent 28%),
		var(--tt-white);
	box-shadow: var(--tt-shadow-sm);
}

.partnership-callout h2 {
	margin: 0.35rem 0 0;
	color: var(--tt-navy-950);
}

.partnership-callout p:not(.eyebrow) {
	max-width: 68ch;
	margin: 0.7rem 0 0;
	color: var(--tt-ink-600);
	line-height: 1.65;
}

.button--navy {
	background: var(--tt-navy-950);
	color: var(--tt-white);
}

.button--navy:hover,
.button--navy:focus-visible {
	background: var(--tt-navy-800);
	color: var(--tt-white);
}

/* Default page treatment */
.default-page-content {
	padding-block: var(--tt-section-space);
}

.default-page-content.entry-content {
	max-width: var(--tt-content);
}

@media (max-width: 1080px) {
	.inner-hero__layout,
	.communication-service-feature__layout,
	.services-faq__layout {
		grid-template-columns: 1fr;
	}

	.inner-hero__facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.inner-hero__fact {
		grid-template-columns: 1fr;
		align-content: start;
	}

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

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

	.service-process {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.service-process::before {
		display: none;
	}

	.service-assurance__inner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.service-assurance__inner .button {
		grid-column: 2;
		justify-self: start;
	}
}

@media (max-width: 782px) {
	.inner-hero {
		min-height: 38rem;
	}

	.inner-hero__inner {
		padding-top: 2.5rem;
		padding-bottom: calc(6rem + env(safe-area-inset-bottom));
	}

	.inner-hero__content h1 {
		font-size: clamp(2.403rem, 9.79vw, 3.738rem);
	}

	.inner-hero__facts,
	.services-intro__layout,
	.partnership-callout__inner {
		grid-template-columns: 1fr;
	}

	.inner-hero__facts {
		gap: 0.55rem;
	}

	.inner-hero__fact {
		grid-template-columns: 2.7rem minmax(0, 1fr);
	}

	/* The fixed mobile action bar already exposes the phone action. */
	.inner-hero__actions .button--outline-light {
		display: none;
	}

	.services-intro__copy {
		padding-left: 1.2rem;
	}

	.service-filter {
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 0.35rem;
		flex-wrap: nowrap;
		scrollbar-width: thin;
	}

	.service-filter__button {
		flex: 0 0 auto;
	}

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

	.service-process li {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 1rem;
		align-items: start;
	}

	.service-process li > div {
		padding-top: 0.25rem;
	}

	.service-assurance__inner,
	.service-assurance__inner .button {
		grid-template-columns: 1fr;
		grid-column: auto;
	}

	.service-assurance__icon {
		width: 3.5rem;
		height: 3.5rem;
	}
}

@media (max-width: 640px) {
	.inner-hero__actions,
	.inner-hero__actions .button,
	.service-explorer__grid,
	.service-audience-grid {
		width: 100%;
	}

	.inner-hero__actions .button {
		justify-content: center;
	}

	.service-explorer__grid,
	.service-audience-grid {
		grid-template-columns: 1fr;
	}

	.inner-hero__route {
		right: -14rem;
		width: 175vw;
		height: 78vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.inner-hero__route path,
	.inner-hero__route circle,
	.communication-service-feature__media img,
	.service-detail-card,
	.service-detail-card::before,
	.service-audience-card,
	.service-filter__button,
	.services-faq__item summary span {
		animation: none !important;
		transition: none !important;
	}
}
