/**
 * WordPress-specific bridges so Gutenberg layout + marketing CSS coexist.
 */

/* Site shell */
.wp-site-blocks {
	padding: 0;
	margin: 0;
}

/* Align marketing .container with block wide width */
.wp-site-blocks .container {
	max-width: var(--wp--style--global--wide-size, 1180px);
}

/* Block buttons → RewardMate styles */
.wp-block-button.is-style-rm-primary .wp-block-button__link,
.wp-block-button__link.has-primary-background-color {
	background: linear-gradient(180deg, #14968B 0%, #0F766E 100%) !important;
	color: #fff !important;
	border-radius: 16px !important;
	font-weight: 600;
	padding: 0.7rem 1.25rem;
	border: none !important;
	box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 16px rgba(15,118,110,0.28);
	text-decoration: none;
}
.wp-block-button.is-style-rm-secondary .wp-block-button__link {
	background: #fff !important;
	color: #0F172A !important;
	border: 1px solid #D8DEE6 !important;
	border-radius: 16px !important;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.wp-block-button.is-style-rm-white .wp-block-button__link {
	background: #fff !important;
	color: #115E59 !important;
	border-radius: 16px !important;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Group soft bg */
.wp-block-group.is-style-rm-soft {
	background: #F4F7F8;
}

/* Gradient text helper for headings */
.has-brand-text-gradient-background {
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Pattern HTML sections should be full-bleed */
.rm-section,
section.hero,
section.trusted,
section.metrics,
section.features,
section.showcase,
section.cx,
section.gamification,
section.journey,
section.split,
section.integrations,
section.testimonials,
section.pricing,
section.faq,
section.final-cta,
section.how,
section.roi,
section.playground,
section.compare {
	width: 100%;
	max-width: none;
}

/* Prevent theme.json gap from breaking marketing flex/grid */
.rm-section .wp-block-group,
.nav .container,
.footer .container {
	gap: 0;
}

/* Admin bar offset for sticky nav */
.admin-bar .nav {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar .nav {
		top: 46px;
	}
}

/* Skip link already in design */
.skip-link:focus {
	z-index: 100000;
}

/* Make sure interactive widgets work inside blocks */
.live-redeem input[type="range"],
.roi-field input[type="range"],
.live-spin__btn,
.live-apply {
	font: inherit;
}

/* Pattern editor preview: ensure mockups don't overflow */
.editor-styles-wrapper .rm-mock,
.block-editor-block-list__layout .rm-mock {
	max-width: 100%;
}

/* Reduce WP block margin defaults inside marketing patterns */
.rm-html-pattern > * {
	margin-top: 0;
	margin-bottom: 0;
}

/* Ensure section blocks are full width in content */
.entry-content > .rm-section,
.wp-block-post-content > .rm-section,
.rewardmate-main > .rm-section {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Custom logo */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}
.logo__mark--image {
	background: transparent !important;
	box-shadow: none !important;
	width: auto !important;
	height: auto !important;
	border-radius: 0 !important;
	padding: 0 !important;
}
.logo img.custom-logo,
.rm-site-logo img {
	height: var(--rm-logo-height, 32px);
	width: auto;
	max-width: 220px;
	display: block;
	object-fit: contain;
}
.footer .logo img.custom-logo {
	/* Keep readable on dark footer — optional light bg chip for dark logos */
	max-height: var(--rm-logo-height, 32px);
}
.footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}
.footer__social a {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255,255,255,0.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	transition: background 0.2s;
}
.footer__social a:hover {
	background: rgba(255,255,255,0.16);
	color: #fff;
}

/* Customizer shortcut notice in admin is optional */
