/* ============================================================
   OcrWarehouse — style.css
   Mobilni pristup prvo. Bez vanjskih biblioteka i fontova.
   ============================================================ */

:root {
  --bg: #060a11;
  --bg-2: #0a1220;
  --surface: #0e1727;
  --surface-2: #121e33;
  --line: rgba(120, 170, 230, 0.16);
  --line-strong: rgba(120, 170, 230, 0.32);
  --text: #e8f0fb;
  --muted: #93a7c4;
  --muted-2: #6f83a1;
  --blue: #0a84e8;
  --blue-soft: #3aa6ff;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #0a84e8 0%, #22d3ee 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(10, 132, 232, 0.22), transparent 62%),
    radial-gradient(700px 460px at 4% 8%, rgba(34, 211, 238, 0.12), transparent 60%),
    linear-gradient(180deg, #060a11 0%, #070d18 55%, #060a11 100%);
}

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

figure { margin: 0; }

a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 {
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 { font-size: clamp(1.6rem, 5.2vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.main-nav { order: 3; width: 100%; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .bw { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: rgba(120, 170, 230, 0.1); }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  flex: none;
}
.lang a, .lang span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--muted);
}
.lang a:hover { color: var(--text); background: rgba(120, 170, 230, 0.12); }
.lang .is-current { background: var(--grad); color: #04121f; }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 56px; }

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(34, 211, 238, 0.07);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
  font-size: clamp(2.3rem, 11vw, 4.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.35em;
}
.hero h1 .bw { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 3.6vw, 1.16rem);
  max-width: 60ch;
  margin-bottom: 26px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.22s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 16px 34px -16px rgba(10, 132, 232, 0.9);
}
.btn-primary:hover { color: #04121f; transform: translateY(-2px); box-shadow: 0 22px 40px -16px rgba(34, 211, 238, 0.85); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(120, 170, 230, 0.05);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.08); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted-2);
  font-size: 0.86rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; aspect-ratio: 1250 / 1000; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 17, 0.55) 100%);
  pointer-events: none;
}

/* ---------- Sections ---------- */
section { padding: 54px 0; }

/* pomak za sidra ispod ljepljivog zaglavlja */
section[id], [id="top"], body > main > a[id] { scroll-margin-top: 108px; }
.section-head { max-width: 68ch; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin: 0; }

.tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
  display: block;
  margin-bottom: 12px;
}

/* ---------- Capability cards ---------- */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.75;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -26px rgba(10, 132, 232, 0.75);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(10, 132, 232, 0.14);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(14, 23, 39, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  counter-increment: step;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #04121f;
  background: var(--grad);
  font-size: 0.98rem;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; font-size: 0.93rem; }

/* ---------- Use cases ---------- */
.uses {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.use {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(14, 23, 39, 0.5);
  transition: border-color 0.2s, background 0.2s;
}
.use:hover { border-color: var(--line-strong); background: rgba(18, 30, 51, 0.8); }
.use-check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  margin-top: 2px;
}
.use-check svg { width: 14px; height: 14px; }
.use strong { display: block; font-size: 0.98rem; }
.use span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
.shot {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.shot img { width: 100%; display: block; transition: transform 0.5s; }
.shot:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.shot:hover img { transform: scale(1.025); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  font-size: 0.88rem;
  color: #dbe8fb;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 17, 0.88));
  text-align: left;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.contact-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.contact-list { list-style: none; padding: 0; margin: 0 0 4px; }
.contact-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ci {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(10, 132, 232, 0.14);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
}
.contact-list .ci svg { width: 17px; height: 17px; }
.contact-list .cl { display: block; color: var(--muted-2); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.contact-list .cv { color: var(--text); word-break: break-word; }
.contact-list .cv a { font-weight: 600; }

.form-note {
  color: var(--muted-2);
  font-size: 0.84rem;
  margin: 12px 0 0;
}

form.inquiry { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; }
.field input,
.field textarea {
  width: 100%;
  background: rgba(6, 10, 17, 0.65);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.field input::placeholder,
.field textarea::placeholder { color: #5c6f8c; }

form.inquiry .btn { justify-self: start; cursor: pointer; }

/* ---------- Band / closing ---------- */
.band {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(10, 132, 232, 0.2), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  display: grid;
  gap: 18px;
}
.band h2 { margin-bottom: 6px; }
.band p { color: var(--muted); margin: 0; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 30px 0 40px;
  color: var(--muted-2);
  font-size: 0.87rem;
}
.foot-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--cyan); }

/* ---------- Reveal (samo uz JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 6, 11, 0.93);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -20px #000;
}
.lightbox-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(14, 23, 39, 0.9);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .main-nav { order: 2; width: auto; }
  .head-row { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; min-height: 66px; }
  section[id], [id="top"] { scroll-margin-top: 84px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .band { grid-template-columns: 1.6fr auto; align-items: center; }
  .band .cta-row { margin: 0; }
  .foot-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 960px) {
  section { padding: 72px 0; }
  .hero { padding: 66px 0 84px; }
  .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 52px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .uses { grid-template-columns: repeat(4, 1fr); }
  .wrap { padding: 0 28px; }
}
