/*
 * Rapid Flatpack — theme stylesheet
 *
 * 1. Fonts
 * 2. Design tokens
 * 3. Base and reset
 * 4. Layout primitives
 * 5. Buttons and forms
 * 6. Header and navigation
 * 7. Hero and page headers
 * 8. Cards, grids and sections
 * 9. Reviews, steps and features
 * 10. Prose
 * 11. Footer
 * 12. Utilities and motion
 */

/* ---------------------------------------------------------------- 1. Fonts */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
		U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
		U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
		U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
		U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------- 2. Design tokens */

:root {
	--rf-ink: #0f1b2d;
	--rf-ink-soft: #1d2c42;
	--rf-body: #4b5768;
	--rf-muted: #74808f;
	--rf-line: #e2e4e6;
	--rf-line-soft: #eeefed;
	--rf-surface: #ffffff;
	--rf-surface-2: #f8f7f3;
	--rf-surface-3: #efeee9;

	--rf-accent: #ef6a1a;
	--rf-accent-600: #d4560c;
	--rf-accent-700: #b04607;
	--rf-accent-soft: #fff2e8;
	--rf-accent-ink: #7a3405;

	--rf-radius-sm: 10px;
	--rf-radius: 16px;
	--rf-radius-lg: 20px;
	--rf-radius-pill: 999px;

	--rf-shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .04);
	--rf-shadow: 0 4px 12px rgba(15, 27, 45, .06), 0 12px 28px rgba(15, 27, 45, .045);
	--rf-shadow-lg: 0 18px 45px rgba(15, 27, 45, .16);

	--rf-container: 1200px;
	--rf-gutter: clamp(1.15rem, 4vw, 2.5rem);
	--rf-section-y: clamp(3.75rem, 8vw, 7rem);

	--rf-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
		"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--rf-step--1: clamp(.82rem, .8rem + .1vw, .875rem);
	--rf-step-0: clamp(1rem, .97rem + .15vw, 1.0625rem);
	--rf-step-1: clamp(1.125rem, 1.07rem + .3vw, 1.25rem);
	--rf-step-2: clamp(1.35rem, 1.24rem + .55vw, 1.65rem);
	--rf-step-3: clamp(1.65rem, 1.42rem + 1.1vw, 2.3rem);
	--rf-step-4: clamp(2.05rem, 1.6rem + 2.1vw, 3.35rem);
	--rf-step-5: clamp(2.4rem, 1.75rem + 3vw, 4.1rem);
}

/* ------------------------------------------------------- 3. Base and reset */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
	overflow-x: clip;
}

@supports not (overflow: clip) {
	html {
		overflow-x: hidden;
	}
}

body {
	margin: 0;
	background: var(--rf-surface);
	color: var(--rf-body);
	font-family: var(--rf-font);
	font-size: var(--rf-step-0);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--rf-ink);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.021em;
	text-wrap: balance;
}

p, ul, ol, figure, blockquote, table {
	margin: 0 0 1.15em;
}

a {
	color: var(--rf-accent-700);
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--rf-accent-600);
}

img, svg, video {
	max-width: 100%;
	height: auto;
	display: block;
}

button {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--rf-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.rf-skip {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 999;
	padding: .75rem 1.15rem;
	background: var(--rf-ink);
	color: #fff;
	border-radius: 0 0 var(--rf-radius-sm) var(--rf-radius-sm);
	text-decoration: none;
	font-weight: 700;
}

.rf-skip:focus {
	top: 0;
	color: #fff;
}

.rf-icon {
	flex: none;
}

.rf-icon--flip {
	transform: scaleX(-1);
}

/* --------------------------------------------------- 4. Layout primitives */

.rf-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.rf-main {
	flex: 1 0 auto;
}

.rf-container {
	width: 100%;
	max-width: var(--rf-container);
	margin-inline: auto;
	padding-inline: var(--rf-gutter);
}

.rf-section {
	padding-block: var(--rf-section-y);
}

.rf-section--muted {
	background: var(--rf-surface-2);
	border-block: 1px solid var(--rf-line-soft);
}

.rf-section__foot {
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	text-align: center;
}

.rf-eyebrow {
	margin: 0 0 .7rem;
	color: var(--rf-accent-700);
	font-size: var(--rf-step--1);
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.rf-eyebrow--light {
	color: #ffb783;
}

.rf-sechead {
	max-width: 44rem;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.rf-sechead--center {
	margin-inline: auto;
	text-align: center;
}

.rf-sechead__title {
	font-size: var(--rf-step-3);
	margin-bottom: .45em;
}

.rf-sechead__lead {
	margin: 0;
	font-size: var(--rf-step-1);
	color: var(--rf-body);
}

/* ------------------------------------------------- 5. Buttons and forms */

.rf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}

.rf-actions--hero,
.rf-actions--head {
	margin-top: 2rem;
}

.rf-actions--band {
	flex: 0 1 auto;
}

.rf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .8rem 1.35rem;
	border: 1px solid transparent;
	border-radius: var(--rf-radius-pill);
	font-size: var(--rf-step-0);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease,
		transform .18s ease, box-shadow .18s ease;
}

.rf-btn--sm {
	padding: .6rem 1.05rem;
	font-size: var(--rf-step--1);
}

.rf-btn--lg {
	padding: 1rem 1.75rem;
	font-size: var(--rf-step-1);
}

.rf-btn--full {
	width: 100%;
}

.rf-btn--primary {
	background: var(--rf-accent);
	border-color: var(--rf-accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(239, 106, 26, .28);
}

.rf-btn--primary:hover,
.rf-btn--primary:focus-visible {
	background: var(--rf-accent-600);
	border-color: var(--rf-accent-600);
	color: #fff;
	transform: translateY(-1px);
}

.rf-btn--ghost {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .38);
	color: #fff;
}

.rf-btn--ghost:hover,
.rf-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, .18);
	border-color: #fff;
	color: #fff;
}

.rf-btn--outline {
	background: transparent;
	border-color: var(--rf-line);
	color: var(--rf-ink);
}

.rf-btn--outline:hover,
.rf-btn--outline:focus-visible {
	border-color: var(--rf-accent);
	color: var(--rf-accent-700);
	background: var(--rf-accent-soft);
}

/* On light sections the ghost button needs an ink treatment. */
.rf-section .rf-btn--ghost,
.rf-pagehead .rf-btn--ghost,
.rf-servicehead .rf-btn--ghost,
.rf-footer .rf-btn--ghost {
	background: var(--rf-surface);
	border-color: var(--rf-line);
	color: var(--rf-ink);
}

.rf-section .rf-btn--ghost:hover,
.rf-pagehead .rf-btn--ghost:hover,
.rf-servicehead .rf-btn--ghost:hover,
.rf-footer .rf-btn--ghost:hover {
	border-color: #25d366;
	color: #0f6b32;
	background: #eefbf2;
}

.rf-input,
.rf-textarea,
.rf-select {
	width: 100%;
	padding: .8rem 1rem;
	background: var(--rf-surface);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-sm);
	color: var(--rf-ink);
	font: inherit;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.rf-textarea {
	min-height: 9.5rem;
	resize: vertical;
}

.rf-input:focus,
.rf-textarea:focus,
.rf-select:focus {
	outline: none;
	border-color: var(--rf-accent);
	box-shadow: 0 0 0 3px rgba(239, 106, 26, .18);
}

.rf-searchform {
	display: flex;
	gap: .6rem;
	max-width: 30rem;
	margin-inline: auto;
}

/* ------------------------------------------ 6. Header and navigation */

.rf-topbar {
	background: var(--rf-ink);
	color: rgba(255, 255, 255, .82);
	font-size: var(--rf-step--1);
}

.rf-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 2.65rem;
}

.rf-topbar__note,
.rf-topbar__link {
	display: flex;
	align-items: center;
	gap: .45rem;
	margin: 0;
}

.rf-topbar__note .rf-icon {
	color: var(--rf-accent);
}

.rf-topbar__link {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.rf-topbar__link:hover {
	color: #ffc9a5;
}

.rf-topbar__number {
	color: rgba(255, 255, 255, .72);
	font-weight: 600;
}

@media (max-width: 40rem) {
	.rf-topbar__note {
		display: none;
	}

	.rf-topbar__inner {
		justify-content: center;
	}
}

.rf-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: transparent;
	border-bottom: 1px solid var(--rf-line-soft);
	transition: box-shadow .2s ease;
}

/*
 * The translucent background and blur live on a pseudo-element rather than on
 * .rf-header itself. A backdrop-filter makes an element the containing block
 * for its fixed-position descendants, which would trap the mobile navigation
 * drawer inside the header instead of letting it fill the viewport.
 */
.rf-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(150%) blur(10px);
}

.rf-header.is-stuck {
	box-shadow: var(--rf-shadow-sm);
}

.rf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.5rem;
}

.rf-brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	color: var(--rf-ink);
	text-decoration: none;
	font-weight: 800;
}

.rf-brand__mark {
	width: 2.6rem;
	height: auto;
	color: var(--rf-accent);
	flex: none;
}

.rf-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.rf-brand__name {
	font-size: var(--rf-step-1);
	letter-spacing: -.02em;
}

.rf-brand__tag {
	color: var(--rf-muted);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .01em;
}

.custom-logo-link img {
	max-height: 3rem;
	width: auto;
}

.rf-navtoggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.9rem;
	height: 2.9rem;
	padding: 0;
	background: var(--rf-surface-2);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-sm);
	color: var(--rf-ink);
	cursor: pointer;
}

.rf-navtoggle__close {
	display: none;
}

.rf-navtoggle[aria-expanded="true"] .rf-navtoggle__open {
	display: none;
}

.rf-navtoggle[aria-expanded="true"] .rf-navtoggle__close {
	display: block;
}

.rf-nav {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.rf-menu,
.rf-submenu {
	display: flex;
	align-items: center;
	gap: .35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-menu-item {
	position: relative;
}

.rf-menu-link {
	display: inline-block;
	padding: .55rem .7rem;
	border-radius: var(--rf-radius-sm);
	color: var(--rf-ink);
	font-size: var(--rf-step--1);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: color .16s ease, background-color .16s ease;
}

.rf-menu-link:hover,
.rf-menu-item.current-menu-item > .rf-menu-link,
.rf-menu-item.current-menu-ancestor > .rf-menu-link,
.rf-menu-item.current_page_item > .rf-menu-link {
	color: var(--rf-accent-700);
	background: var(--rf-accent-soft);
}

.rf-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .3rem;
	margin-left: -.4rem;
	background: none;
	border: 0;
	color: var(--rf-muted);
	cursor: pointer;
	border-radius: 50%;
}

.rf-submenu-toggle .rf-icon {
	transition: transform .2s ease;
}

.rf-submenu-toggle[aria-expanded="true"] .rf-icon {
	transform: rotate(180deg);
}

.rf-menu-item--parent > .rf-submenu {
	position: absolute;
	top: calc(100% + .5rem);
	left: 0;
	z-index: 20;
	display: block;
	min-width: 16.5rem;
	padding: .5rem;
	background: var(--rf-surface);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius);
	box-shadow: var(--rf-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.rf-menu-item--parent:hover > .rf-submenu,
.rf-menu-item--parent:focus-within > .rf-submenu,
.rf-menu-item--parent > .rf-submenu.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rf-submenu .rf-menu-link {
	display: block;
	white-space: normal;
}

.rf-nav__actions {
	display: flex;
	gap: .6rem;
}

@media (max-width: 62rem) {
	.rf-navtoggle {
		display: inline-flex;
	}

	.rf-nav {
		position: fixed;
		inset: 0 0 0 auto;
		z-index: 80;
		width: min(22rem, 88vw);
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 5.5rem 1.5rem 2rem;
		background: var(--rf-surface);
		border-left: 1px solid var(--rf-line);
		box-shadow: var(--rf-shadow-lg);
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .28s cubic-bezier(.22, .61, .36, 1), visibility .28s;
	}

	.rf-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.rf-menu {
		flex-direction: column;
		align-items: stretch;
		gap: .15rem;
	}

	.rf-menu-item--parent {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
	}

	.rf-menu-link {
		padding: .8rem .75rem;
		font-size: var(--rf-step-0);
	}

	.rf-submenu-toggle {
		width: 2.5rem;
		height: 2.5rem;
		margin: 0;
		background: var(--rf-surface-2);
	}

	.rf-menu-item--parent > .rf-submenu {
		position: static;
		grid-column: 1 / -1;
		display: none;
		min-width: 0;
		margin: .1rem 0 .5rem .75rem;
		padding: .25rem 0 .25rem .75rem;
		border: 0;
		border-left: 2px solid var(--rf-accent-soft);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.rf-menu-item--parent > .rf-submenu.is-open {
		display: block;
	}

	.rf-menu-item--parent:hover > .rf-submenu:not(.is-open) {
		display: none;
	}

	.rf-nav__actions .rf-btn {
		width: 100%;
	}

	/*
	 * The drawer lives inside .rf-header, which has its own z-index and so its
	 * own stacking context: the drawer's z-index is scoped to that context, not
	 * to the page. The scrim therefore has to sit below the header's index
	 * (60) or it would paint over the drawer and swallow every tap on it. It
	 * stays above the floating WhatsApp button (55).
	 */
	.rf-navscrim {
		position: fixed;
		inset: 0;
		z-index: 58;
		background: rgba(15, 27, 45, .48);
		border: 0;
		opacity: 0;
		visibility: hidden;
		transition: opacity .28s ease, visibility .28s;
	}

	.rf-navscrim.is-open {
		opacity: 1;
		visibility: visible;
	}

	body.rf-nav-open {
		overflow: hidden;
	}
}

/* -------------------------------------------- 7. Hero and page headers */

.rf-hero {
	position: relative;
	overflow: hidden;
	background: var(--rf-ink);
	color: #fff;
}

.rf-hero::before,
.rf-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.rf-hero::before {
	inset: -30% auto auto -15%;
	width: 46rem;
	height: 46rem;
	background: radial-gradient(circle, rgba(239, 106, 26, .34), transparent 62%);
}

.rf-hero::after {
	inset: auto -20% -55% auto;
	width: 40rem;
	height: 40rem;
	background: radial-gradient(circle, rgba(94, 155, 255, .18), transparent 65%);
}

.rf-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	gap: clamp(2rem, 4.5vw, 3.75rem);
	align-items: center;
	padding-block: clamp(3.25rem, 7vw, 6rem);
}

.rf-hero__title {
	margin: 0 0 1rem;
	color: #fff;
	font-size: var(--rf-step-5);
	letter-spacing: -.03em;
}

.rf-hero__lead {
	max-width: 34rem;
	margin: 0;
	color: rgba(255, 255, 255, .82);
	font-size: var(--rf-step-1);
}

.rf-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.5rem;
	margin: 2.15rem 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, .88);
	font-size: var(--rf-step--1);
	font-weight: 600;
}

.rf-hero__points li {
	display: flex;
	align-items: center;
	gap: .45rem;
}

.rf-hero__points .rf-icon {
	color: #6fd693;
}

.rf-hero__media {
	position: relative;
}

.rf-hero__media::before {
	content: "";
	position: absolute;
	inset: 1.25rem -1.25rem -1.25rem 1.25rem;
	border: 2px solid rgba(239, 106, 26, .55);
	border-radius: var(--rf-radius-lg);
}

.rf-hero__img {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--rf-radius-lg);
	box-shadow: var(--rf-shadow-lg);
}

.rf-hero__img--empty {
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .06);
	border: 1px dashed rgba(255, 255, 255, .3);
	color: rgba(255, 255, 255, .5);
}

.rf-hero__caption {
	position: absolute;
	right: .8rem;
	bottom: .8rem;
	z-index: 2;
	margin: 0;
	padding: .45rem .7rem;
	background: rgba(15, 27, 45, .86);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--rf-radius-pill);
	color: #fff;
	font-size: var(--rf-step--1);
	font-weight: 700;
	backdrop-filter: blur(6px);
}

@media (max-width: 56rem) {
	.rf-hero__inner {
		grid-template-columns: 1fr;
	}

	.rf-hero__media::before {
		inset: .85rem -.85rem -.85rem .85rem;
	}
}

.rf-strip {
	background: var(--rf-surface-2);
	border-bottom: 1px solid var(--rf-line-soft);
}

.rf-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 2rem;
	padding-block: 1.35rem;
}

.rf-strip__label {
	margin: 0;
	color: var(--rf-muted);
	font-size: var(--rf-step--1);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.rf-strip__list {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--rf-ink);
	font-weight: 700;
	font-size: var(--rf-step-0);
	opacity: .72;
}

.rf-pagehead {
	padding-block: clamp(2.25rem, 5vw, 3.75rem) clamp(1.5rem, 3vw, 2.25rem);
	background: linear-gradient(180deg, var(--rf-surface-2), var(--rf-surface));
	border-bottom: 1px solid var(--rf-line-soft);
}

.rf-pagehead--wide {
	padding-bottom: clamp(2rem, 4vw, 3rem);
}

.rf-pagehead__title {
	max-width: 22ch;
	margin: 0;
	font-size: var(--rf-step-4);
}

.rf-pagehead__lead {
	max-width: 46rem;
	margin: 1rem 0 0;
	font-size: var(--rf-step-1);
}

.rf-crumbs {
	margin-bottom: 1.1rem;
	font-size: var(--rf-step--1);
}

.rf-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .55rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--rf-muted);
}

.rf-crumbs li + li::before {
	content: "/";
	margin-right: .55rem;
	color: var(--rf-line);
}

.rf-crumbs a {
	color: var(--rf-muted);
	text-decoration: none;
}

.rf-crumbs a:hover {
	color: var(--rf-accent-700);
	text-decoration: underline;
}

.rf-crumbs [aria-current="page"] {
	color: var(--rf-ink);
	font-weight: 600;
}

.rf-featured {
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

.rf-featured img {
	width: 100%;
	border-radius: var(--rf-radius-lg);
	box-shadow: var(--rf-shadow);
}

.rf-featured--project img {
	max-height: 70vh;
	width: auto;
	margin-inline: auto;
	object-fit: contain;
}

/* ------------------------------------- 8. Cards, grids and sections */

.rf-grid {
	display: grid;
	gap: clamp(1rem, 2.2vw, 1.75rem);
}

.rf-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}

.rf-card {
	position: relative;
	height: 100%;
	background: var(--rf-surface);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-lg);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rf-card:hover {
	transform: translateY(-3px);
	border-color: rgba(239, 106, 26, .45);
	box-shadow: var(--rf-shadow);
}

.rf-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.rf-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--rf-surface-3);
	overflow: hidden;
}

.rf-card__media--tall {
	aspect-ratio: 4 / 5;
}

.rf-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.rf-card:hover .rf-card__img {
	transform: scale(1.045);
}

.rf-card__img--empty {
	display: grid;
	place-items: center;
	color: var(--rf-muted);
}

.rf-card__badge {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: grid;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	background: var(--rf-accent);
	color: #fff;
	border-radius: var(--rf-radius-sm);
	box-shadow: 0 6px 16px rgba(15, 27, 45, .25);
}

.rf-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: .55rem;
	padding: 1.4rem 1.5rem 1.6rem;
}

.rf-card__kicker {
	color: var(--rf-accent-700);
	font-size: var(--rf-step--1);
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.rf-card__title {
	margin: 0;
	font-size: var(--rf-step-2);
}

.rf-card__excerpt {
	color: var(--rf-body);
	font-size: var(--rf-step-0);
}

.rf-card__more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: auto;
	padding-top: .6rem;
	color: var(--rf-accent-700);
	font-size: var(--rf-step--1);
	font-weight: 700;
}

.rf-card:hover .rf-card__more .rf-icon {
	transform: translateX(3px);
}

.rf-card__more .rf-icon {
	transition: transform .2s ease;
}

.rf-card--project .rf-card__body {
	padding: 1.1rem 1.25rem 1.35rem;
}

.rf-card--project .rf-card__title {
	font-size: var(--rf-step-1);
}

.rf-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

@media (max-width: 60rem) {
	.rf-split {
		grid-template-columns: 1fr;
	}
}

.rf-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: clamp(.65rem, 1.5vw, 1rem);
}

.rf-mosaic__item {
	margin: 0;
	border-radius: var(--rf-radius);
	overflow: hidden;
	box-shadow: var(--rf-shadow-sm);
}

.rf-mosaic__item img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.rf-mosaic__item:nth-child(1) {
	border-top-left-radius: var(--rf-radius-lg);
}

.rf-mosaic__item:nth-child(2) {
	margin-top: clamp(1rem, 3vw, 2.25rem);
	border-top-right-radius: var(--rf-radius-lg);
}

.rf-mosaic__item:nth-child(4) {
	margin-top: calc(-1 * clamp(1rem, 3vw, 2.25rem));
}

/* ------------------------------ 9. Reviews, steps and feature lists */

.rf-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rf-step;
}

.rf-step {
	position: relative;
	padding: 1.75rem 1.5rem 1.6rem;
	background: var(--rf-surface);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-lg);
}

.rf-step__num {
	position: absolute;
	top: -.9rem;
	left: 1.5rem;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	background: var(--rf-ink);
	color: #fff;
	border-radius: 50%;
	font-size: .8rem;
	font-weight: 800;
}

.rf-step__icon {
	display: grid;
	place-items: center;
	width: 2.9rem;
	height: 2.9rem;
	margin-bottom: 1rem;
	background: var(--rf-accent-soft);
	color: var(--rf-accent-700);
	border-radius: var(--rf-radius-sm);
}

.rf-step__title {
	margin: 0 0 .35rem;
	font-size: var(--rf-step-1);
}

.rf-step__text {
	margin: 0;
	font-size: var(--rf-step-0);
}

.rf-featurelist {
	display: grid;
	gap: 1.15rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.rf-feature {
	display: flex;
	gap: 1rem;
}

.rf-feature__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.6rem;
	height: 2.6rem;
	background: var(--rf-accent-soft);
	color: var(--rf-accent-700);
	border-radius: var(--rf-radius-sm);
}

.rf-feature__body {
	display: block;
}

.rf-feature__title {
	display: block;
	color: var(--rf-ink);
	font-weight: 800;
	font-size: var(--rf-step-0);
}

.rf-feature__text {
	display: block;
	font-size: var(--rf-step-0);
}

.rf-reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	align-items: start;
	gap: clamp(1rem, 2.2vw, 1.75rem);
}

.rf-review {
	margin: 0;
	padding: 1.6rem 1.6rem 1.4rem;
	background: var(--rf-surface);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-lg);
	box-shadow: var(--rf-shadow-sm);
}

.rf-section--muted .rf-review {
	background: var(--rf-surface);
}

.rf-review__mark {
	display: block;
	margin-bottom: .5rem;
	color: var(--rf-accent);
	opacity: .55;
}

.rf-review__quote {
	margin: 0;
	color: var(--rf-ink);
	font-size: var(--rf-step-0);
	line-height: 1.6;
}

.rf-review__quote p:last-child {
	margin-bottom: 0;
}

.rf-review__meta {
	margin-top: 1rem;
	padding-top: .85rem;
	border-top: 1px solid var(--rf-line-soft);
}

.rf-review__job {
	color: var(--rf-muted);
	font-size: var(--rf-step--1);
	font-weight: 700;
	letter-spacing: .02em;
}

/* ------------------------------------------------- Service detail page */

.rf-servicehead {
	padding-block: clamp(2.25rem, 5vw, 3.75rem);
	background: linear-gradient(180deg, var(--rf-surface-2), var(--rf-surface));
	border-bottom: 1px solid var(--rf-line-soft);
}

.rf-servicehead__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	gap: clamp(1.75rem, 4vw, 3.5rem);
	align-items: center;
}

@media (max-width: 56rem) {
	.rf-servicehead__inner {
		grid-template-columns: 1fr;
	}
}

.rf-servicehead__icon {
	display: grid;
	place-items: center;
	width: 3.4rem;
	height: 3.4rem;
	margin-bottom: 1.1rem;
	background: var(--rf-accent);
	color: #fff;
	border-radius: var(--rf-radius);
	box-shadow: 0 8px 20px rgba(239, 106, 26, .28);
}

.rf-servicehead__title {
	margin: 0;
	font-size: var(--rf-step-4);
}

.rf-servicehead__lead {
	max-width: 40rem;
	margin: 1rem 0 0;
	font-size: var(--rf-step-1);
}

.rf-servicehead__media {
	margin: 0;
}

.rf-servicehead__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--rf-radius-lg);
	box-shadow: var(--rf-shadow);
}

.rf-servicebody {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: var(--rf-section-y);
	align-items: start;
}

@media (max-width: 60rem) {
	.rf-servicebody {
		grid-template-columns: 1fr;
	}
}

.rf-covers {
	position: sticky;
	top: 6.5rem;
	padding: 1.6rem;
	background: var(--rf-surface-2);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-lg);
}

.rf-covers__title {
	margin: 0 0 1rem;
	font-size: var(--rf-step-1);
}

.rf-covers__list {
	margin: 0 0 1.4rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: .65rem;
}

.rf-covers__list li {
	display: flex;
	gap: .6rem;
	font-size: var(--rf-step-0);
	line-height: 1.5;
}

.rf-covers__list .rf-icon {
	margin-top: .22em;
	color: #14915a;
}

@media (max-width: 60rem) {
	.rf-covers {
		position: static;
	}
}

/* --------------------------------------------------------- 10. Prose */

.rf-prose {
	max-width: 46rem;
	font-size: var(--rf-step-0);
}

.rf-prose--center {
	margin-inline: auto;
	text-align: center;
}

.rf-single .rf-prose {
	padding-block: 0;
}

.rf-container > .rf-prose:only-child {
	padding-block: var(--rf-section-y);
}

.rf-prose > *:first-child {
	margin-top: 0;
}

.rf-prose h2 {
	margin-top: 2.1em;
	font-size: var(--rf-step-2);
}

.rf-prose h3 {
	margin-top: 1.8em;
	font-size: var(--rf-step-1);
}

.rf-prose ul,
.rf-prose ol {
	padding-left: 1.35rem;
}

.rf-prose li {
	margin-bottom: .45em;
}

.rf-prose ul {
	list-style: none;
	padding-left: 0;
}

.rf-prose ul li {
	position: relative;
	padding-left: 1.65rem;
}

.rf-prose ul li::before {
	content: "";
	position: absolute;
	left: .2rem;
	top: .62em;
	width: .5rem;
	height: .5rem;
	background: var(--rf-accent);
	border-radius: 2px;
}

.rf-prose blockquote {
	margin: 1.8em 0;
	padding: 1.1rem 1.4rem;
	background: var(--rf-accent-soft);
	border-left: 3px solid var(--rf-accent);
	border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
	color: var(--rf-ink);
}

.rf-prose img {
	border-radius: var(--rf-radius);
}

.rf-prose table {
	width: 100%;
	border-collapse: collapse;
}

.rf-prose th,
.rf-prose td {
	padding: .65rem .8rem;
	border-bottom: 1px solid var(--rf-line);
	text-align: left;
}

.rf-pagelinks {
	margin-top: 2rem;
	font-weight: 700;
}

.pagination {
	margin-top: clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: .6rem;
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-sm);
	color: var(--rf-ink);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--rf-accent);
	border-color: var(--rf-accent);
	color: #fff;
}

/* ------------------------------------------------- 11. CTA band, footer */

.rf-ctaband {
	background: var(--rf-ink);
	color: #fff;
}

.rf-ctaband__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.rf-ctaband__text {
	max-width: 40rem;
}

.rf-ctaband__title {
	margin: 0 0 .5rem;
	color: #fff;
	font-size: var(--rf-step-3);
}

.rf-ctaband__lead {
	margin: 0;
	color: rgba(255, 255, 255, .8);
	font-size: var(--rf-step-1);
}

.rf-footer {
	background: var(--rf-surface-2);
	border-top: 1px solid var(--rf-line);
	color: var(--rf-body);
}

.rf-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(2rem, 4vw, 3rem);
}

@media (max-width: 62rem) {
	.rf-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rf-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 34rem) {
	.rf-footer__top {
		grid-template-columns: 1fr;
	}
}

.rf-footer__blurb {
	max-width: 30rem;
	margin: 1.1rem 0 0;
	font-size: var(--rf-step-0);
}

.rf-actions--footer {
	margin-top: 1.5rem;
}

.rf-footer__heading {
	margin: 0 0 .9rem;
	font-size: var(--rf-step--1);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rf-ink);
}

.rf-footer__list {
	display: grid;
	gap: .55rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--rf-step-0);
}

.rf-footer__list a {
	color: var(--rf-body);
	text-decoration: none;
}

.rf-footer__list a:hover {
	color: var(--rf-accent-700);
	text-decoration: underline;
}

.rf-footer__list--contact a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 600;
}

.rf-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.35rem;
	border-top: 1px solid var(--rf-line);
	font-size: var(--rf-step--1);
	color: var(--rf-muted);
}

.rf-footer__copy {
	margin: 0;
}

.rf-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-footer__legal-list a {
	color: var(--rf-muted);
	text-decoration: none;
}

.rf-footer__legal-list a:hover {
	color: var(--rf-accent-700);
	text-decoration: underline;
}

.rf-fab {
	position: fixed;
	right: 1.1rem;
	bottom: 1.1rem;
	z-index: 55;
	display: grid;
	place-items: center;
	width: 3.4rem;
	height: 3.4rem;
	background: #25d366;
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(15, 27, 45, .3);
	transition: transform .18s ease;
}

.rf-fab:hover {
	color: #fff;
	transform: translateY(-2px) scale(1.03);
}

@media (min-width: 62rem) {
	.rf-fab {
		display: none;
	}
}

/* ------------------------------------------- 12. Utilities and motion */

.rf-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

.rf-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}

	.rf-reveal {
		opacity: 1;
		transform: none;
	}
}

@media print {
	.rf-topbar,
	.rf-header,
	.rf-fab,
	.rf-ctaband,
	.rf-footer__top {
		display: none !important;
	}
}

/* ------------------------------------------- 13. Contact page and form */

.rf-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(2rem, 5vw, 4rem);
	padding-block: var(--rf-section-y);
	align-items: start;
}

@media (max-width: 60rem) {
	.rf-contact {
		grid-template-columns: 1fr;
	}
}

.rf-contact__aside {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--rf-surface-2);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-lg);
}

.rf-contact__aside h2 {
	font-size: var(--rf-step-2);
}

.rf-contact__name {
	margin: 0 0 .45rem;
	color: var(--rf-accent-700);
	font-size: var(--rf-step--1);
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.rf-contact__next {
	margin-top: 2rem;
}

.rf-contact__routes {
	display: grid;
	gap: .85rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.rf-contact__routes li {
	margin: 0;
}

.rf-contact__routes a {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .9rem 1.1rem;
	background: var(--rf-surface);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius);
	color: var(--rf-ink);
	font-weight: 700;
	text-decoration: none;
	transition: border-color .16s ease, transform .16s ease;
}

.rf-contact__routes a:hover {
	border-color: var(--rf-accent);
	transform: translateY(-1px);
}

.rf-contact__routes .rf-icon {
	color: var(--rf-accent);
}

/* The enquiry form ships with the Rapid Flatpack Core plugin. The plugin
   provides neutral structural styles; these rules dress it to match the
   theme by overriding the custom properties it exposes. */

/* `body` prefix so these win over the plugin's own defaults regardless of the
   order the two stylesheets happen to be printed in. */
body .rfc-form {
	--rfc-radius: var(--rf-radius-sm);
	--rfc-border: var(--rf-line);
	--rfc-border-focus: var(--rf-accent);
	--rfc-ring: rgba(239, 106, 26, .18);
	--rfc-ink: var(--rf-ink);
	--rfc-muted: var(--rf-muted);
	--rfc-surface: var(--rf-surface);
	--rfc-error: #b42318;
	--rfc-success-bg: #ecfdf3;
	--rfc-success-border: #abefc6;
	--rfc-success-ink: #085d3a;
	--rfc-button-bg: var(--rf-accent);
	--rfc-button-ink: #fff;
	--rfc-button-radius: var(--rf-radius-pill);
}

.rf-formcard {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--rf-surface);
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius-lg);
	box-shadow: var(--rf-shadow);
}

.rf-formcard h2 {
	margin-top: 0;
	font-size: var(--rf-step-2);
}

@media (max-width: 48rem) {
	.rf-grid--gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .8rem;
	}

	.rf-grid--gallery .rf-card--project .rf-card__body {
		padding: .85rem .9rem 1rem;
	}

	.rf-grid--gallery .rf-card--project .rf-card__title {
		font-size: var(--rf-step-0);
		line-height: 1.3;
	}

	.rf-grid--gallery .rf-card__kicker {
		font-size: .7rem;
	}
}

@media (max-width: 34rem) {
	.rf-actions--hero,
	.rf-actions--head,
	.rf-actions--band,
	.rf-actions--footer {
		width: 100%;
	}

	.rf-actions--hero .rf-btn,
	.rf-actions--head .rf-btn,
	.rf-actions--band .rf-btn,
	.rf-actions--footer .rf-btn,
	.rf-formcard .rfc-button {
		width: 100%;
	}

	.rf-hero__inner {
		padding-block: 2.75rem 3.25rem;
	}

	.rf-hero__points {
		display: grid;
		gap: .55rem;
	}

	.rf-card__media--tall {
		aspect-ratio: 1 / 1.15;
	}
}

/* ------------------------------- 14. WordPress core content classes */

/*
 * Classes the block and classic editors can apply to content. The site's pages
 * are edited in WordPress, so these need to work even though the theme's own
 * templates do not use them.
 */

.alignleft {
	float: left;
	margin: .35em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: .35em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
	margin-bottom: 1.15em;
}

.alignwide {
	max-width: min(72rem, 100%);
	margin-inline: auto;
}

.alignfull {
	max-width: none;
}

.rf-prose > .alignwide,
.rf-prose > .alignfull {
	width: auto;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.15em;
}

.wp-caption img {
	border-radius: var(--rf-radius);
}

.wp-caption-text,
.gallery-caption,
.wp-element-caption,
figcaption {
	margin-top: .55rem;
	color: var(--rf-muted);
	font-size: var(--rf-step--1);
	line-height: 1.5;
	text-align: center;
}

.sticky {
	position: relative;
}

.sticky .rf-card__title::after {
	content: " ★";
	color: var(--rf-accent);
}

.bypostauthor {
	display: block;
}

.wp-block-image figcaption {
	text-align: center;
}

.wp-block-button__link {
	border-radius: var(--rf-radius-pill);
	background-color: var(--rf-accent);
	color: #fff;
	font-weight: 700;
}

.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--rf-ink);
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--rf-line);
	margin-block: 2.25em;
}

.wp-block-quote {
	margin: 1.8em 0;
	padding: 1.1rem 1.4rem;
	background: var(--rf-accent-soft);
	border-left: 3px solid var(--rf-accent);
	border-radius: 0 var(--rf-radius-sm) var(--rf-radius-sm) 0;
	color: var(--rf-ink);
}

.wp-block-table td,
.wp-block-table th {
	border-color: var(--rf-line);
}
