/* Homepage hero (Redstack, 2026-11-20). Loaded on / only. lib/home-hero.ts adds .rs-hero to the
   Webflow .banner-section and builds .rs-hero-frame inside it: a full-screen photo slider in a
   rounded frame just inside the viewport edges, the copy on the left over a dark gradient, and a
   frosted bar along the bottom with the four trust points and the slide controls.
   Type: Inter only (the site's heading face), white. Colour: the site's primary #51ade5 on the
   phone button and nothing else, so the photo carries the colour. */

/* (navbar: no lines at the top of the page is now every page's behaviour, in /css/site-nav.css) */

/* ------------------------------------------------------------ frame + photos */
.rs-hero.banner-section { background: #fff; display: block; }
.rs-hero-frame {
  background-color: #293141;
  border-radius: var(--rs-radius);
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}
.rs-hero-bg, .rs-hero-scrim { position: absolute; inset: 0; }
.rs-hero-bg { z-index: 0; }
/* Dark on the left where the copy sits, clearing to the right so the room still reads; a second
   gradient darkens the bottom edge under the bar. */
.rs-hero-scrim {
  background:
    linear-gradient(0deg, rgba(41, 49, 65, .6) 0, rgba(41, 49, 65, 0) 34%),
    linear-gradient(90deg, rgba(41, 49, 65, .88) 0, rgba(41, 49, 65, .7) 38%, rgba(41, 49, 65, .28) 72%, rgba(41, 49, 65, .12) 100%);
  z-index: 1;
}
.rs-hero-bg .home-slider { height: auto; position: absolute; inset: 0; width: 100%; }
.rs-slider, .rs-slide { position: absolute; inset: 0; }
.rs-slide { opacity: 0; transition: opacity 1.2s ease; }
.rs-slide.is-active { opacity: 1; }
.rs-slide .hero-slider { display: block; height: 100%; object-fit: cover; width: 100%; }

/* ------------------------------------------------------------ copy */
.rs-hero .container-4 { display: flex; height: 100%; max-width: none; padding: 0; position: relative; width: 100%; z-index: 2; }
.rs-hero .home-6-banner-slider-container-3 {
  align-items: flex-start; display: flex; flex-direction: column; justify-content: center;
  height: 100%; margin: 0; max-width: none;
  padding: 40px clamp(28px, 5.4vw, 96px) 124px;
  position: static; text-align: left; width: 100%;
}
.rs-hero .hero-content.home {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  align-items: flex-start; background: none; border: 0; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column; height: auto; max-width: 860px; padding: 0; width: 100%;
}
.rs-hero .hero-content.mobile { display: none; }
.rs-hero .header-review-group.center-tablet { justify-content: flex-start; margin-bottom: 22px; }
.rs-hero .title-large.bold { color: #fff; line-height: 1.35; margin-bottom: 0; text-align: left; }
.rs-hero-count { font-weight: 400; margin-left: 4px; }

/* One face, one colour. The source set the middle line in Poppins and blue; both go. */
.rs-hero .rl-heading-style-h1-3 {
  color: #fff;
  font-family: Inter Variablefont Opsz Wght, Arial, sans-serif;
  font-size: clamp(3rem, 5vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  margin-bottom: 24px;
  text-align: left;
  text-shadow: 0 2px 24px rgba(41, 49, 65, .35);
  text-wrap: balance;
}
.rs-hero .rl-heading-style-h1-3 .text-span-3 { color: inherit; font-family: inherit; text-align: inherit; }
.rs-hero .rl-heading-style-h1-3 br { display: none; }
.rs-hero .rl-text-style-medium-3 {
  color: rgba(255, 255, 255, .92);
  font-size: 1.25rem; line-height: 1.55;
  margin-bottom: 0; max-width: 33em; text-align: left;
}
.rs-hero .home-slide-buttons-wrapper-2 { justify-content: flex-start; margin-top: 32px; }
.rs-hero .rl-button-group { justify-content: flex-start; }
/* Both buttons share one box: same height, type and spacing; the label is centred in it. */
.rs-hero .rl-button, .rs-hero .rl-button-secondary-alternate {
  align-items: center; border-radius: var(--rs-radius); border-width: 1px; box-sizing: border-box;
  display: inline-flex; justify-content: center;
  font-size: 1.05rem; font-weight: 700; height: 60px; letter-spacing: .03em; line-height: 1;
  padding: 0 1.75rem; white-space: nowrap;
}
.rs-hero .rl-button-secondary-alternate { border-color: var(--relume-library-lite--primary); padding-left: 1.15rem; }
.rs-hero .rl-button-secondary-alternate .icon-text {
  align-items: center; display: inline-flex; flex-shrink: 0; font-size: 15px; height: 32px; justify-content: center;
  line-height: 1; margin-right: 12px; padding: 0; width: 32px;
}
.rs-hero .rl-button { border-color: #fff; }
.rs-hero .rl-button:hover { background-color: var(--lightblue); }

/* ------------------------------------------------------------ bottom bar: trust points + slide controls */
.rs-hero-bar {
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  align-items: center;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--rs-radius);
  display: flex; justify-content: space-between;
  /* The right end stays empty: the site's floating chat button sits over that corner. */
  padding: 14px 92px 14px 28px;
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  z-index: 3;
}
.rs-hero-bar .featured {
  display: flex; flex: 1; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 48px); justify-content: space-between;
  grid-template-columns: none; padding: 0;
}
.rs-hero-bar .featured-item { gap: 10px; justify-content: flex-start; }
.rs-hero-bar .featured-text { color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; }
.rs-hero-bar .icon-hero { color: #fff; font-size: 19px; line-height: 1; }

.rs-hero-controls { align-items: center; display: flex; gap: 8px; position: absolute; right: 24px; top: 20px; z-index: 3; }
.rs-hero-dot { align-items: center; background: none; border: 0; cursor: pointer; display: flex; height: 36px; padding: 0; width: 44px; }
.rs-hero-dot span { background: rgba(255, 255, 255, .4); border-radius: 2px; display: block; height: 4px; overflow: hidden; position: relative; width: 100%; }
.rs-hero-dot:hover span { background: rgba(255, 255, 255, .6); }
.rs-hero-dot.is-active span::after {
  animation: rs-hero-fill var(--rs-slide-ms, 6000ms) linear both;
  background: #fff; content: ""; position: absolute; inset: 0; transform-origin: left center;
}
.rs-hero-frame.is-paused .rs-hero-dot.is-active span::after, .rs-hero-frame:not(.is-ready) .rs-hero-dot.is-active span::after { animation: none; }
.rs-hero-pause {
  align-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  cursor: pointer; display: flex; height: 36px; justify-content: center; margin-left: 6px; padding: 0; width: 36px;
  transition: background-color .2s;
}
.rs-hero-pause:hover { background: rgba(255, 255, 255, .32); }
.rs-hero-pause-icon { border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; height: 12px; width: 10px; }
.rs-hero-frame.is-paused .rs-hero-pause-icon {
  border-color: transparent transparent transparent #fff; border-style: solid; border-width: 7px 0 7px 11px; height: 0; margin-left: 3px; width: 0;
}
.rs-hero-dot:focus-visible, .rs-hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------------------ desktop + tablet: exactly one screen */
@media screen and (min-width: 768px) {
  /* The fixed navbar is 99px tall: the frame starts 8px under it and ends 8px above the
     bottom of the screen. */
  .rs-hero.banner-section { height: 100svh; min-height: 600px; padding: 107px 8px 8px; }
}
/* Short screens: the same hero, tighter. */
@media screen and (min-width: 768px) and (max-height: 820px) {
  .rs-hero .home-6-banner-slider-container-3 { padding-top: 24px; padding-bottom: 104px; }
  .rs-hero .header-review-group.center-tablet { margin-bottom: 14px; }
  .rs-hero .rl-heading-style-h1-3 { font-size: clamp(2.6rem, 4.3vw, 3.9rem); margin-bottom: 16px; }
  .rs-hero .rl-text-style-medium-3 { font-size: 1.1rem; }
  .rs-hero .home-slide-buttons-wrapper-2 { margin-top: 22px; }
  .rs-hero .rl-button, .rs-hero .rl-button-secondary-alternate { font-size: 1rem; height: 54px; }
  .rs-hero-bar { padding-top: 10px; padding-bottom: 10px; }
}
@media screen and (min-width: 992px) and (max-width: 1279px) {
  .rs-hero-bar { padding-left: 22px; padding-right: 84px; }
  .rs-hero-bar .featured { gap: 10px 16px; }
  .rs-hero-bar .featured-text { font-size: 15px; }
  .rs-hero-bar .icon-hero { font-size: 17px; }
}
@media screen and (min-width: 992px) and (max-width: 1099px) {
  .rs-hero-bar { padding-left: 18px; padding-right: 78px; }
  .rs-hero-bar .featured { flex-wrap: nowrap; gap: 10px; }
  .rs-hero-bar .featured-item { gap: 7px; }
  .rs-hero-bar .featured-text { font-size: 13px; white-space: nowrap; }
  .rs-hero-bar .icon-hero { font-size: 14px; }
}
/* Tablet + phone: the site's sticky call button sits over the bottom right corner, so the trust
   points leave the bar and follow the buttons as a plain two-column list. */
@media screen and (max-width: 991px) {
  .rs-hero-frame { display: flex; flex-direction: column; justify-content: center; }
  .rs-hero .container-4 { flex: 0 0 auto; height: auto; }
  .rs-hero .home-6-banner-slider-container-3 { height: auto; padding-bottom: 0; padding-top: 56px; }
  .rs-hero-bar {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: none; border: 0; border-radius: 0;
    margin: 30px 0 0; padding: 0 clamp(28px, 5.4vw, 96px) 40px;
    position: relative; left: auto; right: auto; bottom: auto;
  }
  .rs-hero-bar .featured { display: grid; grid-template-columns: auto auto; gap: 14px 36px; justify-content: start; }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .rs-hero .rl-heading-style-h1-3 { font-size: 3.5rem; }
  .rs-hero-scrim {
    background:
      linear-gradient(0deg, rgba(41, 49, 65, .7) 0, rgba(41, 49, 65, 0) 40%),
      linear-gradient(90deg, rgba(41, 49, 65, .86) 0, rgba(41, 49, 65, .62) 60%, rgba(41, 49, 65, .4) 100%);
  }
}

/* ------------------------------------------------------------ phone: natural flow, centred */
@media screen and (max-width: 767px) {
  .rs-hero.banner-section { background: #fff; height: auto; padding: 88px 8px 8px; }
  .rs-hero-frame { border-radius: var(--rs-radius); height: auto; min-height: 0; }
  .rs-hero-scrim { background: linear-gradient(rgba(41, 49, 65, .62), rgba(41, 49, 65, .78)); }
  .rs-hero .container-4 { margin-top: 0; }
  .rs-hero .home-6-banner-slider-container-3 { align-items: center; margin-top: 0; padding: 64px 18px 0; text-align: center; }
  .rs-hero .hero-content.home { align-items: center; }
  .rs-hero .header-review-group.center-tablet { justify-content: center; margin-bottom: 16px; }
  .rs-hero .rl-heading-style-h1-3 { font-size: clamp(1.75rem, 8.6vw, 3rem); line-height: 1.04; margin-bottom: 16px; text-align: center; }
  .rs-hero .rl-text-style-medium-3 { font-size: 1.05rem; text-align: center; }
  .rs-hero .home-slide-buttons-wrapper-2, .rs-hero .rl-button-group { justify-content: center; }
  .rs-hero .home-slide-buttons-wrapper-2 { margin-top: 24px; }
  .rs-hero .rl-button, .rs-hero .rl-button-secondary-alternate { font-size: 1rem; height: 54px; padding-left: 1.4rem; padding-right: 1.4rem; }
  .rs-hero .rl-button-secondary-alternate { padding-left: 1rem; }
  .rs-hero-bar { margin-top: 28px; padding: 0 18px 44px; }
  .rs-hero-bar .featured { gap: 12px 18px; grid-template-columns: 1fr 1fr; justify-content: stretch; place-items: start; }
  .rs-hero-bar .featured-text { font-size: 14px; }
  .rs-hero-bar .icon-hero { font-size: 16px; }
  .rs-hero-controls { right: 14px; top: 12px; }
}
@media screen and (max-width: 479px) {
  .rs-hero.banner-section { background: #fff; }
  .rs-hero .title-large.bold { color: #fff; }
  .rs-hero-bar .featured-text { font-size: 13px; }
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .rs-slide.is-active .hero-slider { animation: rs-hero-drift 8s ease-out both; }
  .rs-hero .hero-content.home > * { animation: rs-hero-rise .75s cubic-bezier(.22, .61, .36, 1) both; }
  .rs-hero .hero-content.home > *:nth-child(2) { animation-delay: .08s; }
  .rs-hero .hero-content.home > *:nth-child(3) { animation-delay: .16s; }
  .rs-hero .hero-content.home > *:nth-child(4) { animation-delay: .24s; }
  .rs-hero-bar { animation: rs-hero-rise .75s cubic-bezier(.22, .61, .36, 1) .36s both; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-slide { transition: none; }
}
@keyframes rs-hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rs-hero-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes rs-hero-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
