/* ============================================================
   IMANJE NARTA — prezentacijski projekt
   Kolarevo Selo 160, k.o. Narta · 6 km od Wellovara
   ============================================================ */

/* ---------- 1. Tokeni ---------- */
:root {
  color-scheme: light;

  /* Površine */
  --bg:            #FBF8F3;
  --bg-2:          #F4EEE4;
  --bg-3:          #EBE3D5;
  --surface:       #FFFFFF;
  --surface-sunk:  #F7F2E9;

  /* Tinta */
  --ink:           #14211B;
  --ink-2:         #3D4E45;
  --muted:         #6E7C73;
  --hairline:      rgba(20, 33, 27, .12);
  --hairline-soft: rgba(20, 33, 27, .06);

  /* Brend */
  --green-900:     #143324;
  --green-700:     #1F5840;
  --green:         #235C42;
  --green-600:     #2F7A55;
  --green-mid:     #4B8E6B;
  --green-light:   #7FB497;
  --green-wash:    #E4EFE8;

  --clay:          #C2643C;   /* samo UI akcent — nikad kao oznaka podatka */
  --clay-dark:     #A44F2C;
  --gold:          #B08A1F;

  /* Grafikoni — jednobojna zelena skala (validirano: ordinal, light) */
  --viz-surface:   #FBF8F3;
  --viz-1:         #7FB497;   /* konzervativni */
  --viz-2:         #4B8E6B;   /* osnovni */
  --viz-3:         #235C42;   /* optimistični */
  --viz-bar:       #35785A;   /* jednoserijski stupci */
  --viz-track:     #E6E0D3;
  --viz-grid:      rgba(20, 33, 27, .10);

  /* Tipografija */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Mjere */
  --gut:     clamp(20px, 5vw, 64px);
  --maxw:    1220px;
  --r-s:     10px;
  --r-m:     18px;
  --r-l:     28px;
  --shadow:  0 1px 2px rgba(20,33,27,.05), 0 8px 28px -12px rgba(20,33,27,.18);
  --shadow-l: 0 2px 6px rgba(20,33,27,.06), 0 30px 70px -28px rgba(20,33,27,.34);
  --ease:    cubic-bezier(.22, .68, .28, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #101A15;
  --bg-2:          #16241E;
  --bg-3:          #1C2E26;
  --surface:       #18271F;
  --surface-sunk:  #13201A;
  --ink:           #F1EFE7;
  --ink-2:         #C3CDC5;
  --muted:         #93A197;
  --hairline:      rgba(241, 239, 231, .14);
  --hairline-soft: rgba(241, 239, 231, .07);
  --green-wash:    #1B3328;
  --clay:          #DD7B4F;
  --gold:          #D9B44A;
  --viz-surface:   #16241E;
  --viz-1:         #A8D2BA;
  --viz-2:         #5CA67F;
  --viz-3:         #2F7A55;
  --viz-bar:       #5CA67F;
  --viz-track:     #24382D;
  --viz-grid:      rgba(241, 239, 231, .12);
  --shadow:  0 1px 2px rgba(0,0,0,.4), 0 8px 28px -12px rgba(0,0,0,.6);
  --shadow-l: 0 2px 6px rgba(0,0,0,.4), 0 30px 70px -28px rgba(0,0,0,.75);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Tipografija ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.22; }
p  { text-wrap: pretty; }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; line-height: 1.5; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .73rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 1.1rem;
}
[data-theme="dark"] .eyebrow { color: var(--green-light); }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .55; }

/* ---------- 4. Raspored ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--sunk { background: var(--bg-2); }
.section--ink { background: var(--green-900); color: #F1EFE7; }
.section--ink .lede, .section--ink .muted { color: #B9C7BD; }
.section--ink .eyebrow { color: var(--green-light); }
.muted { color: var(--muted); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* ---------- 5. Navigacija ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gut);
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease),
              box-shadow .45s var(--ease), color .45s var(--ease);
  color: #fff;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--hairline);
  color: var(--ink);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__txt { font-family: var(--display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { display: block; font-family: var(--body); font-size: .63rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; opacity: .68; margin-top: 1px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 13px; border-radius: 999px; text-decoration: none;
  font-size: .845rem; font-weight: 500; opacity: .84; transition: .25s var(--ease);
}
.nav__links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.nav__links a { white-space: nowrap; }
@media (max-width: 1220px) { .nav__links { display: none; } }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent); transition: .25s var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.icon-btn svg { width: 17px; height: 17px; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 95;
  background: linear-gradient(90deg, var(--green-mid), var(--clay)); transition: width .1s linear; }

/* ---------- 6. Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-size: .93rem; font-weight: 600; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--clay); color: #fff; box-shadow: 0 10px 26px -12px var(--clay); }
.btn--solid:hover { background: var(--clay-dark); box-shadow: 0 16px 34px -14px var(--clay); }
.btn--ghost { border: 1px solid color-mix(in srgb, currentColor 34%, transparent); }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--green { background: var(--green); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.06); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,16,.58) 0%, rgba(10,22,16,.12) 34%, rgba(10,22,16,.55) 68%, rgba(10,22,16,.93) 100%),
    radial-gradient(120% 80% at 18% 88%, rgba(10,22,16,.6), transparent 62%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: 130px 46px; }
.hero h1 { max-width: 15ch; text-shadow: 0 2px 34px rgba(0,0,0,.34); }
.hero h1 em { font-style: normal; color: var(--green-light); }
.hero__sub { max-width: 54ch; margin-top: 22px; font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__strip {
  margin-top: clamp(38px, 6vw, 66px); padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.22);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 760px) { .hero__strip { grid-template-columns: repeat(2, 1fr); } }
.hero__stat b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 600; line-height: 1; }
.hero__stat > span { display: block; margin-top: 7px; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.72); }
.hero__stat b span { text-transform: none; letter-spacing: 0; }
.hero__scroll { position: absolute; right: var(--gut); bottom: 46px; z-index: 3;
  writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 12px; }
.hero__scroll::after { content: ""; width: 1px; height: 54px;
  background: linear-gradient(rgba(255,255,255,.7), transparent); }
@media (max-width: 980px) { .hero__scroll { display: none; } }

.badge-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px;
  border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.26);
  backdrop-filter: blur(8px); font-size: .76rem; font-weight: 600; letter-spacing: .06em;
  margin-bottom: 22px;
}
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-light);
  box-shadow: 0 0 0 0 rgba(127,180,151,.75); animation: pulse 2.4s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(127,180,151,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,180,151,0); }
}

/* ---------- 8. Kartice ---------- */
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-m); padding: clamp(22px, 2.6vw, 32px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-l);
  border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.card__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-wash); color: var(--green-600); margin-bottom: 18px; }
[data-theme="dark"] .card__ico { color: var(--green-light); }
.card__ico svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--ink-2); font-size: .96rem; }

/* Wellovar — blok susjednog sadržaja */
.wellovar { margin-bottom: clamp(30px, 4.4vw, 58px); }
.wellovar__hero { position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow-l); }
.wellovar__hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.wellovar__hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,22,16,.72) 0%, rgba(10,22,16,.28) 38%, transparent 62%); }
.wellovar__tag { position: absolute; z-index: 2; top: 18px; left: 18px;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--green-900);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wellovar__km { position: absolute; z-index: 2; left: 18px; bottom: 18px; color: #fff; }
.wellovar__km b { display: block; font-family: var(--display); font-weight: 700; line-height: .92;
  font-size: clamp(3.2rem, 9vw, 6.4rem); letter-spacing: -.04em;
  text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.wellovar__km i { display: block; margin-top: 8px; font-style: normal; font-size: .84rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.86); }
.wellovar__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(18px, 2.6vw, 34px);
  align-items: start; margin-top: clamp(14px, 1.8vw, 22px); }
@media (max-width: 820px) { .wellovar__grid { grid-template-columns: 1fr; } }
.wellovar__side { margin: 0; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.wellovar__side img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.wellovar__text h3 { margin-bottom: 12px; }
.wellovar__text p { color: var(--ink-2); font-size: .98rem; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: .95rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 17px; height: 17px; border-radius: 50%;
  background: var(--green-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23235C42' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* Udaljenosti */
.dist { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 17px 0; border-bottom: 1px solid var(--hairline-soft); }
.dist:last-child { border-bottom: 0; }
.dist__name { font-weight: 600; }
.dist__name small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.dist__km { font-family: var(--display); font-size: 1.5rem; font-weight: 600; white-space: nowrap; }
.dist__km span { font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: 3px; }

/* ---------- 9. Galerija ---------- */
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gal figure { position: relative; margin: 0; border-radius: var(--r-m); overflow: hidden;
  background: var(--bg-3); cursor: zoom-in; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gal figure:hover img { transform: scale(1.055); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff;
  font-size: .82rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(10,22,16,.84));
  opacity: 0; transform: translateY(8px); transition: .4s var(--ease);
}
.gal figure:hover figcaption, .gal figure:focus-within figcaption { opacity: 1; transform: none; }
.gal .s6 { grid-column: span 6; aspect-ratio: 4/3; }
.gal .s4 { grid-column: span 4; aspect-ratio: 1/1; }
.gal .s3 { grid-column: span 3; aspect-ratio: 3/4; }
.gal .s12 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 760px) {
  .gal { grid-template-columns: repeat(2, 1fr); }
  .gal .s6, .gal .s4, .gal .s3 { grid-column: span 1; aspect-ratio: 4/3; }
  .gal .s12 { grid-column: span 2; aspect-ratio: 16/9; }
}

.gal--3 { grid-template-columns: repeat(3, 1fr); }
.gal--3 figure { grid-column: span 1; aspect-ratio: 16/10; }
@media (max-width: 900px) { .gal--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gal--3 { grid-template-columns: 1fr; } }
.gal--3 figcaption { opacity: 1; transform: none; font-size: .78rem; padding: 26px 14px 12px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center;
  background: #080F0C; padding: 4vw; }
/* dok je lightbox otvoren navigacija se mice — njezin backdrop-filter inace
   stvara vlastiti sloj koji zna iscrtati preko zastora */
body.lb-open .nav { opacity: 0; pointer-events: none; backdrop-filter: none; }
body.lb-open .progress { opacity: 0; }
.lb.is-open { display: grid; }
.lb img { max-width: 100%; max-height: 84vh; border-radius: 10px; object-fit: contain; }
.lb__cap { color: rgba(255,255,255,.78); font-size: .88rem; text-align: center; margin-top: 16px; }
.lb__x { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; font-size: 22px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lb__nav--prev { left: 16px; } .lb__nav--next { right: 16px; }

/* ---------- 10. Prije / poslije ---------- */
.ba { position: relative; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-l);
  aspect-ratio: 16/10; user-select: none; touch-action: pan-y; background: var(--bg-3); }
.ba__layer { position: absolute; inset: 0; }
.ba__layer img, .ba__layer svg { width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px;
  background: #fff; box-shadow: 0 0 18px rgba(0,0,0,.45); z-index: 3; cursor: ew-resize; }
.ba__knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--green-900);
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0,0,0,.4); }
.ba__knob svg { width: 22px; height: 22px; }
.ba__tag { position: absolute; top: 16px; z-index: 2; padding: 6px 13px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  backdrop-filter: blur(8px); }
.ba__tag--l { left: 16px; background: rgba(12,22,17,.6); color: #fff; }
.ba__tag--r { right: 16px; background: rgba(255,255,255,.9); color: var(--green-900); }
.ba__note { margin-top: 14px; font-size: .8rem; color: var(--muted); display: flex; gap: 8px; }
.ba__note svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* ---------- 11. Masterplan ---------- */
.aerial { position: relative; margin: 0 0 clamp(18px, 2.4vw, 28px); }
.aerial img { width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--r-l); box-shadow: var(--shadow-l); }
.aerial__tag { position: absolute; top: 16px; left: 16px; padding: 6px 13px; border-radius: 999px;
  background: rgba(12,22,17,.62); color: #fff; backdrop-filter: blur(8px);
  font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.aerial figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted); max-width: 72ch; }
.plan-intro { font-size: .95rem; color: var(--ink-2); margin: clamp(26px, 3.2vw, 44px) 0 14px; }

.plan-wrap { position: relative; border-radius: var(--r-l); overflow: hidden;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; border-top: 1px solid var(--hairline); }
.plan-legend button {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--hairline); font-size: .8rem; font-weight: 500; transition: .25s var(--ease);
}
.plan-legend button:hover, .plan-legend button.is-on { background: var(--green-wash); border-color: transparent; }
.plan-legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.hot { cursor: pointer; transition: opacity .3s var(--ease); }
.hot:hover { opacity: .82; }
.plan-tip {
  position: absolute; pointer-events: none; opacity: 0; transform: translate(-50%, -114%);
  background: var(--green-900); color: #fff; padding: 9px 13px; border-radius: 10px;
  font-size: .8rem; line-height: 1.4; white-space: nowrap; box-shadow: var(--shadow-l);
  transition: opacity .18s var(--ease); z-index: 6;
}
.plan-tip.is-on { opacity: 1; }
.plan-tip b { display: block; font-size: .86rem; }
.plan-tip span { color: rgba(255,255,255,.7); }

/* ---------- 12. Tlocrt / tablice ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--hairline-soft); }
.tbl thead th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; border-bottom: 1px solid var(--hairline); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr:hover { background: var(--surface-sunk); }
.tbl tfoot td { font-weight: 700; border-top: 1.5px solid var(--hairline); border-bottom: 0; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 13. Vizualizacije ---------- */
.viz { background: var(--viz-surface); border: 1px solid var(--hairline);
  border-radius: var(--r-m); padding: clamp(20px, 2.4vw, 30px); }
.viz__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap; }
.viz__title { font-family: var(--display); font-size: 1.16rem; font-weight: 600; letter-spacing: -.01em; }
.viz__sub { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.viz__toggle { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; }
.viz__toggle button { padding: 5px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--muted); transition: .2s var(--ease); }
.viz__toggle button.is-on { background: var(--green); color: #fff; }
.viz__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: .8rem; color: var(--ink-2); }
.viz__legend span { display: inline-flex; align-items: center; gap: 7px; }
.viz__legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.viz__note { margin-top: 16px; font-size: .78rem; color: var(--muted); }
.viz-hide { display: none; }

/* Horizontalni stupci (CAPEX) */
.hbar { display: grid; grid-template-columns: minmax(150px, 1.45fr) 3fr auto; align-items: center;
  gap: 8px 16px; padding: 7px 0; border-radius: 8px; transition: background .2s var(--ease); }
.hbar:hover { background: color-mix(in srgb, var(--green) 6%, transparent); }
.hbar__label { font-size: .88rem; color: var(--ink-2); }
.hbar__track { display: block; height: 20px; background: var(--viz-track);
  border-radius: 4px; overflow: hidden; }
.hbar__fill { display: block; height: 100%; width: 0; background: var(--viz-bar);
  border-radius: 0 4px 4px 0; transition: width 1.1s var(--ease); }
.hbar__val { font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 620px) {
  .hbar { grid-template-columns: 1fr auto; row-gap: 6px; }
  .hbar__label { grid-row: 1; grid-column: 1; }
  .hbar__val   { grid-row: 1; grid-column: 2; }
  .hbar__track { grid-row: 2; grid-column: 1 / -1; }
}

/* KPI */
.kpi { text-align: left; }
.kpi b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -.03em; white-space: nowrap; }
.kpi > span { display: block; margin-top: 9px; font-size: .82rem; color: var(--muted); }
.kpi .delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: .78rem;
  font-weight: 600; color: var(--green-600); }
[data-theme="dark"] .kpi .delta { color: var(--green-light); }

/* ---------- 14. Vremenska crta ---------- */
.tl { position: relative; padding-left: 34px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--green-mid), var(--hairline)); }
.tl__item { position: relative; padding-bottom: 34px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot { position: absolute; left: -34px; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--green-mid); display: grid; place-items: center; }
.tl__dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tl__when { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 5px; }
[data-theme="dark"] .tl__when { color: var(--green-light); }
.tl__item h3 { font-size: 1.12rem; margin-bottom: 5px; }
.tl__item p { font-size: .93rem; color: var(--ink-2); }
.tl__cost { display: inline-block; margin-top: 9px; padding: 4px 11px; border-radius: 999px;
  background: var(--green-wash); color: var(--green-700); font-size: .8rem; font-weight: 600; }
[data-theme="dark"] .tl__cost { color: var(--green-light); }

/* ---------- 15. Pravni status ---------- */
.fact { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hairline-soft); }
.fact:last-child { border-bottom: 0; }
.fact__k { flex: none; width: 150px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding-top: 2px; }
.fact__v { font-size: .95rem; }
.fact__v code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em;
  background: var(--surface-sunk); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 620px) { .fact { flex-direction: column; gap: 4px; } .fact__k { width: auto; } }

.flag { display: flex; gap: 13px; padding: 18px; border-radius: var(--r-s);
  background: color-mix(in srgb, var(--clay) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--clay) 28%, transparent); }
.flag svg { width: 19px; height: 19px; flex: none; color: var(--clay-dark); margin-top: 2px; }
[data-theme="dark"] .flag svg { color: var(--clay); }
.flag p { font-size: .9rem; color: var(--ink-2); }
.flag b { color: var(--ink); }

.doc-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
@media (max-width: 760px) { .doc-strip { grid-template-columns: repeat(2, 1fr); } }
.doc-strip a { position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--r-s);
  overflow: hidden; border: 1px solid var(--hairline); text-decoration: none; background: var(--surface); }
.doc-strip img { width: 100%; height: 100%; object-fit: cover; object-position: top;
  filter: saturate(.25) contrast(1.04); transition: .5s var(--ease); }
.doc-strip a:hover img { filter: none; transform: scale(1.03); }
.doc-strip span { position: absolute; inset: auto 0 0 0; padding: 22px 11px 10px; color: #fff;
  font-size: .76rem; font-weight: 600; background: linear-gradient(transparent, rgba(10,22,16,.9)); }

.lnk { color: var(--green-600); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  transition: border-color .25s var(--ease); }
.lnk:hover { border-bottom-color: currentColor; }
[data-theme="dark"] .lnk { color: var(--green-light); }

/* ---------- 16. CTA / podnožje ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--r-l); padding: clamp(36px, 6vw, 76px);
  background: var(--green-900); color: #F1EFE7; }
.cta::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 130% at 88% 12%, rgba(75,142,107,.42), transparent 58%); }
.cta > * { position: relative; }
.cta h2 { max-width: 16ch; }
.cta .lede { color: #B9C7BD; margin-top: 16px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.foot { padding-block: 46px; border-top: 1px solid var(--hairline); }
.foot__row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot p { font-size: .82rem; color: var(--muted); max-width: 58ch; }

/* ---------- 17. Otkrivanje pri skrolu ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; } .rv-d2 { transition-delay: .18s; }
.rv-d3 { transition-delay: .27s; } .rv-d4 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- 18. Ispis ---------- */
@media print {
  .nav, .progress, .hero__scroll, .lb, .viz__toggle, .plan-legend, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 18pt; break-inside: avoid; }
  .hero { min-height: auto; color: #14211B; }
  .hero__media::after { background: none; }
  .hero__media img { display: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .card, .viz { break-inside: avoid; border: 1px solid #ccc; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #666; }
}
