/* =====================================================================
   Veyon Digital — Home: "Our Approach" + "Industries We Serve"
   Scoped to .vy-appr and .vy-ind only. Loaded from pages/home.php.
   ===================================================================== */

.vy-appr,
.vy-ind {
  --vy-blue: #0878E8;
  --vy-blue-2: #1E5BFF;
  --vy-navy: #071B41;
  /* --vy-navy: #1E5BFF; */
  --vy-text: #45566E;
  --vy-line: rgba(8, 120, 232, .14);
  --vy-shadow: 0 10px 28px rgba(18, 74, 150, .08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.vy-appr__bg,
.vy-ind__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.vy-appr__inner,
.vy-ind__inner {
  position: relative;
}

/* ---------- Shared heading pieces ---------- */
.vy-appr__title,
.vy-ind__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--vy-navy);
  letter-spacing: -.02em;
  line-height: 1.12;
}

.vy-appr__title span,
.vy-ind__title span {
  background: linear-gradient(90deg, var(--vy-blue-2), var(--vy-blue) 55%, #12A3F0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   OUR APPROACH
   ===================================================================== */
.vy-appr {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FF 55%, #EDF5FF 100%);
}

.vy-appr__dots {
  position: absolute;
  width: 240px;
  height: 260px;
  background-image: radial-gradient(rgba(8, 120, 232, .28) 1.2px, transparent 1.4px);
  background-size: 12px 12px;
  opacity: .55;
}

.vy-appr__dots--l {
  left: -40px;
  top: 42%;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}

.vy-appr__dots--r {
  right: -30px;
  top: 40px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}

.vy-appr__wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 58%;
}

.container.vy-appr__inner {
  max-width: 1360px;
}

.vy-appr__head {
  max-width: 980px;
  margin: 0 auto 30px;
  text-align: center;
}

.vy-appr__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--vy-blue);
}

.vy-appr__label::before,
.vy-appr__label::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.vy-appr__title {
  font-size: clamp(28px, 3.6vw, 46px);
}

.vy-appr__intro {
  max-width: 600px;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--vy-text);
}

/* ---------- Step cards ---------- */
.vy-appr__steps {
  --gap: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vy-appr__step {
  --c1: #3C9BFF;
  --c2: #0A63E0;
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin-top: 44px;
  padding: 58px 20px 24px;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--vy-line);
  border-radius: 16px;
  box-shadow: var(--vy-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.vy-appr__step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18, 74, 150, .13);
}

.vy-appr__step--2 { --c1: #2FD3E0; --c2: #0B94BF; }
.vy-appr__step--3 { --c1: #B39BFF; --c2: #6C47EA; }
.vy-appr__step--4 { --c1: #4A95FF; --c2: #1552E0; }
.vy-appr__step--5 { --c1: #34D39A; --c2: #0E9467; }

/* chevron between cards */
.vy-appr__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--gap) / -2 - 5px);
  width: 11px;
  height: 11px;
  border-top: 2.5px solid var(--vy-blue);
  border-right: 2.5px solid var(--vy-blue);
  border-radius: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.vy-appr__num {
  position: absolute;
  top: -8px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--vy-blue);
  background: #EEF5FF;
  border: 1px solid rgba(8, 120, 232, .12);
  border-radius: 50%;
}

.vy-appr__icon {
  position: absolute;
  top: -44px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2));
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(18, 74, 150, .2);
  transform: translateX(-50%);
}

.vy-appr__step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vy-navy);
}

.vy-appr__bar {
  display: block;
  width: 36px;
  height: 3px;
  margin: 12px auto 14px;
  background: var(--c2);
  border-radius: 3px;
}

.vy-appr__step-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--vy-text);
}

/* ---------- Stats row ---------- */
.vy-appr__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1120px;
  margin: 26px auto 0;
  padding: 22px 12px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--vy-line);
  border-radius: 16px;
  box-shadow: var(--vy-shadow);
}

.vy-appr__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
  padding: 4px 28px 4px 118px;
}

.vy-appr__stat + .vy-appr__stat {
  border-left: 1px solid rgba(8, 120, 232, .16);
}

.vy-appr__stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.9vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--vy-blue);
  letter-spacing: -.01em;
  white-space: nowrap;
}

.vy-appr__stat-icon {
  position: absolute;
  top: 50%;
  left: 36px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--vy-blue);
  background: #EEF5FF;
  border-radius: 50%;
  transform: translateY(-50%);
}

.vy-appr__stat-text {
  margin: 6px 0 0;
  max-width: 220px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--vy-text);
}

/* =====================================================================
   INDUSTRIES WE SERVE
   ===================================================================== */
.vy-ind {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, #EAF3FF 0%, #F4F9FF 45%, #E7F1FF 100%);
}

.vy-ind__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vy-ind__skyline {
  position: absolute;
  top: 0;
  right: 0;
  width: min(38vw, 520px);
  height: auto;
  opacity: .8;
}

.container.vy-ind__inner {
  max-width: 1360px;
}

.vy-ind__head {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
}

.vy-ind__label {
  display: inline-block;
  margin: 0 0 16px;
  padding-bottom: 12px;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .32em;
  margin-right: -.32em;
  text-transform: uppercase;
  color: var(--vy-navy);
}

.vy-ind__label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 70px;
  height: 2px;
  background: var(--vy-blue);
  border-radius: 2px;
  transform: translateX(calc(-50% - .16em));
}

.vy-ind__title {
  font-size: clamp(30px, 4vw, 52px);
}

.vy-ind__intro {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: #5A6B82;
}

.vy-ind__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vy-ind__card {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 66px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(8, 120, 232, .12);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(18, 74, 150, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vy-ind__card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 120, 232, .3);
  box-shadow: 0 12px 26px rgba(18, 74, 150, .12);
}

.vy-ind__icon {
  position: relative;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 25px;
  color: var(--vy-blue);
  background: #EAF3FF;
  border-radius: 50%;
}

/* vertical divider between icon and text */
.vy-ind__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 1px;
  height: 26px;
  background: rgba(8, 120, 232, .18);
  transform: translateY(-50%);
}

.vy-ind__name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vy-navy);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1279px) {
  .vy-appr__steps { --gap: 26px; }
  .vy-appr__step { padding: 56px 14px 22px; }
  .vy-appr__step-title { font-size: 16.5px; }
  .vy-appr__step-text { font-size: 14px; }
  .vy-appr__num { width: 36px; height: 36px; font-size: 15px; left: 8px; }
  .vy-appr__stat { padding-left: 104px; }
  .vy-appr__stat-icon { left: 28px; }
  .vy-ind__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
  .vy-appr__step { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }
  .vy-appr__step::after { display: none; }
  .vy-ind__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .vy-ind__skyline { width: 40vw; opacity: .55; }
  .vy-appr__stat { padding: 4px 16px 4px 88px; }
  .vy-appr__stat-icon { left: 16px; width: 56px; height: 56px; }
}

@media (max-width: 899px) {
  .vy-appr__stats {
    grid-template-columns: 1fr;
    max-width: 420px;
    padding: 8px 16px;
  }
  .vy-appr__stat { padding: 18px 8px 18px 84px; }
  .vy-appr__stat-icon { left: 8px; }
  .vy-appr__stat + .vy-appr__stat {
    border-left: 0;
    border-top: 1px solid rgba(8, 120, 232, .14);
  }
  .vy-appr__stat-text { max-width: none; }
  .vy-ind__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .vy-appr { padding: 52px 0 56px; }
  .vy-ind { padding: 52px 0 60px; }
  .vy-appr__intro { font-size: 16px; }
  .vy-ind__intro { font-size: 16px; }
  .vy-appr__steps { --gap: 18px; }
  .vy-appr__step { flex: 0 0 calc((100% - var(--gap)) / 2); }
  .vy-ind__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vy-ind__skyline { width: 70vw; opacity: .35; }
  .vy-appr__dots { display: none; }
}

@media (max-width: 519px) {
  .vy-appr__step { flex: 0 0 100%; max-width: 360px; }
  .vy-ind__card { padding: 8px 10px; min-height: 60px; }
  .vy-ind__icon { flex-basis: 34px; width: 34px; height: 34px; margin-right: 10px; }
  .vy-ind__icon .ic { width: 19px; height: 19px; }
  .vy-ind__icon::after { display: none; }
  .vy-ind__name { font-size: 12.5px; }
  .vy-ind__label { letter-spacing: .24em; margin-right: -.24em; }
}

@media (max-width: 359px) {
  .vy-ind__grid { grid-template-columns: 1fr; }
  .vy-ind__icon { margin-right: 21px; }
  .vy-ind__icon::after { display: block; right: -11px; }
}

@media (prefers-reduced-motion: reduce) {
  .vy-appr__step,
  .vy-ind__card { transition: none; }
  .vy-appr__step:hover,
  .vy-ind__card:hover { transform: none; }
}

/* =====================================================================
   INDUSTRIES WE SERVE — infinite horizontal marquee
   Replaces the static .vy-ind__grid layout. Card styles above are reused
   unchanged; only the row/track/group structure and movement are new.

   Seamless loop: each track holds two identical groups. Every group has
   the inter-card gap applied as padding-right as well, so one group's
   width = N × (card + gap). The track is exactly 2 × group width, so
   translating it by -50% moves it by precisely one group — no jump.
   ===================================================================== */
.vy-ind {
  --vy-ind-card-w: 232px;
  --vy-ind-gap: 12px;
  --vy-ind-speed: 35s;
  --vy-ind-speed-rev: 40s;
}

.vy-ind__rows {
  display: flex;
  flex-direction: column;
  /* cancel the outer row padding so section spacing stays as before */
  margin: -6px 0 -16px;
}

.vy-ind__row {
  position: relative;
  overflow: hidden;
  /* room so the card hover lift and shadow are not clipped */
  padding: 6px 0 16px;
  /* soft fade at the row edges so cards glide in/out instead of hard-cutting */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

/* rows overlap by their padding so the visible row gap equals --vy-ind-gap */
.vy-ind__row + .vy-ind__row {
  margin-top: calc(var(--vy-ind-gap) - 22px);
}

.vy-ind__track {
  display: flex;
  width: max-content;
  animation: vyIndustryScroll var(--vy-ind-speed) linear infinite;
  will-change: transform;
}

.vy-ind__row--rev .vy-ind__track {
  animation-name: vyIndustryScrollReverse;
  animation-duration: var(--vy-ind-speed-rev);
}

/* pause the hovered row only; card hover effect still applies */
.vy-ind__row:hover .vy-ind__track {
  animation-play-state: paused;
}

.vy-ind__group {
  display: flex;
  flex: 0 0 auto;
  gap: var(--vy-ind-gap);
  margin: 0;
  padding: 0 var(--vy-ind-gap) 0 0;
  list-style: none;
}

.vy-ind__group .vy-ind__card {
  flex: 0 0 var(--vy-ind-card-w);
  width: var(--vy-ind-card-w);
}

@keyframes vyIndustryScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes vyIndustryScrollReverse {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@media (max-width: 1099px) {
  .vy-ind { --vy-ind-card-w: 216px; }
}

@media (max-width: 767px) {
  .vy-ind { --vy-ind-card-w: 196px; --vy-ind-gap: 10px; }
  /* let rows run edge to edge on small screens instead of clipping at the gutter */
  .vy-ind__rows { margin-left: calc(var(--gutter, 16px) * -1); margin-right: calc(var(--gutter, 16px) * -1); }
}

@media (max-width: 519px) {
  .vy-ind { --vy-ind-card-w: 192px; }
}

@media (max-width: 359px) {
  .vy-ind { --vy-ind-card-w: 200px; }
}

/* Reduced motion: no auto-scroll; show every industry once in a static,
   centred wrap (same cards, no duplicates). */
@media (prefers-reduced-motion: reduce) {
  .vy-ind__rows {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--vy-ind-gap);
    margin: 0;
  }
  .vy-ind__row,
  .vy-ind__track,
  .vy-ind__group { display: contents; }
  .vy-ind__track { animation: none; }
  .vy-ind__group[aria-hidden="true"] { display: none; }
}
