/*Styling*/
.content-text p {
 padding-bottom:15px; 
}

.primary50 {
  &, li, p {
    color:var(--primary) !important;
    opacity:.50 !important;
  }
}
.primary80 {
  &, li, p {
    color:var(--primary) !important;
    opacity:.80 !important;
  }
}

.hero-h1 .hl{
  display: inline-block;
  transform: translateY(110%);
  clip-path: inset(0 -.15em 100% -.15em);
  will-change: transform, clip-path;
  animation: hl-in 1.1s cubic-bezier(.16,.84,.3,1) forwards;
  font-size:clamp(6rem, 13vh, 13rem);
  line-height:clamp(4rem, 9vh, 9rem);
  
}

.hero-h1 .hl.blue{
  color: var(--primary);
}

/* stagger — matches the original .07s GSAP stagger + .1s delay */
.hero-h1 .hl:nth-child(1){ animation-delay: .10s; }
.hero-h1 .hl:nth-child(2){ animation-delay: .17s; }
.hero-h1 .hl:nth-child(3){ animation-delay: .24s; }
.hero-h1 .hl:nth-child(4){ animation-delay: .31s; }

@keyframes hl-in{
  to{
    transform: translateY(0);
    clip-path: inset(-.2em -.15em -.2em -.15em);
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-h1 .hl{
    transform: none;
    clip-path: none;
    animation: none;
  }
}

.rl-heroslideshow {
 z-index:0;
}

/*Ticker*/
.rl-ticker{
  overflow:hidden;
}
.rl-ticker-track{
  display:flex;
  gap:6rem;
  margin:0;
  padding:0;
  list-style:none;
  width:max-content;
  animation:ticker-scroll 30s linear infinite;
  will-change:transform;
}
.rl-ticker-track li{
  position:relative;
  padding-right:9rem;
  text-transform:uppercase;
  letter-spacing:.1rem;
}
.rl-ticker-track li::after{
  content:url('/images/rl-chevrons.svg');
  width:60px;
  height:15px;
  opacity:0.5 !important;
  position:absolute;
  right:0;
  color:#e2b100;
  opacity:.8;
}
.rl-ticker:hover .rl-ticker-track{animation-play-state:paused}
@keyframes ticker-scroll{
  from{transform:translateX(-50%)}
  to{transform:translateX(0)}
}
@media (prefers-reduced-motion:reduce){
  .rl-ticker-track{animation:none}
}

/*Servicelist*/
.lr-servicelist {
  ul{
    list-style: none;
    padding: 0;
    margin: 0;
  }
  ul li{
    padding-left: 1.75rem;
    background: url('/images/rl-chevron.svg') no-repeat left .35em / 1em 1em;
    /*                                    position       ↑ size  */
    margin-bottom: .5rem;
  }
}

/*ServicePills*/
.lr-servicepills {
  ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;

    li{
      display: inline-block;
      padding: .4em .9em;
      margin: 0 .30em .30em 0;
      border: var(--border) 1px solid;
    }
  }
  &.small li{
    padding: .25em .7em;
    font-size: 80%;
  }
  &.center{
    text-align: center;
    li{
      margin: .25em;
    }
  }
}

.rl-featuresgrid2 {
  .ba-feature-box {
  	border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin:0 !important;
    width: calc(100% / 2) !important;   
    &:nth-child(2n) {
    	border-right: 0px solid #FFF;  
    }
    &:nth-last-child(-n + 2) {
      border-bottom: 0px solid #FFF;  
    }
  }
}
.rl-featuresgrid3 {
  .ba-feature-box {
  	border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin:0 !important;
    width: calc(100% / 3) !important;
    &:nth-child(3n) {
    	border-right: 0px solid #FFF;  
    }
    &:nth-last-child(-n + 3) {
      border-bottom: 0px solid #FFF;  
    }
  }
}

.rl-selectoptions {

  fieldset.ba-input-wrapper {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
  }

  .ba-field-label-wrapper {
    display: block;
    margin: 0 0 .8rem;
    padding: 0;
    text-transform: uppercase;
    color: var(--text);

    .required-star { color: var(--primary); margin-left: .2em; }
  }

  .ba-form-checkbox-group-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    gap: .5rem;
    grid-template-columns: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .ba-form-checkbox-wrapper {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0;
  }

  .ba-checkbox-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: .4rem 1rem !important;
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;

    &:hover {
      border-color: var(--primary);
      .ba-form-checkbox-title,
      .ba-checkbox-title { color: var(--primary); }
    }

    &:has(input[type="checkbox"]:checked) {
      background: var(--primary);
      border-color: var(--primary);

      .ba-form-checkbox-title,
      .ba-checkbox-title { color: var(--text); }
    }

    &:has(input[type="checkbox"]:focus-visible) {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
  }

  .ba-checkbox-title,
  .ba-form-checkbox-title {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    color: var(--text);
    transition: color .2s;
    pointer-events: none;
    white-space: nowrap;
  }

  label.ba-form-checkbox {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;

    > span {
      display: none !important;
    }

    input[type="checkbox"] {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      opacity: 0;
      cursor: pointer;
      -webkit-appearance: none;
              appearance: none;
    }
  }

  @media (max-width: 480px) {
    .ba-form-checkbox-group-wrapper { gap: .4rem; }
    .ba-checkbox-wrapper           { padding: .35rem .8rem !important; }
    .ba-form-checkbox-title,
    .ba-checkbox-title             { white-space: normal; }
  }
}
