/* Posh Services — botanical palette (matches Paper redesign) */
.posh-services-page {
	--posh-bone: #f5f1e8;
	--posh-moss: #2e3b2c;
	--posh-sage: #6e7f5b;
	--posh-brass: #b0894f;
	--posh-walnut: #3a2e24;
	--posh-stone: #8b8578;
	--posh-border: #e1d9c6;
}

/* Override Astra body letter-spacing / collapsed heading line-height.
   Scope covers homepage featured cards too (outside .posh-services-page). */
.posh-services-page,
.posh-services-page p,
.posh-services-page li,
.posh-services-page a,
.posh-services-page button,
.posh-services-page .posh-service-card__description,
.posh-services-page .posh-services-hero__intro,
.posh-services-page .posh-service-section__intro,
.posh-services-page .posh-services-cta__text,
.posh-service-card,
.posh-service-card p,
.posh-service-card a,
.posh-service-card__description,
.posh-service-section__grid--featured,
.posh-service-section__grid--categories {
	letter-spacing: normal !important;
	line-height: 1.65;
}

.posh-services-page :is(h1, h2, h3, h4, h5, h6),
.posh-service-card :is(h1, h2, h3, h4, h5, h6),
.posh-service-card__title {
	letter-spacing: -0.02em !important;
	line-height: 1.15 !important;
}

/* Kill Astra / header spacing that leaves a white band above services content. */
body:has(.posh-services-page) .elementor-location-header {
	margin-bottom: 0 !important;
}

body:has(.posh-services-page) #primary.content-area,
body:has(.posh-services-page) .content-area.primary {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.posh-services-hero,
.posh-service-section {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 24px;
}

.posh-services-hero {
	padding-block: 48px 40px;
}

.posh-service-section {
	padding-block: 56px;
	border-top: 1px solid var(--posh-border);
}

.posh-service-section__rule,
.posh-services-hero .posh-service-section__rule {
	display: inline-block;
	width: 32px;
	height: 1px;
	background: var(--posh-brass);
	margin-right: 12px;
	vertical-align: middle;
}

.posh-service-section__eyebrow,
.posh-services-hero .posh-service-section__eyebrow {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--posh-brass);
}

.posh-services-hero__title,
.posh-service-section__title {
	font-family: Fraunces, Georgia, serif;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--posh-moss);
	margin: 20px 0 16px;
}

.posh-services-hero__title {
	font-size: clamp(2.5rem, 5vw, 4rem);
	line-height: 1.05;
	max-width: 12ch;
}

.posh-service-section__title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.15;
}

.posh-services-hero__intro,
.posh-service-section__intro {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--posh-walnut) !important;
	max-width: 62ch;
	margin: 0;
}

.posh-services-hero__intro p,
.posh-service-section__intro p,
.entry-content .posh-services-page,
.entry-content .posh-services-page p,
.entry-content .posh-category-block__body,
.entry-content .posh-category-block__body p {
	color: var(--posh-walnut) !important;
}

.entry-content .posh-services-page :is(h1, h2, h3, h4, h5, h6),
.entry-content .posh-services-hero__title,
.entry-content .posh-category-block__title,
.entry-content .posh-service-section__title,
.entry-content .posh-service-card__title {
	color: var(--posh-moss) !important;
}

.posh-service-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 32px;
}

.posh-service-section__grid--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.posh-service-section__grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.posh-service-section__grid--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
	.posh-service-section__grid--cols-3,
	.posh-service-section__grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.posh-service-section__grid--cols-2,
	.posh-service-section__grid--cols-3,
	.posh-service-section__grid--cols-4 {
		grid-template-columns: 1fr;
	}
}

.posh-service-card {
	background: #fff;
	border: 1px solid var(--posh-border);
	border-radius: 10px;
	overflow: hidden;
	height: 100%;
}

.posh-service-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.posh-service-card__media {
	aspect-ratio: 16 / 10;
	background: var(--posh-bone);
	overflow: hidden;
}

.posh-service-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.posh-service-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	flex: 1;
}

.posh-service-card__title {
	font-family: Fraunces, Georgia, serif;
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--posh-moss);
	margin: 0;
}

.posh-service-card__description {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--posh-stone);
	margin: 0;
}

.posh-service-card__cta {
	margin-top: auto;
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--posh-moss);
}

.posh-service-section__empty {
	font-family: Montserrat, system-ui, sans-serif;
	color: var(--posh-stone);
	margin-top: 24px;
}

.posh-services-page {
	background: var(--posh-bone);
	padding-bottom: 48px;
}

.posh-services-nav {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 32px;
}

.posh-services-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.posh-services-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border: 1px solid var(--posh-border);
	border-radius: 999px;
	background: #fff;
	color: var(--posh-moss);
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.posh-services-nav__link:hover,
.posh-services-nav__link:focus {
	border-color: var(--posh-brass);
	color: var(--posh-brass);
}

.posh-services-cta {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 24px;
	text-align: center;
}

.posh-services-cta--inline {
	padding-block: 24px 8px;
}

.posh-services-cta--featured {
	padding-block: 56px 72px;
	border-top: 1px solid var(--posh-border);
}

.posh-services-cta__title {
	font-family: Fraunces, Georgia, serif;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 500;
	color: var(--posh-moss);
	margin: 0 0 12px;
}

.posh-services-cta__text {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--posh-walnut);
	max-width: 52ch;
	margin: 0 auto 24px;
}

.posh-services-cta__button {
	appearance: none;
	display: inline-block;
	padding: 16px 35px;
	border: 0;
	border-radius: 100px;
	background: #0f5c17;
	color: #fff;
	font-family: "Josefin Sans", Montserrat, system-ui, sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1;
	text-decoration: none;
	text-transform: capitalize;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.posh-services-cta__button:hover,
.posh-services-cta__button:focus {
	background: #0c4a13;
	color: #fff;
	text-decoration: none;
}

.posh-services-cta__button:focus-visible {
	outline: 2px solid #0f5c17;
	outline-offset: 3px;
}

.posh-service-card__description p {
	margin: 0 0 0.75em;
}

.posh-service-card__description p:last-child {
	margin-bottom: 0;
}

.posh-service-card--compact .posh-service-card__description {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.posh-services-index-page .site-content,
body.posh-services-index-page .entry-content,
body.posh-service-category-page .site-content,
body.posh-service-category-page .entry-content {
	background: var(--posh-bone, #f5f1e8);
}

.posh-category-page {
	background: var(--posh-bone);
	padding-bottom: 48px;
}

.posh-category-block {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 0;
}

.posh-category-block__title {
	font-family: Fraunces, Georgia, serif;
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--posh-moss);
	margin: 0 0 12px;
}

.posh-category-block__body {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--posh-walnut);
}

.posh-category-back {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 0;
}

.posh-category-back__link {
	font-family: Montserrat, system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--posh-moss);
	text-decoration: none;
}

.posh-category-back__link:hover,
.posh-category-back__link:focus {
	color: var(--posh-brass);
}

.posh-service-section__grid--categories,
.posh-service-section__grid--featured {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 48px;
}

@media (max-width: 767px) {
	.posh-services-hero {
		padding-block: 32px 24px;
	}

	.posh-service-section {
		padding-block: 40px;
	}

	.posh-service-section__grid {
		grid-template-columns: 1fr;
	}
}

/*
 * Elementor Loop Item compatibility.
 *
 * The Card Loop template reuses the posh-service-card* classes, but Elementor
 * wraps widgets in .e-con / .e-con-inner / .elementor-widget containers that
 * otherwise override the shortcode card layout. These rules neutralize those
 * wrappers so Loop Grid cards match the All Services / shortcode cards.
 */
.elementor-loop-container .posh-service-card,
.e-loop-item .posh-service-card {
	--posh-bone: #f5f1e8;
	--posh-moss: #2e3b2c;
	--posh-sage: #6e7f5b;
	--posh-brass: #b0894f;
	--posh-walnut: #3a2e24;
	--posh-stone: #8b8578;
	--posh-border: #e1d9c6;

	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	background: #fff !important;
	border: 1px solid var(--posh-border) !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	box-shadow: none !important;
	padding: 0 !important;
	gap: 0 !important;
	color: inherit !important;
	text-decoration: none !important;
}

.elementor-loop-container .posh-service-card > .e-con-inner,
.e-loop-item .posh-service-card > .e-con-inner {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	padding: 0 !important;
	gap: 0 !important;
	width: 100%;
	max-width: none !important;
}

/* Media: landscape crop like shortcode cards (works whether class is on
   the image widget or a media container). */
.elementor-loop-container .posh-service-card__media,
.e-loop-item .posh-service-card__media {
	aspect-ratio: 16 / 10;
	height: auto !important;
	max-height: none !important;
	background: var(--posh-bone);
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	align-self: stretch;
	flex: 0 0 auto !important;
}

.elementor-loop-container .posh-service-card__media .elementor-widget-container,
.e-loop-item .posh-service-card__media .elementor-widget-container {
	height: 100% !important;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.elementor-loop-container .posh-service-card__media img,
.e-loop-item .posh-service-card__media img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
	border-radius: 0 !important;
}

/* Body padding / stack matches shortcode cards. */
.elementor-loop-container .posh-service-card__body,
.e-loop-item .posh-service-card__body {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	padding: 24px !important;
	flex: 1 1 auto !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
	min-height: 0 !important;
}

.elementor-loop-container .posh-service-card__body > .e-con-inner,
.e-loop-item .posh-service-card__body > .e-con-inner {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	padding: 0 !important;
	flex: 1 1 auto !important;
	width: 100%;
	max-width: none !important;
	min-height: 0 !important;
}

/* Title: class may sit on the Elementor heading widget wrapper. */
.elementor-loop-container .posh-service-card__title,
.e-loop-item .posh-service-card__title,
.elementor-loop-container .posh-service-card__title .elementor-heading-title,
.e-loop-item .posh-service-card__title .elementor-heading-title {
	font-family: Fraunces, Georgia, serif !important;
	font-size: 1.35rem !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em !important;
	color: var(--posh-moss) !important;
	margin: 0 !important;
	padding: 0 !important;
}

/*
 * Clamp descriptions to ~3 lines so Loop cards match the compact height of
 * homepage / All Services cards (measured ~429px vs ~893px unclamped).
 */
.elementor-loop-container .posh-service-card__description,
.e-loop-item .posh-service-card__description,
.elementor-loop-container .posh-service-card__description .elementor-widget-container,
.e-loop-item .posh-service-card__description .elementor-widget-container,
.elementor-loop-container .posh-service-card__description p,
.e-loop-item .posh-service-card__description p {
	font-family: Montserrat, system-ui, sans-serif !important;
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: var(--posh-stone) !important;
	margin: 0 !important;
	padding: 0 !important;
}

.elementor-loop-container .posh-service-card__description,
.e-loop-item .posh-service-card__description,
.elementor-loop-container .posh-service-card__description .elementor-widget-container,
.e-loop-item .posh-service-card__description .elementor-widget-container {
	display: -webkit-box !important;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden !important;
	max-height: calc(1.6em * 3);
}

.elementor-loop-container .posh-service-card__cta,
.e-loop-item .posh-service-card__cta,
.elementor-loop-container .posh-service-card__cta p,
.e-loop-item .posh-service-card__cta p {
	margin-top: auto !important;
	font-family: Montserrat, system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: var(--posh-moss) !important;
	padding: 0 !important;
}

/* Kill Elementor widget default margins that inflate card height. */
.elementor-loop-container .posh-service-card .elementor-widget,
.e-loop-item .posh-service-card .elementor-widget {
	margin: 0 !important;
}

/* Loop Grid spacing closer to .posh-service-section__grid. */
.elementor-widget-loop-grid .elementor-loop-container {
	gap: 24px !important;
}

body.posh-service-category-page .elementor-widget-loop-grid {
	max-width: 1200px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-inline: 24px;
	box-sizing: border-box;
}

/* Match All Services / homepage content width on the Loop Grid parent. */
body.posh-service-category-page .e-con:has(> .e-con-inner > .elementor-widget-loop-grid) > .e-con-inner {
	max-width: 1200px !important;
	margin-inline: auto !important;
	padding-inline: 24px !important;
	width: 100% !important;
	box-sizing: border-box;
}
