/* ============================================================================
   securytik.com — marketing touch  (2026-05-21)
   ----------------------------------------------------------------------------
   Scoped polish layer for all securytik.com marketing pages. Loaded by
   `_marketing_base.html` so it applies to every securytik_web page — no other
   service's templates include this file, so SAMM / auth / admin are untouched.

   To revert everything, run:
       bash /opt/securytik/.design-touch-backup/RESTORE.sh
   ============================================================================ */

/* ── Trust strip (home page) ─────────────────────────────────────────────────
   A quiet credibility band between the hero and the service grid. Hairline
   dividers are the 1px grid gap showing the wrap colour through — so they
   stay correct at 4 / 2 / 1 columns with no per-edge border bookkeeping. */
.trust-strip-wrap {
  max-width: 1180px;
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
}
.trust-item__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
}
.trust-item__icon svg { width: 19px; height: 19px; }
.trust-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.trust-item__lead {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.trust-item__sub {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.4;
}

@media (max-width: 860px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip-wrap { margin-top: -16px; }
}
@media (max-width: 480px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* ── Service cards — accent wipe on hover ───────────────────────────────────
   A 3px primary→accent line wipes in from the left on hover. `.svc-card` is
   already position:relative / overflow:hidden, so the bar clips to the card's
   rounded top corners. transform:scaleX keeps it GPU-composited. */
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-card:hover::before { transform: scaleX(1); }

/* ── Detail feature cards (services / products pages) ────────────────────── */
.deep-feature {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.deep-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.deep-feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow);
}
.deep-feature:hover::before { transform: scaleX(1); }

/* ── "Why SecuryTik" reasons — match the card hover affordance ───────────── */
.reason {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.reason:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow);
}

/* ── Partner / nav tags — gentle interactive feedback ───────────────────── */
.partners__tag {
  transition: transform 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, background 0.18s ease;
}
.partners__tag:hover {
  transform: translateY(-1px);
  color: var(--fg);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

/* ── Reduced motion — keep state changes, drop the movement ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .svc-card::before,
  .deep-feature,
  .deep-feature::before,
  .reason,
  .partners__tag { transition: none; }
  .deep-feature:hover,
  .reason:hover,
  .partners__tag:hover { transform: none; }
  .svc-card:hover::before,
  .deep-feature:hover::before { transform: scaleX(1); }
}

/* ── RTL: flip the wipe origin so the accent bar grows from the start edge ── */
[dir="rtl"] .svc-card::before,
[dir="rtl"] .deep-feature::before { transform-origin: right; }
