/**
 * خدمات — archive & single.
 */

.haam-svc-page {
	background: transparent !important;
	padding: 0 !important;
	max-width: none !important;
}

/* Header floats over video hero only when video is present */
.haam-svc-canvas > .wp-block-template-part:has(.haam-site-header),
.haam-svc-canvas > header.wp-block-template-part,
body.haam-svc-has-video .wp-site-blocks > .wp-block-template-part:has(.haam-site-header),
body.haam-svc-has-video .wp-site-blocks > header.wp-block-template-part {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 40;
	width: 100%;
}

body.haam-svc-has-video .wp-site-blocks {
	position: relative;
}

.haam-svc-canvas .haam-site-header,
body.haam-svc-has-video .haam-site-header {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none;
	border-bottom-color: transparent !important;
}

.haam-svc-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content {
	color: #ffffff !important;
}

.haam-svc-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:hover,
.haam-svc-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:focus-visible,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:hover,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: #ebd11a !important;
	opacity: 1;
}

.haam-svc-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 1px solid rgba(26, 21, 50, 0.12) !important;
	box-shadow: 0 14px 36px rgba(26, 21, 50, 0.18);
	z-index: 100;
}

.haam-svc-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.haam-svc-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.haam-svc-canvas .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
body.haam-svc-has-video .haam-site-header .haam-site-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	color: #1a1532 !important;
	opacity: 1 !important;
}

.haam-svc-canvas .haam-site-header__logo img,
body.haam-svc-has-video .haam-site-header__logo img {
	filter: brightness(0) invert(1);
}

.haam-svc-canvas .haam-site-header .wp-block-navigation__responsive-container-open,
.haam-svc-canvas .haam-site-header .wp-block-navigation__responsive-container-open svg,
body.haam-svc-has-video .haam-site-header .wp-block-navigation__responsive-container-open,
body.haam-svc-has-video .haam-site-header .wp-block-navigation__responsive-container-open svg {
	color: #ffffff;
	fill: #ffffff;
}

.haam-svc {
	--svc-ink: #1a1532;
	--svc-muted: #5c5770;
	--svc-line: rgba(26, 21, 50, 0.12);
	--svc-brand: #ebd11a;
	--svc-bone: #f7f6f2;
	--svc-ground: transparent;
	font-family: "Yekan Bakh Fanum", YekanBakh, Tahoma, sans-serif;
	color: var(--svc-ink);
}

.haam-svc__shell {
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}

/* —— Hero —— */
.haam-svc__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: min(92svh, 920px);
	padding: calc(var(--haam-header-pad-y, 36px) + 88px) 0 72px;
	background: #0c0a12;
}

.haam-svc__hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
	overflow: hidden;
}

.haam-svc__hero-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.haam-svc__hero-scrim {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			rgba(12, 10, 18, 0.58) 0%,
			rgba(12, 10, 18, 0.32) 40%,
			rgba(12, 10, 18, 0.55) 72%,
			rgba(12, 10, 18, 0.82) 100%
		),
		radial-gradient(ellipse 60% 50% at 80% 20%, rgba(235, 209, 26, 0.18), transparent 55%);
}

.haam-svc__hero-inner {
	position: relative;
	z-index: 1;
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
	animation: haam-svc-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.haam-svc__crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 28px;
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.62);
}

.haam-svc__crumb a {
	color: #fff;
	text-decoration: none;
	opacity: 0.85;
}

.haam-svc__crumb a:hover {
	opacity: 1;
	color: var(--svc-brand);
}

.haam-svc__brand {
	margin: 0 0 12px;
	font-size: clamp(2.8rem, 8vw, 5.2rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--svc-brand);
}

.haam-svc__title {
	margin: 0;
	max-width: 22ch;
	font-size: clamp(1.45rem, 3.2vw, 2.15rem);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.haam-svc__title-keep {
	white-space: nowrap;
}

.haam-svc__lead {
	margin: 18px 0 0;
	max-width: 36rem;
	font-size: clamp(1rem, 1.5vw, 1.12rem);
	line-height: 1.85;
	color: rgba(255, 255, 255, 0.82);
}

.haam-svc__count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 28px 0 0;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.78);
	background: rgba(255, 255, 255, 0.08);
}

.haam-svc__count span {
	color: #fff;
	font-variant-numeric: tabular-nums;
}

/* Single hero: no video — keep editorial light masthead */
.haam-svc__hero--single:not(.haam-svc__hero--video) {
	min-height: 0;
	align-items: stretch;
	padding: calc(var(--haam-header-pad-y, 36px) + 88px) 0 56px;
	background:
		radial-gradient(ellipse 70% 60% at 85% 0%, rgba(235, 209, 26, 0.28), transparent 55%),
		radial-gradient(ellipse 50% 45% at 10% 80%, rgba(26, 21, 50, 0.06), transparent 50%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 70%);
}

.haam-svc__hero--single:not(.haam-svc__hero--video) .haam-svc__crumb {
	color: var(--svc-muted);
}

.haam-svc__hero--single:not(.haam-svc__hero--video) .haam-svc__crumb a {
	color: var(--svc-ink);
	opacity: 0.75;
}

.haam-svc__hero--single:not(.haam-svc__hero--video) .haam-svc__crumb a:hover {
	color: var(--svc-ink);
	opacity: 1;
}

.haam-svc__hero--single:not(.haam-svc__hero--video) .haam-svc__brand,
.haam-svc__hero--single:not(.haam-svc__hero--video) .haam-svc__title {
	color: var(--svc-ink);
}

.haam-svc__hero--single:not(.haam-svc__hero--video) .haam-svc__lead {
	color: var(--svc-muted);
}

.haam-svc__hero--single:not(.haam-svc__hero--video) .haam-svc__card-tag {
	color: var(--svc-muted);
}

/* Single with video: full-bleed like archive */
.haam-svc__hero--video {
	min-height: min(88svh, 860px);
	align-items: flex-end;
	background: #0c0a12;
}

.haam-svc__hero--video .haam-svc__card-tag {
	color: rgba(255, 255, 255, 0.7);
}

.haam-svc__hero--video .haam-svc__single-ico {
	background: rgba(255, 255, 255, 0.12);
	color: var(--svc-brand);
	border: 1px solid rgba(255, 255, 255, 0.22);
}

.haam-svc__hero--video .haam-svc__title {
	color: #fff;
}

.haam-svc__hero--video .haam-svc__lead {
	color: rgba(255, 255, 255, 0.82);
}

/* —— Grid / index —— */
.haam-svc__grid-wrap {
	padding: clamp(56px, 9vw, 100px) 0 96px;
	background:
		linear-gradient(180deg, rgba(26, 21, 50, 0.035), transparent 28%),
		transparent;
}

.haam-svc__index-head {
	margin: 0 0 clamp(36px, 5vw, 52px);
	max-width: 34rem;
}

.haam-svc__index-title {
	margin: 0;
	font-size: clamp(1.55rem, 3vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: var(--svc-ink);
}

.haam-svc__index-lead {
	margin: 12px 0 0;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--svc-muted);
}

.haam-svc__empty {
	margin: 48px 0;
	text-align: center;
	color: var(--svc-muted);
}

.haam-svc__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 14px;
}

.haam-svc__card {
	margin: 0;
	grid-column: span 4;
	animation: haam-svc-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: calc(0.045s * var(--svc-i, 0));
}

.haam-svc__card-link {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 22px;
	height: 100%;
	min-height: 280px;
	padding: 28px 26px 24px;
	isolation: isolate;
	overflow: hidden;
	border: 1px solid var(--svc-line);
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 246, 242, 0.88) 100%);
	text-decoration: none;
	color: inherit;
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.3s ease,
		background 0.3s ease;
}

.haam-svc__card-link::after {
	content: "";
	position: absolute;
	inset: auto -20% -40% auto;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(235, 209, 26, 0.22), transparent 68%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 0;
}

.haam-svc__card-link:hover {
	transform: translateY(-4px);
	border-color: var(--svc-ink);
	background: #fff;
}

.haam-svc__card-link:hover::after {
	opacity: 1;
}

.haam-svc__card-top,
.haam-svc__card-body,
.haam-svc__card-go {
	position: relative;
	z-index: 1;
}

.haam-svc__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.haam-svc__card-num {
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	font-variant-numeric: tabular-nums;
	color: var(--svc-ink);
	opacity: 0.28;
}

.haam-svc__card-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--svc-ink);
	color: var(--svc-brand);
	overflow: hidden;
	transition: background 0.3s ease, color 0.3s ease, transform 0.35s ease;
}

.haam-svc__ico-img {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.haam-svc__card-link:hover .haam-svc__card-ico {
	background: var(--svc-brand);
	color: var(--svc-ink);
	transform: scale(1.06);
}

.haam-svc__card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.haam-svc__card-tag {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--svc-muted);
}

.haam-svc__card-title {
	font-size: clamp(1.2rem, 1.8vw, 1.4rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--svc-ink);
}

.haam-svc__card-excerpt {
	font-size: 0.94rem;
	line-height: 1.8;
	color: var(--svc-muted);
	max-width: 36ch;
}

.haam-svc__card-go {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--svc-ink);
	opacity: 0.55;
	transition: opacity 0.25s ease, gap 0.25s ease;
}

.haam-svc__card-arrow {
	display: inline-block;
	transition: transform 0.25s ease;
}

.haam-svc__card-link:hover .haam-svc__card-go {
	opacity: 1;
	gap: 14px;
}

.haam-svc__card-link:hover .haam-svc__card-arrow {
	transform: translateX(-4px);
}

/* —— CTA band —— */
.haam-svc__cta {
	padding: 72px 0 96px;
	border-top: 1px solid var(--svc-line);
	background:
		linear-gradient(180deg, transparent, rgba(235, 209, 26, 0.12) 50%, transparent);
}

.haam-svc__cta-inner {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.haam-svc__cta-title {
	margin: 0;
	width: 100%;
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--svc-ink);
	text-align: center;
	line-height: 1.25;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	column-gap: 0.3em;
	row-gap: 0.1em;
}

.haam-svc__cta-rotate {
	display: inline-block;
	vertical-align: bottom;
	height: 1.25em;
	overflow: hidden;
	width: 4.5em;
	text-align: center;
	color: var(--svc-ink);
	position: relative;
}

.haam-svc__cta-rotate-track {
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: haam-svc-word-rotate 10s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.haam-svc__cta-rotate-track span {
	display: block;
	height: 1.25em;
	line-height: 1.25em;
	white-space: nowrap;
}

.haam-svc__cta-rotate-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@keyframes haam-svc-word-rotate {
	0%,
	16% {
		transform: translateY(0);
	}
	20%,
	36% {
		transform: translateY(-20%);
	}
	40%,
	56% {
		transform: translateY(-40%);
	}
	60%,
	76% {
		transform: translateY(-60%);
	}
	80%,
	100% {
		transform: translateY(-80%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-svc__cta-rotate-track {
		animation: none;
	}

	.haam-svc__cta-rotate-track span:not(:first-child) {
		display: none;
	}
}

.haam-svc__cta-lead {
	margin: 14px 0 28px;
	max-width: 28rem;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--svc-muted);
}

.haam-svc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 26px;
	border-radius: 6px;
	background: var(--svc-ink);
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid var(--svc-ink);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.haam-svc__btn:hover {
	background: var(--svc-brand);
	border-color: var(--svc-brand);
	color: var(--svc-ink) !important;
	transform: translateY(-1px);
}

.haam-svc__btn--ghost {
	background: transparent;
	color: var(--svc-ink) !important;
}

.haam-svc__btn--ghost:hover {
	background: var(--svc-ink);
	color: #fff !important;
	border-color: var(--svc-ink);
}

/* —— Single —— */
.haam-svc__single-head {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 22px;
	align-items: start;
}

.haam-svc__single-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--svc-ink);
	color: var(--svc-brand);
	flex-shrink: 0;
	overflow: hidden;
}

.haam-svc__single-ico .haam-svc__ico {
	width: 30px;
	height: 30px;
}

.haam-svc__single-ico .haam-svc__ico-img {
	width: 30px;
	height: 30px;
}

.haam-svc__single-copy .haam-svc__title {
	max-width: none;
	font-size: clamp(2rem, 4.5vw, 3rem);
}

/* —— Single below video —— */
.haam-svc__below {
	padding: 0 0 40px;
}

.haam-svc__panel {
	padding: clamp(64px, 10vw, 104px) 0;
	border-top: 1px solid var(--svc-line);
}

.haam-svc__panel:first-child {
	border-top: none;
}

.haam-svc__about {
	background: rgba(255, 255, 255, 0.55);
}

.haam-svc__leaders {
	background: transparent;
}

.haam-svc__mag {
	background: rgba(26, 21, 50, 0.03);
}

.haam-svc__similar {
	background: rgba(255, 255, 255, 0.4);
}

.haam-svc__panel-inner {
	max-width: 920px;
}

.haam-svc__shell.haam-svc__panel-inner {
	width: min(920px, calc(100% - 48px));
}

.haam-svc__similar .haam-svc__panel-inner,
.haam-svc__mag .haam-svc__panel-inner {
	width: min(1120px, calc(100% - 48px));
	max-width: none;
}

.haam-svc__eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--svc-muted);
}

.haam-svc__section-title {
	margin: 0 0 28px;
	max-width: 18ch;
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.03em;
	color: var(--svc-ink);
}

.haam-svc__panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 28px;
	margin-bottom: 28px;
}

.haam-svc__panel-head .haam-svc__section-title {
	margin-bottom: 0;
}

.haam-svc__panel-more {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--svc-ink);
	text-decoration: none;
	border-bottom: 1px solid rgba(26, 21, 50, 0.25);
	padding-bottom: 2px;
}

.haam-svc__panel-more:hover {
	border-bottom-color: var(--svc-ink);
}

.haam-svc__about .haam-svc__prose {
	max-width: 40rem;
	font-size: 1.08rem;
	line-height: 2;
}

.haam-svc__prose > *:first-child {
	margin-top: 0;
}

.haam-svc__prose p {
	margin: 0 0 1.15em;
	color: var(--svc-muted);
}

.haam-svc__prose h2,
.haam-svc__prose h3 {
	color: var(--svc-ink);
	margin: 1.4em 0 0.55em;
}

.haam-svc__leader-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--svc-line);
}

.haam-svc__leader-list li {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 18px;
	align-items: start;
	padding: 26px 0;
	border-bottom: 1px solid var(--svc-line);
}

.haam-svc__leader-num {
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--svc-ink);
	opacity: 0.35;
	padding-top: 4px;
	font-variant-numeric: tabular-nums;
}

.haam-svc__leader-text {
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	font-weight: 600;
	line-height: 1.7;
	color: var(--svc-ink);
}

.haam-svc__mag-empty {
	margin: 0;
	padding: 28px 24px;
	border: 1px dashed var(--svc-line);
	background: rgba(255, 255, 255, 0.65);
	font-size: 0.98rem;
	line-height: 1.85;
	color: var(--svc-muted);
}

.haam-svc__mag-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.haam-svc__mag-card {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 16px;
	align-items: stretch;
	min-height: 112px;
	padding: 0;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid var(--svc-line);
	overflow: hidden;
	transition: border-color 0.25s ease, transform 0.25s ease;
}

.haam-svc__mag-card:hover {
	border-color: var(--svc-ink);
	transform: translateY(-2px);
}

.haam-svc__mag-media {
	display: block;
	overflow: hidden;
	background: #1a1532;
}

.haam-svc__mag-media img,
.haam-svc__mag-ph {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 112px;
	object-fit: cover;
}

.haam-svc__mag-ph {
	background:
		linear-gradient(135deg, rgba(235, 209, 26, 0.35), transparent 60%),
		#1a1532;
}

.haam-svc__mag-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 16px 18px 16px 8px;
	min-width: 0;
}

.haam-svc__mag-date {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--svc-muted);
}

.haam-svc__mag-title {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--svc-ink);
}

.haam-svc__similar-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.haam-svc__similar-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 16px;
	border: 1px solid var(--svc-line);
	background: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.haam-svc__similar-link:hover {
	border-color: var(--svc-ink);
	background: #fff;
	transform: translateY(-2px);
}

.haam-svc__similar-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--svc-ink);
	color: var(--svc-brand);
	flex-shrink: 0;
	overflow: hidden;
}

.haam-svc__similar-ico .haam-svc__ico {
	width: 20px;
	height: 20px;
}

.haam-svc__similar-ico .haam-svc__ico-img {
	width: 20px;
	height: 20px;
}

.haam-svc__similar-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.haam-svc__similar-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--svc-ink);
}

.haam-svc__similar-tag {
	font-size: 0.78rem;
	color: var(--svc-muted);
}

.haam-svc__end-cta {
	border-top: 1px solid var(--svc-line);
	background:
		linear-gradient(180deg, transparent, rgba(235, 209, 26, 0.14) 45%, transparent);
	text-align: center;
}

.haam-svc__end-cta-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.haam-svc__end-cta-title {
	margin: 0;
	font-size: clamp(1.45rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--svc-ink);
}

.haam-svc__end-cta-lead {
	margin: 12px 0 28px;
	max-width: 28rem;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--svc-muted);
}

.haam-svc__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

@keyframes haam-svc-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-svc__hero-inner,
	.haam-svc__card {
		animation: none !important;
	}
}

@media (max-width: 980px) {
	.haam-svc__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.haam-svc__card {
		grid-column: span 1;
	}

	.haam-svc__mag-grid {
		grid-template-columns: 1fr;
	}

	.haam-svc__similar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.haam-svc__shell,
	.haam-svc__shell.haam-svc__panel-inner {
		width: min(1120px, calc(100% - 32px));
	}

	.haam-svc__grid {
		grid-template-columns: 1fr;
	}

	.haam-svc__card {
		grid-column: 1;
	}

	.haam-home-svc__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 12px;
	}

	.haam-home-svc .haam-svc__card {
		grid-column: span 6;
	}

	.haam-svc__similar-grid {
		grid-template-columns: 1fr;
	}

	.haam-svc__mag-card {
		grid-template-columns: 108px 1fr;
	}

	.haam-svc__leader-list {
		padding-inline: 12px;
	}

	.haam-svc__leader-list li {
		grid-template-columns: 40px 1fr;
		gap: 12px;
		padding-inline: 4px;
	}

	.haam-svc__leader-num {
		padding-inline-start: 2px;
	}

	.haam-svc__single-head {
		grid-template-columns: 1fr;
	}

	.haam-svc__brand {
		font-size: clamp(2.4rem, 14vw, 3.4rem);
	}

	.haam-svc__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.haam-svc__panel-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* —— Home page services strip —— */
.haam-home-svc {
	padding: clamp(72px, 10vw, 110px) 0;
	background: transparent;
	border-top: 1px solid var(--svc-line, rgba(26, 21, 50, 0.12));
}

.haam-home-svc__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.haam-home-svc__copy {
	flex: 1 1 40rem;
	max-width: min(48rem, 100%);
}

.haam-home-svc__title {
	margin: 0 0 12px;
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.3;
	color: var(--svc-ink);
}

.haam-home-svc__lead {
	margin: 0;
	max-width: none;
	font-size: 1.02rem;
	line-height: 1.85;
	color: var(--svc-muted);
}

.haam-home-svc__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* RTL: pack to the right with the copy */
	gap: 14px;
}

.haam-home-svc__count {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--svc-muted);
}

.haam-home-svc__count span {
	font-weight: 800;
	color: var(--svc-ink);
	font-variant-numeric: tabular-nums;
}

.haam-home-svc__more {
	margin: 28px 0 0;
	text-align: center;
}

.haam-home-svc__more a {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--svc-ink);
	text-decoration: none;
	border-bottom: 1px solid rgba(26, 21, 50, 0.25);
	padding-bottom: 2px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.haam-home-svc__more a:hover {
	color: var(--svc-ink);
	border-bottom-color: var(--svc-ink);
}

.haam-home-svc__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	flex-wrap: nowrap;
	margin-top: 32px;
	margin-bottom: 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--svc-line);
	min-height: 0;
}

.haam-home-svc__foot-lead {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--svc-ink);
}

.haam-home-svc__foot .haam-svc__btn {
	flex: 0 0 auto;
	align-self: center;
}

.haam-home-svc .haam-svc__btn--ghost {
	background: transparent;
	color: var(--svc-ink);
	border: 1px solid var(--svc-ink);
}

.haam-home-svc .haam-svc__btn--ghost:hover {
	background: var(--svc-ink);
	color: #fff;
	border-color: var(--svc-ink);
}

/* Match front-page feature cards: thin ink border, compact, light shell */
.haam-home-svc__grid {
	gap: var(--wp--preset--spacing--40, 24px);
}

.haam-home-svc .haam-svc__card {
	grid-column: span 4;
}

.haam-home-svc .haam-svc__card-link {
	min-height: 0;
	gap: 14px;
	padding: 32px 28px;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: transparent;
	overflow: visible;
	isolation: auto;
	transition: transform 0.25s ease, background 0.25s ease;
}

.haam-home-svc .haam-svc__card-link::after {
	display: none;
}

.haam-home-svc .haam-svc__card-link:hover {
	transform: translateY(-2px);
	border-color: #1a1532;
	background: rgba(255, 255, 255, 0.45);
}

.haam-home-svc .haam-svc__card-top {
	justify-content: flex-start;
	margin-bottom: 4px;
}

.haam-home-svc .haam-svc__card-num {
	display: none;
}

.haam-home-svc .haam-svc__card-ico {
	width: 44px;
	height: 44px;
	border-radius: 100px;
	border: 1px solid #e2e2e9;
	background: rgba(255, 255, 255, 0.85);
	color: #1a1532;
}

.haam-home-svc .haam-svc__card-link:hover .haam-svc__card-ico {
	background: #fff;
	color: #1a1532;
	transform: none;
}

.haam-home-svc .haam-svc__card-ico .haam-svc__ico {
	width: 22px;
	height: 22px;
}

.haam-home-svc .haam-svc__card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.haam-home-svc .haam-svc__card-tag {
	display: none;
}

.haam-home-svc .haam-svc__card-title {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: #1a1532;
}

.haam-home-svc .haam-svc__card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #5c5770;
}

.haam-home-svc .haam-svc__card-go {
	display: none;
}

@media (max-width: 700px) {
	.haam-home-svc__head {
		flex-direction: column;
		align-items: stretch;
	}

	/* flex-basis 40rem is width on desktop; in column layout it becomes height (~640px). */
	.haam-home-svc__copy {
		flex: 0 1 auto;
	}

	.haam-home-svc__actions {
		align-items: center;
		text-align: center;
	}

	.haam-home-svc__actions .haam-svc__btn {
		width: auto;
		align-self: center;
	}

	.haam-home-svc__foot {
		flex-direction: column;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.haam-home-svc__foot-lead {
		flex: 0 1 auto;
	}

	.haam-home-svc__foot .haam-svc__btn {
		width: auto;
		align-self: center;
	}

	.haam-home-svc__grid {
		gap: 12px;
	}

	.haam-home-svc .haam-svc__card {
		grid-column: span 6;
	}

	.haam-home-svc .haam-svc__card-link {
		padding: 22px 16px;
		gap: 12px;
		min-height: 100%;
	}

	.haam-home-svc .haam-svc__card-title {
		font-size: 15px;
	}

	.haam-home-svc .haam-svc__card-excerpt {
		font-size: 12.5px;
		line-height: 1.55;
	}
}

/* —— Home services: Ferris-wheel carousel (experimental; revert by restoring grid pattern) —— */
.haam-home-svc--wheel {
	padding-bottom: 0;
}

.haam-home-svc--wheel .haam-home-svc__foot {
	margin-top: 24px;
	padding-top: 24px;
	padding-bottom: 24px;
}

/* Partners keeps normal top pad; foot already has matching bottom space */
.haam-home-svc--wheel + .haam-home-partners {
	padding-top: clamp(48px, 6vw, 72px);
}

.haam-home-svc--wheel .haam-home-svc__wheel {
	--wheel-card-w: min(320px, 78vw);
	--wheel-card-h: 300px;
	position: relative;
	margin-top: 8px;
	padding: 0 52px;
	user-select: none;
	touch-action: pan-y;
}

.haam-home-svc__wheel-stage {
	position: relative;
	height: calc(var(--wheel-card-h) + 24px);
	perspective: 1200px;
	perspective-origin: 50% 45%;
	outline: none;
	cursor: grab;
}

.haam-home-svc__wheel-stage.is-dragging {
	cursor: grabbing;
}

.haam-home-svc__wheel-stage:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(26, 21, 50, 0.2);
	border-radius: 12px;
}

.haam-home-svc__wheel-track {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
}

.haam-home-svc__wheel-item {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--wheel-card-w);
	height: var(--wheel-card-h);
	margin: 0;
	transform-style: preserve-3d;
	transform:
		translate(-50%, -50%)
		translateX(var(--wheel-x, 0px))
		translateZ(var(--wheel-z, 0px))
		rotateY(var(--wheel-angle, 0deg))
		scale(var(--wheel-scale, 1));
	opacity: var(--wheel-opacity, 0.4);
	z-index: var(--wheel-z-index, 1);
	transition:
		transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.4s ease;
	pointer-events: none;
	backface-visibility: hidden;
}

.haam-home-svc__wheel-item.is-active {
	pointer-events: auto;
	opacity: 1 !important;
}

.haam-home-svc__wheel-item.is-away {
	visibility: hidden;
}

.haam-home-svc__wheel-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	height: 100%;
	padding: 28px 24px;
	border: 1px solid #1a1532;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(8px);
	box-shadow: 0 18px 40px rgba(26, 21, 50, 0.12);
	text-decoration: none !important;
	color: inherit;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.haam-home-svc__wheel-item.is-active .haam-home-svc__wheel-card {
	background: #fff;
	box-shadow: 0 22px 48px rgba(26, 21, 50, 0.16);
}

.haam-home-svc__wheel-card:hover {
	background: #fff;
}

.haam-home-svc--wheel .haam-svc__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0;
}

.haam-home-svc--wheel .haam-svc__card-num {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	color: rgba(26, 21, 50, 0.45);
	font-variant-numeric: tabular-nums;
}

.haam-home-svc--wheel .haam-svc__card-ico {
	width: 44px;
	height: 44px;
	border-radius: 100px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(235, 209, 26, 0.35);
	color: #1a1532;
}

.haam-home-svc--wheel .haam-svc__card-ico .haam-svc__ico {
	width: 22px;
	height: 22px;
}

.haam-home-svc--wheel .haam-svc__card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 0;
}

.haam-home-svc--wheel .haam-svc__card-tag {
	display: none;
}

.haam-home-svc--wheel .haam-svc__card-title {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #1a1532;
	line-height: 1.35;
}

.haam-home-svc--wheel .haam-svc__card-excerpt {
	font-size: 0.92rem;
	line-height: 1.6;
	color: #5c5770;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.haam-home-svc--wheel .haam-svc__card-go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1532;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.haam-home-svc__wheel-item.is-active .haam-svc__card-go {
	opacity: 1;
	transform: translateY(0);
}

.haam-home-svc__wheel-nav {
	position: absolute;
	top: calc(50% - 36px);
	z-index: 20;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(26, 21, 50, 0.2);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: #1a1532;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.haam-home-svc__wheel-nav:hover {
	background: #ebd11a;
	border-color: #1a1532;
	transform: scale(1.04);
}

.haam-home-svc__wheel-nav--prev {
	inset-inline-start: 0;
}

.haam-home-svc__wheel-nav--next {
	inset-inline-end: 0;
}

.haam-home-svc__wheel-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}

.haam-home-svc__wheel-status {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: #1a1532;
	font-variant-numeric: tabular-nums;
}

.haam-home-svc__wheel-status-sep {
	margin-inline: 4px;
	opacity: 0.4;
}

.haam-home-svc__wheel-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	max-width: 22rem;
}

.haam-home-svc__wheel-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(26, 21, 50, 0.22);
	cursor: pointer;
	transition: width 0.2s ease, background 0.2s ease;
}

.haam-home-svc__wheel-dot.is-active {
	width: 22px;
	background: #1a1532;
}

.haam-home-svc__wheel-dot:focus-visible {
	outline: 2px solid #ebd11a;
	outline-offset: 2px;
}

@media (max-width: 780px) {
	.haam-home-svc--wheel .haam-home-svc__wheel {
		--wheel-card-w: min(280px, 74vw);
		--wheel-card-h: 280px;
		padding: 0 40px;
	}

	.haam-home-svc__wheel-nav {
		width: 38px;
		height: 38px;
		font-size: 1rem;
	}

	.haam-home-svc--wheel .haam-svc__card-title {
		font-size: 1.05rem;
	}

	.haam-home-svc--wheel .haam-svc__card-excerpt {
		font-size: 0.85rem;
		-webkit-line-clamp: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haam-home-svc__wheel-item {
		transition: none;
	}

	.haam-home-svc--wheel .haam-home-svc__wheel {
		padding: 0;
	}

	.haam-home-svc__wheel-stage {
		height: auto;
		perspective: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		cursor: auto;
	}

	.haam-home-svc__wheel-track {
		position: static;
		display: flex;
		gap: 12px;
		padding: 4px 2px 12px;
		transform: none !important;
	}

	.haam-home-svc__wheel-item {
		position: relative;
		top: auto;
		left: auto;
		flex: 0 0 var(--wheel-card-w);
		height: auto;
		min-height: 260px;
		transform: none !important;
		opacity: 1 !important;
		scroll-snap-align: center;
		pointer-events: auto;
	}

	.haam-home-svc__wheel-nav {
		display: none;
	}
}

