/**
 * Landing content blocks for Mr Fix.
 *
 * Hand-written styles for the long-copy blocks of the service pages, kept out
 * of the Tailwind build so they survive a rebuild of style.css:
 *
 * - .mf-lpz  Landing — Zigzag (text + photo)        template-parts/blocks/lp_zigzag.php
 * - .mf-lpc  Landing — Centred copy + cards          template-parts/blocks/lp_centered.php
 * - .mf-prose  rich text (paragraphs, lists, H3/H4) inside those blocks
 * - .mf-lp-btn  their buttons (mrfix_lp_buttons())
 * - .mf-lpn-*   list and second button of Landing — Service area
 * - .mf-faq-q   question headings of Landing — FAQs
 *
 * Backgrounds: .mf-lp--white, .mf-lp--pale, .mf-lp--navy (dark band).
 * Breakpoints follow the theme: tablet under 1024px, phone under 768px.
 */

:root {
	--mf-lp-brand: #24a5d7;
	--mf-lp-brand-dark: #1a8ebb;
	--mf-lp-deep: #083f54;
	--mf-lp-navy: #08202a;
	--mf-lp-ink: #0f0f0f;
	--mf-lp-text: #1b1b1b;
	--mf-lp-muted: #44515e;
	--mf-lp-pale: #f1fbff;
	--mf-lp-tint: #e8f9ff;
	--mf-lp-line: #d3ebf6;
}

/* Section shell ------------------------------------------------------------ */

.mf-lpz,
.mf-lpc {
	padding-block: 100px;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	color: var(--mf-lp-text);
	background: #fff;
}

.mf-lp--pale {
	background: var(--mf-lp-pale);
}

/* The dark band the page already uses for its checklist and specials. */
.mf-lp--navy {
	background: radial-gradient(120% 130% at 50% 0%, #0c4a62 0%, var(--mf-lp-navy) 60%, #041319 100%);
	color: rgba(255, 255, 255, 0.88);
}

/* Two blocks on the same background read as one section: no double padding. */
.mf-lp--white + .mf-lp--white,
.mf-lp--pale + .mf-lp--pale {
	padding-top: 0;
}

.mf-lpz__inner,
.mf-lpc__inner {
	width: min(1240px, 100% - 48px);
	margin-inline: auto;
}

.mf-lp-title {
	margin: 0;
	font-family: "Anton", Impact, sans-serif;
	font-size: 64px;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -1px;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--mf-lp-ink);
}

.mf-lp--navy .mf-lp-title {
	color: #fff;
}

/* Rich text ---------------------------------------------------------------- */

.mf-prose {
	font-size: 20px;
	line-height: 1.6;
	letter-spacing: -0.3px;
}

.mf-lp-title + .mf-prose {
	margin-top: 24px;
}

.mf-prose > * {
	margin: 0;
}

.mf-prose > * + * {
	margin-top: 18px;
}

.mf-prose strong,
.mf-prose b {
	font-weight: 700;
}

.mf-prose a {
	color: var(--mf-lp-brand-dark);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mf-prose a:hover {
	color: var(--mf-lp-deep);
}

.mf-prose h3,
.mf-prose h4 {
	font-family: "Anton", Impact, sans-serif;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.5px;
	text-transform: uppercase;
	color: var(--mf-lp-ink);
}

.mf-prose h3 {
	font-size: 34px;
}

.mf-prose h4 {
	font-size: 28px;
}

.mf-prose > h3,
.mf-prose > h4 {
	margin-top: 40px;
}

.mf-prose h3 + *,
.mf-prose h4 + * {
	margin-top: 14px;
}

.mf-prose ul,
.mf-prose ol {
	padding: 0;
	list-style: none;
}

.mf-prose li {
	position: relative;
	padding-left: 30px;
}

.mf-prose li + li {
	margin-top: 10px;
}

.mf-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 6px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--mf-lp-brand);
}

.mf-prose ol {
	counter-reset: mf-ol;
}

.mf-prose ol > li {
	counter-increment: mf-ol;
}

.mf-prose ol > li::before {
	content: counter(mf-ol) ".";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--mf-lp-brand-dark);
}

/* A set-apart panel inside the copy, e.g. "What to do while you wait". */
.mf-prose .mf-callout {
	margin-top: 32px;
	padding: 30px 32px 32px;
	border-radius: 16px;
	background: var(--mf-lp-pale);
}

.mf-lp--pale .mf-prose .mf-callout {
	background: #fff;
}

.mf-prose .mf-callout > * {
	margin: 0;
}

.mf-prose .mf-callout > * + * {
	margin-top: 16px;
}

.mf-prose .mf-callout h3,
.mf-prose .mf-callout h4 {
	font-size: 28px;
}

.mf-prose .mf-callout li {
	font-size: 18px;
}

/* Buttons ------------------------------------------------------------------ */

.mf-lp-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 36px;
}

.mf-lp-btns--center {
	justify-content: center;
}

.mf-lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 72px;
	padding: 18px 30px;
	border: 2px solid var(--mf-lp-brand);
	font-family: "Anton", Impact, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mf-lp-btn--solid {
	background: var(--mf-lp-brand);
	color: #fff;
}

.mf-lp-btn--solid:hover,
.mf-lp-btn--solid:focus-visible {
	border-color: var(--mf-lp-brand-dark);
	background: var(--mf-lp-brand-dark);
	color: #fff;
}

/* One colour for edge and label, so the secondary reads as a single shape. */
.mf-lp-btn--outline {
	border-color: var(--mf-lp-deep);
	background: transparent;
	color: var(--mf-lp-deep);
}

.mf-lp-btn--outline:hover,
.mf-lp-btn--outline:focus-visible {
	background: var(--mf-lp-deep);
	color: #fff;
}

.mf-lp--navy .mf-lp-btn--outline {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.mf-lp--navy .mf-lp-btn--outline:hover,
.mf-lp--navy .mf-lp-btn--outline:focus-visible {
	border-color: #fff;
	background: #fff;
	color: var(--mf-lp-navy);
}

.mf-lp-btn:focus-visible {
	outline: 3px solid var(--mf-lp-deep);
	outline-offset: 3px;
}

.mf-lp--navy .mf-lp-btn:focus-visible {
	outline-color: #fff;
}

.mf-lp-btn__icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	overflow: hidden;
	font-size: 1em;
	line-height: 1;
	font-variation-settings: "FILL" 1;
}

/* Zigzag ------------------------------------------------------------------- */

.mf-lpz__inner {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 80px;
}

.mf-lpz--media-left .mf-lpz__inner {
	flex-direction: row-reverse;
}

.mf-lpz__copy {
	flex: 1 1 0;
	align-self: center;
	min-width: 0;
	max-width: 660px;
}

.mf-lpz--no-media .mf-lpz__copy {
	max-width: 860px;
	margin-inline: auto;
}

/*
 * The photo column is as tall as the copy. The picture fills it up to 760px;
 * beside longer copy it stays in view while the text scrolls past.
 */
.mf-lpz__media {
	flex: 0 0 500px;
	width: 500px;
	min-width: 0;
	max-width: 100%;
	margin: 0;
}

.mf-lpz__img {
	position: sticky;
	top: 110px;
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-height: 560px;
	max-height: 900px;
	border-radius: 20px;
	object-fit: cover;
	object-position: center 30%;
}

/* Both buttons share the row; the list under them is plain, in two columns. */
.mf-lpz .mf-lp-btn {
	flex: 1 1 auto;
}

.mf-lpz .mf-lp-btn:only-child {
	flex: 0 1 auto;
	min-width: 320px;
}

.mf-lpz__ticks {
	columns: 2;
	column-gap: 36px;
	margin: 34px 0 0;
	padding: 28px 0 0;
	border-top: 1px solid var(--mf-lp-line);
	list-style: none;
}

.mf-lp--navy .mf-lpz__ticks {
	border-top-color: rgba(255, 255, 255, 0.18);
}

.mf-lpz__ticks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-block: 7px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.2px;
	break-inside: avoid;
}

.mf-lpz__tick {
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1em;
	margin-top: 1px;
	overflow: hidden;
	font-size: 24px;
	line-height: 1;
	color: var(--mf-lp-brand);
	font-variation-settings: "FILL" 1;
}

/* Centred copy + cards ----------------------------------------------------- */

.mf-lpc__head {
	max-width: 960px;
	margin-inline: auto;
	text-align: center;
}

.mf-lpc--center .mf-lpc__intro {
	max-width: 760px;
	margin-inline: auto;
}

/* Long copy: about 75 characters a line. */
.mf-lpc--left .mf-lpc__intro {
	max-width: 760px;
	margin-inline: auto;
	text-align: left;
}

.mf-lpc--center .mf-lpc__intro ul,
.mf-lpc--center .mf-lpc__intro ol {
	display: inline-block;
	text-align: left;
}

/* Cards break out of the 1240px text column so four fit comfortably. */
.mf-lpc__carousel,
.mf-lpc__cards--grid {
	width: min(1440px, 100vw - 48px);
	margin: 52px 0 0 50%;
	translate: -50% 0;
}

.mf-lpc__cards {
	--mf-gap: 24px;
	--mf-vis: var(--mf-cols);
	display: flex;
	gap: var(--mf-gap);
	padding: 0;
	list-style: none;
}

.mf-lpc__cards--grid {
	flex-wrap: wrap;
	justify-content: center;
}

.mf-lpc__card {
	display: flex;
	flex: 0 0 calc((100% - (var(--mf-vis) - 1) * var(--mf-gap)) / var(--mf-vis));
	flex-direction: column;
	min-width: 0;
	padding: 32px 30px 34px;
	border: 1px solid #dbe9f0;
	border-radius: 18px;
	background: #fff;
	color: var(--mf-lp-text);
	box-shadow: 0 1px 2px rgba(8, 63, 84, 0.04), 0 14px 34px rgba(8, 63, 84, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mf-lpc__card:hover {
	border-color: var(--mf-lp-brand);
	box-shadow: 0 2px 4px rgba(8, 63, 84, 0.05), 0 22px 44px rgba(8, 63, 84, 0.14);
	transform: translateY(-3px);
}

.mf-lp--navy .mf-lpc__card {
	border-color: transparent;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.mf-lp--navy .mf-lpc__card:hover {
	border-color: var(--mf-lp-brand);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

/* Deep tile, light icon: about 9:1 between them. */
.mf-lpc__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 14px;
	background: var(--mf-lp-deep);
	color: #9ee2fb;
}

.mf-lpc__icon--image {
	background: var(--mf-lp-tint);
}

.mf-lpc__icon .material-symbols-outlined {
	display: inline-block;
	width: 1em;
	height: 1em;
	overflow: hidden;
	font-size: 32px;
	line-height: 1;
	font-variation-settings: "FILL" 1;
}

.mf-lpc__icon img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

/* Two lines reserved, so the copy starts level across a row of cards. */
.mf-lpc__card-title {
	min-height: 2.3em;
	margin: 24px 0 0;
	font-family: "Anton", Impact, sans-serif;
	font-size: 25px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.3px;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--mf-lp-ink);
}

.mf-lpc__card-text {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.65;
	letter-spacing: -0.1px;
	color: var(--mf-lp-muted);
}

/* Carousel: a native scroller with snap; the script adds the two arrows. */
.mf-lpc__track {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	/* Room for the card shadow and the hover lift, which the scroller would clip. */
	margin: -12px -6px 0;
	padding: 12px 6px 32px;
	scroll-padding-inline: 6px;
}

.mf-lpc__track::-webkit-scrollbar {
	display: none;
}

.mf-lpc__track:focus-visible {
	outline: 3px solid var(--mf-lp-brand);
	outline-offset: 4px;
	border-radius: 18px;
}

.mf-lpc__cards--carousel > .mf-lpc__card {
	scroll-snap-align: start;
}

.mf-lpc__carousel {
	position: relative;
}

/*
 * One round arrow on each edge of the row, half over the outer card. An arrow
 * is only there while the row can still scroll that way.
 */
.mf-lpc__nav {
	position: absolute;
	inset: 0 -22px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.mf-lpc__nav[hidden],
.mf-lpc__arrow[hidden] {
	display: none;
}

.mf-lpc__arrow {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(8, 63, 84, 0.12);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	color: var(--mf-lp-deep);
	box-shadow: 0 6px 18px rgba(8, 32, 42, 0.18);
	cursor: pointer;
	pointer-events: auto;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mf-lpc__arrow--next {
	margin-left: auto;
}

.mf-lpc__arrow:hover,
.mf-lpc__arrow:focus-visible {
	background: var(--mf-lp-brand);
	color: #fff;
}

.mf-lpc__arrow:focus-visible {
	outline: 3px solid var(--mf-lp-deep);
	outline-offset: 3px;
}

.mf-lp--navy .mf-lpc__arrow:focus-visible {
	outline-color: #fff;
}

.mf-lpc__carousel + .mf-lp-btns {
	margin-top: 20px;
}

.mf-lpc__outro {
	max-width: 760px;
	margin: 48px auto 0;
	font-weight: 600;
	text-align: center;
	text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
	.mf-lpc__card,
	.mf-lpc__card:hover {
		transform: none;
		transition: none;
	}

	.mf-lpc__arrow {
		transition: none;
	}
}

/* Landing — Service area: area list and second button ---------------------- */

.mf-lpn-text > * + * {
	margin-top: 20px;
}

.mf-lpn-text ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 40px;
	margin-block: 30px;
	padding: 0;
	list-style: none;
}

.mf-lpn-text li {
	position: relative;
	padding-left: 32px;
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: -0.2px;
}

.mf-lpn-text li::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 0;
	width: 22px;
	height: 22px;
	background: var(--mf-lp-brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Closing row under the tracker and map: copy on the left, button on the right. */
.mf-lpn-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	margin-top: 44px;
	padding-top: 36px;
	border-top: 1px solid var(--mf-lp-line);
}

.mf-lpn-foot__text {
	max-width: 760px;
	margin: 0 !important;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -0.5px;
	text-wrap: balance;
}

.mf-lpn-foot .mf-lpn-btns {
	flex: none;
	margin-top: 0;
}

/*
 * Reviews heading + review strip as one band.
 *
 * When the two-review strip sits straight under "What Sydney Locals Are
 * Saying", the heading takes the strip's pale background and the reviews
 * become white cards, so the pair reads as a single section.
 */
.mf-sec-testimonials:has(+ .mf-sec-reviews) {
	padding-bottom: 0;
	background: var(--mf-lp-pale);
}

.mf-sec-testimonials + .mf-sec-reviews {
	padding-block: 44px 90px;
}

.mf-sec-testimonials + .mf-sec-reviews > ul {
	align-items: stretch;
	justify-content: center;
	gap: 24px;
}

.mf-sec-testimonials + .mf-sec-reviews li {
	display: flex;
	margin: 0;
}

.mf-sec-testimonials + .mf-sec-reviews figure {
	flex: 1;
	padding: 18px 26px 18px 18px;
	border: 1px solid #dbe9f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(8, 63, 84, 0.04), 0 12px 30px rgba(8, 63, 84, 0.07);
}

/* Landing — FAQs: a heading inside <summary> looks like the plain question. */

summary .mf-faq-q {
	margin: 0;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	color: inherit;
}

/* Small desktop: three cards a row -------------------------------------------- */

@media (max-width: 1279.98px) {
	.mf-lpc__carousel,
	.mf-lpc__cards--grid {
		width: min(1240px, 100vw - 48px);
	}

	.mf-lpc__cards {
		--mf-vis: min(var(--mf-cols), 3);
	}

	.mf-lpz__inner {
		gap: 56px;
	}

	.mf-lpz__media {
		flex-basis: 420px;
		width: 420px;
	}
}

/* Tablet ------------------------------------------------------------------- */

@media (max-width: 1023.98px) {
	.mf-lpz,
	.mf-lpc {
		padding-block: 80px;
	}

	.mf-lpz__inner,
	.mf-lpc__inner {
		width: calc(100% - 100px);
	}

	.mf-lp-title {
		font-size: 54px;
	}

	.mf-lpz__inner,
	.mf-lpz--media-left .mf-lpz__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 50px;
	}

	.mf-lpz__copy {
		align-self: auto;
		max-width: none;
	}

	.mf-lpz__media {
		flex-basis: auto;
		width: 100%;
	}

	.mf-lpz__img {
		position: static;
		height: 560px;
		min-height: 0;
		max-height: none;
	}

	.mf-lpc__carousel,
	.mf-lpc__cards--grid {
		width: 100%;
		margin-left: 0;
		translate: none;
	}

	.mf-lpc__cards {
		--mf-vis: min(var(--mf-cols), 2);
	}

	.mf-lpn-text ul {
		grid-template-columns: 1fr;
	}

	.mf-lpn-foot {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Phone -------------------------------------------------------------------- */

@media (max-width: 767.98px) {
	.mf-lpz,
	.mf-lpc {
		padding-block: 60px;
	}

	.mf-lpz__inner,
	.mf-lpc__inner {
		width: calc(100% - 50px);
	}

	.mf-lp-title {
		font-size: 42px;
		letter-spacing: -0.2px;
	}

	.mf-prose {
		font-size: 18px;
		line-height: 1.55;
	}

	.mf-prose h3 {
		font-size: 28px;
	}

	.mf-prose h4 {
		font-size: 24px;
	}

	.mf-prose .mf-callout {
		padding: 24px 22px 26px;
	}

	.mf-prose .mf-callout h3,
	.mf-prose .mf-callout h4 {
		font-size: 24px;
	}

	.mf-prose .mf-callout li {
		font-size: 17px;
	}

	.mf-lpz__ticks {
		columns: 1;
		margin-top: 28px;
		padding-top: 22px;
	}

	.mf-lpz__ticks li {
		font-size: 17px;
	}

	.mf-lpz__img {
		height: 440px;
		border-radius: 16px;
	}

	.mf-lpc__carousel,
	.mf-lpc__cards--grid {
		margin-top: 36px;
	}

	.mf-lpc__cards--grid {
		--mf-vis: 1;
	}

	/* One card and a slice of the next, so the row reads as swipeable. */
	.mf-lpc__cards--carousel > .mf-lpc__card {
		flex-basis: 86%;
	}

	.mf-lpc__card {
		padding: 26px 24px 28px;
	}

	.mf-lpc__card-title {
		min-height: 0;
		font-size: 24px;
	}

	.mf-lpc__outro {
		margin-top: 36px;
	}

	.mf-lp-btns {
		flex-direction: column;
		margin-top: 30px;
	}

	.mf-lp-btn,
	.mf-lpz .mf-lp-btn:only-child {
		width: 100%;
		min-width: 0;
		min-height: 64px;
		padding-inline: 16px;
		font-size: 22px;
		white-space: normal;
	}

	.mf-lpn-text li {
		font-size: 17px;
	}

	/* Phones run the map edge to edge with no space under it, so the row brings its own. */
	.mf-lpn-foot {
		margin-top: 0;
		padding: 34px 25px 60px;
		border-top: 0;
	}

	.mf-lpn-foot__text {
		font-size: 19px;
	}

	.mf-sec-testimonials + .mf-sec-reviews {
		padding-block: 30px 60px;
	}

	.mf-sec-testimonials + .mf-sec-reviews figure {
		padding: 18px;
	}

	.mf-lpn-foot .mf-lpn-btns {
		width: 100%;
	}
}
