/**
 * InsuranceFixits Core – Membership page styles
 * Clean, focused layout; no hero imagery.
 *
 * @package InsuranceFixits_Core
 */

/* ========== Membership page: clean white background ========== */
body.ifx-page-membership {
	background: #fff;
	background-image: none;
}

body.ifx-page-membership .ifx-inner-page-wrapper {
	background: #fff;
}

/* ========== Simple centered page header (no hero) ========== */
.ifx-membership-intro {
	padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
	padding-bottom: clamp(1rem, 2vw, 1.25rem);
	background: #fff;
}

.ifx-membership-intro__inner {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
}

.ifx-membership-intro__title {
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 700;
	color: var(--ifx-text);
	margin: 0 0 0.75rem;
}

.ifx-membership-intro__text {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ifx-text-muted);
	margin: 0;
}

/* ========== Plan Cards ========== */
.ifx-membership-plans {
	padding: 0 clamp(1.5rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6rem);
}

.ifx-membership-plans__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 3vw, 2rem);
	align-items: stretch;
}

@media (max-width: 900px) {
	.ifx-membership-plans__inner {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
	}
}

.ifx-plan-card {
	background: #fff;
	border: 1px solid var(--ifx-border);
	border-radius: var(--ifx-radius-lg);
	padding: clamp(1.5rem, 3vw, 2rem);
	display: flex;
	flex-direction: column;
	box-shadow: var(--ifx-shadow-sm);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ifx-plan-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--ifx-shadow);
}

.ifx-plan-card__name {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--ifx-text);
	margin: 0 0 0.75rem;
}

.ifx-plan-card__desc {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ifx-text-muted);
	margin: 0 0 1.5rem;
	flex-grow: 1;
}

.ifx-plan-card .ifx-btn {
	margin-top: auto;
}

/* ========== Pricing section: clean white, aligned cards ========== */
.ifx-membership-pricing {
	padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 4vw, 2.5rem);
	background: #fff;
}

/* Section transition ≤ 40px */
.ifx-membership-intro + .ifx-membership-pricing {
	padding-top: clamp(1rem, 2vw, 1.25rem);
}

.ifx-membership-pricing__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1.25rem, 2.5vw, 1.5rem);
	align-items: stretch;
}

@media (min-width: 1100px) {
	.ifx-membership-pricing__inner {
		grid-template-columns: repeat(4, 1fr);
		gap: clamp(1.25rem, 2vw, 1.75rem);
	}
}

@media (max-width: 600px) {
	.ifx-membership-pricing__inner {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
	}
}

.ifx-pricing-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--ifx-border);
	border-radius: var(--ifx-radius-lg);
	padding: clamp(1.5rem, 3vw, 2rem);
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ifx-pricing-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Most Popular: subtle emphasis */
.ifx-pricing-card--popular {
	border-color: rgba(22, 163, 74, 0.35);
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.ifx-pricing-card--popular:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.ifx-pricing-card__badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
}

.ifx-pricing-card__badge--popular {
	background: #dcfce7;
	color: #166534;
}

/* Premium: keep badge but subtle so it doesn’t overpower */
.ifx-pricing-card__badge--premium {
	background: #f8fafc;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

.ifx-pricing-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ifx-text);
	margin: 0 0 1rem;
}

.ifx-pricing-card__price {
	margin-bottom: 1.25rem;
}

.ifx-pricing-card__amount {
	font-size: 2rem;
	font-weight: 700;
	color: var(--ifx-text);
}

.ifx-pricing-card__period {
	font-size: 1rem;
	color: var(--ifx-text-muted);
}

.ifx-pricing-card__benefits {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	flex-grow: 1;
}

.ifx-pricing-card__benefits li {
	padding: 0.35rem 0;
	padding-left: 1.25rem;
	position: relative;
	font-size: 0.9375rem;
	color: var(--ifx-text-muted);
}

.ifx-pricing-card__benefits li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--ifx-teal);
	font-weight: 700;
}

.ifx-pricing-card .ifx-btn {
	margin-top: auto;
}
