:root{
  --brand:#0F4FA8;
  --soft:#f6f8fc;
  --text:#1f2937;
  --header-offset: 96px; /* JS ga postavi točno */
}

.bg-soft{ background: var(--soft); color: var(--text); }
.brand{ letter-spacing: .2px; }

html{ scroll-behavior: smooth; }


/* Anchor offset (fallback).
   JS radi precizan scroll (header visina + mali GAP).
   Ovo je samo za slučaj da JS ne radi ili kod direktnog skrola na #hash.
*/
section[id],
.anchor-target{
  scroll-margin-top: var(--header-offset);
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .5rem .75rem;
  background: #000;
  color: #fff;
  z-index: 9999;
  border-radius: .5rem;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible{
  left: .75rem;
  top: .75rem;
}

/* Logo */
.brand-logo{
  height: 72px;
  width: auto;
  display:block;
  transition: height .3s ease;
}
@media (max-width: 420px){
  .brand-logo{ height: 52px; }
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform 0.35s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}
.site-header.is-hidden{ transform: translateY(-100%); }
.site-header.is-visible{ transform: translateY(0); }

/* Nav underline */
.navbar .nav-link{
  position: relative;
  color: rgba(31,41,55,.80);
}
.navbar .nav-link::after{
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .2rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  opacity: .75;
}
.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after{
  transform: scaleX(1);
}
.navbar .nav-link.is-active{
  color: rgba(31,41,55,1);
  font-weight: 600;
}
.navbar .nav-link.is-active::after{
  transform: scaleX(1);
  opacity: 1;
}

/* Reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* HERO */
.py-lg-6{ padding-top: 5rem; padding-bottom: 5rem; }

.hero-with-bg{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.hero-with-bg > .container{ position: relative; z-index: 2; }

.hero-card .kpi{
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.25);
}

.hero-bg{
  position: absolute;
  inset: -16px; /* manje agresivno */
  background-size: cover;
  background-position: 62% 30%;
  transform: translate3d(0,0,0) scale(1.02); /* manje povećanje */
  will-change: transform;
  filter: contrast(1.06) saturate(1.04); /* bez brightness */
}

/* Sprječava trzanje hero sekcije zbog promjene teksta */
.hero-with-bg .lead{
  min-height: 3.2em;   /* rezervira prostor za 2 linije */
}


.hero-bg-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 480px at 75% 45%, rgba(5,201,234,.12), rgba(5,201,234,0) 60%),
    linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 28%, rgba(255,255,255,.55) 55%, rgba(255,255,255,0) 85%);
}

.hero-with-bg .eyebrow{
  color: rgba(17,24,39,.75);
  font-weight: 500;
}
.hero-with-bg h1{
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.hero-with-bg .text-primary{ color: var(--brand) !important; }
.hero-with-bg .lead{
  color: #4b5563;
  font-weight: 500;
}
.btn-outline-primary{
  border: 2px solid rgba(15,79,168,.6);
  color: var(--brand);
  background: transparent;
}
.hero-with-bg .btn-primary:hover{
  background: #0c3f88;
  border-color: #0c3f88;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15,79,168,.35);
}

.hero-trust{
  margin-top: .75rem;
  color: rgba(31,41,55,.75);
  font-weight: 500;
}

.hero-card{
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 30px 70px rgba(0,0,0,.18);
  border-radius: 1.25rem;
}
/* Checks */
.hero-checks{
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero-checks li{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
}
.check-circle{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(5,201,234);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5,201,234,.35);
}
.check-circle svg{
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* KPI */
.kpi{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: .85rem;
  padding: .7rem .85rem;
  background: #fff;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.kpi-num{
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .35s ease;
}
.kpi-label{
  font-size: .88rem;
  color: rgba(31,41,55,.72);
  margin-top: .2rem;
}
.kpi.is-counting{
  transform: translateY(-2px);
  border-color: rgba(11,94,215,.20);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.kpi.is-counting .kpi-num{ transform: scale(1.03); }

/* Pulse dot */
.pulse-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(11,94,215,.5);
  animation: pulse 1.6s infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(11,94,215,.45); }
  70%{ box-shadow: 0 0 0 14px rgba(11,94,215,0); }
  100%{ box-shadow: 0 0 0 0 rgba(11,94,215,0); }
}

@media (min-width: 992px){
  .hero-with-bg .col-lg-7{ margin-top: -30px; }
}

/* Usluge - klikabilna kartica */
.service-link{
  display:block;
  color: inherit;
  text-decoration:none;
  cursor: pointer;
}
.service-link:hover{ color: inherit; text-decoration:none; }
.service-link .card{ height: 100%; }

.service-link:focus-visible .card{
  outline: 3px solid rgba(5,201,234,.35);
  outline-offset: 6px;
  border-radius: 1rem;
}

/* Usluge - premium ikone */
.service-icon-wrap{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(5,201,234);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(5,201,234,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-icon-wrap i{
  font-size: 20px;
  color: #ffffff;
}

/* Hover highlight (crta + lift + glow) */
#usluge .card{
  position: relative;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
#usluge .card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:100%;
  height:3px;
  background: var(--brand);
  opacity:0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease, opacity .25s ease;
}
#usluge .card:hover{
  background: rgba(11,94,215,.03);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,150,255,.18);
}
#usluge .card:hover::before{
  opacity:1;
  transform: scaleX(1);
}
#usluge .card h3{
  transition: color .25s ease;
}
#usluge .card:hover h3{ color: var(--brand); }

.service-card:hover .service-icon-wrap{
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(5,201,234,.45);
}

/* Checklist (Zašto) */
.checklist{
  padding-left: 1.1rem;
  margin: 0;
}
.checklist li{
  margin-bottom: .65rem;
}

/* Kontakt */
.contact-list{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.contact-name{
  font-weight: 600;
  color: rgba(31,41,55,.90);
  margin-bottom: .65rem;
}
.contact-item{
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.4rem 0;
  color: rgba(31,41,55,.86);
}
.contact-item a{
  color: var(--brand);
  text-decoration: none;
}
.contact-item a:hover{ text-decoration: underline; }
.contact-ico{
  width: 32px;
  height: 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(11,94,215,.10);
  color: var(--brand);
  font-size: 16px;
  flex: 0 0 32px;
}

/* mapa - malo niže na mobu */
@media (max-width: 991.98px){
  .ratio-21x9{ --bs-aspect-ratio: 56%; }
}

/* Footer */
.site-footer{
  background:
    radial-gradient(1200px 520px at 10% 0%, rgba(11,94,215,.18), rgba(0,0,0,0) 60%),
    linear-gradient(135deg, #172635 0%, #1f3444 55%, #223847 100%);
  color: rgba(255,255,255,.92);
}
.site-footer .container{ max-width: 1180px; }
.site-footer a{
  color: rgba(255,255,255,.90);
  text-decoration: none;
}
.site-footer a:hover{
  color: #ffffff;
  text-decoration: none;
}
.footer-brand-clean{
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .4px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.footer-sub{ font-size: .92rem; opacity: .78; }
.footer-title{
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: .9rem;
  color: rgba(255,255,255,.92);
}
.footer-muted{ color: rgba(255,255,255,.70); line-height: 1.55; }

.footer-list,
.footer-links{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.footer-list li,
.footer-links li{
  padding: .42rem 0;
  color: rgba(255,255,255,.84);
}
.footer-label{
  color: rgba(255,255,255,.62);
  margin-right: .35rem;
}
.footer-links a{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  position: relative;
  padding: .12rem 0;
}
.footer-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  height:2px;
  width:100%;
  background: rgba(11,94,215,.85);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  opacity: .85;
}
.footer-links a:hover::after{ transform: scaleX(1); }

.footer-bottom{
  background: rgba(0,0,0,.18);
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Scroll-to-top FAB */
.scroll-top-fab{
  position: fixed;
  right: 18px;
  bottom: calc(5px + env(safe-area-inset-bottom));
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgb(5,201,234);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 10px 26px rgba(11,94,215,.28);
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.scroll-top-fab:hover{
  transform: translateY(4px);
  box-shadow: 0 14px 30px rgba(11,94,215,.35);
}
.scroll-top-fab.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 420px){
  .scroll-top-fab{
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}

section[id],
.anchor-target{
  overflow-anchor: none;
}
/* ===============================
   Anchor offsets (FINAL)
   =============================== */
/* HERO – mobile focus na lice */
@media (max-width: 768px) {
  .hero-bg{
    background-position: 68% 25%;
  }
}


/* ===========================
   NOVOSTI – soft blue look
=========================== */

.novost-feature,
.novost-small {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(15,79,168,.03),
    rgba(5,201,234,.02)
  );
  border: 1px solid rgba(15,79,168,.08);
  transition: all .3s ease;
}

/* suptilan glow u pozadini */
.novost-feature::before,
.novost-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 300px at 80% 20%,
    rgba(15,79,168,.10),
    transparent 60%
  );
  opacity: .6; /* vidi se već po defaultu */
  transition: opacity .3s ease;
  pointer-events: none;
}

/* hover dodatno pojača */
.novost-feature:hover,
.novost-small:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(15,79,168,.18);
}

.novost-feature:hover::before,
.novost-small:hover::before {
  opacity: 1;
}

/* mala plava linija na feature članku */
.novost-feature::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #0F4FA8, #05c9ea);
}


