/* balkanposao.app — jedan CSS, bez eksternih zahtjeva. Brend: plava #4285f4→#1a73e8. */
:root {
  --blue: #4285f4;
  --blue-dk: #1a73e8;
  --blue-deep: #0d47a1;
  --navy: #0f2340;
  --ink: #1a2332;
  --muted: #5a6b7f;
  --line: #e4e9f2;
  --bg-soft: #f5f8fc;
  --accent-light: #cfe1ff;
  --grad: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
  --grad-deep: linear-gradient(160deg, #1a3e8f 0%, #1a73e8 55%, #4285f4 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 42, 90, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dk); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand__icon { border-radius: 22%; display: block; width: 40px; height: 40px; }
.brand__word b { color: var(--blue-dk); }
.brand__tld { color: var(--muted); font-weight: 600; font-size: 0.85em; }

/* ── Dugmad ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--grad); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 115, 232, 0.45); }
.btn--sm { padding: 9px 18px; font-size: 0.92rem; }

/* ── Language switcher ──────────────────────────────────────────────────── */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { background: var(--bg-soft); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  margin: 0; padding: 6px; list-style: none; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.lang__list a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.lang__list a:hover { background: var(--bg-soft); }
.lang__list .active a { background: var(--accent-light); font-weight: 700; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { background: var(--grad-deep); color: #fff; }
.hero__grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 0; align-items: end; }
.hero__kicker {
  display: inline-block; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--accent-light); }
.hero__sub { font-size: 1.13rem; max-width: 34rem; color: rgba(255, 255, 255, 0.92); }
.hero__copy { padding-bottom: 56px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); }
.hero__trust li::before { content: "✓ "; color: #9ff0c2; font-weight: 700; }

/* Telefon (CSS frame oko sirovog screenshota) */
.hero__phone { display: flex; justify-content: center; }
.phone {
  width: min(320px, 72vw); aspect-ratio: 9 / 19.6; border-radius: 44px;
  border: 10px solid #0d1b2e; background: #0d1b2e;
  box-shadow: 0 30px 60px rgba(4, 16, 42, 0.45);
  overflow: hidden; position: relative; z-index: 2; margin-bottom: -70px;
}
.phone__img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; border-radius: 32px; }

/* ── Badges + QR ────────────────────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 0; }
.badges .badge img { height: 56px; width: auto; display: block; }
.badges--center { justify-content: center; }
.qr {
  display: none; flex-direction: column; gap: 12px; margin-top: 26px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius); padding: 14px 16px; max-width: 30rem;
}
.qr__codes { display: flex; gap: 16px; }
.qr__item { margin: 0; text-align: center; }
.qr img { border-radius: 10px; background: #fff; padding: 6px; width: 108px; height: 108px; }
.qr__item figcaption { margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.qr p { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.92); }
@media (min-width: 900px) { .qr { display: flex; } }

/* ── Sekcije ────────────────────────────────────────────────────────────── */
.section { padding-top: 110px; padding-bottom: 64px; }
.section--alt { background: var(--bg-soft); }
.section__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; text-align: center; }
.section__sub { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 2.2em; }

/* Funkcije */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: 0 3px 12px rgba(13, 42, 90, 0.05); }
.feature h3 { font-size: 1.06rem; margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature__icon {
  display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
  border-radius: 13px; background: var(--accent-light); color: var(--blue-deep);
}
.feature__icon svg { width: 24px; height: 24px; }

/* Koraci */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.step__n {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Galerija (scroll-snap) */
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(20px, calc((100% - 1100px) / 2)) 22px;
  -webkit-overflow-scrolling: touch;
}
.gallery__item { flex: 0 0 auto; width: min(300px, 72vw); margin: 0; scroll-snap-align: center; }
.gallery__item img { border-radius: 22px; box-shadow: var(--shadow); display: block; }

/* FAQ */
.faq { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.faq__item:hover { border-color: var(--accent-light); }
.faq__item[open] { background: #fff; border-color: var(--blue-dk); box-shadow: var(--shadow); }
.faq__item summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
  padding: 16px 50px 16px 18px; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--blue-dk); font-size: 1.5rem; font-weight: 600; line-height: 1; transition: transform 0.15s ease;
}
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 18px 16px; color: var(--muted); }
.faq__a p { margin: 0 0 0.6em; }
.faq__a p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--grad-deep); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 36rem; margin: 0 auto 1em; }
.cta-band .badges { justify-content: center; }
.cta-band .qr { margin: 26px auto 0; }

/* Employer band ("Za firme" → CandidateForce) */
.employer-band { background: var(--bg-soft); text-align: center; padding: 56px 0; border-top: 1px solid rgba(15, 35, 64, 0.08); }
.employer-band h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); font-weight: 800; }
.employer-band p { color: var(--muted); max-width: 34rem; margin: 0.6em auto 1.4em; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.85); padding: 48px 0 26px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.site-footer .brand--footer { color: #fff; margin-bottom: 10px; }
.site-footer .brand--footer .brand__word b { color: var(--accent-light); }
.site-footer .muted { color: rgba(255, 255, 255, 0.65); }
.site-footer__langs h4 { margin-bottom: 8px; color: #fff; }
.site-footer__langs ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.site-footer__langs a { text-decoration: none; font-size: 0.95rem; }
.site-footer__langs a:hover { text-decoration: underline; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 30px; padding-top: 18px; font-size: 0.9rem;
}
.site-footer__legal .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.4); }

/* ── /download stranica ─────────────────────────────────────────────────── */
.download-body { display: grid; min-height: 100vh; place-items: center; background: var(--bg-soft); }
.download { text-align: center; padding: 40px 20px; }
.download img:first-child { border-radius: 22%; }
.download h1 { font-size: 1.6rem; margin-top: 14px; }

/* ── Desktop layout ─────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__copy { padding-bottom: 88px; }
  .phone { width: 340px; margin-bottom: -90px; }
  .section { padding-top: 130px; }
}
@media (max-width: 600px) {
  /* Header CTA je redundantan na mobilnom (badge-ovi su odmah u heroju) */
  .site-header .btn { display: none; }
}
@media (max-width: 480px) {
  .badges .badge img { height: 48px; }
  .brand__word { font-size: 0.98rem; }
}
