/* ==========================================================================
   UNLIMITED.RS — Glavni meni, mega meni, provera domena, mobilni meni (redizajn 2026-10)
   Markup: inc/ut-header.php · Ponašanje: js/nav.js
   Sve je pod .ut-hb / .ut-mnav (i sa bar dve klase) da stari main.css/custom.css/style.css ne bi pregazili.
   ========================================================================== */

.ut-hb,
.ut-mnav {
	--ut-ink: #1d2b3a;
	--ut-nav-ink: #24394f;
	--ut-brand: #025697;
	--ut-accent: #1583d2;
	--ut-accent-hover: #289aea;
	--ut-muted: #66788c;
	--ut-line: #e4ebf2;
	--ut-soft: #f0f5f9;
	--ut-chip: #e8f2fc;
	--ut-shadow: 0 2px 6px rgba(0, 41, 74, .06), 0 24px 48px -20px rgba(0, 41, 74, .35);
}

.ut-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- reset za dugmad, linkove, liste (stari CSS ih stilizuje globalno) ---------- */
.ut-hb .ut-btn,
.ut-mnav .ut-btn {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	font-weight: normal;
	letter-spacing: 0;
	text-transform: none;
	text-align: left;
	cursor: pointer;
}
.ut-hb a,
.ut-mnav a {
	text-decoration: none;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.ut-hb ul,
.ut-hb li,
.ut-mnav ul,
.ut-mnav li {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}
.ut-hb a:focus-visible,
.ut-hb button:focus-visible,
.ut-mnav a:focus-visible,
.ut-mnav button:focus-visible {
	outline: 2px solid var(--ut-accent);
	outline-offset: 2px;
	border-radius: 6px;
}
.ut-hb .ut-ico,
.ut-mnav .ut-ico {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- traka sa logom ---------- */
.header .header-bottom {
	height: 96px;
	transition: height .2s ease, box-shadow .2s ease;
}
.header.fix-it .header-bottom {
	height: 72px;
	box-shadow: 0 1px 0 rgba(0, 41, 74, .06), 0 10px 24px -16px rgba(0, 41, 74, .45);
}

.header .ut-hb {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 100%;
	font-family: 'robotoregular', Roboto, Arial, sans-serif;
}
.header .ut-hb:before,
.header .ut-hb:after { display: none; } /* bootstrap clearfix bi bio flex stavka */

.header .ut-hb .logo { flex: none; padding: 0; }
.header .ut-hb .logo a { display: block; }
.header .ut-hb .logo img,
.header.fix-it .ut-hb .logo img {
	display: block;
	width: auto;
	max-width: none;
	max-height: none;
	height: 76px;
	transition: height .2s ease;
}
.header.fix-it .ut-hb .logo img { height: 56px; }

/* ---------- glavni meni (desktop) ---------- */
.ut-hb .ut-nav {
	position: relative;
	display: flex;
	align-self: stretch;
}
.ut-hb .ut-nav__list {
	display: flex;
	align-items: stretch;
	gap: 2px;
	margin-right: -10px;
}
.ut-hb .ut-nav__item {
	position: relative;
	display: flex;
	align-items: center;
}
.ut-hb .ut-nav__item.is-mega { position: static; } /* mega panel se kači za ceo meni */

.ut-hb .ut-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 12px;
	color: var(--ut-nav-ink);
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 20px;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ut-hb .has-panel > a.ut-nav__link { padding-right: 2px; }
.ut-hb .ut-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 40px;
	padding: 0 8px 0 2px;
	color: var(--ut-nav-ink);
	border-radius: 6px;
}
.ut-hb .ut-nav__toggle--full { cursor: pointer; }

.ut-hb .ut-nav__item:hover > .ut-nav__link,
.ut-hb .ut-nav__item:hover > .ut-nav__toggle,
.ut-hb .ut-nav__item.is-open > .ut-nav__link,
.ut-hb .ut-nav__item.is-open > .ut-nav__toggle,
.ut-hb .ut-nav__link:focus,
.ut-hb .ut-nav__item.is-current > .ut-nav__link {
	color: var(--ut-brand);
}

.ut-hb .ut-ico--chev {
	width: 15px;
	height: 15px;
	opacity: .65;
	transition: transform .15s ease;
}
.ut-hb .ut-nav__item.is-open .ut-ico--chev { transform: rotate(180deg); opacity: 1; }

/* trenutna stranica: tanka linija ispod naziva */
.ut-hb .ut-nav__item.is-current > .ut-nav__link:after {
	content: '';
	position: absolute;
	left: 12px;
	right: 2px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--ut-brand);
}
.ut-hb .ut-nav__item:not(.has-panel).is-current > .ut-nav__link:after { right: 12px; }

/* ---------- paneli ---------- */
.ut-hb .ut-nav__panel {
	position: absolute;
	top: calc(100% - 14px);
	left: 0;
	z-index: 30;
	background: #fff;
	color: var(--ut-ink);
	border: 1px solid var(--ut-line);
	border-radius: 14px;
	box-shadow: var(--ut-shadow);
	text-align: left;
	white-space: normal;
}
.ut-hb .ut-nav__panel:before { /* most preko razmaka, da hover ne "propadne" */
	content: '';
	position: absolute;
	left: 0; right: 0;
	top: -16px;
	height: 16px;
}
.ut-hb .ut-nav__panel.is-flip { left: auto; right: 0; }
.ut-hb .ut-panel--mega { left: auto; right: 0; }
.ut-hb .ut-nav__item.is-open > .ut-nav__panel { animation: ut-nav-pop .16s ease-out; }
@keyframes ut-nav-pop {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

/* redovi sa ikonicom (mega + bogat padajući meni) */
.ut-hb .ut-row {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--ut-ink);
}
.ut-hb .ut-row:hover,
.ut-hb .ut-row:focus { background: var(--ut-soft); color: var(--ut-ink); }
.ut-hb .ut-row__ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--ut-chip);
	color: var(--ut-accent);
	transition: background-color .15s ease, color .15s ease;
}
.ut-hb .ut-row:hover .ut-row__ic { background: var(--ut-accent); color: #fff; }
.ut-hb .ut-row__ic .ut-ico { width: 20px; height: 20px; }
.ut-hb .ut-row__body { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.ut-hb .ut-row__name {
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 20px;
	color: var(--ut-ink);
}
.ut-hb .ut-row:hover .ut-row__name { color: var(--ut-brand); }
.ut-hb .ut-row__desc {
	margin-top: 2px;
	text-wrap: pretty; /* bez jedne reči samoj u drugom redu (novi browseri) */
	font-size: 13px;
	line-height: 18px;
	color: var(--ut-muted);
}
.ut-hb .ut-row__price {
	margin-top: 6px;
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 13px;
	line-height: 18px;
	color: var(--ut-brand);
}

/* mega meni */
.ut-hb .ut-panel--mega {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 236px;
	gap: 12px;
	width: 790px;
	padding: 12px;
}
.ut-hb .ut-panel--mega[hidden] { display: none; }
.ut-hb .ut-mega__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	align-content: start;
}
.ut-hb .ut-mega__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 18px;
	border-radius: 10px;
	background: #f3f7fb;
}
.ut-hb .ut-mega__aside-title {
	margin: 0 0 6px;
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 21px;
	color: var(--ut-ink);
}
.ut-hb .ut-mega__aside-text {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 19px;
	color: var(--ut-muted);
}
.ut-hb .ut-mega__chat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 16px 0 14px;
	border-radius: 999px;
	background: var(--ut-accent);
	color: #fff;
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 14px;
	transition: background-color .15s ease;
}
.ut-hb .ut-mega__chat:hover { background: var(--ut-accent-hover); }
.ut-hb .ut-mega__chat .ut-ico { width: 16px; height: 16px; }
.ut-hb .ut-mega__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	color: var(--ut-ink);
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 14px;
}
.ut-hb .ut-mega__phone:hover { color: var(--ut-brand); }
.ut-hb .ut-mega__phone .ut-ico { width: 16px; height: 16px; color: var(--ut-muted); }

/* bogat padajući meni (npr. Usluge) */
.ut-hb .ut-panel--rich { width: 340px; padding: 8px; }
.ut-hb .ut-panel--rich .ut-row { padding: 10px 12px; }
.ut-hb .ut-panel--rich .ut-row__ic { width: 36px; height: 36px; }

/* jednostavan padajući meni (npr. O nama) */
.ut-hb .ut-panel--simple { min-width: 230px; padding: 6px; }
.ut-hb .ut-simple {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--ut-ink);
	font-size: 15px;
	line-height: 20px;
	white-space: nowrap;
}
.ut-hb .ut-simple:hover,
.ut-hb .ut-simple:focus { background: var(--ut-soft); color: var(--ut-brand); }

/* ---------- provera domena (desktop panel + mobilni) ---------- */
.ut-hb .ut-panel--domain { width: 500px; padding: 20px 22px; }
.ut-hb .ut-dpanel__title {
	margin: 0 0 4px;
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 22px;
	color: var(--ut-ink);
}
.ut-hb .ut-dpanel__lead {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 19px;
	color: var(--ut-muted);
}
.ut-hb .ut-dpanel__more {
	display: inline-block;
	margin-top: 16px;
	color: var(--ut-brand);
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 13px;
}
.ut-hb .ut-dpanel__more:hover { color: var(--ut-accent); text-decoration: underline; }

.ut-dsearch .ut-dsearch__field {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 5px 0 14px;
	border: 1px solid #cdd9e5;
	border-radius: 10px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ut-dsearch .ut-dsearch__field:focus-within {
	border-color: var(--ut-accent);
	box-shadow: 0 0 0 3px rgba(21, 131, 210, .18);
}
.ut-dsearch .ut-dsearch__field .ut-dsearch__ic { color: var(--ut-muted); }
.ut-dsearch .ut-dsearch__field .ut-dsearch__input,
.ut-dsearch .ut-dsearch__field .ut-dsearch__input:focus {
	flex: 1;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ut-ink);
	font-family: 'robotoregular', Roboto, Arial, sans-serif;
	font-size: 16px; /* 16px: iOS ne zumira polje */
	line-height: 20px;
}
.ut-dsearch .ut-dsearch__field .ut-dsearch__input::placeholder { color: #9aa9b8; opacity: 1; }
.ut-dsearch .ut-dsearch__field .ut-dsearch__submit {
	flex: none;
	height: 38px;
	padding: 0 18px;
	border-radius: 7px;
	background: var(--ut-accent);
	color: #fff;
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 14px;
	text-align: center;
	transition: background-color .15s ease;
}
.ut-dsearch .ut-dsearch__field .ut-dsearch__submit:hover { background: var(--ut-accent-hover); }
.ut-dsearch .ut-dsearch__tlds {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}
.ut-dsearch .ut-tld {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 5px 11px;
	border: 1px solid var(--ut-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ut-ink);
	font-size: 13px;
	line-height: 18px;
	transition: background-color .15s ease, border-color .15s ease;
}
.ut-dsearch .ut-tld:hover { background: var(--ut-soft); border-color: #c5d5e5; }
.ut-dsearch .ut-tld__ext { font-family: 'robotomedium', Roboto, Arial, sans-serif; }
.ut-dsearch .ut-tld__price { color: var(--ut-muted); font-size: 12px; }

/* ---------- hamburger ---------- */
.ut-hb .ut-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	padding: 0;
	border-radius: 8px;
}
.ut-hb .ut-burger:hover { background: var(--ut-soft); }
.ut-hb .ut-burger span {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: #0b3a63;
}

/* ---------- mobilni meni (preko celog ekrana) ---------- */
html.ut-noscroll,
html.ut-noscroll body { overflow: hidden; }

.ut-mnav {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: #fff;
	color: var(--ut-ink);
	font-family: 'robotoregular', Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 20px;
	-webkit-font-smoothing: antialiased;
}
.ut-mnav[hidden] { display: none; }
.ut-mnav.is-open { animation: ut-mnav-in .22s ease-out; }
@keyframes ut-mnav-in {
	from { opacity: 0; transform: translateX(24px); }
	to   { opacity: 1; transform: none; }
}

.ut-mnav .ut-mnav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: none;
	height: 64px;
	padding: 0 15px;
	border-bottom: 1px solid var(--ut-line);
}
.ut-mnav .ut-mnav__logo img { display: block; height: 44px; width: auto; max-width: none; }
.ut-mnav .ut-mnav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	border-radius: 8px;
	color: var(--ut-ink);
}
.ut-mnav .ut-mnav__close .ut-ico { width: 24px; height: 24px; }

.ut-mnav .ut-mnav__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 18px 15px 24px;
}
.ut-mnav .ut-mnav__label {
	margin: 0 0 8px;
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 13px;
	line-height: 18px;
	color: var(--ut-muted);
}
.ut-mnav .ut-mnav__list { margin-top: 18px; }
.ut-mnav .ut-mnav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 54px;
	padding: 0 2px;
	border-bottom: 1px solid var(--ut-line);
	color: var(--ut-ink);
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: .03em;
	text-transform: uppercase;
}
.ut-mnav .ut-mnav__link:hover { color: var(--ut-brand); }
.ut-mnav .ut-mnav__acc[aria-expanded="true"] { border-bottom-color: transparent; color: var(--ut-brand); }
.ut-mnav .ut-ico--chev { width: 18px; height: 18px; color: var(--ut-muted); transition: transform .15s ease; }
.ut-mnav .ut-mnav__acc[aria-expanded="true"] .ut-ico--chev { transform: rotate(180deg); color: var(--ut-brand); }

.ut-mnav .ut-mnav__sub {
	padding: 0 0 10px;
	border-bottom: 1px solid var(--ut-line);
}
.ut-mnav .ut-mnav__sub[hidden] { display: none; }
.ut-mnav .ut-mnav__sublink {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 2px;
	color: var(--ut-ink);
	font-size: 15px;
	line-height: 20px;
}
.ut-mnav .ut-mnav__sublink:hover { color: var(--ut-brand); }
.ut-mnav .ut-mnav__sublink .ut-ico { width: 20px; height: 20px; color: var(--ut-accent); }
.ut-mnav .ut-mnav__sublink small {
	margin-left: auto;
	padding-left: 8px;
	color: var(--ut-muted);
	font-size: 12.5px;
	white-space: nowrap;
}

.ut-mnav .ut-mnav__foot {
	flex: none;
	padding: 12px 15px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--ut-line);
	background: #fff;
}
.ut-mnav .ut-mnav__account {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	border-radius: 10px;
	background: var(--ut-accent);
	color: #fff;
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 15px;
}
.ut-mnav .ut-mnav__account:hover { background: var(--ut-accent-hover); color: #fff; }
.ut-mnav .ut-mnav__contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 8px;
}
.ut-mnav .ut-mnav__ghost {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	border: 1px solid var(--ut-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ut-ink);
	font-family: 'robotomedium', Roboto, Arial, sans-serif;
	font-size: 14px;
	text-align: center;
}
.ut-mnav .ut-mnav__ghost:hover { background: var(--ut-soft); color: var(--ut-ink); }
.ut-mnav .ut-mnav__ghost .ut-ico { width: 16px; height: 16px; color: var(--ut-accent); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
	.header .header-bottom { height: 88px; }
	.header .ut-hb .logo img { height: 64px; }
	.ut-hb .ut-nav__link { font-size: 15px; letter-spacing: .02em; padding: 0 8px; }
	.ut-hb .ut-nav__item.is-current > .ut-nav__link:after { left: 8px; }
	.ut-hb .ut-panel--mega { width: 740px; }
}

@media (max-width: 991px) {
	.header .header-bottom { height: 76px; }
	.header.fix-it .header-bottom { height: 64px; }
	.header .ut-hb .logo img { height: 58px; }
	.header.fix-it .ut-hb .logo img { height: 48px; }
	.ut-hb .ut-nav { display: none; }
	.ut-hb .ut-burger { display: flex; }
}

@media (max-width: 600px) {
	.header .header-bottom { height: 68px; }
	.header.fix-it .header-bottom { height: 60px; }
	.header .ut-hb .logo img { height: 50px; }
	.header.fix-it .ut-hb .logo img { height: 44px; }
}

@media (max-width: 360px) {
	.header .header-bottom { height: 64px; }
	.header .ut-hb .logo img { height: 44px; }
	.header.fix-it .ut-hb .logo img { height: 40px; }
	.ut-mnav .ut-mnav__logo img { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
	.ut-hb *, .ut-mnav, .ut-mnav *,
	.header .header-bottom { animation: none !important; transition: none !important; }
}

/* ---------- body offset ----------
   .header je position:absolute, pa sadržaj spušta body{padding-top} = top bar (40px) + traka sa logom.
   Ovo zamenjuje stare vrednosti iz custom.css (150/154/137/128/112). */
body { padding-top: 136px; }                                   /* 40 + 96 */
@media (max-width: 1199px) { body { padding-top: 128px; } }    /* 40 + 88 */
@media (max-width: 991px)  { body { padding-top: 116px; } }    /* 40 + 76 */
@media (max-width: 600px)  { body { padding-top: 108px; } }    /* 40 + 68 */
@media (max-width: 360px)  { body { padding-top: 104px; } }    /* 40 + 64 */
