/* Reaviva: motion enhancement for the published PHP home. */
#page-home { --rv-motion-ease: cubic-bezier(.22, 1, .36, 1); }
/* Never hide a complete section: long sections may exceed the viewport. */
#page-home .v2-reveal { opacity: 1; transform: none; transition: none; }
#page-home .rv-motion-pending { opacity: 0; }
#page-home .rv-motion-visible {
  animation: rv-home-enter 720ms var(--rv-motion-ease) var(--rv-delay, 0ms) both;
}
@keyframes rv-home-enter {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}
#page-home .v2-hero-text > * { animation: rv-home-enter 850ms var(--rv-motion-ease) both; }
#page-home .v2-hero-text > :nth-child(2) { animation-delay: 100ms; }
#page-home .v2-hero-text > :nth-child(3) { animation-delay: 200ms; }
#page-home .v2-hero-text > :nth-child(4) { animation-delay: 300ms; }
#page-home .v2-hero-bg-video { transform: translateY(var(--rv-hero-shift, 0px)) scale(1.07); }
#page-home .v2-stat { position: relative; }
#page-home .v2-stat::after {
  content: ""; position: absolute; bottom: 0; left: 24%; width: 52%; height: 2px;
  background: var(--v2-amber, #f5be1a); transform: scaleX(.35);
  transition: transform 450ms var(--rv-motion-ease);
}
#page-home .v2-cat-card {
  transition: transform 450ms var(--rv-motion-ease), box-shadow 350ms ease, border-color 350ms ease;
}
#page-home .v2-cat-card-slide > img { transition: transform 650ms var(--rv-motion-ease); }
#page-home .v2-cat-card-info { position: relative; padding-right: 5.6rem; }
#page-home .v2-cat-card-info::after {
  content: "↗"; position: absolute; right: 1.6rem; top: 50%;
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem;
  margin-top: -1.6rem; border-radius: 50%; background: #e8f6f5; color: #128a84;
  font-size: 1.8rem; transition: transform 350ms var(--rv-motion-ease), background 250ms ease, color 250ms ease;
}
#page-home .v2-btn, #page-home .footer-btn {
  transition: transform 250ms var(--rv-motion-ease), box-shadow 250ms ease, background 250ms ease;
}
#page-home a:focus-visible, #page-home button:focus-visible {
  outline: 3px solid #f5be1a; outline-offset: 4px;
}
#page-home .v2-cat-card:focus-within .v2-cat-card-slide { animation-play-state: paused; }
#page-home .v2-process-timeline::before { background: #e4e8ee; opacity: 1; }
#page-home .v2-process-timeline::after {
  content: ""; position: absolute; top: 3.2rem; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, #17a39c, #f5be1a); transform-origin: left;
  transform: scaleX(var(--rv-journey-progress, 0)); transition: transform 800ms var(--rv-motion-ease);
}
#page-home .v2-step.rv-step-active .v2-step-num {
  background: #17a39c; color: white; border-color: #17a39c;
  box-shadow: 0 0 0 7px #e8f6f5, 0 8px 24px -12px #128a84;
}
.rv-motion-controls {
  position: absolute; top: 16px; right: 20px; z-index: 4;
  display: flex; gap: 8px;
}
.rv-motion-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border: 1px solid #ffffff66;
  border-radius: 999px; background: #1e2b38cc; color: white;
  font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.2;
  cursor: pointer; backdrop-filter: blur(10px);
}
.rv-motion-toggle:hover { background: #1e2b38; }
.rv-motion-toggle[hidden] { display: none; }
.rv-discover {
  position: absolute; bottom: 16px; left: 50%; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  padding: 6px 16px; border-radius: 999px; background: #1e2b38b3;
  color: white !important; font-size: 12px; font-weight: 600; text-decoration: none;
  white-space: nowrap;
}
.rv-discover span { animation: rv-home-nudge 1.6s ease-in-out 3; }
@keyframes rv-home-nudge { 50% { transform: translateY(4px); } }
#page-home .rv-testimonial-rail {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; gap: 2rem;
  scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 8px 4px 20px;
  scrollbar-width: thin; scrollbar-color: #f5be1a #ffffff22;
}
#page-home .rv-testimonial-rail > .v2-testi-card {
  flex: 0 0 calc((100% - 4rem) / 3); min-width: 0; scroll-snap-align: start;
}
.rv-testimonial-controls { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.rv-testimonial-controls[hidden] { display: none; }
.rv-testimonial-controls button {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid #ffffff55; background: transparent; color: white; font-size: 24px; cursor: pointer;
}
.rv-testimonial-controls button:hover:not(:disabled) { background: #17a39c; }
.rv-testimonial-controls button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  #page-home .v2-stat:hover::after { transform: scaleX(1); }
  #page-home .v2-cat-card:hover { transform: translateY(-7px); box-shadow: 0 24px 42px -22px #128a8499; }
  #page-home .v2-cat-card:hover .v2-cat-card-slide > img { transform: scale(1.045); }
  #page-home .v2-cat-card:hover .v2-cat-card-info::after { transform: rotate(45deg); background: #17a39c; color: white; }
  #page-home .v2-btn:hover, #page-home .footer-btn:hover { transform: translateY(-3px); }
}
@media (max-width: 1100px) {
  #page-home .v2-process-timeline::after { display: none; }
  #page-home .v2-step { text-align: left; padding: 0 0 0 9rem; min-height: 9rem; }
  #page-home .v2-step-num { position: absolute; top: 0; left: 0; }
  #page-home .v2-step:not(:last-child)::after {
    content: ""; position: absolute; top: 7.2rem; bottom: -1.6rem; left: 3.1rem; width: 2px;
    background: #e4e8ee; transition: background 500ms ease;
  }
  #page-home .v2-step.rv-step-active::after { background: #17a39c; }
  #page-home .rv-testimonial-rail > .v2-testi-card { flex-basis: calc((100% - 2rem) / 2); }
}
@media (max-width: 768px) {
  #page-home .v2-hero--video { min-height: 440px !important; }
  #page-home .v2-hero-bg-video { transform: none; }
  #page-home .v2-hero-text--center { padding-top: 58px !important; padding-bottom: 64px !important; }
  #page-home .v2-hero-text--center .v2-eyebrow { font-size: 11px !important; line-height: 1.4 !important; margin-bottom: 18px !important; }
  #page-home .v2-hero-text--center h1 { font-size: clamp(25px, 7vw, 34px) !important; line-height: 1.15 !important; }
  #page-home .v2-hero-text--center .v2-lede { font-size: 15px !important; line-height: 1.5 !important; margin-top: 16px !important; }
  #page-home .v2-hero-actions { margin-top: 20px; }
  #page-home .v2-hero-actions .v2-btn { font-size: 14px !important; min-height: 44px; padding: 12px 22px !important; }
  #page-home .v2-process-header h2 { font-size: 24px !important; line-height: 1.25 !important; }
  #page-home .v2-process-header .v2-eyebrow { font-size: 11px !important; }
  #page-home .v2-step { padding-left: 72px; min-height: 110px; }
  #page-home .v2-step-num { width: 48px; height: 48px; font-size: 18px; }
  #page-home .v2-step h3 { font-size: 18px !important; text-align: left !important; }
  #page-home .v2-step p { font-size: 14px !important; line-height: 1.6 !important; text-align: left !important; }
  #page-home .v2-step:not(:last-child)::after { top: 58px; left: 23px; bottom: -8px; }
  #page-home .rv-motion-visible { animation-duration: 480ms; animation-delay: 0ms; }
  #page-home .rv-testimonial-rail > .v2-testi-card { flex-basis: 90%; }
  .rv-motion-controls { top: 28px; right: 12px; }
  .rv-motion-toggle { padding: 8px 12px; }
  .rv-discover { bottom: 10px; }
}
/* The visitor can pause all decorative motion, including the legacy carousels. */
#page-home.rv-motion-paused *, #page-home.rv-motion-paused *::before, #page-home.rv-motion-paused *::after {
  animation-play-state: paused !important; transition: none !important;
}
#page-home.rv-motion-paused .rv-motion-pending { opacity: 1; }
#page-home.rv-motion-paused .v2-cat-card-slide { opacity: 0 !important; }
#page-home.rv-motion-paused .v2-cat-card-slide.rv-still-frame { opacity: 1 !important; }
#page-home.rv-motion-paused .rv-motion-visible,
#page-home.rv-motion-paused .v2-hero-text > * { animation: none !important; opacity: 1; translate: none; }
#page-home.rv-motion-paused .v2-hero-bg-video,
#page-home.rv-motion-paused .v2-cat-card:hover,
#page-home.rv-motion-paused .v2-cat-card-slide > img,
#page-home.rv-motion-paused .v2-cat-card-info::after,
#page-home.rv-motion-paused .v2-btn:hover { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  #page-home *, #page-home *::before, #page-home *::after { animation: none !important; transition: none !important; }
  #page-home .rv-motion-pending { opacity: 1; }
  #page-home .v2-hero-bg-video, #page-home .v2-cat-card:hover,
  #page-home .v2-cat-card-slide > img, #page-home .v2-cat-card-info::after,
  #page-home .v2-btn:hover { transform: none !important; }
  #page-home .v2-cat-card-slide { opacity: 0 !important; }
  #page-home .v2-cat-card-slide:first-child { opacity: 1 !important; }
}
@media print {
  #page-home .rv-motion-pending { opacity: 1; }
  #page-home * { animation: none !important; }
  .rv-motion-controls, .rv-discover, .rv-testimonial-controls { display: none; }
}
