@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

.ponca-services {
	position: relative;
	box-sizing: border-box;
	padding-top:203px!important;
	background-color: var(--ps-section-bg, #fffaf0);
}

.ponca-services *,
.ponca-services *::before,
.ponca-services *::after {
	box-sizing: border-box;
}

/* If the block is alignfull, the pattern still spans the viewport edge-to-edge */
.ponca-services.alignfull .ponca-services__pattern {
	margin-left: 0;
	margin-right: 0;
}

.ponca-services__inner {
	width: 100%;
	margin: 0 auto;
	max-width: var(--ps-max-width, 1360px);
}

/* Header — split: title left, description right */
.ponca-services__header {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

@media (min-width: 880px) {
	.ponca-services__header {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
		gap: clamp(2rem, 4vw, 5rem);
	}
}

.ponca-services__heading-wrap {
	flex: 1;
	min-width: 0;
}

.ponca-services__eyebrow {
	margin: 0 0 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--ps-eyebrow-color, #b8784e);
	font-family: var(--ps-eyebrow-font-family, inherit);
	font-size: var(--ps-eyebrow-font-size, inherit);
	line-height: var(--ps-eyebrow-line-height, inherit);
	font-style: var(--ps-eyebrow-font-style, inherit);
}

.ponca-services__title {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.ponca-services__title-line1,
.ponca-services__title-line2 {
	display: block;
	font-weight: 300;
	letter-spacing: -0.01em;
}

.ponca-services__title-line1 {
	color: var(--ps-title-line1-color, #1a1c1b);
	font-family: var(--ps-title-line1-font-family, inherit);
	font-size: var(--ps-title-line1-font-size, inherit);
	line-height: var(--ps-title-line1-line-height, inherit);
	font-style: var(--ps-title-line1-font-style, inherit);
}

.ponca-services__title-line2 {
	color: var(--ps-title-line2-color, #DEB209);
	font-family: var(--ps-title-line2-font-family, inherit);
	font-size: var(--ps-title-line2-font-size, inherit);
	line-height: var(--ps-title-line2-line-height, inherit);
	font-style: var(--ps-title-line2-font-style, inherit);
}

.ponca-services__desc {
	margin: 0;
	max-width: 38ch;
	flex-shrink: 0;
	color: var(--ps-desc-color, #6b7270);
	font-family: var(--ps-desc-font-family, inherit);
	font-size: var(--ps-desc-font-size, inherit);
	line-height: var(--ps-desc-line-height, inherit);
	font-style: var(--ps-desc-font-style, inherit);
}

@media (min-width: 880px) {
	.ponca-services__desc {
		padding-bottom: 0.5rem;
	}
}

/* Card grid */
.ponca-services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 640px) {
	.ponca-services--cols-2 .ponca-services__grid,
	.ponca-services--cols-3 .ponca-services__grid,
	.ponca-services--cols-4 .ponca-services__grid,
	.ponca-services--cols-5 .ponca-services__grid,
	.ponca-services--cols-6 .ponca-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ponca-services--cols-3 .ponca-services__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.ponca-services--cols-4 .ponca-services__grid {
		grid-template-columns: repeat(4, 1fr);
	}
	.ponca-services--cols-5 .ponca-services__grid {
		grid-template-columns: repeat(5, 1fr);
	}
	.ponca-services--cols-6 .ponca-services__grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

/* Card */
.ponca-services__card {
	position: relative;
	background: var(--ps-card-bg, #ffffff);
	border: 1px solid var(--ps-card-border, rgba(0,0,0,0.06));
	border-radius: var(--ps-card-radius, 0px);
	padding: clamp(1.5rem, 2.5vw, 2rem);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ponca-services__card--linked {
	cursor: pointer;
}

/* Animated yellow underline on hover */
.ponca-services__card::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--ps-card-line, #DEB209);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
}

.ponca-services__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(13, 15, 14, 0.06), 0 4px 12px rgba(13, 15, 14, 0.04);
}

.ponca-services__card:hover::after {
	transform: scaleX(1);
}

/* Card index — top right */
.ponca-services__index {
	position: absolute;
	top: clamp(1rem, 2vw, 1.5rem);
	right: clamp(1rem, 2vw, 1.5rem);
	font-weight: 500;
	letter-spacing: 0.05em;
	pointer-events: none;
	color: var(--ps-index-color, rgba(0,0,0,0.18));
	font-family: var(--ps-index-font-family, inherit);
	font-size: var(--ps-index-font-size, inherit);
	line-height: var(--ps-index-line-height, inherit);
	font-style: var(--ps-index-font-style, inherit);
}

/* Icon circle */
.ponca-services__icon {
	width: var(--ps-icon-size, 44px);
	height: var(--ps-icon-size, 44px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ps-icon-bg, #0d0f0e);
	color: var(--ps-icon-color, #f0ebe4);
	transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
	margin-bottom: clamp(0.5rem, 1.5vw, 1.25rem);
}

.ponca-services__icon svg {
	width: 55%;
	height: 55%;
	display: block;
	color: inherit;
}

.ponca-services__card:hover .ponca-services__icon {
	background: var(--ps-icon-bg-hover, #DEB209);
	color: var(--ps-icon-color-hover, #0d0f0e);
}

/* Card title + text */
.ponca-services__card-title {
	margin: 0;
	font-weight: 500;
	letter-spacing: -0.005em;
	color: var(--ps-card-title-color, #1a1c1b);
	font-family: var(--ps-card-title-font-family, inherit);
	font-size: var(--ps-card-title-font-size, inherit);
	line-height: var(--ps-card-title-line-height, inherit);
	font-style: var(--ps-card-title-font-style, inherit);
}

.ponca-services__card-text {
	margin: 0;
	flex: 1;
	color: var(--ps-card-text-color, #6b7270);
	font-family: var(--ps-card-text-font-family, inherit);
	font-size: var(--ps-card-text-font-size, inherit);
	line-height: var(--ps-card-text-line-height, inherit);
	font-style: var(--ps-card-text-font-style, inherit);
}

/* CTA — invisible at rest, fades + slides up on hover. Space is reserved so layout doesn't shift. */
.ponca-services__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.5rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none;
	color: var(--ps-cta-color, #DEB209);
	font-family: var(--ps-cta-font-family, inherit);
	font-size: var(--ps-cta-font-size, inherit);
	line-height: var(--ps-cta-line-height, inherit);
	font-style: var(--ps-cta-font-style, inherit);
}

.ponca-services__card:hover .ponca-services__cta {
	opacity: 1;
	transform: translateY(0);
}

.ponca-services__cta-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.ponca-services__card:hover .ponca-services__cta-arrow {
	transform: translateX(3px);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ponca-services__card,
	.ponca-services__card::after,
	.ponca-services__icon,
	.ponca-services__cta,
	.ponca-services__cta-arrow {
		transition: none !important;
	}
	.ponca-services__card:hover {
		transform: none;
	}
	.ponca-services__cta {
		opacity: 1;
		transform: none;
	}
}


/* ============================================================
   DYNAMIC TOP ORNAMENT (Media Library image — v1.1.0)
   Appended; the legacy `.ponca-services__pattern` rules above
   continue to apply for the contained / negative-margin mode.
   ============================================================ */

.ponca-services__pattern--image {
	display: block;
	margin-top: 0;
	pointer-events: none;
	height: var(--ps-orn-h, 60px);
	margin-bottom: var(--ps-orn-margin-bottom, clamp(2.5rem, 5vw, 5rem));
	background: var(--ps-orn-bg, transparent);
	opacity: var(--ps-orn-opacity, 1);
	background-image: var(--ps-orn-bg-image, none);
	background-repeat: var(--ps-orn-bg-repeat, repeat-x);
	background-position: var(--ps-orn-bg-position, center top);
	background-size: var(--ps-orn-bg-size, auto 100%);
	/* Contained mode — break out only of the section's own horizontal padding. */
	width: auto;
	margin-left: calc(-1 * clamp(1.25rem, 1rem + 2vw, 3rem));
	margin-right: calc(-1 * clamp(1.25rem, 1rem + 2vw, 3rem));
}

/* Full-viewport breakout — touches top, edge-to-edge regardless of theme container width. */
.ponca-services__pattern--image.ponca-services__pattern--full {
	position: absolute;
	left: 0;
	top: 0;
	max-width: 100vw;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Touches-top responsive scaling — heights shrink gracefully so the
   ornament always sits cleanly against the top edge of the section. */
@media (max-width: 1024px) {
	.ponca-services__pattern--image {
		height: calc(var(--ps-orn-h, 60px) * 0.85);
	}
}

@media (max-width: 720px) {
	.ponca-services__pattern--image {
		height: var(--ps-orn-h-mobile, 40px);
		background-size: auto 100%;
	}
}

@media (max-width: 420px) {
	.ponca-services__pattern--image {
		height: calc(var(--ps-orn-h-mobile, 40px) * 0.85);
	}
}
