/* Compact industrial catalogue direction based on the supplied Rahib screens. */
.rh-home-brands__actions { display:flex; align-items:center; gap:16px; }
.rh-home-brands__controls { display:flex; gap:8px; }
.rh-home-brands__controls[hidden], .rh-home-brands__logo [hidden] { display:none!important; }
.rh-home-brands__controls button { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--rh-line); border-radius:50%; background:#fff; color:var(--rh-navy); font-size:22px; cursor:pointer; }
.rh-home-brands__controls button:disabled { opacity:.35; cursor:default; }
.rh-home-brands__track { display:flex; gap:14px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; padding:3px 2px 12px; margin:0; list-style:none; }
.rh-home-brands__item { flex:0 0 calc((100% - 70px)/6); min-width:0; scroll-snap-align:start; list-style:none; }
.rh-home-brands__item a { display:flex; flex-direction:column; align-items:center; gap:8px; height:100%; min-height:154px; padding:16px 12px; border:1px solid var(--rh-line); border-radius:6px; background:#fff; text-align:center; }
.rh-home-brands__item a:hover { border-color:var(--rh-navy); background:#f7f9fb; }
.rh-home-brands__logo { display:grid; place-items:center; width:100%; height:64px; }
.rh-home-brands__logo img { display:block; max-width:100%; width:160px; height:64px; object-fit:contain; }
.rh-home-brands__fallback { color:var(--rh-navy); font-size:19px; font-weight:800; line-height:1.15; overflow-wrap:anywhere; }
.rh-home-brands__item strong { font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
.rh-home-brands__item small { color:#657587; font-size:11px; }
.rh-home-brands__item small i { margin-left:5px; }
.rh-home-brands :is(a, button, .rh-home-brands__track):focus-visible { outline:2px solid var(--rh-navy); outline-offset:2px; }
@media(max-width:1100px) { .rh-home-brands__item { flex-basis:calc((100% - 42px)/4); } }
@media(max-width:700px) {
  .rh-home-brands .rh-reference-heading { flex-wrap:wrap; gap:10px; }
  .rh-home-brands__actions { margin-left:auto; gap:12px; }
  .rh-home-brands__controls button { width:44px; height:44px; }
  .rh-home-brands__item { flex-basis:calc((100% - 14px)/2.2); }
}
/* Editorial photography is illustrative, separate from catalogue product images. */
.rh-reference .rh-reference-partnership__visual.rh-reference-partnership__visual--photo {
  position: relative;
  isolation: isolate;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: #dce3e9;
  filter: none;
}
.rh-reference .rh-reference-partnership__visual.rh-reference-partnership__visual--photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.rh-reference .rh-reference-partnership__visual.rh-reference-partnership__visual--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, transparent 35%, rgba(8, 43, 85, .8));
}
.rh-reference .rh-reference-partnership__visual.rh-reference-partnership__visual--photo span {
  padding: 0;
  background: transparent;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.25;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}
.rh-reference .rh-reference-solution-grid .rh-reference-solution--photo {
  min-height: 0;
  padding: 0;
  border: 1px solid var(--rh-line);
  border-radius: 6px;
  background: #f8f9fb;
}
.rh-reference .rh-reference-solution-grid .rh-reference-solution--photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.rh-reference .rh-reference-solution-grid .rh-reference-solution--photo b {
  max-width: none;
  min-height: 64px;
  padding: 16px 40px 16px 16px;
  line-height: 1.35;
}
.rh-reference .rh-reference-solution-grid .rh-reference-solution--photo:hover {
  border-color: #a7bacb;
  box-shadow: 0 4px 16px rgba(8, 43, 85, .08);
}
@media (max-width: 900px) {
  .rh-reference .rh-reference-partnership__visual.rh-reference-partnership__visual--photo { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 520px) {
  .rh-reference .rh-reference-solution-grid .rh-reference-solution--photo b { padding: 12px 30px 12px 12px; }
  .rh-reference .rh-reference-solution-grid .rh-reference-solution--photo span { right: 10px; bottom: 20px; }
}
.rh-reference{--rh-navy:#082b55;--rh-ink:#142541;--rh-line:#e3e7ec;color:var(--rh-ink);font-family:Inter,Lato,sans-serif;background:#fff}.rh-reference *{box-sizing:border-box}.rh-reference a{color:inherit;text-decoration:none!important}.rh-reference-hero,.rh-reference-section,.rh-reference-partnership{max-width:1420px;margin:0 auto;padding-left:34px;padding-right:34px}.rh-reference-hero{position:relative;display:grid;grid-template-columns:minmax(320px,.88fr) minmax(390px,1.12fr);min-height:460px;overflow:hidden;background:linear-gradient(105deg,#f7f8fa 0%,#f4f5f5 62%,#eef0f1 100%)}.rh-reference-hero__copy{z-index:2;padding:75px 20px 98px 18px}.rh-reference-kicker{display:block;color:#647086;font-size:10px;font-weight:800;letter-spacing:.1em;line-height:1.5;text-transform:uppercase}.rh-reference-hero h1{margin:16px 0 13px;color:var(--rh-navy);font-size:clamp(40px,4.2vw,63px);font-weight:800;letter-spacing:-.06em;line-height:.99}.rh-reference-hero p{max-width:420px;margin:0 0 26px;color:#5a6473;font-size:15px;line-height:1.45}.rh-reference-button{display:inline-flex;gap:18px;align-items:center;padding:15px 21px;border-radius:3px;background:var(--rh-navy);color:#fff!important;font-size:13px;font-weight:700}.rh-reference-button:hover{background:#e88210}.rh-reference-hero__product{position:relative;display:flex;align-items:center;justify-content:center;min-height:390px}.rh-reference-hero__halo{position:absolute;width:390px;height:390px;border-radius:50%;background:radial-gradient(circle,#e1e3e2 0%,rgba(237,239,240,0) 68%)}.rh-reference-hero__product img{position:relative;z-index:1;width:72%;height:360px;object-fit:contain;mix-blend-mode:multiply;filter:drop-shadow(20px 25px 18px rgba(14,24,38,.18))}.rh-reference-hero__product span{position:absolute;z-index:2;top:66px;right:3%;color:#14355e;font-family:Georgia,serif;font-size:21px;font-style:italic;line-height:1.12;transform:rotate(-7deg)}.rh-reference-hero__assurances{position:absolute;z-index:3;bottom:0;left:0;display:flex;width:100%;padding:17px 52px;border-top:1px solid rgba(17,36,61,.08);background:rgba(255,255,255,.72)}.rh-reference-hero__assurances span{display:grid;grid-template-columns:24px auto;column-gap:8px;flex:1}.rh-reference-hero__assurances i{grid-row:span 2;color:var(--rh-navy);font-size:17px}.rh-reference-hero__assurances b{font-size:11px}.rh-reference-hero__assurances small{color:#748093;font-size:9px}.rh-reference-section{padding-top:35px;padding-bottom:20px}.rh-reference-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.rh-reference-heading h2,.rh-reference-partnership h2{margin:0;color:var(--rh-navy);font-size:24px;font-weight:750;letter-spacing:-.04em}.rh-reference-heading a{color:var(--rh-navy);font-size:11px;font-weight:750}.rh-reference-heading a i{margin-left:7px}.rh-reference-category-grid{display:grid;grid-template-columns:repeat(8,minmax(90px,1fr));border-top:1px solid var(--rh-line);border-left:1px solid var(--rh-line)}.rh-reference-category{min-height:142px;padding:16px 9px;border-right:1px solid var(--rh-line);border-bottom:1px solid var(--rh-line);text-align:center;transition:.2s ease}.rh-reference-category:hover{background:#f4f7fa}.rh-reference-category__image{display:grid;width:62px;height:62px;place-items:center;margin:0 auto 11px;border:1px solid #edf0f3;background:#f8f9fa;color:#758398;font-size:24px}.rh-reference-category strong{display:block;font-size:10px;font-weight:650;line-height:1.3}.rh-reference-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.rh-reference-product-card{position:relative;min-width:0;border:1px solid var(--rh-line);background:#fff}.rh-reference-product-card__image{display:flex;height:205px;align-items:center;justify-content:center;padding:18px;background:#fafafa}.rh-reference-product-card__image img{max-width:100%;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.rh-reference-product-card__body{position:relative;min-height:88px;padding:12px 49px 12px 13px}.rh-reference-product-card__body a{display:block;min-height:34px;font-size:13px;font-weight:650;line-height:1.3}.rh-reference-product-card__body strong{display:block;margin-top:8px;color:var(--rh-navy);font-size:13px}.rh-reference-product-card__body button{position:absolute;right:13px;bottom:13px;display:grid;width:34px;height:34px;place-items:center;border:1px solid #d7dde4;border-radius:50%;background:#fff;color:var(--rh-navy)}.rh-reference-partnership{display:grid;grid-template-columns:1.05fr .95fr;margin-top:35px;padding-top:40px;padding-bottom:38px;background:#f5f6f7}.rh-reference-partnership__copy{padding:0 34px 0 18px}.rh-reference-partnership h2{margin:15px 0 29px;font-family:Georgia,serif;font-size:36px;font-weight:500;line-height:1.03}.rh-reference-values{display:grid;grid-template-columns:1fr 1fr;gap:22px 18px}.rh-reference-values span{display:grid;grid-template-columns:35px auto;column-gap:10px}.rh-reference-values i{grid-row:span 2;display:grid;width:31px;height:31px;place-items:center;border:1px solid #c8d2df;border-radius:50%;color:var(--rh-navy)}.rh-reference-values b{font-size:11px}.rh-reference-values small{color:#56676e;font-size:9px}.rh-reference-partnership__visual{display:flex;align-items:flex-end;justify-content:flex-end;min-height:290px;padding:25px;background:linear-gradient(125deg,rgba(6,28,55,.15),rgba(6,28,55,.69)),url('/images/rahib-tools-logo.svg') center/cover;filter:grayscale(1)}.rh-reference-partnership__visual span{color:#fff;font-family:Georgia,serif;font-size:25px;font-style:italic;text-align:right}.rh-reference-solutions{padding-top:39px;padding-bottom:55px}.rh-reference-solution-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.rh-reference-solution-grid a{position:relative;display:flex;min-height:145px;flex-direction:column;justify-content:flex-end;padding:17px;overflow:hidden;background:linear-gradient(135deg,#dfe4e5,#f5f5f5)}.rh-reference-solution-grid i{position:absolute;top:20px;left:19px;color:rgba(8,43,85,.42);font-size:45px}.rh-reference-solution-grid b{max-width:135px;color:var(--rh-navy);font-size:13px}.rh-reference-solution-grid span{position:absolute;right:16px;bottom:15px;color:var(--rh-navy);font-size:19px}@media(max-width:900px){.rh-reference-hero{grid-template-columns:1fr}.rh-reference-hero__product{display:none}.rh-reference-hero__copy{padding:54px 24px 100px}.rh-reference-hero__assurances{padding:15px 24px}.rh-reference-hero__assurances span:nth-child(3){display:none}.rh-reference-category-grid{grid-template-columns:repeat(4,1fr)}.rh-reference-product-grid,.rh-reference-solution-grid{grid-template-columns:repeat(2,1fr)}.rh-reference-partnership{grid-template-columns:1fr}.rh-reference-partnership__visual{margin-top:30px;min-height:190px}.rh-reference-section,.rh-reference-hero,.rh-reference-partnership{padding-left:18px;padding-right:18px}}@media(max-width:520px){.rh-reference-hero__assurances span{grid-template-columns:19px auto}.rh-reference-hero__assurances small{display:none}.rh-reference-category-grid{grid-template-columns:repeat(2,1fr)}.rh-reference-product-grid{gap:8px}.rh-reference-product-card__image{height:150px}.rh-reference-partnership h2{font-size:29px}.rh-reference-values{grid-template-columns:1fr}.rh-reference-heading h2{font-size:20px}}
.rh-banner-carousel{position:relative;max-width:1600px;margin:0 auto;overflow:hidden;background:#edf3f8}.rh-banner-carousel__track{position:relative;aspect-ratio:64/15}.rh-banner-carousel__slide{position:absolute;inset:0;display:block;opacity:0;pointer-events:none;transition:opacity .45s ease}.rh-banner-carousel__slide.is-active{opacity:1;pointer-events:auto}.rh-banner-carousel__slide img{display:block;width:100%;height:100%;object-fit:cover}.rh-banner-carousel__controls{position:absolute;right:22px;bottom:16px;z-index:2;display:flex;align-items:center;gap:8px;color:#082b55;font-size:11px;font-weight:700}.rh-banner-carousel__controls button{display:grid;width:28px;height:28px;place-items:center;border:1px solid rgba(8,43,85,.22);border-radius:50%;background:rgba(255,255,255,.8);color:#082b55}@media(max-width:700px){.rh-banner-carousel__track{aspect-ratio:9/7}.rh-banner-carousel__slide img{object-fit:cover;object-position:center}.rh-banner-carousel__controls{right:12px;bottom:8px;transform:scale(.82);transform-origin:right bottom}}

/* Home Featured / Trending rows (8 products).
   Desktop and small laptop: two even rows of 4.
   Tablet and phone: a normal grid of 2 per row (4 rows), no sideways sliding. */
@media (min-width:992px) and (max-width:1199px) {
  body.rahib-store .rh-reference-product-grid.rh-home-rail { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
}
@media (max-width:991px) {
  body.rahib-store .rh-reference-product-grid.rh-home-rail { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; overflow:visible; }
}
@media (max-width:520px) {
  body.rahib-store .rh-reference-product-grid.rh-home-rail { gap:10px; }
}
