/* =============================================================
   TRUST SHOWCASE  —  Split: image left / credential panel right
   Light section with dot-grid background decoration.
   Corporate editorial credential grid — no childish boxes.
   ============================================================= */

/* ══════════════════════════════════════════════════════════════
   SECTION DECORATION — dot grid + radial blobs
   ══════════════════════════════════════════════════════════════ */

/* Dot grid */
#guven {
  position: relative;
  overflow: hidden;
}

#guven::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(5, 160, 214, 0.11) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Radial blob — top-right */
#guven::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(5, 160, 214, 0.10) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* All content above decoration */
#guven > .container {
  position: relative;
  z-index: 1;
}

/* ── Outer grid: mobile-first — stacks → 2 cols at 1024px ── */
.trust-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12, 48px);
  align-items: center;
}

/* ══════════════════════════════════════════════════════════════
   VISUAL COLUMN (left)
   ══════════════════════════════════════════════════════════════ */
.trust-showcase__visual {
  position: relative;
  /* Padding creates room for decorative layers extending bottom-left */
  padding-left: 14px;
  padding-bottom: 14px;
}

/* Layer base: same footprint as the image (inset matches image position) */
.trust-showcase__layer {
  position: absolute;
  top: 0;
  left: 14px;   /* align with image left edge */
  right: 0;
  bottom: 14px; /* align with image bottom edge */
  border-radius: var(--radius-2xl);
  pointer-events: none;
}

/* Layer 1 — border-only frame, offset bottom-left */
.trust-showcase__layer--1 {
  transform: translate(-7px, 7px);
  border: 2px solid var(--color-secondary-400, #2D4975);
  opacity: 0.35;
  z-index: 0;
}

/* Layer 2 — filled gradient slab, deeper offset */
.trust-showcase__layer--2 {
  transform: translate(-14px, 14px);
  background: linear-gradient(
    145deg,
    var(--color-secondary-300, #51698D) 0%,
    var(--color-secondary-600, #091831) 100%
  );
  opacity: 0.20;
  z-index: 0;
}

.trust-showcase__img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  position: relative;
  z-index: 1;
  box-shadow:
    0 28px 56px rgba(11, 29, 58, 0.16),
    0 6px 18px rgba(11, 29, 58, 0.09);
}

/* Reveal animation */
.trust-showcase__visual.is-visible {
  animation: trustSlideIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes trustSlideIn {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════════
   CONTENT COLUMN (right)
   ══════════════════════════════════════════════════════════════ */
.trust-showcase__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8, 32px);
}

.trust-showcase__content .section-header {
  text-align: left;
  max-width: 100%;
}

.trust-showcase__content .section-header::before {
  margin-left: 0;
}

/* ══════════════════════════════════════════════════════════════
   CREDENTIAL GRID  —  2×3 corporate editorial layout
   ══════════════════════════════════════════════════════════════ */
.trust-cred-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* CSS counter for ordinal labels */
  counter-reset: cred-counter;
}

/* ── Individual cell ──────────────────────────────────────── */
.trust-cred {
  counter-increment: cred-counter;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  padding: var(--space-4, 16px) var(--space-3, 12px);

  /* Internal border grid — top + right rules */
  border-top: 1px solid var(--color-border, #e9ecef);
  border-right: 1px solid var(--color-border, #e9ecef);

  /* Reveal defaults */
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity   0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease;
}

/* Right column: no right border */
.trust-cred:nth-child(even) {
  border-right: none;
}

/* Last row: no bottom overflow */
.trust-cred:nth-last-child(-n+2) {
  border-bottom: 1px solid var(--color-border, #e9ecef);
}

/* Ordinal auto-number top-right corner */
.trust-cred::after {
  content: counter(cred-counter, decimal-leading-zero);
  position: absolute;
  top: var(--space-3, 12px);
  right: var(--space-4, 16px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary, #868e96);
  font-variant-numeric: tabular-nums;
  transition: color 0.22s ease;
}

/* Primary top-edge accent on hover */
.trust-cred::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary-500, #05A0D6);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover */
.trust-cred:hover {
  background: rgba(5, 160, 214, 0.03);
}

.trust-cred:hover::before {
  transform: scaleX(1);
}

.trust-cred:hover::after {
  color: var(--color-primary-500, #05A0D6);
}

.trust-cred.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Icon: square tile ────────────────────────────────────── */
.trust-cred__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md, 8px);
  background: rgba(5, 160, 214, 0.08);
  border: 1px solid rgba(5, 160, 214, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-500, #05A0D6);
  flex-shrink: 0;
  margin-bottom: var(--space-1, 4px);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.trust-cred__icon svg {
  width: 18px;
  height: 18px;
}

.trust-cred:hover .trust-cred__icon {
  background: rgba(5, 160, 214, 0.14);
  border-color: rgba(5, 160, 214, 0.28);
  transform: scale(1.05);
}

/* ── Value ───────────────────────────────────────────────── */
.trust-cred__value {
  display: block;
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 700;
  color: var(--color-text-primary, #212529);
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.22s ease;
  /* Give room for the number badge in top-right */
  padding-right: var(--space-8, 32px);
}

.trust-cred:hover .trust-cred__value {
  color: var(--color-secondary-500, #0B1D3A);
}

/* ── Label ───────────────────────────────────────────────── */
.trust-cred__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-tertiary, #868e96);
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

/* ── Tablet: 768px+ — 3-col cred grid, medium visual ─────── */
@media (min-width: 768px) {
  .trust-showcase__visual {
    padding-left: 24px;
    padding-bottom: 24px;
  }

  .trust-showcase__layer {
    left: 24px;
    bottom: 24px;
  }

  .trust-showcase__layer--1 {
    transform: translate(-12px, 12px);
    opacity: 0.50;
  }

  .trust-showcase__layer--2 {
    transform: translate(-24px, 24px);
    opacity: 0.28;
  }

  .trust-showcase__img {
    height: clamp(280px, 50vw, 380px);
  }

  .trust-cred-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-cred {
    padding: var(--space-5, 20px) var(--space-4, 16px) var(--space-5, 20px);
  }

  /* Adjust borders for 3-col layout */
  .trust-cred:nth-child(even) {
    border-right: 1px solid var(--color-border, #e9ecef);
  }

  .trust-cred:nth-child(3n) {
    border-right: none;
  }

  .trust-cred:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .trust-cred:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--color-border, #e9ecef);
  }
}

/* ── Desktop: 1024px+ — 2-col showcase, 2-col cred grid ──── */
@media (min-width: 1024px) {
  .trust-showcase {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }

  .trust-showcase__visual {
    padding-left: 40px;
    padding-bottom: 40px;
  }

  .trust-showcase__layer {
    left: 40px;
    bottom: 40px;
  }

  .trust-showcase__layer--1 {
    transform: translate(-20px, 20px);
  }

  .trust-showcase__layer--2 {
    transform: translate(-40px, 40px);
  }

  .trust-showcase__img {
    height: clamp(440px, 55vw, 620px);
  }

  .trust-cred-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Restore 2-col borders (undo 3-col overrides) */
  .trust-cred:nth-child(3n) {
    border-right: 1px solid var(--color-border, #e9ecef);
  }

  .trust-cred:nth-child(even) {
    border-right: none;
  }

  .trust-cred:nth-last-child(-n+3) {
    border-bottom: none;
  }

  .trust-cred:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--color-border, #e9ecef);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trust-showcase__visual,
  .trust-cred {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}