/*
 * Buttons — core Button block, Styles: Primary (default), Ghost, Text.
 * app: final-cards §27 .bt (--primary / --ghost / --text)
 *
 * ONE primary button, defined once. The same rules also style the three places that can't use the Button block:
 * `.sc-btn` (add it to any link: widgets, forms, plugin output), the header "Book a table" menu item (`sc-menu-cta`)
 * and the footer "Join today" widget. Never give a button its own shadow, size or colour; change it here.
 */
.wp-block-button .wp-block-button__link.wp-element-button,
.sc-btn,
#masthead .main-header-menu > .sc-menu-cta > .menu-link,
footer.site-footer .widget_custom_html button a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--sc-radius-pill);
	background: var(--sc-gradient-primary);
	color: var(--sc-text);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: filter var(--sc-transition), background var(--sc-transition), color var(--sc-transition),
		border-color var(--sc-transition), transform 0.08s ease;
}

.wp-block-button .wp-block-button__link.wp-element-button:hover,
.sc-btn:hover,
#masthead .main-header-menu > .sc-menu-cta:hover > .menu-link,
footer.site-footer .widget_custom_html button a:hover {
	filter: brightness(1.08);
	color: var(--sc-text);
}

.wp-block-button .wp-block-button__link.wp-element-button:active,
.sc-btn:active,
#masthead .main-header-menu > .sc-menu-cta > .menu-link:active,
footer.site-footer .widget_custom_html button a:active {
	transform: scale(0.97);
}

/* Ghost — hairline outline */
.wp-block-button.is-style-ghost .wp-block-button__link.wp-element-button {
	border: 1.5px solid var(--sc-hairline);
	background: transparent;
	color: var(--sc-text);
}

.wp-block-button.is-style-ghost .wp-block-button__link.wp-element-button:hover {
	border-color: rgba(238, 238, 238, 0.35);
	background: rgba(255, 255, 255, 0.04);
	color: var(--sc-text);
	filter: none;
}

/* Text — accent, no background */
.wp-block-button.is-style-text .wp-block-button__link.wp-element-button {
	min-height: 40px;
	padding: 0 14px;
	background: transparent;
	color: var(--sc-accent);
}

.wp-block-button.is-style-text .wp-block-button__link.wp-element-button:hover {
	background: rgba(0, 124, 194, 0.12);
	color: var(--sc-accent);
	filter: none;
}

/* Icon – map pin: small round ghost button; the link text stays in the page for screen readers. app: .bt--icon */
.wp-block-button.is-style-icon-map .wp-block-button__link.wp-element-button {
	width: 44px;
	padding: 0;
	gap: 0;   /* the hidden text is still a flex item; the base button's gap would push the icon off centre */
	border: 1.5px solid var(--sc-hairline);
	background: transparent;
	font-size: 0;
}

.wp-block-button.is-style-icon-map .wp-block-button__link.wp-element-button::after {
	content: "";
	width: 1.4rem;
	height: 1.4rem;
	background: var(--sc-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-button.is-style-icon-map .wp-block-button__link.wp-element-button:hover {
	border-color: rgba(238, 238, 238, 0.35);
	background: rgba(255, 255, 255, 0.04);
	filter: none;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button .wp-block-button__link,
	.sc-btn {
		transition: none;
		transform: none !important;
	}
}
