/* RM Roofing & Waterproofing
   Full-width bands with content held to a 1300px column.
   Colours and type follow the logo: blue lettering, orange house line, heavy geometric sans. */

:root {
	--ink: #14181d;
	--ink-2: #1c2228;
	--ink-3: #2f3842;
	--steel: #4d5965;
	--steel-2: #8e9aa6;
	--line: #dde3e8;
	--line-dark: #2f3842;
	--field: #6f7b87;
	--paper: #ffffff;
	--paper-2: #f4f6f8;
	--blue: #39b5ff;
	--blue-d: #0567a3;
	--orange: #eb9d23;
	--orange-l: #f5b450;
	--error: #b42318;
	--ok: #13794b;

	--side: clamp(20px, 4.5vw, 96px);
	--inline: var(--side); /* full width: content spans the screen with a side margin */
	--sec-y: clamp(56px, 7vw, 104px);
	--radius: 4px;
	--tb: 38px;
	--hh: 80px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
em, i, cite, address, dfn, var { font-style: normal; }
em, i { font-weight: 600; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-d); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.4vw, 4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.85rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
strong, b { font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue-d); outline-offset: 3px; border-radius: 2px; }
.rm-hero :focus-visible, .rm-dark :focus-visible, .rm-footer :focus-visible, .rm-cookie :focus-visible, .rm-card :focus-visible { outline-color: var(--orange); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.rm-skip {
	position: fixed; left: 16px; top: -100px; z-index: 200;
	background: var(--orange); color: var(--ink); font-weight: 600;
	padding: 12px 18px; border-radius: var(--radius); text-decoration: none;
}
.rm-skip:focus { top: 16px; }

.rm-shell, .rm-main, .rm-page { display: block; }
.rm-main:focus { outline: none; }
.rm-wrap { width: 100%; padding-inline: var(--inline); }

/* ---------- Buttons ---------- */
.rm-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 24px;
	border: 2px solid transparent; border-radius: var(--radius);
	background: var(--orange); color: var(--ink);
	font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
	text-decoration: none; white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.rm-btn::after, .wp-block-button__link::after {
	content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%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 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}
.rm-btn:hover, .wp-block-button__link:hover { background: var(--orange-l); color: var(--ink); text-decoration: none; }
.rm-btn:hover::after, .wp-block-button__link:hover::after { transform: translateX(3px); }
.rm-btn--ghost, .is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.rm-btn--ghost::after, .is-style-outline .wp-block-button__link::after { display: none; }
.rm-btn--ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rm-hero .is-style-outline .wp-block-button__link:hover, .rm-dark .is-style-outline .wp-block-button__link:hover,
.rm-hero .rm-btn--ghost:hover, .rm-dark .rm-btn--ghost:hover, .rm-cookie .rm-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.rm-actions, .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.wp-block-button { margin: 0; }
.rm-linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .2em; min-height: 24px; }

/* ---------- Top contact bar ---------- */
.rm-topbar { background: var(--ink); color: #c9d2da; font-size: .88rem; }
.rm-topbar__in { display: flex; justify-content: flex-end; align-items: center; gap: 28px; min-height: var(--tb); }
.rm-topbar a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 6px 0; }
.rm-topbar a:hover { color: var(--orange); }
.rm-topbar svg { width: 15px; height: 15px; fill: var(--orange); fill-rule: evenodd; }
.rm-topbar :focus-visible { outline-color: var(--orange); }

/* ---------- Header ---------- */
.rm-header {
	position: sticky; top: 0; z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s ease;
}
.is-scrolled .rm-header { box-shadow: 0 6px 24px -12px rgba(20, 24, 29, .25); }
.rm-header__bar {
	position: relative;
	display: flex; align-items: center; gap: 20px;
	min-height: var(--hh);
	padding-block: 10px;
}
.rm-logo { display: block; flex: none; width: clamp(128px, 12vw, 152px); }
.rm-logo__svg { width: 100%; height: auto; overflow: visible; }
.rm-logo__line { fill: none; stroke: var(--orange); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.js .rm-logo--header .rm-logo__line { stroke-dasharray: 1 3; stroke-dashoffset: 1.02; animation: rmDraw 1.8s .15s var(--ease) forwards; }
.rm-logo--footer { width: 200px; }

.rm-nav { margin-left: auto; }
.rm-nav__list, .rm-nav__sub { list-style: none; margin: 0; padding: 0; }
.rm-nav__list { display: flex; align-items: center; gap: 2px; }
.rm-nav__item { position: relative; display: flex; align-items: center; }
.rm-nav__link {
	position: relative; display: block;
	padding: 12px 10px;
	color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1.2;
	text-decoration: none; white-space: nowrap;
}
.rm-nav__link::after {
	content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px;
	background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.rm-nav__link:hover { text-decoration: none; }
.rm-nav__link:hover::after, .rm-nav__item.is-current > .rm-nav__link::after { transform: scaleX(1); }
.has-sub > .rm-nav__link { padding-right: 2px; }
.rm-nav__toggle {
	display: grid; place-items: center; width: 28px; height: 40px;
	background: none; border: 0; border-radius: var(--radius); padding: 0; color: var(--ink);
}
.rm-nav__toggle svg { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.rm-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.rm-nav__sub {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 10;
	min-width: 250px; padding: 8px 0;
	background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--orange);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 16px 32px -16px rgba(20, 24, 29, .3);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
}
.rm-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.rm-nav__sub .rm-nav__link { padding: 11px 18px; }
.rm-nav__sub .rm-nav__link::after { display: none; }
.rm-nav__sub .rm-nav__link:hover, .rm-nav__sub .is-current > .rm-nav__link { background: var(--paper-2); color: var(--blue-d); }
.has-sub.is-open > .rm-nav__sub,
.has-sub:not(.is-dismissed):hover > .rm-nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.rm-header__cta { min-height: 46px; padding: 0 18px; }
.rm-menu-btn {
	display: none; align-items: center; gap: 10px;
	min-height: 46px; padding: 0 14px;
	background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
	font-weight: 600; color: var(--ink);
}
.rm-menu-btn__icon { position: relative; width: 20px; height: 14px; }
.rm-menu-btn__icon::before, .rm-menu-btn__icon::after, .rm-menu-btn__icon span {
	content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
	transition: transform .25s var(--ease), opacity .2s;
}
.rm-menu-btn__icon::before { top: 0; }
.rm-menu-btn__icon span { top: 6px; }
.rm-menu-btn__icon::after { bottom: 0; }
.rm-menu-btn[aria-expanded="true"] .rm-menu-btn__icon::before { transform: translateY(6px) rotate(45deg); }
.rm-menu-btn[aria-expanded="true"] .rm-menu-btn__icon span { opacity: 0; }
.rm-menu-btn[aria-expanded="true"] .rm-menu-btn__icon::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1240px) {
	.rm-menu-btn { display: inline-flex; }
	.rm-header__cta { margin-left: auto; }
	.rm-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		max-height: calc(100svh - var(--hh)); overflow-y: auto;
		background: var(--paper); border-top: 1px solid var(--line); border-bottom: 2px solid var(--orange);
		padding: 8px var(--inline) 16px; margin: 0;
		box-shadow: 0 24px 40px -24px rgba(20, 24, 29, .35);
		display: none;
	}
	.rm-header.is-open .rm-nav { display: block; }
	.rm-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.rm-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.rm-nav__item:last-child { border-bottom: 0; }
	.rm-nav__link { flex: 1; padding: 15px 0; font-size: 1.05rem; }
	.rm-nav__link::after { left: 0; right: auto; width: 32px; bottom: 8px; }
	.rm-nav__toggle { width: 48px; height: 48px; }
	.rm-nav__sub {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 10px 16px;
		border: 0; border-left: 2px solid var(--orange); border-radius: 0; box-shadow: none;
		opacity: 1; visibility: visible; transform: none; display: none; margin-bottom: 10px;
	}
	.rm-nav__sub .rm-nav__link { padding: 11px 0; }
	.rm-nav__sub .rm-nav__link:hover { background: none; }
	.has-sub.is-open > .rm-nav__sub { display: block; }
	.has-sub:not(.is-open):hover > .rm-nav__sub { display: none; }
}
@media (max-width: 520px) {
	:root { --hh: 68px; }
	.rm-header__bar { gap: 8px; }
	.rm-logo { width: 112px; }
	.rm-header__cta { padding: 0 12px; font-size: .9rem; min-height: 44px; }
	.rm-header__cta::after { display: none; }
	.rm-menu-btn { padding: 0 12px; min-height: 44px; }
	.rm-menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Sections: full-width bands, content in the 1300px column, 70–100% of screen height ---------- */
.rm-sec {
	position: relative;
	min-height: max(70svh, 420px);
	margin: 0;
	padding: var(--sec-y) var(--inline);
	background: var(--paper);
	display: grid;
	align-content: center;
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
}
/* Light bands alternate white / light grey so neighbouring sections never merge. */
.rm-page > .rm-sec:not(.rm-hero):not(.rm-dark):nth-child(even) { background: var(--paper-2); }
.rm-page > .rm-sec + .rm-sec:not(.rm-hero):not(.rm-dark) { border-top: 1px solid var(--line); }

.rm-hero { min-height: max(calc(100svh - var(--hh) - var(--tb)), 540px); }
.rm-hero > .rm-media, .rm-photo > .rm-media {
	position: absolute; inset: 0; z-index: 0; margin: 0;
	min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0;
}
.rm-hero > .rm-media::after, .rm-photo > .rm-media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(14, 18, 22, .94) 0%, rgba(14, 18, 22, .82) 42%, rgba(14, 18, 22, .38) 100%);
}
.rm-photo > .rm-media::after { background: linear-gradient(180deg, rgba(14, 18, 22, .86) 0%, rgba(14, 18, 22, .7) 100%); }
.rm-hero > :not(.rm-media), .rm-photo > :not(.rm-media) { position: relative; z-index: 1; }
.rm-hero:has(> .rm-media) { grid-template-columns: minmax(0, 1fr); }
.rm-hero:has(> .rm-media):has(> .rm-panel) { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.rm-hero .rm-panel { background: rgba(20, 24, 29, .82); border-color: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rm-hero:has(> .rm-media) .rm-text { max-width: 760px; }
.rm-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 2;
	background: linear-gradient(90deg, var(--orange) 0 32%, var(--blue) 32% 100%);
}
.rm-hero .rm-lead { font-size: clamp(1.1rem, 1.45vw, 1.35rem); color: #dbe2e8; max-width: 58ch; }
.rm-hero, .rm-dark { background: var(--ink); color: #fff; }
.rm-hero .rm-lead, .rm-dark .rm-lead, .rm-hero p, .rm-dark p { color: #c9d2da; }
.rm-hero a:not(.rm-btn):not(.wp-block-button__link), .rm-dark a:not(.rm-btn):not(.wp-block-button__link) { color: var(--blue); }

.rm-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rm-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.rm-photo { background: var(--ink); color: #fff; }
.rm-photo .rm-lead, .rm-photo p { color: #d2dae1; }
.rm-split.rm-rev > .rm-media { order: -1; }
.rm-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.rm-center { justify-items: center; text-align: center; }
.rm-sec.rm-dark.rm-center { background: var(--orange); color: var(--ink); overflow: hidden; }
.rm-sec.rm-dark.rm-center p, .rm-sec.rm-dark.rm-center .rm-lead { color: var(--ink); }
.rm-sec.rm-dark.rm-center h2.wp-block-heading { font-size: clamp(2rem, 3.8vw, 3.3rem); }
.rm-sec.rm-dark.rm-center h2.wp-block-heading::before { background: var(--ink); }
.rm-sec.rm-dark.rm-center .wp-block-button__link, .rm-sec.rm-dark.rm-center .rm-btn { background: var(--ink); color: #fff; }
.rm-sec.rm-dark.rm-center .wp-block-button__link:hover, .rm-sec.rm-dark.rm-center .rm-btn:hover { background: #000; color: #fff; }
.rm-sec.rm-dark.rm-center :focus-visible { outline-color: var(--ink); }
.rm-sec.rm-dark.rm-center .rm-chips li { background: rgba(255, 255, 255, .22); border-color: rgba(20, 24, 29, .3); border-left-color: var(--ink); color: var(--ink); }
.rm-sec.rm-dark.rm-center .rm-chips li::before { background: var(--ink); }
.rm-sec.rm-dark.rm-center::before { content: ""; position: absolute; left: var(--inline); right: var(--inline); bottom: 0; height: 6px; background: var(--ink); opacity: .9; }
.rm-sec.rm-dark.rm-center > * { position: relative; }
.rm-center .rm-text { max-width: 820px; }
.rm-center .rm-actions, .rm-center .wp-block-buttons, .rm-center .rm-chips { justify-content: center; }
.rm-stack { grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); }
.rm-stack > .wp-block-buttons { margin-top: 0; }
.rm-page > .rm-stack:not(.rm-photo):not(.rm-dark)::before {
	content: ""; position: absolute; right: var(--inline); top: clamp(40px, 5vw, 72px); width: 360px; height: 120px; opacity: .14; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cpath d='M340 118 224 24Q205 9 186 24L22 162Q4 178 10 190 16 199 32 199H52Q62 199 62 209V347Q62 375 90 375H1188' fill='none' stroke='%23eb9d23' stroke-width='22' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right top / contain;
}

.rm-text { max-width: 620px; min-width: 0; }
.rm-text--wide, .rm-stack > .rm-text { max-width: none; }
.rm-lead { font-size: clamp(1.08rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--steel); }
.rm-sec p { max-width: 64ch; }
.rm-center p { margin-inline: auto; }

/* Section headings: plain, with the logo's orange baseline as a short static rule. */
.rm-sec h2.wp-block-heading, .rm-h2 { margin-bottom: 24px; }
.rm-sec h2.wp-block-heading::before, .rm-h2::before {
	content: ""; display: block; width: 48px; height: 4px; margin-bottom: 20px;
	background: var(--orange); border-radius: 2px;
}
.rm-center h2.wp-block-heading::before { margin-inline: auto; }
.rm-sec h2.rm-plain::before, .rm-sec .sr-only::before { display: none; }

/* Photo panels */
.rm-media {
	position: relative; margin: 0; min-width: 0;
	border-radius: var(--radius); overflow: hidden;
	background: var(--ink-2);
	align-self: stretch;
	min-height: clamp(280px, 50svh, 600px);
}
.rm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-media--hero { min-height: clamp(300px, 58svh, 680px); }
.rm-credit {
	position: absolute; right: 0; bottom: 0; max-width: 100%;
	padding: 4px 10px; border-top-left-radius: var(--radius);
	background: rgba(20, 24, 29, .82); color: #fff;
	font-size: .75rem; line-height: 1.4;
}
.rm-media--slot { background: transparent; display: grid; }
.rm-media--slot .rm-slots { height: 100%; grid-template-columns: 1fr; }
.rm-media--slot .rm-slot { min-height: 100%; }

/* ---------- Logo house-line frame (hero H1 only) ---------- */
.rm-frame {
	--rw: clamp(84px, 9vw, 124px);
	--sw: calc(var(--rw) * 20 / 350);
	position: relative;
	padding: calc(var(--rw) * .52) 0 calc(var(--rw) * .17) calc(var(--rw) * .35);
	margin: 0 0 28px;
}
.rm-frame > h1 { position: relative; }
.rm-frame__roof { position: absolute; left: 0; top: 0; width: var(--rw); height: auto; overflow: visible; }
.rm-frame__roof path { fill: none; stroke: var(--orange); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.rm-frame__wall {
	position: absolute;
	left: calc(var(--rw) * 52 / 350);
	top: calc(var(--rw) * 204 / 350);
	right: 0; bottom: 0;
	border-left: var(--sw) solid var(--orange);
	border-bottom: var(--sw) solid var(--orange);
	border-bottom-left-radius: calc(var(--rw) * 38 / 350);
	pointer-events: none;
}
.rm-frame__wall::after {
	content: ""; position: absolute; right: calc(var(--sw) / -2); bottom: calc(var(--sw) * -1);
	width: var(--sw); height: var(--sw); border-radius: 50%; background: var(--orange);
}
.rm-center .rm-frame { display: inline-block; text-align: left; }
.rm-legal .rm-frame, .rm-stack > .rm-text .rm-frame { max-width: 720px; }

/* ---------- Motion: logo line, hero heading frame, hero entrance. Nothing else animates. ---------- */
@keyframes rmDraw { to { stroke-dashoffset: 0; } }
@keyframes rmWall {
	0% { clip-path: inset(0 100% 100% 0); }
	38% { clip-path: inset(0 calc(100% - var(--rw) * .32) 0 0); }
	100% { clip-path: inset(0 0 0 0); }
}
@keyframes rmRise { from { transform: translateY(14px); } to { transform: none; } }

.js .rm-frame__roof path { stroke-dasharray: 1 3; stroke-dashoffset: 1.02; animation: rmDraw .75s .1s var(--ease) forwards; }
.js .rm-frame__wall { clip-path: inset(0 100% 100% 0); animation: rmWall 1.15s .65s cubic-bezier(.55, .1, .25, 1) forwards; }
.js .rm-hero .rm-text > * { animation: rmRise .8s var(--ease) both; }
.js .rm-hero .rm-text > :nth-child(2) { animation-delay: .1s; }
.js .rm-hero .rm-text > :nth-child(3) { animation-delay: .2s; }

/* ---------- Key-term tiles ---------- */
.rm-chips { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rm-chips li {
	position: relative; display: flex; align-items: center; gap: 14px;
	min-height: 64px; padding: 14px 18px 14px 18px;
	background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius);
	font-weight: 600; font-size: 1.02rem; line-height: 1.3;
	box-shadow: 0 1px 2px rgba(20, 24, 29, .04);
}
.rm-chips li::before {
	content: ""; flex: none; width: 26px; height: 18px; background: var(--blue-d);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 215'%3E%3Cpath d='M340 118 224 24Q205 9 186 24L22 162Q4 178 10 190 16 199 32 199H52Q62 199 62 209' fill='none' stroke='%23000' stroke-width='30' stroke-linecap='round' stroke-linejoin='round'/%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 350 215'%3E%3Cpath d='M340 118 224 24Q205 9 186 24L22 162Q4 178 10 190 16 199 32 199H52Q62 199 62 209' fill='none' stroke='%23000' stroke-width='30' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rm-page > .rm-sec:nth-child(odd):not(.rm-hero):not(.rm-dark) .rm-chips li { background: var(--paper-2); }
.rm-hero .rm-chips li, .rm-dark:not(.rm-center) .rm-chips li, .rm-photo .rm-chips li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); border-left-color: var(--orange); color: #fff; }
.rm-hero .rm-chips li::before, .rm-photo .rm-chips li::before { background: var(--blue); }
.rm-center .rm-chips { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); width: min(100%, 900px); margin-inline: auto; }
.rm-text > h2.wp-block-heading ~ h2.wp-block-heading { margin-top: 40px; }

/* ---------- Process steps: tiles joined by the logo baseline ---------- */
.rm-steps {
	--node: 64px;
	list-style: none; margin: 8px 0 0; padding: 0; position: relative;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px;
}
.rm-steps::before {
	content: ""; position: absolute; left: 0; right: 0; top: calc(var(--node) / 2 - 2px); height: 4px; border-radius: 2px;
	background: linear-gradient(90deg, var(--orange) 0 75%, rgba(235, 157, 35, .25) 100%);
}
.rm-steps li {
	position: relative; padding-top: calc(var(--node) + 28px);
	font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 650; line-height: 1.25;
}
.rm-steps li::before {
	content: ""; position: absolute; left: 0; top: 0; width: var(--node); height: var(--node);
	background: var(--paper); border: 2px solid var(--orange); border-radius: var(--radius);
}
.rm-steps li::after {
	content: ""; position: absolute; left: 14px; top: 13px; width: 36px; height: 36px; background: var(--orange);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M7 22 24 8l17 14M12 18v20h24V18' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%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 48 48'%3E%3Cpath d='M7 22 24 8l17 14M12 18v20h24V18' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rm-page > .rm-sec:nth-child(even):not(.rm-photo) .rm-steps li::before { background: var(--paper-2); }
.rm-photo .rm-steps li, .rm-dark .rm-steps li { color: #fff; }
.rm-photo .rm-steps li::before, .rm-dark .rm-steps li::before { background: var(--ink); }

/* ---------- Cards ---------- */
.rm-cards {
	--n: 4;
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 20px;
}
.rm-cards--2 { --n: 2; }
.rm-cards--3, .rm-cards--projects { --n: 3; }
.rm-cards--5 { --n: 5; gap: 16px; }
.rm-card {
	position: relative; isolation: isolate;
	display: flex; flex-direction: column; justify-content: flex-end;
	min-height: clamp(280px, 40svh, 440px);
	border-radius: var(--radius); overflow: hidden;
	background: var(--ink); color: #fff;
}
.rm-cards--2 .rm-card { min-height: clamp(300px, 46svh, 520px); }
.rm-card__media { position: absolute; inset: 0; z-index: -1; }
.rm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rm-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(20, 24, 29, 0) 25%, rgba(20, 24, 29, .75) 60%, rgba(20, 24, 29, .96) 100%);
}
.rm-card__body { padding: clamp(18px, 2vw, 26px); }
.rm-card__title { font-size: clamp(1.1rem, 1.4vw, 1.35rem); font-weight: 650; line-height: 1.2; }
.rm-card__title a { color: #fff; text-decoration: none; }
.rm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rm-card__title a:focus-visible { outline: none; }
.rm-card:has(a:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.rm-card__text { margin: .45em 0 0; color: #d4dbe1; font-size: .95rem; line-height: 1.5; max-width: none; }
.rm-card__meta { margin: .45em 0 0; color: var(--blue); font-size: .92rem; font-weight: 500; }
.rm-card__line { display: block; width: 40px; height: 3px; margin-top: 16px; background: var(--orange); transition: width .3s ease; }
.rm-card:hover .rm-card__line, .rm-card:focus-within .rm-card__line { width: 72px; }
.rm-card:hover .rm-card__media img { transform: scale(1.04); }
.rm-card--project .rm-card__media { background: var(--ink-2); }
.rm-card--project .rm-slot--card { position: absolute; inset: 0 0 auto; height: 62%; border: 0; color: #c9d2da; }

/* Empty photo slots awaiting actual project photography */
.rm-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.rm-slot {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	min-height: clamp(180px, 30svh, 300px); padding: 20px;
	border: 2px dashed var(--steel-2); border-radius: var(--radius);
	color: var(--steel); font-weight: 500; text-align: center;
}
.rm-hero .rm-slot, .rm-dark .rm-slot { color: #c9d2da; border-color: var(--ink-3); }
.rm-slot__roof { width: 60px; }
.rm-slot__roof path { fill: none; stroke: var(--orange); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }

/* Project filters */
.rm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.rm-filter {
	min-height: 44px; padding: 0 18px; border-radius: var(--radius);
	background: var(--paper); border: 1px solid var(--field); color: var(--ink); font-weight: 500;
}
.rm-filter:hover { border-color: var(--ink); }
.rm-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rm-card[hidden] { display: none; }

/* Photo gallery */
.rm-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rm-gallery .rm-media { min-height: clamp(180px, 30svh, 320px); }

/* ---------- Facts & contact ---------- */
.rm-facts { margin: 0; display: grid; }
.rm-facts__row { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rm-facts dt { color: var(--steel); font-weight: 500; }
.rm-facts dd { margin: 0; font-weight: 500; }

.rm-panel { align-self: center; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.rm-panel h2.wp-block-heading { font-size: 1.4rem; margin-bottom: 8px; }
.rm-panel h2.wp-block-heading::before { display: none; }
.rm-contact { list-style: none; margin: 0; padding: 0; display: grid; }
.rm-contact li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.rm-contact li:last-child { border-bottom: 0; padding-bottom: 0; }
.rm-contact__k { font-size: .9rem; color: #aeb9c3; }
.rm-contact__v { font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; color: #fff; overflow-wrap: anywhere; }
.rm-hero a.rm-contact__v, .rm-dark a.rm-contact__v { color: #fff; text-decoration-color: var(--orange); }

/* ---------- Tender form ---------- */
.rm-tender { width: 100%; }
.rm-tender form { position: relative; }
.rm-formsec { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); align-items: start; }
.rm-formsec .rm-text { position: sticky; top: calc(var(--hh) + 40px); }
.rm-tender .hidden-fields-container { display: none; }
.rm-req-note { color: var(--steel); font-size: .95rem; margin-bottom: 14px; }
.rm-stepnav { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--line); }
.rm-stepnav li { position: relative; color: var(--steel); font-weight: 500; padding: 0 0 12px; white-space: nowrap; }
.rm-stepnav li[aria-current="step"] { color: var(--ink); font-weight: 650; }
.rm-stepnav li[aria-current="step"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.rm-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.rm-step > legend { font-size: 1.2rem; font-weight: 650; padding: 0; margin-bottom: 14px; }
.js .rm-step-ready .rm-step > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rm-step + .rm-step { margin-top: 26px; }
.js .rm-step-ready .rm-step + .rm-step { margin-top: 0; }
.rm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.rm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.rm-tender label { display: block; font-weight: 500; font-size: .98rem; }
.rm-tender .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.rm-tender input:not([type="checkbox"]):not([type="submit"]):not([type="file"]),
.rm-tender select, .rm-tender textarea {
	width: 100%; min-height: 50px; padding: 11px 14px;
	background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius);
	font-size: 1rem; line-height: 1.4; color: var(--ink);
	transition: border-color .2s, box-shadow .2s;
}
.rm-tender textarea { min-height: 96px; resize: vertical; }
.rm-tender input:focus-visible, .rm-tender select:focus-visible, .rm-tender textarea:focus-visible { outline: none; border-color: var(--blue-d); box-shadow: 0 0 0 3px rgba(5, 103, 163, .3); }
.rm-tender input[type="file"] { width: 100%; padding: 9px; border: 1px dashed var(--field); border-radius: var(--radius); background: var(--paper-2); font-size: .92rem; min-height: 50px; }
.rm-tender input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.rm-tender .rm-hint { font-size: .92rem; color: var(--steel); margin: 18px 0 0; }
.rm-tender [aria-invalid="true"] { border-color: var(--error) !important; }
.rm-tender .wpcf7-not-valid-tip, .rm-tip { display: block; margin-top: 4px; color: var(--error); font-size: .9rem; font-weight: 500; }
.rm-tender .wpcf7-list-item { margin: 0; display: block; }
.rm-tender .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; }
.rm-tender input[type="checkbox"] { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--blue-d); }
.rm-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.rm-tender .wpcf7-submit { min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--radius); background: var(--orange); color: var(--ink); font-weight: 600; }
.rm-tender .wpcf7-submit:hover { background: var(--orange-l); }
.rm-tender .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.rm-tender .wpcf7-spinner { display: none; }
.rm-tender .submitting .wpcf7-spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: rmSpin .8s linear infinite; }
@keyframes rmSpin { to { transform: rotate(360deg); } }
.rm-tender .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); font-weight: 500; }
.rm-tender .wpcf7-response-output:empty { display: none; }
.rm-tender .sent .wpcf7-response-output { border-color: var(--ok); color: var(--ok); }
.rm-tender .invalid .wpcf7-response-output, .rm-tender .unaccepted .wpcf7-response-output, .rm-tender .failed .wpcf7-response-output, .rm-tender .spam .wpcf7-response-output { border-color: var(--error); color: var(--error); }
.rm-tender .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rm-tender .screen-reader-response ul { display: none; }
.rm-step-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Legal pages ---------- */
.rm-legal { align-content: start; }
.rm-prose { max-width: none; columns: 2 340px; column-gap: clamp(28px, 4vw, 64px); }
.rm-prose > * { break-inside: avoid; }
.rm-prose h2, .rm-prose h3 { font-size: 1.15rem; font-weight: 650; margin: 0 0 .4em; break-after: avoid; }
.rm-prose h2::before { display: none !important; }
.rm-prose p, .rm-prose ul, .rm-prose table, .rm-prose figure { margin: 0 0 1.15em; }
.rm-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rm-prose th, .rm-prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rm-prose th { font-weight: 650; }
.rm-prose .rm-note { color: var(--steel); }
.rm-prose figure { overflow-x: auto; }
.page-image-credits .rm-prose { columns: 1; }
.page-image-credits .rm-prose table, .page-image-credits .rm-prose tbody { display: block; }
.page-image-credits .rm-prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.page-image-credits .rm-prose tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; font-size: .82rem; line-height: 1.35; }
.page-image-credits .rm-prose tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
.page-image-credits .rm-prose td { display: inline; padding: 0; border: 0; }
.page-image-credits .rm-prose td:first-child { display: block; font-weight: 500; }
.page-image-credits .rm-prose td + td::before { content: " · "; }
.page-image-credits .rm-prose td:nth-child(2)::before { content: ""; }

/* ---------- Footer ---------- */
.rm-footer { background: var(--ink); color: #c2ccd5; font-size: .97rem; border-top: 4px solid var(--orange); }
.rm-footer a:not(.rm-btn) { color: #fff; text-decoration: none; }
.rm-footer a:not(.rm-btn):hover { text-decoration: underline; text-decoration-color: var(--orange); }
.rm-footer__grid { display: grid; grid-template-columns: 1fr repeat(3, minmax(0, .8fr)) minmax(0, 1.75fr); gap: 40px; padding-block: clamp(48px, 6vw, 80px) 40px; }
.rm-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.rm-footer__h { font-size: .95rem; font-weight: 600; margin: 0 0 14px; color: #fff; letter-spacing: 0; }
.rm-footer__h a { color: #fff; }
.rm-footer ul { list-style: none; margin: 0; padding: 0; }
.rm-footer__col li a { display: inline-block; padding: 5px 0; color: #c2ccd5 !important; }
.rm-footer__col li a:hover { color: #fff !important; }
.rm-footer address { line-height: 1.9; }
.rm-footer address { font-size: .94rem; }
.rm-footer address a[href^="mailto"] { overflow-wrap: anywhere; }
.rm-footer__base { padding-block: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; font-size: .88rem; }
.rm-footer__base p { margin: 0; max-width: 72ch; }
.rm-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.rm-footer__legal a, .rm-footer__legal .rm-linkbtn { display: inline-block; padding: 2px 0; color: #fff; font-size: .88rem; }

/* ---------- Cookie notice ---------- */
.rm-cookie {
	position: fixed; z-index: 120; left: 16px; bottom: 16px;
	width: min(520px, calc(100vw - 32px));
	padding: 22px 24px; border-radius: var(--radius);
	background: var(--ink); color: #dfe5ea;
	border-top: 4px solid var(--orange);
	box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .5);
}
.rm-cookie[hidden] { display: none; }
.rm-cookie__text { margin: 0 0 16px; font-size: .97rem; }
.rm-cookie a { color: var(--blue); }
.rm-cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-cookie .rm-btn { min-height: 46px; padding: 0 18px; }
.rm-cookie .rm-btn::after { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.rm-cards--5 { --n: 3; }
	.rm-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rm-footer__brand { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 900px) {
	.rm-sec, .rm-hero { min-height: 70svh; }
	.rm-hero, .rm-split, .rm-duo, .rm-formsec { grid-template-columns: minmax(0, 1fr); align-content: center; }
	.rm-formsec .rm-text { position: static; }
	.rm-split > .rm-media, .rm-split.rm-rev > .rm-media { order: -1; }
	.rm-sec:not(.rm-hero):not(.rm-photo) > .rm-media { min-height: 0; aspect-ratio: 16 / 10; max-height: 34svh; width: 100%; }
	.rm-chips { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
	.rm-page > .rm-stack::before { display: none; }
	.rm-hero:not(:has(> .rm-media)) > .rm-panel { order: 2; }
	.rm-hero .wp-block-buttons, .rm-hero .rm-actions { margin-top: 20px; }
	.rm-duo { gap: 40px; }
	.rm-text { max-width: none; }
	.rm-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-right: calc(var(--inline) * -1); padding-right: var(--inline); scrollbar-width: thin; }
	.rm-card { flex: 0 0 min(78%, 340px); scroll-snap-align: start; min-height: clamp(280px, 46svh, 420px); }
	.rm-cards--2 .rm-card { flex-basis: min(86%, 460px); }
	.rm-steps { --node: 56px; grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.rm-steps::before { left: calc(var(--node) / 2 - 2px); right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: var(--orange); }
	.rm-steps li { padding: 0 0 0 calc(var(--node) + 20px); min-height: var(--node); display: flex; align-items: center; }
	.rm-steps li::after { left: 12px; top: 12px; width: 32px; height: 32px; }
	.rm-slots, .rm-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rm-prose { columns: 1; }
	.page-image-credits .rm-prose tbody { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	body { font-size: 1rem; }
	:root { --sec-y: 34px; }
	.rm-duo { gap: 24px; }
	.rm-facts__row { padding: 8px 0; }
	.rm-grid { gap: 12px; }
	.rm-sec h2.wp-block-heading, .rm-h2 { margin-bottom: 18px; }
	.rm-sec h2.wp-block-heading::before, .rm-h2::before { margin-bottom: 14px; }
	.rm-hero { gap: 24px; }
	.rm-hero h1 { font-size: 2rem; }
	.rm-hero .rm-lead { font-size: 1rem; }
	.rm-hero .wp-block-buttons { gap: 10px; }
	.rm-hero .wp-block-button__link { min-height: 46px; }
	.rm-frame { --rw: 74px; margin-bottom: 18px; }
	.rm-panel { padding: 20px; }
	.rm-contact li { padding: 10px 0; }
	.rm-contact__v { font-size: 1rem; }
	.rm-tender input:not([type="checkbox"]):not([type="submit"]):not([type="file"]), .rm-tender select { min-height: 46px; padding: 9px 12px; }
	.rm-tender label { font-size: .92rem; }
	.rm-req-note { margin-bottom: 10px; }
	.rm-stepnav { margin-bottom: 18px; gap: 6px 18px; font-size: .92rem; }
	.rm-step-btns { margin-top: 18px; }
	.rm-formsec { gap: 8px; }
	.rm-steps { --node: 48px; gap: 14px; }
	.rm-steps li { font-size: 1.05rem; padding-left: calc(var(--node) + 16px); }
	.rm-steps li::after { left: 10px; top: 10px; width: 28px; height: 28px; }
	.rm-chips li { min-height: 52px; padding: 10px 10px 10px 12px; gap: 10px; font-size: .92rem; }
	.rm-chips li::before { width: 20px; height: 14px; }
	.rm-topbar { display: none; }
	.rm-split:has(.rm-text > h2 ~ h2) > .rm-media { display: none; }
	.rm-text > h2.wp-block-heading ~ h2.wp-block-heading { margin-top: 28px; }
	.rm-hero { min-height: max(calc(100svh - var(--hh)), 480px); }
	.rm-grid, .rm-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.rm-facts__row { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; font-size: .95rem; }
	.rm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
	.rm-footer__contact { grid-column: 1 / -1; }
	.rm-actions .rm-btn, .wp-block-buttons .wp-block-button { flex: 1 1 auto; }
	.wp-block-button__link { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .rm-frame__roof path, .js .rm-logo__line { stroke-dashoffset: 0 !important; }
	.js .rm-frame__wall { clip-path: none !important; }
}

@media print {
	.rm-header, .rm-footer, .rm-cookie, .rm-skip { display: none !important; }
	.rm-sec { min-height: 0; break-inside: avoid; }
}
