/* ==================================================
   Services archive
   ================================================== */

.gs-services-archive {
	background: var(--rp-bg);
	color: var(--rp-body-text, var(--rp-text));
}

/* Hero */
.gs-services-archive-hero {
	position: relative;
	padding: clamp(130px, 11vw, 170px) 0 clamp(58px, 6vw, 82px);
	background:
		radial-gradient(
			circle at 85% 10%,
			color-mix(in srgb, var(--rp-primary) 32%, transparent),
			transparent 38%
		),
		var(--rp-surface-soft);
	overflow: hidden;
}

.gs-services-archive-hero__content {
	max-width: 780px;
}

.gs-services-archive-hero__eyebrow {
	margin-bottom: 14px;
	color: var(--rp-primary);
}

.gs-services-archive-hero h1 {
	margin: 0;
	color: var(--rp-heading-text, var(--rp-heading));
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 900;
	line-height: 1.04;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

.gs-services-archive-hero__description {
	max-width: 680px;
	margin: 22px 0 0;
	color: var(--rp-body-text, var(--rp-text));
	font-size: clamp(1rem, 1.5vw, 1.18rem);
	line-height: 1.75;
}

/* Archive content */
.gs-services-archive-content {
	color: var(--rp-body-text, var(--rp-text));
}

/* Filters */
.gs-services-archive .gs-archive-filters {
	display: flex;
	gap: 10px;
	margin-bottom: 34px;
	padding: 4px 2px 12px;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.gs-services-archive .gs-archive-filters a {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: 999px;
	color: var(--rp-body-text, var(--rp-text));
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		color 180ms ease;
}

.gs-services-archive .gs-archive-filters a:hover,
.gs-services-archive .gs-archive-filters a.active {
	background: var(--rp-primary);
	border-color: var(--rp-primary);
	color: var(--rp-button-text);
}

.gs-services-archive .gs-archive-filters a:focus-visible {
	outline: 3px solid var(--rp-accent);
	outline-offset: 3px;
}

/* Service cards */
.gs-service-card {
	display: flex;
	flex-direction: column;
	background: var(--rp-surface);
	color: var(--rp-body-text, var(--rp-text));
}

.gs-service-card__image-link {
	display: block;
	overflow: hidden;
}

.gs-service-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.gs-service-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.gs-service-card .gs-service-card__title {
	margin: 0 0 14px;
	color: var(--rp-card-title, var(--rp-heading-text));
	font-size: clamp(1.2rem, 2vw, 1.45rem);
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: -0.015em;
	overflow-wrap: anywhere;
}

.gs-service-card__title a {
	color: inherit;
	text-decoration: none;
}

.gs-service-card__title a:hover {
	color: var(--rp-primary);
}

.gs-service-card__description {
	flex-grow: 1;
	margin: 0 0 22px;
	color: var(--rp-card-description, var(--rp-muted));
	font-size: 0.98rem;
	line-height: 1.7;
}

.gs-service-card .gs-service-card__button {
	margin-top: auto;
	background: transparent;
	border-color: var(--rp-border);
	color: var(--rp-heading-text, var(--rp-text));
}

.gs-service-card .gs-service-card__button:hover {
	background: var(--rp-primary);
	border-color: var(--rp-primary);
	color: var(--rp-button-text);
}

/* Empty state */
.gs-services-empty-state {
	background: var(--rp-surface);
	color: var(--rp-body-text, var(--rp-text));
}

.gs-services-empty-state h2 {
	margin: 18px 0 12px;
	color: var(--rp-heading-text, var(--rp-heading));
	font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.gs-services-empty-state p {
	color: var(--rp-card-description, var(--rp-muted));
}

/* Pagination */
.gs-services-pagination .page-numbers {
	background: var(--rp-surface);
	border-color: var(--rp-border);
	color: var(--rp-body-text, var(--rp-text));
	text-decoration: none;
}

.gs-services-pagination .page-numbers:hover,
.gs-services-pagination .page-numbers.current {
	background: var(--rp-primary);
	border-color: var(--rp-primary);
	color: var(--rp-button-text);
}

/* Explicit dark mode colors */
.glanzstern-dark-mode .gs-services-archive,
.glanzstern-dark-mode .gs-services-archive-content,
.glanzstern-dark-mode .gs-service-card,
.glanzstern-dark-mode .gs-services-empty-state {
	color: var(--rp-body-text);
}

.glanzstern-dark-mode .gs-services-archive-hero h1,
.glanzstern-dark-mode .gs-service-card__title,
.glanzstern-dark-mode .gs-services-empty-state h2 {
	color: var(--rp-heading-text);
}

.glanzstern-dark-mode .gs-services-archive-hero__description,
.glanzstern-dark-mode .gs-service-card__description,
.glanzstern-dark-mode .gs-services-empty-state p {
	color: var(--rp-card-description);
}

/* Tablet */
@media (max-width: 991.98px) {
	.gs-services-archive-hero {
		padding-top: 125px;
		padding-bottom: 58px;
	}

	.gs-services-archive-hero__content {
		max-width: 680px;
	}
}

/* Mobile */
@media (max-width: 767.98px) {
	.gs-services-archive-hero {
		padding: 112px 0 48px;
	}

	.gs-services-archive-hero h1 {
		font-size: clamp(2rem, 10vw, 2.8rem);
		line-height: 1.08;
		letter-spacing: -0.025em;
	}

	.gs-services-archive-hero__description {
		margin-top: 16px;
		font-size: 1rem;
		line-height: 1.65;
	}

	.gs-services-archive-content {
		padding-top: 46px;
		padding-bottom: 64px;
	}

	.gs-services-archive .gs-archive-filters {
		margin-right: -12px;
		margin-bottom: 28px;
		margin-left: -12px;
		padding-right: 12px;
		padding-left: 12px;
	}

	.gs-service-card__body {
		padding: 20px;
	}

	.gs-service-card .gs-service-card__title {
		font-size: 1.25rem;
	}

	.gs-service-card__description {
		margin-bottom: 20px;
	}

	.gs-services-empty-state {
		padding: 30px 20px;
	}
}

/* Small mobile */
@media (max-width: 380px) {
	.gs-services-archive-hero {
		padding-top: 104px;
		padding-bottom: 42px;
	}

	.gs-services-archive-hero h1 {
		font-size: 1.9rem;
	}

	.gs-services-archive .gs-archive-filters a {
		min-height: 42px;
		padding: 9px 14px;
		font-size: 0.9rem;
	}
}



/* ==================================================
   Single service page
   ================================================== */

.gs-service-single {
	background: var(--rp-bg);
	color: var(--rp-body-text, var(--rp-text));
}

/* Hero */
.gs-service-hero {
	position: relative;
	padding: clamp(125px, 11vw, 165px) 0 clamp(58px, 6vw, 82px);
	background:
		radial-gradient(
			circle at 85% 5%,
			color-mix(in srgb, var(--rp-primary) 32%, transparent),
			transparent 38%
		),
		var(--rp-surface-soft);
	overflow: hidden;
}

.gs-service-hero__content {
	max-width: 850px;
}

.gs-service-hero__eyebrow {
	margin-bottom: 14px;
	color: var(--rp-primary);
}

.gs-service-hero h1 {
	max-width: 850px;
	margin: 0;
	color: var(--rp-heading-text, var(--rp-heading));
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 900;
	line-height: 1.04;
	letter-spacing: -0.035em;
	overflow-wrap: anywhere;
}

.gs-service-lead {
	max-width: 720px;
	margin: 22px 0 0;
	color: var(--rp-body-text, var(--rp-text));
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.75;
}

.gs-service-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.gs-service-hero__actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
}

.gs-service-hero__actions .rp-btn-outline {
	background: transparent;
	border-color: var(--rp-border);
	color: var(--rp-heading-text, var(--rp-text));
}

.gs-service-hero__actions .rp-btn-outline:hover {
	background: var(--rp-primary);
	border-color: var(--rp-primary);
	color: var(--rp-button-text);
}

/* Breadcrumbs */
.gs-breadcrumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	max-width: 100%;
	margin-bottom: 26px;
	color: var(--rp-card-description, var(--rp-muted));
	font-size: 0.88rem;
	line-height: 1.5;
}

.gs-breadcrumbs a {
	color: var(--rp-body-text, var(--rp-text));
	font-weight: 700;
	text-decoration: none;
}

.gs-breadcrumbs a:hover {
	color: var(--rp-primary);
}

.gs-breadcrumbs [aria-current="page"] {
	max-width: 100%;
	color: var(--rp-card-description, var(--rp-muted));
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Main content */
.gs-service-main {
	color: var(--rp-body-text, var(--rp-text));
}

.gs-service-image {
	margin: 0 0 28px;
	border: 1px solid var(--rp-border);
	border-radius: 24px;
	box-shadow: var(--rp-shadow);
	overflow: hidden;
}

.gs-service-image__media {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Highlights */
.gs-service-features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px;
}

.gs-service-features span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 13px;
	background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: 999px;
	color: var(--rp-body-text, var(--rp-text));
	font-size: 0.92rem;
	font-weight: 750;
}

.gs-service-features i {
	color: var(--rp-primary);
	font-size: 1.05rem;
}

/* Entry content */
.gs-service-content {
	color: var(--rp-body-text, var(--rp-text));
	font-size: 1.05rem;
	line-height: 1.85;
}

.gs-service-content > :first-child {
	margin-top: 0;
}

.gs-service-content > :last-child {
	margin-bottom: 0;
}

.gs-service-content p,
.gs-service-content li {
	color: var(--rp-body-text, var(--rp-text));
}

.gs-service-content h2,
.gs-service-content h3,
.gs-service-content h4 {
	margin-top: 1.8em;
	margin-bottom: 0.7em;
	color: var(--rp-heading-text, var(--rp-heading));
	font-weight: 900;
	line-height: 1.2;
}

.gs-service-content h2 {
	font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.gs-service-content h3 {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.gs-service-content a {
	color: var(--rp-primary-dark, var(--rp-primary));
	font-weight: 700;
}

.gs-service-content ul,
.gs-service-content ol {
	padding-left: 1.35rem;
}

.gs-service-content li + li {
	margin-top: 8px;
}

/* Sidebar */
.gs-service-sidebar {
	position: sticky;
	top: 110px;
	padding: 28px;
	background: var(--rp-surface);
	border: 1px solid var(--rp-border);
	border-radius: 22px;
	box-shadow: var(--rp-shadow);
	color: var(--rp-body-text, var(--rp-text));
}

.gs-service-sidebar h2 {
	margin: 0 0 20px;
	color: var(--rp-card-title, var(--rp-heading-text));
	font-size: 1.4rem;
	font-weight: 900;
	line-height: 1.25;
}

.gs-service-sidebar ul {
	display: grid;
	gap: 14px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.gs-service-sidebar li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--rp-body-text, var(--rp-text));
	line-height: 1.55;
}

.gs-service-sidebar li i {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--rp-primary);
}

/* Related services */
.gs-related-services {
	background: var(--rp-surface-soft);
	color: var(--rp-body-text, var(--rp-text));
}

.gs-related-services__heading .rp-eyebrow {
	color: var(--rp-primary);
}

.gs-related-services__heading h2 {
	margin: 0;
	color: var(--rp-heading-text, var(--rp-heading));
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.12;
}

.gs-related-card {
	display: flex;
	flex-direction: column;
	background: var(--rp-surface);
	color: var(--rp-body-text, var(--rp-text));
}

.gs-related-card__image-link {
	display: block;
	overflow: hidden;
}

.gs-related-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.gs-related-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px;
}

.gs-related-card__title {
	margin: 0 0 13px;
	color: var(--rp-card-title, var(--rp-heading-text));
	font-size: 1.25rem;
	font-weight: 900;
	line-height: 1.3;
}

.gs-related-card__title a {
	color: inherit;
	text-decoration: none;
}

.gs-related-card__title a:hover {
	color: var(--rp-primary);
}

.gs-related-card__description {
	flex-grow: 1;
	margin: 0 0 22px;
	color: var(--rp-card-description, var(--rp-muted));
	line-height: 1.7;
}

.gs-related-card .gs-related-card__button {
	margin-top: auto;
	background: transparent;
	border-color: var(--rp-border);
	color: var(--rp-heading-text, var(--rp-text));
}

.gs-related-card .gs-related-card__button:hover {
	background: var(--rp-primary);
	border-color: var(--rp-primary);
	color: var(--rp-button-text);
}

/* Contact section */
.gs-contact-band {
	background: var(--rp-bg);
	color: var(--rp-body-text, var(--rp-text));
}

.gs-contact-band__content {
	max-width: 520px;
}

.gs-contact-band__content .rp-eyebrow {
	color: var(--rp-primary);
}

.gs-contact-band__content h2 {
	margin: 0 0 18px;
	color: var(--rp-heading-text, var(--rp-heading));
	font-size: clamp(2rem, 4vw, 3.3rem);
	font-weight: 900;
	line-height: 1.1;
}

.gs-contact-band__content > p:last-child {
	color: var(--rp-card-description, var(--rp-muted));
	font-size: 1.05rem;
	line-height: 1.75;
}

/* Dark mode */
.glanzstern-dark-mode .gs-service-single,
.glanzstern-dark-mode .gs-service-main,
.glanzstern-dark-mode .gs-related-services,
.glanzstern-dark-mode .gs-contact-band {
	color: var(--rp-body-text);
}

.glanzstern-dark-mode .gs-service-hero h1,
.glanzstern-dark-mode .gs-service-content h2,
.glanzstern-dark-mode .gs-service-content h3,
.glanzstern-dark-mode .gs-service-content h4,
.glanzstern-dark-mode .gs-service-sidebar h2,
.glanzstern-dark-mode .gs-related-services__heading h2,
.glanzstern-dark-mode .gs-related-card__title,
.glanzstern-dark-mode .gs-contact-band__content h2 {
	color: var(--rp-heading-text);
}

.glanzstern-dark-mode .gs-service-lead,
.glanzstern-dark-mode .gs-service-content,
.glanzstern-dark-mode .gs-service-content p,
.glanzstern-dark-mode .gs-service-content li,
.glanzstern-dark-mode .gs-service-sidebar li {
	color: var(--rp-body-text);
}

.glanzstern-dark-mode .gs-related-card__description,
.glanzstern-dark-mode .gs-contact-band__content > p:last-child {
	color: var(--rp-card-description);
}

/* Tablet */
@media (max-width: 991.98px) {
	.gs-service-hero {
		padding-top: 125px;
		padding-bottom: 58px;
	}

	.gs-service-sidebar {
		position: static;
		top: auto;
	}

	.gs-contact-band__content {
		max-width: 680px;
	}
}

/* Mobile */
@media (max-width: 767.98px) {
	.gs-service-hero {
		padding: 108px 0 48px;
	}

	.gs-service-hero h1 {
		font-size: clamp(2rem, 10vw, 2.8rem);
		line-height: 1.08;
		letter-spacing: -0.025em;
	}

	.gs-service-lead {
		margin-top: 16px;
		font-size: 1rem;
		line-height: 1.65;
	}

	.gs-service-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
		margin-top: 24px;
	}

	.gs-service-hero__actions .btn {
		width: 100%;
	}

	.gs-breadcrumbs {
		flex-wrap: nowrap;
		margin-bottom: 20px;
		padding-bottom: 5px;
		overflow-x: auto;
		white-space: nowrap;
		scrollbar-width: none;
	}

	.gs-breadcrumbs::-webkit-scrollbar {
		display: none;
	}

	.gs-breadcrumbs [aria-current="page"] {
		flex: 0 0 auto;
		max-width: none;
		overflow: visible;
		text-overflow: clip;
	}

	.gs-service-main {
		padding-top: 48px;
		padding-bottom: 64px;
	}

	.gs-service-image {
		margin-bottom: 22px;
		border-radius: 18px;
	}

	.gs-service-image__media {
		aspect-ratio: 4 / 3;
	}

	.gs-service-features {
		margin-bottom: 25px;
	}

	.gs-service-features span {
		padding: 8px 11px;
		font-size: 0.86rem;
	}

	.gs-service-content {
		font-size: 1rem;
		line-height: 1.75;
	}

	.gs-service-sidebar {
		padding: 22px;
	}

	.gs-related-services__heading h2,
	.gs-contact-band__content h2 {
		font-size: clamp(1.8rem, 8vw, 2.45rem);
	}

	.gs-related-card__body {
		padding: 20px;
	}
}

/* Small mobile */
@media (max-width: 380px) {
	.gs-service-hero {
		padding-top: 102px;
		padding-bottom: 42px;
	}

	.gs-service-hero h1 {
		font-size: 1.9rem;
	}
}