/* ============================================================
 * MrEddieFlores child theme - custom.css (v3.0.0)
 *
 * Thin overrides on top of rfm-theme-creative parent.
 *
 * The parent ships the full design system (section padding, dark
 * variants, FAQ polish, scroll-to-top, YouTube facade, equal-height
 * cards, Oswald + Inter Tight typography). Children override single
 * CSS variables in :root or scope per-pattern tweaks here.
 *
 * Each rule below is annotated with WHY it stays in the child.
 * If you can delete it, delete it. Most rules from v2.1.x are now
 * gone because the parent handles them.
 * ============================================================ */


/* ============================================================
 * 1. Brand token overrides
 *
 * Children override these CSS variables instead of duplicating
 * selectors. The parent reads --rfm-eyebrow-color, --rfm-section-bg-*,
 * etc. from :root and applies them across every section.
 * ============================================================ */
:root {
	/* MEF brand red replaces the parent's default green eyebrow color */
	--rfm-eyebrow-color: #D7263D;

	/* MEF runs a slightly darker dark section than the parent default */
	--rfm-section-bg-dark: #0A0A0A;
	--rfm-section-fg-dark: rgba(255, 255, 255, 0.92);

	/* MEF is brutal-modern; sharper hover lift than parent default */
	--rfm-hover-lift: -2px;
}


/* ============================================================
 * 2. MEF site header (overrides parent's RFM .rfm-site-header)
 *
 * Why kept: the MEF header uses .mef-* classes (different markup
 * from parent .rfm-* header). The parent header.html is overridden
 * by the child's parts/header.html, so we ship matching .mef-* CSS.
 * ============================================================ */
.mef-site-header {
	background: var(--wp--preset--color--bg, #FAFAF7);
	border-bottom: 1px solid var(--wp--preset--color--line, #E5E5E5);
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .mef-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mef-site-header { top: 46px; } }

.mef-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 2rem);
}

.mef-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.1rem 0;
	gap: 1.5rem;
	flex-wrap: wrap;
}
@media (min-width: 1024px) { .mef-nav { flex-wrap: nowrap; } }

.mef-brand {
	font-family: 'Oswald', 'Roboto Condensed', sans-serif;
	font-weight: 700;
	color: #0A0A0A;
	text-decoration: none;
	letter-spacing: -0.01em;
}

.mef-brand-fallback {
	font-family: 'Oswald', 'Roboto Condensed', sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0A0A0A;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.mef-brand-fallback .mef-brand-mark { color: #D7263D; font-size: 0.85em; }

/* MEF mobile hamburger (checkbox-hack, no JS) */
.mef-nav-toggle-input { display: none; }
.mef-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 44px;
	height: 44px;
	padding: 11px 9px;
	cursor: pointer;
}
.mef-nav-toggle-bar {
	width: 100%;
	height: 2px;
	background: #0A0A0A;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 1023px) {
	.mef-nav-toggle { display: inline-flex; }
	.mef-nav-menu { display: none; width: 100%; flex-direction: column; gap: 0.75rem; padding-top: 1rem; }
	.mef-nav-toggle-input:checked ~ .mef-nav-menu { display: flex; }
	.mef-nav-links { flex-direction: column; gap: 0.5rem; }
}

.mef-nav-menu {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.mef-nav-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mef-nav-links a {
	color: #0A0A0A;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}
.mef-nav-links a:hover { color: #D7263D; }

.mef-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.25rem;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border-radius: 2px;
	border: 2px solid transparent;
}
.mef-btn-phone { color: #0A0A0A; border-color: transparent; }
.mef-btn-primary {
	background: #D7263D;
	color: #FFFFFF;
	border-color: #D7263D;
}
.mef-btn-primary:hover { background: #A81C2E; border-color: #A81C2E; }


/* ============================================================
 * 3. MEF site footer (overrides parent's RFM .rfm-site-footer)
 *
 * Why kept: matches the .mef-* footer markup shipped in
 * parts/footer.html.
 * ============================================================ */
.mef-site-footer {
	background: #0A0A0A;
	color: rgba(255, 255, 255, 0.85);
	padding: 3rem 0 2rem;
}
.mef-site-footer .mef-brand { color: #FFFFFF; }
.mef-site-footer a { color: #FFFFFF; }
.mef-foot-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}
@media (max-width: 768px) { .mef-foot-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.mef-foot-heading {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 0 0 0.5rem;
}
.mef-foot-nav { list-style: none; padding: 0; margin: 0; }
.mef-foot-nav li { padding: 0.25rem 0; }

.mef-foot-kicker {
	font-family: 'Oswald', sans-serif;
	font-weight: 700;
	font-size: clamp(18px, 2vw, 22px);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #FFFFFF;
	text-align: center;
	margin: 2rem 0 0.5rem;
}
.mef-foot-copy {
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}


/* ============================================================
 * 4. MEF-specific pattern tweaks
 *
 * Why kept: tunes the 5 MEF patterns (mef/hero-video,
 * mef/industry-grid, mef/mara-story, mef/process-strip,
 * mef/pricing-faq) where the visual differs from the parent
 * default. The base layout / equal-height / hover lift are
 * already shipped by the parent; these add MEF specifics.
 * ============================================================ */

/* mef-hero-video: MEF runs the YouTube facade with a 16:9 aspect
   inside a maxed 1100px rail, never edge-to-edge. */
.mef-hero-video {
	max-width: 1100px;
	margin: 2rem auto;
	padding: 0 clamp(1rem, 3vw, 2rem);
}

/* mef-industry-grid: 5-card industries showcase needs auto-fit
   minimum 200px (parent's default 220px is slightly wider). */
@media (min-width: 1024px) {
	.mef-industry-grid__cards {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* mef-pricing-faq: tighten the Q&A rail since pricing copy is short */
.mef-pricing-faq__inner { max-width: 880px; }


/* ============================================================
 * 5. Buttons - MEF brand-red override
 *
 * Why kept: parent ships green default. MEF runs red. The token
 * --rfm-eyebrow-color above re-skins eyebrows; buttons read the
 * theme.json palette which we override below.
 * ============================================================ */
.wp-block-button__link {
	background-color: var(--wp--preset--color--green, #D7263D) !important;
	border-color: var(--wp--preset--color--green, #D7263D);
	color: #FFFFFF !important;
}
.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--green-dark, #A81C2E) !important;
	border-color: var(--wp--preset--color--green-dark, #A81C2E);
}

/* ============================================================
 * v3.0.1 — Logo image, mobile menu fix, centering, dark spacing, blog
 * ============================================================ */

/* === 1. Logo image styling ============================== */
.mef-brand--logo {
	display: inline-flex;
	align-items: center;
	height: 56px;
	max-height: 56px;
	text-decoration: none;
}
.mef-brand-logo-img {
	height: 56px;
	width: auto;
	max-width: 240px;
	display: block;
	object-fit: contain;
	object-position: left center;
}
@media (max-width: 600px) {
	.mef-brand--logo { height: 44px; }
	.mef-brand-logo-img { height: 44px; max-width: 180px; }
}
/* Hide the text fallback if it still exists in any version of header */
.mef-brand-fallback { display: none !important; }

/* === 2. MOBILE MENU FIX (CRITICAL) ====================== */
.mef-nav-toggle-input {
	display: none;
}
.mef-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 22px;
	cursor: pointer;
	z-index: 1001;
	position: relative;
}
.mef-nav-toggle-bar {
	width: 100%;
	height: 2px;
	background: #0A0A0A;
	border-radius: 2px;
	transition: transform 0.18s ease, opacity 0.18s ease;
	display: block;
}

@media (max-width: 900px) {
	.mef-nav {
		flex-wrap: wrap;
		position: relative;
	}
	/* Show the hamburger toggle on mobile */
	.mef-nav-toggle {
		display: flex !important;
	}
	/* Hide the nav menu by default on mobile */
	.mef-nav-menu {
		display: none !important;
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #FAFAF7;
		padding: 1.5rem;
		gap: 1rem;
		box-shadow: 0 8px 24px rgba(0,0,0,0.08);
		border-top: 1px solid #E5E5E5;
		z-index: 1000;
	}
	/* Show menu when checkbox is checked */
	.mef-nav-toggle-input:checked ~ .mef-nav-menu {
		display: flex !important;
	}
	.mef-nav-links {
		flex-direction: column;
		align-items: stretch;
		gap: 0.25rem;
		width: 100%;
		list-style: none;
		padding: 0;
		margin: 0;
	}
	.mef-nav-links li {
		width: 100%;
	}
	.mef-nav-links a {
		display: block;
		padding: 0.85rem 0;
		font-size: 17px;
		font-weight: 600;
		border-bottom: 1px solid #E5E5E5;
		text-decoration: none;
		color: #0A0A0A;
	}
	.mef-nav-links li:last-child a {
		border-bottom: 0;
	}
	.mef-nav-menu .mef-btn {
		width: 100%;
		justify-content: center;
		text-align: center;
		margin-top: 0.5rem;
		padding: 0.85rem 1rem;
	}

	/* Animate hamburger to X when checked */
	.mef-nav-toggle-input:checked + .mef-nav-toggle .mef-nav-toggle-bar:nth-child(1) {
		transform: translateY(10px) rotate(45deg);
	}
	.mef-nav-toggle-input:checked + .mef-nav-toggle .mef-nav-toggle-bar:nth-child(2) {
		opacity: 0;
	}
	.mef-nav-toggle-input:checked + .mef-nav-toggle .mef-nav-toggle-bar:nth-child(3) {
		transform: translateY(-10px) rotate(-45deg);
	}
}

/* === 3. CENTER EVERYTHING IN HERO ======================= */
.mef-hero-copy {
	text-align: center;
}
.mef-hero-copy > .rfm-eyebrow,
.mef-hero-copy > h1,
.mef-hero-copy > p,
.mef-hero-copy > .wp-block-buttons {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.mef-hero-copy h1 {
	font-family: 'Oswald', 'Roboto Condensed', sans-serif;
	font-size: clamp(40px, 7vw, 88px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	font-weight: 700;
	text-transform: uppercase;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}
.mef-hero-copy > p {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	font-size: clamp(17px, 1.5vw, 20px);
	line-height: 1.55;
}
.mef-hero-copy .wp-block-buttons {
	justify-content: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
@media (max-width: 600px) {
	.mef-hero-copy .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
	}
	.mef-hero-copy .wp-block-button {
		width: 100%;
	}
}

/* Tighter hero spacing */
.mef-hero-copy {
	padding-top: clamp(2.5rem, 5vw, 4rem);
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* === 4. DARK SECTION SPACING (H2 to paragraph) ========= */
.has-ink-background-color h2,
.has-ink-background-color .wp-block-heading {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}
.has-ink-background-color p {
	margin-bottom: 1.25rem;
	line-height: 1.7;
}
.has-ink-background-color p + p {
	margin-top: 1.25rem;
}

/* === 5. CENTER CONTACT FORM + FAQ HEADING ============== */
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.wp-site-blocks > .wp-block-heading,
.wp-site-blocks > h1,
.wp-site-blocks > h2,
.wp-site-blocks > h3 {
	text-align: center !important;
	max-width: 1160px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: clamp(1rem, 5vw, 5rem);
	padding-right: clamp(1rem, 5vw, 5rem);
	width: 100%;
	box-sizing: border-box;
}

/* Form centering */
.wpforms-container,
.wp-block-shortcode {
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
}
form {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* === 6. BLOG PAGE STYLING (centering + dark sections) === */
body.blog .wp-block-query,
body.archive .wp-block-query,
body.page-id-blog .wp-block-query {
	max-width: 1160px;
	margin: 0 auto;
}
body.blog .wp-block-post-template,
body.archive .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	list-style: none;
	padding: 0;
}
@media (max-width: 900px) {
	body.blog .wp-block-post-template,
	body.archive .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}
body.blog .wp-block-post-template li,
body.archive .wp-block-post-template li {
	background: #FFFFFF;
	border: 1px solid #E5E5E5;
	border-radius: 4px;
	padding: 1.5rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body.blog .wp-block-post-template li:hover,
body.archive .wp-block-post-template li:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}
body.blog .wp-block-post-template h3,
body.archive .wp-block-post-template h3,
body.blog .wp-block-post-title,
body.archive .wp-block-post-title {
	font-family: 'Oswald', 'Roboto Condensed', sans-serif;
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -0.005em;
	margin-bottom: 0.75rem;
	font-weight: 700;
}
body.blog .wp-block-post-excerpt,
body.archive .wp-block-post-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #5A5A5A;
}
body.blog .wp-block-post-date,
body.archive .wp-block-post-date {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8A8A8A;
	margin-top: 1rem;
}

/* === 7. CTA BUTTON CONSISTENCY ========================= */
/* All CTA buttons say "Let's talk." - already updated in paste files. */
/* Force button styling consistency */
.wp-block-button__link {
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-weight: 700;
	letter-spacing: 0.02em;
	font-size: 16px;
	padding: 1rem 2rem;
	border-radius: 2px;
	display: inline-block;
}

/* === 8. SUBHEAD CENTERED IN ALL CONTEXTS =============== */
.mef-hero-copy + p,
.mef-hero-copy ~ p {
	text-align: center;
}


/* ============================================================
 * v3.0.2 — Dark contact form + Turnstile-ready styling
 *
 * The rfm-forms plugin v1.6.3 ships forms via the [rfm_form] shortcode.
 * Default markup is .rfm-form (form element), .rfm-form__field (each
 * field wrapper), .rfm-form__label, .rfm-form__input, etc.
 *
 * Cloudflare Turnstile is already integrated. Eddie sets the site key +
 * secret in WP Admin → Settings → RFM Forms (or per-form notify_email).
 * When keys are configured, Turnstile widget auto-injects.
 * ============================================================ */

/* === DARK FORM STYLING ================================== */
/* When the form lives inside a dark section (has-ink-background-color),
   flip all inputs/labels/borders to white-on-dark treatment. */

.has-ink-background-color .rfm-form,
.has-ink-background-color form,
.has-ink-background-color .wpforms-form {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.has-ink-background-color .rfm-form__label,
.has-ink-background-color form label,
.has-ink-background-color .wpforms-field-label {
	color: rgba(255,255,255,0.85) !important;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	display: block;
}

.has-ink-background-color .rfm-form__input,
.has-ink-background-color .rfm-form input[type="text"],
.has-ink-background-color .rfm-form input[type="email"],
.has-ink-background-color .rfm-form input[type="tel"],
.has-ink-background-color .rfm-form input[type="url"],
.has-ink-background-color .rfm-form textarea,
.has-ink-background-color form input[type="text"],
.has-ink-background-color form input[type="email"],
.has-ink-background-color form input[type="tel"],
.has-ink-background-color form input[type="url"],
.has-ink-background-color form textarea {
	width: 100%;
	background: rgba(255,255,255,0.06) !important;
	border: 1px solid rgba(255,255,255,0.18) !important;
	color: #FAFAF7 !important;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 16px;
	padding: 0.95rem 1rem;
	border-radius: 2px;
	transition: border-color 0.18s ease, background 0.18s ease;
	box-sizing: border-box;
}

.has-ink-background-color .rfm-form__input:focus,
.has-ink-background-color form input:focus,
.has-ink-background-color form textarea:focus {
	outline: none;
	border-color: #D7263D !important;
	background: rgba(255,255,255,0.08) !important;
}

.has-ink-background-color .rfm-form__input::placeholder,
.has-ink-background-color form input::placeholder,
.has-ink-background-color form textarea::placeholder {
	color: rgba(255,255,255,0.4);
}

.has-ink-background-color .rfm-form textarea,
.has-ink-background-color form textarea {
	min-height: 140px;
	resize: vertical;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	line-height: 1.5;
}

/* Submit button on dark */
.has-ink-background-color .rfm-form__submit,
.has-ink-background-color .rfm-form button[type="submit"],
.has-ink-background-color form button[type="submit"],
.has-ink-background-color form input[type="submit"],
.has-ink-background-color .wpforms-submit {
	background: #D7263D !important;
	color: #FAFAF7 !important;
	border: 0 !important;
	padding: 1.05rem 2rem !important;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 2px;
	cursor: pointer;
	width: 100%;
	transition: background 0.18s ease, transform 0.18s ease;
	margin-top: 0.5rem;
}

.has-ink-background-color .rfm-form__submit:hover,
.has-ink-background-color form button[type="submit"]:hover,
.has-ink-background-color form input[type="submit"]:hover {
	background: #A81C2E !important;
	transform: translateY(-1px);
}

/* Cloudflare Turnstile widget on dark */
.has-ink-background-color .cf-turnstile,
.has-ink-background-color [data-sitekey] {
	margin: 0 auto;
}

/* === LIGHT FORM STYLING (for non-dark sections) ========= */
.rfm-form,
form:not(.search-form):not(.comment-form) {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

.rfm-form__label,
form label:not(.wpforms-field-checkbox label):not(.wpforms-field-radio label) {
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1F1F1F;
	margin-bottom: 0.5rem;
	display: block;
}

.rfm-form__input,
.rfm-form input[type="text"],
.rfm-form input[type="email"],
.rfm-form input[type="tel"],
.rfm-form input[type="url"],
.rfm-form textarea {
	width: 100%;
	background: #FFFFFF;
	border: 1px solid #CCCCCC;
	color: #0A0A0A;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 16px;
	padding: 0.95rem 1rem;
	border-radius: 2px;
	transition: border-color 0.18s ease;
	box-sizing: border-box;
}

.rfm-form__input:focus,
.rfm-form textarea:focus {
	outline: none;
	border-color: #D7263D;
}

.rfm-form__submit,
.rfm-form button[type="submit"] {
	background: #D7263D;
	color: #FAFAF7;
	border: 0;
	padding: 1.05rem 2rem;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	border-radius: 2px;
	cursor: pointer;
	width: 100%;
	transition: background 0.18s ease;
}

.rfm-form__submit:hover {
	background: #A81C2E;
}


/* ============================================================
 * v3.0.3 — Universal spacing + equal cards + mobile hamburger
 * ============================================================ */

/* === 1. UNIVERSAL H2 → P SPACING (light AND dark sections) === */
/* The previous fix only added spacing on dark sections. Now it works
   site-wide on every page. */
.wp-block-heading + p,
h2 + p,
.wp-block-heading + .wp-block-paragraph,
h2 + .wp-block-paragraph {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* General H2 bottom margin — applies to all sections including light */
h2,
.wp-block-heading[class*="heading"] {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Body paragraph rhythm site-wide */
p:not(.rfm-eyebrow):not(.has-text-color):not(.mef-foot-copy):not(.mef-foot-kicker) {
	line-height: 1.7;
	margin-bottom: 1.25rem;
}
p + p:not(.rfm-eyebrow) {
	margin-top: 0;  /* Sequential paragraphs only need bottom margin */
}

/* === 2. ABOUT PAGE HERO SUBHEAD CENTERING ============== */
/* The about page hero has a different paragraph structure than the
   homepage. Force ALL paragraphs in mef-hero-copy to center alignment
   and respect the 720px max-width regardless of nesting depth. */
.mef-hero-copy p,
.mef-hero-copy .wp-block-paragraph {
	text-align: center !important;
	max-width: 720px;
	margin-left: auto !important;
	margin-right: auto !important;
}
.mef-hero-copy h1,
.mef-hero-copy .wp-block-heading {
	text-align: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
.mef-hero-copy .rfm-eyebrow {
	text-align: center !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* === 3. EQUAL-HEIGHT CARDS — applies to ALL grid types === */
.mef-industry-grid__cards,
.rfm-testimonial-strip__cards,
.rfm-industry-showcase__cards,
.mef-process-strip__steps,
.wp-block-columns.rfm-testimonial-strip__cards {
	grid-auto-rows: 1fr;
	align-items: stretch;
}

.mef-industry-card,
.rfm-testimonial-card,
.rfm-industry-showcase__card,
.mef-process-step,
.rfm-testimonial-strip__cards .wp-block-column {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	min-height: 280px;
}

/* Card content distribution — image at top, text fills remaining */
.mef-industry-card .rfm-img-placeholder,
.mef-industry-card img,
.rfm-testimonial-card .rfm-video-facade,
.rfm-testimonial-card .rfm-video-embed,
.rfm-testimonial-card iframe,
.rfm-testimonial-card img {
	flex: 0 0 auto;
}

.mef-industry-card p,
.rfm-testimonial-card p {
	flex: 0 0 auto;
}

.mef-industry-card p:last-child,
.rfm-testimonial-card p:last-child {
	flex: 1 0 auto;  /* last quote pushes to fill */
	margin-bottom: 0;
}

/* Testimonial card padding equalization */
.rfm-testimonial-card,
.rfm-testimonial-strip__cards > * {
	padding-bottom: 1.5rem;
}

/* === 4. MOBILE HAMBURGER VISIBILITY ===================== */
/* Eddie reported the hamburger "disappears" / looks white on mobile.
   Root cause: the bars inherit color from parent text. Force ink color
   explicitly with !important and add visibility safeguards. */
.mef-nav-toggle-bar {
	background-color: #0A0A0A !important;
	background: #0A0A0A !important;
	display: block !important;
	width: 100%;
	height: 3px !important;
	border-radius: 2px;
	transition: transform 0.18s ease, opacity 0.18s ease;
}
.mef-nav-toggle {
	background: transparent;
	border: 0;
	padding: 0;
}
@media (max-width: 900px) {
	.mef-nav-toggle {
		display: flex !important;
		flex-direction: column !important;
		justify-content: space-between !important;
		width: 32px !important;
		height: 24px !important;
		cursor: pointer;
		z-index: 1001;
		position: relative;
	}
}

/* Make sure the toggle is positioned correctly within nav on mobile */
@media (max-width: 900px) {
	.mef-nav {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
		position: relative;
	}
	.mef-brand--logo {
		flex: 0 1 auto;
	}
	.mef-nav-toggle {
		flex: 0 0 auto;
		order: 99;
		margin-left: auto;
	}
	.mef-nav-menu {
		order: 100;
		flex-basis: 100%;
		display: none !important;
	}
	.mef-nav-toggle-input:checked ~ .mef-nav-menu,
	.mef-nav-toggle-input:checked + .mef-nav-toggle ~ .mef-nav-menu {
		display: flex !important;
	}
}

/* === 5. SECTION ALIGNMENT FINAL POLISH ================= */
/* Make sure all section content centers under the centered H2 */
.wp-block-group.alignwide,
.mef-process-strip,
.mef-industry-grid,
.rfm-featured-reel,
.rfm-testimonial-strip,
.rfm-faq-accordion {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* === 6. FEATURED REEL CARD EQUAL HEIGHT ================ */
.rfm-featured-reel__meta {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	align-items: stretch;
}
@media (max-width: 700px) {
	.rfm-featured-reel__meta {
		grid-template-columns: 1fr;
	}
}


/* ============================================================
 * v3.0.4 — Center everything + flush nav/hero
 * ============================================================ */

/* === 1. CENTER ALL TEXT SITE-WIDE (Eddie's request) ===== */
/* Default text-align: center for all body content. Eddie can manually
   left-align specific blocks via Gutenberg toolbar where needed. */
.wp-site-blocks p,
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks h5,
.wp-site-blocks h6,
.wp-site-blocks .wp-block-paragraph,
.wp-site-blocks .wp-block-heading,
.wp-site-blocks li,
.wp-site-blocks blockquote,
.wp-site-blocks figcaption {
	text-align: center;
}

/* Card content centered */
.mef-industry-card,
.mef-industry-card *,
.rfm-testimonial-card,
.rfm-testimonial-card *,
.mef-process-step,
.mef-process-step *,
.rfm-industry-showcase__card,
.rfm-industry-showcase__card * {
	text-align: center;
}

/* Buttons groups centered */
.wp-block-buttons {
	display: flex !important;
	justify-content: center !important;
	flex-wrap: wrap;
	width: 100%;
}

/* FAQ remains flex (question/chevron split layout) */
.rfm-faq-item summary,
details.wp-block-details > summary,
.wp-block-details > summary {
	text-align: left;  /* Question text reads left, chevron stays right */
}
.rfm-faq-answer,
.rfm-faq-answer p,
details > *:not(summary),
details > *:not(summary) p {
	text-align: left;  /* Answer reads naturally left */
}

/* Form fields keep their natural alignment */
form input, form textarea, form label {
	text-align: left;
}
form {
	text-align: center;  /* Submit button centers */
}

/* Footer keeps its current grid alignment */
.mef-site-footer .mef-foot-grid,
.mef-site-footer .mef-foot-col,
.mef-site-footer .mef-foot-brand {
	text-align: left;  /* Footer columns stay left for legibility */
}
.mef-site-footer .mef-foot-kicker,
.mef-site-footer .mef-foot-copy {
	text-align: center;  /* Footer kicker + copyright centered */
}

/* Mara story keeps asymmetric layout — both sides align to their column */
.mef-mara-story__copy * {
	text-align: left;
}

/* === 2. NAV-TO-HERO GAP FIX ============================ */
/* The white gap between header and dark hero is from default page block
   margin/padding. Force the first alignfull section to butt up against
   the header. */
.wp-site-blocks > .wp-block-group.alignfull:first-of-type,
.wp-site-blocks > .wp-block-group.alignfull:first-child,
.wp-site-blocks > .mef-hero-copy:first-of-type {
	margin-top: 0 !important;
}

/* Remove any default top spacing on .wp-site-blocks first child */
.wp-site-blocks > *:first-child {
	margin-top: 0 !important;
}

/* Sometimes the first section is wrapped in a Group — handle that too */
.wp-site-blocks {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* The header's bottom border or any spacing — remove */
.mef-site-header {
	border-bottom: 0 !important;
	margin-bottom: 0 !important;
}

/* Page wrapper top spacing */
body.page .entry-content,
body.page main,
.wp-site-blocks > main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}


/* ============================================================
 * v3.0.5 — VISUAL UPGRADES (the 10-list)
 * ============================================================ */

/* === #2 HOVER MICRO-INTERACTIONS ON CARDS =============== */
.mef-industry-card,
.rfm-testimonial-card,
.mef-process-step,
.rfm-industry-showcase__card,
.wp-block-post-template li,
.rfm-featured-reel__meta {
	transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
	            box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: transform;
}
.mef-industry-card:hover,
.rfm-testimonial-card:hover,
.mef-process-step:hover,
.rfm-industry-showcase__card:hover,
.wp-block-post-template li:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

/* === #3 SECTION REVEAL ON SCROLL ======================= */
.mef-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
	            transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mef-reveal.mef-revealed {
	opacity: 1;
	transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
	.mef-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* === #5 STICKY SCROLL PROGRESS BAR ===================== */
.mef-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #D7263D 0%, #A81C2E 100%);
	transform: scaleX(0);
	transform-origin: left center;
	z-index: 1002;
	pointer-events: none;
	will-change: transform;
}

/* === #6 EDITORIAL PULL QUOTES =========================== */
.wp-block-pullquote,
blockquote.is-style-pull-quote,
.mef-pull-quote,
blockquote {
	border-left: 4px solid #D7263D;
	padding: 1.25rem 0 1.25rem 2rem;
	margin: 2.5rem auto;
	font-family: 'Oswald', 'Roboto Condensed', sans-serif;
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: 400;
	line-height: 1.4;
	color: #0A0A0A;
	letter-spacing: -0.01em;
	max-width: 720px;
	text-align: left;
	background: transparent;
}
blockquote p {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	margin: 0;
}
blockquote cite {
	display: block;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #5A5A5A;
	margin-top: 1rem;
	font-style: normal;
}

/* === #8 NUMBER COUNTER STYLING ========================= */
.mef-counter {
	font-family: 'Oswald', 'Roboto Condensed', sans-serif;
	font-weight: 700;
	font-size: clamp(48px, 8vw, 88px);
	line-height: 1;
	color: #D7263D;
	letter-spacing: -0.02em;
	display: inline-block;
}
.mef-counter + .mef-counter-label {
	display: block;
	font-family: 'Inter Tight', 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #5A5A5A;
	margin-top: 0.5rem;
}

/* === #9 CURSOR ACCENT DOT (desktop only) =============== */
.mef-cursor-dot {
	position: fixed;
	top: -8px;
	left: -8px;
	width: 16px;
	height: 16px;
	background: rgba(215, 38, 61, 0.55);
	border-radius: 50%;
	pointer-events: none;
	z-index: 999;
	mix-blend-mode: difference;
	opacity: 0;
	transition: opacity 0.3s ease;
	will-change: transform;
}
.mef-cursor-dot.is-active {
	opacity: 1;
}
@media (hover: none), (max-width: 899px) {
	.mef-cursor-dot { display: none !important; }
}

/* === MOBILE TESTIMONIAL CARD FIX ======================= */
@media (max-width: 600px) {
	.rfm-testimonial-card,
	.rfm-testimonial-strip__cards .wp-block-column,
	.rfm-testimonial-strip__cards > * {
		padding: 1rem !important;
		min-height: auto !important;
	}
	.rfm-testimonial-card p,
	.rfm-testimonial-strip__cards p {
		font-size: 14px !important;
		line-height: 1.55 !important;
		max-width: 100% !important;
	}
	.rfm-testimonial-card__industry,
	.rfm-testimonial-strip__cards p.rfm-eyebrow,
	.rfm-testimonial-strip__cards [class*="industry"] {
		font-size: 10px !important;
		letter-spacing: 0.16em !important;
		margin-bottom: 0.4rem !important;
	}
	.rfm-testimonial-card__client,
	.rfm-testimonial-strip__cards [class*="client"] {
		font-size: 14px !important;
		font-weight: 700 !important;
		margin-bottom: 0.5rem !important;
	}
	/* Constrain video facade aspect on mobile testimonial cards */
	.rfm-testimonial-card .rfm-video-facade,
	.rfm-testimonial-card .rfm-video-embed,
	.rfm-testimonial-strip__cards .rfm-video-facade {
		aspect-ratio: 16/9;
		max-width: 100%;
	}
}


/* ============================================================
 * v3.0.6 — Homepage polish (Eddie review 2026-05-08)
 * 1. Featured-reel meta strip: kill dark caption + force left-align
 * 2. Testimonial cards: portrait images replace YT facades, 1:1 ratio
 * 3. Mara story: eyebrow + h2 lifted out of column, centered above
 * 4. Industry/testimonial cards: re-confirm equal-height
 * ============================================================ */

/* === 1. FEATURED-REEL META STRIP ====================== */
/* The .rfm-featured-reel__caption became a black bar on YouTube
   facade hover. Removed from markup; this hides any leftover
   from older imports. */
.rfm-featured-reel__caption {
    display: none !important;
}

/* Force meta-label + value paragraphs to align left within columns,
   overriding the global card-children center rule. */
.rfm-featured-reel__meta,
.rfm-featured-reel__meta *,
.rfm-featured-reel__meta .wp-block-column,
.rfm-featured-reel__meta .wp-block-column * {
    text-align: left !important;
}

/* === 2. TESTIMONIAL CARD IMAGES ====================== */
/* When testimonial cards use static portraits instead of YT facades,
   keep the 1:1 ratio + uniform sizing across the row. */
.rfm-testimonial-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 0.5rem;
    background: #EEE;
}

/* === 3. MARA STORY HEADING CENTERED ================== */
/* Eyebrow + H2 lifted out of mef-mara-story__copy, now sit above the
   2-col inner block. Force them centered so they read as a true title. */
.mef-mara-story > .rfm-eyebrow,
.mef-mara-story > h2 {
    text-align: center !important;
}

/* === 4. RE-CONFIRM EQUAL HEIGHTS ===================== */
/* The existing v3.0.3 rule sets equal heights but flex children with
   <img> inside <figure> can collapse. Re-assert here with stronger
   specificity. */
.rfm-testimonial-strip__cards {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch !important;
    gap: 2rem !important;
}
.rfm-testimonial-strip__cards > .wp-block-column.rfm-testimonial-card {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-width: 280px;
}
@media (max-width: 781px) {
    .rfm-testimonial-strip__cards > .wp-block-column.rfm-testimonial-card {
        flex: 1 1 100% !important;
    }
}

/* Industry grid cards: same treatment so first card no longer pops up */
.mef-industry-grid__cards {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.mef-industry-grid__cards > .mef-industry-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
@media (max-width: 1100px) {
    .mef-industry-grid__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .mef-industry-grid__cards { grid-template-columns: 1fr; }
}
.mef-industry-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: #EEE;
}
