/* ==========================================================================
   Location Closing CTA (neilkelly/location-cta-close)
   Figma: Location Page / 9 — Closing CTA (1692:970)
   Token-driven, plain CSS. Dark centered panel: heading + body line + two CTA
   paths (red primary + outlined secondary).
   Wrapper: .wp-block-neilkelly-location-cta-close.nk-location-cta-close
   ========================================================================== */
.wp-block-neilkelly-location-cta-close.nk-location-cta-close {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--5);
	background: var(--wp--preset--color--surface-dark);
	font-family: var(--wp--preset--font-family--inter);
	padding: var(--wp--preset--spacing--section) var(--wp--preset--spacing--gutter);
	text-align: center;
	box-sizing: border-box;
}

/* is-display-heading MOVED to blocks/service-cta-close/style.css on 2026-08-12:
   the About page was this modifier's only user, and it now closes on
   neilkelly/service-cta-close like the Designers, People, Location, Reviews and
   Events hubs do. The remaining instances here (FAQ hub + answer, Photo Gallery
   hub + single, Article single) all keep the --structural treatment. */

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__heading {
	max-width: var(--wp--custom--components--people--cta-heading-max-width);
	/* Size + case come from the shared .nk-headline--structural class (mapped in
	   render.php); block keeps weight, line-height and color. */
	font-weight: var(--wp--custom--font-weight--bold);
	line-height: var(--wp--custom--line-height--xl);
	color: var(--wp--preset--color--brand-white);
	margin: 0;
}

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__body {
	max-width: var(--wp--custom--components--people--cta-body-max-width);
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--base);
	color: var(--wp--preset--color--neutral-350);
	margin: 0;
}

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__footnote {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	line-height: var(--wp--custom--line-height--base);
	color: var(--wp--preset--color--neutral-350);
	margin: 0;
}

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--4);
	padding-top: var(--wp--preset--spacing--2);
}

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--base);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--none);
	border-radius: var(--wp--custom--radius--lg);
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	border: var(--wp--custom--components--people--card-border-width) solid transparent;
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

/* Primary path — white on the dark (surface-dark) closing panel; off the red CTA. */
.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn--primary {
	background: var(--wp--preset--color--brand-white);
	color: var(--wp--preset--color--ink-primary);
	border-color: var(--wp--preset--color--brand-white);
}

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn--primary:hover,
.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn--primary:focus-visible {
	background: var(--wp--preset--color--neutral-100);
	border-color: var(--wp--preset--color--neutral-100);
}

/* Secondary path — outlined white. */
.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn--secondary {
	background: transparent;
	color: var(--wp--preset--color--brand-white);
	border-color: var(--wp--preset--color--brand-white);
}

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn--secondary:hover,
.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn--secondary:focus-visible {
	background: var(--wp--preset--color--brand-white);
	color: var(--wp--preset--color--ink-primary);
}

.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-white);
	outline-offset: 2px;
}

/* Optional contact line (address · phone) under the CTA — FAQ Hub instance. */
.wp-block-neilkelly-location-cta-close .nk-location-cta-close__contact {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--wp--custom--font-weight--medium);
	color: var(--wp--preset--color--neutral-350);
}

@media (max-width: 767px) {
	.wp-block-neilkelly-location-cta-close.nk-location-cta-close {
		padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--6);
	}
	.wp-block-neilkelly-location-cta-close .nk-location-cta-close__heading {
		font-size: var(--wp--preset--font-size--md);
		line-height: var(--wp--custom--line-height--lg-tight);
	}
	.wp-block-neilkelly-location-cta-close .nk-location-cta-close__body {
		font-size: var(--wp--preset--font-size--base);
	}
	.wp-block-neilkelly-location-cta-close .nk-location-cta-close__actions {
		flex-direction: column;
		align-self: stretch;
	}
	.wp-block-neilkelly-location-cta-close .nk-location-cta-close__btn {
		width: 100%;
	}
}

/* No block-gap seam between full-bleed sections. */
.wp-block-neilkelly-location-cta-close { margin-block: 0; }

/* When CTA Close is the last section in <main>, pull the footer up 24px to
   close the seam above it. All breakpoints; :last-child so it doesn't apply
   when the section smart-hides (then it isn't the last child). */
.wp-block-neilkelly-location-cta-close:last-child {
	margin-bottom: calc(-1 * var(--wp--preset--spacing--6));
}
