/*
Theme Name: Money Matters Accounting
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for Money Matters Accounting Ltd. Colours, fonts and spacing live in theme.json (editable in Appearance → Editor → Styles). Pages are built entirely with core blocks.
Version: 1.0.0
Requires at least: 6.7
Text Domain: money-matters
*/

/* ---------- Block style variations (picked from the block sidebar → Styles) ---------- */

/* Paragraph: Eyebrow — small uppercase label above a heading */
.is-style-mm-eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--burgundy);
}
.has-forest-background-color .is-style-mm-eyebrow,
.has-contrast-background-color .is-style-mm-eyebrow {
	color: var(--wp--preset--color--leaf);
}

/* Paragraph / heading: Handwritten */
.is-style-mm-handwritten {
	font-family: var(--wp--preset--font-family--caveat);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.15;
}

/* Group: Card — rounded panel with a hairline border */
.wp-block-group.is-style-mm-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 24px;
	overflow: hidden;
}
.wp-block-group.is-style-mm-card.has-background { border-color: transparent; }

/* Group: Polaroid — white frame, soft shadow, slight tilt */
.wp-block-group.is-style-mm-polaroid {
	background: #fff;
	padding: 14px 14px 18px;
	border-radius: 4px;
	box-shadow: 0 18px 40px rgba(27, 31, 29, 0.14);
	transform: rotate(-2deg);
	position: relative;
}
.wp-block-group.is-style-mm-polaroid::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 96px;
	height: 26px;
	margin-left: -48px;
	background: rgba(214, 236, 223, 0.9);
	transform: rotate(4deg);
	border-radius: 2px;
}
.wp-block-group.is-style-mm-polaroid .wp-block-image { margin: 0; }
.wp-block-group.is-style-mm-polaroid .wp-block-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
	background: var(--wp--preset--color--mint);
	border-radius: 2px;
}
/* Alternate the tilt so a row of polaroids looks hand-placed */
.wp-block-column:nth-child(even) > .is-style-mm-polaroid,
.wp-block-group > .wp-block-group:nth-child(even) > .is-style-mm-polaroid { transform: rotate(1.5deg); }

/* Group: Paper note — the "little note" letter */
.wp-block-group.is-style-mm-note {
	background: #fffefb;
	border: 1px solid #efe6d8;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(27, 31, 29, 0.08);
	transform: rotate(0.5deg);
}

/* Group: Sticky note — small tilted stat card */
.wp-block-group.is-style-mm-sticky {
	border-radius: 4px;
	box-shadow: 0 8px 18px rgba(27, 31, 29, 0.1);
	transform: rotate(-1.5deg);
}
.wp-block-column:nth-child(2) > .is-style-mm-sticky { transform: rotate(1.5deg); }
.wp-block-column:nth-child(3) > .is-style-mm-sticky { transform: rotate(-0.75deg); }

/* List: Checklist — green tick bullets */
ul.is-style-mm-checklist {
	list-style: none;
	padding-left: 0;
}
ul.is-style-mm-checklist li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.6em;
}
ul.is-style-mm-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.15em;
	height: 1.15em;
	border-radius: 50%;
	background: var(--wp--preset--color--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23177A55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.has-forest-background-color ul.is-style-mm-checklist li::before,
.has-contrast-background-color ul.is-style-mm-checklist li::before {
	background-color: rgba(255, 255, 255, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2386D9A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Details: FAQ — accordion row with a plus/minus marker */
.wp-block-details.is-style-mm-faq {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-block: 1.4rem;
}
.wp-block-details.is-style-mm-faq summary {
	list-style: none;
	cursor: pointer;
	font-weight: 700;
	font-size: var(--wp--preset--font-size--large);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.wp-block-details.is-style-mm-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-mm-faq summary::after {
	content: "+";
	flex: none;
	font-weight: 500;
	font-size: 1.5em;
	line-height: 1;
	color: var(--wp--preset--color--green);
	transition: transform 0.25s ease;
}
.wp-block-details.is-style-mm-faq[open] summary::after { transform: rotate(45deg); }
.wp-block-details.is-style-mm-faq > :not(summary) {
	color: var(--wp--preset--color--slate);
	margin-top: 0.75rem;
}

/* Button: Outline tweak to match the pill buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
}

/* Separator: short accent bar */
.wp-block-separator.is-style-mm-accent {
	width: 48px;
	border: none;
	border-top: 3px solid var(--wp--preset--color--green);
	margin-left: 0;
	opacity: 1;
}

/* Hover lift on cards that contain a link */
@media (prefers-reduced-motion: no-preference) {
	.wp-block-button__link { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
	.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(27, 31, 29, 0.4); }
	html { scroll-behavior: smooth; }
}

/* ---------- Layout helpers ---------- */

/* Pain-point row: column dividers on desktop, stacked list on phones */
.mm-pain .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--line); padding-left: var(--wp--preset--spacing--40); }
@media (max-width: 781px) {
	.mm-pain .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--30); }
}

/* Header: keep it above content when the mobile menu opens */
.mm-header { position: relative; z-index: 50; }
.mm-header .wp-block-site-logo img { height: auto; }

/* Contact form (Fluent Forms) — match theme */
.mm-form .ff-el-form-control {
	font: inherit;
	border-radius: 12px;
	border: 1.5px solid var(--wp--preset--color--line);
	padding: 14px 16px;
	background: #fff;
}
.mm-form .ff-el-form-control:focus { border-color: var(--wp--preset--color--green); box-shadow: none; }
.mm-form .ff-el-input--label label { font-weight: 600; }
.mm-form .ff-btn-submit {
	background: var(--wp--preset--color--green) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 16px 32px !important;
	font: inherit !important;
	font-weight: 700 !important;
	cursor: pointer;
}
.mm-form .ff-btn-submit:hover { background: var(--wp--preset--color--forest) !important; }
.has-forest-background-color .mm-form label,
.has-contrast-background-color .mm-form label { color: #fff; }

/* Designed pages: full-width sections sit flush against each other */
.mm-designed .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }

/* Header call-to-action hides on small phones; the menu has a Contact link */
@media (max-width: 600px) { .mm-header-cta { display: none !important; } }
.mm-header .wp-block-navigation__responsive-container.is-menu-open { padding: var(--wp--preset--spacing--40); }
.mm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.25rem; gap: 1rem; }

/* Footer links */
.mm-footer a { text-decoration: none; }
.mm-footer a:hover { text-decoration: underline; }

/* Cards in a row stretch to the same height */
.mm-equal > .wp-block-column { display: flex; flex-direction: column; }
.mm-equal > .wp-block-column > .wp-block-group { flex: 1 1 auto; }
.has-green-background-color .is-style-mm-eyebrow { color: var(--wp--preset--color--mint); }
.wp-block-group.is-style-mm-polaroid { max-width: 380px; margin-inline: auto; }
.wp-block-group.is-style-mm-polaroid .is-style-mm-handwritten { margin-top: 0.75rem; margin-bottom: 0; color: var(--wp--preset--color--forest); }
.mm-member .is-style-mm-polaroid { max-width: 320px; margin-inline: 0; }

/* Right-aligned button groups start from the left once columns stack */
@media (max-width: 781px) {
	.wp-block-buttons.is-content-justification-right { justify-content: flex-start; }
}

/* Services overview: three steps rising from the section floor, heading in the space above */
.mm-stairs-section { overflow: clip; }
.mm-stairs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: auto 6rem 6rem 6rem auto;
	column-gap: 14px;
}
.mm-stairs > * { margin: 0 !important; }
.mm-stairs-head {
	grid-column: 1 / 3;
	grid-row: 1 / 4;
	align-self: start;
	max-width: 36rem;
	padding-bottom: var(--wp--preset--spacing--50);
}
.mm-stairs-head h2 { margin-block: 0.5rem 1.25rem; }
.mm-stairs-head > p:last-child { margin-top: 1.5rem; }
.mm-step-1 { grid-column: 1; grid-row: 5; }
.mm-step-2 { grid-column: 2; grid-row: 4 / 6; }
.mm-step-3 { grid-column: 3; grid-row: 3 / 6; position: relative; z-index: 1; }

/* Ghost fourth step: a dashed outline continuing the stairs up and off to the right */
.mm-ghost-step {
	grid-column: 3;
	grid-row: 2 / 6;
	translate: calc(55% + 14px) 0;
	border: 2px dashed rgba(23, 122, 85, 0.45);
	border-bottom: 0;
	border-radius: 28px 28px 0 0;
	background: linear-gradient(rgba(229, 243, 235, 0.55), rgba(229, 243, 235, 0));
}
.mm-stairs-note {
	grid-column: 3;
	grid-row: 2;
	align-self: center;
	justify-self: start;
	color: var(--wp--preset--color--green);
	line-height: 1;
	white-space: nowrap;
	rotate: -4deg;
}
.mm-stairs-note::after {
	content: "";
	display: inline-block;
	width: 44px;
	height: 34px;
	margin-left: 6px;
	vertical-align: -6px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 34' fill='none' stroke='%23177A55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 24c10 4 24 2 34-14'/%3E%3Cpath d='M29 9l8 1 1 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mm-step {
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 3vw, 2.75rem);
	padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
	border-radius: 28px 28px 0 0;
}
.mm-step > * { margin-block: 0; }
.mm-step-1 { box-shadow: inset 0 1px 0 var(--wp--preset--color--line), inset 1px 0 0 var(--wp--preset--color--line), inset -1px 0 0 var(--wp--preset--color--line); }
.mm-step-3 { box-shadow: 0 30px 60px -30px rgba(15, 76, 56, 0.55); }

.mm-step .is-style-mm-eyebrow { color: var(--wp--preset--color--green); margin-bottom: 0.5rem; }
.mm-step-3.mm-step .is-style-mm-eyebrow { color: var(--wp--preset--color--leaf); }
.mm-step h3 { margin-bottom: 0.9rem; }
.mm-step h3 + p { margin-bottom: 1.5rem; }

ul.mm-plain-list {
	list-style: none;
	padding: 0;
	font-weight: 500;
	margin-bottom: 2rem;
}
ul.mm-plain-list li { padding-block: 0.65rem; border-top: 1px solid var(--wp--preset--color--line); }
.mm-step-2 ul.mm-plain-list li { border-color: rgba(23, 122, 85, 0.16); }
.mm-step-3 ul.mm-plain-list li { border-color: rgba(255, 255, 255, 0.14); }


/* Benefit line pinned to the floor of each step, so taller steps feel full rather than empty */
.mm-step-foot {
	margin-top: auto !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--caveat);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--green);
}
.mm-step .mm-arrow-link { margin-bottom: 2.5rem !important; }

/* Small line illustrations that take up the extra height of the taller steps */
.mm-step-art {
	flex: 1 1 0;
	min-height: 40px;
	max-height: 150px;
	margin-bottom: 2rem !important;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 244 40' fill='none' stroke='%23177A55' stroke-width='1.5'%3E%3Cpath d='M8 14h220' stroke-opacity='.35'/%3E%3Ccircle cx='8' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='28' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='48' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='68' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='88' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='108' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='128' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='148' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='168' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='188' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='208' cy='14' r='4' fill='%23E5F3EB'/%3E%3Ccircle cx='228' cy='14' r='10' stroke-opacity='.4'/%3E%3Ccircle cx='228' cy='14' r='5' fill='%23177A55'/%3E%3Cg fill='%23177A55' stroke='none' font-family='sans-serif' font-size='8' font-weight='700' letter-spacing='.8'%3E%3Ctext x='2' y='38'%3EJAN%3C/text%3E%3Ctext x='242' y='38' text-anchor='end'%3EYEAR-END%3C/text%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
}
.mm-step-art { margin-top: auto !important; }
.mm-step-art + .mm-step-foot { margin-top: 0 !important; }
.mm-art-year { flex: none; aspect-ratio: 244 / 40; height: auto; min-height: 0; max-height: none; margin-block: auto !important; }
.mm-art-trend { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 110' fill='none' stroke='%2386D9A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 96h232' stroke-opacity='.2' stroke-width='1'/%3E%3Cpath d='M4 88l30-10 28 6 30-22 28 8 30-26'/%3E%3Cpath d='M150 44l28-12 30-6 28-18' stroke-dasharray='4 6'/%3E%3Ccircle cx='150' cy='44' r='4' fill='%2386D9A8'/%3E%3Ccircle cx='236' cy='8' r='3.5'/%3E%3C/svg%3E"); background-position: left bottom; }
.mm-step-2 .mm-step-foot { border-color: rgba(23, 122, 85, 0.16); }
.mm-step-3 .mm-step-foot { border-color: rgba(255, 255, 255, 0.14); color: var(--wp--preset--color--leaf); }
.mm-arrow-link a {
	font-weight: 700;
	color: var(--wp--preset--color--green);
	text-decoration: none;
}
.mm-step-3 .mm-arrow-link a { color: var(--wp--preset--color--leaf); }
.mm-arrow-link a::after { content: "→"; display: inline-block; margin-left: 0.4em; transition: transform 0.2s ease; }
.mm-arrow-link a:hover::after { transform: translateX(4px); }
.mm-arrow-link a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

@media (max-width: 781px) {
	.mm-stairs-section { padding-bottom: var(--wp--preset--spacing--70) !important; }
	.mm-stairs { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 12px; }
	.mm-stairs-head,
	.mm-step-1,
	.mm-step-2,
	.mm-step-3 { grid-column: 1; grid-row: auto; }
	.mm-ghost-step,
	.mm-stairs-note { display: none; }
	.mm-step { border-radius: 24px; }
	.mm-step-1 { box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); }
}

/* Process: sticky heading beside a vertical timeline of numbered steps */
.mm-process-head h2 { margin-block: 0.5rem 1.25rem; }
.mm-process-head .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }
.mm-timeline {
	position: relative;
	counter-reset: mm-tl;
	padding-left: 4.5rem;
}
/* The line fades in from grey (stressed) to green (calm) */
.mm-timeline::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 22px;
	bottom: 22px;
	width: 2px;
	background: linear-gradient(var(--wp--preset--color--line), var(--wp--preset--color--green));
}
.mm-timeline > * { margin-block: 0; }
.mm-tl-step {
	position: relative;
	counter-increment: mm-tl;
	padding-bottom: var(--wp--preset--spacing--60);
}
.mm-tl-step::before {
	content: counter(mm-tl);
	position: absolute;
	left: -4.5rem;
	top: 0;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--green);
	color: var(--wp--preset--color--green);
	font-weight: 700;
	font-size: 1.05rem;
}
.mm-tl-label {
	margin: 0 0 0.25rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--green);
	line-height: 44px;
}
.mm-tl-step h3 { margin-block: 0 0.6rem; font-size: var(--wp--preset--font-size--x-large); }
.mm-tl-step p:last-child { margin: 0; max-width: 34rem; }
.mm-tl-end {
	position: relative;
	color: var(--wp--preset--color--forest);
	line-height: 44px;
}
.mm-tl-end::before {
	content: "";
	position: absolute;
	left: -4.5rem;
	top: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5z' fill='%2386D9A8'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 0 0 6px var(--wp--preset--color--mint);
}
@media (min-width: 782px) {
	.mm-process-cols { align-items: flex-start !important; }
	.mm-process-head { position: sticky; top: 140px; }
}
@media (max-width: 781px) {
	.mm-timeline { padding-left: 3.75rem; margin-top: var(--wp--preset--spacing--40); }
	.mm-timeline::before { left: 19px; }
	.mm-tl-step::before,
	.mm-tl-end::before { left: -3.75rem; width: 40px; height: 40px; }
	.mm-tl-label, .mm-tl-end { line-height: 40px; }
}

/* ---------- Services page ---------- */

/* Hero: centred headline with a rising line in its own reserved space below the buttons */
.mm-svc-hero {
	--mm-line-h: max(81px, 10.625vw);
	position: relative;
	overflow: clip;
	padding-block: var(--wp--preset--spacing--50) calc(var(--mm-line-h) + 28px);
}
.mm-svc-hero-text { position: relative; z-index: 1; }
.mm-svc-hero h1 {
	font-size: clamp(2.5rem, 4.4vw, 3.75rem);
	line-height: 1.06;
	margin-block: 0.6rem 1rem;
}
.mm-svc-hero .has-large-font-size { max-width: 46rem; margin: 0 auto; }
.mm-svc-hero .wp-block-buttons { margin-top: var(--wp--preset--spacing--40); }
.mm-hl {
	color: var(--wp--preset--color--leaf);
	padding-bottom: 0.08em;
	background: url("assets/images/services/underline.svg") left bottom / 100% 0.16em no-repeat;
}
.mm-svc-hero .mm-hl {
	color: var(--wp--preset--color--green);
	background-image: url("assets/images/services/underline-green.svg");
}
.mm-hero-line {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: none !important;
	height: var(--mm-line-h);
	margin: 0 !important;
	background: url("assets/images/services/hero-line.svg?v=5") right bottom / max(100%, 760px) auto no-repeat;
}

/* Jump links: their own full-width band, set apart from the hero */
.mm-designed .wp-block-post-content > .mm-jump-band { margin-top: 28px; }
.mm-jump {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.mm-jump-link { margin: 0 !important; }
.mm-jump-link + .mm-jump-link { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.mm-jump-link a {
	position: relative;
	display: block;
	padding: 1.4rem 3rem 1.4rem 1.5rem;
	color: inherit;
	text-decoration: none;
}
.mm-jump-link:first-child a { padding-left: 0; }
.mm-jump-link strong,
.mm-jump-link span { display: block; }
.mm-jump-link span { color: var(--wp--preset--color--mint); font-size: var(--wp--preset--font-size--small); }
.mm-jump-link a::after {
	content: "↓";
	position: absolute;
	right: 1.5rem;
	top: 1.65rem;
	color: var(--wp--preset--color--leaf);
	transition: transform 0.2s ease;
}
.mm-jump-link a:hover::after { transform: translateY(4px); }
.mm-jump-link a:hover strong { color: var(--wp--preset--color--leaf); }

/* Anchored sections clear the top of the window when jumped to */
#controller, #bookkeeping, #year-end { scroll-margin-top: 40px; }

/* Controller: alternating chart rows */
.mm-section-head { margin-bottom: var(--wp--preset--spacing--70); }
.mm-section-head h2 { margin-top: 0.5rem; }
.mm-section-head p:last-child { margin-bottom: 0; }
.mm-features { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--70); }
.mm-feature { margin: 0 !important; gap: var(--wp--preset--spacing--70) !important; }
.mm-chart {
	aspect-ratio: 520 / 360;
	border-radius: 28px;
	background-color: var(--wp--preset--color--cream);
	background-position: center;
	background-size: 92%;
	background-repeat: no-repeat;
}
.mm-chart-budget { background-image: url("assets/images/services/budget.svg?v=2"); }
.mm-chart-cash {
	background-color: var(--wp--preset--color--forest);
	background-image: url("assets/images/services/cashflow.svg");
	box-shadow: 0 30px 60px -30px rgba(15, 76, 56, 0.55);
}
.mm-chart-analysis {
	background-color: var(--wp--preset--color--mint);
	background-image: url("assets/images/services/analysis.svg?v=2");
}
.mm-feature h3 { margin-bottom: 0.75rem; }
.mm-feature p { font-size: var(--wp--preset--font-size--large); }
.mm-section-cta { margin-top: var(--wp--preset--spacing--70); margin-bottom: 0; font-size: var(--wp--preset--font-size--large); }

/* Bookkeeping: three connected stops */
.mm-center-head { max-width: 46rem; margin-inline: auto !important; margin-bottom: var(--wp--preset--spacing--70); }
.mm-center-head h2 { margin-top: 0.5rem; }
.mm-flow { --mm-flow-gap: var(--wp--preset--spacing--70); gap: var(--mm-flow-gap) !important; }
.mm-flow-item { position: relative; }
.mm-flow-icon {
	width: 112px;
	height: 112px;
	margin-bottom: 1.5rem;
	background: center / contain no-repeat;
	border-radius: 50%;
	box-shadow: 0 16px 30px -18px rgba(15, 76, 56, 0.35);
}
.mm-icon-pay { background-image: url("assets/images/services/payable.svg"); }
.mm-icon-rec { background-image: url("assets/images/services/receivable.svg"); }
.mm-icon-bal { background-image: url("assets/images/services/reconcile.svg"); }
.mm-flow-item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 55px;
	left: calc(112px + 14px);
	right: calc(14px - var(--mm-flow-gap));
	border-top: 2px dashed rgba(23, 122, 85, 0.4);
}
.mm-flow-item h3 { margin-bottom: 0.6rem; }

/* Year-end: text beside the 12-month calendar */
.mm-ye { gap: var(--wp--preset--spacing--70) !important; }
.mm-ye h2 { margin-top: 0.5rem; }
.mm-ye-item { padding-block: 1.25rem; border-top: 1px solid rgba(142, 27, 31, 0.14); }
.mm-ye-item h3 { margin-bottom: 0.4rem; }
.mm-ye-item p { margin: 0; }
.mm-year-art {
	aspect-ratio: 490 / 372;
	background: url("assets/images/services/year.svg") center / contain no-repeat;
}

/* Closing panel: faint rings behind the form */
.mm-cta-panel {
	background-image: url("assets/images/services/rings.svg");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: 520px;
}

@media (min-width: 782px) {
	.mm-feature-rev { flex-direction: row-reverse; }
}
@media (max-width: 781px) {
	.mm-jump { grid-template-columns: 1fr; }
	.mm-jump-link + .mm-jump-link { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
	.mm-jump-link a,
	.mm-jump-link:first-child a { padding: 1rem 2.5rem 1rem 0; }
	.mm-jump-link a::after { right: 0.25rem; top: 1.25rem; }
	.mm-section-head { margin-bottom: var(--wp--preset--spacing--50); }
	.mm-feature { gap: var(--wp--preset--spacing--40) !important; }
	.mm-flow { gap: var(--wp--preset--spacing--50) !important; }
	.mm-flow-item:not(:last-child)::after { display: none; }
	.mm-ye { gap: var(--wp--preset--spacing--50) !important; }
}

/* Closing panel: keep the email address on one line on phones */
@media (max-width: 781px) {
	.wp-block-group.alignwide.has-forest-background-color { padding-inline: 20px !important; }
	.has-forest-background-color a[href^="mailto:"] {
		display: inline-block;
		font-size: min(1em, 3.7vw);
		white-space: nowrap;
	}
}
@media (max-width: 781px) {
	.mm-form .ff-btn-submit { width: 100%; padding-inline: 16px !important; white-space: normal; }
}

/* ---------- About: team bios ---------- */
.mm-bios { display: flex; flex-direction: column; }
.mm-bio {
	margin: 0 !important;
	gap: var(--wp--preset--spacing--70) !important;
	padding-block: var(--wp--preset--spacing--70);
	align-items: flex-start !important;
}
.mm-bio + .mm-bio { border-top: 1px solid var(--wp--preset--color--line); }
.mm-bio:first-child { padding-top: 0; }
.mm-bio:last-child { padding-bottom: 0; }
.mm-bio .is-style-mm-polaroid { max-width: 340px; margin-inline: auto; }
.mm-bio h3 { margin-block: 0 1.25rem; }
.mm-bio .is-style-mm-eyebrow { margin-bottom: 0.4rem; }
.mm-bio .wp-block-column > p:not(.is-style-mm-eyebrow) { max-width: 40rem; }

/* ---------- Testimonials: heading beside a rotating carousel on forest ---------- */
.mm-testimonials-cols { gap: var(--wp--preset--spacing--70) !important; }
.mm-testimonials-cols h2 { margin-top: 0.5rem; }
.mm-testimonial {
	margin: 0 0 var(--wp--preset--spacing--60);
	padding: 0;
	border: 0;
	font-style: normal;
}
.mm-testimonial::before {
	content: "";
	display: block;
	width: 44px;
	height: 34px;
	margin-bottom: 1.1rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 34' fill='%2386D9A8'%3E%3Cpath d='M0 34V20C0 9 6 2 18 0l2 6c-6 2-9 5-9 10h8v18zM24 34V20C24 9 30 2 42 0l2 6c-6 2-9 5-9 10h8v18z'/%3E%3C/svg%3E") left center / contain no-repeat;
}
.mm-testimonial p {
	font-size: var(--wp--preset--font-size--large);
	font-style: normal;
	line-height: 1.55;
	color: var(--wp--preset--color--base);
	margin: 0;
}
.mm-testimonial cite {
	display: block;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	color: var(--wp--preset--color--mint);
}
.mm-testimonial cite strong { color: var(--wp--preset--color--leaf); font-size: 1.05rem; font-weight: 700; }

@media (min-width: 782px) {
	.mm-bio-rev { flex-direction: row-reverse; }
	.mm-bio .is-style-mm-polaroid { position: sticky; top: 120px; }
}
@media (max-width: 781px) {
	.mm-bio { gap: var(--wp--preset--spacing--50) !important; padding-block: var(--wp--preset--spacing--60); }
}

/* About note: three overlapping team polaroids */
.mm-trio { position: relative; aspect-ratio: 1 / 1.08; max-width: 440px; margin-inline: auto; }
.mm-trio > .wp-block-group.is-style-mm-polaroid {
	position: absolute;
	width: 54%;
	max-width: none;
	margin: 0;
	padding: 10px 10px 14px;
}
.mm-trio > .is-style-mm-polaroid:nth-child(1) { top: 2%; left: 0; transform: rotate(-5deg); z-index: 1; }
.mm-trio > .is-style-mm-polaroid:nth-child(2) { top: 0; right: 0; transform: rotate(4deg); z-index: 2; }
.mm-trio > .is-style-mm-polaroid:nth-child(3) { bottom: 0; left: 23%; transform: rotate(-1.5deg); z-index: 3; }
.mm-trio-caption { margin-top: var(--wp--preset--spacing--40); margin-bottom: 0; }

/* Services: match common problems to the right service */
.mm-fit-cols { gap: var(--wp--preset--spacing--70) !important; }
.mm-fit-cols h2 { margin-top: 0.5rem; }
.mm-fit-list { border-bottom: 1px solid var(--wp--preset--color--line); }
.mm-fit-row { margin: 0 !important; border-top: 1px solid var(--wp--preset--color--line); }
.mm-fit-row a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.5rem;
	padding-block: 1.35rem;
	color: inherit;
	text-decoration: none;
}
.mm-fit-row span { font-size: var(--wp--preset--font-size--large); font-weight: 500; }
.mm-fit-row strong { flex: none; color: var(--wp--preset--color--green); }
.mm-fit-row strong::after { content: "↑"; display: inline-block; margin-left: 0.5em; transition: transform 0.2s ease; }
.mm-fit-row a:hover span { color: var(--wp--preset--color--green); }
.mm-fit-row a:hover strong::after { transform: translateY(-3px); }
.mm-fit-quote {
	margin-top: var(--wp--preset--spacing--70);
	padding: clamp(1.75rem, 4vw, 3.25rem);
	border-radius: 28px;
}
.mm-fit-quote .mm-testimonial { margin: 0; max-width: 54rem; }
.mm-fit-quote .mm-testimonial::before { filter: brightness(0.62) saturate(1.3); }
.mm-fit-quote .mm-testimonial p { color: var(--wp--preset--color--contrast); }
.mm-fit-quote .mm-testimonial cite { color: var(--wp--preset--color--slate); border-top-color: rgba(23, 122, 85, 0.2); }
.mm-fit-quote .mm-testimonial cite strong { color: var(--wp--preset--color--forest); }
@media (max-width: 781px) {
	.mm-fit-cols { gap: var(--wp--preset--spacing--40) !important; }
	.mm-fit-row a { flex-direction: column; gap: 0.25rem; padding-block: 1.1rem; }
}

/* ---------- Page heroes: About, FAQ, Contact and a shorter Blog ---------- */
.mm-page-hero {
	overflow: clip;
	padding-block: var(--wp--preset--spacing--60);
	background-image: url("assets/images/services/rings.svg");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: min(50vw, 620px);
}
.mm-page-hero-cols { min-height: min(58vh, 460px); }
.mm-page-hero h1 {
	font-size: clamp(2.5rem, 4.4vw, 3.75rem);
	line-height: 1.06;
	margin-block: 0.75rem 1.25rem;
}
.mm-page-hero .has-large-font-size { margin: 0; max-width: 34rem; }
.mm-page-hero a { color: var(--wp--preset--color--leaf); }
.mm-page-hero-art { aspect-ratio: 640 / 480; max-height: 440px; margin-inline: auto; background: center / contain no-repeat; }
.mm-hero-about .mm-page-hero-art { background-image: url("assets/images/heroes/about.svg?v=3"); }
.mm-hero-faq .mm-page-hero-art { background-image: url("assets/images/heroes/faq.svg"); }
.mm-hero-contact .mm-page-hero-art { background-image: url("assets/images/heroes/contact.svg"); }
.mm-hero-blog { padding-block: var(--wp--preset--spacing--50); }
.mm-hero-blog .mm-page-hero-cols { min-height: 0; }
.mm-hero-blog h1 { font-size: clamp(2.25rem, 3.6vw, 3rem); }
.mm-hero-blog .mm-page-hero-art { aspect-ratio: 460 / 220; max-height: 210px; background-image: url("assets/images/heroes/blog.svg"); }
@media (max-width: 781px) {
	.mm-page-hero-cols { min-height: 0; gap: var(--wp--preset--spacing--40); }
	.mm-page-hero-art { max-height: 280px; }
	.mm-hero-blog .mm-page-hero-art { display: none; }
}

/* Keep the email address on one line in the footer and the Contact page card */
.mm-footer a[href^="mailto:"] { display: inline-block; font-size: 0.8em; white-space: nowrap; }
.is-style-mm-card a[href^="mailto:"] { display: inline-block; white-space: nowrap; }
@media (min-width: 782px) and (max-width: 1200px) {
	.mm-footer a[href^="mailto:"] { font-size: min(0.8em, 1.4vw); }
	.is-style-mm-card a[href^="mailto:"] { font-size: min(1em, 1.55vw); }
}
@media (max-width: 781px) {
	.has-mint-background-color.is-style-mm-card { padding-inline: 20px !important; }
	.is-style-mm-card a[href^="mailto:"] { font-size: 3.6vw; }
}

/* Blog: message shown until the first post is published */
.mm-blog-empty { max-width: 38rem; margin-inline: auto; padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
.mm-blog-empty p:first-child { margin-bottom: 0.75rem; }

/* Testimonial carousel: quotes share one grid cell, so the height stays steady as they change */
.mm-carousel { display: grid; }
.mm-carousel > .mm-testimonial {
	grid-area: 1 / 1;
	margin: 0;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.45s ease, visibility 0.45s;
}
.mm-carousel:not(.is-ready) > .mm-testimonial:first-child,
.mm-carousel > .mm-testimonial.is-active { visibility: visible; opacity: 1; }
.editor-styles-wrapper .mm-carousel { display: block; }
.editor-styles-wrapper .mm-carousel > .mm-testimonial { margin-bottom: 2rem; visibility: visible; opacity: 1; }
.mm-carousel-nav { display: flex; align-items: center; gap: 0.75rem; margin-top: var(--wp--preset--spacing--30); }
.mm-carousel-arrow {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--base);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mm-carousel-arrow:hover { background: var(--wp--preset--color--leaf); border-color: var(--wp--preset--color--leaf); color: var(--wp--preset--color--forest); }
.mm-carousel-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-carousel-arrow:last-child { margin-left: auto; }
.mm-carousel-dots { display: flex; align-items: center; }
.mm-carousel-dot {
	position: relative;
	width: 28px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.mm-carousel-dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.mm-carousel-dot:hover::before { background: var(--wp--preset--color--mint); }
.mm-carousel-dot.is-active::before { background: var(--wp--preset--color--leaf); transform: scale(1.25); }
.mm-carousel-arrow:focus-visible,
.mm-carousel-dot:focus-visible { outline: 2px solid var(--wp--preset--color--leaf); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.mm-carousel > .mm-testimonial { transition: none; }
}
@media (max-width: 781px) {
	.mm-testimonials-cols { gap: var(--wp--preset--spacing--40) !important; }
}
.mm-testimonial.is-long:not(.is-expanded) p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	overflow: hidden;
}
.mm-quote-more {
	margin-top: 0.75rem;
	padding: 0.25rem 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--leaf);
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}
.mm-quote-more:focus-visible { outline: 2px solid var(--wp--preset--color--leaf); outline-offset: 2px; }
@media (max-width: 781px) {
	.mm-testimonial.is-long:not(.is-expanded) p { -webkit-line-clamp: 7; line-clamp: 7; }
}
@media (max-width: 480px) {
	.mm-testimonial.is-long:not(.is-expanded) p { -webkit-line-clamp: 12; line-clamp: 12; }
}
@media (max-width: 400px) {
	.mm-carousel-nav { gap: 0.35rem; }
	.mm-carousel-dot { width: 18px; }
	.mm-carousel-arrow { width: 40px; height: 40px; }
}

/* ---------- Intro animations (driven by assets/js/reveal.js) ---------- */
html.mm-anim { --mm-rise: 28px; --mm-reveal-time: 0.8s; }
/* Hide the page until reveal.js has tagged it, so nothing flashes before animating */
html.mm-anim:not(.mm-anim-ready) main,
html.mm-anim:not(.mm-anim-ready) .mm-footer { opacity: 0; }
/* The hidden start state applies instantly; the transition only exists once is-in is added */
.mm-reveal { opacity: 0; }
.wp-block-separator.is-style-mm-accent.mm-reveal:not(.is-in) { opacity: 0; }
.mm-reveal:not(.mm-reveal-fade) { translate: 0 var(--mm-rise); }
.mm-reveal-zoom { scale: 0.96; }
.mm-reveal.is-in {
	opacity: 1;
	transition:
		opacity var(--mm-reveal-time) ease-out var(--mm-delay, 0ms),
		translate var(--mm-reveal-time) cubic-bezier(0.2, 0.7, 0.2, 1) var(--mm-delay, 0ms),
		scale var(--mm-reveal-time) cubic-bezier(0.2, 0.7, 0.2, 1) var(--mm-delay, 0ms);
}
.mm-reveal.is-in:not(.mm-reveal-fade) { translate: 0 0; }
.mm-reveal-zoom.is-in { scale: 1; }
html.mm-anim .mm-header { animation: mm-header-in 0.6s ease-out backwards; }
@keyframes mm-header-in { from { opacity: 0; translate: 0 -12px; } }
@media (max-width: 781px) {
	html.mm-anim { --mm-rise: 18px; --mm-reveal-time: 0.6s; }
}
@media (prefers-reduced-motion: reduce) {
	.mm-reveal,
	html.mm-anim .mm-header { opacity: 1; translate: none; scale: none; transition: none; animation: none; }
}
@media print {
	html.mm-anim main,
	html.mm-anim .mm-footer,
	.mm-reveal { opacity: 1 !important; translate: none !important; scale: none !important; }
}
