/* Canary Web Solution — premium interactive Tilt Cards
 * Intentionally isolated from the base card layout so WordPress/editor content remains unchanged.
 */
.cws-tilt-card {
  --cws-tilt-rx: 0deg;
  --cws-tilt-ry: 0deg;
  --cws-tilt-scale: 1;
  --cws-pointer-x: 50%;
  --cws-pointer-y: 50%;
  --cws-glow-opacity: 0;
  --cws-border-opacity: 0;
  position: relative;
  perspective: 1100px;
  isolation: isolate;
}

/* The existing reveal animation stays on the article; the 3D interaction lives here. */
.cws-tilt-card.include-card,
.cws-tilt-card.service-card {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.cws-tilt-card.service-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.cws-tilt-card__surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background: #fff;
  border: 1px solid var(--line, #dfe4eb);
  will-change: transform;
  transform: perspective(1100px) rotateX(var(--cws-tilt-rx)) rotateY(var(--cws-tilt-ry)) scale(var(--cws-tilt-scale));
  transition:
    transform 480ms cubic-bezier(.18,.8,.22,1),
    box-shadow 420ms cubic-bezier(.18,.8,.22,1),
    border-color 360ms ease;
}

.include-card .cws-tilt-card__surface {
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(7,17,31,.04);
}

.service-card .cws-tilt-card__surface {
  min-height: 320px;
  padding: 30px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 38px rgba(2,6,23,.035);
}

/* Cursor-following illumination. */
.cws-tilt-card__surface::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  pointer-events: none;
  opacity: var(--cws-glow-opacity);
  background:
    radial-gradient(
      360px circle at var(--cws-pointer-x) var(--cws-pointer-y),
      rgba(99,216,255,.13) 0%,
      rgba(0,168,255,.075) 25%,
      rgba(0,102,255,.025) 43%,
      transparent 67%
    );
  transition: opacity 320ms ease;
}

/* Very restrained cursor-local border reflection. */
.cws-tilt-card__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  opacity: var(--cws-border-opacity);
  background: radial-gradient(
    190px circle at var(--cws-pointer-x) var(--cws-pointer-y),
    rgba(99,216,255,.62),
    rgba(0,102,255,.20) 34%,
    transparent 68%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 320ms ease;
}

/* Keep all real card content above the light layer and create restrained depth. */
.cws-tilt-card__surface > * {
  position: relative;
  z-index: 2;
}

.cws-tilt-card__icon,
.cws-tilt-card__title,
.cws-tilt-card__description,
.cws-tilt-card__cta,
.cws-tilt-card .service-top {
  transform-style: preserve-3d;
  transition:
    transform 420ms cubic-bezier(.18,.8,.22,1),
    color 280ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

.cws-tilt-card__icon { transform: translateZ(24px); }
.cws-tilt-card__title { transform: translateZ(15px); }
.cws-tilt-card__description { transform: translateZ(8px); }
.cws-tilt-card__cta { transform: translateZ(12px); }
.cws-tilt-card .service-top { transform: translateZ(18px); }

.cws-tilt-card.is-tilting .cws-tilt-card__surface {
  transition:
    transform 110ms cubic-bezier(.2,.65,.3,1),
    box-shadow 300ms cubic-bezier(.18,.8,.22,1),
    border-color 240ms ease;
}

.cws-tilt-card.is-tilting .cws-tilt-card__surface,
.cws-tilt-card:focus-within .cws-tilt-card__surface {
  border-color: rgba(0,102,255,.20);
  box-shadow:
    0 22px 50px rgba(2,6,23,.10),
    0 10px 34px rgba(0,102,255,.055);
}

.cws-tilt-card.is-tilting .include-icon,
.cws-tilt-card.is-tilting .service-top i {
  transform: translateZ(28px) translateY(-3px) scale(1.055) rotate(1.5deg);
  box-shadow: 0 9px 22px rgba(0,102,255,.09), inset 0 1px 0 rgba(255,255,255,.9);
}

.cws-tilt-card.is-tilting .include-icon svg {
  transform: scale(1.045);
}

.cws-tilt-card.is-tilting .cws-tilt-card__title {
  transform: translateZ(18px) translateY(-1px);
}

.cws-tilt-card.is-tilting .cws-tilt-card__cta {
  color: #075ed8;
}

.cws-tilt-card .cws-tilt-card__cta span {
  display: inline-block;
  transition: transform 320ms cubic-bezier(.18,.8,.22,1);
}

.cws-tilt-card.is-tilting .cws-tilt-card__cta span {
  transform: translate(4px,-4px);
}

/* Keyboard users get the premium highlight without cursor-dependent motion. */
.cws-tilt-card:focus-within {
  --cws-glow-opacity: .65;
  --cws-border-opacity: .65;
}

.cws-tilt-card:focus-within .cws-tilt-card__surface {
  outline: 2px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .cws-tilt-card.is-tilting {
    --cws-glow-opacity: 1;
    --cws-border-opacity: .72;
  }
}

/* Touch devices stay stable; a tiny press response keeps them tactile without faux mouse tilt. */
@media (hover: none), (pointer: coarse) {
  .cws-tilt-card__surface { will-change: auto; }
  .cws-tilt-card:active .cws-tilt-card__surface { transform: scale(.993); }
  .cws-tilt-card__surface::before,
  .cws-tilt-card__surface::after { display: none; }
  .cws-tilt-card__icon,
  .cws-tilt-card__title,
  .cws-tilt-card__description,
  .cws-tilt-card__cta,
  .cws-tilt-card .service-top { transform: none; }
}

@media (max-width: 720px) {
  .include-card .cws-tilt-card__surface { padding: 20px; border-radius: 18px; }
  .service-card .cws-tilt-card__surface { min-height: 250px; padding: 20px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cws-tilt-card,
  .cws-tilt-card__surface,
  .cws-tilt-card__surface::before,
  .cws-tilt-card__surface::after,
  .cws-tilt-card__icon,
  .cws-tilt-card__title,
  .cws-tilt-card__description,
  .cws-tilt-card__cta,
  .cws-tilt-card .service-top,
  .cws-tilt-card .cws-tilt-card__cta span {
    transition: none !important;
    animation: none !important;
  }
  .cws-tilt-card__surface,
  .cws-tilt-card__icon,
  .cws-tilt-card__title,
  .cws-tilt-card__description,
  .cws-tilt-card__cta,
  .cws-tilt-card .service-top {
    transform: none !important;
  }
  .cws-tilt-card__surface::before,
  .cws-tilt-card__surface::after { display: none !important; }
}


/* v1.33 — larger, more polished Services catalogue */
.services-catalog-section {
  padding-bottom: 150px;
}

.container.services-page-grid {
  width: min(calc(100% - 64px), 1480px);
  max-width: none;
  gap: 24px;
}

.services-page-grid .service-card .cws-tilt-card__surface {
  min-height: 410px;
  padding: 38px 38px 34px;
  border-radius: 30px;
  border-color: rgba(7,17,31,.10);
  background: linear-gradient(180deg,#fff 0%,#fff 82%,#fbfcff 100%);
  box-shadow: 0 12px 42px rgba(2,6,23,.045);
}

.services-page-grid .service-top {
  min-height: 58px;
}

.services-page-grid .service-top > span {
  min-width: 42px;
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7,17,31,.08);
  border-radius: 999px;
  background: #f8fafc;
  color: #718096;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.services-page-grid .service-top i {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(145deg,#f4f8ff,#eef4fb);
  border: 1px solid rgba(0,102,255,.07);
  color: #0066ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.services-page-grid .service-top i svg {
  width: 25px;
  height: 25px;
  display: block;
}

.services-page-grid .service-card h2 {
  margin: 72px 0 12px;
  max-width: 92%;
  font-size: clamp(27px,2vw,32px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.services-page-grid .service-card p {
  max-width: 94%;
  color: #657389;
  font-size: 15.5px;
  line-height: 1.65;
}

.services-page-grid .service-card a.cws-tilt-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(7,17,31,.075);
  color: #111827;
  font-size: 13px;
  letter-spacing: -.01em;
}

.services-page-grid .service-card a.cws-tilt-card__cta span {
  float: none;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #f2f6fb;
  color: #0066ff;
  font-size: 16px;
}

.services-page-grid .service-card:hover a.cws-tilt-card__cta,
.services-page-grid .service-card:focus-within a.cws-tilt-card__cta {
  color: #075ed8;
}

@media (max-width: 1180px) {
  .container.services-page-grid {
    width: min(calc(100% - 48px), 980px);
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
  }
  .services-page-grid .service-card .cws-tilt-card__surface {
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .services-catalog-section { padding-bottom: 96px; }
  .container.services-page-grid {
    width: min(calc(100% - 32px), 600px);
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .services-page-grid .service-card .cws-tilt-card__surface {
    min-height: 330px;
    padding: 26px 24px 24px;
    border-radius: 22px;
  }
  .services-page-grid .service-top { min-height: 50px; }
  .services-page-grid .service-top i {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }
  .services-page-grid .service-top i svg { width: 22px; height: 22px; }
  .services-page-grid .service-card h2 {
    margin-top: 48px;
    font-size: 27px;
  }
  .services-page-grid .service-card p {
    max-width: 100%;
    font-size: 14.5px;
  }
}
