/* ============================================================
   ProSupport — dizajn sistem
   Solarna energija + Dahua parking rješenja
   ============================================================ */

:root {
  /* Brend boje (iz logotipa: sunce, panel, list) */
  --sun: #F59E0B;
  --sun-deep: #EA580C;
  --leaf: #16A34A;
  --leaf-deep: #15803D;
  --sky: #2563EB;
  --sky-deep: #1D4ED8;

  /* Neutralne */
  --ink: #0B1220;
  --ink-2: #101A2E;
  --ink-3: #16233C;
  --paper: #F7F9FC;
  --white: #FFFFFF;
  --text: #1E293B;
  --text-soft: #55627A;
  --text-inverse: #E6EDF8;
  --text-inverse-soft: #9FB0C9;
  --line: #E3E9F2;
  --line-dark: rgba(255, 255, 255, 0.09);

  /* Gradijenti */
  --grad-solar: linear-gradient(120deg, var(--sun) 0%, var(--leaf) 100%);
  --grad-parking: linear-gradient(120deg, #38BDF8 0%, var(--sky-deep) 100%);
  --grad-brand: linear-gradient(120deg, var(--sun) 0%, var(--leaf) 55%, var(--sky) 115%);

  /* Tipografija */
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Ritam */
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -12px rgba(11, 18, 32, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(11, 18, 32, 0.35);
  --container: 1180px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

::selection { background: rgba(37, 99, 235, 0.2); }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 10px;
  z-index: 300; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Traka napretka skrolanja
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad-brand);
  z-index: 220;
  pointer-events: none;
}

/* ============================================================
   Zaglavlje
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 200;
  padding: 1rem 0;
  transition: padding 0.35s var(--ease-out), background 0.35s, box-shadow 0.35s, transform 0.4s var(--ease-out);
}
.site-header.scrolled {
  padding: 0.55rem 0;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.45);
}
.site-header.hidden { transform: translateY(-110%); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.35rem;
  color: #fff; letter-spacing: -0.02em;
}
.brand-name em { font-style: normal; color: #5EEA8D; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a:not(.btn) {
  position: relative;
  padding: 0.55rem 0.85rem;
  color: var(--text-inverse-soft);
  font-weight: 500; font-size: 0.95rem;
  border-radius: 10px;
  transition: color 0.25s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.3rem;
  height: 2px; border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 20px; height: 2px; border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; position: relative; z-index: 401; }
  .main-nav {
    position: fixed; inset: 0;
    z-index: 300;
    width: 100%; height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.4rem;
    padding: 6rem 1.5rem 3rem;
    background:
      radial-gradient(circle at 82% 16%, rgba(37, 99, 235, 0.32), transparent 55%),
      radial-gradient(circle at 10% 88%, rgba(22, 163, 74, 0.28), transparent 55%),
      rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.94);
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out), visibility 0s linear 0s;
  }
  .main-nav > a {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  }
  .main-nav.open > a {
    opacity: 1;
    transform: translateY(0);
  }
  .main-nav.open > a:nth-child(1) { transition-delay: 0.10s; }
  .main-nav.open > a:nth-child(2) { transition-delay: 0.16s; }
  .main-nav.open > a:nth-child(3) { transition-delay: 0.22s; }
  .main-nav.open > a:nth-child(4) { transition-delay: 0.28s; }
  .main-nav.open > a:nth-child(5) { transition-delay: 0.34s; }
  .main-nav.open > a:nth-child(6) { transition-delay: 0.40s; }
  .main-nav a:not(.btn) { font-size: 1.4rem; padding: 0.85rem 1.2rem; }
  .nav-cta { margin: 1.3rem 0 0; text-align: center; width: 100%; max-width: 280px; }
}

body.nav-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .main-nav, .main-nav > a { transition: none !important; }
}

/* ============================================================
   Dugmad
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  touch-action: manipulation;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--grad-solar);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(22, 163, 74, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(22, 163, 74, 0.65); }

.btn-blue {
  background: var(--grad-parking);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.55);
}
.btn-blue:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(37, 99, 235, 0.65); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-3px); }

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky-deep); transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-sm { padding: 0.55rem 1.2rem; min-height: 42px; font-size: 0.9rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 8.5rem 0 5rem;
  background: var(--ink);
  color: var(--text-inverse);
  overflow: hidden;
  isolation: isolate;
}
.hero--sub { min-height: 72svh; padding-top: 9rem; }

.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; margin-bottom: 1.1rem; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-inverse-soft);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative; z-index: 2;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { margin-top: 1.4rem; }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Svijetleće kugle u pozadini */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb--sun { width: 480px; height: 480px; background: radial-gradient(circle, rgba(245, 158, 11, 0.55), transparent 65%); top: -160px; left: -120px; }
.orb--leaf { width: 520px; height: 520px; background: radial-gradient(circle, rgba(22, 163, 74, 0.45), transparent 65%); bottom: -200px; left: 30%; animation-delay: -5s; }
.orb--sky { width: 560px; height: 560px; background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent 65%); top: -120px; right: -160px; animation-delay: -9s; }

@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 50px, 0) scale(1.12); }
}

/* Mreža tačkica preko heroja */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  z-index: 1;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-dark);
  color: var(--text-inverse-soft);
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1.4rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5EEA8D;
  box-shadow: 0 0 0 0 rgba(94, 234, 141, 0.6);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 141, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 141, 0); }
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-text--solar { background: linear-gradient(100deg, #FBBF24, #4ADE80); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-text--parking { background: linear-gradient(100deg, #7DD3FC, #3B82F6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pokazatelj skrolanja */
.scroll-hint {
  position: absolute; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--text-inverse-soft);
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 2;
}
.scroll-hint .mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  position: relative;
}
.scroll-hint .mouse::after {
  content: "";
  position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; border-radius: 4px;
  background: #fff;
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 12px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}
@media (max-width: 700px) { .scroll-hint { display: none; } }

/* Plutajuća hero kartica / vizual */
.hero-visual { position: relative; }
.hero-visual > svg, .hero-visual > img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
}
.float { animation: floatY 7s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.hero-chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(16, 26, 46, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}
.hero-chip small { display: block; font-weight: 400; color: var(--text-inverse-soft); font-size: 0.72rem; }
.hero-chip .ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
}
.hero-chip .ico svg { width: 18px; height: 18px; }

/* ============================================================
   Sekcije
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--dark { background: var(--ink); color: var(--text-inverse); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--text-inverse-soft); }
.section--tint { background: linear-gradient(180deg, #EEF3FA 0%, var(--paper) 100%); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
.section-head p { font-size: 1.08rem; color: var(--text-soft); }
.section--dark .section-head p { color: var(--text-inverse-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--solar { color: var(--leaf-deep); }
.eyebrow--parking { color: var(--sky-deep); }
.eyebrow--sun { color: var(--sun-deep); }
.section--dark .eyebrow--solar { color: #4ADE80; }
.section--dark .eyebrow--parking { color: #7DD3FC; }
.section--dark .eyebrow--sun { color: #FBBF24; }

/* ============================================================
   Kartice i mreže
   ============================================================ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 1.2rem; margin-top: 1.1rem; }
.card p { color: var(--text-soft); font-size: 0.96rem; margin-bottom: 0; }

.card--dark {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--text-inverse-soft); }
.card--dark:hover { box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7); border-color: rgba(255, 255, 255, 0.18); }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
}
.card-icon svg { width: 26px; height: 26px; }
.ic-solar { background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(22, 163, 74, 0.16)); color: var(--leaf-deep); }
.ic-parking { background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(37, 99, 235, 0.16)); color: var(--sky-deep); }
.ic-sun { background: rgba(245, 158, 11, 0.15); color: var(--sun-deep); }
.section--dark .ic-solar { color: #4ADE80; }
.section--dark .ic-parking { color: #7DD3FC; }
.section--dark .ic-sun { color: #FBBF24; }

/* Velike kartice pilara (početna) */
.pillar {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.pillar img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
  z-index: -2;
}
.pillar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.1) 20%, rgba(11, 18, 32, 0.92) 100%);
  z-index: -1;
}
.pillar--solar { background: linear-gradient(160deg, #14532D, #0B1220); }
.pillar--parking { background: linear-gradient(160deg, #1E3A8A, #0B1220); }
.pillar:hover img { transform: scale(1.06); }
.pillar-body { padding: 2.2rem; width: 100%; }
.pillar-body h3 { color: #fff; font-size: 1.7rem; }
.pillar-body p { color: rgba(230, 237, 248, 0.85); max-width: 44ch; }
.pillar-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.pillar--solar .pillar-tag { background: rgba(74, 222, 128, 0.18); color: #86EFAC; border: 1px solid rgba(74, 222, 128, 0.35); }
.pillar--parking .pillar-tag { background: rgba(125, 211, 252, 0.16); color: #BAE6FD; border: 1px solid rgba(125, 211, 252, 0.35); }
.pillar .arrow-link { color: #fff; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600;
  color: var(--sky-deep);
}
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(6px); }

/* ============================================================
   Statistike / brojači
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.stat { text-align: center; padding: 1.5rem 1rem; }
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat .num .suffix { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { margin-top: 0.6rem; color: var(--text-inverse-soft); font-size: 0.92rem; }

/* ============================================================
   Koraci procesa
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 2.6rem; font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: 0.92rem; color: var(--text-soft); margin: 0; }

.section--dark .step { background: var(--ink-2); border-color: var(--line-dark); }
.section--dark .step h3 { color: #fff; }
.section--dark .step p { color: var(--text-inverse-soft); }

/* ============================================================
   Podijeljena sekcija (tekst + vizual)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
  background: linear-gradient(140deg, var(--ink-2), var(--ink-3));
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge-float {
  position: absolute; left: 1.2rem; bottom: 1.2rem;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  font-weight: 700; font-family: var(--font-head);
}
.split-media .badge-float small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--text-inverse-soft); font-size: 0.78rem; }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.85rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checklist .chk {
  flex: none;
  width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(22, 163, 74, 0.14);
  color: var(--leaf-deep);
  margin-top: 2px;
}
.checklist .chk svg { width: 14px; height: 14px; }
.checklist--blue .chk { background: rgba(37, 99, 235, 0.12); color: var(--sky-deep); }
.section--dark .checklist .chk { background: rgba(74, 222, 128, 0.15); color: #4ADE80; }
.section--dark .checklist--blue .chk { background: rgba(125, 211, 252, 0.14); color: #7DD3FC; }
.checklist strong { display: block; color: inherit; }
.checklist span.desc { color: var(--text-soft); font-size: 0.93rem; }
.section--dark .checklist span.desc { color: var(--text-inverse-soft); }

/* ============================================================
   Pokretna traka (marquee)
   ============================================================ */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.marquee-item svg { width: 22px; height: 22px; opacity: 0.7; }

/* ============================================================
   Vremenska linija (o nama)
   ============================================================ */
.timeline { position: relative; margin: 0; padding: 0 0 0 2rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--sun), var(--leaf), var(--sky));
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 2.2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute; left: -2rem; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink);
  border: 3px solid #4ADE80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.15);
}
.timeline .year {
  font-family: var(--font-head); font-weight: 800;
  color: #4ADE80; font-size: 1.05rem;
  display: block; margin-bottom: 0.2rem;
}
.timeline h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.timeline p { margin: 0; font-size: 0.95rem; }

/* ============================================================
   Harmonika (FAQ)
   ============================================================ */
.accordion { display: grid; gap: 0.9rem; }
.accordion-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.accordion-item.active { box-shadow: var(--shadow); border-color: rgba(37, 99, 235, 0.3); }
.accordion-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: none; border: none;
  text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  color: var(--ink);
}
.accordion-btn .plus {
  flex: none;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--paper);
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
}
.accordion-item.active .accordion-btn .plus {
  transform: rotate(135deg);
  background: var(--grad-solar);
  color: #fff;
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.accordion-panel p { padding: 0 1.5rem 1.3rem; margin: 0; color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   Kalkulator uštede
   ============================================================ */
.calculator {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
}
@media (max-width: 860px) { .calculator { grid-template-columns: 1fr; } }

.calculator label {
  display: block;
  font-weight: 600; color: #fff;
  margin-bottom: 0.6rem;
}
.calculator .hint { color: var(--text-inverse-soft); font-size: 0.85rem; margin-top: 0.5rem; }

.range-value {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.range-value .unit { font-size: 1.1rem; color: var(--text-inverse-soft); font-weight: 500; }

input[type="range"] {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  height: 8px; border-radius: 8px;
  background: linear-gradient(90deg, var(--sun) var(--fill, 30%), rgba(255, 255, 255, 0.14) var(--fill, 30%));
  outline-offset: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  border: 6px solid var(--sun);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 6px solid var(--sun);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.calc-results { display: grid; gap: 1rem; align-content: center; }
.calc-result {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 1rem 1.3rem;
}
.calc-result .lbl { color: var(--text-inverse-soft); font-size: 0.9rem; }
.calc-result .val {
  font-family: var(--font-head); font-weight: 800; font-size: 1.45rem;
  color: #fff; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc-result.highlight { background: linear-gradient(120deg, rgba(245, 158, 11, 0.16), rgba(22, 163, 74, 0.16)); border-color: rgba(74, 222, 128, 0.35); }
.calc-result.highlight .val { color: #4ADE80; }
.calc-note { color: var(--text-inverse-soft); font-size: 0.8rem; margin: 0.4rem 0 0; }

/* ============================================================
   Reference — filteri i projekti
   ============================================================ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600; font-size: 0.92rem;
  color: var(--text-soft);
  transition: all 0.3s var(--ease-out);
}
.filter-btn:hover { border-color: var(--sky); color: var(--sky-deep); transform: translateY(-2px); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.project {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, opacity 0.4s;
}
.project.hide { display: none; }
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); position: relative; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.project:hover .project-media img { transform: scale(1.08); }
.project-media .tag {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 700;
  backdrop-filter: blur(6px);
}
.tag--solar { background: rgba(22, 163, 74, 0.85); color: #fff; }
.tag--parking { background: rgba(37, 99, 235, 0.85); color: #fff; }
.project-body { padding: 1.4rem 1.5rem 1.6rem; }
.project-body h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.project-body p { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 0.9rem; }
.project-meta { display: flex; gap: 1.2rem; font-size: 0.82rem; color: var(--text-soft); }
.project-meta strong { color: var(--ink); font-family: var(--font-head); }

/* Citati */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 4rem; line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block;
  margin-bottom: 0.2rem;
}
.quote p { font-size: 0.98rem; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; color: #fff;
  background: var(--grad-parking);
  flex: none;
}
.quote .who strong { display: block; font-size: 0.92rem; }
.quote .who span { font-size: 0.8rem; color: var(--text-soft); }

/* ============================================================
   Kontakt
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1rem; margin: 0 0 0.2rem; }
.contact-card p, .contact-card a.val { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.contact-card a.val:hover { color: var(--sky-deep); }

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.45rem; color: var(--ink); }
.field label .req { color: #DC2626; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.field .error-msg { display: none; color: #DC2626; font-size: 0.82rem; margin-top: 0.35rem; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #DC2626; }
.field.invalid .error-msg { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success.show { display: block; animation: popIn 0.5s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.form-success .check-ring {
  width: 72px; height: 72px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--grad-solar);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 15px 35px -10px rgba(22, 163, 74, 0.55);
}
.form-success .check-ring svg { width: 34px; height: 34px; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; filter: saturate(0.85); }

/* ============================================================
   CTA pojas
   ============================================================ */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: -40%;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.4), transparent 40%),
    radial-gradient(circle at 55% 20%, rgba(22, 163, 74, 0.3), transparent 40%);
  animation: ctaSpin 22s linear infinite;
  z-index: -1;
}
@keyframes ctaSpin { to { transform: rotate(360deg); } }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-band p { color: var(--text-inverse-soft); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .hero-actions { justify-content: center; }

/* ============================================================
   Podnožje
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--text-inverse-soft);
  padding: 4.5rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--text-inverse-soft); font-size: 0.95rem; transition: color 0.25s, padding-left 0.25s; }
.footer-grid a:hover { color: #fff; padding-left: 4px; }
.footer-about p { font-size: 0.93rem; max-width: 36ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
}
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: #4ADE80; }
.footer-credit a { color: #F59E0B; font-weight: 600; }
.footer-credit a:hover { color: #FBBF24; }

/* Nazad na vrh */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out), visibility 0.35s;
  z-index: 150;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   Scroll animacije (JS dodaje .visible)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity var(--speed) var(--ease-out),
    transform var(--speed) var(--ease-out),
    filter var(--speed) var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal[data-anim="left"] { transform: translateX(-48px); }
.reveal[data-anim="right"] { transform: translateX(48px); }
.reveal[data-anim="zoom"] { transform: scale(0.88); }
.reveal[data-anim="blur"] { filter: blur(10px); transform: translateY(20px); }
.reveal[data-anim="flip"] { transform: perspective(900px) rotateX(14deg) translateY(30px); }
.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger — JS postavlja --d na djecu */
[data-stagger] > * { --d: 0s; }

/* Linija koja se iscrtava */
.draw-line {
  height: 4px; border-radius: 4px;
  background: var(--grad-brand);
  width: 90px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out) 0.2s;
}
.reveal.visible .draw-line, .draw-line.visible { transform: scaleX(1); }

/* Parallax elementi — JS pomjera translate3d */
[data-parallax] { will-change: transform; }

/* Tilt kartice */
[data-tilt] { transform-style: preserve-3d; transition: transform 0.2s ease-out; }

/* ============================================================
   Preloader
   ============================================================ */
body.preloading { overflow: hidden; }
#preloader {
  position: fixed; inset: 0;
  z-index: 400;
  display: grid; place-items: center;
}
.preloader-skip #preloader { display: none; }

#preloader .shutter {
  position: absolute; left: 0;
  width: 100%; height: 51%;
  background: var(--ink);
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.18s;
}
.shutter--top { top: 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04); }
.shutter--bottom { bottom: 0; }
#preloader.done .shutter--top { transform: translateY(-102%); }
#preloader.done .shutter--bottom { transform: translateY(102%); }
#preloader.gone { display: none; }

.preloader-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  transition: opacity 0.4s ease, transform 0.55s var(--ease-out);
}
#preloader.done .preloader-content { opacity: 0; transform: scale(1.18); }

.preloader-glow {
  position: absolute; top: 42%; left: 50%;
  width: 430px; height: 430px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22), rgba(22, 163, 74, 0.12) 45%, transparent 70%);
  filter: blur(30px);
  animation: plGlow 3s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes plGlow {
  from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.preloader-logo { width: 132px; height: 132px; overflow: visible; }

.pl-ring {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation:
    plDraw 1.5s var(--ease-out) 0.15s forwards,
    plSpin 10s linear 1.7s infinite;
}
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plSpin { to { transform: rotate(360deg); } }

.pl-sun {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    plSunRise 1s var(--ease-out) 0.3s forwards,
    plSunPulse 2.6s ease-in-out 1.4s infinite;
}
@keyframes plSunRise {
  from { opacity: 0; transform: translateY(22px) scale(0.4); }
  to { opacity: 1; transform: none; }
}
@keyframes plSunPulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5)); }
  50% { filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.95)); }
}

.pl-panel { opacity: 0; animation: plUp 0.8s var(--ease-out) 0.55s forwards; }
@keyframes plUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.pl-swoosh {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: plDraw 1s var(--ease-out) 0.85s forwards;
}

.preloader-word {
  margin-top: 1.3rem;
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.75rem;
  letter-spacing: -0.02em;
  display: flex;
  overflow: hidden;
}
.preloader-word span {
  display: inline-block;
  transform: translateY(120%);
  animation: plWord 0.7s var(--ease-out) forwards;
}
.preloader-word .w-pro { color: #fff; animation-delay: 0.95s; }
.preloader-word .w-sup { color: #5EEA8D; animation-delay: 1.08s; }
@keyframes plWord { to { transform: translateY(0); } }

.preloader-progress {
  margin-top: 1.5rem;
  width: 210px; height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.preloader-bar {
  height: 100%; width: 100%;
  border-radius: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}
.preloader-pct {
  margin-top: 0.65rem;
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-inverse-soft);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  #preloader { display: none; }
}

/* ============================================================
   Smanjeno kretanje
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .marquee-track { animation: none; }
}
