/*
 * Services Hub Page Styles
 * Loaded only on page-services.php template.
 * Spec: docs/specs/2026-05-27-services-hub-page-design.md
 *
 * Pattern note: stretched-link card. Card is position:relative and NOT itself
 * an <a>. Primary CTA inner anchor carries ::after { inset:0; z-index:1 } so
 * the entire card surface routes clicks to the CTA. The CTA itself is forced
 * to position:static defensively (see __cta rule below). The tertiary plans
 * link uses z-index:2 to escape the overlay and capture its own clicks.
 */

/* --------------------------------------------------------------------------
 * Section 1: Choice Cards Grid
 * -------------------------------------------------------------------------- */

.services-hub-choices {
	padding: 80px 0;
	background: #fff;
}

.services-hub-choices__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
	max-width: 1100px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.services-hub-choices__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.services-hub-choices {
		padding: 56px 0;
	}
}

.services-hub-choice-card {
	position: relative; /* containing block for the .btn::after overlay */
	background: #fff;
	border: 1px solid var(--boltpress-colors-border, #E2E8F0);
	border-radius: 16px;
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.services-hub-choice-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 31, 63, 0.08);
	border-color: var(--boltpress-colors-primary, #001F3F);
}

/* Brand wordmark logo. Replaces the original colored icon tile.
   WordPress and Woo SVGs are wide horizontal wordmarks (4:1 ish), so
   we anchor a fixed height and let width go auto. Grayscale + reduced
   opacity keeps them as subtle context markers, not loud brand stamps. */
.services-hub-choice-card__logo {
	display: block;
	height: 20px;
	width: auto;
	max-width: 160px;
	margin-bottom: 20px;
	object-fit: contain;
	object-position: left center;
	filter: grayscale(1);
	opacity: 0.55;
}

.services-hub-choice-card__title {
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 0 0 8px;
	color: var(--boltpress-colors-primary, #001F3F);
}

.services-hub-choice-card__subhead {
	color: var(--boltpress-colors-text-muted, #718096);
	margin: 0 0 24px;
	font-size: 1rem;
}

.services-hub-choice-card__bullets {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	display: grid;
	gap: 10px;
}

.services-hub-choice-card__bullets li {
	position: relative;
	padding-left: 26px;
	color: var(--boltpress-colors-text, #2D3748);
	font-size: 0.95rem;
	line-height: 1.5;
}

.services-hub-choice-card__bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--boltpress-colors-accent, #FFDC00);
	box-shadow: inset 0 0 0 4px #fff;
}

/* Tertiary plans link. Sits above the overlay via z-index:2.
   Rendered in DOM before the CTA so it appears above it on screen. */
.services-hub-choice-card__plans {
	position: relative;
	z-index: 2;
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 16px;
	color: var(--boltpress-colors-text-muted, #718096);
	font-size: 0.875rem;
	text-decoration: underline;
	text-decoration-color: transparent;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.services-hub-choice-card__plans:hover,
.services-hub-choice-card__plans:focus {
	color: var(--boltpress-colors-primary, #001F3F);
	text-decoration-color: currentColor;
}

/* Primary CTA. Carries the stretched-link overlay.
   position: static is set defensively to block the regression where a
   future change to .btn (e.g. position: relative for a hover ring) would
   make the ::after position against the button instead of the card. */
.services-hub-choice-card__cta {
	position: static;
	align-self: flex-start;
	margin-top: auto; /* push to card bottom regardless of bullet count */
}

.services-hub-choice-card__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 16px; /* match card radius so focus outline looks right */
}

/* --------------------------------------------------------------------------
 * Section 2: Plans Mention Strip
 * -------------------------------------------------------------------------- */

.services-hub-plans-mention {
	padding: 32px 0;
}

.services-hub-plans-mention__line {
	margin: 0;
	text-align: center;
	font-size: 1rem;
	color: var(--boltpress-colors-text, #2D3748);
}

.services-hub-plans-mention__link {
	display: inline-block;
	margin-left: 8px;
	color: var(--boltpress-colors-primary, #001F3F);
	font-weight: 600;
	text-decoration: underline;
}

.services-hub-plans-mention__link:hover,
.services-hub-plans-mention__link:focus {
	color: var(--boltpress-colors-accent, #FFDC00);
}

@media (max-width: 480px) {
	.services-hub-plans-mention__link {
		display: block;
		margin: 8px 0 0;
	}
}

/* --------------------------------------------------------------------------
 * Section 3: Perks Strip
 * -------------------------------------------------------------------------- */

.services-hub-perks {
	padding: 64px 0;
	background: #fff;
}

.services-hub-perks .section__header {
	text-align: center;
	margin-bottom: 40px;
}

.services-hub-perks .section__header h2 {
	font-size: 1.5rem;
	color: var(--boltpress-colors-primary, #001F3F);
	margin: 0;
}

.services-hub-perks__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1000px;
	margin: 0 auto;
}

@media (max-width: 1024px) {
	.services-hub-perks__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.services-hub-perks__grid {
		grid-template-columns: 1fr;
	}
}

.services-hub-perks__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px 16px;
	gap: 12px;
}

.services-hub-perks__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--boltpress-colors-background-alt, #FFF6DB);
	color: var(--boltpress-colors-primary, #001F3F);
}

.services-hub-perks__card p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--boltpress-colors-text, #2D3748);
	line-height: 1.4;
}
