:root {
  --dentico-primary: #0f4c75;       /* tamno plava */
  --dentico-primary-soft: #3282b8;  /* svjetlija plava */
  --dentico-mint: #3fd3c7;          /* mint */
  --dentico-green-soft: #8fd694;    /* blago zelena */
  --dentico-red: #dc2626;           /* crvena linija ispod menija */
  --dentico-text-main: #111827;     /* skoro crna */
  --dentico-text-muted: #6b7280;
  --dentico-bg: #f4f7fb;
  --shadow-header: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Da ne zavisi od drugih fajlova, damo mu osnovni font */
.topbar,
.site-header {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

/* ================= TOPBAR ================= */

.topbar {
  background: linear-gradient(90deg, var(--dentico-primary), var(--dentico-primary-soft));
  color: #ffffff;
  font-size: 13px;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-left span,
.topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5f4ff;
  text-decoration: none;
}

.topbar i {
  font-size: 12px;
}

/* ================= HEADER ================= */

.site-header {
  background: #ffffff;
  box-shadow: var(--shadow-header);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--dentico-primary-soft);
}



.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo lijevo */

.site-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.site-logo img {
  max-height: 100px;
  width: auto;
  display: block;
}

/* Desktop meni */

.site-nav {
  display: flex;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dentico-text-main);
  padding: 6px 0;
  position: relative;
}

/* Crvena linija ispod aktivne stavke i hover */

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 3px;
  width: 0;
  background: var(--dentico-red);
  border-radius: 999px;
  transition: width 0.18s ease;
}

.site-nav li.is-active a::after,
.site-nav a:hover::after {
  width: 100%;
}

/* Boja pri hoveru */

.site-nav a:hover {
  color: var(--dentico-primary);
}

/* ================= MOBILE TOGGLE ================= */

.nav-toggle {
  display: none; /* desktop: skriven */
  width: 38px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  cursor: pointer;
  padding: 6px 7px;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dentico-primary);
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Kad je nav otvoren, animiraj ikonicu u X */

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* ================= MOBILE NAV ================= */

.site-nav-mobile {
  display: none; /* desktop: skriven */
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.site-nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 12px;
  display: grid;
  gap: 6px;
}

.site-nav-mobile li {
  border-radius: 10px;
}

.site-nav-mobile a {
  display: block;
  padding: 9px 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dentico-text-main);
}

/* Active na mobile: boja + lijeva crvena linija */

.site-nav-mobile li.is-active a {
  border-left: 3px solid var(--dentico-red);
  padding-left: 12px;
  background: rgba(220, 38, 38, 0.04);
}

/* Kad se otvori nav na mobitelu */

body.nav-open .site-nav-mobile {
  max-height: 260px;
  opacity: 1;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header-inner {
    padding: 8px 14px;
  }

  .site-nav {
    display: none; /* sakrij desktop meni */
  }

  .nav-toggle {
    display: inline-flex; /* prikaži hamburger */
  }

  .site-nav-mobile {
    display: block;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    padding: 6px 10px;
  }

  .site-header-inner {
    padding: 8px 10px;
  }

  .site-logo img {
    max-height: 46px;
  }
}
