/* ==========================================================================
   Spire Street - Services Page & Single Service Templates
   ========================================================================== */

.spire-services-page,
.spire-service-single {
	background: #fff;
	color: var(--ink);
}

.spire-services-page em,
.spire-service-single em {
	font-family: var(--accent-serif);
	font-style: italic;
	font-weight: 500;
	color: var(--orange);
}

.spire-services-page svg,
.spire-service-single svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.services-hero {
	padding: 165px 0 65px;
	background: var(--ink-deep);
	color: #fff;
}

.services-hero__heading {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	align-items: end;
	gap: 9%;
}

.services-hero h1 {
	font-size: clamp(42px, 5.4vw, 78px);
	line-height: 1.08;
	letter-spacing: -0.05em;
	font-weight: 500;
	margin: 0;
	color: #fff;
}

.services-hero__heading > p {
	font-size: 17px;
	line-height: 1.85;
	color: #c5d2d5;
	max-width: 440px;
	margin: 0 0 5px;
}

/* --------------------------------------------------------------------------
   Services Listing Section (Main Page)
   -------------------------------------------------------------------------- */
.service-row__copy h3 a {
	color: var(--ink);
	text-decoration: none;
	transition: color 280ms ease;
}

.service-row__copy h3 a:hover {
	color: var(--orange);
}

/* --------------------------------------------------------------------------
   Single Service Hero
   -------------------------------------------------------------------------- */
.service-hero {
	padding: 160px 0 70px;
	background: var(--ink-deep);
	color: #fff;
}

.service-hero__grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 8%;
	align-items: center;
}

.service-back {
	display: inline-block;
	font-size: 11px;
	color: #c7d4d7;
	text-decoration: none;
	margin-bottom: 28px;
	letter-spacing: 0.04em;
	transition: color 200ms ease;
}

.service-back:hover {
	color: var(--orange);
}

.service-hero .section-kicker {
	font-size: 10px;
	color: #f2a477;
	letter-spacing: 0.18em;
	margin-bottom: 14px;
}

.service-hero h1 {
	font-size: clamp(42px, 5.2vw, 74px);
	line-height: 1.04;
	letter-spacing: -0.055em;
	font-weight: 500;
	margin: 0 0 20px;
	color: #fff;
}

.service-hero__excerpt {
	color: #c3d2d4;
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 32px;
	max-width: 530px;
}

.service-hero__meta {
	display: flex;
	gap: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 22px;
}

.service-hero__meta span {
	display: block;
	color: #abc1c6;
	text-transform: uppercase;
	font-size: 9px;
	letter-spacing: 0.16em;
	margin-bottom: 6px;
}

.service-hero__meta strong {
	font-size: 16px;
	color: #fff;
	font-weight: 500;
}

.service-hero__visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.service-hero__icon-frame {
	width: 100%;
	max-width: 440px;
	aspect-ratio: 1.35;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.025);
	padding: 30px;
}

.service-hero__icon-frame svg {
	width: 220px;
	height: 170px;
	stroke: #b9dce2;
	fill: none;
	stroke-width: 1.15;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 350ms ease;
}

.service-hero__icon-frame:hover svg {
	stroke: var(--orange);
}

/* --------------------------------------------------------------------------
   Single Service Story Layout
   -------------------------------------------------------------------------- */
.service-story {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 8%;
	padding-top: 75px;
	padding-bottom: 85px;
}

.service-facts > .section-kicker {
	font-size: 10px;
	letter-spacing: 0.14em;
	margin-bottom: 0;
}

.service-facts > div {
	border-top: 1px solid #d3dcda;
	padding: 23px 0;
}

.service-facts > div > span {
	display: block;
	color: #996044;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 10px;
}

.service-facts strong {
	display: block;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -0.04em;
	color: var(--ink);
}

.service-facts p {
	font-size: 13px;
	line-height: 1.8;
	color: #5b7179;
	margin: 7px 0 0;
}

.service-facts .about-text-link {
	margin-top: 14px;
}

/* --------------------------------------------------------------------------
   Inline Text Links (Exact match to Team Single / About Us page)
   -------------------------------------------------------------------------- */
.about-text-link {
	display: inline-flex;
	gap: 25px;
	align-items: center;
	padding-bottom: 7px;
	border-bottom: 1px solid currentColor;
	font-size: 11px;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	transition: color 280ms ease, border-color 280ms ease, transform 280ms ease;
}

.about-text-link svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	flex-shrink: 0;
	transition: transform 280ms ease, stroke 280ms ease;
}

.about-text-link:hover,
.about-text-link:focus-visible {
	color: var(--orange);
	border-color: var(--orange);
}

.about-text-link:hover svg,
.about-text-link:focus-visible svg {
	transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
	.about-text-link,
	.about-text-link svg {
		transition: none;
	}
}

.service-content > .section-kicker {
	font-size: 10px;
	letter-spacing: 0.16em;
	color: #a64a1e;
	margin-bottom: 12px;
}

.service-content h2 {
	font-size: clamp(32px, 3.5vw, 48px);
	font-weight: 500;
	line-height: 1.18;
	letter-spacing: -0.035em;
	margin: 0 0 32px;
	color: var(--ink);
}

.service-content__body {
	font-size: 16px;
	line-height: 1.95;
	color: #49616b;
	max-width: 780px;
}

.service-content__body p {
	margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Core Capabilities List
   -------------------------------------------------------------------------- */
.service-capabilities {
	margin-top: 48px;
	padding-top: 36px;
	border-top: 1px solid #d3dcda;
}

.service-capabilities__heading {
	font-size: clamp(20px, 2.2vw, 24px);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--ink);
	margin: 0 0 24px;
}

.service-capabilities__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 32px;
}

.service-capabilities__item {
	position: relative;
	padding: 10px 0 10px 22px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink);
	font-weight: 500;
	border-bottom: 1px solid rgba(211, 220, 218, 0.55);
}

.service-capabilities__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 19px;
	width: 8px;
	height: 2px;
	background: var(--orange);
}

/* --------------------------------------------------------------------------
   Other Services Section
   -------------------------------------------------------------------------- */
.other-services {
	padding: 70px 0 85px;
	background: #eaf0ed;
}

.other-services .about-team__heading,
.other-services__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 40px;
}

.other-services .about-team__heading h2,
.other-services__header h2 {
	font-size: clamp(30px, 3.5vw, 44px);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.15;
	margin: 0;
	color: var(--ink);
}

.other-services .about-team__heading h2 em,
.other-services__header h2 em {
	font-family: var(--accent-serif);
	color: var(--orange);
	font-style: italic;
}

.other-services__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.other-service-card {
	display: grid;
	grid-template-columns: 110px 1fr 40px;
	gap: 24px;
	align-items: center;
	background: #fff;
	border: 1px solid #d8e2df;
	padding: 28px 30px;
	text-decoration: none;
	color: inherit;
	transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.other-service-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(19, 45, 56, 0.08);
	border-color: var(--orange);
}

.other-service-card__icon svg {
	width: 90px;
	height: 75px;
	stroke: var(--blue);
	fill: none;
	stroke-width: 1.15;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke 280ms ease;
}

.other-service-card:hover .other-service-card__icon svg {
	stroke: var(--orange);
}

.other-service-card__num {
	display: block;
	font-size: 10px;
	letter-spacing: 0.15em;
	color: var(--orange);
	margin-bottom: 6px;
	font-weight: 600;
}

.other-service-card h3 {
	font-size: 22px;
	font-weight: 500;
	margin: 0 0 6px;
	color: var(--ink);
	letter-spacing: -0.025em;
}

.other-service-card p {
	font-size: 13px;
	line-height: 1.65;
	color: #5f747d;
	margin: 0;
}

.other-service-card__arrow {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink);
	transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease, transform 280ms ease;
}

.other-service-card__arrow svg {
	width: 16px;
	height: 16px;
}

.other-service-card:hover .other-service-card__arrow {
	background-color: var(--orange);
	border-color: var(--orange);
	color: #fff;
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.services-cta {
	padding: 70px 0;
	background: var(--orange-soft);
}

.services-cta > .spire-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 35px;
}

.services-cta h2 {
	font-size: clamp(34px, 4vw, 55px);
	letter-spacing: -0.045em;
	font-weight: 500;
	line-height: 1.15;
	margin: 0;
	color: var(--ink);
}

.services-cta .spire-button {
	display: inline-flex;
	align-items: center;
	gap: 30px;
	background: var(--ink);
	color: #fff;
	padding: 20px 25px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 280ms ease, color 280ms ease;
}

.services-cta .spire-button:hover {
	background-color: var(--orange);
	color: #fff;
}

.spire-services-page a:focus-visible,
.spire-service-single a:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 5px;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.services-hero__heading {
		gap: 6%;
	}
	.service-hero__grid {
		gap: 5%;
	}
	.service-story {
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 6%;
	}
	.other-services__grid {
		gap: 20px;
	}
	.other-service-card {
		padding: 24px 20px;
		grid-template-columns: 90px 1fr 36px;
		gap: 18px;
	}
}

@media (max-width: 820px) {
	.services-hero {
		padding: 135px 0 45px;
	}
	.services-hero__heading {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.services-hero__heading > p {
		max-width: 620px;
	}
	.service-hero {
		padding: 135px 0 45px;
	}
	.service-hero__grid {
		grid-template-columns: 1fr;
		gap: 35px;
	}
	.service-hero__visual {
		order: -1;
	}
	.service-hero__icon-frame {
		max-width: 320px;
	}
	.service-story {
		grid-template-columns: 1fr;
		gap: 35px;
		padding-top: 45px;
		padding-bottom: 55px;
	}
	.service-facts {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0 25px;
	}
	.service-facts > .section-kicker {
		grid-column: 1 / -1;
	}
	.service-facts .about-text-link {
		grid-column: 1 / -1;
	}
	.other-services {
		padding: 55px 0 65px;
	}
	.other-services .about-team__heading,
	.other-services__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
	.other-services__grid {
		grid-template-columns: 1fr;
	}
	.services-cta {
		padding: 55px 0;
	}
	.services-cta > .spire-shell {
		flex-direction: column;
		align-items: flex-start;
		gap: 25px;
	}
}

@media (max-width: 680px) {
	.service-capabilities__list {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (max-width: 560px) {
	.services-hero,
	.service-hero {
		padding: 130px 0 40px;
	}
	.services-hero h1,
	.service-hero h1 {
		font-size: clamp(26px, 7.2vw, 38px);
		line-height: 1.15;
		margin: 0 0 14px;
	}
	.services-hero__heading > p,
	.service-hero__copy > p {
		margin: 0;
		font-size: 15px;
		line-height: 1.7;
	}
	.service-story {
		padding-top: 36px;
		padding-bottom: 45px;
		gap: 28px;
	}
	.service-overview__heading h2,
	.service-content h2 {
		font-size: clamp(23px, 6.2vw, 34px);
		line-height: 1.15;
		margin: 0 0 16px;
	}
	.service-content p {
		margin: 0 0 14px;
		font-size: 14px;
		line-height: 1.75;
	}
	.service-facts {
		grid-template-columns: 1fr;
		gap: 16px;
		padding-top: 16px;
	}
	.service-capabilities {
		padding-top: 30px;
	}
	.service-capabilities h2 {
		margin-bottom: 18px;
	}
	.service-capabilities__list li,
	.service-capabilities__item {
		padding: 12px 0 12px 22px;
		font-size: 13px;
	}
	.other-services {
		padding: 50px 0 55px;
	}
	.other-services .about-team__heading {
		margin-bottom: 22px;
		gap: 10px;
	}
	.other-services .about-team__heading h2 {
		font-size: clamp(24px, 6.5vw, 34px);
		line-height: 1.15;
		margin: 0;
	}
	.other-services__grid {
		gap: 16px;
	}
	.other-service-card {
		grid-template-columns: 1fr;
		text-align: left;
		padding: 20px 18px;
		gap: 12px;
	}
	.other-service-card__arrow {
		display: none;
	}
	.services-cta,
	.service-cta {
		padding: 55px 0;
	}
	.services-cta > .spire-shell,
	.service-cta > .spire-shell {
		gap: 18px;
	}
	.services-cta h2,
	.service-cta h2 {
		font-size: clamp(23px, 6.5vw, 36px);
		line-height: 1.15;
		margin: 0;
	}
	.services-cta .section-kicker,
	.service-cta .section-kicker {
		margin-bottom: 12px;
	}
	.services-cta .spire-button,
	.service-cta .spire-button {
		margin-top: 10px;
	}
}

