/* ============================================================
   N3 Capital Partners — Borongaj White Paper
   Stilska osnova: ai-2027.com layout, N3 brand identitet
   ============================================================ */

:root {
  /* N3 boje */
  --n3-blue: #0A2033;
  --n3-beige: #F0F0E7;
  --n3-green: #B4E247;

  /* Izvedene */
  --n3-blue-soft: #1A3045;
  --n3-blue-darker: #06151F;
  --n3-beige-warm: #E6E6DC;
  --n3-text: #0A2033;
  --n3-text-muted: #4A5868;
  --n3-text-faint: #6B7785;
  --n3-line: #D8D8CE;
  --n3-line-strong: #B8B8AE;

  /* Tipografija — fallback do ručno ubačenih fontova */
  --font-display: 'IvarDisplay', 'IvarDisplay-Regular', 'Ivar Display', 'Cormorant Garamond', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --font-body: 'NHaasGroteskTXPro', 'NHaasGroteskTXPro-55Rg', 'Neue Haas Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ============================================================
   Definicije fontova — UKLJUČI FONT FAJLOVE U /fonts FOLDER
   Imena fajlova trebaju biti:
     fonts/IvarDisplay-Regular.woff2  (ili .otf/.ttf)
     fonts/NHaasGroteskTXPro-55Rg.woff2
   ============================================================ */
@font-face {
  font-family: 'IvarDisplay';
  src: url('fonts/IvarDisplay-Regular.woff2') format('woff2'),
       url('fonts/IvarDisplay-Regular.woff') format('woff'),
       url('fonts/IvarDisplay-Regular.otf') format('opentype'),
       url('fonts/IvarDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NHaasGroteskTXPro';
  src: url('fonts/NHaasGroteskTXPro-55Rg.woff2') format('woff2'),
       url('fonts/NHaasGroteskTXPro-55Rg.woff') format('woff'),
       url('fonts/NHaasGroteskTXPro-55Rg.otf') format('opentype'),
       url('fonts/NHaasGroteskTXPro-55Rg.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Reset & global
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--n3-beige);
  color: var(--n3-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--n3-beige);
  border-bottom: 1px solid var(--n3-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(240, 240, 231, 0.92);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--n3-blue);
}
.logo-img {
  height: 39px;
  width: auto;
  display: block;
}
.top-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.top-nav a {
  text-decoration: none;
  color: var(--n3-text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.top-nav a:hover { color: var(--n3-blue); border-bottom-color: var(--n3-blue); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  text-align: left;
}
.hero-text { min-width: 0; }
.hero-meta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--n3-text-muted);
  margin-bottom: 32px;
}
.hero-meta .dot { margin: 0 12px; color: var(--n3-line-strong); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 28px 0;
  color: var(--n3-blue);
}
.hero-authors {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--n3-text-muted);
  margin-bottom: 40px;
}
.hero-authors .dot { margin: 0 10px; }
.hero-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--n3-text);
  max-width: 820px;
  margin: 0;
}

/* ============================================================
   Meta-cards (Što je ovo? / Tko smo mi? / Zašto? / Što čitatelj treba znati?)
   Expandable na klik — ispod sekcije Ukratko, prije Demografije
   ============================================================ */
.meta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--n3-line);
  border-top: 1px solid var(--n3-line);
  border-bottom: 1px solid var(--n3-line);
  margin: 24px 0;
}
.meta-cards--single {
  grid-template-columns: 1fr;
}
.meta-card {
  background: var(--n3-beige);
  padding: 0;
  margin: 0;
}
.meta-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
  color: var(--n3-blue);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.meta-card-title::-webkit-details-marker { display: none; }
.meta-card-title:hover { background: var(--n3-beige-warm); }
.meta-card-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--n3-blue);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
}
.meta-card[open] .meta-card-icon {
  transform: rotate(45deg);
  background: var(--n3-blue);
  color: var(--n3-beige);
}
.meta-card-body {
  padding: 0 22px 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--n3-text-muted);
  animation: meta-fade 0.3s ease;
}
.meta-card-body p { margin: 0; }
.meta-card-body p + p { margin-top: 12px; }
.meta-card-body strong { color: var(--n3-blue); }
.meta-card-list {
  margin: 12px 0 0;
  padding-left: 22px;
}
.meta-card-list li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.meta-card-list li:last-child { margin-bottom: 0; }
@keyframes meta-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Layout — TOC + content
   ============================================================ */
.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* ============================================================
   TOC
   ============================================================ */
.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 13px;
  line-height: 1.4;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
  padding-top: 32px;
}
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: var(--n3-line); border-radius: 3px; }
.toc-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--n3-text-faint);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--n3-line);
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
.toc-list li {
  counter-increment: toc;
  margin-bottom: 14px;
  position: relative;
  padding-left: 28px;
}
.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--n3-text-faint);
  letter-spacing: 0.04em;
}
.toc-link {
  text-decoration: none;
  color: var(--n3-text-muted);
  display: block;
  transition: color 0.2s;
  border-left: 2px solid transparent;
  padding-left: 0;
  margin-left: -28px;
  padding-left: 28px;
}
.toc-link:hover { color: var(--n3-blue); }
.toc-link.active {
  color: var(--n3-blue);
  font-weight: 500;
}

/* ============================================================
   Section grid
   ============================================================ */
.content { min-width: 0; }

.section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  padding: 64px 0;
  border-top: 1px solid var(--n3-line);
}
.section:first-child { border-top: none; padding-top: 24px; }

.section-text { min-width: 0; }
.section-visual {
  min-width: 0;
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section-visual::-webkit-scrollbar { width: 6px; }
.section-visual::-webkit-scrollbar-thumb { background: var(--n3-line); border-radius: 3px; }

.section--meta { border-top: 1px solid var(--n3-line); }
.section--meta .section-visual { position: static; max-height: none; overflow: visible; }

/* ============================================================
   Typography in content
   ============================================================ */
.section-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 28px 0;
  color: var(--n3-blue);
}
.section-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  margin: 40px 0 16px 0;
  color: var(--n3-blue);
}
.section-text p {
  margin: 0 0 18px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--n3-text);
}
.section-text p strong, .bullets strong { color: var(--n3-blue); font-weight: 600; }
.section-text em { font-style: italic; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--n3-green);
  border-radius: 50%;
}

.closing {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--n3-line);
  color: var(--n3-blue);
}

/* ============================================================
   STAT CARDS — feature numbers
   ============================================================ */
.stat-card {
  background: #fff;
  border: 1px solid var(--n3-line);
  border-radius: 4px;
  padding: 28px 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n3-text-faint);
  margin-bottom: 16px;
}
.stat-card-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--n3-blue);
  margin-bottom: 16px;
}
.stat-card-caption {
  font-size: 14px;
  color: var(--n3-text-muted);
  line-height: 1.5;
}

.stat-card--feature {
  background: var(--n3-blue);
  color: var(--n3-beige);
  border-color: var(--n3-blue);
}
.stat-card--feature .stat-card-eyebrow { color: rgba(240,240,231,0.6); }
.stat-card--feature .stat-card-value { color: var(--n3-beige); }
.stat-card--feature .stat-card-caption { color: rgba(240,240,231,0.85); }

.stat-card--green {
  background: var(--n3-green);
  color: var(--n3-blue);
  border-color: var(--n3-green);
}
.stat-card--green .stat-card-eyebrow { color: rgba(10,32,51,0.6); }
.stat-card--green .stat-card-value { color: var(--n3-blue); }
.stat-card--green .stat-card-caption { color: var(--n3-blue); }

.stat-card--dark {
  background: var(--n3-blue-darker);
  color: var(--n3-beige);
  border-color: var(--n3-blue-darker);
}
.stat-card--dark .stat-card-eyebrow { color: rgba(240,240,231,0.55); }
.stat-card--dark .stat-card-value { color: var(--n3-green); }
.stat-card--dark .stat-card-caption { color: rgba(240,240,231,0.8); }

.stat-card--small .stat-card-value { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.stat-card--small { padding: 20px; }

.stat-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============================================================
   CHART FIGURES
   ============================================================ */
.chart-fig {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 56px 0 56px;
  position: relative;
}
.chart-fig::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--n3-green);
}
.chart-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--n3-blue);
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.chart-sub {
  font-size: 13.5px;
  color: var(--n3-text-muted);
  margin-bottom: 22px;
  line-height: 1.4;
}
.chart-img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid rgba(10, 32, 51, 0.12);
  border-radius: 6px;
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 8px 24px -10px rgba(10, 32, 51, 0.14), 0 1px 3px rgba(10, 32, 51, 0.04);
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.chart-img:hover {
  border-color: rgba(10, 32, 51, 0.2);
  box-shadow: 0 14px 32px -10px rgba(10, 32, 51, 0.2), 0 3px 8px rgba(10, 32, 51, 0.06);
  transform: translateY(-2px);
}
.chart-img--wide {
  /* za matricu osjetljivosti — širi prikaz */
  width: 100%;
  max-width: none;
}
.chart-source {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--n3-line);
  font-size: 11.5px;
  color: var(--n3-text-muted);
  letter-spacing: 0.02em;
  font-style: italic;
}

/* Mali indikator "klik za zoom" u kutu slike — wrapper oko slike za pozicioniranje */
.chart-img-wrap {
  position: relative;
  display: block;
}
.chart-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 32, 51, 0.78);
  color: var(--n3-beige);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  font-family: inherit;
  opacity: 0;
  cursor: zoom-in;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  padding: 0;
  line-height: 1;
}
.chart-img-wrap:hover .chart-zoom-btn {
  opacity: 1;
}
.chart-zoom-btn:hover {
  background: var(--n3-blue);
  transform: scale(1.08);
}

/* Breakout sekcija — full width, bez grid stupaca (samo za tablicu/sliku 12) */
.section--breakout {
  display: block;
  grid-template-columns: none;
  padding: 64px 0;
  border-top: 1px solid var(--n3-line);
}
.section--breakout .chart-fig {
  margin: 0;
}

/* Breakout figure — preuzima cijelu širinu sekcije (oba grid stupca) */
.chart-fig--breakout {
  grid-column: 1 / -1;
  margin: 32px 0 0;
}
.chart-fig--breakout::before {
  /* Zelena crtica i dalje ostaje */
  left: 0;
}

/* ============================================================
   SENSITIVITY MATRIX (Slika 12)
   ============================================================ */
.sens-matrix {
  background: #FAFAF6;
  border: 1px solid rgba(10, 32, 51, 0.10);
  border-radius: 6px;
  padding: 28px 32px 24px;
  box-shadow: 0 8px 24px -10px rgba(10, 32, 51, 0.10), 0 1px 3px rgba(10, 32, 51, 0.04);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 0;
}
.sens-axis {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--n3-text-muted);
  font-weight: 500;
}
.sens-axis--top {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  padding: 4px 0 18px 0;
}
.sens-axis--left {
  grid-column: 1;
  grid-row: 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  padding: 0 16px 0 4px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sens-table-wrap {
  grid-column: 2;
  grid-row: 2;
  overflow-x: auto;
}
.sens-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.sens-table thead th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--n3-blue);
  background: transparent;
  padding: 12px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(10, 32, 51, 0.15);
  letter-spacing: 0.01em;
}
.sens-table thead th:first-child {
  border-bottom: none;
}
.sens-table tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--n3-blue);
  text-align: left;
  padding: 14px 18px 14px 4px;
  background: transparent;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border-right: 1px solid rgba(10, 32, 51, 0.15);
}
.sens-table tbody td {
  text-align: right;
  padding: 14px 12px;
  color: var(--n3-text);
  border-bottom: 1px solid rgba(10, 32, 51, 0.05);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: default;
  position: relative;
}
.sens-table tbody tr:last-child td {
  border-bottom: none;
}
/* Highlight ćelije — vjerojatan raspon */
.sens-table tbody td.sens-hl {
  background: rgba(180, 226, 71, 0.18);
  color: var(--n3-blue);
  font-weight: 600;
}
.sens-table tbody td:hover {
  background: var(--n3-blue);
  color: var(--n3-beige);
  font-weight: 600;
}
.sens-table tbody td.sens-hl:hover {
  background: var(--n3-blue);
  color: var(--n3-beige);
}
.sens-table tbody td:hover::after {
  content: attr(data-cost-fmt) " × " attr(data-beds-fmt) " kreveta";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--n3-blue-darker);
  color: var(--n3-beige);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.sens-legend {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(10, 32, 51, 0.08);
  font-size: 12px;
  color: var(--n3-text-muted);
  letter-spacing: 0.02em;
}
.sens-legend strong { color: var(--n3-blue); font-weight: 600; }
.sens-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: rgba(180, 226, 71, 0.45);
  border: 1px solid rgba(180, 226, 71, 0.7);
  border-radius: 2px;
  flex-shrink: 0;
}


/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 32, 51, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
  animation: lightbox-fade 0.25s ease;
}
@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-content {
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--n3-beige);
  padding: 24px;
  border-radius: 4px;
  cursor: default;
  /* Omogući pinch-to-zoom na touch uređajima */
  touch-action: pinch-zoom;
}
.lightbox-caption {
  color: var(--n3-beige);
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  line-height: 1.4;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240, 240, 231, 0.1);
  color: var(--n3-beige);
  border: 1px solid rgba(240, 240, 231, 0.3);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover {
  background: rgba(240, 240, 231, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 600px) {
  .lightbox { padding: 16px; }
  .lightbox-img { padding: 12px; }
  .lightbox-caption { font-size: 14px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
  .chart-fig::after { opacity: 0.85; top: 20px; right: 20px; width: 24px; height: 24px; font-size: 12px; }
}

/* ============================================================
   DBFO CARD
   ============================================================ */
.dbfo-card {
  background: var(--n3-blue);
  color: var(--n3-beige);
  border-radius: 4px;
  padding: 28px;
}
.dbfo-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 4px;
}
.dbfo-sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,240,231,0.6);
  margin-bottom: 24px;
}
.dbfo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dbfo-item {
  background: var(--n3-blue-soft);
  padding: 16px;
  border-radius: 3px;
}
.dbfo-letter {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--n3-green);
  line-height: 1;
  margin-bottom: 6px;
}
.dbfo-name {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,240,231,0.85);
  margin-bottom: 8px;
}
.dbfo-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(240,240,231,0.75);
}

/* ============================================================
   TABLE CARD
   ============================================================ */
.table-card {
  background: #fff;
  border: 1px solid var(--n3-line);
  border-radius: 4px;
  padding: 22px;
}
.table-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--n3-blue);
  margin-bottom: 14px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--n3-text-faint);
  padding: 0 8px 10px 0;
  border-bottom: 1px solid var(--n3-line);
}
.data-table td {
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid var(--n3-line);
  vertical-align: top;
  color: var(--n3-text);
  line-height: 1.45;
}
.data-table tr:last-child td { border-bottom: none; }

/* ============================================================
   SYNERGY CARD
   ============================================================ */
.synergy-card {
  background: var(--n3-beige-warm);
  border: 1px solid var(--n3-line);
  border-radius: 4px;
  padding: 24px;
}
.synergy-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--n3-blue);
  margin-bottom: 18px;
}
.synergy-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.synergy-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--n3-line);
}
.synergy-item:first-child { border-top: none; padding-top: 0; }
.synergy-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--n3-green);
  line-height: 1;
  grid-row: span 2;
}
.synergy-h {
  font-weight: 600;
  font-size: 14px;
  color: var(--n3-blue);
}
.synergy-p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--n3-text-muted);
  grid-column: 2;
}

/* ============================================================
   LOCATION CARD (Borongaj)
   ============================================================ */
.location-card {
  background: var(--n3-blue);
  color: var(--n3-beige);
  border-radius: 4px;
  padding: 28px;
}
.location-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,240,231,0.6);
  margin-bottom: 12px;
}
.location-value {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.95;
  color: var(--n3-green);
  margin-bottom: 8px;
}
.location-sub {
  font-size: 13px;
  color: rgba(240,240,231,0.8);
  margin-bottom: 22px;
}
.location-features { display: flex; flex-direction: column; gap: 10px; }
.loc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(240,240,231,0.92);
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px solid rgba(240,240,231,0.15);
}
.loc-row:first-child { border-top: none; padding-top: 0; }
.loc-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--n3-green);
  border-radius: 50%;
  margin-top: 8px;
}

/* ============================================================
   INVESTORS CARD
   ============================================================ */
.investors-card {
  background: #fff;
  border: 1px solid var(--n3-line);
  border-radius: 4px;
  padding: 22px;
}
.investors-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--n3-blue);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--n3-line);
}
.investor-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--n3-line);
}
.investor-row:last-child { border-bottom: none; }
.investor-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--n3-blue);
}
.investor-detail {
  font-size: 12px;
  color: var(--n3-text-muted);
  text-align: right;
  white-space: nowrap;
}
.investor-detail strong { color: var(--n3-blue); }

/* ============================================================
   CLOSING CARD
   ============================================================ */
.closing-card {
  background: var(--n3-blue-darker);
  color: var(--n3-beige);
  border-radius: 4px;
  padding: 32px 28px;
}
.closing-eyebrow {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--n3-green);
  margin-bottom: 24px;
}
.closing-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cs-item {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(240,240,231,0.12);
}
.cs-item:last-child { border-bottom: none; }
.cs-num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--n3-beige);
  margin-bottom: 4px;
}
.cs-lab {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(240,240,231,0.7);
}
.closing-divider {
  height: 1px;
  background: rgba(240,240,231,0.18);
  margin: 24px 0 22px;
}
.closing-message {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  color: var(--n3-beige);
}

/* ============================================================
   META / DISCLAIMER / CONTACT
   ============================================================ */
.disclaimer {
  background: var(--n3-beige-warm);
  border: 1px solid var(--n3-line);
  border-radius: 4px;
  padding: 22px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--n3-text-muted);
}
.disclaimer-title {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--n3-blue);
  margin-bottom: 10px;
}
.disclaimer p { margin: 0 0 10px 0; }
.disclaimer p:last-child { margin-bottom: 0; }
.contact { font-size: 13px; line-height: 1.6; color: var(--n3-text-muted); }
.contact a { color: var(--n3-blue); text-decoration: none; border-bottom: 1px solid var(--n3-line-strong); }

/* ============================================================
   O NAMA podstranica
   ============================================================ */
.about {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 32px 100px;
}
.about-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--n3-line);
}
.about-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--n3-blue);
  margin: 24px 0 0 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.about-text { min-width: 0; }
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--n3-text);
  margin: 0 0 28px 0;
}
.about-text p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px 0;
  color: var(--n3-text);
}
.about-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--n3-blue);
  margin: 48px 0 16px 0;
}
.about-side {
  min-width: 0;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: var(--n3-blue);
  color: var(--n3-beige);
  border-radius: 4px;
  padding: 28px;
}
.contact-card-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,240,231,0.6);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(240,240,231,0.15);
}
.contact-card-section { margin-bottom: 18px; }
.contact-card-section:last-child { margin-bottom: 0; }
.contact-card-h {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n3-green);
  margin-bottom: 6px;
}
.contact-card-line {
  font-size: 14px;
  line-height: 1.45;
  color: var(--n3-beige);
}
.contact-card-line a { color: var(--n3-beige); border-bottom: 1px solid rgba(240,240,231,0.4); text-decoration: none; }
.contact-card-line a:hover { border-bottom-color: var(--n3-green); }

.about-values {
  background: var(--n3-beige-warm);
  border: 1px solid var(--n3-line);
  border-radius: 4px;
  padding: 24px;
}
.about-values-eyebrow {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--n3-blue);
  margin-bottom: 12px;
}
.about-values p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--n3-text-muted);
  margin: 0;
}
.about-values strong { color: var(--n3-blue); }

.text-link {
  color: var(--n3-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--n3-line-strong);
  transition: border-color 0.2s;
}
.text-link:hover { border-bottom-color: var(--n3-blue); }

/* Klikabilna referenca "(Slika N.)" u tekstu — vodi na lightbox */
.fig-ref {
  color: var(--n3-blue);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted var(--n3-blue);
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.fig-ref:hover {
  color: var(--n3-green-dark, #6FAA1F);
  border-bottom-color: currentColor;
  border-bottom-style: solid;
}

.nav-active { color: var(--n3-blue) !important; border-bottom: 1px solid var(--n3-blue) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--n3-line);
  background: var(--n3-blue);
  color: var(--n3-beige);
  padding: 32px 0;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.footer-credits {
  font-size: 12px;
  color: rgba(240,240,231,0.65);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
  .section { gap: 32px; }
}

@media (max-width: 900px) {
  .header-inner { padding: 12px 20px; }
  .hero { padding: 56px 20px 40px; }
  .meta-cards {
    grid-template-columns: 1fr;
  }
  .about { padding: 56px 20px 60px; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-side {
    position: static;
  }
  .layout {
    grid-template-columns: 1fr;
    padding: 0 20px 56px;
    gap: 0;
  }
  .toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 16px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--n3-line);
    border-radius: 4px;
  }
  .section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .section-visual {
    position: static;
    max-height: none;
    overflow: visible;
    order: 2;
  }
  .stat-card-row { grid-template-columns: 1fr 1fr; }
  .dbfo-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 20px; }
}

@media (max-width: 500px) {
  .stat-card-row { grid-template-columns: 1fr; }
  .investor-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .investor-detail { text-align: left; }
}
