/* ════════════════════════════════════════════════════════════════════════
   Intmedius — prezentacioni sajt
   Vizuelni jezik: „medicinski žurnal" — papir, tanke linije, numerisane
   sekcije i slike (sl. 01…), mono anotacije, EKG motiv.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --paper:      #F5F2EA;
  --paper-2:    #FCFBF7;
  --ink:        #1E2B27;
  --ink-2:      #55635D;
  --ink-3:      #8B958F;
  --line:       #D9D3C4;
  --line-soft:  #E6E1D4;
  --teal:       #1D5C5C;
  --teal-deep:  #143E3E;
  --red:        #B5432F;
  --red-soft:   #D98D7E;

  --font-body:    "Archivo", sans-serif;
  --font-display: "Newsreader", serif;
  --font-mono:    "IBM Plex Mono", monospace;

  --w: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--paper); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ── Tipografija ─────────────────────────────────────────────────────── */

h1, h2, .claim-big, .t-item .yr, .num .val {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(40px, 5.6vw, 74px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}

.lede {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--ink-2);
  max-width: 58ch;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.kicker .plus { color: var(--red); font-weight: 600; }
.kicker.light { color: var(--red-soft); }
.kicker.light .plus { color: var(--red-soft); }

/* ── Dugmad ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--teal-deep); color: var(--paper); }
.btn-solid:hover { background: var(--teal); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--teal-deep); }
.btn-light:hover { background: #fff; }
.btn-line-light {
  background: transparent; color: var(--paper);
  border-color: rgba(245, 242, 234, 0.45);
}
.btn-line-light:hover { border-color: var(--paper); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ── Logo (beli PNG → maska u boji) ──────────────────────────────────── */

.logo-mask {
  display: inline-block;
  background: var(--teal-deep);
  -webkit-mask: url("assets/intmedius-logo.png") no-repeat left center / contain;
          mask: url("assets/intmedius-logo.png") no-repeat left center / contain;
  width: 148px; height: 26px;
}

/* ── Navigacija ──────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav.scrolled { background: rgba(245, 242, 234, 0.96); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 66px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; transition: color .15s;
  display: inline-flex; align-items: baseline; gap: 7px;
}
.nav-links a i {
  font-family: var(--font-mono); font-style: normal;
  font-size: 10.5px; color: var(--red);
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 13.5px; }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero { padding: 150px 0 0; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto;
  height: 560px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
          mask-image: linear-gradient(#000 40%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.55fr 1fr;
  gap: 64px; align-items: end;
}
.hero-main h1 { margin: 22px 0 0; max-width: 15ch; }
.hero-main .lede { margin: 20px 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.ekg {
  display: block; width: 260px; height: 34px;
  color: var(--red); margin-top: 26px;
}
.ekg path {
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: ekg-draw 1.8s cubic-bezier(.4, 0, .3, 1) .7s forwards;
}
@keyframes ekg-draw { to { stroke-dashoffset: 0; } }

/* — bočni „karton" sa osnovnim podacima — */
.hero-chart {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 24px 26px 22px;
}
.chart-head {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.chart-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 0;
  font-size: 14px;
}
.chart-row dt { color: var(--ink-2); flex-shrink: 0; }
.chart-row::after {
  content: "";
  flex: 1; min-width: 24px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
  order: 1;
}
.chart-row dd {
  order: 2;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500;
  color: var(--ink); text-align: right; flex-shrink: 0;
}
.chart-note {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); font-style: italic;
  font-family: var(--font-display);
}

/* — slike (figure) u stilu žurnala — */
.fig {
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.fig figcaption {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap; overflow: hidden;
}
.fig .fig-no { color: var(--red); font-weight: 600; flex-shrink: 0; }
.fig .fig-title { overflow: hidden; text-overflow: ellipsis; }
.fig .fig-url { margin-left: auto; color: var(--ink-3); flex-shrink: 0; }
.fig img { width: 100%; }

.hero .fig { margin: 72px 0 0; border-bottom: none; }

/* ── Traka poverenja ─────────────────────────────────────────────────── */

.trust {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: 26px 0;
}
.trust-inner { display: flex; align-items: baseline; gap: 40px; }
.trust-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  flex-shrink: 0;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 0;
  margin-left: auto;
  font-family: var(--font-display); font-size: 18px; font-style: italic;
  color: var(--ink-2);
}
.trust-row span { display: inline-flex; align-items: baseline; }
.trust-row span + span::before {
  content: "+";
  font-family: var(--font-mono); font-style: normal; font-size: 12px;
  color: var(--red); margin: 0 18px;
}

/* ── Sekcije ─────────────────────────────────────────────────────────── */

.sect { padding: 110px 0; }
.sect-alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sect-head {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 32px; align-items: start;
  padding-top: 26px; margin-bottom: 64px;
  border-top: 1px solid var(--ink);
}
.sect-no {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--red); letter-spacing: 0.1em;
}
.sect-no::after { content: " /"; color: var(--ink-3); }
.sect-head h2 { margin: 14px 0 16px; max-width: 22ch; }

/* — knjiga ušteda (numerisane ćelije) — */
.ledger {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cell {
  background: var(--paper-2);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .2s ease;
}
.cell:hover { background: #fff; }
.cell .idx {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--ink-3); letter-spacing: 0.1em;
}
.cell:hover .idx { color: var(--red); }
.cell h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 23px; line-height: 1.2; letter-spacing: -0.01em;
}
.cell p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.cell .note {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--red);
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}

/* — velika izjava o uštedi — */
.claim {
  margin-top: 72px;
  padding: 40px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  display: flex; align-items: center; gap: 56px; flex-wrap: wrap;
}
.claim-big {
  font-size: clamp(88px, 11vw, 150px);
  line-height: 0.9;
  color: var(--teal-deep);
  white-space: nowrap;
}
.claim-big span {
  font-size: clamp(22px, 2.6vw, 34px);
  font-style: italic; font-weight: 400; color: var(--ink);
  letter-spacing: 0;
}
.claim p { font-size: 16.5px; max-width: 46ch; color: var(--ink-2); }

/* — naizmenične split sekcije sa snimcima — */
.split {
  display: grid; grid-template-columns: 0.82fr 1.18fr;
  gap: 60px; align-items: center;
}
.split + .split {
  margin-top: 90px; padding-top: 90px;
  border-top: 1px solid var(--line);
}
.split.flip { grid-template-columns: 1.18fr 0.82fr; }
.split.flip .fig { order: -1; }
.split .copy h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(25px, 2.8vw, 34px); line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 16px 0 14px;
}
.split .copy > p { font-size: 15.5px; color: var(--ink-2); }
.split .copy ul { list-style: none; margin-top: 24px; display: grid; gap: 13px; }
.split .copy li {
  display: flex; gap: 14px; font-size: 15px; color: var(--ink-2);
}
.split .copy li b { color: var(--ink); font-weight: 600; }
.split .copy .mark {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  color: var(--red); flex-shrink: 0; line-height: 1.6;
}
.split .margin-note {
  margin-top: 26px; padding: 4px 0 4px 16px;
  border-left: 2px solid var(--red);
  font-size: 13.5px; color: var(--ink-2); max-width: 42ch;
}
.split .margin-note b { color: var(--ink); font-weight: 600; }

/* ── Vremenska linija (30 godina) ────────────────────────────────────── */

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.t-item { border-top: 1px solid var(--ink); padding-top: 20px; position: relative; }
.t-item::before {
  content: "+";
  position: absolute; top: -9px; left: 0;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--paper); padding-right: 8px;
  line-height: 18px;
}
.t-item.now::before, .t-item.now .yr { color: var(--red); }
.t-item .yr { font-size: 44px; color: var(--teal-deep); line-height: 1; }
.t-item b { display: block; font-size: 15px; margin: 12px 0 6px; }
.t-item p { font-size: 14px; color: var(--ink-2); }

/* ── Iskustva ────────────────────────────────────────────────────────── */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); }
.quote { padding: 6px 32px 0; display: flex; flex-direction: column; }
.quote:first-child { padding-left: 0; }
.quote:last-child { padding-right: 0; }
.quote + .quote { border-left: 1px solid var(--line); }
.quote p {
  font-family: var(--font-display); font-style: italic;
  font-size: 19px; line-height: 1.5; color: var(--ink); flex: 1;
}
.quote p::before { content: "„"; color: var(--red); }
.quote p::after { content: "”"; color: var(--red); }
.quote footer { margin-top: 24px; padding-top: 14px; border-top: 1px dashed var(--line); }
.quote footer b { font-size: 14px; display: block; }
.quote footer small {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ── Brojke (zbirni red) ─────────────────────────────────────────────── */

.numbers { padding: 0 0 110px; }
.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
}
.num { padding: 34px 28px 30px; }
.num + .num { border-left: 1px solid var(--line); }
.num .val {
  font-size: clamp(44px, 5vw, 64px); line-height: 1;
  color: var(--teal-deep);
  font-variant-numeric: tabular-nums;
}
.num .val em { font-style: italic; font-weight: 400; color: var(--red); }
.num small {
  display: block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}

/* ── Završni poziv ───────────────────────────────────────────────────── */

.cta {
  background: var(--teal-deep); color: var(--paper);
  padding: 0 0 110px;
  position: relative; overflow: hidden;
}
.cta-ekg {
  display: block; width: 100%; height: 60px;
  color: rgba(245, 242, 234, 0.28);
  margin-bottom: 54px;
}
.cta-inner { max-width: 780px; }
.cta h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  margin: 18px 0 20px;
}
.cta h2 em { color: var(--red-soft); }
.cta-lede { font-size: 16.5px; color: rgba(245, 242, 234, 0.75); max-width: 54ch; margin-bottom: 38px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note {
  margin-top: 26px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: rgba(245, 242, 234, 0.5);
}

/* ── Podnožje ────────────────────────────────────────────────────────── */

footer.site {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: var(--ink-2);
}
.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .logo-mask { width: 128px; height: 22px; }
.foot nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.foot a {
  font-size: 13.5px; color: var(--ink-2); text-decoration: none;
}
.foot a:hover { color: var(--ink); }
.foot-base {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ── Animacije pri učitavanju i skrolu ───────────────────────────────── */

.rise { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.65,.25,1) forwards; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .18s; }
.rise.d3 { animation-delay: .3s; }
.rise.d4 { animation-delay: .42s; }
.rise.d5 { animation-delay: .56s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.65,.25,1), transform .7s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Prilagodljivost ─────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .hero-chart { max-width: 460px; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .fig { order: 0; }
  .quotes { grid-template-columns: 1fr; }
  .quote { padding: 28px 0 0; }
  .quote:first-child { padding-top: 0; }
  .quote + .quote { border-left: none; border-top: 1px solid var(--line); margin-top: 28px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .num:nth-child(n+3) { border-top: 1px solid var(--line); }
  .num:nth-child(3) { border-left: none; }
  .trust-inner { flex-direction: column; gap: 14px; }
  .trust-row { margin-left: 0; }
}

@media (max-width: 620px) {
  .sect { padding: 76px 0; }
  .sect-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 44px; }
  .ledger { grid-template-columns: 1fr; }
  .claim { gap: 20px; padding: 32px 0; }
  .claim-big { white-space: normal; }
  .timeline { grid-template-columns: 1fr; }
  .hero { padding-top: 122px; }
  .hero .fig { margin-top: 52px; }
  .hero-cta, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .fig figcaption .fig-url { display: none; }
  .numbers { padding-bottom: 76px; }
  .cta { padding-bottom: 76px; }
  .cta-ekg { margin-bottom: 40px; }
}

@media (max-width: 440px) {
  .wrap { padding: 0 18px; }
  .nav-inner { gap: 12px; }
  .logo-mask { width: 118px; height: 21px; }
  .nav .btn { padding: 9px 13px; font-size: 12.5px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .num + .num { border-left: none; border-top: 1px solid var(--line); }
  .trust-row span + span::before { margin: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .ekg path { animation: none; stroke-dashoffset: 0; }
}
