/* Mobile-first, tamna tema. Boje i fontovi dolaze iz brand.json kao CSS varijable (vidi <style> u index.html). */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--font-tekst);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tekst);
  background: var(--pozadina);
  padding-bottom: 4.75rem; /* mjesto za sticky CTA na mobitelu */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-naslovi); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 9vw, 4.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--akcent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--povrsina); color: var(--tekst); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

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

/* ---------- dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px;
  padding: .8rem 1.5rem;
  border-radius: .5rem;
  background: var(--primarna);
  color: var(--primarna-tekst);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--primarna);
  transition: background-color .2s ease, border-color .2s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn--ghost { background: rgb(11 13 16 / .55); border-color: rgb(242 244 247 / .45); color: var(--tekst); }
.btn--ghost:hover { border-color: var(--tekst); filter: none; }
.btn--small { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }

/* ---------- zaglavlje ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 13 16 / .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / .07);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand {
  font-family: var(--font-naslovi); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em;
  color: var(--tekst); text-decoration: none;
}
.brand span { color: var(--akcent); }
.top__nav, .top .btn--small { display: none; }
.top__nav a { color: var(--prigusen); text-decoration: none; font-size: .95rem; font-weight: 600; }
.top__nav a:hover { color: var(--tekst); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88svh, 46rem);
  display: flex; align-items: flex-end;
  padding: 7rem 0 2.75rem;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(11 13 16 / .35) 0%, rgb(11 13 16 / .6) 40%, rgb(11 13 16 / .97) 85%),
    radial-gradient(ellipse at 15% 100%, rgb(26 95 224 / .28), transparent 60%);
}
.eyebrow, .kicker {
  color: var(--akcent); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem;
}
.lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--tekst); max-width: 34rem; opacity: .92; }
.hero__actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.hero__actions .btn { width: 100%; }

/* ---------- sekcije ---------- */
.section { padding: 4rem 0; }
.section--alt { background: var(--povrsina); }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.step { border-top: 1px solid rgb(255 255 255 / .12); padding-top: 1.25rem; }
.step__num { display: block; font-family: var(--font-naslovi); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--akcent); margin-bottom: .75rem; }
.step p { color: var(--prigusen); }

.cards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.card {
  background: var(--pozadina); border: 1px solid rgb(255 255 255 / .07);
  border-radius: .75rem; padding: 1.4rem 1.4rem .6rem;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--primarna); }
.card p { color: var(--prigusen); }
.note { margin: 2rem 0 0; color: var(--prigusen); }
.note a { font-weight: 700; }

.split { display: grid; gap: 2.25rem; align-items: center; }
.split__img { margin: 0; }
.split__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .75rem; }
.reasons { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.reasons li { padding: 1.1rem 0 .3rem 1.25rem; border-left: 2px solid var(--primarna); margin-bottom: 1rem; }
.reasons p { color: var(--prigusen); }

.contact { display: grid; gap: 2.5rem; }
.contact__intro { color: var(--prigusen); max-width: 32rem; }
.contact__list { list-style: none; padding: 0; margin: 0; align-self: center; }
.contact__list li { padding: .9rem 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
.contact__list a { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
.label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--prigusen); }

/* ---------- podnožje ---------- */
.foot { padding: 2.5rem 0; background: var(--pozadina); border-top: 1px solid rgb(255 255 255 / .07); color: var(--prigusen); font-size: .92rem; }
.foot p { margin: .35rem 0; }
.foot a { color: var(--prigusen); overflow-wrap: anywhere; }
.foot a:hover { color: var(--tekst); }
.brand--foot { font-size: 1.1rem; margin-bottom: .75rem; }

/* ---------- sticky CTA (samo mobitel) ---------- */
.sticky-cta {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 20;
  min-height: 54px; display: flex; align-items: center; justify-content: center;
  border-radius: .6rem; background: var(--primarna); color: var(--primarna-tekst);
  font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgb(0 0 0 / .45);
  transition: transform .2s ease;
}
.sticky-cta.is-hidden { transform: translateY(160%); }

@media (min-width: 600px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .top .btn--small { display: inline-flex; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .section { padding: 5.5rem 0; }
}

@media (min-width: 960px) {
  .top__nav { display: flex; gap: 1.75rem; margin-left: auto; margin-right: 1.5rem; }
  .hero { min-height: min(86vh, 48rem); align-items: center; padding: 6rem 0; }
  .hero__bg { object-position: 50% 50%; }
  .hero::after {
    background:
      linear-gradient(90deg, rgb(11 13 16 / .97) 0%, rgb(11 13 16 / .85) 35%, rgb(11 13 16 / .25) 75%, rgb(11 13 16 / .1) 100%),
      linear-gradient(0deg, rgb(11 13 16 / .9) 0%, transparent 30%);
  }
  .hero__in > * { max-width: 36rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta, .btn { transition: none; }
}
