/* ============================================================
   RUNNER — refinement layer (loaded LAST, overrides only)
   Goal: polish the original site without changing its form.
   Keeps every asset, structure and the brand red (#b42d43).
   ============================================================ */
:root{
  --rf-red:#b42d43;
  --rf-red-deep:#8e2335;
  --rf-red-bright:#cf3e57;
  --rf-ink:#1d1c22;
  --rf-muted:#5d5b66;
  --rf-cream:#faf7f1;
  --rf-ease:cubic-bezier(.22,1,.36,1);
}
html{scroll-behavior:smooth}
body{letter-spacing:-.005em}
::selection{background:var(--rf-red);color:#fff}

/* smoother, tighter headings everywhere */
.display-heading-1,.display-heading-2,.large-heading,.medium-heading,.heading-2,.heading-3,.heading-4{
  letter-spacing:-.025em!important;
}

/* ---------- NAV ---------- */
.navbar-container.sticky-top{
  transition:box-shadow .4s var(--rf-ease),background-color .4s var(--rf-ease),backdrop-filter .4s var(--rf-ease)!important;
}
.navbar-container.rf-nav-scrolled{
  box-shadow:0 1px 0 rgba(20,18,16,.06),0 12px 30px -20px rgba(20,18,16,.25);
  background-color:rgba(248,247,245,.82)!important;
  backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3);
}
.nav-link{position:relative;transition:color .3s var(--rf-ease)!important}
.nav-link:not(.w--current)::after{
  content:"";position:absolute;left:0;bottom:2px;height:1.5px;width:0;background:var(--rf-red);transition:width .35s var(--rf-ease);
}
.nav-link:hover::after{width:100%}
.nav-link:hover{color:var(--rf-red)!important}

/* ---------- BUTTONS ---------- */
.button{
  border-radius:100px!important;padding:13px 26px!important;font-weight:600!important;letter-spacing:.01em!important;
  background-color:var(--rf-red)!important;
  box-shadow:0 8px 24px -12px rgba(180,45,67,.7);
  transition:transform .35s var(--rf-ease),background-color .35s var(--rf-ease),box-shadow .35s var(--rf-ease)!important;
}
.button:hover{background-color:var(--rf-red-bright)!important;transform:translateY(-2px);box-shadow:0 16px 34px -12px rgba(180,45,67,.75)}

/* arrow links */
.link-with-arrow{transition:color .3s var(--rf-ease)}
.link-with-arrow .link-arrow{transition:transform .35s var(--rf-ease)}
.link-with-arrow:hover .link-arrow{transform:translateX(5px)}
.link-with-arrow:hover{color:var(--rf-red)}

/* ---------- HERO (video) ---------- */
.hero-section-3{overflow:hidden}
.hero-section-3::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(15,22,20,.74) 0%,rgba(15,22,20,.34) 42%,rgba(15,22,20,.12) 70%,rgba(15,22,20,.30) 100%),
    linear-gradient(0deg,rgba(12,16,15,.66) 0%,rgba(12,16,15,0) 46%);
}
.hero-section-3-container{position:relative;z-index:2}
.display-heading-1{
  font-size:clamp(40px,5.1vw,76px)!important;line-height:1.0!important;letter-spacing:-.035em!important;
  max-width:17ch;text-shadow:0 2px 30px rgba(0,0,0,.28);
  animation:rfRise 1.1s var(--rf-ease) both;
}
/* eyebrow + scroll cue injected by refine.js */
.rf-eyebrow{
  display:inline-flex;align-items:center;gap:12px;color:#fff;opacity:.92;margin-bottom:26px;
  font-family:"PlusJakarta Text",sans-serif;font-size:13px;letter-spacing:.22em;text-transform:uppercase;font-weight:600;
  animation:rfRise 1s var(--rf-ease) both;
}
.rf-eyebrow::before{content:"";width:30px;height:2px;background:var(--rf-red);border-radius:2px}
.rf-scrollcue{
  position:absolute;left:0;bottom:36px;z-index:3;display:flex;align-items:center;gap:12px;color:#fff;opacity:.8;
  font-family:"PlusJakarta Text",sans-serif;font-size:11px;letter-spacing:.24em;text-transform:uppercase;
}
.rf-scrollcue .bar{width:1px;height:48px;background:linear-gradient(#fff,transparent);position:relative;overflow:hidden}
.rf-scrollcue .bar::after{content:"";position:absolute;top:-50%;left:0;width:100%;height:50%;background:var(--rf-red-bright);animation:rfDrop 2.4s var(--rf-ease) infinite}
@keyframes rfRise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes rfDrop{0%{top:-50%}60%,100%{top:100%}}

/* ---------- SECTION TITLES ---------- */
.large-heading.section-title,.large-heading-copy.section-title{
  font-size:clamp(30px,3.6vw,50px)!important;letter-spacing:-.035em!important;line-height:1.05!important;
}

/* ---------- SOLUTIONS / icon boxes ---------- */
.boxed.icon-box{
  background:#fff!important;border:1px solid rgba(20,18,16,.07)!important;border-radius:20px!important;
  padding:38px 28px!important;
  box-shadow:0 1px 2px rgba(20,18,16,.04);
  transition:transform .45s var(--rf-ease),box-shadow .45s var(--rf-ease),border-color .45s var(--rf-ease)!important;
}
.boxed.icon-box:hover{
  transform:translateY(-8px);
  box-shadow:0 30px 50px -28px rgba(20,18,16,.35);
  border-color:rgba(180,45,67,.28)!important;
}
.icon-circle{
  border-radius:50%!important;
  box-shadow:0 14px 26px -14px rgba(20,18,16,.4);
  transition:transform .45s var(--rf-ease)!important;
}
.boxed.icon-box:hover .icon-circle{transform:scale(1.08) rotate(-4deg)}
.heading-2,.heading-3,.heading-4{line-height:1.12!important}

/* solutions PAGE (with descriptions) — keep airy & readable */
.section.bg-primary-2 .icon-box,.icon-box{border-radius:20px}
.medium-heading{letter-spacing:-.03em!important;line-height:1.08!important}

/* ---------- CUSTOMER LOGO GRID ---------- */
.boxed.icon-link-box-vertical{
  background:#fff!important;border:1px solid rgba(20,18,16,.07)!important;border-radius:16px!important;
  transition:transform .45s var(--rf-ease),box-shadow .45s var(--rf-ease),border-color .45s var(--rf-ease)!important;
}
.boxed.icon-link-box-vertical img{
  filter:grayscale(1);opacity:.7;transition:filter .45s var(--rf-ease),opacity .45s var(--rf-ease),transform .45s var(--rf-ease)!important;
}
.boxed.icon-link-box-vertical:hover{
  transform:translateY(-6px);box-shadow:0 26px 44px -26px rgba(20,18,16,.4);border-color:rgba(180,45,67,.22)!important;
}
.boxed.icon-link-box-vertical:hover img{filter:grayscale(0);opacity:1;transform:scale(1.05)}

/* ---------- FOOTER ---------- */
.footer-2 .hover-link{transition:color .3s var(--rf-ease),transform .3s var(--rf-ease)!important;display:inline-block}
.footer-2 .hover-link:hover{color:var(--rf-red)!important;transform:translateX(3px)}
.social-media-button{transition:transform .35s var(--rf-ease),background-color .35s var(--rf-ease)!important}
.social-media-button:hover{transform:translateY(-3px);background-color:var(--rf-red)!important}

/* ---------- ABOUT photos ---------- */
.rounded.shadow-large{
  border-radius:18px!important;
  box-shadow:0 30px 60px -30px rgba(20,18,16,.4)!important;
  transition:transform .5s var(--rf-ease),box-shadow .5s var(--rf-ease);
}
.rounded.shadow-large:hover{transform:translateY(-5px);box-shadow:0 40px 70px -30px rgba(20,18,16,.45)!important}

/* ---------- SCROLL REVEAL (added by refine.js) ---------- */
.rf-reveal{opacity:0;transform:translateY(30px);transition:opacity .9s var(--rf-ease),transform .9s var(--rf-ease)}
.rf-reveal.rf-in{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  *{animation-duration:.001s!important}
  .rf-reveal{opacity:1!important;transform:none!important}
  html{scroll-behavior:auto}
}
