/* =========================================================================
   Home sections, in page order.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  /* Keep the browser from restoring scroll against the hero text: it is
     still mid-"rise" on reload, so a refresh at the top landed ~10px down. */
  overflow-anchor: none;
}

.hero__bg {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken-burns 20s var(--ease-flow) infinite alternate;
}

/* Navy grade: darker at the text side, and fading out at the bottom. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 72% 48%, rgb(19 102 175 / 0.28), transparent 70%),
    linear-gradient(90deg, rgb(26 34 55 / 0.92) 0%, rgb(26 34 55 / 0.7) 45%, rgb(26 34 55 / 0.55) 100%),
    linear-gradient(180deg, rgb(26 34 55 / 0) 60%, rgb(17 24 41 / 0.85) 100%);
}

[dir="rtl"] .hero__bg::after {
  background:
    radial-gradient(60% 70% at 28% 48%, rgb(19 102 175 / 0.28), transparent 70%),
    linear-gradient(270deg, rgb(26 34 55 / 0.92) 0%, rgb(26 34 55 / 0.7) 45%, rgb(26 34 55 / 0.55) 100%),
    linear-gradient(180deg, rgb(26 34 55 / 0) 60%, rgb(17 24 41 / 0.85) 100%);
}

.hero__inner {
  display: grid;
  flex: 1;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.hero__eyebrow {
  color: var(--rova-jordy-blue);
  animation: rise var(--dur-reveal) var(--ease-flow) both;
}

.hero__title {
  display: flex;
  flex-direction: column;
  color: var(--rova-floral);
}

.hero__line {
  display: block;
  animation: rise var(--dur-reveal) var(--ease-flow) both;
  animation-delay: 120ms;
}

.hero__line--accent {
  position: relative;
  align-self: flex-start;
  color: var(--rova-colombia);
  animation-delay: 220ms;
}

/* Brass wave drawn under "every flow." */
.hero__underline {
  position: absolute;
  bottom: -0.12em;
  inset-inline: 0;
  width: 100%;
  height: 0.24em;
  overflow: visible;
  /* Revealed with a clip, not a dash: the stroke doesn't scale, so dash
     lengths would depend on the rendered width. */
  clip-path: inset(-10px 100% -10px -10px);
  animation: underline-draw 1.6s var(--ease-flow) 0.9s forwards;
}

.hero__underline path {
  fill: none;
  stroke: var(--brass-400);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

[dir="rtl"] .hero__underline { transform: scaleX(-1); }

@keyframes underline-draw {
  to { clip-path: inset(-10px -10px -10px -10px); }
}

.hero__lead {
  max-width: 34rem;
  color: var(--rova-colombia);
  font-size: var(--text-xl);
  line-height: 1.55;
  animation: rise var(--dur-reveal) var(--ease-flow) 320ms both;
}

.hero__text .button-row {
  animation: rise var(--dur-reveal) var(--ease-flow) 420ms both;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) 0;
  margin-top: var(--space-2);
  color: var(--rova-colombia);
  font-size: var(--text-sm);
  list-style: none;
  padding: 0;
  animation: rise var(--dur-reveal) var(--ease-flow) 520ms both;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-inline: 0 var(--space-4);
  white-space: nowrap;
}

.hero__trust li + li {
  padding-inline-start: var(--space-4);
  border-inline-start: 1px solid rgb(151 179 219 / 0.35);
}

.hero__trust .icon {
  color: var(--rova-jordy-blue);
}

/* ---- Hero visual: the symbol in contour lines ---- */
.hero__visual {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  justify-self: center;
  --tilt-x: 0;
  --tilt-y: 0;
}

.hero__symbol,
.hero__orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__symbol {
  transform: translate(calc(var(--tilt-x) * -6px), calc(var(--tilt-y) * -6px));
  transition: transform 600ms var(--ease-flow);
}

.hero__ring,
.hero__bar,
.hero__s path {
  fill: none;
  stroke: var(--rova-jordy-blue);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.hero__ring { opacity: 0.75; }
.hero__ring--outer { opacity: 0.22; }
.hero__ring--inner { opacity: 0.3; }
.hero__bar { opacity: 0.5; }
.hero__s path { opacity: 0.5; }
.hero__s path:nth-child(2) { opacity: 0.95; }

/* Draw-in: every line starts hidden and traces itself once. */
.hero__ring,
.hero__bar,
.hero__s path {
  stroke-dasharray: 1900;
  stroke-dashoffset: 1900;
  animation: symbol-draw 2.6s var(--ease-flow) forwards;
}

.hero__ring--outer { animation-delay: 0.2s; }
.hero__ring--inner { animation-delay: 0.35s; }
.hero__bar { animation-delay: 0.6s; }
.hero__s path:nth-child(1) { animation-delay: 0.8s; }
.hero__s path:nth-child(2) { animation-delay: 0.9s; }
.hero__s path:nth-child(3) { animation-delay: 1s; }

@keyframes symbol-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-only {
  to { opacity: 0.85; }
}

/* Partway through the draw (the last bar finishes at ~2.3s), the contour
   lines hand over to the solid symbol. */
.hero__contour {
  animation: contour-out 0.6s var(--ease-flow) 1.3s forwards;
}

.hero__logo {
  fill: var(--rova-floral);
  opacity: 0;
  animation: logo-in 0.6s var(--ease-flow) 1.3s forwards;
}

@keyframes contour-out {
  to { opacity: 0; }
}

@keyframes logo-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__contour { opacity: 0; }
  .hero__logo { opacity: 1; }
}

.hero__orbit {
  animation: spin 80s linear infinite;
  opacity: 0;
  animation:
    spin 80s linear infinite,
    fade-only 1.2s var(--ease-flow) 1.6s forwards;
}

.hero__orbit text {
  fill: var(--rova-jordy-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
}

:lang(ar) .hero__orbit text {
  font-family: var(--font-sans-ar);
  font-size: 15px;
  letter-spacing: 0;
}

@media (min-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

  .hero__visual {
    justify-self: end;
  }
}

@media (max-width: 1079px) {
  .hero__visual {
    width: min(88vw, 460px);
  }
}

@media (max-width: 520px) {
  .hero__trust li + li {
    padding-inline-start: 0;
    border: 0;
  }
}

/* -------------------------------------------------------------------------
   2. Collection
   ------------------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product a {
  display: grid;
  gap: 6px;
  color: inherit;
}

.product__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: var(--space-2);
  padding: 14%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--chrome-tint);
  transition: box-shadow var(--dur-slow) var(--ease-flow);
}

.product--brass .product__media {
  background: var(--brass-tint);
}

/* The catalogue photos have white backgrounds: multiply melts them
   into the tile colour. */
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 700ms var(--ease-flow);
}

/* The union photo is cropped at its top edge, so it fills the tile
   from the bottom instead of floating with a cut edge. */
.product__media--fill {
  padding: 18% 14% 0;
  place-items: end center;
}

.product__media--fill img {
  object-position: bottom;
}

/* Tiny source photo: keep it near its real size so it stays sharp. */
.product__media--small {
  padding: 26%;
}

/* Corner arrow appears on hover. */
.product__media::after {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rova-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231366AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--dur-base) var(--ease-flow), transform var(--dur-base) var(--ease-flow);
}

[dir="rtl"] .product__media::after { transform: scale(0.8) scaleX(-1); }

.product a:hover .product__media { box-shadow: var(--shadow-md); }
.product a:hover .product__media::after { opacity: 1; transform: scale(1); }
[dir="rtl"] .product a:hover .product__media::after { transform: scaleX(-1); }

.product a:hover .product__media img {
  transform: scale(1.06) rotate(-3deg);
}

.product__name {
  color: var(--rova-oxford-blue);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--dur-base) var(--ease-flow);
}

.product a:hover .product__name {
  color: var(--rova-green-blue);
}

.product__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: var(--text-sm);
}

@media (min-width: 720px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------------
   3. In your home
   ------------------------------------------------------------------------- */
.home-map {
  background: var(--chrome-tint);
}

/* The heading and lead run the full container width here. */
.home-map .section-head__text,
.home-map .lead { max-width: none; }

.home-map__layout {
  display: grid;
  gap: var(--space-5);
}

/* ---- Stage: the drawing on grid paper, anchored to the ground ----
   Phones: the drawing keeps a readable width and scrolls sideways only. */
/* The stage stays LTR (like the drawing) so phones open on the street side. */
.home-map__stage {
  position: relative;
  direction: ltr;
  display: flex;
  padding-top: var(--space-12); /* room for the legend above the roof */
  flex-direction: column;
  justify-content: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--rova-white);
  background-image:
    linear-gradient(rgb(19 102 175 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(19 102 175 / 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.home-map__legend {
  position: absolute;
  z-index: 2;
  top: var(--space-5);
  inset-inline-start: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  color: var(--ink-500);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Arabic: the legend reads right to left, still in the stage's top-left. */
[dir="rtl"] .home-map__legend { direction: rtl; }

.home-map__key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.home-map__key::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--rova-green-blue);
}

.home-map__key--hot::before { background: var(--brass-500); }

.home-map__key--gas::before {
  background: repeating-linear-gradient(90deg, var(--gas-yellow) 0 6px, transparent 6px 10px);
}

.home-map__canvas {
  position: relative;
  min-width: 720px;
}

.house {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- The drawing: one ink, one stroke weight, quiet fills ---- */
.house__soil { fill: var(--sand-200); }
.house__ground { fill: none; stroke: var(--rova-oxford-blue); stroke-width: 3; }
.house__wall { fill: rgb(255 255 255 / 0.92); stroke: var(--rova-oxford-blue); stroke-width: 3; }
.house__parapet,
.house__slab,
.house__countertop { fill: var(--rova-oxford-blue); }
.house__line { fill: none; stroke: var(--rova-oxford-blue); stroke-width: 3; }
.house__line--thin { stroke-width: 2; }
.house__tank,
.house__meter,
.house__appliance,
.house__fixture,
.house__door,
.house__oven { fill: var(--rova-white); stroke: var(--rova-oxford-blue); stroke-width: 2.5; }
.house__fixture { fill: var(--blue-50); }
.house__door { fill: var(--sand-100); }
.house__glass { fill: var(--rova-colombia); stroke: var(--rova-oxford-blue); stroke-width: 2.5; }
.house__cabinet { fill: var(--sand-200); stroke: var(--rova-oxford-blue); stroke-width: 2.5; }
.house__stove { fill: var(--navy-700); }
.house__dial { fill: none; stroke: var(--rova-oxford-blue); stroke-width: 2; }
.house__drops { fill: none; stroke: var(--rova-jordy-blue); stroke-width: 2.5; stroke-linecap: round; }
.house__tap { fill: none; stroke: var(--rova-oxford-blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.house__shrub { fill: #9CC6A6; }
.house__shrub--light { fill: #C3DEC9; }

/* ---- Pipes ---- */
.pipe {
  fill: none;
  stroke: var(--rova-green-blue);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipe--hot { stroke: var(--brass-500); }

.pipe--gas {
  stroke: var(--gas-yellow);
  stroke-dasharray: 12 9;
  stroke-linecap: butt;
}

.flow {
  fill: none;
  stroke: rgb(255 255 255 / 0.85);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 22;
  animation: house-flow 1.4s linear infinite;
}

.flow--hot { stroke: #FFF1D8; }

@keyframes house-flow {
  to { stroke-dashoffset: -26; }
}

/* The selected point's pipe stays lit; the other lines step back. */
.line { transition: opacity var(--dur-slow) var(--ease-flow); }
.home-map__canvas[data-line] .line { opacity: 0.28; }
.home-map__canvas[data-line="cold"] .line--cold,
.home-map__canvas[data-line="hot"] .line--hot,
.home-map__canvas[data-line="gas"] .line--gas { opacity: 1; }

/* Labels are HTML (not SVG text) so they translate and use the page font. */
.house-label {
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  color: var(--rova-green-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-100%);
}

.house-label--gas { color: #8A6512; }

/* ---- Hotspots: quiet until chosen; the chosen one names itself ---- */
.hotspot {
  position: absolute;
  z-index: 1;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  display: grid;
  place-items: center;
  width: 26px;
  aspect-ratio: 1;
  padding: 0;
  border: 2.5px solid var(--brass-500);
  border-radius: 50%;
  background: var(--rova-white);
  box-shadow: 0 4px 10px -2px rgb(26 34 55 / 0.3);
  transform: translate(-50%, -50%);
  transition:
    background-color var(--dur-base) var(--ease-flow),
    transform var(--dur-base) var(--ease-flow);
}

.hotspot::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brass-500);
  transition: background-color var(--dur-base) var(--ease-flow);
}

.hotspot:hover,
.hotspot:focus-visible { z-index: 3; transform: translate(-50%, -50%) scale(1.15); }

.hotspot.is-active {
  z-index: 2;
  background: var(--brass-500);
  transform: translate(-50%, -50%) scale(1.15);
}

.hotspot.is-active::before { background: var(--rova-white); }

.hotspot.is-active::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--brass-500);
  border-radius: 50%;
  animation: ping 2.4s var(--ease-flow) infinite;
}

/* Name pill above the point: always on the chosen one, on hover for the rest. */
.hotspot__label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--rova-oxford-blue);
  color: var(--rova-floral);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) scale(0.87);
  transform-origin: 50% 100%;
  transition: opacity var(--dur-base) var(--ease-flow), transform var(--dur-base) var(--ease-flow);
}

.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label,
.hotspot.is-active .hotspot__label {
  opacity: 1;
  transform: translate(-50%, 0) scale(0.87);
}

:lang(ar) .hotspot__label { font-family: var(--font-sans-ar); }

/* ---- Panel: the chosen product, and a pager along the route ---- */
.home-map__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--rova-white);
}

.home-map__notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1;
}

/* Every note sits in the same cell: the panel keeps the height of the
   tallest note and never jumps when you switch. */
.note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-area: 1 / 1;
  align-content: start;
  gap: var(--space-2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 360ms var(--ease-flow), transform 360ms var(--ease-flow), visibility 0s 360ms;
}

.note.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 360ms var(--ease-flow), transform 360ms var(--ease-flow);
}

/* A fixed height (not an aspect ratio): tall product photos can't stretch
   the box, so every note is the same height. */
.note__media {
  display: grid;
  place-items: center;
  height: clamp(150px, 13vw, 190px);
  margin-bottom: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--chrome-tint);
}

.note__media--brass { background: var(--brass-tint); }

.note__media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.note__place {
  color: #8A6512;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.note__title {
  color: var(--rova-oxford-blue);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
}

.note__text {
  color: var(--ink-700);
  font-size: 15px;
}

.note__meta {
  justify-self: start;
  margin-top: var(--space-1);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
}

:lang(ar) .note__meta { font-family: var(--font-sans-ar); }

.home-map__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.home-map__count {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.home-map__step {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  background: var(--rova-white);
  color: var(--rova-oxford-blue);
  transition:
    background-color var(--dur-base) var(--ease-flow),
    border-color var(--dur-base) var(--ease-flow),
    color var(--dur-base) var(--ease-flow);
}

.home-map__step:hover {
  border-color: var(--rova-oxford-blue);
  background: var(--rova-oxford-blue);
  color: var(--rova-floral);
}

/* "Previous" points back: the arrow icon faces forward by default. */
.home-map__step--prev .icon { transform: scaleX(-1); }
[dir="rtl"] .home-map__step--prev .icon { transform: none; }

@media (min-width: 1080px) {
  .home-map__layout {
    grid-template-columns: minmax(0, 8fr) minmax(0, 3.6fr);
    align-items: stretch;
  }

  .home-map__stage {
    overflow: hidden;
  }

  .home-map__canvas {
    min-width: 0;
  }
}

/* -------------------------------------------------------------------------
   4. Built to endure (numbers)
   ------------------------------------------------------------------------- */
.quality {
  overflow: hidden;
}

/* Pattern bleeds off the end-bottom corner, behind the numbers' empty
   side, never behind the paragraph (v1 ran it behind the body text). */
.quality__wave {
  position: absolute;
  bottom: -48%;
  inset-inline-end: -24%;
  width: min(56%, 720px);
  opacity: 0.12;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}

[dir="rtl"] .quality__wave { transform: scaleX(-1); }

.quality__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.quality__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.quality .lead { color: var(--rova-colombia); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--brass-500);
}

.stat__label {
  order: 2;
  color: var(--rova-jordy-blue);
  font-size: 15px;
  line-height: 1.5;
}

.stat__value {
  color: var(--rova-floral);
  font-family: "Lexend", var(--font-display);
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: start;
}

[dir="rtl"] .stat__value { text-align: right; }

@media (min-width: 1080px) {
  .quality__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}

/* -------------------------------------------------------------------------
   5. Process
   ------------------------------------------------------------------------- */
.process__stage,
.process__wave {
  display: none;
}

.process__steps {
  display: flex;
  flex-direction: column;
  margin: 0;
  margin-inline-start: 28px;
  padding: 0;
  border-inline-start: 1.5px solid var(--rova-jordy-blue);
  list-style: none;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline-start: 44px;
  padding-bottom: 36px;
}

.process-step__icon {
  position: absolute;
  top: 0;
  inset-inline-start: -29px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--rova-jordy-blue);
  border-radius: 50%;
  background: var(--rova-white);
  color: var(--rova-green-blue);
  transition:
    background-color var(--dur-base) var(--ease-flow),
    color var(--dur-base) var(--ease-flow),
    border-color var(--dur-base) var(--ease-flow),
    transform var(--dur-base) var(--ease-flow);
}

.process-step__num {
  padding-top: 6px;
  color: var(--rova-green-blue);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.process-step__title {
  color: var(--rova-oxford-blue);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: var(--leading-snug);
}

.process-step__text {
  color: var(--ink-500);
  font-size: 15px;
}

.process-step__img {
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (min-width: 1080px) {
  /* Wide stage. Each slide = a blurred, darkened copy of the photo filling
     the panel + the sharp photo at a size it can hold. */
  .process__stage {
    position: relative;
    display: block;
    height: clamp(340px, 30vw, 440px);
    margin-bottom: 56px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--rova-oxford-blue);
  }

  .process__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-flow);
  }

  .process__slide.is-active {
    opacity: 1;
  }

  .process__slide-bg {
    position: absolute;
    inset: -40px;
    width: calc(100% + 80px);
    max-width: none;
    height: calc(100% + 80px);
    object-fit: cover;
    filter: blur(28px) saturate(1.1);
  }

  .process__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(26 34 55 / 0.92) 0%, rgb(26 34 55 / 0.7) 45%, rgb(26 34 55 / 0.25) 100%);
  }

  [dir="rtl"] .process__slide::after {
    background: linear-gradient(270deg, rgb(26 34 55 / 0.92) 0%, rgb(26 34 55 / 0.7) 45%, rgb(26 34 55 / 0.25) 100%);
  }

  .process__slide-img {
    position: absolute;
    z-index: 1;
    top: 50%;
    inset-inline-end: clamp(1.5rem, 4vw, 3rem);
    width: auto;
    max-width: 48%;
    height: calc(100% - 64px);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -20px rgb(8 12 24 / 0.6);
    transform: translateY(-50%) scale(0.97);
    transition: transform 900ms var(--ease-flow);
  }

  .process__slide.is-active .process__slide-img {
    transform: translateY(-50%);
  }

  .process__caption {
    position: absolute;
    z-index: 2;
    top: 50%;
    inset-inline-start: clamp(2rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 40%;
    color: var(--rova-floral);
    transform: translateY(-50%);
  }

  .process__count {
    color: var(--rova-jordy-blue);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
  }

  .process__caption-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
  }

  .process__caption-text {
    color: var(--rova-colombia);
    font-size: var(--text-lg);
  }

  .process__timeline {
    position: relative;
  }

  .process__wave {
    position: absolute;
    top: 0;
    left: calc(100% / 12);
    display: block;
    width: calc(100% * 10 / 12);
    height: 72px;
    overflow: visible;
  }

  .process__wave path {
    fill: none;
    stroke: var(--rova-jordy-blue);
    stroke-width: 1.5;
    stroke-dasharray: 1800;
    vector-effect: non-scaling-stroke;
  }

  .process.is-pending .process__wave path { stroke-dashoffset: 1800; }
  .process.is-drawn .process__wave path { animation: draw 2.4s var(--ease-flow) both; }

  .process__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-4);
    margin: 0;
    border: 0;
  }

  .process-step {
    align-items: center;
    gap: 10px;
    padding: 0;
    text-align: center;
    cursor: pointer;
  }

  .process-step__icon {
    position: static;
    width: 72px;
    height: 72px;
    margin-bottom: 6px;
    box-shadow: var(--shadow-md);
  }

  .process-step:hover .process-step__icon {
    border-color: var(--rova-green-blue);
    transform: translateY(-3px);
  }

  .process-step.is-active .process-step__icon {
    border-color: var(--rova-green-blue);
    background: var(--rova-green-blue);
    color: var(--rova-white);
  }

  .process-step__num { padding-top: 0; }
  .process-step__img { display: none; }

  .process-step__title {
    font-size: 17px;
  }

  .process-step__text {
    font-size: 14px;
  }
}

/* -------------------------------------------------------------------------
   6. Quality lab (dark, brass glow)
   ------------------------------------------------------------------------- */
.lab {
  overflow: hidden;
  background: var(--navy-950);
  color: var(--rova-jordy-blue);
  --color-text-strong: var(--rova-floral);
  --color-text-brand: var(--brass-400);
}

.lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 22% 40%, var(--brass-glow), transparent 70%);
  pointer-events: none;
}

[dir="rtl"] .lab::before {
  background: radial-gradient(50% 60% at 78% 40%, var(--brass-glow), transparent 70%);
}

.lab__grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: var(--space-12);
}

.lab__media {
  max-width: 460px;
}

.lab__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px rgb(227 169 85 / 0.55);
}

.lab__caption {
  margin-top: var(--space-3);
  padding-inline-start: 10px;
  color: var(--rova-jordy-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.lab .lead { color: var(--rova-jordy-blue); }

.tests {
  width: 100%;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.test {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-top: 1px solid rgb(215 230 245 / 0.12);
}

.test:last-child {
  border-bottom: 1px solid rgb(215 230 245 / 0.12);
}

.test__img {
  width: 64px;
  height: 64px;
  border: 2px solid rgb(227 169 85 / 0.55);
  border-radius: 50%;
  object-fit: cover;
  background: var(--rova-white);
}

.test__tag {
  color: var(--brass-400);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:lang(ar) .test__tag { font-family: var(--font-sans-ar); letter-spacing: 0; font-size: 13px; }

.test__title {
  margin-top: 2px;
  color: var(--rova-floral);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.test__text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
}

/* Live life-cycle counter */
.test--live {
  grid-template-columns: 64px minmax(0, 1fr);
}

.cycle {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-self: start;
  gap: var(--space-3);
  padding: 10px 16px 10px 10px;
  border: 1px solid rgb(215 230 245 / 0.18);
  border-radius: var(--radius-pill);
}

[dir="rtl"] .cycle { padding: 10px 10px 10px 16px; }

.cycle__valve {
  width: 36px;
  height: 36px;
}

.cycle__valve circle {
  fill: none;
  stroke: var(--rova-jordy-blue);
  stroke-width: 2;
}

/* The handle makes a real quarter turn instead of blinking. */
.cycle__handle {
  fill: var(--brass-400);
  transform-origin: 24px 24px;
  transition: transform 420ms var(--ease-valve);
}

.cycle.is-closed .cycle__handle {
  transform: rotate(90deg);
}

.cycle__count {
  display: flex;
  flex-direction: column;
  color: var(--rova-floral);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cycle__label {
  color: var(--rova-jordy-blue);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 1080px) {
  .lab__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6.5fr);
    gap: clamp(4rem, 7vw, 6.5rem);
  }
}

/* -------------------------------------------------------------------------
   7. Keep your family safe
   ------------------------------------------------------------------------- */
.family {
  background: var(--brass-tint);
  --color-text-brand: #8A6512;
}

.family .eyebrow::before { background: var(--brass-500); }

.family__grid {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tip {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--rova-white);
  color: var(--ink-500);
  font-size: 15px;
  transition: translate var(--dur-slow) var(--ease-flow), box-shadow var(--dur-slow) var(--ease-flow);
}

/* `translate` (not `transform`) so the lift composes with the reveal. */
.tip:hover {
  box-shadow: var(--shadow-md);
  translate: 0 -4px;
}

.tip__icon {
  margin-bottom: var(--space-3);
  fill: none;
  stroke: var(--brass-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tip__title {
  color: var(--rova-oxford-blue);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

@media (min-width: 720px) {
  .family__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .family__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* -------------------------------------------------------------------------
   8. Catalogue band
   ------------------------------------------------------------------------- */
.catalogue {
  display: grid;
  background: var(--rova-green-blue);
  color: var(--rova-colombia);
  --color-text-strong: var(--rova-white);
  --color-text-brand: var(--rova-colombia);
}

.catalogue__img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 640px;
  object-fit: cover;
}

.catalogue__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-5);
  padding: clamp(2.5rem, 4.5vw, 4.5rem) var(--gutter);
  overflow: hidden;
}

.catalogue__body > :not(.catalogue__wave) {
  position: relative;
}

/* The wave pattern runs taller than the panel, so its lines leave through
   the top and bottom edges instead of stopping inside it. */
.catalogue__wave {
  position: absolute;
  top: -6%;
  inset-inline-end: -12%;
  width: auto;
  max-width: none;
  height: 112%;
  opacity: 0.16;
  pointer-events: none;
}

.catalogue .eyebrow::before { background: var(--rova-colombia); }

.catalogue .heading-2 {
  max-width: 14ch;
}

.catalogue__text {
  max-width: 44ch;
  font-size: var(--text-lg);
}

@media (min-width: 1080px) {
  .catalogue {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .catalogue__body {
    padding-inline: clamp(3rem, 6vw, 6.5rem);
  }
}

/* -------------------------------------------------------------------------
   9. Distributors and installers
   ------------------------------------------------------------------------- */
.partners {
  background: var(--rova-white);
}

.partners__grid {
  display: grid;
  align-items: center;
  gap: var(--space-12);
}

.partners__media {
  position: relative;
}

.partners__media img {
  width: 100%;
  max-height: 640px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.partners__badge {
  position: absolute;
  bottom: var(--space-6);
  inset-inline-start: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 280px;
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  border-radius: var(--radius-pill);
  background: rgb(249 243 236 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--rova-oxford-blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
}

[dir="rtl"] .partners__badge { padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5); }

.partners__badge-num {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rova-green-blue);
  color: var(--rova-white);
  font-family: "Lexend", var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.partners__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.partners .drop-list {
  margin: var(--space-2) 0 var(--space-3);
  padding: 0;
  list-style: none;
}

@media (min-width: 1080px) {
  .partners__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(4rem, 7vw, 6rem);
  }
}

/* -------------------------------------------------------------------------
   10. Contact CTA (brand blue, via .theme-blue)
   ------------------------------------------------------------------------- */
.cta {
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem);
}

/* The solid white ROVA symbol, cropped into the bottom-left corner (left in
   both languages), faint enough to sit behind the text. */
.cta__symbol {
  position: absolute;
  bottom: -230px;
  left: -190px;
  width: 560px;
  fill: var(--rova-white);
  opacity: 0.1;
  pointer-events: none;
}

@media (max-width: 720px) {
  .cta__symbol {
    bottom: -150px;
    left: -120px;
    width: 340px;
  }
}

.cta__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: var(--space-8) var(--space-12);
}

.cta__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

/* A slim band: the title runs on one line and the lead across two. */
.cta__title { font-size: var(--text-3xl); }
.cta__lead {
  max-width: 68ch;
  font-size: var(--text-lg);
}

/* Buttons stacked at one width, so the text gets the room. */
.cta__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 960px) {
  .cta__inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 959px) {
  .cta__actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---- Arabic: no letter-spacing or mono font on Arabic labels ---- */
:lang(ar) .lab__caption,
:lang(ar) .cycle__label {
  font-family: var(--font-sans-ar);
  font-size: 13px;
  letter-spacing: 0;
}

/* Small phones: the file meta would push the catalogue button off-screen. */
@media (max-width: 420px) {
  .catalogue .btn__meta { display: none; }
}

/* The timeline line draws from the first step, which sits on the right in RTL. */
[dir="rtl"] .process__wave { transform: scaleX(-1); }
