/*
Theme Name: MJ Modern
Theme URI: https://www.mjautoelectrics.com.au
Author: M&J Auto Electrics
Description: Modern block theme for M&J Auto Electrics — brand red #EF0909, Poppins, performance-first.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Version: 1.3.6
License: GNU General Public License v2 or later
Text Domain: mjmodern
Tags: block-theme, full-site-editing, business
*/

/* ============================================================
   Header
   ============================================================ */
.mj-topbar {
	background: var(--wp--preset--color--darker);
	color: #cfd4da;
	font-size: 0.8rem;
}
.mj-topbar a { color: #fff; text-decoration: none; }
.mj-topbar a:hover { color: var(--wp--preset--color--primary); }
.mj-topbar strong { color: #fff; font-weight: 600; }
.mj-topbar .mj-topbar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 2rem;
	justify-content: space-between;
	align-items: center;
	padding: 0.55rem 0;
}
.mj-topbar .mj-topbar-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.mj-topbar svg { flex: none; }

.mj-mainbar {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 1px 0 rgba(14, 15, 18, 0.02);
}
.mj-mainbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 0.9rem 0;
}
.mj-mainbar .wp-block-site-logo { flex: none; }
.mj-mainbar .wp-block-site-logo img { max-height: 64px; width: auto; }
.mj-mainbar .mj-nav-phone { display: flex; align-items: center; gap: 1rem; flex: none; }
.mj-nav-links { flex: 1 1 auto; }
.mj-nav-links .wp-block-navigation { justify-content: flex-end; }
.mj-nav-links .wp-block-navigation .wp-block-navigation-item__content { padding: 0.5rem 0.15rem; }
.mj-nav-links .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.mj-nav-links .wp-block-navigation .wp-block-navigation-link:hover > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}
/* dropdown submenus */
.mj-nav-links .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--card-hover);
	min-width: 230px;
	padding: 0.5rem;
}
.mj-nav-links .wp-block-navigation-submenu .wp-block-navigation-item__content { padding: 0.55rem 0.9rem; }

/* Mobile: navigation collapses via overlay; keep header row tidy */
@media (max-width: 1100px) {
	.mj-mainbar .mj-nav-phone { display: none; }
}
@media (max-width: 900px) {
	.mj-mainbar-inner { flex-wrap: wrap; }
	.mj-nav-links { order: 3; flex-basis: 100%; }
	.mj-nav-links .wp-block-navigation { justify-content: flex-start; flex-wrap: wrap; }
	.mj-nav-links .wp-block-navigation-submenu .wp-block-navigation__submenu-container {
		position: static;
		box-shadow: none;
		border: 0;
		padding-left: 1rem;
	}
	.mj-topbar .mj-topbar-item.mj-topbar-optional { display: none; }
}
/* <600px the nav is just the hamburger: keep it on the logo's row */
@media (max-width: 599px) {
	.mj-mainbar-inner { flex-wrap: nowrap; }
	.mj-nav-links { order: 0; flex-basis: auto; }
	.mj-mainbar .wp-block-site-logo { flex: 0 1 auto; min-width: 0; }
	.mj-mainbar .wp-block-site-logo img { max-height: 52px; }
}

/* ============================================================
   Hero
   ============================================================ */
.mj-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: min(88vh, 820px);
}
.mj-hero .mj-hero-media { position: absolute; inset: 0; z-index: -2; }
.mj-hero .mj-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.mj-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--gradient--brand-hero);
}
.mj-hero .mj-hero-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(4rem, 9vw, 7rem) 1.5rem;
	width: 100%;
}
.mj-hero .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: none;
}
/* cover hero: anchor the text block to the container's left edge */
.wp-block-cover .wp-block-cover__inner-container .wp-block-group {
	max-width: 780px;
	margin-left: 0;
	margin-right: auto;
}
.mj-hero h1, .mj-hero .wp-block-heading { color: #fff; }
.mj-hero p { color: #dfe3e8; }
.mj-hero .mj-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(239, 9, 9, 0.14);
	border: 1px solid rgba(239, 9, 9, 0.5);
	color: #ffd7d7;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	margin-bottom: 1.4rem;
}

/* page hero (inner pages) */
.mj-page-hero {
	background: var(--wp--preset--gradient--dark-band);
	padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
	margin-top: -1px;
}
/* Homepage content is all full-bleed sections, so WP's 24px gap between
   header / content / footer showed as white strips above the slider and footer. */
.page-template-page-notitle .wp-site-blocks > * { margin-block-start: 0; }
/* single.html's hero is itself the constrained container: restore the gutter
   the shorthand above zeroes (page.html pads via its inner .mj-container). */
.mj-page-hero.has-global-padding {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}
.mj-page-hero h1 { color: #fff; }
.mj-page-hero p { color: #b9bfc7; font-size: var(--wp--preset--font-size--large); margin-bottom: 0; }
/* v1.3 inner-page hero: see "v1.3 — inner-page system" at the end of this file */

/* ============================================================
   Cards
   ============================================================ */
.mj-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}
.mj-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--card-hover);
}
.mj-card .mj-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.mj-card .mj-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mj-card .mj-card-body { padding: 1.4rem 1.5rem 1.6rem; }
.mj-card .mj-card-body h3 { margin-bottom: 0.5rem; }
.mj-card .mj-card-body h3 a { color: var(--wp--preset--color--dark); }
.mj-card .mj-card-body h3 a:hover { color: var(--wp--preset--color--primary); }
.mj-card .mj-card-body p { font-size: 0.95rem; margin-bottom: 0.9rem; }
.mj-card .mj-card-more {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

/* stat chips */
.mj-chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.mj-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.13);
	border: 1px solid rgba(255, 255, 255, 0.32);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 500;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	backdrop-filter: blur(6px);
}
.mj-chip svg { color: #5CE29A; flex: none; }

/* card grids */
.mj-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-top: 1.8rem;
}
.mj-card-grid .mj-card { display: flex; flex-direction: column; }
.mj-card-grid .mj-card .mj-card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.mj-card-grid .mj-card .mj-card-body h3 { margin-top: 0; }
.mj-card-grid .mj-card .mj-card-body .mj-card-more { margin-top: auto; padding-top: 0.9rem; }
/* Flow-layout groups add margin-top to every sibling after the first, which
   pushes grid cells 2+ down 24px (same stair-step as .mj-partners/.mj-steps). */
.mj-card-grid > *, .mj-faq-grid > * { margin-top: 0; }
/* Embeds (map, flipbook) are inline by default, so constrained auto-margins
   don't centre them. */
.mj-content-area > iframe { display: block; }

/* ============================================================
   Section helpers
   ============================================================ */
.mj-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
/* Side gutter = theme.json root padding. The shorthand above zeroes it, so put
   it back; doubled class beats WP's .has-global-padding. */
.mj-section.mj-section {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}
.mj-section-light { background: var(--wp--preset--color--light); }
.mj-section-dark {
	background: var(--wp--preset--gradient--dark-band);
}
.mj-section-dark h1, .mj-section-dark h2, .mj-section-dark h3,
.mj-section-dark h4, .mj-section-dark h5, .mj-section-dark h6 { color: #fff; }
.mj-section-dark p, .mj-section-dark li { color: #c3c9d1; }
.mj-section-red { background: var(--wp--preset--gradient--brand-band); }
.mj-section-red h2, .mj-section-red h3 { color: #fff; }
.mj-section-red p { color: #ffe2e2; }
.mj-eyebrow {
	color: var(--wp--preset--color--primary);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 0.8rem;
}
.mj-section-dark .mj-eyebrow, .mj-section-red .mj-eyebrow { color: #ff9c9c; }
.mj-section-red .mj-eyebrow { color: #ffd9d9; }

/* two-column media rows */
.mj-media-row img { border-radius: 16px; }

/* partner logos */
.mj-partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.mj-partners img { max-height: 64px; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter 0.25s, opacity 0.25s; }
.mj-partners img:hover { filter: none; opacity: 1; }

/* ============================================================
   FAQ accordions
   ============================================================ */
.wp-block-details {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: var(--wp--preset--shadow--card);
}
.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--dark);
	font-size: var(--wp--preset--font-size--medium-plus);
	list-style: none;
	position: relative;
	padding-right: 2.2rem;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.2rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--wp--preset--color--primary);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	transition: transform 0.2s;
}
.wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.wp-block-details[open] summary { color: var(--wp--preset--color--primary); margin-bottom: 0.4rem; }
.wp-block-details > p:last-child { margin-bottom: 0; }

/* ============================================================
   Footer
   ============================================================ */
.mj-site-footer {
	background: var(--wp--preset--color--charcoal);
	color: #9aa1a9;
	font-size: 0.95rem;
}
.mj-site-footer a { color: #c6ccd3; text-decoration: none; }
.mj-site-footer a:hover { color: var(--wp--preset--color--primary); }
.mj-site-footer h2, .mj-site-footer h3, .mj-site-footer h4,
.mj-site-footer .wp-block-heading { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.mj-site-footer .mj-footer-main { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.mj-site-footer .mj-footer-col p { margin-bottom: 0.7rem; }
.mj-site-footer .mj-footer-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.3rem 0;
	font-size: 0.85rem;
}
.mj-site-footer .mj-footer-bar .wp-block-group__inner-container,
.mj-site-footer .mj-footer-bar > .wp-block-group__inner-container { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; }
.mj-site-footer .mj-footer-bar .has-text-align-center { flex: 1 1 100%; text-align: center; }
/* v1.4.7: accepted cards (under "Cash and card accepted", v1.4.8) + booking-form honeypot (inc/antispam.php) */
.mj-site-footer .mj-cards { display: flex; gap: 0.5rem; margin-top: -0.2rem; }
.mj-site-footer .mj-card { display: inline-flex; width: 48px; height: 30px; padding: 6px 7px; background: #fff; border-radius: 5px; }
.mj-site-footer a[href^="mailto:"] { overflow-wrap: anywhere; } /* v1.4.8: long address no longer pushes the page sideways */
.mj-site-footer .mj-card svg { display: block; width: 100%; height: 100%; }
.mj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* floating call button (mobile) */
.mj-call-fab {
	position: fixed;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 998;
	display: none;
	align-items: center;
	gap: 0.6rem;
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.85rem 1.3rem;
	border-radius: 999px;
	box-shadow: var(--wp--preset--shadow--cta);
	text-decoration: none;
}
.mj-call-fab:hover { background: var(--wp--preset--color--primary-dark); color: #fff; }
.mj-call-fab { transition: opacity 0.25s ease, transform 0.25s ease; }
.mj-call-fab.mj-fab-hidden { opacity: 0; transform: translateY(140%); pointer-events: none; }
/* nav call button shows ≥1100px; the FAB covers everything below that */
@media (max-width: 1100px) {
	.mj-call-fab { display: inline-flex; }
}

/* ============================================================
   Forms (Contact Form 7)
   ============================================================ */
.wpcf7-form { display: grid; gap: 1rem; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label { font-weight: 500; color: var(--wp--preset--color--dark); display: block; margin-bottom: 0.35rem; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid #d8dce1;
	border-radius: 10px;
	font: inherit;
	color: var(--wp--preset--color--dark);
	background: #fff;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	border-color: transparent;
}
.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	border: 0;
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 8px;
	background: var(--wp--preset--color--primary-soft);
	padding: 0.9rem 1.1rem;
}
/* v1.4.17: CF7's own stylesheet now loads without blocking the page; these keep its hidden parts hidden until it arrives. */
.wpcf7 .hidden-fields-container, .wpcf7 form.init .wpcf7-response-output { display: none; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wpcf7-form input[type="submit"] {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0.9rem 1.9rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: var(--wp--preset--shadow--cta);
}
.wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }
.wpcf7-form .mj-partners img { max-height: 64px; }

/* ============================================================
   Content niceties
   ============================================================ */
.mj-content-area > h2 { margin-top: 1.6em; }
.mj-content-area img { height: auto; }
.entry-content > .wp-block-image figcaption { font-size: 0.85rem; color: var(--wp--preset--color--muted); text-align: center; }

/* blog / archive cards */
.mj-post-card { border-radius: 16px; overflow: hidden; }
.mj-post-card .wp-block-post-featured-image { aspect-ratio: 16 / 9; overflow: hidden; }
.mj-post-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.mj-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.mj-post-card .mj-post-card-inner { padding: 1.3rem 1.4rem 1.5rem; }
.mj-post-card h2, .mj-post-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.mj-post-card h2 a, .mj-post-card h3 a { color: var(--wp--preset--color--dark); }
.mj-post-card h2 a:hover, .mj-post-card h3 a:hover { color: var(--wp--preset--color--primary); }

/* ============================================================
   v1.1 — Hero slider (no plugin: fades, dots, arrows, swipe)
   ============================================================ */
.mj-slider {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(82vh, 760px);
	background: var(--wp--preset--color--darker);
}
.mj-slides { position: absolute; inset: 0; }
.mj-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.mj-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transition: opacity 0.8s ease;
}
.mj-slide-bg { position: absolute; inset: 0; z-index: 0; }
.mj-slide-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mj-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--wp--preset--gradient--brand-hero);
}
.mj-slide-content {
	position: relative;
	z-index: 2;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(4.5rem, 9vw, 7rem) 1.5rem;
	width: 100%;
}
.mj-slide-copy { max-width: 640px; }
.mj-slide h1, .mj-slide h2, .mj-slide p { color: #fff; }
.mj-slide h2 {
	font-size: clamp(1.75rem, 3.8vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.18;
}
.mj-slide p { color: #dfe3e8; }
@media (prefers-reduced-motion: no-preference) {
	.mj-slide.is-active .mj-slide-content { animation: mjSlideIn 0.65s ease both; }
	@keyframes mjSlideIn {
		from { opacity: 0; transform: translateY(16px); }
		to { opacity: 1; transform: none; }
	}
}
.mj-slider-nav {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 1.3rem;
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 0.9rem;
	background: rgba(14, 15, 18, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 0.4rem 0.7rem;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}
.mj-slider-arrow {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: transparent;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.mj-slider-arrow:hover { background: var(--wp--preset--color--primary); border-color: transparent; }
.mj-slider-arrow svg { width: 15px; height: 15px; }
.mj-slider-dots { display: flex; gap: 0.45rem; align-items: center; }
.mj-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
}
.mj-dot.is-active { background: #fff; transform: scale(1.3); }

/* outline buttons on dark/red backgrounds */
/* Slider buttons live in wp:html, so they miss WP's flex layout class and
   stacked with no gap on phones */
.mj-slider .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mj-slider .wp-block-buttons > .wp-block-button { margin: 0; }
.mj-slider .wp-block-button.is-style-outline > .wp-block-button__link,
.mj-section-red .wp-block-button.is-style-outline > .wp-block-button__link,
.mj-section-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: none;
}

/* persistent glass rating panel over the hero slider */
.mj-slider-panel {
	position: absolute;
	z-index: 5;
	top: 50%;
	right: max(1.5rem, calc((100% - 1180px) / 2));
	transform: translateY(-50%);
	width: 350px;
}
@media (max-width: 1100px) { .mj-slider-panel { display: none; } }
@media (max-width: 700px) { .mj-slider-nav { bottom: 0.9rem; } }

/* ============================================================
   v1.1 — Hero glass panel
   ============================================================ */
.mj-hero-panel {
	background: rgba(14, 15, 18, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	padding: 1.5rem 1.6rem;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	color: #e8ebef;
}
.mj-hp-rating { display: flex; align-items: center; gap: 0.9rem; }
.mj-hp-num {
	font-size: 2.7rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.02em;
}
.mj-hp-stars { display: flex; gap: 2px; color: #FFB300; }
.mj-hp-stars svg { width: 17px; height: 17px; }
.mj-hp-label { color: #b9bfc7; font-size: 0.84rem; margin-top: 0.25rem; }
.mj-hp-label a { color: #e8ebef; text-decoration: underline; text-underline-offset: 3px; }
.mj-hp-label a:hover { color: var(--wp--preset--color--primary); }
.mj-hp-divider { height: 1px; background: rgba(255, 255, 255, 0.12); margin: 1.05rem 0; }
.mj-hp-row { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.9rem; color: #cfd4da; line-height: 1.5; }
.mj-hp-row svg { flex: none; margin-top: 2px; color: #ff8f8f; }
.mj-hp-row b { color: #fff; font-weight: 600; }
.mj-hp-row span { color: #a9b0b8; font-size: 0.84rem; }

/* ============================================================
   v1.1 — Trust bar (slim strip under hero)
   ============================================================ */
.mj-trustbar { border-bottom: 1px solid var(--wp--preset--color--line); }
.mj-trustbar-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	padding: 1.1rem 0;
}
.mj-trust-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--wp--preset--color--dark);
	line-height: 1.35;
}
.mj-trust-item svg {
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0.5rem;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary-soft);
	border-radius: 11px;
	box-sizing: content-box;
}
@media (max-width: 900px) {
	.mj-trustbar-inner { grid-template-columns: 1fr 1fr; }
	.mj-trust-item { font-size: 0.85rem; }
}

/* ============================================================
   v1.1 — Stats row (dark section)
   ============================================================ */
.mj-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem 1rem;
	text-align: center;
	padding: 0 0 2.8rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 3rem;
}
.mj-stat b {
	display: block;
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.mj-stat b .mj-amber { color: #FFB300; }
.mj-stat span { font-size: 0.88rem; color: #aeb4bc; }
@media (max-width: 760px) { .mj-stats { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; } }

/* ============================================================
   v1.1 — Service cards: price tag + image zoom
   ============================================================ */
.mj-card .mj-card-media { position: relative; }
.mj-card .mj-card-media img { transition: transform 0.35s ease; }
.mj-card:hover .mj-card-media img { transform: scale(1.05); }
.mj-price-tag {
	position: absolute;
	left: 0.9rem;
	bottom: 0.9rem;
	background: rgba(14, 15, 18, 0.82);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.32rem 0.75rem;
	border-radius: 999px;
	backdrop-filter: blur(4px);
	z-index: 2;
}

/* ============================================================
   v1.1 — Icon feature cards + media side (Why M&J)
   ============================================================ */
.mj-feature {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 14px;
	padding: 1.2rem 1.25rem;
}
.mj-feature-icon {
	flex: none;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(239, 9, 9, 0.16);
	color: #ff8f8f;
}
.mj-feature-icon svg { width: 22px; height: 22px; }
.mj-feature h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.mj-feature p { font-size: 0.88rem; margin: 0; color: #c3c9d1; }
/* Photo fills the column so its top/bottom line up with the feature cards */
.mj-media-side { position: relative; height: 100%; min-height: 260px; }
.mj-media-side img {
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mj-media-badge {
	position: absolute;
	left: 1.1rem;
	bottom: 1.4rem;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-radius: 16px;
	padding: 0.95rem 1.35rem;
	box-shadow: var(--wp--preset--shadow--cta);
	max-width: 210px;
}
.mj-media-badge b { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.mj-media-badge span { font-size: 0.85rem; color: #ffe2e2; }
@media (max-width: 640px) {
	.mj-media-badge { left: 0.8rem; bottom: 0.8rem; padding: 0.7rem 1rem; }
	.mj-media-badge b { font-size: 1.4rem; }
}

/* ============================================================
   v1.1 — Numbered steps (interlock program)
   ============================================================ */
.mj-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; counter-reset: mjstep; }
.mj-step {
	position: relative;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 14px;
	padding: 1.45rem 1.2rem 1.2rem;
}
.mj-step::before {
	counter-increment: mjstep;
	content: counter(mjstep);
	position: absolute;
	top: -15px;
	left: 1.05rem;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: #fff;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.mj-step h3 { font-size: 1rem; color: #fff; margin: 0.35rem 0 0.35rem; }
.mj-step p { font-size: 0.86rem; margin: 0; color: #ffe2e2; line-height: 1.55; }
.mj-section-dark .mj-step p { color: #c3c9d1; }
@media (max-width: 900px) { .mj-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mj-steps { grid-template-columns: 1fr; } }

/* ============================================================
   v1.1 — Review band
   ============================================================ */
.mj-review-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.6rem;
	flex-wrap: wrap;
}
.mj-review-num {
	font-size: 3.6rem;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	line-height: 1;
	letter-spacing: -0.02em;
}
.mj-review-stars { display: flex; gap: 4px; color: #FFB300; }
.mj-review-stars svg { width: 28px; height: 28px; }
.mj-review-sub { color: var(--wp--preset--color--muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* ============================================================
   v1.1 — FAQ two-column grid
   ============================================================ */
.mj-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; align-items: start; margin-top: 1.8rem; }
@media (max-width: 860px) { .mj-faq-grid { grid-template-columns: 1fr; } }

/* ============================================================
   v1.1.4 — Partner cells (grid: equal cells on one row line)
   ============================================================ */
/* WP flow-layout groups add margin-top to every sibling child (> * + *),
   which stair-steps grid children; zero it inside our grid groups */
.mj-partners > *, .mj-steps > * { margin-top: 0; }
.mj-partner-cell {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.2rem 1.7rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--wp--preset--shadow--card);
}
@media (max-width: 900px) { .mj-partners { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   v1.1 — Suburb chips
   ============================================================ */
.mj-suburbs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.mj-suburb {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #dfe3e8;
	font-size: 0.88rem;
	font-weight: 500;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	text-decoration: none;
}
a.mj-suburb:hover, a.mj-suburb:focus-visible {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
}
.mj-suburb small { opacity: 0.65; margin-left: 0.3rem; font-weight: 400; }

/* ============================================================
   v1.1 — Contact info rows
   ============================================================ */
.mj-info-list { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.mj-info-row { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; }
.mj-info-row svg { flex: none; margin-top: 3px; color: var(--wp--preset--color--primary); }
.mj-info-row b { font-weight: 600; }

/* ============================================================
   v1.1 — Eyebrow dash
   ============================================================ */
.mj-eyebrow { display: flex; align-items: center; gap: 0.6rem; }
.mj-eyebrow::before {
	content: "";
	flex: none;
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
}
.mj-section-red .mj-eyebrow::before { background: #fff; }

/* ============================================================
   v1.1 — Scroll reveal (activated by JS only; see functions.php)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
	html.mj-reveal-ready .mj-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.6s ease, transform 0.6s ease;
	}
	html.mj-reveal-ready .mj-reveal.mj-in { opacity: 1; transform: none; }
}

/* ============================================================
   v1.2 — Google review cards ([mj_google_reviews])
   ============================================================ */
.mj-greviews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-top: 2rem;
}
.mj-greview {
	margin: 0;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	padding: 1.4rem 1.4rem 1.2rem;
	box-shadow: var(--wp--preset--shadow--card);
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}
.mj-greview-stars { color: #F5A623; letter-spacing: 0.1em; font-size: 1.05rem; line-height: 1; }
.mj-greview-off { color: #d9dde2; }
.mj-greview-text { margin: 0; padding: 0; border: 0; flex: 1 1 auto; }
.mj-greview-text p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 7;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mj-greview figcaption { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; line-height: 1.35; }
.mj-greview figcaption a { color: inherit; }
.mj-greview figcaption small { color: var(--wp--preset--color--muted); }
.mj-greview-avatar {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	text-transform: uppercase;
}
.mj-greviews-attrib { margin-top: 1.2rem; font-size: 0.85rem; color: var(--wp--preset--color--muted); text-align: center; }

/* ============================================================
   v1.2 — Booking form (CF7 form 5)
   ============================================================ */
.mj-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mj-form-grid-3 { grid-template-columns: 1.3fr 1.3fr 0.8fr; }
.mj-form-grid > p, .mj-form-grid > label { margin: 0; }
@media (max-width: 640px) {
	.mj-form-grid, .mj-form-grid-3 { grid-template-columns: 1fr; }
}
.mj-form-note { font-size: 0.85rem; color: var(--wp--preset--color--muted); margin: 0; }
.wpcf7-form select { appearance: auto; }

/* ============================================================
   v1.2 — Extra-service mini cards + payment / rating chips
   ============================================================ */
.mj-mini-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
	margin-top: 1.6rem;
}
.mj-mini-grid > * { margin-top: 0; }
.mj-mini {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.1rem 1.15rem;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
a.mj-mini:hover { box-shadow: var(--wp--preset--shadow--card-hover); transform: translateY(-2px); border-color: transparent; }
.mj-mini-icon {
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary-soft);
	color: var(--wp--preset--color--primary);
}
.mj-mini-icon svg { width: 20px; height: 20px; }
.mj-mini h3 { font-size: 1rem; margin: 0 0 0.25rem; color: var(--wp--preset--color--dark); }
.mj-mini p { font-size: 0.88rem; margin: 0; line-height: 1.5; }

.mj-chip-rating .mj-chip-star { color: #F5A623; }
.mj-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.mj-pay {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line);
	background: #fff;
	color: var(--wp--preset--color--dark);
}
.mj-pay svg { width: 16px; height: 16px; }

/* ============================================================
   v1.2 — Service areas page
   ============================================================ */
.mj-area-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
	margin-top: 1.6rem;
}
.mj-area-grid > * { margin-top: 0; }
.mj-area {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.2rem 1.3rem;
	scroll-margin-top: 110px;
}
.mj-area:target { border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px var(--wp--preset--color--primary-soft); }
.mj-area h3 { font-size: 1.05rem; margin: 0 0 0.4rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.mj-area h3 span { font-weight: 500; color: var(--wp--preset--color--muted); font-size: 0.85rem; }
.mj-area p { font-size: 0.92rem; margin: 0; }

/* Book-a-diagnostic anchor target clears the sticky header */
#book { scroll-margin-top: 110px; }
a.mj-chip { color: #fff; text-decoration: none; }
a.mj-chip:hover { border-color: rgba(255, 255, 255, 0.5); }

/* ============================================================
   v1.3 — inner-page system (hero photo, crumbs, actions, prose,
   CTA band). Colours stay on the theme.json palette.
   ============================================================ */
:root {
	--mj-ink: var(--wp--preset--color--dark);
	--mj-text: #3e444b;
	--mj-hero-bg: #111317;
	--mj-line-2: #e6e8ec;
}

/* ---- hero ---- */
.mj-page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--gradient--dark-band);
	padding: clamp(3rem, 6vw, 5.25rem) 0 clamp(2.75rem, 5vw, 4.5rem);
}
.mj-page-hero:has(.mj-hero-media) { background: var(--mj-hero-bg); }
.mj-page-hero > * { margin-block-start: 0; }
.mj-page-hero > .mj-hero-media {
	position: absolute;
	inset: 0 0 0 38%;
	z-index: -2;
	max-width: none !important;
	margin: 0 !important;
}
.mj-hero-media picture,
.mj-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mj-page-hero:has(.mj-hero-media)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, var(--mj-hero-bg) 38%, rgba(17, 19, 23, 0.8) 56%, rgba(17, 19, 23, 0.3) 100%),
		linear-gradient(0deg, rgba(17, 19, 23, 0.55), transparent 45%);
}
/* thin brand rule along the bottom edge */
.mj-page-hero::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	width: min(38%, 520px);
	height: 3px;
	background: var(--wp--preset--color--primary);
}
.mj-hero-copy > * { max-width: 680px; }
.mj-hero-copy > * { margin-block-start: 0; }
.mj-page-hero h1 {
	font-size: clamp(2.3rem, 4.6vw, 3.6rem);
	letter-spacing: -0.03em;
	line-height: 1.06;
	margin-bottom: 0.9rem;
	text-wrap: balance;
}
.mj-page-hero .wp-block-post-excerpt { margin: 0; }
.mj-page-hero .wp-block-post-excerpt p {
	font-size: 1.15rem;
	line-height: 1.6;
	color: #c9ced5;
	max-width: 58ch;
	text-wrap: pretty;
}
.mj-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem 0.45rem;
	font-size: 0.8rem;
	color: #8b919a;
	margin-bottom: 1rem;
}
.mj-crumbs a { color: #c7ccd3; text-decoration: none; }
.mj-crumbs a:hover,
.mj-crumbs a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mj-crumbs [aria-current] { color: #fff; }
.mj-crumb-sep { color: #6c727a; }

/* ---- buttons used by the hero + CTA band ---- */
.mj-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.mj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.85rem 1.4rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.mj-btn:active { transform: translateY(1px); }
.mj-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mj-btn-primary { background: var(--wp--preset--color--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(239, 9, 9, 0.7); }
.mj-btn-primary:hover { background: var(--wp--preset--color--primary-dark); color: #fff; text-decoration: none; }
.mj-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.04); }
.mj-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.mj-btn svg { flex: none; }

.mj-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 1.4rem;
	margin-top: 1.6rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.85rem;
	color: #aeb4bc;
}
.mj-hero-meta b { color: #fff; font-weight: 600; }
.mj-star { color: #ffb300; }

/* ---- single post hero (the group is itself the constrained container) ---- */
.mj-post-hero .wp-block-post-date { color: #aeb4bc !important; margin-bottom: 0.6rem; }

@media (max-width: 900px) {
	.mj-page-hero > .mj-hero-media { inset: 0; }
	.mj-page-hero:has(.mj-hero-media)::after {
		background: linear-gradient(180deg, rgba(17, 19, 23, 0.8), rgba(17, 19, 23, 0.94));
	}
	.mj-page-hero::before { width: 45%; }
}
@media (max-width: 600px) {
	.mj-hero-actions .mj-btn { flex: 1 1 100%; }
	.mj-hero-meta { gap: 0.35rem 1rem; font-size: 0.8rem; }
}

/* ---- prose (inner pages + posts; not the homepage) ---- */
.mj-prose { font-size: 1.0625rem; color: var(--mj-text); }
.wp-block-post-content.mj-prose { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.mj-prose p,
.mj-prose li { line-height: 1.75; }
.mj-prose :where(h2) { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.2; margin-top: 2.2em; }
.mj-prose :where(h3) { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 1.8em; }
.mj-prose :where(h4) { font-size: 1.1rem; margin-top: 1.6em; }
.mj-prose > :where(h2, h3):first-child { margin-top: 0; }
.mj-prose li::marker { color: var(--wp--preset--color--primary); }
.mj-prose :where(.wp-block-image img) { border-radius: 14px; }
.mj-prose :where(strong, b) { color: var(--mj-ink); }

/* tick lists (converted "·" / "-" line lists) */
.mj-ticks { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 1.75rem; }
.mj-ticks > li { position: relative; padding-left: 1.75rem; line-height: 1.5; margin: 0; }
.mj-ticks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 4px;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (max-width: 640px) { .mj-ticks { grid-template-columns: 1fr; } }

/* product photo grids (parts pages) */
.mj-prodgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; margin-bottom: 1rem; }
.mj-prodgrid > * { margin: 0 !important; }
.mj-prodgrid .wp-block-image,
.mj-prodgrid > figure {
	background: #fff;
	border: 1px solid var(--mj-line-2);
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1;
}
.mj-prodgrid img { width: 100% !important; height: 100% !important; object-fit: contain; border-radius: 0 !important; }
@media (max-width: 900px) { .mj-prodgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* WebP <picture> wrappers must not change layout */
.mj-pic { display: contents; }

/* ---- closing CTA band ---- */
.mj-ctaband { position: relative; isolation: isolate; overflow: hidden; background: var(--wp--preset--color--dark); color: #c9ced5; margin-block-start: 0; }
.mj-ctaband::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url(/wp-content/uploads/2019/01/electrics-w800.webp) center / cover;
	opacity: 0.12;
}
.mj-ctaband-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(2.75rem, 5vw, 4rem) var(--wp--style--root--padding-right) clamp(2.75rem, 5vw, 4rem) var(--wp--style--root--padding-left);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1.5rem 2.5rem;
	align-items: center;
}
.mj-ctaband h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; margin: 0 0 0.45rem; text-wrap: balance; }
.mj-ctaband p { margin: 0; max-width: 56ch; color: #c9ced5; }
.mj-ctaband .mj-eyebrow { color: #ff8f8f; font-size: 0.75rem; margin-bottom: 0.7rem; }
.mj-ctaband .mj-hero-actions { margin-top: 0; }
@media (max-width: 900px) { .mj-ctaband-inner { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .mj-ctaband .mj-hero-actions .mj-btn { flex: 1 1 100%; } }
/* the band sits flush on the content above and the footer below */
.wp-site-blocks > .mj-ctaband,
.wp-site-blocks > .mj-ctaband + * { margin-block-start: 0; }

/* ---- footer: keep the email address on one line ---- */
.mj-site-footer a[href^="mailto:"] { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1240px) { .mj-site-footer a[href^="mailto:"] { font-size: 0.8rem; } }

/* ---- shared interaction polish ---- */
.wp-element-button,
.wp-block-button__link { transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.wp-element-button:active,
.wp-block-button__link:active { transform: translateY(1px); }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.mj-btn,
	.wp-element-button,
	.wp-block-button__link { transition: none; }
}

/* ============================================================
   v1.3 — homepage polish (layout unchanged)
   ============================================================ */
/* Outline buttons inside wp:html (slider, dark/red bands) never get WP's
   generated is-style-outline--N class, so they fell back to solid red:
   slide 2 showed two identical red buttons. */
.mj-slider .wp-block-button.is-style-outline > .wp-block-button__link,
.mj-section-red .wp-block-button.is-style-outline > .wp-block-button__link,
.mj-section-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: calc(0.9rem - 1px) calc(1.7rem - 1px);
}
.mj-slider .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.mj-section-red .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.mj-section-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.75);
	color: #fff;
}
/* Phones: slide 1's chip row ran under the slider nav pill. Give the slides
   room above the nav and keep only the rating chip on the smallest screens. */
@media (max-width: 600px) {
	.mj-slider { min-height: 700px; }
	.mj-slide-content { padding-top: 2.5rem; padding-bottom: 5.25rem; }
	.mj-slide .mj-chip-row > span.mj-chip { display: none; }
}

/* Why M&J: same radius family as the cards, padding on the 8px grid */
.mj-feature { padding: 1.25rem 1.5rem; border-radius: 14px; }
.mj-media-side img { border-radius: 16px; }

/* ============================================================
   v1.3 — inner pages: service layout + aside, grids, tiles
   ============================================================ */
/* service pages: text column + sticky "at a glance" aside */
.mj-svc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(2rem, 5vw, 4.5rem);
	max-width: 1180px;
	box-sizing: content-box;
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 4.5rem) var(--wp--style--root--padding-right) clamp(3.5rem, 7vw, 5.5rem) var(--wp--style--root--padding-left);
}
.mj-svc > * { margin-block-start: 0; }
.mj-svc > .mj-content-area { padding: 0; min-width: 0; }
.mj-svc > .mj-content-area > :first-child { margin-top: 0; }
.mj-aside {
	position: sticky;
	top: 110px;
	align-self: start;
	background: #fff;
	border: 1px solid var(--mj-line-2);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(23, 24, 28, 0.04), 0 20px 40px -24px rgba(23, 24, 28, 0.25);
}
.mj-aside p { margin: 0; }
.mj-aside-top { background: var(--wp--preset--color--light); padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--mj-line-2); }
.mj-aside-label,
.mj-aside-list dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.mj-aside-price {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--mj-ink);
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin: 0.25rem 0 0.35rem !important;
	font-variant-numeric: tabular-nums;
}
.mj-aside-from { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--wp--preset--color--muted); }
.mj-aside-note { font-size: 0.82rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.mj-aside-list { margin: 0; padding: 1.2rem 1.5rem; display: grid; gap: 0.85rem; font-size: 0.9rem; }
.mj-aside-list dd { margin: 0.1rem 0 0; color: var(--mj-ink); font-weight: 500; }
.mj-aside-actions { display: grid; gap: 0.6rem; padding: 0 1.5rem 1.5rem; }
.mj-btn-line { color: var(--mj-ink); border: 1px solid var(--mj-line-2); background: #fff; }
.mj-btn-line:hover { border-color: var(--mj-ink); color: var(--mj-ink); text-decoration: none; }
.mj-btn-line:focus-visible { outline-color: var(--wp--preset--color--primary); }
@media (max-width: 960px) {
	.mj-svc { grid-template-columns: minmax(0, 1fr); }
	.mj-aside { position: static; max-width: 520px; }
}

/* three-up variant of the product grid */
.mj-prodgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .mj-prodgrid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* side-by-side photo pair */
.mj-media-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.mj-media-pair > * { margin: 0 !important; }
.mj-media-pair img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
@media (max-width: 560px) { .mj-media-pair { grid-template-columns: 1fr; } }

/* photo tiles with a caption heading (Car Lighting) */
.mj-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.mj-tiles > *, .mj-tile > * { margin-block-start: 0; }
.mj-tile { background: #fff; border: 1px solid var(--mj-line-2); border-radius: 14px; overflow: hidden; }
.mj-tile .wp-block-image { margin: 0; }
.mj-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 !important; display: block; }
.mj-tile h3 { font-size: 1.05rem; margin: 0; padding: 1rem 1.2rem 1.1rem; }
@media (max-width: 760px) { .mj-tiles { grid-template-columns: 1fr; } }

/* callout line (was an orphan H5) */
.mj-callout {
	border-left: 3px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--light);
	border-radius: 0 12px 12px 0;
	padding: 1rem 1.25rem;
	font-weight: 500;
	color: var(--mj-ink);
}

/* About: text + photo columns */
.mj-about-cols { gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 2.2em; }
.mj-about-cols img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mj-about-cols h2 { margin-top: 0; }

/* Contact: map sits under the details in the left column */
.mj-prose .wp-block-column > iframe { display: block; margin-top: 1.5rem; }

/* Blog index: cards on the wide grid */
.mj-prose .wp-block-query.alignwide .mj-post-card h2 { font-size: 1.1rem; }

/* ============================================================
   v1.3 — posts: meta row, featured image, lead, related posts
   ============================================================ */
.mj-postmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; font-size: 0.85rem; color: #aeb4bc; margin-bottom: 1rem; }
.mj-postmeta-cat {
	background: rgba(239, 9, 9, 0.16);
	color: #ff8f8f;
	border: 1px solid rgba(239, 9, 9, 0.35);
	padding: 0.2rem 0.65rem;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
/* featured image overlaps the bottom of the hero */
.mj-post-hero:has(+ .mj-feat) { padding-bottom: clamp(6.5rem, 10vw, 8.5rem); }
.wp-site-blocks > .mj-feat {
	position: relative;
	z-index: 2;
	max-width: 900px;
	box-sizing: content-box;
	margin: clamp(-5.5rem, -8vw, -4rem) auto 0;
	padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
}
.mj-feat img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 30px 60px -30px rgba(17, 19, 23, 0.6);
}
.single .wp-site-blocks > .mj-feat + .mj-section { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.single .mj-prose .wp-block-post-content > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--mj-ink); }
.single .mj-prose :where(h2) { font-size: clamp(1.4rem, 2.2vw, 1.65rem); margin-top: 2em; }

/* related posts */
.mj-related { background: var(--wp--preset--color--light); margin-block-start: 0; }
.wp-site-blocks > .mj-related + * { margin-block-start: 0; }
.mj-related-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(3rem, 5vw, 4.5rem) var(--wp--style--root--padding-right) clamp(3rem, 5vw, 4.5rem) var(--wp--style--root--padding-left);
}
.mj-related h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 0 0 1.5rem; }
.mj-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.mj-related-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--mj-line-2);
	border-radius: 14px;
	overflow: hidden;
	color: var(--mj-ink);
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mj-related-card:hover { transform: translateY(-3px); box-shadow: var(--wp--preset--shadow--card-hover); color: var(--mj-ink); text-decoration: none; }
.mj-related-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.mj-related-body { display: block; padding: 1rem 1.2rem 1.3rem; }
.mj-related-body small { display: block; color: var(--wp--preset--color--muted); font-size: 0.78rem; margin-bottom: 0.3rem; }
.mj-related-title { display: block; font-weight: 600; line-height: 1.35; }
@media (max-width: 900px) { .mj-related-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mj-related-card { transition: none; } .mj-related-card:hover { transform: none; } }
/* the wide query is itself "constrained", which squeezed the card list back to 720px */
.mj-prose .wp-block-query.alignwide { padding-left: 0; padding-right: 0; }
.mj-prose .wp-block-query.alignwide > .wp-block-post-template { max-width: none; }

/* touch: no double-tap zoom delay on controls; tap highlight in brand tint */
a, button, summary, input[type="submit"] { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(239, 9, 9, 0.15); }
.mj-slider-pause svg { width: 13px; height: 13px; }
