/* BUILD 17: protect the masthead logo, clean red greebling, moving client strip,
   and an optional rotating genuine testimonial panel. */

/* The brand mark must fit below the navigation, not disappear under it. */
.rbh-masthead-inner { overflow:visible; box-sizing:border-box; }
.rbh-masthead .rbh-brand-mark { z-index:2; }
.rbh-masthead .rbh-brand-mark img { display:block; width:100%; height:auto; }
@media (min-width:921px) {
  .rbh-masthead-inner { min-height:151px; padding-top:7px; padding-bottom:7px; }
  .rbh-masthead .rbh-brand-mark { width:133px; }
}
@media (min-width:701px) and (max-width:920px) {
  .rbh-masthead-inner { min-height:91px; padding-top:5px; padding-bottom:6px; }
  .rbh-masthead .rbh-brand-mark { width:70px; }
}
@media (max-width:700px) {
  .rbh-masthead-inner { min-height:77px!important; padding:5px 0!important; }
  .rbh-masthead .rbh-brand-mark { width:66px!important; top:50%; transform:translateY(-50%); }
}
@media (max-width:370px) {
  .rbh-masthead-inner { min-height:70px!important; }
  .rbh-masthead .rbh-brand-mark { width:57px!important; }
}

/* No fake studs on the top edge of the red greebled footer. */
.rbh-footer-cta { border-top:2px solid #e51223!important; }
.rbh-footer-cta::before { display:none!important; content:none!important; }

/* An endless carousel that uses official logo files when available.
   For organisations still awaiting supplied files, the existing name is shown. */
.rbh-page .rbh-clients { min-width:0; }
.rbh-page .rbh-client-marquee {
  position:relative;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  touch-action:pan-x;
  mask-image:linear-gradient(to right,transparent,black 3%,black 97%,transparent);
  -webkit-mask-image:linear-gradient(to right,transparent,black 3%,black 97%,transparent);
}
.rbh-client-marquee::-webkit-scrollbar { display:none; }
.rbh-page .rbh-client-track {
  display:flex;
  align-items:stretch;
  width:max-content;
  animation:rbh-client-scroll 28s linear infinite;
  will-change:transform;
}
.rbh-page .rbh-client-set { display:flex; gap:12px; padding-right:12px; flex:none; }
.rbh-page .rbh-client-set .rbh-client-logo {
  flex:0 0 175px;
  width:175px;
  min-width:175px;
  height:81px;
  min-height:81px;
  padding:10px 14px;
  box-sizing:border-box;
  display:grid;
  place-items:center;
  font:800 15px/1.15 Arial,Helvetica,sans-serif!important;
  text-align:center;
  color:#141414;
  background:#fff;
  border-radius:11px;
}
.rbh-client-set .rbh-client-logo img {
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.rbh-client-set .rbh-client-logo span {display:block;}
.rbh-client-set .rbh-client-1 {color:#223966;}
.rbh-client-set .rbh-client-2 {color:#254385;}
.rbh-client-set .rbh-client-3 {color:#087b7a;}
.rbh-client-set .rbh-client-4 {color:#213c73;}
.rbh-client-marquee:hover .rbh-client-track,
.rbh-client-marquee:focus-within .rbh-client-track,
.rbh-client-marquee:active .rbh-client-track {animation-play-state:paused;}
@keyframes rbh-client-scroll { to {transform:translateX(-50%);} }
@media (max-width:920px) {
  .rbh-page .rbh-clients { grid-template-columns:1fr; gap:7px; align-items:start; }
  .rbh-page .rbh-clients .rbh-ribbon {margin:0 0 6px 9px!important;}
  .rbh-page .rbh-client-set .rbh-client-logo {
    flex-basis:150px;
    width:150px;
    min-width:150px;
    height:72px;
    min-height:72px;
    padding:10px;
    font-size:13px!important;
  }
}
@media (min-width:921px) {
  .rbh-page .rbh-clients {grid-template-columns:minmax(190px,19%) minmax(0,1fr);}
}
@media (prefers-reduced-motion:reduce) {
  .rbh-page .rbh-client-track{animation:none!important;}
}

/* Optional testimonial carousel, powered only by approved quotes. */
.rbh-page .rbh-testimonial { min-width:0; }
.rbh-page .rbh-quote-text { display:block; }
.rbh-page .rbh-testimonial cite { font-style:normal; font-weight:700; color:#ffe400; }
.rbh-testimonial-dots { margin-top:7px; color:#aaa; font:700 11px/1.2 Arial,sans-serif; letter-spacing:.03em; }
@media (max-width:700px) {
  .rbh-page .rbh-testimonial { min-height:72px; }
  .rbh-page .rbh-testimonial blockquote {font-size:14px;}
}
