
:root {
	--yw-blue: #6b8fe8;
	--yw-ink: #1a1a1a;
	--yw-muted: #5c5c5c;
	--yw-line: #e6e6e6;
	--yw-bg: #f5f5f5;
	--yw-white: #ffffff;
}

.archive-services {
	background: var(--yw-white) !important;
	padding-bottom: 0 !important;
}

/* Hide original theme sections once rebuilt */
.archive-services.yw-svc-ready > .container-fluid.bg-block,
.archive-services.yw-svc-ready > .container,
.archive-services.yw-svc-ready .block-top-content,
.archive-services .block-animated-dynamic-text,
.archive-services ~ .block-animated-dynamic-text,
.page-content:has(.archive-services) > .block-animated-dynamic-text {
	display: none !important;
}

.archive-services.yw-svc-ready > .block-header {
	display: none !important;
}

/* =========================================================
   HERO
   ========================================================= */
.yw-svc-hero {
	position: relative;
	isolation: isolate;
	min-height: clamp(320px, 42vw, 420px);
	display: flex;
	align-items: center;
	overflow: hidden;
	background: #1a1a1a;
}

.yw-svc-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.yw-svc-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.yw-svc-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(12, 12, 12, 0.62) 0%,
		rgba(12, 12, 12, 0.38) 42%,
		rgba(12, 12, 12, 0.18) 100%
	);
}

.yw-svc-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 3.5rem clamp(1.25rem, 4vw, 2.5rem);
	box-sizing: border-box;
}

.yw-svc-hero h1 {
	margin: 0 0 0.75rem;
	max-width: 16em;
	color: #fff;
	font-size: clamp(1.7rem, 2.8vw, 2.45rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.03em;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25);
}

.yw-svc-hero p {
	margin: 0 0 1.4rem;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(0.95rem, 1.15vw, 1.05rem);
	line-height: 1.55;
}

.yw-svc-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.yw-svc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.8rem 1.2rem;
	border-radius: 5px;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	min-height: 44px;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.yw-svc-btn:hover {
	transform: translateY(-1px);
}

.yw-svc-btn::after {
	content: "→";
	display: inline-block;
	font-weight: 400;
	line-height: 1;
	opacity: 0.95;
}

.yw-svc-btn--primary {
	background: var(--yw-blue);
	border: 1px solid var(--yw-blue);
	color: #fff !important;
}

.yw-svc-btn--primary:hover {
	background: #5a7fdc;
	border-color: #5a7fdc;
}

.yw-svc-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.85);
	color: #fff !important;
}

.yw-svc-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
}

.yw-svc-btn--dark {
	background: var(--yw-ink);
	border: 1px solid var(--yw-ink);
	color: #fff !important;
}

.yw-svc-btn--dark:hover {
	background: #000;
}

/* =========================================================
   INTRO + FILTERS
   ========================================================= */
.yw-svc {
	background: var(--yw-white);
}

.yw-svc__intro {
	max-width: 1140px;
	margin: 0 auto;
	padding: 2.75rem clamp(1.25rem, 4vw, 2.5rem) 0.5rem;
	text-align: center;
}

.yw-svc__intro .yw-svc-label {
	display: inline-block;
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yw-blue);
}

.yw-svc__intro h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	letter-spacing: -0.02em;
	color: var(--yw-ink);
}

.yw-svc__intro p {
	margin: 0 auto;
	max-width: 38rem;
	color: var(--yw-muted);
	font-size: 1.02rem;
	line-height: 1.6;
}

.yw-svc-filters {
	max-width: 1140px;
	margin: 0 auto;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 0.25rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.yw-svc-filter {
	appearance: none;
	border: 1px solid var(--yw-line);
	background: #fff;
	color: var(--yw-ink);
	border-radius: 999px;
	padding: 0.55rem 1rem;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.yw-svc-filter:hover {
	border-color: #cfcfcf;
	background: var(--yw-bg);
}

.yw-svc-filter.is-active {
	background: var(--yw-ink);
	border-color: var(--yw-ink);
	color: #fff;
}

/* =========================================================
   CARDS (same language as homepage / locations)
   ========================================================= */
.yw-svc-grid-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
}

.yw-svc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.yw-svc-card {
	border: 1px solid var(--yw-line);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.yw-svc-card:hover {
	border-color: #d0d0d0;
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
	transform: translateY(-3px);
}

.yw-svc-card.is-hidden {
	display: none;
}

/* 7th+ cards collapsed until "Show all" */
.yw-svc:not(.is-expanded) .yw-svc-card--extra {
	display: none;
}

.yw-svc-more {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

.yw-svc-more[hidden] {
	display: none !important;
}

.yw-svc-more__btn {
	appearance: none;
	border: 1px solid var(--yw-ink);
	background: transparent;
	color: var(--yw-ink);
	border-radius: 4px;
	padding: 0.75rem 1.25rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	min-height: 44px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.yw-svc-more__btn:hover {
	background: var(--yw-ink);
	color: #fff;
	transform: translateY(-1px);
}

.yw-svc-card__image {
	height: 190px;
	background: #ececec;
	overflow: hidden;
}

.yw-svc-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.yw-svc-card__body {
	padding: 1.25rem 1.25rem 1.35rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}

.yw-svc-card__body h3 {
	margin: 0 0 0.3rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--yw-ink);
}

.yw-svc-card__meta {
	margin: 0.1rem 0 0.85rem;
	font-size: 0.82rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.4;
	color: var(--yw-blue);
}

.yw-svc-card__body p {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--yw-muted);
}

.yw-svc-card__list {
	list-style: none;
	margin: 0 0 1.1rem;
	padding: 0;
}

.yw-svc-card__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	font-size: 0.86rem;
	color: var(--yw-muted);
	margin: 0 0 0.35rem;
	line-height: 1.4;
}

.yw-svc-card__list li::before {
	content: "";
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	margin-top: 0.45em;
	border-radius: 50%;
	background: var(--yw-blue);
}

.yw-svc-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin-top: auto;
	width: 100%;
	padding: 0.78rem 1rem;
	border-radius: 4px;
	background: var(--yw-ink);
	color: #fff !important;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none !important;
	line-height: 1;
	min-height: 44px;
	transition: background 0.15s ease, transform 0.15s ease;
}

.yw-svc-card__cta:hover {
	background: #000;
	transform: translateY(-1px);
}

.yw-svc-empty {
	display: none;
	text-align: center;
	padding: 2rem 1rem;
	color: var(--yw-muted);
}

.yw-svc-empty.is-visible {
	display: block;
}

/* =========================================================
   CTA BAND
   ========================================================= */
.yw-svc-band {
	background: #151515;
	color: #fff;
	text-align: center;
	padding: 3.5rem 1.25rem;
}

.yw-svc-band h2 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
}

.yw-svc-band p {
	margin: 0 auto 1.35rem;
	max-width: 34rem;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

.yw-svc-band__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.7rem;
}

@media (max-width: 991px) {
	.yw-svc-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.yw-svc-hero {
		min-height: min(70vh, 480px);
	}

	.yw-svc-hero__media::after {
		background: linear-gradient(
			180deg,
			rgba(12, 12, 12, 0.35) 0%,
			rgba(12, 12, 12, 0.58) 55%,
			rgba(12, 12, 12, 0.72) 100%
		);
	}

	.yw-svc-hero__ctas {
		flex-direction: column;
		align-items: stretch;
	}

	.yw-svc-grid {
		grid-template-columns: 1fr;
	}

	.yw-svc-band__actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 320px;
		margin: 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yw-svc-card,
	.yw-svc-btn,
	.yw-svc-card__cta,
	.yw-svc-filter {
		transition: none !important;
	}

	.yw-svc-card:hover,
	.yw-svc-btn:hover,
	.yw-svc-card__cta:hover {
		transform: none;
	}
}
