/* ==========================================================================
   Roosevelt Builders — pastel green / grey / white palette
   ========================================================================== */

:root {
	--rb-green: #7c9a82;
	--rb-green-dark: #5b7862;
	--rb-green-pale: #e9f0ea;
	--rb-grey: #8b8f8a;
	--rb-grey-dark: #4a4d49;
	--rb-grey-pale: #f4f5f2;
	--rb-white: #ffffff;
	--rb-text: #34362f;
	--rb-radius: 14px;
	--rb-shadow: 0 10px 30px rgba(75, 90, 78, 0.08);
	--rb-max: 1180px;
	--rb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--rb-font);
	color: var(--rb-text);
	background: var(--rb-white);
	line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }

.rb-container {
	max-width: var(--rb-max);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------------- Header: shared basics ---------------- */
.rb-logo { display: inline-flex; align-items: center; }

.rb-logo .custom-logo { display: block; height: 60px; width: auto; }

.rb-logo--text {
	font-weight: 800;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rb-grey-dark);
}

.rb-nav__list {
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rb-nav__list a {
	position: relative;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--rb-grey-dark);
	transition: color 0.3s ease;
}

.rb-nav__list a:not(.rb-nav__cta) { padding-bottom: 4px; }

.rb-nav__list a.rb-nav__cta {
	color: var(--rb-btn-color, var(--rb-white));
}

.rb-nav__list a:not(.rb-nav__cta)::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--rb-green);
	transition: width 0.25s ease;
}

.rb-nav__list a:not(.rb-nav__cta):hover::after { width: 100%; }

.rb-nav__list a:not(.rb-nav__cta):hover { color: var(--rb-green-dark); }

.rb-nav__list a.rb-nav__cta:hover {
	color: var(--rb-btn-color-hover, var(--rb-white));
	transform: skewX(-14deg);
}

.rb-nav-toggle {
	display: none;
	position: relative;
	width: 26px;
	height: 20px;
	flex-direction: column;
	justify-content: space-between;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.rb-nav-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--rb-grey-dark);
	transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}

.rb-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.rb-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rb-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.rb-nav-toggle__label { display: none; }

/* ---------------- Approach A: floating top bar ----------------
   Detached from the very edge of the viewport (20px gap), with the same
   rhombus/parallelogram corner cut as the buttons — reads as one
   consistent shape language across the site. */
.rb-header.rb-header--topbar {
	position: fixed;
	top: 10px;
	left: 50%;
	width: 75%;
	z-index: 100;
	background: var(--rb-white);
	box-shadow: 0 14px 34px rgba(20, 21, 18, 0.32);
	border-radius: 10px 0 10px 0;
	transform-origin: top center;
	animation: rb-header-slide-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
	transition: box-shadow 0.3s ease, transform 0.4s ease, border-radius 0.4s ease;
}

/* Straightens into a plain rectangle while the mobile menu is open, then
   eases back into the rhombus shape when it closes. */
.rb-header.rb-header--topbar.rb-header--menu-open {
	transform: translateX(-50%) !important;
	border-radius: 0 !important;
}

.rb-header.rb-header--topbar.rb-header--menu-open .rb-header__inner {
	transform: none !important;
}

/* On the homepage, wait for the preloader to clear before sliding in. */
.rb-header.rb-header--delayed {
	animation-delay: 3.8s;
}

.rb-header.rb-header--topbar.is-scrolled {
	box-shadow: 0 20px 50px rgba(20, 21, 18, 0.4);
}

@keyframes rb-header-slide-in {
	from { transform: translateX(calc(-50% - 100vw)) skewX(-14deg); opacity: 0; }
	to { transform: translateX(-50%) skewX(-14deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.rb-header.rb-header--topbar {
		animation: none;
		transform: translateX(-50%) skewX(-14deg);
	}
}

.rb-header.rb-header--topbar .rb-header__inner {
	max-width: var(--rb-max);
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transform: skewX(14deg);
}

.rb-header.rb-header--topbar .rb-logo .custom-logo { height: 44px; }

.rb-header.rb-header--topbar .rb-nav__cta { margin-right: 10px; }

/* ---------------- Approach B: fixed vertical sidebar ----------------
   Nav lives in a full-height dark column on the left; page content shifts
   right to make room on desktop. Distinct, unusual for this category. */
.rb-header.rb-header--sidebar {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 260px;
	z-index: 100;
	background: var(--rb-grey-dark);
	border-right: 4px solid var(--rb-green);
}

.rb-header.rb-header--sidebar .rb-header__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: 32px 28px;
}

.rb-header.rb-header--sidebar .rb-logo .custom-logo {
	filter: brightness(0) invert(1);
	height: 52px;
}

.rb-header.rb-header--sidebar .rb-logo--text { color: var(--rb-white); }

.rb-header.rb-header--sidebar .rb-nav {
	margin-top: 56px;
	width: 100%;
}

.rb-header.rb-header--sidebar .rb-nav__list {
	flex-direction: column;
	align-items: flex-start;
	gap: 26px;
}

.rb-header.rb-header--sidebar .rb-nav__list a { color: rgba(255, 255, 255, 0.8); }

.rb-header.rb-header--sidebar .rb-nav__list a:hover { color: var(--rb-white); }

.rb-header.rb-header--sidebar .rb-nav__cta {
	margin-top: auto;
	width: 100%;
	justify-content: center;
}

@media (min-width: 901px) {
	body.rb-header--sidebar .rb-site-content,
	body.rb-header--sidebar .rb-footer {
		margin-left: 260px;
	}
}

@media (max-width: 900px) {
	.rb-header.rb-header--topbar {
		top: 10px;
		left: 52%;
		width: 94%;
	}

	.rb-header.rb-header--sidebar {
		position: sticky;
		width: auto;
		height: auto;
		border-right: none;
		border-bottom: 4px solid var(--rb-green);
	}

	.rb-header.rb-header--sidebar .rb-header__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		height: auto;
		padding: 16px 24px;
	}

	.rb-header.rb-header--sidebar .rb-nav { margin-top: 0; }

	.rb-header.rb-header--sidebar .rb-nav-toggle span { background: var(--rb-white); }
}

/* ---------------- Buttons ----------------
   Rhombus (parallelogram): slanted left/right edges with soft rounded
   corners, like a cut diamond facet — used consistently on every
   button/CTA on the site (nav, hero, sticky mobile bar, section CTAs).
   Built with skewX() + border-radius (not clip-path) so the corners can
   be genuinely rounded; the label is counter-skewed to stay upright. */
.rb-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 38px;
	font-family: var(--rb-font);
	font-weight: 600;
	font-size: 0.85rem;
	line-height: 1;
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: var(--rb-btn-color, var(--rb-white));
	background-color: var(--rb-btn-bg, var(--rb-green));
	overflow: hidden;
	border-radius: 10px 0 10px 0;
	box-shadow: 0 2px 8px rgba(52, 54, 47, 0.1);
	cursor: pointer;
	transform: skewX(-14deg);
	transition: color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.rb-button > * { position: relative; z-index: 1; display: inline-block; transform: skewX(14deg); text-transform: uppercase; }

/* Fill sweep: a darker green sheet slides in from the left on hover. */
.rb-button::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 0%;
	background-color: var(--rb-btn-bg-hover, var(--rb-green-dark));
	z-index: 0;
	transition: width 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.rb-button:hover::before { width: 100%; }

.rb-button:hover {
	color: var(--rb-btn-color-hover, var(--rb-white));
	box-shadow: 0 6px 16px rgba(52, 54, 47, 0.18);
	transform: skewX(-14deg) translateY(-2px);
}

.rb-button:active { transform: skewX(-14deg) translateY(0); box-shadow: 0 2px 8px rgba(52, 54, 47, 0.1); }

.rb-button:focus-visible {
	outline: 2px solid var(--rb-green-dark);
	outline-offset: 3px;
}

.rb-button__arrow {
	display: inline-block;
	transition: transform 0.25s ease;
}

.rb-button:hover .rb-button__arrow { transform: translateX(4px); }

.rb-button--primary {
	--rb-btn-bg: var(--rb-green);
	--rb-btn-bg-hover: var(--rb-green-dark);
	--rb-btn-color: var(--rb-white);
	--rb-btn-color-hover: var(--rb-white);
}

/* Every button reads as the same green "primary" style now, regardless of
   context (hero-over-video, outline, dark section) — matching the plain
   About-page CTA exactly, no per-context color swapping. */
.rb-button--outline {
	--rb-btn-bg: var(--rb-green);
	--rb-btn-bg-hover: var(--rb-green-dark);
	--rb-btn-color: var(--rb-white);
	--rb-btn-color-hover: var(--rb-white);
}

.rb-button--dark {
	--rb-btn-bg: var(--rb-green);
	--rb-btn-bg-hover: var(--rb-green-dark);
	--rb-btn-color: var(--rb-white);
	--rb-btn-color-hover: var(--rb-white);
}

.rb-button--sm {
	padding: 9px 24px;
	font-size: 0.78rem;
	border-radius: 8px 0 8px 0;
}

/* ---------------- Hero ---------------- */
.rb-hero {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 94vh;
	background: linear-gradient(180deg, var(--rb-green-pale) 0%, var(--rb-white) 100%);
	background-size: cover;
	background-position: center;
	padding: 160px 0 100px;
	text-align: center;
}

.rb-hero--media {
	animation: rb-hero-zoom 18s ease-in-out infinite alternate;
}

.rb-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.rb-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(52, 54, 47, 0.35) 0%, rgba(52, 54, 47, 0.6) 100%);
	z-index: 1;
}

.rb-hero__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.rb-hero__headline {
	font-size: clamp(2rem, 4vw, 3.1rem);
	letter-spacing: -0.01em;
	background: linear-gradient(180deg, var(--rb-white) 30%, var(--rb-green-pale) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.rb-hero:not(.rb-hero--media) .rb-hero__headline {
	background: linear-gradient(180deg, var(--rb-grey-dark) 30%, var(--rb-green-dark) 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

.rb-hero--media .rb-hero__subheadline {
	color: var(--rb-white);
}

.rb-hero__subheadline {
	font-size: 1.15rem;
	color: var(--rb-grey);
	margin-bottom: 2em;
}

@keyframes rb-hero-zoom {
	from { background-size: 100%; }
	to { background-size: 112%; }
}

/* Fade-in-up reveal for hero content */
.rb-reveal {
	opacity: 0;
	transform: translateY(22px);
	animation: rb-reveal-in 1.4s ease forwards;
	animation-delay: 5.8s;
}

.rb-reveal--delay-1 { animation-delay: 6.2s; }
.rb-reveal--delay-2 { animation-delay: 6.6s; }

@keyframes rb-reveal-in {
	to { opacity: 1; transform: translateY(0); }
}

/* A .rb-button is already skewed via `transform`, so its reveal animation
   needs its own keyframes that keep the skew instead of replacing it. */
.rb-button.rb-reveal {
	transform: skewX(-14deg) translateY(22px);
	animation-name: rb-reveal-in-button;
}

@keyframes rb-reveal-in-button {
	to { opacity: 1; transform: skewX(-14deg) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.rb-hero--media,
	.rb-reveal {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.rb-button.rb-reveal { transform: skewX(-14deg); }
}

/* ---------------- Sections ---------------- */
.rb-section { padding: 90px 0; }

.rb-section:nth-of-type(even) { background: var(--rb-grey-pale); }

.rb-section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.rb-section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--rb-grey-dark); }

.rb-section__head p { color: var(--rb-grey); font-size: 1.125rem; }

/* ---------------- Services / Cards ----------------
   Full-bleed edge-to-edge: three photos in a row with a thick frame
   border, description underneath each. */
.rb-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.rb-card {
	position: relative;
	background: var(--rb-white);
	text-align: left;
}

/* Grey divider between cards, dropping a little past the photo into the
   description area. */
.rb-card:not(:first-child)::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: calc(340px + 34px);
	background: var(--rb-grey-pale);
}

.rb-card__icon {
	width: 100%;
	height: 340px;
	object-fit: cover;
	display: block;
	border: 3px solid var(--rb-white);
	box-sizing: border-box;
	transition: transform 0.4s ease;
}

.rb-card:first-child .rb-card__icon { border-left: 0; }
.rb-card:last-child .rb-card__icon { border-right: 0; }

.rb-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 340px;
	background: linear-gradient(180deg, rgba(20,21,18,0.12) 0%, rgba(20,21,18,0.32) 100%);
	pointer-events: none;
}

.rb-card:hover .rb-card__icon { transform: scale(1.03); }

.rb-card__icon--placeholder {
	background: var(--rb-green-pale);
	height: 340px;
	border: 3px solid var(--rb-white);
	box-sizing: border-box;
}

.rb-card:first-child .rb-card__icon--placeholder { border-left: 0; }
.rb-card:last-child .rb-card__icon--placeholder { border-right: 0; }

.rb-card__body { padding: 28px 32px 36px; }

.rb-card h3 { color: var(--rb-grey-dark); font-size: 1.15rem; }

.rb-card p { color: var(--rb-grey); margin: 0; }

/* ---------------- Steps ("What Sets Us Apart") ----------------
   A connected timeline: big numbered circles linked by a line running
   across the row, with an arrow between each step to read as a process,
   not just three unrelated cards. */
.rb-apart {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--rb-green-pale) 0%, var(--rb-white) 55%);
}

.rb-apart::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(var(--rb-green-pale) 1.5px, transparent 1.5px);
	background-size: 26px 26px;
	opacity: 0.5;
	pointer-events: none;
}

.rb-apart .rb-container { position: relative; }

.rb-steps {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	counter-reset: rb-step;
}

/* Wavy dashed connectors, only in the gap between each pair of cards, at the
   number-circle height — each gap gets a different wave shape. */
.rb-steps__item:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 60px;
	right: -28px;
	width: 28px;
	height: 36px;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 0;
	pointer-events: none;
}

.rb-steps__item:nth-child(1)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'%3E%3Cpath d='M0,6 Q14,18 28,32' fill='none' stroke='%237c9a82' stroke-width='2.5' stroke-dasharray='9 7' opacity='0.75'/%3E%3C/svg%3E");
}

.rb-steps__item:nth-child(2)::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 36'%3E%3Cpath d='M0,32 Q14,18 28,6' fill='none' stroke='%237c9a82' stroke-width='2.5' stroke-dasharray='9 7' opacity='0.75'/%3E%3C/svg%3E");
}

.rb-steps__item {
	background: var(--rb-white);
	border: 2px solid var(--rb-green);
	border-radius: var(--rb-radius);
	padding: 46px 28px 34px;
	position: relative;
	z-index: 1;
	text-align: center;
	box-shadow: 0 12px 30px rgba(75, 90, 78, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}


.rb-steps__item--cost::before {
	content: '$';
	position: absolute;
	left: -18px;
	bottom: -6px;
	font-size: 6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--rb-green-pale);
	z-index: 0;
	pointer-events: none;
}

.rb-steps__item--cost > * {
	position: relative;
	z-index: 1;
}

.rb-steps__item:hover {
	transform: translateY(-8px);
	border-color: var(--rb-green-dark);
	box-shadow: 0 20px 40px rgba(75, 90, 78, 0.16);
}

/* Connector line + arrow between steps 1→2 and 2→3 */

.rb-steps__number {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--rb-green);
	color: var(--rb-white);
	font-weight: 800;
	font-size: 1.4rem;
	margin: 0 auto 20px;
	box-shadow: 0 0 0 6px var(--rb-green-pale), 0 10px 20px rgba(75, 90, 78, 0.2);
	transition: transform 0.3s ease, background 0.3s ease;
}

.rb-steps__item:hover .rb-steps__number {
	transform: scale(1.1);
	background: var(--rb-green-dark);
}

.rb-steps__item h3 { color: var(--rb-grey-dark); font-size: 1.15rem; }

.rb-steps__item p { color: var(--rb-grey); margin: 0; }

.rb-steps__item .rb-badge { display: block; margin-left: auto; margin-right: auto; width: fit-content; }

.rb-badge {
	display: inline-block;
	margin-top: 16px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--rb-green-pale);
	color: var(--rb-green-dark);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rb-apart__cta {
	text-align: center;
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid var(--rb-green-pale);
}

.rb-apart__cta p {
	color: var(--rb-grey-dark);
	font-weight: 600;
	margin-bottom: 16px;
}

/* ---------------- Stats ----------------
   Same corner-shadow treatment as the buttons — dark diagonal glow in
   opposite corners — so the motif reads consistently across the site. */
.rb-section.rb-stats {
	text-align: center;
	color: var(--rb-white);
	padding: 48px 0;
	background:
		radial-gradient(ellipse 55% 55% at 100% 0%, rgba(0, 0, 0, 0.14), transparent 65%),
		radial-gradient(ellipse 55% 55% at 0% 100%, rgba(0, 0, 0, 0.14), transparent 65%),
		var(--rb-green-dark);
}

.rb-stats__heading {
	position: relative;
	display: inline-block;
	color: var(--rb-white);
	font-size: clamp(1.4rem, 2.6vw, 1.8rem);
	margin-bottom: 36px;
	padding-bottom: 14px;
}

.rb-stats__heading::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 3px;
	background: var(--rb-green-pale);
	border-radius: 2px;
}

.rb-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.rb-stat {
	position: relative;
	padding: 8px 16px;
}

.rb-stat + .rb-stat::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10%;
	bottom: 10%;
	width: 1px;
	background: rgba(255, 255, 255, 0.2);
}

.rb-stat__number {
	display: block;
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 800;
	color: var(--rb-green-pale);
	line-height: 1.1;
}

.rb-stat__label {
	display: block;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 10px;
}

/* ---------------- Warranty (media + content split) ---------------- */
.rb-warranty__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.rb-warranty__media img,
.rb-media-placeholder {
	border-radius: var(--rb-radius);
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: var(--rb-green-pale);
}

.rb-warranty__media img { object-position: right center; }

.rb-warranty__content h2 { color: var(--rb-grey-dark); }

.rb-warranty__content p { color: var(--rb-grey); }

/* ---------------- Portfolio ---------------- */
.rb-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.rb-portfolio__item {
	position: relative;
	overflow: hidden;
	border-radius: var(--rb-radius);
	border: 2px solid var(--rb-green-pale);
	background: var(--rb-white);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.rb-portfolio__item:hover {
	border-color: var(--rb-green);
	box-shadow: 0 16px 32px rgba(75, 90, 78, 0.14);
	transform: translateY(-4px);
}

.rb-portfolio__item img,
.rb-portfolio__item .rb-media-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin-bottom: 0;
	transition: transform 0.5s ease;
	flex: 1;
}

@media (min-width: 901px) {
	.rb-portfolio .rb-container { max-width: 1360px; }
}

.rb-portfolio__item:hover img,
.rb-portfolio__item:hover .rb-media-placeholder {
	transform: scale(1.06);
}

.rb-portfolio__item h3 {
	color: var(--rb-grey-dark);
	font-size: 1.05rem;
	margin: 0;
	padding: 16px 18px;
}

a.rb-portfolio__item { display: flex; flex-direction: column; }

/* ---------------- Featured Projects: swipeable carousel ----------------
   Horizontal scroll-snap track (works with touch swipe natively) plus
   arrow buttons that scroll by one card. Used on the homepage only — the
   full archive still uses the plain grid above. */
.rb-portfolio__carousel {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rb-portfolio__track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 4px 4px 14px;
	flex: 1;
	min-width: 0;
}

.rb-portfolio__track::-webkit-scrollbar { display: none; }

.rb-portfolio__track .rb-portfolio__item {
	flex: 0 0 300px;
	scroll-snap-align: start;
}

.rb-portfolio__nav {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--rb-green-pale);
	background: var(--rb-white);
	color: var(--rb-green-dark);
	font-size: 1.1rem;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rb-portfolio__nav:hover {
	border-color: var(--rb-green-dark);
	background: var(--rb-green-dark);
	color: var(--rb-white);
}

@media (max-width: 600px) {
	.rb-portfolio__nav { display: none; }
	.rb-portfolio__track .rb-portfolio__item { flex-basis: 78vw; }
}

.rb-portfolio__grid--archive {
	grid-template-columns: repeat(3, 1fr);
}

.rb-projects-archive { padding: 160px 0 100px; }
.rb-projects-archive .rb-section__head { margin-bottom: 40px; }

/* ---------------- Projects: type filter ---------------- */
.rb-project-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
}

.rb-project-filters__btn {
	font-family: var(--rb-font);
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.02em;
	color: var(--rb-grey-dark);
	background: var(--rb-white);
	border: 1.5px solid var(--rb-green-pale);
	border-radius: 999px;
	padding: 10px 22px;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rb-project-filters__btn:hover {
	border-color: var(--rb-green);
	color: var(--rb-green-dark);
}

.rb-project-filters__btn.is-active {
	background: var(--rb-green-dark);
	border-color: var(--rb-green-dark);
	color: var(--rb-white);
	box-shadow: 0 6px 16px rgba(75, 90, 78, 0.22);
}

.rb-project-filters__empty {
	text-align: center;
	color: var(--rb-grey);
	padding: 40px 0;
}

/* Small pill labelling the property type on each archive card. */
.rb-portfolio__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	background: rgba(20, 21, 18, 0.65);
	color: var(--rb-white);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 12px;
	border-radius: 999px;
	backdrop-filter: blur(2px);
}

/* ---------------- Projects: map ---------------- */
.rb-projects-map__wrap {
	margin-top: 72px;
}

.rb-projects-map {
	width: 100%;
	height: 480px;
	border-radius: var(--rb-radius);
	overflow: hidden;
	border: 2px solid var(--rb-green-pale);
	background: var(--rb-green-pale);
}

.rb-map-info {
	max-width: 220px;
	font-family: var(--rb-font);
}

.rb-map-info img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 8px;
}

.rb-map-info strong {
	display: block;
	color: var(--rb-grey-dark);
	font-size: 0.95rem;
	margin-bottom: 2px;
}

.rb-map-info span {
	display: inline-block;
	color: var(--rb-green-dark);
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 6px;
}

.rb-map-info a {
	display: inline-block;
	color: var(--rb-green-dark);
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.rb-projects-map { height: 360px; }
}

.rb-projects-archive nav.pagination,
.rb-projects-archive .navigation {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 48px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

.rb-projects-archive nav.pagination a,
.rb-projects-archive .navigation a { color: var(--rb-green-dark); }

.rb-project-single { padding: 160px 0 100px; }

.rb-project-single__inner { max-width: 880px; }

.rb-project-single__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 32px;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	color: var(--rb-green-dark);
	transition: transform 0.2s ease;
}

.rb-project-single__back:hover { transform: translateX(-3px); }

.rb-project-single__head { margin-bottom: 28px; }

.rb-project-single__type {
	display: inline-block;
	background: var(--rb-green-pale);
	color: var(--rb-green-dark);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.rb-project-single h1 { color: var(--rb-grey-dark); margin: 0; }

.rb-project-single__media {
	position: relative;
	border-radius: var(--rb-radius);
	box-shadow: 0 20px 48px rgba(20, 21, 18, 0.16);
	overflow: hidden;
}

.rb-project-single__media img,
.rb-project-single__media .rb-media-placeholder {
	width: 100%;
	border-radius: var(--rb-radius);
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.rb-project-single__gallery-hint { margin: 0 0 16px; color: var(--rb-grey); font-size: 0.9rem; }

.rb-project-single__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.rb-project-single__photo {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: var(--rb-radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: pointer;
	background: var(--rb-green-pale);
}

.rb-project-single__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.rb-project-single__photo:hover img { transform: scale(1.05); }

.rb-project-single__photo span {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 6px 12px;
	border-radius: 20px;
	background: rgba(20, 21, 18, 0.55);
	color: var(--rb-white);
	font-size: 0.75rem;
	opacity: 0;
	transform: translateY(6px);
	transition: 0.2s ease;
}

.rb-project-single__photo:hover span { opacity: 1; transform: translateY(0); }

.rb-project-single__content { margin-top: 32px; color: var(--rb-grey); max-width: 760px; }

.rb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	visibility: hidden;
	align-items: center;
	justify-content: center;
	padding: 60px 70px;
	background: rgba(10, 11, 9, 0.96);
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rb-lightbox.is-open { visibility: visible; opacity: 1; }

.rb-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; }

.rb-lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 6px; }

.rb-lightbox figcaption { margin-top: 14px; text-align: center; color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }

.rb-lightbox__close,
.rb-lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: var(--rb-white);
	cursor: pointer;
	border-radius: 50%;
	display: grid;
	place-items: center;
	transition: background 0.2s ease;
}

.rb-lightbox__close:hover,
.rb-lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }

.rb-lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 24px; line-height: 1; }

.rb-lightbox__nav { top: 50%; width: 52px; height: 52px; font-size: 20px; transform: translateY(-50%); }

.rb-lightbox__nav--prev { left: 20px; }

.rb-lightbox__nav--next { right: 20px; }

@media (max-width: 760px) {
	.rb-project-single__gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.rb-lightbox { padding: 60px 16px 24px; }
	.rb-lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 10px; transform: none; }
	.rb-lightbox__nav--prev { left: 16px; }
	.rb-lightbox__nav--next { right: 16px; }
}

.rb-project-single__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--rb-green-pale);
}

@media (max-width: 600px) {
	.rb-project-single { padding: 120px 0 72px; }
	.rb-project-single__footer { flex-direction: column; }
	.rb-project-single__footer .rb-button { width: 100%; }
}

/* ---------------- About page ---------------- */
.rb-about { padding: 160px 0 100px; }

.rb-about__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.rb-about__media img,
.rb-about__media .rb-media-placeholder {
	width: 100%;
	border-radius: var(--rb-radius);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rb-about__content h1 { color: var(--rb-grey-dark); }

.rb-about__content p { color: var(--rb-grey); }

@media (max-width: 900px) {
	.rb-about__inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	.rb-portfolio__grid--archive { grid-template-columns: 1fr; }
}

.rb-portfolio__cta { text-align: center; margin-top: 48px; }

/* ---------------- Closing CTA ---------------- */
/* CTA and footer sit inside one shared wrapper with a single background
   photo behind both, so they read as one continuous band, not two
   separately-cropped sections. */
.rb-cta-footer-band {
	position: relative;
	--rb-cta-bg-desktop: url('../images/projects/project-01.jpg');
	--rb-cta-bg-mobile: url('../images/cta-footer-mobile.jpg');
	background-image: linear-gradient(180deg, rgba(52, 54, 47, 0.72), rgba(52, 54, 47, 0.9)), var(--rb-cta-bg-desktop);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
}

.rb-cta {
	text-align: center;
	padding: 60px 0;
	background: rgba(74, 77, 73, 0.41);
}

.rb-cta h2 { color: var(--rb-white); }

.rb-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 2em; }

/* ---------------- Footer ---------------- */
.rb-footer { background-color: var(--rb-grey-dark); color: var(--rb-white); padding-top: 60px; border-top: 1px solid rgba(255, 255, 255, 0.35); }

/* On the homepage the footer sits inside .rb-cta-footer-band, which
   already paints the shared photo behind it — so let that show through. */
body.home .rb-footer { background-color: transparent; }

/* Every other page doesn't have that shared band, so the footer paints
   the same photo + gradient treatment itself, using the same fallback
   photo — same look as the homepage, just self-contained. */
body:not(.home) .rb-footer {
	position: relative;
	--rb-cta-bg-desktop: url('../images/projects/project-01.jpg');
	--rb-cta-bg-mobile: url('../images/cta-footer-mobile.jpg');
	background-image: linear-gradient(180deg, rgba(52, 54, 47, 0.72), rgba(52, 54, 47, 0.9)), var(--rb-cta-bg-desktop);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center top;
}

.rb-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 32px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rb-logo--footer { color: var(--rb-white); margin-bottom: 12px; }

.rb-footer p, .rb-footer a { color: rgba(255, 255, 255, 0.75); }

.rb-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.rb-footer__social { display: flex; flex-direction: column; gap: 8px; }

.rb-footer__bottom { padding: 20px 0; }

.rb-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.rb-footer__bottom p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.rb-footer__credit a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }

.rb-footer__credit a:hover { color: var(--rb-white); }

/* ---------------- Basic page fallback ---------------- */
.rb-page { padding: 160px 0 80px; min-height: 40vh; }

/* ---------------- Sticky mobile CTA bar ---------------- */
.rb-sticky-cta {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: var(--rb-white);
	box-shadow: 0 -6px 20px rgba(52, 54, 47, 0.14);
	opacity: 0;
	transform: translateY(100%);
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.rb-sticky-cta.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.rb-sticky-cta a {
	flex: 1;
	text-align: center;
	padding: 16px 12px;
	font-weight: 700;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rb-sticky-cta__call {
	background: var(--rb-grey-dark);
	color: var(--rb-white);
}

.rb-sticky-cta__quote {
	background: var(--rb-green);
	color: var(--rb-white);
}

.rb-sticky-cta.is-visible.rb-sticky-cta--footer-visible {
	opacity: 0;
	transform: translateY(100%);
	pointer-events: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
	.rb-sticky-cta { display: flex; }

	body { /* padding-bottom: 56px; */ }
	.rb-services__grid,
	.rb-steps,
	.rb-stats__grid,
	.rb-portfolio__grid {
		grid-template-columns: 1fr;
	}

	.rb-stats__grid { gap: 36px; }

	.rb-stat + .rb-stat::before { display: none; }

	.rb-steps__item:not(:last-child)::after { display: none; }

	.rb-warranty__inner { grid-template-columns: 1fr; }

	.rb-warranty__content { text-align: center; }

	.rb-footer__inner { grid-template-columns: 1fr; }

	.rb-cta-footer-band {
		background-image: linear-gradient(180deg, rgba(52, 54, 47, 0.72), rgba(52, 54, 47, 0.9)), var(--rb-cta-bg-mobile);
	}

	body:not(.home) .rb-footer {
		background-image: linear-gradient(180deg, rgba(52, 54, 47, 0.72), rgba(52, 54, 47, 0.9)), var(--rb-cta-bg-mobile);
	}

	.rb-cta { background: none; }

	.rb-nav-toggle { display: inline-flex; }

	.rb-nav {
		position: fixed;
		top: 78px;
		left: 50%;
		transform: translateX(calc(-50% - 100vw));
		width: 94%;
		z-index: 99;
		overflow: hidden;
		background: linear-gradient(180deg, var(--rb-grey-dark) 0%, #3a3d38 100%);
		border-radius: 12px;
		padding: 0 24px;
		box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
		transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
	}

	.rb-nav.is-open {
		transform: translateX(-50%);
	}

	.rb-nav .rb-nav__list a { color: var(--rb-white); }

	.rb-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 0 18px;
	}

	.rb-nav__list li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

	.rb-nav__list li:last-child { border-bottom: none; }

	.rb-nav__list a {
		display: block;
		padding: 14px 4px;
		font-size: 0.9rem;
	}

	.rb-nav__list a.rb-nav__cta {
		margin-top: 14px;
		padding: 14px 24px;
		text-align: center;
	}

	.rb-header__inner { flex-wrap: wrap; }
}

/* ---------------- Preloader (homepage only) ----------------
   Green screen, logo text fades in, a frame draws itself starting from
   the right edge and tracing all the way around, then the "Builders"
   line appears. To close, it doesn't slide away as one flat panel — four
   organic blob shapes anchored at the four corners (which overlap at
   rest to read as one solid fill) drain outward in four different
   diagonal directions at once, like paint/liquid being pulled off the
   screen, while a plain base fill underneath fades out at the same time
   so no solid color is ever left behind mid-animation. */
.rb-preloader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: none;
}

.rb-preloader.is-done {
	pointer-events: none;
}

.rb-preloader__liquid {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.rb-preloader__base {
	position: absolute;
	inset: 0;
	background: var(--rb-green-dark);
	transition: opacity 0.9s ease;
}

.rb-preloader__blob {
	position: absolute;
	width: 140vmax;
	height: 140vmax;
	background: var(--rb-green-dark);
	transition: transform 1s cubic-bezier(0.6, 0, 0.3, 1), opacity 1s ease;
	will-change: transform, opacity;
}

.rb-preloader__blob--tl { top: -70vmax; left: -70vmax; border-radius: 42% 58% 63% 37% / 41% 49% 51% 59%; }
.rb-preloader__blob--tr { top: -70vmax; right: -70vmax; border-radius: 58% 42% 37% 63% / 49% 41% 59% 51%; }
.rb-preloader__blob--bl { bottom: -70vmax; left: -70vmax; border-radius: 37% 63% 58% 42% / 59% 51% 41% 49%; }
.rb-preloader__blob--br { bottom: -70vmax; right: -70vmax; border-radius: 63% 37% 42% 58% / 51% 59% 49% 41%; }

.rb-preloader.is-done .rb-preloader__base {
	opacity: 0;
}

.rb-preloader.is-done .rb-preloader__blob--tl {
	transform: translate(-30vmax, -28vmax) rotate(-12deg) scale(0.8);
	opacity: 0;
	transition-delay: 0s;
}

.rb-preloader.is-done .rb-preloader__blob--tr {
	transform: translate(30vmax, -28vmax) rotate(12deg) scale(0.8);
	opacity: 0;
	transition-delay: 0.07s;
}

.rb-preloader.is-done .rb-preloader__blob--bl {
	transform: translate(-28vmax, 30vmax) rotate(10deg) scale(0.8);
	opacity: 0;
	transition-delay: 0.14s;
}

.rb-preloader.is-done .rb-preloader__blob--br {
	transform: translate(28vmax, 30vmax) rotate(-10deg) scale(0.8);
	opacity: 0;
	transition-delay: 0.21s;
}

@media (prefers-reduced-motion: reduce) {
	.rb-preloader__base,
	.rb-preloader__blob {
		transition: opacity 0.4s ease;
	}

	.rb-preloader.is-done .rb-preloader__blob--tl,
	.rb-preloader.is-done .rb-preloader__blob--tr,
	.rb-preloader.is-done .rb-preloader__blob--bl,
	.rb-preloader.is-done .rb-preloader__blob--br {
		transform: none;
		opacity: 0;
		transition-delay: 0s;
	}
}

.rb-preloader__mark {
	position: relative;
	z-index: 2;
	width: min(85vw, 560px);
	aspect-ratio: 800 / 400;
	container-type: inline-size;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.rb-preloader.is-done .rb-preloader__mark {
	opacity: 0;
	transform: scale(0.92);
}

.rb-preloader__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.rb-preloader__frame path {
	fill: none;
	stroke: var(--rb-white);
	stroke-width: 3;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: rb-preloader-draw 1s ease-in-out forwards;
	animation-delay: 1s;
}

@keyframes rb-preloader-draw {
	to { stroke-dashoffset: 0; }
}

/* Positioned to match the real logo: ROOSEVELT centered in the frame,
   BUILDERS LLC sitting in the gap where the bottom border is cut, with
   the frame's right edge continuing on past it. Sequence: letters type
   in first, then the frame draws, then "Builders LLC" appears last. */
.rb-preloader__roosevelt {
	position: absolute;
	left: 50%;
	top: 47.9%;
	transform: translate(-50%, -50%);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 13cqw;
	letter-spacing: 0.01em;
	color: var(--rb-white);
	white-space: nowrap;
}

.rb-preloader__letter {
	display: inline-block;
	opacity: 0;
	transform: translateY(8px);
	animation: rb-preloader-fade-up 0.35s ease forwards;
	animation-delay: calc(var(--i) * 0.07s);
}

.rb-preloader__builders {
	position: absolute;
	left: 60%;
	top: 75%;
	transform: translate(0, calc(-50% - 20px));
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 4.5cqw;
	line-height: 1;
	letter-spacing: 0.1em;
	color: var(--rb-white);
	white-space: nowrap;
	opacity: 0;
	animation: rb-preloader-fade-up 0.5s ease forwards;
	animation-delay: 2.1s;
}

@keyframes rb-preloader-fade-up {
	to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Scroll fade-in ----------------
   Titles, text blocks, and list/grid items fade+rise in as they enter the
   viewport, and reset so they replay every time (added via JS). */
.rb-scroll-fade {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.rb-scroll-fade.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.rb-scroll-fade {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Step cards flip in one after another as the section enters view. */
.rb-flip-in {
	opacity: 0;
	transform: perspective(900px) rotateX(-80deg);
	transform-origin: center top;
	transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.rb-flip-in.is-visible {
	opacity: 1;
	transform: perspective(900px) rotateX(0deg);
}

@media (prefers-reduced-motion: reduce) {
	.rb-flip-in {
		opacity: 1;
		transform: none;
		transition: none;
	}
}


/* ---------------- Warranty page ---------------- */
.rb-warranty-page { padding: 160px 0 100px; }

.rb-warranty-page__eyebrow {
	display: inline-block;
	color: var(--rb-green-dark);
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}

.rb-warranty-page__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin-top: 24px;
}

.rb-warranty-page__card {
	border-radius: var(--rb-radius);
	padding: 32px;
	border: 2px solid var(--rb-green-pale);
}

.rb-warranty-page__card--covered {
	background: var(--rb-green-dark);
	color: var(--rb-white);
	border-color: var(--rb-green-dark);
}

.rb-warranty-page__card--covered h2 { color: var(--rb-white); }

.rb-warranty-page__card--noncovered { background: var(--rb-white); }

.rb-warranty-page__card--noncovered h2 { color: var(--rb-grey-dark); }

.rb-warranty-page__card h2 {
	font-size: 1.3rem;
	margin-bottom: 20px;
}

.rb-warranty-page__card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rb-warranty-page__card li {
	position: relative;
	padding-left: 24px;
	line-height: 1.5;
}

.rb-warranty-page__card li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
}

.rb-warranty-page__card--covered li,
.rb-warranty-page__card--covered .rb-warranty-page__note {
	color: rgba(255, 255, 255, 0.9);
}

.rb-warranty-page__card--noncovered li { color: var(--rb-grey); }

.rb-warranty-page__note {
	font-size: 0.85rem;
	font-style: italic;
	margin-top: 18px;
	margin-bottom: 0;
	opacity: 0.85;
}

.rb-warranty-page__callout {
	margin-top: 28px;
	background: var(--rb-grey-pale);
	border-radius: var(--rb-radius);
	padding: 28px 32px;
	border-left: 4px solid var(--rb-green-dark);
}

.rb-warranty-page__callout h2 {
	font-size: 1.1rem;
	color: var(--rb-grey-dark);
	margin-bottom: 14px;
}

.rb-warranty-page__callout ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rb-warranty-page__callout li {
	position: relative;
	padding-left: 22px;
	color: var(--rb-grey-dark);
	font-weight: 600;
}

.rb-warranty-page__callout li::before {
	content: '!';
	position: absolute;
	left: 0;
	top: -1px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--rb-green-dark);
	color: var(--rb-white);
	font-size: 0.7rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rb-warranty-page__cta { text-align: center; margin-top: 48px; }

@media (max-width: 760px) {
	.rb-warranty-page__grid { grid-template-columns: 1fr; }
}

/* ---------------- Sustainability page ---------------- */
.rb-sustainability-page { padding: 160px 0 100px; }

.rb-sustainability-page__head h1 {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.rb-sustainability-page__intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin: 0 0 64px;
}

.rb-sustainability-page__intro-block {
	background: var(--rb-green-pale);
	border-radius: var(--rb-radius);
	padding: 32px;
}

.rb-sustainability-page__intro-block h2 {
	color: var(--rb-green-dark);
	font-size: 1.15rem;
	margin-bottom: 12px;
}

.rb-sustainability-page__intro-block p { color: var(--rb-grey-dark); margin: 0; }

.rb-sustainability-page__values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.rb-sustainability-page__value {
	position: relative;
	padding: 28px 24px 24px;
	border: 2px solid var(--rb-green-pale);
	border-radius: var(--rb-radius);
	background: var(--rb-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rb-sustainability-page__value:hover {
	border-color: var(--rb-green);
	box-shadow: 0 16px 32px rgba(75, 90, 78, 0.14);
	transform: translateY(-4px);
}

.rb-sustainability-page__value-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--rb-green-dark);
	color: var(--rb-white);
	font-weight: 700;
	font-size: 0.9rem;
	margin-bottom: 14px;
}

.rb-sustainability-page__value h3 {
	color: var(--rb-grey-dark);
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.rb-sustainability-page__value p { color: var(--rb-grey); margin: 0; }

@media (max-width: 900px) {
	.rb-sustainability-page__intro { grid-template-columns: 1fr; }
	.rb-sustainability-page__values { grid-template-columns: 1fr; }
}

.rb-contact-page { padding: 160px 0 100px; }

/* ----- Shared form styles (Contact page + Warranty request form) ----- */

.rb-form {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.rb-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.rb-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--rb-grey-dark);
}

.rb-form__required {
	color: var(--rb-green);
	margin-left: 2px;
}

.rb-form__field input,
.rb-form__field textarea {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: var(--rb-grey-dark);
	padding: 14px 16px;
	border: 2px solid var(--rb-green-pale);
	border-radius: var(--rb-radius);
	background: var(--rb-white);
	resize: vertical;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rb-form__field input:focus,
.rb-form__field textarea:focus {
	outline: none;
	border-color: var(--rb-green);
	box-shadow: 0 0 0 3px rgba(124, 154, 130, 0.18);
}

.rb-form > .rb-button {
	align-self: flex-start;
}

.rb-form__banner {
	max-width: 720px;
	margin: 0 auto 24px;
	padding: 14px 18px;
	border-radius: var(--rb-radius);
	font-weight: 600;
	font-size: 0.95rem;
}

.rb-form__banner--success {
	background: var(--rb-green-pale);
	color: var(--rb-grey-dark);
	border: 1px solid var(--rb-green);
}

.rb-form__banner--error {
	background: #fbe9e9;
	color: #7a2e2e;
	border: 1px solid #d98a8a;
}

.rb-warranty-page__form-section {
	margin-top: 56px;
	padding-top: 48px;
	border-top: 1px solid var(--rb-green-pale);
}

@media (max-width: 600px) {
	.rb-form__row { grid-template-columns: 1fr; }
}
