/* Pilgrim feature cards. "html body" prefixes keep these over Elementor's site-wide heading styles. */

/* -------------------------------------------------------------------------
   Feature Cards — square tiles with small line icons
   [pilgrim_feature_card category="membership"]
   ---------------------------------------------------------------------- */
.pgi { --pgi-line: rgba(15, 21, 18, .16); --pgi-ink: var(--pg-black, #0F1512); --pgi-muted: var(--pg-muted, #4A4A44); --pgi-accent: var(--pg-push, #B34A55); --pgi-frame: var(--pg-sand, #EBE8E1); --pgi-hover: rgba(239, 197, 197, .28); color: var(--pgi-ink); }
.pgi-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
html body .pgi-head .pg-section-title { margin: 0; color: inherit; }
.pgi-head .pg-eyebrow { margin-bottom: 12px; color: inherit; }
.pgi-head__intro { max-width: 380px; margin: 0; color: var(--pgi-muted); }

.pgi-grid {
	display: grid; grid-template-columns: repeat(var(--pgi-cols, 3), minmax(0, 1fr)); grid-auto-rows: 1fr;
	margin: 0; padding: 0; list-style: none;
	border-top: 1px solid var(--pgi-line); border-left: 1px solid var(--pgi-line);
}
.pgi-tile {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; row-gap: 20px;
	margin: 0; padding: 22px;
	border-right: 1px solid var(--pgi-line); border-bottom: 1px solid var(--pgi-line);
	transition: background-color .25s ease;
}
/* Square at the least: an invisible spacer as tall as the tile is wide.
   Longer text makes the tile taller, and the grid keeps every tile the same height. */
.pgi-tile::before { content: ''; grid-row: 1 / -1; grid-column: 1; padding-top: min(100%, 230px); pointer-events: none; }
.pgi-tile__top { grid-row: 1; grid-column: 1; }
.pgi-tile__body { grid-row: 2; grid-column: 1; align-self: start; padding-top: 8px; }
.pgi-tile:hover { background: var(--pgi-hover); }
.pgi-tile__top { display: flex; align-items: flex-start; justify-content: space-between; }
.pgi-tile__icon {
	display: grid; place-items: center; width: 72px; height: 72px;
	background: var(--pgi-frame); color: var(--pgi-ink);
	transition: transform .25s ease;
}
.pgi-tile:hover .pgi-tile__icon { transform: translateY(-2px); }
.pgi-icon { display: block; width: 50px; height: 50px; overflow: visible; }
.pgi-icon .a, .pgi-icon .a * { stroke: var(--pgi-accent); }
.pgi-tile__num { font-family: var(--pg-sans, 'Jost', sans-serif); font-size: 11px; font-weight: 500; letter-spacing: .2em; color: var(--pgi-muted); }
html body .pgi-tile__title {
	margin: 0 0 6px;
	font-family: var(--pg-serif, 'Cormorant Garamond', serif); font-size: 26px; font-weight: 500; line-height: 1.1; letter-spacing: 0; text-transform: none;
	color: var(--pgi-ink);
}
.pgi-tile__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pgi-muted); }

/* Sand tiles */
.pgi--sand .pgi-grid { gap: 6px; border: 0; }
.pgi--sand .pgi-tile { background: var(--pg-sand, #EBE8E1); border: 0; }
.pgi--sand .pgi-tile:hover { background: #E3DED4; }
.pgi--sand { --pgi-frame: var(--pg-stone, #F5F3EE); }

/* Dark (on a forest background) */
.pgi--dark { --pgi-line: rgba(255, 255, 255, .16); --pgi-ink: #fff; --pgi-muted: rgba(255, 255, 255, .72); --pgi-accent: var(--pg-blush, #EFC5C5); --pgi-frame: rgba(255, 255, 255, .07); --pgi-hover: rgba(255, 255, 255, .05); }

/* Four or fewer cards: no forced square, so the boxes are shorter,
   and a bigger icon fills the space instead. */
.pgi--few .pgi-tile { padding: 28px 28px 30px; row-gap: 26px; }
.pgi--few .pgi-tile::before { padding-top: 0; }
.pgi--few .pgi-tile__body { padding-top: 0; }
.pgi--few .pgi-tile__icon { width: 104px; height: 104px; }
.pgi--few .pgi-icon { width: 76px; height: 76px; stroke-width: 1.1; }
html body .pgi--few .pgi-tile__title { font-size: 28px; }

@media (max-width: 1199px) {
	.pgi-grid { grid-template-columns: repeat(var(--pgi-cols-t, 3), minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
	.pgi--few .pgi-tile { padding: 22px; }
	.pgi--few .pgi-tile__icon { width: 88px; height: 88px; }
	.pgi--few .pgi-icon { width: 64px; height: 64px; }
}
@media (max-width: 899px) {
	.pgi--n4 .pgi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.pgi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pgi-tile { padding: 16px; row-gap: 14px; }
	.pgi-tile__icon, .pgi--few .pgi-tile__icon { width: 80px; height: 80px; }
	.pgi-icon, .pgi--few .pgi-icon { width: 58px; height: 58px; stroke-width: 1.15; }
	.pgi--few .pgi-tile { padding: 18px 16px 20px; row-gap: 18px; }
	html body .pgi--few .pgi-tile__title { font-size: 22px; }
	html body .pgi-tile__title { font-size: 22px; }
	.pgi-tile__text { font-size: 13px; }
}
@media (max-width: 359px) {
	.pgi-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.pgi-tile, .pgi-tile__icon { transition: none; }
}
