/*
Theme Name: Max Buyer
Theme URI: https://maxbuyshomes.com/
Author: Max Buyer, LLC.
Description: Block theme for Max Buyer, the South Florida cash home buyer. Every section is built from core Gutenberg blocks and ships as drag-and-drop patterns.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maxbuyer
*/

/* ------------------------------------------------------------------
   Layout: full-width sections sit flush against each other
------------------------------------------------------------------- */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-block-post-content > .alignfull,
.is-root-container > .alignfull,
main.wp-block-group > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

@media (min-width: 783px) {
	.admin-bar header.wp-block-template-part {
		top: 32px;
	}
}

@media (min-width: 601px) and (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

.mb-site-header .wp-block-site-title a {
	color: var(--wp--preset--color--white);
}

.mb-site-header .wp-block-navigation a:hover,
.mb-site-header .wp-block-navigation a:focus,
.mb-site-header .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--neon);
}

.mb-site-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border-color: rgba(255, 255, 255, 0.14);
	min-width: 220px;
}

.mb-site-header .mb-header-call .wp-block-button__link {
	padding: 9px 16px;
	font-size: 15px;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.mb-site-header .wp-block-site-title {
		display: none;
	}

	.mb-site-header .mb-header-call .wp-block-button__link {
		padding: 8px 12px;
		font-size: 14px;
	}
}

/* ------------------------------------------------------------------
   Brand banner + call bar (landing page top)
------------------------------------------------------------------- */
.mb-brand-banner .wp-block-image {
	margin-top: 0;
	margin-bottom: 0;
}

.mb-brand-banner img {
	display: block;
	width: 100%;
	height: auto;
}

.mb-neon-links a,
.mb-call-bar a {
	color: var(--wp--preset--color--neon);
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.mb-neon-links a:hover,
.mb-call-bar a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------
   Block style: Pill badge (paragraph)
------------------------------------------------------------------- */
.is-style-mb-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 11px 20px;
	border: 2px solid var(--wp--preset--color--black);
	border-radius: 999px;
	background-color: var(--wp--preset--color--neon);
	color: var(--wp--preset--color--black);
	font-size: 14px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

@media (max-width: 620px) {
	.is-style-mb-pill {
		padding: 9px 13px;
		font-size: 12px;
	}
}

/* ------------------------------------------------------------------
   Block style: Eyebrow (paragraph / heading)
------------------------------------------------------------------- */
.is-style-mb-eyebrow {
	font-weight: 900;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.2;
}

/* ------------------------------------------------------------------
   Block style: Icon badge + Neon stat (paragraph)
------------------------------------------------------------------- */
.is-style-mb-icon-badge {
	flex: 0 0 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	border: 2px solid var(--wp--preset--color--neon);
	border-radius: 50%;
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--neon);
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
}

.is-style-mb-stat {
	margin: 0;
	color: var(--wp--preset--color--neon);
	font-size: 25px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
	-webkit-text-stroke: 0.35px #000;
	text-shadow: 0 1px 0 #000, 1px 0 0 #000, 0 -1px 0 #000, -1px 0 0 #000;
	paint-order: stroke fill;
}

/* ------------------------------------------------------------------
   Block style: Feature card (group)
------------------------------------------------------------------- */
.is-style-mb-card {
	padding: 22px 26px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: linear-gradient(180deg, #F4F4F1 0%, #D7D7D2 100%);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
	color: var(--wp--preset--color--ink);
}

.is-style-mb-card > .wp-block-columns {
	gap: 26px;
	height: 100%;
	margin: 0;
}

.is-style-mb-card h3 {
	margin: 0 0 7px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.12;
}

.is-style-mb-card .mb-card-label {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-right: 24px;
	border-right: 1px solid rgba(0, 0, 0, 0.14);
}

.is-style-mb-card .mb-card-label p {
	margin: 0;
	color: rgba(17, 17, 17, 0.8);
	line-height: 1.35;
}

.is-style-mb-card .wp-block-column:not(.mb-card-label) {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.is-style-mb-card .wp-block-column:not(.mb-card-label) > p:first-child {
	margin-top: 0;
}

@media (max-width: 781px) {
	.is-style-mb-card .mb-card-label {
		padding-right: 0;
		padding-bottom: 16px;
		border-right: 0;
		border-bottom: 1px solid rgba(0, 0, 0, 0.14);
	}
}

.mb-metric {
	margin-top: 16px;
	padding-top: 13px;
	border-top: 1px solid rgba(0, 0, 0, 0.14);
	align-items: center;
}

.mb-metric p {
	margin: 0;
}

.mb-metric p:last-child {
	flex: 1 1 150px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.28;
}

/* ------------------------------------------------------------------
   Block style: Framed panel + White panel (group)
------------------------------------------------------------------- */
.is-style-mb-frame {
	padding: 14px;
	border-radius: 18px;
	background: linear-gradient(180deg, #FFFFFF 0%, #E5E4E2 100%);
	box-shadow: 0 20px 52px rgba(31, 58, 74, 0.11);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.is-style-mb-frame:hover {
	transform: translateY(-6px);
	box-shadow: 0 28px 68px rgba(16, 25, 56, 0.2);
}

.is-style-mb-frame .wp-block-image {
	margin: 0;
}

.is-style-mb-frame img {
	display: block;
	border-radius: 12px;
}

.is-style-mb-panel {
	padding: 28px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background-color: var(--wp--preset--color--white);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

/* ------------------------------------------------------------------
   Block style: Divided columns
------------------------------------------------------------------- */
.is-style-mb-divided {
	gap: 0;
}

.is-style-mb-divided > .wp-block-column {
	padding: 0 18px;
}

.is-style-mb-divided > .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(31, 58, 74, 0.14);
}

.is-style-mb-divided h3 {
	margin: 0 0 9px;
}

.is-style-mb-divided p {
	margin: 0;
	font-weight: 600;
	line-height: 1.35;
}

.is-style-mb-divided .wp-block-image {
	margin: 0 auto 14px;
}

@media (max-width: 781px) {
	.is-style-mb-divided > .wp-block-column {
		padding: 18px;
	}

	.is-style-mb-divided > .wp-block-column + .wp-block-column {
		border-left: 0;
		border-top: 1px solid rgba(16, 25, 56, 0.12);
	}
}

/* ------------------------------------------------------------------
   Block style: Check marks (list)
------------------------------------------------------------------- */
.is-style-mb-checks {
	padding-left: 0;
	list-style: none;
}

.is-style-mb-checks li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 10px;
}

.is-style-mb-checks li::before {
	content: "✓";
	position: absolute;
	top: 1px;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--neon);
	font-size: 13px;
	font-weight: 900;
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.mb-hero-intro {
	max-width: 760px;
}

.mb-hero-video {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 2px;
	background-color: var(--wp--preset--color--stone);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.mb-hero-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.mb-sound-btn {
	position: absolute;
	left: 50%;
	bottom: 58px;
	z-index: 2;
	transform: translateX(-50%);
	padding: 14px 22px;
	border: 2px solid var(--wp--preset--color--black);
	border-radius: 999px;
	background: var(--wp--preset--color--neon);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
	color: var(--wp--preset--color--black);
	font: 900 15px/1 Arial, Helvetica, sans-serif;
	cursor: pointer;
	transition: transform 0.18s ease;
}

.mb-sound-btn:hover {
	transform: translateX(-50%) translateY(-2px);
}

.mb-hero-video.is-sound-on .mb-sound-btn {
	display: none;
}

@media (max-width: 620px) {
	.mb-sound-btn {
		bottom: 52px;
		padding: 12px 18px;
		font-size: 14px;
	}
}

.mb-reach-form {
	min-height: 280px;
	scroll-margin-top: 90px;
}

.mb-consent-box {
	margin: 14px 0 10px;
	padding: 12px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.75);
}

.mb-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #444;
	font-size: 11.5px;
	line-height: 1.45;
	cursor: pointer;
}

.mb-consent-label input {
	flex: 0 0 auto;
	margin-top: 2px;
}

.mb-consent-box a {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

/* ------------------------------------------------------------------
   Videos
------------------------------------------------------------------- */
.is-style-mb-video-card {
	margin: 0;
	padding: 8px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.is-style-mb-video-card .wp-block-embed__wrapper {
	overflow: hidden;
	border-radius: 12px;
	background: var(--wp--preset--color--black);
}

@media (max-width: 781px) {
	.mb-video-grid > .wp-block-column {
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ------------------------------------------------------------------
   FAQ (details block)
------------------------------------------------------------------- */
.wp-block-details {
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.wp-block-details + .wp-block-details {
	margin-top: 12px;
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 22px;
	color: var(--wp--preset--color--ink);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.012em;
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "+";
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--wp--preset--color--neon);
	color: var(--wp--preset--color--black);
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

.wp-block-details[open] summary::after {
	content: "−";
}

.wp-block-details[open] > summary {
	border-bottom: 1px solid rgba(16, 25, 56, 0.08);
}

.wp-block-details > :not(summary) {
	margin-top: 14px;
	margin-bottom: 0;
	padding-left: 22px;
	padding-right: 22px;
	color: var(--wp--preset--color--muted);
	font-size: 15px;
	line-height: 1.5;
}

.wp-block-details > ul:not(summary),
.wp-block-details > ol:not(summary) {
	padding-left: 44px;
}

.wp-block-details > :last-child {
	padding-bottom: 20px;
}

.wp-block-details strong {
	color: var(--wp--preset--color--ink);
}

@media (max-width: 620px) {
	.wp-block-details summary {
		padding: 16px 18px;
		font-size: 16px;
	}
}

/* ------------------------------------------------------------------
   Dark sections
------------------------------------------------------------------- */
.mb-dark-title {
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.has-night-gradient-background .is-style-mb-card,
.has-midnight-gradient-background .is-style-mb-card {
	color: var(--wp--preset--color--ink);
}

.is-style-outline > .wp-block-button__link {
	border-color: currentColor;
}

.has-black-background-color .is-style-outline > .wp-block-button__link:not(.has-text-color),
.has-midnight-gradient-background .is-style-outline > .wp-block-button__link:not(.has-text-color),
.has-night-gradient-background .is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--white);
}

/* ------------------------------------------------------------------
   Step numbers (About page)
------------------------------------------------------------------- */
.mb-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 0 14px;
	border: 2px solid var(--wp--preset--color--black);
	border-radius: 50%;
	background: var(--wp--preset--color--neon);
	color: var(--wp--preset--color--black);
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

/* ------------------------------------------------------------------
   Blog
------------------------------------------------------------------- */
.mb-post-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: var(--wp--preset--color--white);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mb-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mb-post-card .wp-block-post-featured-image {
	margin: 0;
}

.mb-post-card .wp-block-post-featured-image img {
	display: block;
}

.mb-post-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

.wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 6px;
	color: var(--wp--preset--color--ink);
	font-weight: 800;
}

.wp-block-post-terms a {
	text-decoration: none;
}

.mb-prose a {
	text-decoration-thickness: 2px;
	text-decoration-color: var(--wp--preset--color--neon);
	text-underline-offset: 3px;
}

.mb-prose h2 {
	margin-top: 1.6em;
	font-size: clamp(24px, 2.6vw, 32px);
}

.mb-prose h3 {
	margin-top: 1.4em;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
	padding: 6px 12px;
	border-radius: 5px;
	text-decoration: none;
}

.wp-block-query-pagination .current {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--neon);
}

/* ------------------------------------------------------------------
   Legal pages
------------------------------------------------------------------- */
.mb-legal h2 {
	margin-top: 1.8em;
	font-size: clamp(22px, 2.2vw, 28px);
}

.mb-legal h3 {
	margin-top: 1.4em;
	font-size: 18px;
}

.mb-legal p,
.mb-legal li {
	color: #333;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.mb-site-footer a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.mb-site-footer a:hover,
.mb-site-footer a:focus {
	color: var(--wp--preset--color--neon);
	text-decoration: underline;
}

.mb-site-footer .mb-neon-links a {
	color: var(--wp--preset--color--neon);
}

.mb-site-footer .wp-block-separator {
	border-color: rgba(255, 255, 255, 0.14);
	opacity: 1;
}

.mb-site-footer .wp-block-navigation {
	--navigation-layout-gap: 10px;
	font-weight: 600;
}

.mb-legal-note {
	opacity: 0.78;
}

/* ------------------------------------------------------------------
   Refinements
------------------------------------------------------------------- */
.mb-site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.has-black-background-color .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.has-midnight-gradient-background .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.has-night-gradient-background .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
}

.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--neon);
	border-color: var(--wp--preset--color--neon);
	color: var(--wp--preset--color--black);
}

.mb-site-header .mb-header-call .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--black);
}
