/**
 * Services block — modern editorial cards.
 */

.dawnsol-services {
	position: relative;
	width: 100%;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   3D dev-themed background
   ------------------------------------------------------------------------- */
.dawnsol-services__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	perspective: 1400px;
}

.dawnsol-services__bg-grid {
	position: absolute;
	inset: -20% -10% 30%;
	background-image:
		linear-gradient(rgba(47, 131, 100, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(47, 131, 100, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	transform: rotateX(68deg) translateZ(-80px);
	transform-origin: center 80%;
	opacity: 0.55;
	mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 75%, transparent 100%);
}

.dawnsol-services__bg-glow {
	position: absolute;
	width: min(38vw, 380px);
	height: min(38vw, 380px);
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.45;
}

.dawnsol-services__bg-glow--left {
	top: 8%;
	left: -6%;
	background: rgba(62, 207, 154, 0.28);
}

.dawnsol-services__bg-glow--right {
	right: -4%;
	bottom: 10%;
	background: rgba(47, 131, 100, 0.22);
}

.dawnsol-services__deco {
	position: absolute;
	pointer-events: none;
}

/* Isometric 3D cube */
.dawnsol-services__deco--cube {
	top: 14%;
	right: 7%;
	width: 52px;
	height: 52px;
	transform-style: preserve-3d;
	animation: dawnsol-services-cube-float 7s ease-in-out infinite;
}

.dawnsol-services__cube-face {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(47, 131, 100, 0.35);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(234, 243, 240, 0.75));
	box-shadow: 0 12px 28px rgba(47, 131, 100, 0.12);
}

.dawnsol-services__cube-face--top {
	transform: rotateX(90deg) translateZ(26px);
	background: linear-gradient(145deg, rgba(62, 207, 154, 0.35), rgba(255, 255, 255, 0.85));
}

.dawnsol-services__cube-face--left {
	transform: rotateY(-90deg) translateZ(26px);
}

.dawnsol-services__cube-face--right {
	transform: translateZ(26px);
}

/* Code brackets */
.dawnsol-services__deco--brackets {
	top: 22%;
	left: 5%;
	padding: 0.65rem 1rem;
	border-radius: 14px;
	border: 1px solid rgba(47, 131, 100, 0.2);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(8px);
	box-shadow:
		0 14px 32px rgba(6, 20, 15, 0.06),
		0 0 0 1px rgba(255, 255, 255, 0.6) inset;
	color: var(--dawnsol-color-green, #2f8364);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	transform: translateZ(40px) rotate(-8deg);
	animation: dawnsol-services-float-brackets 6s ease-in-out infinite;
}

/* Dev tag */
.dawnsol-services__deco--tag {
	bottom: 18%;
	left: 8%;
	padding: 0.5rem 0.85rem;
	border-radius: 12px;
	border: 1px solid rgba(47, 131, 100, 0.18);
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(6px);
	color: var(--dawnsol-color-green-dark, #06140f);
	font-size: 0.95rem;
	font-weight: 700;
	font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
	box-shadow: 0 12px 28px rgba(6, 20, 15, 0.06);
	transform: translateZ(30px) rotate(6deg);
	animation: dawnsol-services-float-tag 8s ease-in-out infinite;
}

/* Mini terminal */
.dawnsol-services__deco--terminal {
	top: 58%;
	right: 6%;
	width: 118px;
	padding: 0.65rem 0.75rem;
	border-radius: 14px;
	border: 1px solid rgba(47, 131, 100, 0.2);
	background: rgba(6, 20, 15, 0.82);
	box-shadow: 0 18px 40px rgba(6, 20, 15, 0.18);
	transform: translateZ(50px) rotateY(-12deg) rotateX(8deg);
	animation: dawnsol-services-float-terminal 9s ease-in-out infinite 0.5s;
}

.dawnsol-services__terminal-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border-radius: 50%;
	background: #3ecf9a;
	opacity: 0.85;
}

.dawnsol-services__terminal-dot:nth-child(2) {
	background: #fbbf24;
}

.dawnsol-services__terminal-dot:nth-child(3) {
	background: #f87171;
}

.dawnsol-services__terminal-line {
	display: block;
	height: 4px;
	margin-top: 0.55rem;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(62, 207, 154, 0.8), rgba(62, 207, 154, 0.15));
}

.dawnsol-services__terminal-line--short {
	width: 62%;
	margin-top: 0.4rem;
	opacity: 0.65;
}

/* 3D ring */
.dawnsol-services__deco--ring {
	bottom: 12%;
	right: 14%;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 3px solid rgba(62, 207, 154, 0.45);
	box-shadow:
		0 0 0 6px rgba(62, 207, 154, 0.08),
		inset 0 0 20px rgba(62, 207, 154, 0.15);
	transform: translateZ(20px) rotateX(62deg);
	animation: dawnsol-services-ring-spin 12s linear infinite;
}

/* Chip badge */
.dawnsol-services__deco--chip {
	top: 42%;
	left: 3%;
	padding: 0.4rem 0.7rem;
	border-radius: 8px;
	border: 1px solid rgba(47, 131, 100, 0.25);
	background: linear-gradient(135deg, rgba(62, 207, 154, 0.2), rgba(255, 255, 255, 0.8));
	color: var(--dawnsol-color-green, #2f8364);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	box-shadow: 0 10px 24px rgba(47, 131, 100, 0.12);
	transform: translateZ(35px) rotate(-4deg);
	animation: dawnsol-services-float-chip 7.5s ease-in-out infinite 1s;
}

.dawnsol-services > .container {
	position: relative;
	z-index: 1;
}

@keyframes dawnsol-services-cube-float {
	0%,
	100% {
		transform: translateY(0) rotateX(-18deg) rotateY(24deg);
	}

	50% {
		transform: translateY(-14px) rotateX(-22deg) rotateY(32deg);
	}
}

@keyframes dawnsol-services-float-brackets {
	0%,
	100% {
		transform: translateY(0) translateZ(40px) rotate(-8deg);
	}

	50% {
		transform: translateY(-10px) translateZ(55px) rotate(-8deg);
	}
}

@keyframes dawnsol-services-float-tag {
	0%,
	100% {
		transform: translateY(0) translateZ(30px) rotate(6deg);
	}

	50% {
		transform: translateY(-8px) translateZ(42px) rotate(6deg);
	}
}

@keyframes dawnsol-services-float-terminal {
	0%,
	100% {
		transform: translateY(0) translateZ(50px) rotateY(-12deg) rotateX(8deg);
	}

	50% {
		transform: translateY(-12px) translateZ(60px) rotateY(-12deg) rotateX(8deg);
	}
}

@keyframes dawnsol-services-float-chip {
	0%,
	100% {
		transform: translateY(0) translateZ(35px) rotate(-4deg);
	}

	50% {
		transform: translateY(-8px) translateZ(48px) rotate(-4deg);
	}
}

@keyframes dawnsol-services-ring-spin {
	from {
		transform: translateZ(20px) rotateX(62deg) rotateZ(0deg);
	}

	to {
		transform: translateZ(20px) rotateX(62deg) rotateZ(360deg);
	}
}

@media (max-width: 1024px) {
	.dawnsol-services__deco--cube,
	.dawnsol-services__deco--terminal,
	.dawnsol-services__deco--chip {
		opacity: 0.55;
		transform: scale(0.85);
	}

	.dawnsol-services__deco--ring {
		right: 4%;
		width: 56px;
		height: 56px;
	}
}

@media (max-width: 640px) {
	.dawnsol-services__deco--cube,
	.dawnsol-services__deco--terminal,
	.dawnsol-services__deco--chip,
	.dawnsol-services__deco--ring {
		display: none;
	}

	.dawnsol-services__deco--brackets,
	.dawnsol-services__deco--tag {
		opacity: 0.4;
		transform: scale(0.8);
	}

	.dawnsol-services__bg-grid {
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dawnsol-services__deco--cube,
	.dawnsol-services__deco--brackets,
	.dawnsol-services__deco--tag,
	.dawnsol-services__deco--terminal,
	.dawnsol-services__deco--ring,
	.dawnsol-services__deco--chip {
		animation: none !important;
	}
}

.dawnsol-services__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	margin-bottom: 3rem;
}

.dawnsol-services__intro {
	flex: 1 1 420px;
	max-width: 720px;
}

.dawnsol-services__description {
	margin-top: 1rem;
	color: var(--dawnsol-color-muted, #718096);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.dawnsol-services__description p {
	margin: 0;
}

.dawnsol-services__action {
	flex-shrink: 0;
}

.dawnsol-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
	align-items: stretch;
}

/* Card — attractive at rest, enhanced on hover */
.dawnsol-services__card {
	position: relative;
	margin: 0;
	height: 100%;
	border-radius: 24px;
	background: #fff;
	padding: 0.75rem;
	border: 1px solid rgba(47, 131, 100, 0.12);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.9) inset,
		0 10px 32px rgba(6, 20, 15, 0.06);
	transition:
		border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dawnsol-services__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 1rem;
	color: inherit;
	text-decoration: none;
}

.dawnsol-services__card-media {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	height: 220px;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(145deg, #eaf3f0, #dceee6);
	box-shadow: inset 0 0 0 1px rgba(47, 131, 100, 0.1);
}

.dawnsol-services__card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 35%,
		rgba(6, 20, 15, 0.12) 100%
	);
	opacity: 1;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.dawnsol-services__card-media-fallback {
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, #dceee6 0%, #c5dfd4 45%, #eaf3f0 100%);
}

.dawnsol-services__card-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.dawnsol-services__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0rem 0.5rem 0.65rem;
}

.dawnsol-services__card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dawnsol-services__card-index {
	display: inline-flex;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dawnsol-color-green, #2f8364);
	background: var(--dawnsol-color-green-mint, #eaf3f0);
	border: 1px solid rgba(47, 131, 100, 0.15);
	width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
	position: absolute;
    top: 20px;
}

.dawnsol-services__card-title {
	font-size: clamp(1.125rem, 1.6vw, 1.35rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: var(--dawnsol-color-green-dark, #06140f);
	transition: color 0.3s ease;
}

.dawnsol-services__card-excerpt {
	margin: 0.15rem 0 0;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.dawnsol-services__card-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 2.75rem;
	height: 2.75rem;
	margin-top: auto;
	margin-left: auto;
	padding: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #2f8364 0%, #3ecf9a 100%);
	color: #fff;
	box-shadow: 0 8px 20px rgba(47, 131, 100, 0.28);
	overflow: hidden;
	white-space: nowrap;
	transition:
		width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		gap 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.35s ease,
		box-shadow 0.35s ease,
		transform 0.35s ease;
}

.dawnsol-services__card-action-text {
	display: inline-block;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	transform: translateX(8px);
	transition:
		max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.35s ease,
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dawnsol-services__card-action-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	transition: transform 0.35s ease;
}

.dawnsol-services__card-action-icon svg {
	display: block;
}

/* Hover — extra polish on top of strong default */
.dawnsol-services__card:hover,
.dawnsol-services__card:focus-within {
	border-color: rgba(47, 131, 100, 0.28);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 20px 48px rgba(47, 131, 100, 0.14);
	transform: translateY(-8px);
}

.dawnsol-services__card:hover .dawnsol-services__card-media::after,
.dawnsol-services__card:focus-within .dawnsol-services__card-media::after {
	opacity: 1;
	background: linear-gradient(
		180deg,
		transparent 25%,
		rgba(47, 131, 100, 0.28) 100%
	);
}

.dawnsol-services__card:hover .dawnsol-services__card-image,
.dawnsol-services__card:focus-within .dawnsol-services__card-image {
	transform: scale(1.06);
}

.dawnsol-services__card:hover .dawnsol-services__card-title,
.dawnsol-services__card:focus-within .dawnsol-services__card-title {
	color: var(--dawnsol-color-green, #2f8364);
}

.dawnsol-services__card:hover .dawnsol-services__card-index,
.dawnsol-services__card:focus-within .dawnsol-services__card-index {
	color: #fff;
	background: linear-gradient(135deg, #2f8364, #3ecf9a);
	border-color: transparent;
}

.dawnsol-services__card:hover .dawnsol-services__card-action,
.dawnsol-services__card:focus-within .dawnsol-services__card-action {
	width: auto;
	padding: 0 0.35rem 0 1.1rem;
	gap: 0.15rem;
	background: var(--dawnsol-color-green-dark, #06140f);
	box-shadow: 0 10px 28px rgba(6, 20, 15, 0.28);
	transform: translateY(-2px);
}

.dawnsol-services__card:hover .dawnsol-services__card-action-text,
.dawnsol-services__card:focus-within .dawnsol-services__card-action-text {
	max-width: 5.5rem;
	opacity: 1;
	transform: translateX(0);
}

.dawnsol-services__card:hover .dawnsol-services__card-action-icon,
.dawnsol-services__card:focus-within .dawnsol-services__card-action-icon {
	transform: translate(2px, -2px);
}

.dawnsol-services__empty {
	margin: 0;
	padding: 2rem;
	border: 1px dashed var(--dawnsol-color-border, #e2e8f0);
	border-radius: 16px;
	text-align: center;
	color: var(--dawnsol-color-muted, #718096);
}

@media (max-width: 1024px) {
	.dawnsol-services__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dawnsol-services__card-media {
		height: 200px;
	}
}

@media (max-width: 640px) {
	.dawnsol-services__header {
		margin-bottom: 1.75rem;
	}

	.dawnsol-services__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.dawnsol-services__card {
		border-radius: 24px;
		padding: 0.75rem;
	}

	.dawnsol-services__card-media {
		height: 190px;
		border-radius: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dawnsol-services__card,
	.dawnsol-services__card-image,
	.dawnsol-services__card-action,
	.dawnsol-services__card-action-text,
	.dawnsol-services__card-action-icon {
		transition: none;
	}

	.dawnsol-services__card:hover,
	.dawnsol-services__card:focus-within {
		transform: none;
	}

	.dawnsol-services__card:hover .dawnsol-services__card-image,
	.dawnsol-services__card:focus-within .dawnsol-services__card-image,
	.dawnsol-services__card:hover .dawnsol-services__card-action,
	.dawnsol-services__card:focus-within .dawnsol-services__card-action {
		transform: none;
		width: auto;
		padding: 0 0.35rem 0 1rem;
	}

	.dawnsol-services__card:hover .dawnsol-services__card-action-text,
	.dawnsol-services__card:focus-within .dawnsol-services__card-action-text {
		max-width: 5.5rem;
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------------
   Category filter + AJAX results
   ------------------------------------------------------------------------- */
.dawnsol-services__filters {
	margin: 0 0 2rem;
}

.dawnsol-services__filter-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dawnsol-services__filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.55rem 1.1rem;
	border: 1px solid rgba(47, 131, 100, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--dawnsol-color-text, #2d3748);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition:
		border-color 0.25s ease,
		background 0.25s ease,
		color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.25s ease;
}

.dawnsol-services__filter:hover,
.dawnsol-services__filter:focus-visible {
	border-color: rgba(47, 131, 100, 0.35);
	color: var(--dawnsol-color-green, #2f8364);
	transform: translateY(-1px);
}

.dawnsol-services__filter.is-active {
	border-color: transparent;
	background: linear-gradient(135deg, #2f8364, #3ecf9a);
	color: #fff;
	box-shadow: 0 10px 24px rgba(47, 131, 100, 0.22);
}

.dawnsol-services__results {
	position: relative;
	transition: opacity 0.25s ease;
}

.dawnsol-services__results.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.dawnsol-services__results.is-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 2rem;
	height: 2rem;
	margin: -1rem 0 0 -1rem;
	border: 2px solid rgba(47, 131, 100, 0.18);
	border-top-color: var(--dawnsol-color-green, #2f8364);
	border-radius: 50%;
	animation: dawnsol-services-spin 0.7s linear infinite;
}

@keyframes dawnsol-services-spin {
	to {
		transform: rotate(360deg);
	}
}

/* -------------------------------------------------------------------------
   Pagination
   ------------------------------------------------------------------------- */
.dawnsol-services__pagination {
	margin-top: 3rem;
	display: flex;
	justify-content: center;
}

.dawnsol-services__pagination-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dawnsol-services__pagination-list li {
	margin: 0;
}

.dawnsol-services__pagination-list a,
.dawnsol-services__pagination-list span,
.dawnsol-services__page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(47, 131, 100, 0.16);
	background: #fff;
	color: var(--dawnsol-color-text, #2d3748);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(6, 20, 15, 0.05);
	transition:
		border-color 0.25s ease,
		background 0.25s ease,
		color 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
	cursor: pointer;
	font-family: inherit;
}

.dawnsol-services__pagination-list a:hover,
.dawnsol-services__pagination-list a:focus-visible,
.dawnsol-services__page-btn:hover,
.dawnsol-services__page-btn:focus-visible {
	border-color: rgba(47, 131, 100, 0.35);
	color: var(--dawnsol-color-green, #2f8364);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(47, 131, 100, 0.12);
}

.dawnsol-services__pagination-list .current,
.dawnsol-services__page-btn.is-current {
	border-color: transparent;
	background: linear-gradient(135deg, #2f8364, #3ecf9a);
	color: #fff;
	box-shadow: 0 12px 28px rgba(47, 131, 100, 0.22);
	cursor: default;
}

.dawnsol-services__pagination-list .dots {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
	min-width: auto;
	padding-inline: 0.35rem;
	cursor: default;
}

.dawnsol-services__page-btn--arrow {
	padding-inline: 0.75rem;
}
