:root{
  --bg: #f5f7fb;
  --bg2: #eef3fb;
  --surface: #ffffff;
  --surface2: #f9fbff;

  --text: #0f172a;
  --muted: #475569;
  --muted2: #64748b;

  --stroke: rgba(15, 23, 42, .10);
  --stroke2: rgba(15, 23, 42, .08);

  --primary: #1d4ed8;
  --primary2:#2563eb;
  --accent:  #10b981;
  --accent2: #06b6d4;

  --shadow: 0 12px 30px rgba(15, 23, 42, .10);
  --shadow2: 0 6px 18px rgba(15, 23, 42, .08);

  --radius: 16px;
  --radius2: 22px;

  --container: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(29,78,216,.12), transparent 60%),
    radial-gradient(900px 420px at 85% -10%, rgba(16,185,129,.10), transparent 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 60%, #ffffff 100%);
}

a{ color: inherit; text-decoration: none; }
.container{ width:min(var(--container), calc(100% - 36px)); margin:0 auto; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke2);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}
.topbar__note{ color: var(--muted); font-size: 13px; }
.topbar__contacts{ display:flex; align-items:center; gap:10px; color: var(--muted); font-size: 13px; }
.topbar__link{ color: var(--primary); font-weight: 600; }
.dot{ opacity:.45; }

/* Header */
.header{
  position: sticky;
  top: 41px;
  z-index: 55;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke2);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 200px;
}
.brand__logo{
  height: 64px;       /* realna veličina za header */
  width: auto;
  display: block;
  object-fit: contain;
}
.brand__text{
  display:flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__text strong{ font-size: 15px; }
.brand__text small{ color: var(--muted2); }

.nav{
  display:flex;
  gap: 10px;
  align-items:center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .03);
  border: 1px solid var(--stroke2);
}
.nav__link{
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 160ms ease;
  font-weight: 650;
}
.nav__link:hover{
  background: rgba(29,78,216,.08);
  color: var(--primary);
}
.nav__link.is-active{
  background: linear-gradient(135deg, rgba(29,78,216,.14), rgba(16,185,129,.10));
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(29,78,216,.10);
}

.header__cta{ display:flex; gap: 10px; align-items:center; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary2), var(--primary));
  border: 1px solid rgba(29,78,216,.18);
  color: white;
  box-shadow: 0 12px 26px rgba(29,78,216,.18);
  cursor:pointer;
  transition: 160ms ease;
  font-weight: 750;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.btn:active{ transform: translateY(0px); }

.btn--ghost{
  background: rgba(29,78,216,.06);
  border: 1px solid rgba(29,78,216,.18);
  color: var(--primary);
  box-shadow: none;
}
.btn--ghost:hover{ background: rgba(29,78,216,.10); }

/* Burger */
.burger{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .03);
  border: 1px solid var(--stroke2);
  cursor:pointer;
}
.burger span{
  display:block;
  height: 2px;
  width: 20px;
  margin: 5px auto;
  background: rgba(15, 23, 42, .72);
  border-radius: 99px;
}

/* Mobile nav */
.mobileNav{
  border-top: 1px solid var(--stroke2);
  background: rgba(255,255,255,.96);
}
.mobileNav__link{
  display:block;
  padding: 14px 18px;
  color: var(--text);
  border-bottom: 1px solid var(--stroke2);
  font-weight: 650;
}
.mobileNav__link:hover{
  background: rgba(29,78,216,.06);
  color: var(--primary);
}
.mobileNav__divider{
  height: 10px;
  background: rgba(15, 23, 42, .03);
  border-bottom: 1px solid var(--stroke2);
}

/* Sections */
.section{ padding: 56px 0; }
.section__head{ margin-bottom: 18px; }
.section__head h2{
  margin: 0 0 8px;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.section__head p{
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

/* Hero */
.hero{ padding-top: 30px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: start;
}
.hero__content h1{
  margin:0 0 12px;
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: -0.03em;
}
.lead{
  color: var(--muted);
  font-size: 16.8px;
  line-height: 1.7;
  margin:0 0 18px;
}
.hero__actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.fineprint{ margin-top: 14px; color: var(--muted2); font-size: 13px; }

/* Slider */
.slider{
  background: var(--surface);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius2);
  padding: 14px;
  box-shadow: var(--shadow);
}
.slider__frame{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9; /* veći i moderniji */
  border: 1px solid var(--stroke2);
}
.slider__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  filter: saturate(1.03) contrast(1.02);
  opacity: 1;
  transition: opacity 320ms ease;
}
.slider__overlay{
  position:absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.00) 0%, rgba(0,0,0,.45) 90%);
  display:flex;
  align-items:flex-end;
  padding: 12px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.65);
  color: #0f172a;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 12px 22px rgba(0,0,0,.18);
}

.slider__controls{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}
.iconBtn{
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(15, 23, 42, .03);
  color: rgba(15, 23, 42, .88);
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
  transition: 160ms ease;
}
.iconBtn:hover{
  border-color: rgba(29,78,216,.25);
  background: rgba(29,78,216,.08);
  transform: translateY(-1px);
  color: var(--primary);
}

.dots{
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:center;
  flex:1;
}
.dotBtn{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(29,78,216,.25);
  background: rgba(29,78,216,.10);
  cursor:pointer;
  transition: 180ms ease;
}
.dotBtn.is-active{
  width: 28px;
  background: linear-gradient(90deg, rgba(29,78,216,.85), rgba(16,185,129,.70));
  border-color: rgba(29,78,216,.45);
}

/* Tiles ispod hero-a */
.tilesGrid{
  width: 100%;
  max-width: 1100px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile{
  background: var(--surface);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow2);
  min-height: 170px;
}
.tile h3{
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  font-size: 16px;
}
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 6px 0; }

/* Panel / form */
.panel{
  background: var(--surface);
  border: 1px solid var(--stroke2);
  border-radius: var(--radius2);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.form .grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field{ display:flex; flex-direction: column; gap: 8px; }
label{ font-weight: 750; color: rgba(15, 23, 42, .92); }
input, select{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: var(--surface2);
  color: var(--text);
  outline: none;
  transition: 140ms ease;
}
input::placeholder{ color: rgba(100,116,139,.80); }
input:focus, select:focus{
  border-color: rgba(29,78,216,.35);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
  background: #ffffff;
}
.hint{ color: var(--muted2); font-size: 12.5px; }

.form__footer{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--stroke2);
}
.check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: var(--muted);
  max-width: 70ch;
  font-size: 14px;
}
.check input{ margin-top: 3px; accent-color: var(--primary); }

.form__actions{ display:flex; gap: 10px; align-items:center; }

.alert{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(29,78,216,.06);
  color: var(--text);
  font-weight: 650;
}
.alert.is-error{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
}
.alert.is-success{
  border-color: rgba(16,185,129,.28);
  background: rgba(16,185,129,.10);
}

/* About */
.aboutGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contactBox{ display:grid; gap: 10px; margin-top: 10px; }
.contactRow{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: var(--surface2);
}
.contactRow .k{ color: var(--muted2); font-weight: 650; }
.contactRow .v{ color: var(--text); font-weight: 700; }

.footer{
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke2);
  color: var(--muted2);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .header__cta{ display:none; }
  .tilesGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  .nav{ display:none; }
  .burger{ display:block; }
  .form .grid{ grid-template-columns: 1fr; }
  .aboutGrid{ grid-template-columns: 1fr; }
  .tilesGrid{ grid-template-columns: 1fr; }
}

/* Loading stanje za submit dugme */
.btn.is-loading {
  position: relative;
  pointer-events: none; /* dodatno osiguranje */
  opacity: 0.9;
  padding-right: 44px; /* mjesto za spinner */
}

/* spinner */
.btn.is-loading::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: rgba(255,255,255,1);
  animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Ako je ghost dugme, spinner neka bude plav (da se vidi na svijetloj pozadini) */
.btn--ghost.is-loading::after {
  border-color: rgba(29,78,216,.35);
  border-top-color: rgba(29,78,216,1);
}
