/* Quad Servis Banja Luka — stilovi */
:root {
  --bg: #0c0e11;
  --bg-2: #14171c;
  --bg-3: #1c2027;
  --line: #2a2f38;
  --text: #f2f3f5;
  --muted: #9aa3b2;
  --accent: #f5a524;
  --accent-2: #ff7a1a;
  --ok: #3ddc84;
  --info: #4da3ff;
  --warn: #ffb020;
  --danger: #ff5c5c;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 110px) 0; scroll-margin-top: 72px; }
.eyebrow { color: var(--accent); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }

/* Dugmad */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; text-decoration: none !important;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #16120a; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(12, 14, 17, .72); border-bottom: 1px solid rgba(255,255,255,.06);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo svg { height: 38px; width: auto; }
.logo b { font-family: var(--font-head); font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.logo b span { color: var(--accent); }
.logo small { display: block; font-family: var(--font-body); font-size: .68rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text); font-weight: 600; font-size: 1rem; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.8rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 18px 16px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header .btn { display: none; }
}

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; padding: 0; overflow: hidden;
  background: #000;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .95; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,17,.15) 0%, rgba(12,14,17,.35) 45%, rgba(12,14,17,.95) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 64px; }
.hero h1 { max-width: 14ch; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: #e2e5ea; font-size: 1.25rem; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 44px; }
.hero-badges div { border-left: 3px solid var(--accent); padding-left: 14px; }
.hero-badges b { display: block; font-family: var(--font-head); font-size: 1.9rem; line-height: 1; }
.hero-badges span { color: var(--muted); font-size: .95rem; }

/* Marquee traka */
.strip { background: var(--accent); color: #16120a; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 12px 0; overflow: hidden; white-space: nowrap; font-size: 1.1rem; }
.strip span { display: inline-block; padding-right: 48px; animation: slide 28s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Praćenje statusa */
.tracker { background: radial-gradient(1200px 500px at 20% 0%, rgba(245,165,36,.12), transparent 60%), var(--bg-2); border-block: 1px solid var(--line); }
.tracker-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .tracker-grid { grid-template-columns: 1fr; } }
.card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0f1216; color: var(--text);
  font: inherit; font-size: 1.05rem; outline: none; transition: border-color .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .field { margin-bottom: 16px; }
.form .hint { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 14px; font-size: .98rem; }
.alert-err { background: rgba(255,92,92,.12); border: 1px solid rgba(255,92,92,.4); color: #ffb3b3; }
.alert-ok { background: rgba(61,220,132,.12); border: 1px solid rgba(61,220,132,.4); color: #b8f5d2; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 10px 0; position: relative; }
.steps li + li::before { content: ""; position: absolute; left: 21px; top: -18px; height: 28px; width: 2px; background: var(--line); }
.steps .dot { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--muted); background: var(--bg-2); }
.steps li.done .dot { border-color: var(--ok); color: var(--ok); }
.steps li.done + li::before { background: var(--ok); }
.steps li.current .dot { border-color: var(--accent); background: var(--accent); color: #16120a; box-shadow: 0 0 0 6px rgba(245,165,36,.18); }
.steps li.current + li::before { background: var(--ok); }
.steps h4 { margin: 8px 0 2px; font-size: 1.2rem; }
.steps li.current h4 { color: var(--accent); }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps li.todo { opacity: .55; }

.result { display: none; }
.result.show { display: block; }
.result .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 20px; margin: 10px 0 20px; }
.result .meta b { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.badge-primljen { background: rgba(77,163,255,.18); color: #8ec3ff; }
.badge-u_radu { background: rgba(245,165,36,.2); color: var(--accent); }
.badge-dijelovi { background: rgba(255,122,26,.2); color: #ffb27a; }
.badge-gotovo { background: rgba(61,220,132,.18); color: var(--ok); }
.badge-preuzeto { background: rgba(154,163,178,.18); color: #cfd5df; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips span { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: rgba(245,165,36,.12); color: var(--accent); border: 1px solid rgba(245,165,36,.35); }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.timeline li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.timeline time { color: var(--muted); font-size: .88rem; min-width: 130px; }
.timeline .note { flex-basis: 100%; color: var(--muted); font-size: .95rem; }

/* Usluge */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.service { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); border-color: rgba(245,165,36,.5); }
.service img { aspect-ratio: 4 / 3; object-fit: cover; }
.service .body { padding: 22px; }
.service .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(245,165,36,.14); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.service p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Tok servisa */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow div { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.flow div::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; display: block; margin-bottom: 10px; }
.flow h4 { font-size: 1.25rem; margin-bottom: 6px; }
.flow p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Galerija / O nama */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 260px; gap: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; } .gallery img:first-child { grid-column: span 2; } }
.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 700; flex: none; }

/* Motul */
.motul { background: radial-gradient(900px 400px at 85% 20%, rgba(255,60,60,.14), transparent 60%), var(--bg); border-block: 1px solid var(--line); }
.motul h2 { max-width: 16ch; }
.motul-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.motul-tags span { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,60,60,.5); color: #ff8a8a; background: rgba(255,60,60,.08); }

/* Kontakt */
.contact { background: var(--bg-2); border-block: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 30px; }
.contact-grid .card { padding: 22px; }
.contact-grid b { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.contact-grid a, .contact-grid span { font-size: 1.15rem; font-weight: 600; }
.chat-links { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.chat-links a { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem !important; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.chat-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

footer { padding: 36px 0; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }

/* Reveal animacije */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .strip span { animation: none; } }
