/* Oliver Consulting d.o.o. | site styles | 2026-09-27
   Paleta i tipografija preuzete s ipwhois.net v3 (Geist, bijela + topla ploha, crna tinta). */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #fff;
  --surface: hsl(40 18% 97%);
  --surface-2: hsl(40 14% 93%);
  --line: hsl(222 19% 91%);
  --line-2: hsl(222 19% 86%);
  --ink: hsl(0 0% 4%);
  --ink-2: hsl(0 0% 4% / .82);
  --ink-3: hsl(216 4% 51%);
  --ink-4: hsl(216 5% 68%);
  --info: #1d55c4;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: 20px;
  --maxw: 1240px;
  --hdr: 64px;
}

* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: #fff; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
h1, h2, h3 { letter-spacing: -.025em; font-weight: 600; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 18px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--ink-2); margin: 14px 0 0; font-size: 17px; }

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(0 0% 100% / .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 20px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.main-nav { display: none; gap: 28px; font-size: 14.5px; }
.main-nav a { color: var(--ink-3); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: hsl(0 0% 18%); border-color: hsl(0 0% 18%); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-4); color: var(--ink); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15.5px; }
:focus-visible { outline: 2px solid hsl(216 10% 42% / .55); outline-offset: 2px; }
.head-cta { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mobile-nav a:last-child { border-bottom: 0; }

/* Hero */
.hero { padding: 44px 0 52px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.06; margin-bottom: 22px; font-weight: 600; }
.hero h1 span { color: var(--ink-3); }
.hero-lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-note { font-size: 14px; color: var(--ink-3); margin: 0; }
.schematic { border: 1px solid var(--line); background: var(--surface); padding: 18px 18px 12px; margin: 0; }
.schematic figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 10px; letter-spacing: .04em; }

/* Stats */
.stats { background: var(--ink); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 24px 16px 24px 0; border-bottom: 1px solid hsl(0 0% 100% / .14); }
.stat:nth-child(2n) { padding-left: 16px; border-left: 1px solid hsl(0 0% 100% / .14); }
.stat-num { font-size: clamp(24px, 4vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat-txt { font-size: 13.5px; color: hsl(0 0% 100% / .62); margin-top: 6px; }

/* Services */
.cards { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.card { padding: 28px 0; border-bottom: 1px solid var(--line); }
.card-ico { width: 28px; height: 28px; color: var(--ink); margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); border: 1px solid var(--line); padding: 3px 8px; background: var(--surface); }

/* Experience */
.roles { display: grid; gap: 0; }
.role { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 14px; }
.role:last-child { border-bottom: 0; }
.role-when { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.role-where { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.role h3 { font-size: 21px; margin-bottom: 4px; }
.role .org { font-size: 14.5px; color: var(--ink-3); margin-bottom: 12px; }
.role ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.role li { margin-bottom: 8px; font-size: 15.5px; }
.role li:last-child { margin-bottom: 0; }

/* Projects */
.projects { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.project:hover { background: var(--surface); }
.project-name { font-weight: 600; font-size: 16.5px; }
.project-key { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); }
.project-desc { font-size: 15px; color: var(--ink-2); }

/* Capabilities */
.cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
.col h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 500; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.list li strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.contact-intro { color: var(--ink-2); font-size: 17px; margin: 14px 0 24px; max-width: 40em; }
.contact-mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: -.02em;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow-wrap: anywhere;
}
.contact-mail svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.contact-mail:hover svg { color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0; }
.facts dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 15.5px; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.foot-in { display: grid; gap: 16px; padding: 30px 0; }
.foot-in p { margin: 0; line-height: 1.65; }
.foot-in strong { color: var(--ink-2); font-weight: 600; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-3); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 12px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------ mobitel (do 639px) */
@media (max-width: 639px) {
  body { font-size: 15.5px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15.5px; }
  h2 { font-size: 27px; }
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 33px; line-height: 1.1; margin-bottom: 18px; }
  .hero-lead { font-size: 16px; margin-bottom: 24px; }
  .hero-actions { gap: 10px; margin-bottom: 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-grid { gap: 28px; }

  /* Oznake u shemi su u SVG jedinicama, pa ih na uskom ekranu treba povećati. */
  .schematic { padding: 14px 14px 10px; }
  .schematic svg text { font-size: 13px; }
  .schematic figcaption { font-size: 11px; line-height: 1.5; }

  .stat { padding: 20px 14px 20px 0; }
  .stat:nth-child(2n) { padding-left: 14px; }
  .stat-txt { font-size: 12.5px; }

  .card { padding: 24px 0; }
  .card p { font-size: 15px; }
  .card-ico { width: 24px; height: 24px; margin-bottom: 12px; }

  .role { padding: 26px 0; gap: 10px; }
  .role h3 { font-size: 19px; line-height: 1.25; }
  .role li { font-size: 15px; line-height: 1.55; }
  .role ul { padding-left: 18px; }
  .role-where { margin-top: 4px; }

  .project { padding: 18px 0; gap: 4px; }
  .project-name { font-size: 16px; line-height: 1.35; }
  .project-desc { font-size: 14.5px; }

  .cols { gap: 26px; }
  .list li { font-size: 15px; }

  .contact-intro { font-size: 15.5px; margin: 12px 0 20px; }
  .contact-mail { font-size: 19px; padding: 16px 0; }
  .facts { gap: 16px; }
  .facts dd { font-size: 15px; }

  .foot-in { padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); left: 16px; right: 16px; transform: none; text-align: center; }
  .toast.show { transform: none; }
}

@media (min-width: 640px) {
  :root { --pad: 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(2n) { border-bottom: 0; border-left: 1px solid hsl(0 0% 100% / .14); padding: 28px 18px; }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .project { grid-template-columns: 1.4fr 1fr; column-gap: 32px; }
  .project-desc { grid-column: 1 / -1; }
  .cols { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .section { padding: 88px 0; }
  .main-nav { display: flex; }
  .head-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .role { grid-template-columns: 230px 1fr; gap: 32px; }
  .cols { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
  .foot-in { grid-template-columns: 1fr auto; align-items: end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------- fotografije i galerija */
.hero-media { margin: 0; border: 1px solid var(--line); background: var(--surface); }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-media figcaption {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  letter-spacing: .03em;
}

.gallery { display: grid; gap: 0; }
.stage {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}
.shot.is-active { opacity: 1; visibility: visible; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--surface-2); }
.shot-video video { object-fit: contain; background: #000; }

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 10px 12px;
}
.stage-cap { margin: 0; position: relative; min-height: 1.4em; flex: 1; }
.cap-item {
  position: absolute;
  inset: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.cap-item.is-active { opacity: 1; }
.stage-nav { display: flex; gap: 6px; flex: none; }
.navbtn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.navbtn:hover { background: var(--surface); }
.navbtn svg { width: 16px; height: 16px; }

.thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 2px;
  scrollbar-width: thin;
}
.thumb {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  opacity: .62;
  transition: opacity .2s, border-color .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { opacity: 1; }
.thumb.is-active { opacity: 1; border-color: var(--ink); }
.thumb .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: hsl(0 0% 0% / .28);
  color: #fff;
}
.thumb .play svg { width: 22px; height: 22px; }

@media (min-width: 980px) {
  .stage { aspect-ratio: 16 / 9; }
  .thumbs { grid-auto-columns: 110px; gap: 10px; }
}
@media (max-width: 639px) {
  .hero-media figcaption { font-size: 11px; padding: 9px 10px; }
  .stage { aspect-ratio: 3 / 2; }
  .stage-bar { padding: 9px 10px; gap: 10px; }
  .cap-item { font-size: 11.5px; }
  .thumbs { grid-auto-columns: 72px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot, .cap-item { transition: none; }
}

/* Uspravne fotografije: cijela slika stane u okvir, a pozadinu popunjava
   zamucena ista slika, pa nema rezanja glave ni praznih rubova. */
.shot::before {
  content: "";
  position: absolute;
  inset: -6%;
  background-image: var(--shot-bg);
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(.72) saturate(.85);
  transform: scale(1.08);
}
.shot picture { position: absolute; inset: 0; display: block; z-index: 1; }
.shot img { width: 100%; height: 100%; object-fit: contain; background: none; }
.thumb img { object-position: center 38%; }

/* E-adresa se sastavlja u pregledniku; do tada stoji zapis koji roboti ne mogu iskoristiti. */
.mail-slot { overflow-wrap: anywhere; }
