/* ==========================================================
   Satva Technology: home page additions
   Only NEW elements live here (hero video, stats band, form notice).
   All existing section styles and animations are untouched.
   ========================================================== */

/* Hero video: behaves exactly like the old hero image (same frame, drift animation, vignette) */
#satva-home-hero-root .cpr-image-frame video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 51% center !important;
  animation: 14s ease-in-out infinite alternate cpr-hero-drift !important;
  transform: scale(1.02) !important;
}
@media (prefers-reduced-motion: reduce) {
  #satva-home-hero-root .cpr-image-frame video { animation: none !important; }
}

/* Stats band: projects delivered and years of experience */
.sv-stats {
  background: #080a10;
  color: #fff;
  padding: 56px 0;
  font-family: inherit;
}
.sv-stats .site-shell { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
/* one row, however many stats are published (admin -> Home -> Stats) */
.sv-stats__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 24px;
}
/* ".sv-stats .sv-stat" (not just ".sv-stat") so the home page's reset rule
   (.satva-home-v2-shell * { padding: 0 } in css/vendor/home-hero.css) cannot remove the spacing */
.sv-stats .sv-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 12px 8px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.sv-stats.is-visible .sv-stat { opacity: 1; transform: none; }
.sv-stats.is-visible .sv-stat:nth-child(2) { transition-delay: 0.12s; }
.sv-stats.is-visible .sv-stat:nth-child(3) { transition-delay: 0.24s; }
.sv-stats.is-visible .sv-stat:nth-child(4) { transition-delay: 0.36s; }
.sv-stat__num {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #8cf5c8;
}
.sv-stat__label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
@media (max-width: 900px) {
  .sv-stats__grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
}
@media (max-width: 640px) {
  .sv-stats { padding: 40px 0; }
  .sv-stat__num { font-size: 40px; }
  .sv-stats .sv-stat { padding-left: 18px; }
}
@media (max-width: 380px) {
  .sv-stats__grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sv-stats .sv-stat { opacity: 1; transform: none; transition: none; }
}
/* without JS the numbers are simply visible */
.no-js .sv-stats .sv-stat { opacity: 1; transform: none; }

/* Quote form: thank-you / error message and anchor offset below the sticky header */
#quote { scroll-margin-top: 90px; }
.sv-notice {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.sv-notice--ok { background: rgba(15, 79, 131, 0.14); border: 1px solid rgba(15, 79, 131, 0.5); color: #bfdbfe; }
.sv-notice--err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.5); color: #fecaca; }

/* ---------- Capabilities line (moved from the hero to sit under "About Satva Technology") ---------- */
.sv-marquee { overflow: hidden; background: #0f4f83; color: #fff; width: 100%; }
.sv-marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; min-height: 54px; padding: 0 24px; font: 650 13px/1 var(--sv-font, "Poppins", sans-serif); text-transform: uppercase; letter-spacing: 0.12em; animation: sv-marquee 34s linear infinite; }
.sv-marquee__track i { width: 7px; height: 7px; border-radius: 50%; background: #93c5fd; flex-shrink: 0; }
.sv-marquee__track span { white-space: nowrap; }
@keyframes sv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sv-marquee__track { animation: none; } }
