/*
 * Design refresh (Oct 2026), laid out after Mews (mobbin.com/sites/mews) in Aero's own colours and type.
 * Loaded after app.css on every page (base.twig). Page content sits in <main class="rf"> and uses the rf- components
 * below; app.css still styles the header, the footer, the forms' behaviour and the sliders, with the overrides at the
 * end of this file.
 */

:root {
  /* Brand colours (src/scss/vars.scss) */
  --rf-green: #58a922;
  --rf-green-dark: #4d792f;
  --rf-blue: #1b9dcf;
  --rf-ink: #2a2a2a;
  --rf-grey: #606060;
  --rf-cloud: #f7f7f7;
  --rf-fog: #eeeeee;
  --rf-dust: #dfdfdf;
  /* The brand green at 10% on white */
  --rf-tint: #eef6e9;

  --rf-font: "din-2014", sans-serif;
  --rf-radius: 16px;
  --rf-radius-sm: 10px;
  --rf-gutter: clamp(16px, 3vw, 40px);
  --rf-max: 1400px;
  --rf-space: clamp(72px, 8vw, 128px);
  --rf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --rf-arrow-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E");
  --rf-chevron-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}

.rf {
  /* Height of the sticky header bar (parts/header), for things that stick below it */
  --rf-header: 64px;

  display: block;
  font-family: var(--rf-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--rf-grey);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1200px) {
  .rf { --rf-header: 80px; }
}

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

/* Resets sit in :where() so they beat app.css's element rules but never a component class below */
.rf :where(h1, h2, h3, h4, h5) { margin: 0; font-family: var(--rf-font); color: var(--rf-ink); }
.rf :where(p) { margin: 0 0 1em; color: inherit; font-size: inherit; line-height: inherit; }
.rf :where(p:last-child) { margin-bottom: 0; }
.rf :where(ul, ol) { margin: 0; padding: 0; list-style: none; }
.rf :where(img) { display: block; max-width: 100%; height: auto; }
.rf :where(a),
.rf :where(a):hover { color: inherit; text-decoration: none; }
.rf a:focus-visible,
.rf button:focus-visible,
.rf summary:focus-visible { outline: 3px solid var(--rf-blue); outline-offset: 3px; border-radius: 4px; }

/* In-page links land below the sticky header */
.rf :where([id]) { scroll-margin-top: calc(var(--rf-header) + 24px); }

.rf-wrap {
  width: 100%;
  max-width: calc(var(--rf-max) + 2 * var(--rf-gutter));
  margin: 0 auto;
  padding: 0 var(--rf-gutter);
}

.rf-narrow { max-width: 48rem; }

/* ------------------------------------------------------------------ Type */

.rf-display {
  font-weight: 800;
  font-size: clamp(2.5rem, 1.3rem + 3.4vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.rf .rf-title {
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.rf .rf-h2 {
  font-weight: 700;
  font-size: clamp(2rem, 1.35rem + 2vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.rf .rf-h3 {
  font-weight: 700;
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.rf .rf-card-title {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.rf .rf-eyebrow {
  display: block;
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-ink);
}

.rf-card-text { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.55; }

/* Rich text from the CMS */
.rf-prose { overflow-wrap: break-word; }
.rf-prose a { color: var(--rf-ink); text-decoration: underline; text-decoration-color: var(--rf-green); text-underline-offset: 3px; }
.rf-prose a:hover { color: var(--rf-green-dark); }
.rf-prose :where(h1, h2, h3, h4, h5) { margin: 1.6em 0 0.5em; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.rf-prose :where(h1, h2) { font-size: 1.875rem; }
.rf-prose :where(h3) { font-size: 1.5rem; }
.rf-prose :where(h4, h5) { font-size: 1.1875rem; }
.rf-prose > :first-child { margin-top: 0; }
.rf-prose ul,
.rf-prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.rf-prose ul { list-style: disc; }
.rf-prose ol { list-style: decimal; }
.rf-prose li { margin-bottom: 0.35em; }
.rf-prose li::marker { color: var(--rf-green); }
.rf-prose strong,
.rf-prose b { color: var(--rf-ink); }
.rf-prose img { height: auto; border-radius: var(--rf-radius-sm); }
.rf-prose table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: 0.9375rem; }
.rf-prose td,
.rf-prose th { padding: 10px 14px; border: 1px solid var(--rf-dust); text-align: left; vertical-align: top; }
.rf-prose tr:nth-child(odd) td { background: var(--rf-cloud); }
.rf-prose td p { margin: 0; }
.rf-prose iframe { max-width: 100%; }

/* ------------------------------------------------------------------ Links and buttons */

.rf-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rf-ink);
}

.rf-arrow::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: var(--rf-green);
  -webkit-mask: var(--rf-arrow-icon) center / contain no-repeat;
  mask: var(--rf-arrow-icon) center / contain no-repeat;
  transition: transform 0.25s var(--rf-ease);
}

.rf-stretch::before { content: ""; position: absolute; inset: 0; z-index: 1; }

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: var(--rf-font);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.rf .rf-btn--primary { background: var(--rf-green); color: #fff; }
.rf .rf-btn--primary:hover { background: #fff; color: var(--rf-ink); border-color: var(--rf-green); }
.rf .rf-btn--outline { border-color: var(--rf-ink); color: var(--rf-ink); }
.rf .rf-btn--outline:hover,
.rf .rf-btn--outline[aria-expanded="true"] { background: var(--rf-ink); color: #fff; }
.rf .rf-btn--dark { background: var(--rf-ink); color: #fff; }
.rf .rf-btn--dark:hover { background: var(--rf-green); color: var(--rf-ink); }
.rf .rf-btn--lg { min-height: 54px; padding: 16px 32px; font-size: 0.875rem; }

.rf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ------------------------------------------------------------------ Sections and layout */

.rf-section { padding: var(--rf-space) 0; }
.rf-section--flush { padding-top: 0; }
.rf-section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.rf-section--dark { background: var(--rf-ink); color: rgba(255, 255, 255, 0.72); }
.rf-section--dark .rf-h2,
.rf-section--dark .rf-card-title { color: #fff; }
.rf-section--cloud { background: var(--rf-cloud); }
.rf-section--tint { background: var(--rf-tint); }
.rf-section__title { margin-bottom: clamp(32px, 4vw, 56px); }
.rf-section__title .rf-prose { max-width: 48rem; }
.rf-group + .rf-group { margin-top: clamp(56px, 6vw, 96px); }
.rf-category-contents { margin-top: clamp(48px, 6vw, 88px); }
.rf-installers-map { width: 100%; margin-top: 24px; border-radius: var(--rf-radius); }

/* Single-column grids keep their track from growing to fit wide content (sliders, tables) */
.rf-grid,
.rf-split,
.rf-mediasplit,
.rf-formside,
.rf-productpage,
.rf-pagehead__panel,
.rf-brands,
.rf-bento,
.rf-hero { grid-template-columns: minmax(0, 1fr); }

/* Heading on the left, copy on the right */
.rf-split { display: grid; gap: 24px 64px; }
.rf-split + .rf-split { margin-top: clamp(48px, 5vw, 80px); padding-top: clamp(48px, 5vw, 80px); border-top: 1px solid var(--rf-dust); }

@media (min-width: 992px) {
  .rf-split { grid-template-columns: 5fr 7fr; align-items: start; }
}

/* Card grids */
.rf-grid { display: grid; gap: 16px; }

/* Product cards and people go two to a row even on phones */
.rf-grid--items,
.rf-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

@media (min-width: 640px) {
  .rf-grid--2,
  .rf-grid--3,
  .rf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .rf-grid--items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 992px) {
  .rf-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-grid--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .rf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-grid--4,
  .rf-grid--items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rf-grid--tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ Page head */

.rf-pagehead { padding-top: 16px; }

.rf-pagehead__panel {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 64px) clamp(24px, 4vw, 64px);
  border-radius: var(--rf-radius);
  background: var(--rf-cloud);
}

.rf-pagehead__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.rf-pagehead__text .rf-title { max-width: 18ch; }
.rf-pagehead__text .rf-eyebrow + .rf-title { margin-top: 0; }
.rf .rf-pagehead__tagline { margin: 20px 0 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.4; color: var(--rf-ink); }
.rf-pagehead__intro { max-width: 46rem; margin-top: 24px; font-size: 1.0625rem; }
.rf-pagehead__intro + .rf-pagehead__intro { margin-top: 16px; }
.rf-pagehead .rf-actions { margin-top: 28px; }

.rf-pagehead__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--rf-radius-sm);
  background: var(--rf-fog);
}

.rf-pagehead__media img,
.rf-pagehead__media picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 992px) {
  .rf-pagehead__panel--media { grid-template-columns: 1fr 1fr; gap: 48px; padding-right: clamp(16px, 1.5vw, 24px); }
  .rf-pagehead__panel--media .rf-pagehead__media { aspect-ratio: auto; min-height: 420px; }
}

/* Breadcrumbs (parts/breadcrumbs) */
.rf-crumbs { margin-bottom: 28px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.rf-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rf-crumbs li { display: inline-flex; align-items: center; gap: 10px; color: var(--rf-grey); }
.rf-crumbs li + li::before { content: "/"; color: var(--rf-dust); font-weight: 400; }
.rf-crumbs a { color: var(--rf-ink); }
.rf-crumbs a:hover { color: var(--rf-green-dark); }
.rf-crumbs [aria-current] { color: var(--rf-grey); }

/* ------------------------------------------------------------------ Home: hero */

.rf-hero {
  display: grid;
  padding-top: 16px;
}

/* One box: the video fills it and the copy sits on top, over a scrim that keeps the white text readable */
.rf-hero__media,
.rf-hero__text {
  grid-area: 1 / 1;
  border-radius: var(--rf-radius);
}

.rf-hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(520px, calc(100svh - var(--rf-header) - 32px), 640px);
  padding: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 64px);
  background: linear-gradient(to top, rgba(42, 42, 42, 0.92) 0%, rgba(42, 42, 42, 0.6) 55%, rgba(42, 42, 42, 0.2) 100%);
  color: rgba(255, 255, 255, 0.85);
}

.rf-hero__text .rf-display { max-width: 12em; color: #fff; }
.rf-hero__intro { max-width: 34rem; margin: 24px 0 32px; font-size: 1.0625rem; }

.rf-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--rf-ink) var(--rf-hero-mobile) center / cover no-repeat;
}

.rf-hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .rf-hero__text {
    justify-content: center;
    min-height: clamp(560px, calc(100vh - var(--rf-header) - 32px), 720px);
    background: linear-gradient(90deg, rgba(42, 42, 42, 0.88) 0%, rgba(42, 42, 42, 0.6) 40%, rgba(42, 42, 42, 0) 75%);
  }
  .rf-hero__media { background-image: var(--rf-hero-desktop); }
}

/* ------------------------------------------------------------------ Quick links (parts/textLinks) */

.rf-quick { display: grid; gap: 12px; margin-top: 12px; }

@media (min-width: 768px) {
  .rf-quick { grid-template-columns: repeat(3, 1fr); }
}

.rf-quick__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 28px 24px;
  border-radius: var(--rf-radius);
  background: var(--rf-cloud);
  transition: background-color 0.2s;
}

.rf-quick__card .rf-arrow { margin-top: auto; padding-top: 20px; }
.rf-quick__card:hover { background: var(--rf-tint); }

.rf-quick__card:hover .rf-arrow::after,
.rf-bento__card:hover .rf-arrow::after,
.rf-tile:hover .rf-arrow::after,
.rf-product:hover .rf-arrow::after,
.rf-project:hover .rf-arrow::after,
.rf-result:hover .rf-arrow::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ Home: Speed, Power and Reliability */

.rf-bento { display: grid; gap: 16px; }

.rf-bento__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--rf-radius);
  background: rgba(255, 255, 255, 0.06);
}

.rf-bento__media { overflow: hidden; aspect-ratio: 16 / 9; }
.rf-bento__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--rf-ease); }
.rf-bento__card:hover .rf-bento__media img { transform: scale(1.04); }
.rf-bento__text { padding: 24px 28px 28px; }
.rf-section--dark .rf-bento__card .rf-arrow { color: #fff; }

/* The first card leads: brand green, text first, its photo filling the rest */
.rf-bento__card--lead { background: var(--rf-green); color: var(--rf-ink); }
.rf-section--dark .rf-bento__card--lead .rf-card-title,
.rf-section--dark .rf-bento__card--lead .rf-arrow { color: var(--rf-ink); }
.rf-bento__card--lead .rf-arrow::after { background: var(--rf-ink); }
.rf-bento__card--lead .rf-bento__text { order: -1; padding: clamp(28px, 3.5vw, 48px); }
.rf-bento__card--lead .rf-card-title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.rf-bento__card--lead .rf-card-text { max-width: 30rem; font-size: 1.0625rem; }
.rf-bento__card--lead .rf-bento__media {
  flex: 1;
  min-height: 240px;
  margin: 0 clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px);
  border-radius: var(--rf-radius-sm);
}

@media (min-width: 992px) {
  .rf-bento { grid-template-columns: 7fr 5fr; }
  .rf-bento__card--lead { grid-row: span 2; }
}

/* ------------------------------------------------------------------ Brands (parts/brandsBlock) */

.rf-brands { display: grid; gap: 40px 64px; }
.rf-brands__intro .rf-prose { margin-top: 24px; }

.rf-brands__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

@media (min-width: 768px) {
  .rf-brands__tiles { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .rf-brands { grid-template-columns: 4fr 8fr; align-items: center; }
}

.rf-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 16px 18px;
  border: 1px solid transparent;
  border-radius: var(--rf-radius-sm);
  background: #fff;
  transition: border-color 0.2s;
}

.rf-section:not(.rf-section--cloud) .rf-tile { border-color: var(--rf-dust); }
.rf .rf-tile:hover { border-color: var(--rf-green); }

/* The logo files are 728x480 with wide transparent margins, so they're zoomed to fill the tile */
.rf-tile__logo { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.rf-tile__logo img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.3); }
.rf-tile__name { margin-top: 8px; font-size: 1.0625rem; font-weight: 700; line-height: 1.2; color: var(--rf-ink); }
.rf-tile .rf-arrow { margin-top: 6px; font-size: 0.75rem; }

/* ------------------------------------------------------------------ Cards with an image (categories, products, services, industries) */

.rf-products { display: grid; gap: 16px; }

@media (min-width: 640px) {
  .rf-products { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .rf-products { grid-template-columns: repeat(3, 1fr); }
}

.rf-product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rf-dust);
  border-radius: var(--rf-radius);
  background: #fff;
  transition: border-color 0.2s;
}

.rf-product:hover { border-color: var(--rf-green); }
.rf-product__media { display: block; overflow: hidden; aspect-ratio: 7 / 5; background: #fff; }
.rf-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--rf-ease); }
.rf-product:hover .rf-product__media img { transform: scale(1.04); }
.rf-product__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px 24px 24px; border-top: 1px solid var(--rf-fog); }
.rf-product .rf-arrow { margin-top: auto; padding-top: 16px; }
.rf-product .rf-eyebrow { margin-bottom: 8px; font-size: 0.6875rem; color: var(--rf-grey); }

/* Product shots on white: whole product in view, a little air around it */
.rf-product--item .rf-product__media { aspect-ratio: 1; padding: 20px; }
.rf-product--item .rf-product__media img { object-fit: contain; }
.rf-product--item .rf-card-title { font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.005em; }
.rf-product--item .rf-card-text { font-size: 0.9375rem; }
.rf-product--item .rf-product__body { padding: 18px 20px 20px; }

@media (max-width: 767px) {
  .rf-product--item .rf-product__media { padding: 12px; }
  .rf-product--item .rf-product__body { padding: 14px 14px 16px; }
  .rf-product--item .rf-card-title { font-size: 1rem; }
}

/* A card whose image doesn't exist: just the text */
.rf-product__media:empty { display: none; }
.rf-product__media:empty + .rf-product__body { border-top: 0; }

/* ------------------------------------------------------------------ Home: Find the Right Gate / About Us (parts/imageBgBlock) */

.rf-features { display: grid; gap: 16px; }

@media (min-width: 992px) {
  .rf-features { grid-template-columns: repeat(2, 1fr); }
}

.rf-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--rf-radius);
  background: var(--rf-fog);
  color: var(--rf-ink);
}

.rf-feature__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3.5vw, 48px) 0;
}

.rf-feature__text .rf-card-text { max-width: 32rem; margin: 16px 0 28px; }

/* Copy over the sky of each photo, the fence below */
.rf-feature__media {
  flex: 1 0 auto;
  margin-top: -12%;
  aspect-ratio: 19 / 12;
  background: center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
}

/* ------------------------------------------------------------------ Projects (parts/projectBlock) */

.rf-project {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  width: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  border-radius: var(--rf-radius);
  background: var(--rf-ink);
  isolation: isolate;
}

.rf-project picture,
.rf-project img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--rf-ease); }
.rf-project::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0) 60%); }
.rf-project:hover img { transform: scale(1.04); }
.rf-project__text { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 36px); }
.rf .rf-project .rf-card-title { color: #fff; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem); }
.rf .rf-project .rf-arrow { margin-top: 14px; color: #fff; }

/* ------------------------------------------------------------------ Text + image blocks (parts/contentBlocks) */

.rf-mediasplit { display: grid; gap: 32px 64px; align-items: center; }
.rf-mediasplit__media img { width: 100%; border-radius: var(--rf-radius); }
.rf-mediasplit__text .rf-prose { margin-top: 20px; }

@media (min-width: 992px) {
  .rf-mediasplit { grid-template-columns: 1fr 1fr; }
  .rf-mediasplit--reverse .rf-mediasplit__media { order: -1; }
}

/* Blocks in one section are spaced apart */
.rf-section > .rf-wrap + .rf-wrap { margin-top: clamp(56px, 7vw, 112px); }

.rf-mediasplit--text { grid-template-columns: none; }
.rf-mediasplit--text .rf-mediasplit__text { max-width: 52rem; }
.rf-fullimage img { width: 100%; border-radius: var(--rf-radius); }

/* ------------------------------------------------------------------ Team (parts/teamMember) */

/* The team photos are circles on white */

/* ------------------------------------------------------------------ Light cards (branches, services by location) */

.rf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 28px;
  border-radius: var(--rf-radius);
  background: var(--rf-cloud);
}

.rf-card .rf-card-title a:hover { color: var(--rf-green-dark); }
.rf-card__links { margin-top: 16px; }
.rf-card__links li + li { margin-top: 8px; }
.rf-card__links a { font-size: 0.9375rem; color: var(--rf-ink); text-decoration: underline; text-decoration-color: var(--rf-dust); text-underline-offset: 3px; }
.rf-card__links a:hover { text-decoration-color: var(--rf-green); }


.rf-map { overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 24px; border-radius: var(--rf-radius-sm); background: var(--rf-fog); }
.rf-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ------------------------------------------------------------------ Location lists */

.rf-linklist { columns: 2 150px; column-gap: 32px; }

@media (min-width: 992px) {
  .rf-linklist { columns: 5 180px; }
}

.rf-linklist > li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--rf-fog); }
.rf-linklist a { font-size: 1rem; font-weight: 600; color: var(--rf-ink); }
.rf-linklist a:hover { color: var(--rf-green-dark); }
.rf-linklist ul { margin: 4px 0 2px 12px; }
.rf-linklist ul a { font-size: 0.875rem; font-weight: 400; color: var(--rf-grey); }

/* ------------------------------------------------------------------ Search results */

.rf-result {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px 20px;
  border: 1px solid var(--rf-dust);
  border-radius: var(--rf-radius-sm);
  background: #fff;
  transition: border-color 0.2s;
}

.rf-result:hover { border-color: var(--rf-green); }
.rf-result__text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; }
.rf .rf-result__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.rf-result .rf-arrow { margin-top: 8px; font-size: 0.75rem; }
.rf-result__thumb { flex: 0 0 72px; overflow: hidden; aspect-ratio: 1; border-radius: 8px; background: var(--rf-cloud); }
.rf-result__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ FAQ (parts/faqSection) */

@media (min-width: 992px) {
  .rf-faq__title { position: sticky; top: calc(var(--rf-header) + 32px); }
}

.rf-faq { border-top: 2px solid var(--rf-ink); }
.rf-faq__item { border-bottom: 1px solid rgba(42, 42, 42, 0.18); }

.rf-faq__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rf-ink);
  cursor: pointer;
  list-style: none;
}

.rf-faq__question::-webkit-details-marker { display: none; }

.rf-faq__icon {
  position: relative;
  flex: 0 0 28px;
  height: 28px;
  margin-top: -2px;
  border-radius: 7px;
  background: var(--rf-green);
  transition: background-color 0.2s;
}

.rf-faq__icon::before,
.rf-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: #fff;
  transition: transform 0.25s var(--rf-ease);
}

.rf-faq__icon::after { transform: rotate(90deg); }
.rf-faq__item[open] .rf-faq__icon { background: var(--rf-ink); }
.rf-faq__item[open] .rf-faq__icon::after { transform: rotate(0deg); }
.rf-faq__question:hover .rf-faq__icon { background: var(--rf-green); }
.rf-faq__question:hover .rf-faq__icon::before,
.rf-faq__question:hover .rf-faq__icon::after { background: var(--rf-ink); }
.rf-faq__answer { max-width: 44rem; padding: 0 52px 24px 0; }

/* ------------------------------------------------------------------ Closing call to action (parts/ctaBand): a dark band that rises out of the footer */

.rf-cta { padding-top: var(--rf-space); }

.rf-cta__band {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 clamp(8px, 2vw, 32px);
  padding: clamp(64px, 8vw, 112px) var(--rf-gutter) clamp(56px, 7vw, 96px);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  background: var(--rf-ink);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.rf-cta__copy { max-width: 44rem; }
.rf-cta__copy a { color: #fff; }

.rf .rf-cta__copy h2,
.rf .rf-cta__heading {
  max-width: 20ch;
  margin: 0 auto 32px;
  font-weight: 800;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.rf-cta__band .rf-btn { margin-top: 40px; }

/* ------------------------------------------------------------------ Forms (parts/quoteForm, enquireForm, bigenquiryForm) */

.rf-formcard { padding: clamp(24px, 3vw, 40px); border-radius: var(--rf-radius); background: var(--rf-cloud); }
.rf-formcard .rf-h3 { margin-bottom: 24px; }

.rf .styledForm .inputBox { margin: 0 0 16px; }

/* The placeholders act as the labels; the <label>s stay for screen readers and browser autofill */
.rf .styledForm label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rf .styledForm input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.rf .styledForm select,
.rf .styledForm textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--rf-dust);
  border-radius: var(--rf-radius-sm);
  background: #fff;
  box-shadow: none;
  font: 400 1rem/1.4 var(--rf-font);
  color: var(--rf-ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rf .styledForm textarea { min-height: 120px; resize: vertical; }
.rf .styledForm ::placeholder { color: #8a8a8a; opacity: 1; }
/* A required select still on its "How did you find us?" prompt reads as a placeholder */
.rf .styledForm select:invalid { color: #8a8a8a; }
.rf .styledForm select option { color: var(--rf-ink); }

.rf .styledForm input:focus,
.rf .styledForm select:focus,
.rf .styledForm textarea:focus { outline: 0; border-color: var(--rf-green); box-shadow: 0 0 0 3px rgba(88, 169, 34, 0.25); }

.rf .styledForm .selectBox { position: relative; }
.rf .styledForm .selectBox select { padding-right: 40px; }
.rf .styledForm .selectBox .caret { display: none; }
.rf .styledForm .selectBox::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--rf-ink);
  -webkit-mask: var(--rf-chevron-icon) center / contain no-repeat;
  mask: var(--rf-chevron-icon) center / contain no-repeat;
  pointer-events: none;
}

.rf .styledForm .errors { margin: 6px 0 0; color: #c0392b; font-size: 0.875rem; }
.rf .styledForm .addressManual { margin-top: 8px; font: 400 0.875rem/1.4 var(--rf-font); color: var(--rf-grey); }
.rf .styledForm .addressManual:hover { color: var(--rf-ink); }
.rf .styledForm .addressSuggestions { border-radius: var(--rf-radius-sm); overflow: hidden; }
.rf .styledForm .addressSuggestions li { font-size: 1rem; }
.rf .styledForm .cf-turnstile { margin: 8px 0 4px; }

.rf .styledForm button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 160px;
  min-height: 50px;
  margin-top: 12px;
  padding: 14px 32px;
  border: 2px solid var(--rf-green);
  border-radius: 999px;
  background: var(--rf-green);
  font: 700 0.8125rem/1 var(--rf-font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.rf .styledForm button[type="submit"]:hover { background: #fff; color: var(--rf-ink); }

/* Two form fields a row where there's room */
@media (min-width: 576px) {
  .rf-formcard--wide .styledForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .rf-formcard--wide .styledForm > *,
  .rf-formcard--wide .styledForm .formMoreInner > * { min-width: 0; }
  .rf-formcard--wide .styledForm > .formMore,
  .rf-formcard--wide .styledForm > .inputBox:has(textarea),
  .rf-formcard--wide .styledForm > :not(.inputBox):not(.formMore) { grid-column: 1 / -1; }
  .rf-formcard--wide .styledForm .formMoreInner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
}

/* ------------------------------------------------------------------ Shared: the slick gallery (parts/productGallery, app.js) */

.rf .imageBlock .thumbnailWrap { padding: 12px 12px 0 0; }
.rf .imageBlock .thumbnailItem { border-radius: 8px; border: 2px solid transparent; }
.rf .imageBlock .thumbnails .slick-current .thumbnailItem { border-color: var(--rf-green); }
.rf .imageBlock .thumbnails .slick-current .thumbnailItem::before { display: none; }
.rf .imageBlock .slick-prev,
.rf .imageBlock .slick-next { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--rf-dust); opacity: 1; }
.rf .imageBlock .slick-prev::before,
.rf .imageBlock .slick-next::before { content: ""; display: block; width: 16px; height: 16px; margin: auto; background: var(--rf-ink); opacity: 1; -webkit-mask: var(--rf-arrow-icon) center / contain no-repeat; mask: var(--rf-arrow-icon) center / contain no-repeat; }
.rf .imageBlock .slick-prev::before { transform: scaleX(-1); }
.rf .mobileGallery { overflow: hidden; border-radius: var(--rf-radius-sm); }

/* ------------------------------------------------------------------ Shared: photo grid (projects) */

.rf-photogrid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rf-radius-sm); }
.rf-photogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rf-photogrid > * { position: relative; display: block; overflow: hidden; aspect-ratio: 1; border-radius: var(--rf-radius-sm); }
.rf-photogrid button { width: 100%; height: 100%; padding: 0; border: 0; background: center / cover no-repeat var(--rf-ink); cursor: pointer; }

/* ------------------------------------------------------------------ Shared: copy beside a form (contact, find an installer, services) */

.rf-formside { display: grid; gap: 40px 64px; align-items: start; }

@media (min-width: 992px) {
  .rf-formside { grid-template-columns: 7fr 5fr; }
  .rf-formside__form { position: sticky; top: calc(var(--rf-header) + 24px); }
}

.rf-formside__text .rf-prose { margin-top: 24px; }

/* Thank you */
.rf-thanks .rf-pagehead__panel { min-height: clamp(360px, 50vh, 520px); align-content: center; }

@media (prefers-reduced-motion: reduce) {
  .rf *,
  .rf *::before,
  .rf *::after { transition: none !important; }
}

/* ================================================================== Header (parts/header) */

.rf-noscroll { overflow: hidden; }

.rf-utility { background: var(--rf-green); color: var(--rf-ink); line-height: 1; }
.rf-utility__inner { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-height: 40px; }

.rf-search { position: relative; display: flex; align-items: center; width: min(280px, 100%); }
.rf .rf-search__input {
  width: 100%;
  height: 28px;
  padding: 0 34px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  font: 400 14px/28px var(--rf-font);
  color: var(--rf-ink);
  -webkit-appearance: none;
  appearance: none;
}
.rf-search__input::placeholder { color: #7a7a7a; }
.rf-search__input:focus { outline: 2px solid var(--rf-ink); outline-offset: 2px; }
.rf-search__input::-webkit-search-cancel-button { display: none; }
.rf-search__button { position: absolute; top: 2px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--rf-ink); cursor: pointer; }
.rf-search__button svg { width: 14px; height: 14px; }

.rf-utility__link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.rf-utility__link svg { width: 11px; height: 13px; }
.rf .rf-utility__link:hover { color: #fff; }

@media (max-width: 767px) {
  .rf-utility__inner { justify-content: space-between; gap: 14px; }
  .rf-search { flex: 1; width: auto; }
}

.rf-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--rf-fog);
  transition: box-shadow 0.2s;
}

.rf-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07); }
.rf-header__inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: var(--rf-header); }
.rf-header__logo { position: relative; z-index: 2; flex: 0 0 auto; }
.rf-header__logo img { width: 92px; height: auto; }

.rf-nav__link,
.rf .rf-nav__toggle--label {
  display: flex;
  align-items: center;
  font-family: var(--rf-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--rf-ink);
  white-space: nowrap;
}

.rf-nav__toggle { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--rf-ink); cursor: pointer; }
.rf-nav__toggle::after {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: var(--rf-chevron-icon) center / contain no-repeat;
  mask: var(--rf-chevron-icon) center / contain no-repeat;
  transition: transform 0.2s var(--rf-ease);
}
.rf-nav__toggle--label { display: flex; gap: 6px; }
.rf-nav__toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

.rf-nav__sub a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--rf-ink); }
.rf-nav__sub a:hover,
.rf-nav__sub a[aria-current] { background: var(--rf-tint); color: var(--rf-ink); }

.rf-mega { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

@media (min-width: 640px) {
  .rf-mega { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rf-mega__tile { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; color: var(--rf-ink); }
.rf-mega__tile img { width: 100%; aspect-ratio: 2 / 1; padding: 6px 12px; object-fit: contain; border: 1px solid var(--rf-fog); border-radius: var(--rf-radius-sm); background: #fff; transition: border-color 0.2s; }
.rf-mega__tile:hover img { border-color: var(--rf-green); }
.rf-mega__all { margin-top: 18px; }

.rf-nav__actions { display: flex; gap: 10px; }
.rf-nav__actions .rf-btn { min-height: 42px; padding: 10px 20px; }

.rf-burger { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; background: none; cursor: pointer; }
.rf-burger__bars,
.rf-burger__bars::before,
.rf-burger__bars::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--rf-ink); transition: transform 0.25s var(--rf-ease), opacity 0.2s; }
.rf-burger__bars { position: relative; }
.rf-burger__bars::before,
.rf-burger__bars::after { content: ""; position: absolute; left: 0; }
.rf-burger__bars::before { top: -7px; }
.rf-burger__bars::after { top: 7px; }
.rf-header.is-open .rf-burger__bars { background: transparent; }
.rf-header.is-open .rf-burger__bars::before { transform: translateY(7px) rotate(45deg); }
.rf-header.is-open .rf-burger__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Phones and tablets: the menu opens as a panel under the bar */
@media (max-width: 1199px) {
  .rf-nav {
    position: fixed;
    top: var(--rf-nav-top, 104px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: none;
    overflow-y: auto;
    padding: 8px var(--rf-gutter) 32px;
    background: #fff;
  }
  .rf-header.is-open .rf-nav { display: block; }
  .rf-nav__item { display: grid; grid-template-columns: 1fr auto; align-items: center; border-bottom: 1px solid var(--rf-fog); }
  .rf-nav__link,
  .rf .rf-nav__toggle--label { min-height: 56px; font-size: 18px; }
  .rf-nav__toggle { width: 48px; height: 48px; }
  .rf .rf-nav__toggle--label { grid-column: 1 / -1; justify-content: space-between; width: 100%; }
  .rf-nav__panel { display: none; grid-column: 1 / -1; padding: 0 0 16px; }
  .rf-nav__toggle[aria-expanded="true"] + .rf-nav__panel { display: block; }
  .rf-nav__sub a { padding-left: 0; }
  .rf-nav__actions { flex-direction: column; margin-top: 24px; }
  .rf-nav__actions .rf-btn { min-height: 50px; }
}

/* Desktop: links in the bar, panels drop down on hover, focus or tap */
@media (min-width: 1200px) {
  .rf-burger { display: none; }
  .rf-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 24px; }
  .rf-nav__list { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
  .rf-nav__item { position: relative; display: flex; align-items: center; }
  .rf-nav__link,
  .rf .rf-nav__toggle--label { padding: 10px 12px; border-radius: 999px; transition: color 0.2s, background-color 0.2s; }
  .rf-nav__link:hover,
  .rf .rf-nav__toggle--label:hover,
  .rf-nav__item.is-active > .rf-nav__link { color: var(--rf-green-dark); }
  .rf-nav__item--parent > .rf-nav__link { padding-right: 4px; }
  .rf-nav__toggle:not(.rf-nav__toggle--label) { width: 22px; height: 36px; margin-right: 6px; }

  .rf-nav__panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    padding: 8px;
    border: 1px solid var(--rf-fog);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s var(--rf-ease), visibility 0s 0.18s;
  }
  /* Keeps the panel open while the pointer crosses the gap */
  .rf-nav__panel::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 14px; }

  .rf-nav__item--parent:hover > .rf-nav__panel,
  .rf-nav__item--parent:focus-within > .rf-nav__panel,
  .rf-nav__toggle[aria-expanded="true"] + .rf-nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .rf-nav__item--parent:hover > .rf-nav__toggle::after { transform: rotate(180deg); }

  /* The mega menu spans the bar */
  .rf-nav__item--mega { position: static; }
  .rf-nav__item--mega > .rf-nav__panel { top: calc(100% - 4px); right: var(--rf-gutter); left: var(--rf-gutter); padding: 24px; }
  .rf-mega { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1200px) and (max-width: 1339px) {
  .rf-nav__link,
  .rf .rf-nav__toggle--label { padding-right: 9px; padding-left: 9px; font-size: 15px; }
  .rf-nav__actions .rf-btn { padding-right: 16px; padding-left: 16px; }
}

/* ================================================================== Footer (parts/footer) */

.rf .rf-btn--light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.rf .rf-btn--light:hover { border-color: #fff; background: #fff; color: var(--rf-ink); }
.rf-btn svg { width: 11px; height: 13px; }

.rf-footer {
  padding: clamp(48px, 6vw, 80px) 0 28px;
  background: var(--rf-ink);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.rf-footer a { color: #fff; transition: color 0.2s; }
.rf .rf-footer a:not(.rf-btn):hover { color: var(--rf-green); }

.rf-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rf-footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.rf-footer__brand > a img { width: 110px; height: auto; }
.rf-footer__faac { width: 210px; height: auto; }
.rf-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.rf-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; padding: 40px 0; }

@media (min-width: 992px) {
  .rf-footer__cols { grid-template-columns: 1.3fr 1.3fr 1fr 1fr 1fr; }
}

.rf .rf-footer__label { margin: 0 0 14px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.rf-footer__col--branch a { display: block; }
.rf-footer__col--branch a + a { margin-top: 8px; }
.rf .rf-footer__phone { margin-bottom: 4px; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--rf-green); }
.rf .rf-footer__phone:hover { color: #fff; }
.rf-footer__address { white-space: pre-line; }
.rf-footer__col li + li { margin-top: 10px; }

.rf-footer__areas { padding-bottom: 32px; }
.rf-footer__areas ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.rf-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.rf-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rf-footer__legal a,
.rf-footer__credit a { color: rgba(255, 255, 255, 0.75); }
.rf-footer__credit a:first-child { text-decoration: underline; text-underline-offset: 3px; }
.rf-footer__credit img { display: inline-block; width: auto; height: 14px; vertical-align: -2px; }

/* ================================================================== Product collections (category and brand pages) */

.rf [hidden] { display: none !important; }

.rf-collection { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 56px; padding-top: 28px; padding-bottom: clamp(56px, 6vw, 96px); }

@media (min-width: 1100px) {
  .rf-collection { grid-template-columns: 250px minmax(0, 1fr); padding-top: 36px; }
}

.rf-collection__main { min-width: 0; }

/* Side menu */
.rf-side { align-self: start; }
.rf .rf-side__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--rf-dust);
  border-radius: 999px;
  background: #fff;
  font: 700 0.8125rem/1 var(--rf-font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rf-ink);
  cursor: pointer;
}
.rf-side__toggle::after { content: ""; width: 14px; height: 14px; background: var(--rf-ink); -webkit-mask: var(--rf-chevron-icon) center / contain no-repeat; mask: var(--rf-chevron-icon) center / contain no-repeat; transition: transform 0.2s; }
.rf-side.is-open .rf-side__toggle::after { transform: rotate(180deg); }
.rf-side__body { display: none; padding: 16px 4px 4px; }
.rf-side.is-open .rf-side__body { display: block; }

.rf .rf-side__label { margin: 22px 0 8px; font-size: 0.6875rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rf-grey); }
.rf-side__all { display: inline-block; font-size: 0.9375rem; font-weight: 700; color: var(--rf-ink); }
.rf-side ul ul { margin: 2px 0 6px 10px; padding-left: 10px; border-left: 1px solid var(--rf-dust); }
.rf-side li a { display: block; padding: 5px 10px; border-radius: 8px; font-size: 0.9375rem; line-height: 1.35; color: var(--rf-ink); transition: background-color 0.15s; }
.rf-side li a:hover { background: var(--rf-cloud); }
.rf-side li a.is-open { font-weight: 700; }
.rf-side li a[aria-current] { background: var(--rf-tint); font-weight: 700; }
.rf-side ul ul a { font-size: 0.875rem; color: var(--rf-grey); }

@media (min-width: 1100px) {
  .rf-side { position: sticky; top: calc(var(--rf-header) + 24px); max-height: calc(100vh - var(--rf-header) - 48px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
  .rf .rf-side__toggle { display: none; }
  .rf-side__body { display: block; padding: 0; }
  .rf-side__body > .rf-side__label:first-of-type { margin-top: 18px; }
}

/* Head */
.rf-collection__head { display: grid; gap: 24px 40px; align-items: start; padding-bottom: 28px; }
.rf-collection__head .rf-title { max-width: 20ch; font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.5rem); }
.rf-collection__head .rf-crumbs { margin-bottom: 18px; }
.rf-collection__head .rf-eyebrow { color: var(--rf-green-dark); }
.rf-collection__head .rf-actions { margin-top: 20px; }

@media (min-width: 768px) {
  .rf-collection__head--logo { grid-template-columns: minmax(0, 1fr) 220px; }
}

@media (max-width: 767px) {
  .rf-collection__logo { order: -1; width: 140px; padding: 8px 14px; }
}

.rf-collection__logo { padding: 16px 24px; border: 1px solid var(--rf-fog); border-radius: var(--rf-radius); background: #fff; }
.rf-collection__logo img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; transform: scale(1.3); }

/* "Read more" intro */
.rf-clamp { max-width: 50rem; margin-top: 18px; }
.rf-clamp__body { max-height: calc(1.6em * 3); overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.rf-clamp.is-open .rf-clamp__body { max-height: none; -webkit-mask-image: none; mask-image: none; }
.rf .rf-clamp__more { margin-top: 8px; padding: 4px 0; border: 0; background: none; font: 700 0.8125rem/1.2 var(--rf-font); letter-spacing: 0.07em; text-transform: uppercase; color: var(--rf-ink); text-decoration: underline; text-decoration-color: var(--rf-green); text-underline-offset: 4px; cursor: pointer; }

/* Count and filters */
.rf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; padding-top: 20px; border-top: 1px solid var(--rf-dust); }
.rf .rf-toolbar__count { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--rf-grey); }
.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rf .rf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid var(--rf-dust);
  border-radius: 999px;
  background: #fff;
  font: 600 0.875rem/1 var(--rf-font);
  color: var(--rf-ink);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.rf .rf-chip:hover { border-color: var(--rf-ink); }
.rf .rf-chip[aria-pressed="true"] { border-color: var(--rf-ink); background: var(--rf-ink); color: #fff; }
.rf-chip span { font-weight: 400; opacity: 0.6; }

@media (max-width: 767px) {
  /* One scrolling row on phones */
  .rf-toolbar .rf-chips { flex-wrap: nowrap; width: calc(100% + 2 * var(--rf-gutter)); margin: 0 calc(-1 * var(--rf-gutter)); padding: 0 var(--rf-gutter) 4px; overflow-x: auto; scrollbar-width: none; }
  .rf-toolbar .rf-chips::-webkit-scrollbar { display: none; }
}

/* Category grid */
.rf-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

@media (min-width: 992px) {
  .rf-grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1400px) {
  .rf-grid--cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rf-collection .rf-grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rf-grid--cats .rf-product__body { padding: 16px 18px 18px; }
.rf-grid--cats .rf-card-title { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); }
.rf-grid--cats .rf-product .rf-arrow { padding-top: 10px; font-size: 0.75rem; }

/* Product cards */
.rf-collection .rf-grid--items { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .rf-collection .rf-grid--items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1400px) {
  .rf-collection .rf-grid--items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rf-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rf-dust);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rf-item:hover { border-color: var(--rf-green); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07); }
.rf-item__media { display: block; overflow: hidden; aspect-ratio: 1; padding: 18px; border-bottom: 1px solid var(--rf-fog); background: #fff; }
.rf-item__media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s var(--rf-ease); }
.rf-item__media--cover { padding: 0; }
.rf-item__media--cover img { object-fit: cover; }
.rf-item:hover .rf-item__media img { transform: scale(1.05); }
.rf-item__media:empty { aspect-ratio: auto; padding: 0; border: 0; }
.rf-item__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.rf-item__brand { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.09em; line-height: 1.2; text-transform: uppercase; color: var(--rf-green-dark); }
.rf .rf-item__title { font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; color: var(--rf-ink); }
.rf-item__intro { display: -webkit-box; overflow: hidden; font-size: 0.875rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 767px) {
  .rf-item__media { padding: 10px; }
  .rf-item__body { padding: 12px 12px 14px; }
  .rf .rf-item__title { font-size: 0.9375rem; }
}

/* /products: jump links and the group headings */
.rf-jump { margin-top: 20px; }
.rf-jump .rf-chips { gap: 8px; }
.rf-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.rf-group { scroll-margin-top: calc(var(--rf-header) + 24px); }
#brands,
#industries { scroll-margin-top: var(--rf-header); }

/* ================================================================== Product page */

.rf .rf-btn--block { display: flex; width: 100%; }

.rf-pdp { padding: 24px 0 clamp(48px, 6vw, 88px); }
.rf-pdp .rf-crumbs { margin-bottom: 20px; }
.rf-pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 64px; align-items: start; }

@media (min-width: 992px) {
  .rf-pdp__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .rf-pdp__info { position: sticky; top: calc(var(--rf-header) + 24px); }
}

/* The gallery (parts/productGallery: slick, from app.js) on a light panel */
.rf-pdp__gallery { min-width: 0; padding: clamp(12px, 2vw, 28px); border-radius: var(--rf-radius); background: var(--rf-cloud); }
.rf .rf-pdp__gallery .imageBlock .bigImages { overflow: hidden; border-radius: var(--rf-radius-sm); background: #fff; }
.rf .rf-pdp__gallery .imageBlock .bigImages .bigImagePicture { height: clamp(320px, 40vw, 600px); background-color: #fff; background-size: contain; background-origin: content-box; padding: clamp(16px, 3vw, 40px); }
.rf .rf-pdp__gallery .imageBlock .thumbnails { margin-top: 12px; }
.rf .rf-pdp__gallery .imageBlock .thumbnailWrap { padding: 0 10px 0 0; }
.rf .rf-pdp__gallery .imageBlock .thumbnailItem { width: 76px; height: 76px; border: 2px solid transparent; border-radius: 10px; background-color: #fff; background-size: contain; transition: border-color 0.2s; }
.rf .rf-pdp__gallery .imageBlock .slick-current .thumbnailItem { border-color: var(--rf-green); }
.rf .rf-pdp__gallery .imageBlock .thumbnails .slick-slide .thumbnailItem:hover { transform: none; border-color: var(--rf-dust); }
.rf .rf-pdp__gallery .imageBlock .slick-prev,
.rf .rf-pdp__gallery .imageBlock .slick-next { top: calc(50% - 44px); width: 44px; height: 44px; }
.rf .rf-pdp__gallery .mobileGallery { background: #fff; }
.rf .rf-pdp__gallery .mobileGallery .slick-dots { bottom: 8px; }
.rf .rf-pdp__gallery .mobileGallery .slick-dots li button::before { color: var(--rf-ink); }

.rf-pdp__info { min-width: 0; }
.rf-pdp__info .rf-eyebrow { margin-bottom: 10px; }
.rf-pdp__info .rf-eyebrow a { color: var(--rf-green-dark); }
.rf-pdp__info .rf-title { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem); }
.rf-pdp__types { margin-top: 18px; }
.rf-pdp__types .rf-chip { min-height: 30px; padding: 6px 12px; font-size: 0.8125rem; }
.rf-pdp__desc { margin-top: 22px; font-size: 1.0625rem; }
.rf-pdp__cta { margin-top: 28px; }

/* Downloads: a row each, an arrow pointing down */
.rf-downloads { margin-top: 20px; border-top: 1px solid var(--rf-dust); }
.rf-downloads a { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--rf-dust); font-size: 0.9375rem; font-weight: 700; color: var(--rf-ink); }
.rf-downloads a::after { content: ""; width: 16px; height: 16px; background: var(--rf-green-dark); -webkit-mask: var(--rf-arrow-icon) center / contain no-repeat; mask: var(--rf-arrow-icon) center / contain no-repeat; transform: rotate(90deg); transition: transform 0.2s; }
.rf-downloads a:hover { color: var(--rf-green-dark); }
.rf-downloads a:hover::after { transform: rotate(90deg) translateX(3px); }

.rf-pdp__phones { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 0.9375rem; }
.rf-pdp__phones span { color: var(--rf-grey); }
.rf-pdp__phones a { font-weight: 700; color: var(--rf-ink); }
.rf-pdp__phones a:hover { color: var(--rf-green-dark); }

/* Section links under the header */
.rf-subnav { position: sticky; top: var(--rf-header); z-index: 20; border-top: 1px solid var(--rf-fog); border-bottom: 1px solid var(--rf-fog); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rf-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.rf-subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.rf-subnav ul::-webkit-scrollbar { display: none; }
.rf-subnav ul a { position: relative; display: block; padding: 18px 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; color: var(--rf-grey); }
.rf-subnav ul a:hover,
.rf-subnav ul a.is-current { color: var(--rf-ink); }
.rf-subnav ul a.is-current::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px; background: var(--rf-green); }
.rf-subnav .rf-btn { flex: 0 0 auto; min-height: 38px; padding: 8px 18px; }

@media (max-width: 767px) {
  .rf-subnav .rf-btn { display: none; }
}

.rf-pdp__section { scroll-margin-top: calc(var(--rf-header) + 58px); }
.rf-pdp__section + .rf-pdp__section:not(.rf-section--cloud) .rf-split { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rf-dust); }
.rf-pdp__section + .rf-pdp__section:not(.rf-section--cloud) { padding-top: 0; }
.rf-specs table { margin: 0; font-size: 0.9375rem; }
.rf-specs td:first-child { width: 40%; font-weight: 600; color: var(--rf-ink); }

@media (min-width: 1200px) {
  .rf-grid--accessories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* The enquiry panel: Bootstrap's modal, slid in from the right */
.rf .modal.rf-drawer { padding: 0 !important; }
.rf .rf-drawer .modal-dialog { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); max-width: none; height: 100%; margin: 0; transform: translateX(100%); transition: transform 0.32s var(--rf-ease); }
.rf .rf-drawer.show .modal-dialog { transform: none; }
.rf .rf-drawer .modal-content { height: 100%; overflow-y: auto; border: 0; border-radius: 0; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.15); }
.rf-drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 20px clamp(20px, 4vw, 32px); border-bottom: 1px solid var(--rf-fog); background: #fff; }
.rf-drawer__thumb { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--rf-fog); border-radius: 10px; background: #fff; }
.rf .rf-drawer__head .rf-h3 { font-size: 1.5rem; }
.rf .rf-drawer__product { margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.35; color: var(--rf-grey); }
.rf .rf-drawer__close { position: relative; flex: 0 0 40px; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 1px solid var(--rf-dust); border-radius: 50%; background: #fff; cursor: pointer; }
.rf-drawer__close::before,
.rf-drawer__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--rf-ink); transform: rotate(45deg); }
.rf-drawer__close::after { transform: rotate(-45deg); }
.rf .rf-drawer__close:hover { border-color: var(--rf-ink); }
.rf-drawer__body { padding: 24px clamp(20px, 4vw, 32px) 40px; }
.modal-backdrop.show { opacity: 0.45; }
/* Google's address suggestions above the panel */
.pac-container { z-index: 1100 !important; }

/* Phones: a bar with the Enquire button once the one in the page scrolls away */
.rf-pdp-bar { display: none; }

@media (max-width: 991px) {
  .rf-pdp-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px var(--rf-gutter) calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--rf-fog);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.25s var(--rf-ease);
  }
  .rf-pdp-bar.is-visible { transform: none; }
  .rf-pdp-bar__title { overflow: hidden; font-size: 0.9375rem; font-weight: 700; line-height: 1.25; color: var(--rf-ink); text-overflow: ellipsis; white-space: nowrap; }
  .rf-pdp-bar .rf-btn { flex: 0 0 auto; min-height: 44px; }
}

/* ================================================================== Services */

.rf-rows { display: grid; gap: 0; }
.rf-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 64px; align-items: center; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--rf-dust); }
.rf-row:first-child { padding-top: 0; border-top: 0; }
.rf-row__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--rf-radius); }
.rf-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--rf-ease); }
.rf-row__media:hover img { transform: scale(1.03); }
.rf-row__text .rf-prose { max-width: 36rem; margin-top: 18px; font-size: 1.0625rem; }
.rf-row__text .rf-actions { margin-top: 24px; }

@media (min-width: 992px) {
  .rf-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .rf-row--reverse .rf-row__media { order: 2; }
}

/* A service page's copy */
.rf-prose--lead > p:first-child { font-size: 1.1875rem; line-height: 1.55; color: var(--rf-ink); }
.rf-service-details { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rf-dust); }

/* Photo gallery (click to enlarge, lightbox from app.js) */
.rf-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rf-gallery--1 { grid-template-columns: minmax(0, 1fr); }
.rf-gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--rf-radius); background: var(--rf-fog); }
.rf-gallery--1 a { aspect-ratio: 21 / 9; }
.rf-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--rf-ease); }
.rf-gallery a:hover img { transform: scale(1.03); }

@media (min-width: 768px) {
  .rf-gallery--many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-gallery { gap: 16px; }
}

/* ================================================================== About, contact, find an installer */

/* About: the intro's first paragraph larger in the page head, the rest in two columns below */
.rf .rf-pagehead--lead .rf-pagehead__intro { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.45; color: var(--rf-ink); }
.rf-pagehead--lead .rf-pagehead__intro br { display: none; }
.rf-story { font-size: 1.0625rem; }

@media (min-width: 992px) {
  .rf-story { columns: 2; column-gap: 64px; }
}

/* Team: white cards, the round photos (transparent or white PNGs) on white */
.rf-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

@media (min-width: 768px) {
  .rf-team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1200px) {
  .rf-team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.rf-person { display: flex; flex-direction: column; padding: clamp(14px, 2vw, 24px); border-radius: var(--rf-radius); background: #fff; }
.rf-person__photo { overflow: hidden; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.rf-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.rf .rf-person__name { margin-top: 18px; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); font-weight: 700; line-height: 1.2; color: var(--rf-ink); }
.rf .rf-person__role { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.35; color: var(--rf-grey); }
.rf .rf-person__branch { margin: auto 0 0; padding-top: 12px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--rf-green-dark); }
.rf-person .rf-card-text { font-size: 0.875rem; }
.rf-section--cloud .rf-group__head { margin-bottom: 8px; }
.rf .rf-section--cloud .rf-chip { background: #fff; }
.rf .rf-section--cloud .rf-chip[aria-pressed="true"] { background: var(--rf-ink); }

/* The count and chips on a dark section */
.rf-section--dark .rf-toolbar { border-top-color: rgba(255, 255, 255, 0.14); }
.rf-section--dark .rf-toolbar__count { color: rgba(255, 255, 255, 0.6); }
.rf .rf-section--dark .rf-chip { border-color: rgba(255, 255, 255, 0.25); background: transparent; color: #fff; }
.rf .rf-section--dark .rf-chip:hover { border-color: #fff; }
.rf .rf-section--dark .rf-chip[aria-pressed="true"] { border-color: var(--rf-green); background: var(--rf-green); color: #fff; }
.rf-section--dark .rf-group__head { margin-bottom: 8px; }

/* Branches (parts/branches) */
.rf-branches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

@media (min-width: 640px) {
  .rf-branches--cols,
  .rf-branches--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rf-formside__text .rf-branches { margin-top: 20px; }

.rf-branch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--rf-radius);
  background: var(--rf-cloud);
  font-size: 1rem;
  line-height: 1.6;
}

.rf-branch .rf-map { width: 100%; margin-bottom: 22px; }
.rf .rf-branch__name { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rf-grey); }
.rf .rf-branch__phone { margin: 6px 0 14px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--rf-ink); }
.rf .rf-branch__phone:hover { color: var(--rf-green-dark); }
.rf-branch__address p { margin: 0; }
.rf .rf-branch__email { margin-top: 10px; color: var(--rf-ink); text-decoration: underline; text-decoration-color: var(--rf-green); text-underline-offset: 3px; }
.rf-branch .rf-arrow { margin-top: auto; padding-top: 18px; }

/* Find an installer: the map of installers on a sea-blue panel */
.rf-installers { margin-top: 20px; overflow: hidden; border-radius: var(--rf-radius); background: #9ecbed; }
.rf-installers img { width: 100%; height: auto; }

/* A product category's stock photo beside its title and intro */
.rf-collection__photo { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--rf-radius); background: var(--rf-fog); }
.rf-collection__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .rf-collection__head--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); align-items: center; }
}

@media (max-width: 767px) {
  /* Phones: a shorter banner, so the products start sooner */
  .rf-collection__photo { aspect-ratio: 21 / 9; }
}

/* ================================================================== Team page, FAQ pages, 404, video popup */

/* /teams: a group per branch, its phone and email beside the heading. The section is white (the page head above is
   grey), so the cards are grey; the round photos stay white. */
.rf-teampage .rf-person { background: var(--rf-cloud); }
.rf .rf-teamgroup__head { align-items: flex-end; }
.rf .rf-teamgroup__contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 0; font-size: 1rem; }
.rf .rf-teamgroup__contact a { color: var(--rf-ink); text-decoration: underline; text-decoration-color: var(--rf-green); text-underline-offset: 3px; }
.rf .rf-teamgroup__contact .rf-teamgroup__phone { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.rf .rf-teamgroup__contact a:hover { color: var(--rf-green-dark); }

/* A question's own page (faq/_entry): the answer in one readable column */
.rf-answer { max-width: 46rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.65; }

/* 404: a big search box beside links to the main sections */
.rf .rf-notfound__search .rf-h3 { margin-bottom: 20px; }
.rf-search--lg { width: 100%; max-width: 32rem; }
.rf .rf-search--lg .rf-search__input { height: 56px; padding: 0 60px 0 22px; border: 1px solid var(--rf-dust); font-size: 1rem; line-height: 56px; }
.rf .rf-search--lg .rf-search__input:focus { border-color: var(--rf-ink); outline: 0; }
.rf-search--lg .rf-search__button { top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--rf-green); color: #fff; transition: color 0.2s; }
.rf-search--lg .rf-search__button:hover { color: var(--rf-ink); }
.rf-search--lg .rf-search__button svg { width: 16px; height: 16px; }
.rf-notfound__links .rf-result { align-items: flex-start; }
.rf .rf-notfound__links .rf-result__title { color: var(--rf-ink); }
.rf .rf-notfound__text { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; color: var(--rf-grey); }

/* The video popup (parts/videoModal): a 16:9 player on a near-black screen, sized to fit the window */
/* app.css drops every .modal 18% down the window */
.rf .modal.rf-video { top: 0; padding: 0 !important; overflow-y: auto; }
.rf .rf-video .modal-dialog {
  width: calc(100% - 2 * var(--rf-gutter));
  max-width: min(1200px, calc((100vh - 140px) * 16 / 9));
  margin: 0 auto;
  transform: scale(0.97);
  transition: transform 0.3s var(--rf-ease);
}
.rf .rf-video.show .modal-dialog { transform: none; }
.rf .rf-video .modal-content { border: 0; border-radius: 0; background: none; }
.rf-video__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.rf .rf-video__title { margin: 0; overflow: hidden; font-size: 1rem; font-weight: 700; line-height: 1.3; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.rf .rf-video__close { position: relative; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); cursor: pointer; transition: background-color 0.2s; }
.rf-video__close::before,
.rf-video__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: #fff; transform: rotate(45deg); }
.rf-video__close::after { transform: rotate(-45deg); }
.rf .rf-video__close:hover { background: var(--rf-green); }
.rf-video__close:hover::before,
.rf-video__close:hover::after { background: var(--rf-ink); }
.rf-video__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--rf-radius); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.rf-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body:has(.rf-video.show) .modal-backdrop.show { background: #111; opacity: 0.92; }
