/* ============================================================
   11 · ZAUPANJE — section styles (cream #F4EDE0)
   Scoped under #zaupanje → collision-safe next to legacy components.css
   during integration. Local token fallbacks; a global tokens file may
   override the --al-* custom properties.
   ============================================================ */

#zaupanje {
  /* local design tokens (design handoff canon) */
  --al-navy: #0B1929;
  --al-cream: #F4EDE0;
  --al-cream-2: #EFE7D8;
  --al-brass: #B8935A;
  --al-graphite: #2C3440;
  --al-sage: #7A8B5C;
  --al-amber: #C47C2F;
  --al-hairline: rgba(184, 147, 90, 0.5);

  background: var(--al-cream);
  color: var(--al-navy);
  scroll-margin-top: 62px;
}

#zaupanje .al-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 56px);
}

#zaupanje .al-eyebrow {
  margin: 0 0 12px;
  font: 600 12px/1.4 'Inter', system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--al-brass);
}

#zaupanje h2 {
  margin: 0 0 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 20ch;
  color: var(--al-navy);
  text-wrap: balance;
}

#zaupanje .al-lead {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--al-graphite);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---- animated counters ---- */
#zaupanje .al-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: clamp(36px, 4.5vw, 52px) 0;
}
#zaupanje .al-stat {
  margin: 0;
  border-top: 2px solid var(--al-brass);
  padding-top: 16px;
}
#zaupanje .al-stat-num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
  color: var(--al-navy);
  font-variant-numeric: tabular-nums; /* less jitter while counting */
}
#zaupanje .al-stat-label {
  display: block;
  margin-top: 8px;
  font: 500 14px/1.45 'Inter', system-ui, sans-serif;
  color: var(--al-graphite);
}

/* ---- timeline ---- */
#zaupanje .al-tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0 18px;
}
#zaupanje .al-tl-item {
  position: relative;
  border-top: 1px solid var(--al-hairline);
  padding: 20px 12px 0 0;
}
#zaupanje .al-tl-dot {
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--al-brass);
}
/* LAST dot: sage outline on cream (design canon) */
#zaupanje .al-tl-item:last-child .al-tl-dot {
  background: var(--al-cream);
  border: 1.5px solid var(--al-sage);
}
#zaupanje .al-tl-year {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--al-brass);
}
#zaupanje .al-tl-item:last-child .al-tl-year { color: var(--al-sage); }
#zaupanje .al-tl-text {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--al-graphite);
  max-width: 34ch;
}

/* TODO flag — unmissable in review; drops away once data-todo is removed.
   Kept AFTER the :last-child year rule on purpose (equal specificity, source
   order wins) so even the last item shows amber while unconfirmed. */
#zaupanje .al-tl-item[data-todo="potrdi-letnico"] .al-tl-year {
  display: inline-block;
  font: 600 11px/1.4 'Inter', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--al-amber);
  outline: 1px dashed var(--al-amber);
  outline-offset: 3px;
  padding: 3px 5px;
  margin: 2px 0 2px 2px;
}
#zaupanje .al-tl-note {
  margin: 16px 0 clamp(36px, 4.5vw, 52px);
  font-size: 12px;
  font-style: italic;
  color: #8a7a5e;
}
#zaupanje .al-tl-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
  font-size: 11px;
}

/* ---- 2 cards ---- */
#zaupanje .al-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
#zaupanje .al-card {
  background: var(--al-cream-2);
  border-radius: 2px;
  padding: 26px;
}
#zaupanje .al-card h3 {
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--al-navy);
  text-wrap: balance;
}
#zaupanje .al-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--al-graphite);
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---- scroll reveal (progressive; identical block ships with other sections) ---- */
@keyframes al-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  #zaupanje[data-reveal] {
    animation: al-fade-up 0.55s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #zaupanje[data-reveal] { animation: none; }
}
