/* RND Solutions — zajednicki hrom sajta.
   Ucitavaju ga I pocetna I sve podstranice, da zaglavlje, futer i pozadina
   budu identicni svuda. Tokeni dolaze iz css/tokens.css. */

/* ---------- pozadina: ista mreza na svim stranicama ---------- */
body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(5,150,105,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 32px 32px; }
}

/* ---------- zaglavlje: identicno na pocetnoj i podstranicama ---------- */
/* Pocetna ima gola pravila `header {}` i `nav {}` koja bi inace probila kroz
   ove klase — sve sto one postavljaju mora se ovde izricito ponistiti. */
.site-head {
  background: var(--hero-dark); position: sticky; top: 0; z-index: 40;
  display: block; margin: 0; padding: 0; gap: normal;
  border: 0; backdrop-filter: none;
}
.site-head .nav {
  position: static; inset: auto; height: auto; padding: 0;
  background: none; backdrop-filter: none; z-index: auto;
  justify-content: flex-start; flex-direction: row; border: 0;
}
.site-head .wrap { max-width: var(--wrap, 1200px); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 22px; min-height: 68px; flex-wrap: wrap; }
.site-head .brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: #fff; text-decoration: none; margin-right: auto; letter-spacing: .04em;
}
/* Znak firme je svetao, pa stoji samo na tamnoj traci zaglavlja. */
.site-head .brand img { display: block; width: auto; height: 30px; }
.site-head .brand span::after { content: "\2022"; color: var(--accent-mid); margin-left: 4px; }
.site-head .nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.site-head .wrap { width: 100%; }
.site-head .nav a {
  color: rgba(255,255,255,.78); text-decoration: none; font-family: var(--font-body);
  font-size: .92rem; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.site-head .nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-head .nav a[aria-current="page"] { color: var(--accent-mid); }
.site-head .nav-home {
  color: var(--accent-mid); font-weight: 700;
  border: 1px solid rgba(16,185,129,.32); background: rgba(16,185,129,.1);
}
.site-head .nav-home:hover { background: rgba(16,185,129,.2); color: #fff; }
.site-head .lang {
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.8); text-decoration: none;
  border: 1px solid rgba(255,255,255,.24); padding: 6px 11px; border-radius: var(--radius-sm);
}
.site-head .lang:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-head .head-tel {
  font-family: var(--font-body); font-size: .86rem; font-weight: 600;
  color: var(--accent-mid); text-decoration: none; white-space: nowrap;
}
@media (max-width: 1080px) { .site-head .head-tel { display: none; } }

/* Two compact rows keep navigation available without covering the page. */
@media (max-width: 760px) {
  .site-head .wrap { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 16px 0; min-height: 0; }
  .site-head .brand { grid-column: 1; grid-row: 1; min-height: 44px; }
  .site-head .lang { grid-column: 2; grid-row: 1; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .site-head .nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0; padding: 2px 0 6px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
  .site-head .nav a { flex: 0 0 auto; white-space: nowrap; min-height: 44px; display: flex; align-items: center; padding: 8px 10px; font-size: .82rem; }
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg-card); padding: 12px 18px;
  z-index: 99; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }

/* ---------- futer: identican svuda ---------- */
.site-foot { background: var(--hero-dark); color: rgba(255,255,255,.62);
  padding: 48px 0 32px; font-size: .9rem; font-family: var(--font-body); }
.site-foot .wrap { max-width: var(--wrap, 1200px); margin: 0 auto; padding: 0 24px; }
.site-foot strong { color: #fff; }
.site-foot a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-foot a:hover { color: var(--accent-mid); }
.site-foot .cols { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-foot .cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-foot .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-home { color: var(--accent-mid) !important; font-weight: 700; text-decoration: none; }
.foot-home:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none !important; }
}

/* ---------- obavestenje o kolacicima (js/consent.js) ---------- */
.cc { position: fixed; z-index: 1000; left: 20px; bottom: 20px; width: min(420px, calc(100vw - 40px));
  padding: 20px 20px 18px; border-radius: 18px; background: rgba(15,23,42,.96); color: #CBD5E1;
  border: 1px solid rgba(148,163,184,.18); box-shadow: 0 24px 60px -20px rgba(2,6,23,.6);
  backdrop-filter: blur(10px); animation: cc-in .35s ease-out both; }
.cc-title { margin: 0 0 6px; font-weight: 800; font-size: 1rem; color: #fff; }
.cc-text { margin: 0; font-size: .88rem; line-height: 1.55; color: #CBD5E1; max-width: none; }
.cc-text a { color: #34D399; font-weight: 600; }
.cc-btns { display: flex; gap: 10px; margin-top: 16px; }
.cc-btn { flex: 1; min-height: 44px; padding: 10px 14px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  color: #E2E8F0; background: transparent; border: 1px solid rgba(148,163,184,.35); transition: background .2s, border-color .2s; }
.cc-btn:hover { border-color: rgba(226,232,240,.7); }
.cc-btn--main { color: #04130D; background: #34D399; border-color: #34D399; }
.cc-btn--main:hover { background: #6EE7B7; border-color: #6EE7B7; }
.cc-btn:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; }
@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .cc { left: 12px; right: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }

/* dugmad koja izgledaju kao linkovi (podnozje, politika privatnosti) */
.foot-link, .b-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.b-link { color: var(--accent); font-weight: 600; }
.site-foot .foot-link { color: rgba(255,255,255,.78); text-decoration: none; }
.site-foot .foot-link:hover { color: var(--accent-mid); }
