/* Сторінка «Наші послуги» — лістинг як у проєктів, без фільтрів */

.page-slug-our-services .page_title,
.page-slug-our-services .sc_layouts_title,
.page-slug-our-services .entry-header,
.suntime-services-page .page_title,
.suntime-services-page .sc_layouts_title,
.suntime-services-page .entry-header {
	display: none;
}

body.suntime-services-page .page_content_wrap,
.page-slug-our-services .page_content_wrap {
	padding-top: 100px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.suntime-services-page .page_content_wrap > .content_wrap,
.page-slug-our-services .page_content_wrap > .content_wrap {
	padding-left: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
	padding-right: var(--st-layout-gutter, clamp(16px, 4vw, 60px)) !important;
}

.suntime-services {
	--sts-heading: rgba(3, 16, 54, 1);
	--sts-text: rgba(99, 105, 123, 0.92);
	--sts-accent: #ef533f;
	--sts-accent-soft: rgba(239, 83, 63, 0.14);
	--sts-navy: #031036;
	--sts-surface: #fff;
	--sts-border: #ebe4dc;
	--sts-radius: 18px;
	--sts-img-radius: 5px;
	--sts-shadow: 0 18px 50px rgba(3, 16, 54, 0.08);
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 clamp(48px, 7vw, 88px);
	color: var(--sts-text);
}

.suntime-services__hero {
	margin-bottom: clamp(28px, 4vw, 44px);
	max-width: 860px;
}

.suntime-services__title {
	margin: 0 0 12px;
	font-family: var(--theme-font-h1_font-family, "Onest", sans-serif);
	font-size: clamp(34px, 5vw, 52px);
	font-weight: var(--theme-font-h1_font-weight, 600) !important;
	line-height: 0.95;
	letter-spacing: -0.04em;
	color: var(--sts-heading);
}

.suntime-services__lead {
	margin: 0;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.55;
	color: var(--sts-text);
}

.suntime-services__empty {
	margin: 0;
	padding: 28px;
	border: 1px dashed var(--sts-border);
	border-radius: var(--sts-radius);
	background: rgba(244, 237, 225, 0.35);
}

.suntime-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 2vw, 22px);
}

@keyframes suntime-services-card-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.985);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.suntime-services__card {
	margin: 0;
	min-width: 0;
	animation: suntime-services-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: calc(var(--sts-i, 0) * 45ms);
}

.suntime-services__link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	overflow: hidden;
	border-radius: var(--sts-img-radius);
	background: var(--sts-surface);
	box-shadow: var(--sts-shadow);
	text-decoration: none !important;
	color: inherit;
	isolation: isolate;
	transform: translateZ(0);
	transition: box-shadow 0.35s ease;
}

.suntime-services__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(3, 16, 54, 0.06);
	transition: box-shadow 0.35s ease;
}

.suntime-services__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(145deg, #1a2a4a, #031036);
}

.suntime-services__media img,
.suntime-services__media-fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
	filter: saturate(0.92) contrast(1.02);
}

.suntime-services__media-fallback {
	background:
		radial-gradient(circle at 30% 20%, rgba(239, 83, 63, 0.35), transparent 50%),
		linear-gradient(145deg, #243558, #031036);
}

.suntime-services__shine {
	position: absolute;
	inset: -40% -60%;
	z-index: 1;
	background: linear-gradient(
		115deg,
		transparent 35%,
		rgba(255, 255, 255, 0.18) 48%,
		transparent 62%
	);
	transform: translateX(-30%) rotate(8deg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.suntime-services__spotlight {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(
		420px circle at var(--sts-x, 50%) var(--sts-y, 40%),
		rgba(255, 255, 255, 0.22),
		transparent 55%
	);
	mix-blend-mode: soft-light;
	transition: opacity 0.25s ease;
}

.suntime-services__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(3, 16, 54, 0) 42%,
		rgba(3, 16, 54, 0.78) 100%
	);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.suntime-services__excerpt {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 3;
	margin: 0;
	max-width: 34ch;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.94);
	text-align: left;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition:
		opacity 0.3s ease,
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.suntime-services__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	padding: 18px 18px 20px;
	background: linear-gradient(180deg, #fff 0%, #fbf8f4 100%);
}

.suntime-services__index {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--sts-accent);
}

.suntime-services__card-title {
	margin: 0;
	font-family: var(--theme-font-h1_font-family, "Onest", sans-serif);
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 600 !important;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--sts-heading);
	transition: color 0.3s ease;
}

.suntime-services__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--sts-heading);
}

.suntime-services__cta-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: var(--sts-accent-soft);
	color: var(--sts-accent);
	transform: translateX(0);
	transition:
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		background-color 0.3s ease,
		color 0.3s ease;
}

/* —— Hover: soft zoom + darkened caption on photo (no lift) —— */
.suntime-services__link:hover,
.suntime-services__link:focus-visible {
	box-shadow: 0 22px 48px rgba(3, 16, 54, 0.12);
	outline: none;
}

.suntime-services__link:hover::before,
.suntime-services__link:focus-visible::before {
	box-shadow: inset 0 0 0 1px rgba(239, 83, 63, 0.35);
}

.suntime-services__link:hover .suntime-services__media img,
.suntime-services__link:focus-visible .suntime-services__media img,
.suntime-services__link:hover .suntime-services__media-fallback,
.suntime-services__link:focus-visible .suntime-services__media-fallback {
	transform: scale(1.06);
	filter: saturate(1.05) contrast(1.05);
}

.suntime-services__link:hover .suntime-services__shine,
.suntime-services__link:focus-visible .suntime-services__shine {
	opacity: 1;
	transform: translateX(55%) rotate(8deg);
}

.suntime-services__link:hover .suntime-services__spotlight,
.suntime-services__link:focus-visible .suntime-services__spotlight,
.suntime-services__link.is-pointer .suntime-services__spotlight {
	opacity: 1;
}

.suntime-services__link:hover .suntime-services__overlay,
.suntime-services__link:focus-visible .suntime-services__overlay {
	opacity: 1;
}

.suntime-services__link:hover .suntime-services__excerpt,
.suntime-services__link:focus-visible .suntime-services__excerpt {
	opacity: 1;
	transform: none;
}

.suntime-services__link:hover .suntime-services__card-title,
.suntime-services__link:focus-visible .suntime-services__card-title {
	color: var(--sts-navy);
}

.suntime-services__link:hover .suntime-services__cta-arrow,
.suntime-services__link:focus-visible .suntime-services__cta-arrow {
	transform: translateX(6px);
	background: var(--sts-accent);
	color: #fff;
}

.suntime-services__seo {
	margin-top: clamp(36px, 6vw, 56px);
	padding: clamp(22px, 4vw, 32px);
	border: 1px solid var(--sts-border);
	border-radius: var(--sts-radius);
	background: linear-gradient(135deg, rgba(244, 237, 225, 0.55), rgba(255, 255, 255, 0.95));
}

.suntime-services__seo-title {
	margin: 0 0 12px;
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.15;
	color: var(--sts-heading);
}

.suntime-services__seo p {
	margin: 0 0 12px;
	line-height: 1.65;
}

.suntime-services__seo p:last-child {
	margin-bottom: 0;
}

.suntime-services__seo a {
	color: var(--sts-accent);
	font-weight: 600;
	text-decoration: none;
}

.suntime-services__seo a:hover,
.suntime-services__seo a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.suntime-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.suntime-services-page .page_content_wrap,
	.page-slug-our-services .page_content_wrap {
		padding-top: 80px !important;
	}

	.suntime-services__grid {
		grid-template-columns: 1fr;
	}

	.suntime-services__overlay {
		opacity: 1;
	}

	.suntime-services__excerpt {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.suntime-services__card {
		animation: none !important;
	}

	.suntime-services__link,
	.suntime-services__media img,
	.suntime-services__shine,
	.suntime-services__overlay,
	.suntime-services__excerpt,
	.suntime-services__cta-arrow,
	.suntime-services__card-title {
		transition: none !important;
	}
}
