/* ---------- Lokalni font Inter (variabilni, brez klica na Google) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2?v=1') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2?v=1') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-900: #0e1b3d;
  --navy-800: #16285a;
  --navy-700: #1d3470;
  --navy-600: #294a9c;
  --blue-500: #3a6fd0;
  --blue-400: #5b8ae6;
  --ink: #1a2238;
  --muted: #5d6680;
  --line: #e4e8f1;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --bg-soft: #eef2fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(16, 36, 84, 0.10);
  --shadow-sm: 0 6px 20px rgba(16, 36, 84, 0.08);
  --maxw: 1160px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-600); }

img { max-width: 100%; display: block; }

/* Viden obris pri navigaciji s tipkovnico */
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

/* Povezava "Preskoči na vsebino" */
.skip-link {
  position: absolute; left: 12px; top: -120px; z-index: 300;
  background: var(--navy-900); color: #fff; font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.noscript-contact {
  padding: 10px 0; background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-size: .92rem; text-align: center; color: var(--navy-800);
}
.noscript-contact a { font-weight: 600; color: var(--navy-800); }
.noscript-contact a:hover { color: var(--blue-500); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy-700); color: #fff; box-shadow: 0 8px 22px rgba(29, 52, 112, .28); }
.btn--primary:hover { background: var(--navy-800); color: #fff; }

/* ---------- Topbar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar {
  background: var(--navy-900);
  color: #c9d4ee;
  font-size: .85rem;
}
.topbar__inner { display: flex; align-items: center; gap: 14px; padding: 9px 24px; flex-wrap: wrap; }
.topbar a { color: #dbe4f7; }
.topbar a:hover { color: #fff; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar__sep { opacity: .4; }

/* ---------- Header ---------- */
.header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__logo { height: 46px; width: auto; flex: none; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .94rem;
  padding: 9px 13px; border-radius: 8px; transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--bg-soft); color: var(--navy-700); }
.nav a.active { background: var(--bg-soft); color: var(--blue-500); font-weight: 700; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--navy-800); border-radius: 2px; transition: .25s; }

/* ---------- Language toggle ---------- */
.lang-toggle {
  flex: none; margin-left: 8px;
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--bg-soft); color: var(--navy-700);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; min-width: 46px;
  font-family: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lang-toggle:hover { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 620px at 80% 52%, rgba(173, 200, 255, .11), transparent 64%),
    radial-gradient(900px 500px at 85% -10%, rgba(91, 138, 230, .35), transparent 60%),
    radial-gradient(700px 500px at -5% 110%, rgba(216, 57, 43, .22), transparent 55%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px;
  align-items: center; padding: 120px 24px 130px; min-height: 88vh;
}
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: 1rem;
  font-weight: 700; margin-bottom: 16px;
}
.eyebrow .i4 { text-transform: none; }
.hero__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.hero__panel { display: flex; align-items: center; justify-content: center; }
.hero__icon-large {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.4));
}
.hero__brand-lines { display: flex; flex-direction: column; gap: 4px; }
.hero__brand-name { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fff; }
.hero__brand-tag { font-size: .82rem; letter-spacing: .04em; text-transform: none; color: var(--blue-400); font-weight: 500; }
.hero__text h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero__text h1 .accent { color: #7da6f0; }
.hero__text p { margin-top: 20px; font-size: 1.12rem; color: #c7d2ec; max-width: 560px; }

/* ---------- Sections ---------- */
.section { padding: 86px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.eyebrow--center { color: var(--navy-600); }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; color: var(--navy-900); }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
.support-card {
  position: relative;
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.support-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.support-card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.support-card h3 { font-size: 1.2rem; }
.support-card p { margin: 10px 0 18px; font-size: .97rem; }
.support-card__list { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.support-card__list li { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius-sm); }
.support-card__list span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.support-card__list a { font-weight: 700; font-size: 1.05rem; }

.support-card--feature {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff; border-color: transparent;
}
.support-card--feature h3, .support-card--feature p { color: #fff; }
.support-card--feature p { color: #c7d2ec; }
.support-card--feature .support-card__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.support-card--feature .support-card__list li { background: rgba(255, 255, 255, .07); }
.support-card--feature .support-card__list span { color: #a9b8dc; }
.support-card--feature .support-card__list a { color: #fff; }
.support-card--feature .support-card__list a:hover { color: #9bc0ff; }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 20px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: #cdd8ee; }
.feature h3 { font-size: 1.02rem; font-weight: 700; color: var(--navy-800); position: relative; padding-left: 14px; }
.feature h3::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: linear-gradient(var(--blue-500), var(--navy-700)); }
.feature p { margin-top: 8px; color: var(--muted); font-size: .9rem; }

/* ---------- Two column panels ---------- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.panel h3 { color: var(--navy-900); font-size: 1.3rem; margin-bottom: 18px; }
.tag-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tag-list--two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.tag-list li {
  position: relative; padding-left: 28px;
  color: var(--navy-700); font-size: .98rem; line-height: 1.45;
}
.tag-list li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a6fd0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 12px 12px;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.about__story p { margin-bottom: 16px; color: var(--ink); font-size: 1.04rem; }
.vizitka { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.vizitka h3 { margin-bottom: 18px; font-size: 1.25rem; }
.vizitka dl { display: flex; flex-direction: column; gap: 14px; }
.vizitka dl > div { border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 12px; }
.vizitka dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.vizitka dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: #a9b8dc; }
.vizitka dd { font-weight: 600; margin-top: 3px; }

/* ---------- Team ---------- */
.team { margin-top: 48px; }
.team__title { text-align: center; color: var(--navy-900); font-size: 1.5rem; margin-bottom: 28px; }
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team__dept {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.team__dept--wide { grid-column: 1 / -1; }
.team__dept--uprava { grid-column: span 2; }
.team__dept--uprava ul { grid-template-columns: repeat(2, 1fr) !important; gap: 18px 28px; }
.team__dept h4 {
  color: var(--blue-500); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.team__dept ul { list-style: none; display: grid; grid-template-columns: 1fr; gap: 18px; }
.team__dept--wide ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; }
.team__dept li { display: flex; flex-direction: column; gap: 2px; }
.team__name { font-weight: 700; color: var(--navy-900); }
.team__role { color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.team__dept li a { font-size: .92rem; font-weight: 500; color: var(--navy-700); width: fit-content; }
.team__dept li a:hover { color: var(--blue-500); }

/* ---------- Contact ---------- */
.section--contact { background: var(--bg); }

.contact-combined {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 420px;
}
.contact-map { line-height: 0; position: relative; min-height: 420px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: none; display: block; }
.contact-map__overlay { position: absolute; inset: 0; display: block; cursor: pointer; }
.contact-map__consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center;
  line-height: 1.5;
  background: var(--navy-900);
  background-image: linear-gradient(135deg, rgba(155,192,255,.08), rgba(14,27,61,0));
}
.contact-map__consent-text { max-width: 420px; margin: 0; color: rgba(255,255,255,.82); font-size: .95rem; }

.contact-panel {
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.branch-list { padding: 32px 32px 24px; display: flex; flex-direction: column; gap: 24px; }
.branch { display: flex; gap: 14px; align-items: flex-start; }
.branch__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(155,192,255,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #9bc0ff;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.branch__icon:hover { background: rgba(155,192,255,.25); color: #fff; }
.branch__icon svg { width: 18px; height: 18px; }
.branch__info h3 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.branch__info h3 a { color: #fff; text-decoration: none; }
.branch__info h3 a:hover { color: #9bc0ff; text-decoration: underline; }
.branch__info address { font-style: normal; color: #aebbdc; font-size: 0.875rem; line-height: 1.5; margin-bottom: 4px; }

.contact-reach {
  margin-top: auto;
  padding: 24px 32px 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.contact-reach h3 {
  color: #a9b8dc;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-reach h3:not(:first-child) { margin-top: 16px; }
.contact-reach p { margin-bottom: 6px; }
.contact-reach a { color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.contact-reach a:hover { color: #9bc0ff; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #aebbdc; padding: 34px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { font-size: .88rem; max-width: 640px; }
.footer__copy a { color: #dbe4f7; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.footer__copy a:hover { color: #9bc0ff; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: #fff; display: grid; place-items: center;
  font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--blue-500); color: #fff; transform: translateY(-3px); }

/* ---------- Cookie consent ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  width: 100%; max-width: none; margin: 0; border: none;
  background: #99a8b8;
  border-top: 1px solid #bcc7d3;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  padding: 18px 0;
  animation: cookieSlideIn .35s ease both;
}
.cookie-bar:not([open]) { display: none; }
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-bar__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-bar__text {
  flex: 1 1 300px; color: rgba(255,255,255,.92);
  font-size: .875rem; line-height: 1.6; margin: 0;
}
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar__btn { font-size: .875rem; padding: 9px 22px; border: none; }
.cookie-bar__btn:focus,
.cookie-bar__btn:focus-visible { outline: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero__panel { display: none; }
  .lang-toggle { margin-left: auto; }
  .nav-toggle { display: flex; margin-left: 4px; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px; gap: 4px;
    box-shadow: var(--shadow);
  }
  .header { position: static; }
  .header__inner { position: relative; }
  .two-col, .tag-list--two-col { grid-template-columns: 1fr; }
  .contact-combined { grid-template-columns: 1fr; min-height: unset; }
  .contact-map { min-height: 260px; }
  .contact-map iframe { min-height: 260px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .team__grid, .team__dept--wide ul, .team__dept--uprava ul { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .topbar__inner { font-size: .8rem; }
  .section { padding: 60px 0; }
}

/* ---------- Manj animacij za uporabnike, ki to želijo ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
