/* Kodera — zajednički stil */

:root {
  --orange: #ff4f00;
  --orange-dark: #e04600;
  --ink: #201515;
  --ink-soft: #3d3231;
  --muted: #5b5352;
  --line: #eae4e1;
  --white: #ffffff;
  --peach: #fff3ef;
  --cream: #fdf6ee;
  --mint: #eaf5ee;
  --sky: #eef2fd;
  --radius: 8px;
  --radius-lg: 16px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ink); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}

h1 { font-size: clamp(38px, 5.4vw, 66px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; }

p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigacija ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  background: var(--orange);
  border-radius: 6px;
  position: relative;
  flex: none;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: var(--white);
  border-radius: 2px;
}

.logo-mark::before { left: 6px; top: 11px; width: 14px; height: 4px; }
.logo-mark::after  { left: 11px; top: 6px; width: 4px; height: 14px; }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex: 1; }

.nav-links a {
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { border-bottom-color: var(--orange); }
.nav-links a.active { border-bottom-color: var(--orange); }

.nav-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}

/* ---------- Gumbi ---------- */

.btn {
  display: inline-block;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #000; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #f2ece9; }

.btn-lg { padding: 15px 28px; font-size: 16.5px; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Sekcije ---------- */

.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.section-peach { background: var(--peach); }
.section-cream { background: var(--cream); }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--peach) 0%, var(--peach) 62%, var(--white) 62%);
  padding: 76px 0 0;
  text-align: center;
}

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* Workflow ilustracija */

.workflow {
  margin: 56px auto 0;
  max-width: 860px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(32, 21, 21, 0.09);
  padding: 28px;
  text-align: left;
}

.workflow-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.workflow-bar span.title { margin-left: 10px; font-size: 14px; color: var(--muted); }

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.step-icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex: none;
}

.step strong { display: block; font-size: 15.5px; color: var(--ink); }
.step small { font-size: 13.5px; color: var(--muted); }

.connector { width: 2px; height: 22px; background: var(--line); margin: 0 0 0 34px; }

/* ---------- Slike ---------- */

.media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
}

.media img { width: 100%; height: auto; display: block; }

.media-wide { max-width: 880px; margin: 40px auto 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split .timeline { align-self: start; }

/* ---------- SVG ikone ---------- */

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.card-icon .icon { width: 23px; height: 23px; }
.step-icon .icon { width: 20px; height: 20px; }
.success .mark .icon { width: 30px; height: 30px; stroke: #2f7d52; stroke-width: 2.2; }

/* ---------- Logotipi klijenata ---------- */

.logos { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; }
.logos span {
  font-size: 19px;
  font-weight: 700;
  color: #7a6f6c;
  letter-spacing: -0.02em;
}
.logos .client { display: flex; align-items: center; gap: 9px; }
.logos .client svg { width: 25px; height: 25px; flex: none; }
.logos-label { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ---------- Kartice ---------- */

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
}

.card p { color: var(--muted); font-size: 16px; margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}

.bg-peach { background: var(--peach); }
.bg-mint  { background: var(--mint); }
.bg-sky   { background: var(--sky); }
.bg-cream { background: var(--cream); }

.card-list { list-style: none; padding: 0; margin: 18px 0 0; }
.card-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
}

/* ---------- Brojke ---------- */

.stat strong {
  display: block;
  font-size: 46px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { font-size: 15.5px; color: var(--muted); }

/* ---------- Citat ---------- */

.quote {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.quote-author { font-size: 15.5px; color: var(--muted); }

/* ---------- CTA blok ---------- */

.cta {
  background: var(--ink);
  color: #efe7e4;
  padding: 76px 0;
  text-align: center;
}
.cta h2 { color: var(--white); }
.cta p { color: #c4b8b5; max-width: 520px; margin: 0 auto 28px; }

/* ---------- Forma ---------- */

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); }

.field textarea { min-height: 130px; resize: vertical; }

.field-hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--muted);
}
.checkbox input { width: 18px; height: 18px; margin-top: 3px; flex: none; }

.hidden-field { position: absolute; left: -9999px; }

/* ---------- Kontakt info ---------- */

.contact-item { margin-bottom: 26px; }
.contact-item strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; }
.contact-item a { color: var(--muted); text-decoration: none; }
.contact-item a:hover { color: var(--orange); }

/* ---------- Tim ---------- */

.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 16px;
}

.role { font-size: 14.5px; color: var(--orange); font-weight: 600; margin: 0 0 8px; }

/* ---------- Vremenska crta ---------- */

.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-left: 8px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px; top: 6px;
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 50%;
}
.timeline-item .year { font-weight: 700; color: var(--ink); font-size: 15.5px; }

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #b0a4a1; padding: 62px 0 34px; }
.footer h4 { color: var(--white); font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: #b0a4a1; text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--white); }
.footer .logo { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-bottom {
  border-top: 1px solid #3a2c2c;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-tag { font-size: 15px; margin-top: 16px; max-width: 280px; }

/* ---------- Poruka o uspjehu ---------- */

.success { text-align: center; padding: 110px 0; }
.success .mark {
  width: 68px; height: 68px;
  background: var(--mint);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 24px;
}

/* ---------- Responzivno ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .media-wide { margin-top: 30px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-inner { height: 62px; gap: 12px; justify-content: space-between; }
  .logo { font-size: 19px; }
  .nav-actions .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(32, 21, 21, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 13px 0; display: block; }
  .nav-cta { display: block; margin-top: 12px; }
  .nav-links .nav-cta a {
    background: var(--ink);
    color: var(--white);
    text-align: center;
    padding: 14px 18px;
    border-radius: var(--radius);
    border-bottom: 0;
    font-weight: 600;
  }
  .nav-links .nav-cta a:hover { border-bottom: 0; background: #000; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .hero { background: linear-gradient(180deg, var(--peach) 0%, var(--peach) 70%, var(--white) 70%); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .workflow { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
