/* ============================================================================
   samm.securytik.com — marketing touch  (2026-05-21)
   ----------------------------------------------------------------------------
   Scoped polish layer for all samm.securytik.com marketing pages. Loaded by
   `services/samm_web/templates/_marketing_base.html` so it applies to every
   SAMM marketing page only — securytik.com / auth / admin are untouched.

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

/* ── Trust strip (home page) ─────────────────────────────────────────────────
   Four SAMM product value props right under the hero, before the tech stats.
   Same hairline-divider gap technique as securytik.com's trust strip. */
.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; }
}

/* ── Stat cards — hover lift with primary glow (home page) ──────────────────
   Stats use a glow (not an accent bar) to feel distinct from the card
   components that use the wipe pattern. */
.stat {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 22%, transparent);
}

/* ── Service cards — accent wipe on hover (home page svc-grid) ──────────────
   position:relative / overflow:hidden already set by ecosystem.css. */
.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 — hover lift + accent wipe (features page) ─────── */
.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); }

/* ── Pricing tiles (feature-grid) — hover lift + accent wipe ────────────────
   `.feature` needs position+overflow to clip the accent bar. */
.feature {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.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);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: var(--shadow);
}
.feature:hover::before { transform: scaleX(1); }

/* ── Anchor nav tags — gentle interactive feedback (features page) ─────────  */
.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) {
  .stat,
  .svc-card::before,
  .deep-feature,
  .deep-feature::before,
  .feature,
  .feature::before,
  .partners__tag { transition: none; }
  .stat:hover,
  .deep-feature:hover,
  .feature:hover,
  .partners__tag:hover { transform: none; }
  .svc-card:hover::before,
  .deep-feature:hover::before,
  .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,
[dir="rtl"] .feature::before { transform-origin: right; }
