/* ============================================================
   Foka & Bumbar — style.css
   Paleta: teget + narandžasta
   ============================================================ */

:root {
  --navy-950: #051224;
  --navy-900: #071a33;
  --navy-800: #0b2447;
  --navy-700: #123a6b;
  --navy-100: #dbe4f0;

  --orange:      #ff7a1a;
  --orange-dark: #e2680d;
  --orange-soft: rgba(255, 122, 26, .12);

  --bg:        #ffffff;
  --bg-tint:   #f4f7fb;
  --ink:       #16233b;
  --ink-soft:  #4a5b76;
  --line:      #e2e8f2;
  --white:     #ffffff;
  --on-dark:   #eef3fb;
  --on-dark-soft: #a9bad3;

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 10px 34px rgba(7, 26, 51, .09);
  --shadow-lg: 0 22px 60px rgba(7, 26, 51, .16);

  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--navy-900); }
.container { width: min(1140px, 100% - 48px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 8px 24px rgba(255, 122, 26, .35);
}
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 12px 30px rgba(255, 122, 26, .42); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,.35); color: var(--on-dark);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn[disabled] { opacity: .65; pointer-events: none; }

.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: rgba(7, 26, 51, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .25s;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand-logo { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 26px; }
.nav-link {
  position: relative; padding: 6px 2px;
  font-size: 14.5px; font-weight: 500; color: var(--on-dark-soft);
  transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--orange); border-radius: 2px;
  transition: right .25s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link.is-active::after, .nav-link:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 600;
}
.lang-btn { padding: 3px 6px; border-radius: 6px; color: var(--on-dark-soft); transition: color .2s; }
.lang-btn:hover { color: #fff; }
.lang-btn.is-active { color: var(--orange); }
.lang-sep { color: rgba(255,255,255,.3); }
.header-cta { white-space: nowrap; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 80px;
  background: var(--navy-900); color: var(--on-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 480px at 85% -10%, rgba(255,122,26,.22), transparent 60%),
    radial-gradient(640px 520px at -10% 90%, rgba(18,58,107,.8), transparent 65%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
.hero-inner { position: relative; }
.hero-kicker {
  display: inline-block; margin-bottom: 22px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,122,26,.45); background: var(--orange-soft);
  color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(42px, 7.2vw, 84px);
  font-weight: 700; letter-spacing: -.02em; color: #fff;
  max-width: 14ch;
}
.hero-title .accent { color: var(--orange); }
.hero-subtitle {
  margin-top: 14px; font-family: var(--font-head);
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 500;
  color: var(--on-dark-soft);
}
.hero-lead {
  margin-top: 22px; max-width: 62ch;
  font-size: 17px; color: var(--on-dark-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 48px;
  margin-top: 64px; padding-top: 34px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat-num {
  font-family: var(--font-head); font-size: 40px; font-weight: 700; color: #fff;
}
.stat-num::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 6px;
  background: var(--orange); border-radius: 2px; }
.stat-label { margin-top: 8px; font-size: 13.5px; color: var(--on-dark-soft); max-width: 20ch; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy-900); color: var(--on-dark); }
.section-dark .section-title,
.section-dark h3, .section-dark h4 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-kicker {
  margin-bottom: 12px;
  color: var(--orange); font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.section-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.015em; }
.section-lead { margin-top: 18px; font-size: 17px; color: var(--ink-soft); }
.section-dark .section-lead { color: var(--on-dark-soft); }

/* ---------- O nama ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start;
}
.about-text p { color: var(--ink-soft); font-size: 17px; }
.about-text p + p { margin-top: 18px; }
.about-values { display: grid; gap: 16px; }
.value-card {
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--bg-tint); border: 1px solid var(--line);
}
.value-icon { color: var(--orange); font-size: 14px; }
.value-card h3 { margin-top: 8px; font-size: 19px; }
.value-card p { margin-top: 6px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Model saradnje strip ---------- */
.model-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-bottom: 56px; padding: 22px 28px;
  background: var(--navy-900); border-radius: var(--radius);
  color: var(--on-dark);
}
.model-strip-label { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.model-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.model-chips li {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.model-chips li::before { content: "● "; color: var(--orange); font-size: 9px; vertical-align: 2px; }

/* ---------- Grupe usluga ---------- */
.svc-group {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 48px;
}
.svc-group + .svc-group { margin-top: 36px; }
.svc-group-head {
  display: flex; gap: 26px; align-items: flex-start;
  padding-bottom: 26px; margin-bottom: 8px;
  border-bottom: 2px solid var(--orange-soft);
}
.svc-group-num {
  flex: none;
  font-family: var(--font-head); font-size: 44px; font-weight: 700;
  color: var(--orange); line-height: 1;
}
.svc-group-head h3 { font-size: clamp(22px, 3vw, 30px); }
.svc-group-head p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; max-width: 78ch; }

.svc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.svc-item { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.svc-item h4 {
  font-size: 17.5px; color: var(--navy-800);
  padding-left: 14px; border-left: 3px solid var(--orange);
}
.svc-item p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.svc-item-tags {
  font-size: 13px !important; color: var(--navy-700) !important;
  font-weight: 500;
}
.tag-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.tag-list li {
  padding: 6px 14px; font-size: 13px; font-weight: 500;
  color: var(--navy-800); background: var(--bg-tint);
  border: 1px solid var(--line); border-radius: 999px;
}

/* ---------- Zašto mi ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  padding: 30px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .25s var(--ease), border-color .25s;
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(255,122,26,.5); }
.why-card h3 { font-size: 19px; color: #fff; }
.why-card h3::before { content: "— "; color: var(--orange); }
.why-card p { margin-top: 12px; font-size: 14.5px; color: var(--on-dark-soft); }

.approach {
  margin-top: 40px; padding: 34px 38px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--orange-soft), rgba(255,255,255,.04));
  border: 1px solid rgba(255,122,26,.35);
}
.approach h3 { color: var(--orange); font-size: 20px; }
.approach p { margin-top: 10px; color: var(--on-dark); font-size: 15.5px; max-width: 90ch; }

/* ---------- Portfolio ---------- */
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.pf-filter {
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: all .2s;
}
.pf-filter:hover { border-color: var(--orange); color: var(--orange); }
.pf-filter.is-active {
  background: var(--navy-900); border-color: var(--navy-900); color: #fff;
}
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pf-item {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s, opacity .3s;
}
.pf-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pf-item.is-hidden { display: none; }
.pf-cover {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 52px; font-weight: 700; color: #fff;
}
.pf-cover-1 { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); }
.pf-cover-2 { background: linear-gradient(135deg, var(--orange), #ff9a4d); }
.pf-cover-3 { background: linear-gradient(135deg, #0e2f57, #1a5a9e); }
.pf-cover-4 { background: linear-gradient(135deg, #12365f, var(--orange-dark)); }
.pf-cover-5 { background: linear-gradient(135deg, #0a1c38, #234b7e); }
.pf-cover-6 { background: linear-gradient(135deg, var(--orange-dark), #7a3408); }
.pf-cover span { opacity: .9; text-shadow: 0 4px 20px rgba(0,0,0,.3); }
.pf-body { padding: 20px 22px 24px; }
.pf-tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange);
}
.pf-body h3 { margin-top: 6px; font-size: 18px; }
.pf-body p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.contact-info {
  padding: 36px 34px; border-radius: var(--radius);
  background: var(--navy-900); color: var(--on-dark);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.contact-info-title { color: #fff; font-size: 22px; }
.contact-info-list { margin-top: 22px; display: grid; gap: 18px; }
.ci-label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--orange);
}
.ci-value { display: block; margin-top: 3px; font-size: 15.5px; color: var(--on-dark); }
a.ci-value:hover { color: var(--orange); }
.contact-legal {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: var(--on-dark-soft);
}

.contact-form {
  padding: 36px 38px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; margin-bottom: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--navy-800);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-tint); font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 3px var(--orange-soft);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #d64545; background: #fdf3f3; }
.form-field textarea { resize: vertical; min-height: 130px; }
.field-error { margin-top: 6px; font-size: 13px; color: #c53030; font-weight: 500; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 14.5px; font-weight: 500; }
.form-status.is-ok { color: #1e7e3c; }
.form-status.is-err { color: #c53030; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-soft); padding: 52px 0 40px; }
.footer-inner { display: grid; gap: 26px; }
.footer-brand p { margin-top: 12px; font-size: 14px; max-width: 46ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-nav a { font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy { font-size: 13px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Reveal animacije ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .svc-items { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; top: var(--header-h); right: 0; left: 0;
    background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px 24px 20px;
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 12px 4px; font-size: 16px; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .svc-group { padding: 30px 24px; }
  .svc-group-head { flex-direction: column; gap: 10px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 22px; }
  .pf-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .stat-num { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .why-card:hover, .pf-item:hover { transform: none; }
}
