/* =====================================================
   Memberships / Bashra Bundles — page-specific styles
   Enqueued only on page-templates/template-memberships.php
   All shared surfaces/typography/spacing come from global
   tokens; page-only values are kept minimal and marked.
   ===================================================== */

/* ---- 1. Hero ----
   Reuses .ba-c-hero / .ba-section--c-hero primitive.
   Only page-specific addition: spacing for the trust row
   that sits under the CTA (Home hero uses margin-bottom
   on .ba-hero__cta; the shared .ba-c-hero__cta does not). */
.ba-c-hero__cta + .ba-hero__trust {
	margin-top: var(--ba-space-5);
}

/* ---- 2. Value + perks (two-column card) ---- */
.ba-mem-value {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--ba-gap-2xl);
	/* Page-specific surface tint — no global token matches
	   this opacity exactly (section-bg-2 is 0.56). */
	background: rgba(237, 225, 213, 0.74);
	border-radius: var(--ba-radius-lg);
	padding: var(--ba-space-10) var(--ba-space-9);
}

.ba-mem-value__left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.ba-mem-value__title {
	font-family: var(--ba-font-heading);
	font-weight: 400;
	font-size: var(--ba-fs-h2-md);
	line-height: var(--ba-lh-heading);
	color: var(--ba-text-primary);
	margin: 0 0 var(--ba-space-4);
}
.ba-mem-value__body {
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: var(--ba-fs-body);
	line-height: var(--ba-lh-body);
	color: var(--ba-text-secondary);
	margin: 0 0 var(--ba-space-7);
	max-width: 46ch;
}
.ba-mem-value__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ba-gap-sm);
	list-style: none;
	padding: 0;
	margin: 0;
}
.ba-mem-value__chip {
	background: var(--ba-card-bg-soft);
	border-radius: var(--ba-radius-pill);
	padding: 10px 14px;
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: 12px;
	line-height: 1.2;
	color: var(--ba-text-primary);
	white-space: nowrap;
}

.ba-mem-value__right {
	background: var(--ba-card-bg-softer);
	border-radius: var(--ba-radius-image);
	padding: var(--ba-space-7);
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.ba-mem-value__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

/* Feature row (.ba-mem-feature) is now a shared primitive
   defined in global.css — reused by the Location page. */

/* ---- 3. Available memberships ----
   Surface/radius/padding come from .ba-section defaults
   (--ba-section-bg-1, --ba-radius-lg, --ba-section-pad). */
.ba-mem-bundles__head {
	align-items: flex-start;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: var(--ba-gap-lg);
}
.ba-mem-bundles__sub {
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: var(--ba-fs-body);
	line-height: var(--ba-lh-body);
	color: var(--ba-text-muted);
	margin: 0 0 0 auto;
	max-width: 42ch;
	text-align: right;
}

.ba-mem-bundles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ba-gap-lg);
}

/* Card */
.ba-mem-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--ba-space-5);
	padding: var(--ba-gap-xl);
	border-radius: var(--ba-radius-card);
	background: linear-gradient(180deg, var(--ba-card-bg-softer) 0%, var(--ba-section-bg-3) 100%);
}
/* Badge — spec: bg #EFE6DD, 999px, 10/14, Instrument Sans 500 12, #38271E */
.ba-mem-card__badge {
	position: absolute;
	top: var(--ba-space-5);
	right: var(--ba-space-5);
	background: #EFE6DD;
	color: var(--ba-text-primary);
	font-family: var(--ba-font-body);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.2;
	padding: 10px 14px;
	border-radius: var(--ba-radius-pill);
}
.ba-mem-card__icon {
	width: 42px;
	height: 42px;
	border-radius: var(--ba-radius-card-xs);
	background: #EFE6DD;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ba-text-secondary);
}
.ba-mem-card__icon svg { width: 20px; height: 20px; display: block; }

.ba-mem-card__title {
	font-family: var(--ba-font-heading);
	font-weight: 400;
	font-size: var(--ba-fs-h3);
	line-height: 1.15;
	color: var(--ba-text-primary);
	margin: calc(-1 * var(--ba-space-2)) 0 0;
}

.ba-mem-card__plans {
	list-style: none;
	margin: var(--ba-space-5) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

/* Plan row with hairline between rows */
.ba-mem-plan {
	padding: var(--ba-space-5) 0;
	border-bottom: 1px solid rgba(216, 203, 190, 0.4);
}
.ba-mem-plan:first-child { padding-top: 0; }
.ba-mem-plan:last-child  { padding-bottom: 0; border-bottom: 0; }

.ba-mem-plan__title {
	font-family: var(--ba-font-body);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.35;
	color: var(--ba-text-primary);
	margin: 0;
}
.ba-mem-plan__text {
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: var(--ba-fs-small);
	line-height: var(--ba-lh-body);
	color: var(--ba-text-muted);
	margin: var(--ba-gap-xs) 0 0;
}
.ba-mem-plan__price {
	margin: var(--ba-gap-xs) 0 0;
	display: flex;
	align-items: baseline;
	gap: 2px;
}
.ba-mem-plan__amount {
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: 36px;
	line-height: 1.1;
	color: var(--ba-text-primary);
}
.ba-mem-plan__per {
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: var(--ba-fs-body);
	line-height: 1.3;
	color: var(--ba-text-muted);
}

.ba-mem-card__foot {
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: var(--ba-fs-small);
	line-height: var(--ba-lh-body);
	color: var(--ba-text-muted);
	margin: var(--ba-space-1) 0 0;
}
.ba-mem-card__panel {
	background: var(--ba-card-bg-soft);
	border-radius: var(--ba-radius-sm);
	padding: var(--ba-space-4);
	font-family: var(--ba-font-body);
	font-weight: 400;
	font-size: var(--ba-fs-small);
	line-height: var(--ba-lh-body);
	color: var(--ba-text-primary);
	margin: var(--ba-space-1) 0 0;
}
/* Push the panel to the bottom of the card so multi-plan
   cards still line up on the baseline. */
.ba-mem-card__panel,
.ba-mem-card__foot + .ba-mem-card__panel { margin-top: auto; }

/* ---------------------------------------------------------------------------
 * BOTTOM CTA BANNER — page-scoped wrap points (Memberships only).
 * Scoped via the unique #mem-banner-title on the heading and its sibling.
 * -------------------------------------------------------------------------*/
#mem-banner-title { max-width: 14ch; }
#mem-banner-title ~ .ba-banner__text { max-width: 53ch; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
	.ba-mem-value {
		grid-template-columns: 1fr;
		padding: var(--ba-space-8) var(--ba-space-7);
		gap: var(--ba-gap-lg);
	}
	.ba-mem-value__right { padding: var(--ba-space-7); }
	.ba-mem-bundles__head { grid-template-columns: 1fr; }
	.ba-mem-bundles__sub { text-align: left; margin-left: 0; }
	.ba-mem-bundles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ba-mem-plan__amount { font-size: 32px; }
}

@media (max-width: 720px) {
	.ba-mem-value {
		padding: var(--ba-space-7) var(--ba-space-5);
	}
	.ba-mem-value__right { padding: var(--ba-space-6); }
	.ba-mem-bundles__grid { grid-template-columns: 1fr; }
	.ba-mem-plan__amount { font-size: 30px; }
}
