/* Kontakt d.o.o. – jedini stilski list stranice */
:root {
  --red: #b40000;
  --red-dark: #8f0000;
  --ink: #1b2127;
  --text: #2c343c;
  --muted: #5b6670;
  --line: #e2e5e9;
  --soft: #f4f5f7;
  --bg: #ffffff;
  --header: #1b2127;
  --radius: 10px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Zaglavlje */
.site-header { background: var(--header); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; margin-right: auto; }
.brand img { width: 32px; height: 37px; }
.brand:hover { color: #fff; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; color: #d6dbe0; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.lang { display: flex; gap: 2px; font-size: .85rem; }
.lang a { color: #aab3bc; text-decoration: none; padding: 6px 8px; border-radius: 6px; font-weight: 600; }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { color: #fff; background: var(--red); }
.nav-toggle { display: none; background: none; border: 1px solid #4a535c; color: #fff; border-radius: 6px; padding: 4px 12px; font-size: 1.3rem; line-height: 1.2; cursor: pointer; }

@media (max-width: 900px) {
  .js .nav-toggle { display: block; }
  .site-header .wrap { flex-wrap: wrap; gap: 8px; }
  .lang { order: 1; }
  .nav-toggle { order: 2; }
  .nav { order: 3; width: 100%; }
  .nav ul { flex-direction: column; padding: 4px 0 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
}

/* Naslovni dio */
.hero { position: relative; color: #fff; background: #0e1216; overflow: hidden; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero .wrap { position: relative; padding-top: clamp(64px, 11vw, 140px); padding-bottom: clamp(64px, 11vw, 140px); }
.hero h1 { color: #fff; max-width: 17em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; color: #e7eaed; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #ff9a9a; margin-bottom: 14px; }
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 48px; padding-bottom: 36px; }
.page-head p { color: var(--muted); max-width: 46em; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 10px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Gumbi */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--red); background: var(--red); color: #fff; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.6); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.outline { background: transparent; color: var(--red); }
.btn.outline:hover { background: var(--red); color: #fff; }

/* Sekcije */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section.soft { background: var(--soft); }
.section-intro { max-width: 46em; margin-bottom: 32px; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card.contain img { object-fit: contain; background: #fff; padding: 16px; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card-body .more::after { content: " →"; }

.point { border-top: 3px solid var(--red); padding-top: 14px; }
.point h3 { margin-bottom: .35em; }
.point p { color: var(--muted); margin: 0; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature.flip > :first-child { order: 2; }
.feature figure { margin: 0; }
.feature img { border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
}

.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.lead { font-size: 1.15rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; background: var(--red); border-radius: 2px; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.team strong { display: block; color: var(--ink); }
.team span { display: block; font-size: .85rem; color: var(--muted); }
.team a { font-size: .95rem; word-break: break-all; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.contact-list li { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list b { color: var(--muted); font-weight: 600; }
address { font-style: normal; }
.map img { border-radius: var(--radius); border: 1px solid var(--line); }

.cta { background: var(--ink); color: #fff; }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { color: #c9d0d6; margin: 0; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 1.5em; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; color: var(--ink); }
mark.todo { background: #fff3b0; color: #6b4e00; padding: 0 4px; border-radius: 3px; }

/* Podnožje */
.site-footer { background: #11161a; color: #aab3bc; font-size: .93rem; }
.site-footer .wrap { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 48px; padding-bottom: 28px; }
.site-footer h2 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #d6dbe0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .bottom { border-top: 1px solid #262d33; }
.site-footer .bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 18px; grid-template-columns: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .cta { display: none; } }

/* Pomoćne klase (umjesto inline stilova, zbog CSP-a) */
.btns.flush { margin: 0; }
.pt { padding-top: 24px; }
.pt-l { padding-top: 36px; }
.mt { margin: 24px 0 0; }
.mt-s { margin-top: 10px; }

dl.facts dd { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 12px; }
}
@media (max-width: 420px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lang a { padding: 6px 7px; }
}

/* Brojke (AI sortirka) */
.stats .stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stats .stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--red); line-height: 1.1; margin-bottom: 6px; }
.stats .stat span { color: var(--muted); font-size: .95rem; }
.note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
h2.pt-l { margin-top: 0; }

/* Izbornik u jednom redu na srednjim širinama */
.nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header .wrap { gap: 12px; }
  .nav a { padding: 8px 8px; font-size: .9rem; }
  .lang a { padding: 6px 6px; }
}
.brand { white-space: nowrap; }
