/* ==========================================================
   Knjigovodstvo Dervi: landing page
   Boje i tipografija su definisane kao varijable ispod,
   kako bi ih kasnije plugin mogao mijenjati iz admina.
   ========================================================== */

:root {
  --ink: #0F1E2E;
  --ink-2: #1C3046;
  --ink-soft: #3A4A5C;
  --muted: #5E6A78;
  --paper: #F6F4EF;
  --paper-2: #EFECE4;
  --surface: #FFFFFF;
  --line: #E3DFD5;
  --accent: #0E7C66;
  --accent-dark: #0A6352;
  --accent-soft: #E2F1EB;
  --gold: #C29B3E;
  --hero-accent: #4FD1AE; /* svijetla zelena za tekst na tamnoj podlozi */

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Fraunces", Georgia, serif;

  --radius: 4px;
  --radius-sm: 3px;
  --shadow-sm: 0 1px 2px rgba(15,30,46,.06), 0 2px 8px rgba(15,30,46,.04);
  --shadow: 0 2px 4px rgba(15,30,46,.04), 0 12px 32px rgba(15,30,46,.08);
  --shadow-lg: 0 4px 8px rgba(15,30,46,.04), 0 24px 60px rgba(15,30,46,.14);

  --container: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.ic {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100;
}
.skip:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic { transform: translateX(3px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(14,124,102,.25); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(14,124,102,.3); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); }
.btn--light .ic, .btn--light:hover .ic { transform: none; }

.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.3); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Eyebrow / tags ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.pill {
  margin-left: auto;
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo__img { display: block; height: 46px; width: auto; }
/* Na tamnom footeru logo je bijel */
.logo--light .logo__img { filter: brightness(0) invert(1); opacity: .92; }

/* ---------- Header ---------- */
/* Tamni header se nastavlja u tamni hero (isti stil kao stranica za održavanje) */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(15,30,46,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: border-color .2s, background .2s;
}
.header.is-scrolled { border-bottom-color: rgba(255,255,255,.08); background: rgba(15,30,46,.96); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.header .logo__img { filter: brightness(0) invert(1); opacity: .95; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.72);
  transition: color .2s, background .2s;
}
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.nav__mobile-cta { display: none; }
.nav a { white-space: nowrap; }

/* Padajući meni (npr. Izvještaji): otvara se kad se pređe mišem ili na klik */
.nav__item { position: relative; }
.nav__parent {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 0; border-radius: var(--radius-sm);
  background: none;
  font-size: 15px; font-weight: 500; line-height: inherit; color: rgba(255,255,255,.72);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__parent::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.nav__parent:hover, .nav__item:hover .nav__parent, .nav__item.is-open .nav__parent { color: #fff; background: rgba(255,255,255,.08); }
.nav__item.is-open .nav__parent::after { transform: translateY(1px) rotate(-135deg); }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 280px; padding: 8px;
  background: #132538;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover .nav__sub, .nav__item.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav .nav__sub a { display: block; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; white-space: normal; color: rgba(255,255,255,.8); }
.nav .nav__sub a:hover { color: #fff; background: rgba(255,255,255,.08); }
/* Stavka s linkom i podmenijem (npr. Usluge): klik na naziv otvara stranicu, strelica otvara podmeni */
.nav__item--link { display: flex; align-items: stretch; border-radius: var(--radius-sm); transition: background .2s; }
.nav .nav__item--link a.nav__parent, .nav .nav__item--link a.nav__parent:hover { padding-right: 2px; background: none; }
.nav__item--link .nav__parent::after { content: none; }
.nav__expand {
  display: grid; place-items: center;
  width: 28px; padding: 0 10px 0 4px; margin: 0;
  border: 0; border-radius: var(--radius-sm); background: none;
  color: rgba(255,255,255,.72);
  transition: color .2s;
}
.nav__expand::before {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.nav__item--link:hover, .nav__item--link.is-open { background: rgba(255,255,255,.08); }
.nav__item--link:hover .nav__expand, .nav__item--link.is-open .nav__expand { color: #fff; }
.nav__item.is-open .nav__expand::before { transform: translateY(1px) rotate(-135deg); }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; }
.header__phone .ic { width: 17px; height: 17px; color: var(--hero-accent); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff;
  place-items: center;
}
.nav-toggle .ic--close { display: none; }
.nav-open .nav-toggle .ic--open { display: none; }
.nav-open .nav-toggle .ic--close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, #0F1E2E 0%, #0B1724 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  width: 760px; height: 760px; right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(14,124,102,.38), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center;
}
.hero .eyebrow { color: var(--hero-accent); }
.hero .dot { background: var(--hero-accent); box-shadow: 0 0 0 4px rgba(79,209,174,.18); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.hero h1 em { display: inline; font-weight: 500; color: var(--hero-accent); }
.lead { margin-top: 24px; font-size: 19px; color: var(--ink-soft); max-width: 540px; }
.hero .lead { color: rgba(255,255,255,.72); }
.hero .lead em { color: var(--hero-accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.22); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.hero .btn--primary { box-shadow: 0 8px 24px rgba(14,124,102,.45); }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px;
  font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.78);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ic {
  width: 20px; height: 20px; padding: 3px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; stroke-width: 3;
}

/* Hero visual */
.hero__visual { position: relative; min-height: 600px; }

.card-doc {
  position: absolute; top: 20px; left: 4%; right: 12%;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  border: 1px solid rgba(15,30,46,.05);
}
.card-doc__head { display: flex; align-items: center; gap: 14px; }
.card-doc__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
}
.card-doc__title { font-weight: 700; font-size: 16px; }
.card-doc__sub { font-size: 13px; color: var(--muted); }
.card-doc__rows { margin-top: 22px; border-top: 1px solid var(--line); }
.card-doc__rows li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
.ok {
  width: 22px; height: 22px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.ok .ic { width: 13px; height: 13px; stroke-width: 3; }
.card-doc__opinion {
  margin-top: 18px; padding: 14px 16px;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: var(--radius-sm); background: var(--paper);
  font-size: 13.5px; color: var(--muted);
}
.card-doc__opinion strong { color: var(--accent); font-size: 15px; }
.card-doc__sign { margin-top: 18px; display: flex; gap: 14px; align-items: center; }
.sig {
  font-family: var(--font-accent); font-style: italic; font-size: 20px; color: var(--ink-2);
  border-bottom: 1px solid var(--line); padding: 0 24px 4px 0;
}
.stamp {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 50%;
  width: 56px; height: 56px; display: grid; place-items: center; font-size: 10px;
  transform: rotate(-14deg); opacity: .75;
}

.card-chart {
  position: absolute; right: 0; bottom: 0;
  width: 230px;
  background: #162B40; color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: float 7s ease-in-out infinite;
}
.card-chart__label { font-size: 12.5px; color: rgba(255,255,255,.6); }
.card-chart__value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.card-chart__value small { font-size: 13px; font-weight: 500; color: #7fd6bf; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 86px; margin-top: 14px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 2px 2px 0 0;
  background: rgba(255,255,255,.14);
}
.bars span:last-child { background: linear-gradient(180deg, #2fb592, var(--accent)); }

.card-badge {
  position: absolute; left: -2%; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 14px 14px;
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  font-size: 14px;
  animation: float 7s ease-in-out infinite -3.5s;
}
.card-badge__icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.card-badge strong { display: block; font-size: 14px; }
.card-badge span { color: var(--muted); font-size: 12.5px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */
/* Svijetla traka: jasno odvaja tamni hero od ostatka stranice */
.stats { background: var(--surface); color: var(--ink); padding: 56px 0; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { padding-left: 24px; border-left: 2px solid var(--accent-soft); }
.stat__num { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.stat__num span { font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
.stat__label small { font-weight: 400; color: var(--muted); font-size: 13.5px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--paper-2); }
.section--tight { padding: 80px 0; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.section__intro { margin-top: 20px; font-size: 18px; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- Services ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  padding: 9px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 22px;
  transition: background .25s, color .25s;
}
.service__icon .ic { width: 24px; height: 24px; }
.service:hover .service__icon { background: var(--accent); color: #fff; }
.service .tag {
  position: absolute; top: 28px; right: 28px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.service.is-hidden { display: none; }

/* Kartica s linkom: cijela kartica je klikabilna */
.service__more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--accent);
}
.service__more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service__more .ic { width: 17px; height: 17px; transition: transform .2s; }
.service--link:hover .service__more .ic { transform: translateX(3px); }

/* Istaknuta široka kartica (npr. Virtuelni office) */
.service--featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1.15fr 1fr;
  padding: 0; overflow: hidden;
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.service--featured .service__body { padding: 32px; }
.service--featured .service__icon { background: rgba(79,209,174,.14); color: var(--hero-accent); }
.service--featured:hover .service__icon { background: var(--accent); color: #fff; }
.service--featured .tag {
  top: 32px; right: auto; left: calc(32px + 52px + 14px); margin-top: 15px;
  padding: 3px 8px; border-radius: var(--radius-sm);
  background: var(--hero-accent); color: var(--ink);
}
.service--featured h3 { font-size: 24px; }
.service--featured p { color: rgba(255,255,255,.72); }
.service--featured .service__more { color: var(--hero-accent); }
.service__img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: start; }
.about__copy > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-soft); }
.about__copy h2 { margin-bottom: 8px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 40px; }
.values li { display: flex; gap: 14px; }
.values__icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface); color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.values strong { display: block; font-size: 16px; margin-bottom: 2px; }
.values span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

.timeline {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.timeline::before {
  content: ""; position: absolute; left: 63px; top: 52px; bottom: 52px;
  width: 2px; background: linear-gradient(var(--line), var(--accent));
}
.timeline__item { position: relative; display: flex; gap: 28px; padding: 14px 0; }
.timeline__year {
  position: relative; z-index: 1;
  width: 86px; flex-shrink: 0; align-self: flex-start;
  font-weight: 800; font-size: 15px; color: var(--ink);
  background: var(--surface);
  padding: 2px 0;
}
.timeline__item strong { display: block; font-size: 16.5px; }
.timeline__item p { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.timeline__item.is-now .timeline__year {
  color: #fff; background: var(--accent); border-radius: var(--radius-sm); text-align: center; width: 64px; margin-right: 22px;
}
.timeline__item:not(.is-now) .timeline__year { width: 64px; margin-right: 22px; text-align: center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding: 32px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step__num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent); color: var(--accent);
  font-weight: 700; font-size: 15px;
  margin-bottom: 22px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 55px; right: -21px;
  width: 22px; height: 1.5px; background: var(--accent); opacity: .4;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- Clients ---------- */
.clients { padding: 64px 0 80px; border-top: 1px solid var(--line); background: var(--paper); }
.clients__title { text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 32px; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 16px; width: max-content;
  padding: 4px 0;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }

/* Logotipi klijenata: ista kartica, isti okvir, sivi tonovi → boja na hover */
.client {
  flex: 0 0 auto;
  width: 184px; height: 96px;
  display: grid; place-items: center;
  padding: 18px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s;
}
.client img {
  max-width: 100%; max-height: 52px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: .72;
  mix-blend-mode: multiply;
  transition: filter .3s, opacity .3s;
}
/* Svijetli logotipi na prozirnoj podlozi: tamna silueta da budu jednako čitljivi */
.client--solid img { filter: grayscale(1) brightness(0); opacity: .62; }
.client--deep img { filter: grayscale(1) brightness(.55) contrast(1.4); }
.client:hover { border-color: transparent; box-shadow: var(--shadow); }
.client:hover img { filter: none; opacity: 1; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head p:not(.eyebrow) { margin-top: 20px; color: var(--ink-soft); }
.faq__head a { color: var(--accent); font-weight: 600; }
.faq__list { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.8px 12px no-repeat,
    var(--paper);
  transition: transform .25s, background-color .25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 0; background: linear-gradient(var(--paper-2) 50%, var(--paper) 50%); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 56px;
  position: relative; overflow: hidden;
}
.cta__inner::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,181,146,.35), transparent 70%);
}
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { margin-top: 10px; color: rgba(255,255,255,.7); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta__actions .ic { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact__intro > .muted { margin-top: 20px; font-size: 18px; }
.quick { display: grid; gap: 14px; margin-top: 36px; }
.quick li { display: flex; align-items: center; gap: 16px; }
.quick__icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.quick small { display: block; font-size: 13px; color: var(--muted); }
.quick a { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; transition: color .2s; }
.quick a:hover { color: var(--accent); }

.contact__form-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit; font-size: 15.5px; font-weight: 400; color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235E6A78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 44px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form .is-invalid { border-color: #C2453D; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }
.form__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--accent-dark); }
.form__success {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: 15px;
}
.form__success[hidden] { display: none; }
.form__error {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: #FBEDEC; color: #9E2F28; font-weight: 600; font-size: 15px;
}
.form__error[hidden] { display: none; }
/* Skriveno polje protiv spama (ljudi ga ne vide) */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-loading { opacity: .7; cursor: progress; }

.branches { margin-top: 88px; }
.branches__title { font-size: 24px; margin-bottom: 24px; }
.branches__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.location {
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.location h4 { font-size: 17px; margin-bottom: 12px; letter-spacing: -0.01em; }
.location__meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}.location__badge {
  display: inline-block; align-self: flex-start;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px; border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.location__line {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
  font-size: 14.5px; color: var(--ink-soft);
  transition: color .2s;
  overflow-wrap: anywhere;
}
.location__line:hover { color: var(--accent); }
.location__line .ic { width: 17px; height: 17px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 72px 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand p { margin-top: 18px; max-width: 320px; color: rgba(255,255,255,.6); }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer li { overflow-wrap: anywhere; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.45);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal-links a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.footer__legal-links a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-chart, .card-badge, .marquee__track { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1240px) {
  .header__phone { display: none; }
  .header__inner { gap: 20px; }
  .nav { gap: 0; }
  .nav a:not(.btn), .nav__parent { padding: 8px 10px; }
}

@media (max-width: 1080px) {
  .hero__grid { gap: 40px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .about, .faq, .contact { gap: 48px; }
  .branches__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: grid; }
  .header__actions { margin-left: auto; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 2px;
    padding: 16px 24px 24px;
    background: #0F1E2E;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 12px; font-size: 17px; border-radius: var(--radius-sm); }
  .nav__mobile-cta { display: inline-flex; margin-top: 10px; }
  .nav__parent { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 17px; }
  .nav__sub {
    position: static; display: none; min-width: 0;
    padding: 0 0 6px 12px; border: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__sub::before { display: none; }
  .nav__item.is-open .nav__sub { display: block; }
  .nav .nav__sub a { font-size: 16px; color: rgba(255,255,255,.7); }
  .nav__item--link { flex-wrap: wrap; }
  .nav__item--link:hover { background: none; }
  .nav .nav__item--link a.nav__parent { flex: 1; width: auto; }
  .nav__expand { width: 52px; padding: 0; }
  .nav__item--link .nav__sub { flex-basis: 100%; }

  .hero { padding: 40px 0 72px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 460px; max-width: 520px; width: 100%; margin-inline: auto; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }

  .section { padding: 80px 0; }
  .about, .faq, .contact { grid-template-columns: 1fr; }
  .branches { margin-top: 64px; }
  .faq__head { position: static; }
  .cta__inner { flex-direction: column; align-items: flex-start; padding: 44px 32px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .logo__img { height: 38px; }
  .lead { font-size: 17px; }
  .hero__cta .btn { flex: 1 1 100%; }

  .hero { padding-bottom: 48px; }
  .hero__visual { min-height: 0; padding-bottom: 56px; }
  .card-doc { position: relative; top: 0; left: 0; right: 0; padding: 20px; }
  .card-doc__sub { font-size: 12.5px; }
  .card-chart { display: none; }
  .card-badge { left: auto; right: 12px; bottom: 0; }

  .services, .steps, .values { grid-template-columns: 1fr; }
  .service { padding: 24px; }
  .service--featured { grid-column: auto; grid-template-columns: 1fr; padding: 0; }
  .service--featured .service__body { padding: 24px; }
  .service.service--featured .tag { top: 24px; right: auto; left: calc(24px + 52px + 14px); }
  .service__img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .service .tag { top: 24px; right: 24px; }
  .stat { padding-left: 16px; }

  .quick a { font-size: 16.5px; }
  .client { width: 150px; height: 80px; padding: 14px 20px; }
  .client img { max-height: 44px; }
  .branches__grid { grid-template-columns: 1fr; }

  .contact__form-wrap { padding: 28px 20px; border-radius: var(--radius); }
  .form__row { grid-template-columns: 1fr; }
  .timeline { padding: 28px 20px; }
  .timeline::before { left: 51px; }
  .timeline__item { gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}
