/* ==========================================================================
   CONSSA Solutions d.o.o. — stilovi
   ========================================================================== */

:root {
  --ink: #15181D;
  --ink-2: #1F242B;
  --ink-line: rgba(255, 255, 255, .09);
  --paper: #F4F2EC;
  --surface: #FFFFFF;
  --line: #DCD7CB;
  --text: #18202C;
  --muted: #586272;
  --on-ink: #E9EDF3;
  --on-ink-muted: #A3A9B2;
  --accent: #F2B33D;
  --accent-hover: #F7C566;
  --accent-ink: #885A00;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --radius: 4px;
  --ease: cubic-bezier(.6, .1, .2, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
}

/* Osnova ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Dugmad ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font: 500 15px/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }

/* Zaglavlje --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--text);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; flex: none; }
.brand img { display: block; width: auto; height: 44px; }

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

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

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

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang button {
  padding: 7px 10px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .08em;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: #fff; background: var(--ink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.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;
  overflow: hidden;
  color: var(--on-ink);
  background: var(--ink);
}

.hero::before,
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding-block: 96px 72px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.04;
  color: #fff;
}
.hero h1 .hl { color: var(--accent); }

.hero-lead {
  max-width: 34em;
  margin-top: 26px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--on-ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-drawing {
  position: relative;
  margin: 0;
  padding: 18px;
  background: rgba(21, 24, 29, .65);
  border: 1px solid var(--ink-line);
}
.hero-drawing::before,
.hero-drawing::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
}
.hero-drawing::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-drawing::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* Tehnički crtež */
.drawing { width: 100%; height: auto; }
.drawing text {
  font: 500 10.5px var(--font-mono);
  letter-spacing: .06em;
  fill: rgba(255, 255, 255, .55);
}
.drawing text.accent { fill: var(--accent); }
.drawing .axis line {
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1;
  stroke-dasharray: 10 4 2 4;
}
.drawing .ext line { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.drawing .member { stroke: rgba(255, 255, 255, .88); stroke-width: 2.5; stroke-linecap: square; }
.drawing .member.thin { stroke-width: 1.6; stroke-linejoin: round; }
.drawing .footing { fill: var(--ink); stroke-width: 1.5; }
.drawing .brace { stroke: var(--accent); stroke-width: 1.3; opacity: .8; }
.drawing .dim { stroke: var(--accent); stroke-width: 1; }
.drawing .label path { stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.drawing .bubble circle { stroke: var(--accent); stroke-width: 1.2; }

.drawing [pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.drawing .label,
.drawing .fade,
.drawing .ext {
  opacity: 0;
  animation: fade .8s ease 1.7s forwards;
}
.drawing .fade { animation-delay: .3s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* Ključni podaci ispod hero sekcije */
.spec {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--ink-line);
}
.spec > div { padding: 24px 28px; border-left: 1px solid var(--ink-line); }
.spec > div:first-child { padding-left: 0; border-left: 0; }
.spec dt {
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.spec dd {
  margin: 6px 0 0;
  font: 500 21px/1.3 var(--font-display);
  color: #fff;
}

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

.section { position: relative; padding-block: 112px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.section-label .num {
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  letter-spacing: .08em;
}
.section-label::after {
  content: "";
  width: 100%;
  max-width: 120px;
  height: 1px;
  background: var(--line);
}

.section-title {
  max-width: 15em;
  margin-top: 22px;
  font-size: clamp(32px, 4vw, 50px);
}

.section-lead {
  max-width: 36em;
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
}

/* O nama */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
  gap: 72px;
}
.about-text .about-intro { margin-top: 28px; font-size: 19px; color: var(--text); }
.about-text p + p { margin-top: 18px; color: var(--muted); }

.titleblock {
  margin-top: 26px;
  background: var(--surface);
  border: 1.5px solid var(--text);
  font-family: var(--font-mono);
}
.tb-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--text);
}
.titleblock dl {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 0;
}
.titleblock dt,
.titleblock dd {
  margin: 0;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.titleblock dt {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.titleblock dd { font: 15px/1.5 var(--font-body); color: var(--text); }
.titleblock dl > :nth-last-child(-n+2) { border-bottom: 0; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.value h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 23px;
}
.value .tag {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0;
  color: var(--accent-ink);
  border: 1px solid var(--accent-ink);
  border-radius: 50%;
}
.value p { margin-top: 12px; color: var(--muted); }

/* Usluge */
.services { background: var(--surface); }

.services-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 64px;
}
.services-head .section-lead { max-width: 30em; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  position: relative;
  padding: 36px 32px 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width .4s var(--ease);
}
.card:hover { background: var(--paper); }
.card:hover::before { width: calc(100% + 2px); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-num { font: 500 12px/1 var(--font-mono); color: var(--muted); letter-spacing: .08em; }
.card h3 { margin-top: 30px; font-size: 22px; }
.card p { margin-top: 12px; font-size: 16px; color: var(--muted); }

/* Kako radimo */
.process { overflow: hidden; color: var(--on-ink); background: var(--ink); }
.process::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000 10%, transparent 70%);
}
.process .container { position: relative; }
.process .section-label { color: var(--accent); }
.process .section-label::after { background: var(--ink-line); }
.process .section-title { color: #fff; }
.process .section-lead { color: var(--on-ink-muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
}
.step-num { font: 500 13px/1 var(--font-mono); letter-spacing: .1em; color: var(--accent); }
.step h3 { margin-top: 14px; font-size: 24px; color: #fff; }
.step p { margin-top: 12px; font-size: 16px; color: var(--on-ink-muted); }

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 64px;
}

.contact-cta { margin-top: 32px; }

.contact-list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list .k {
  padding-top: 4px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a {
  justify-self: start;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
.contact-list a:hover { border-color: var(--accent-ink); }

.contact-map { margin-top: 26px; }
.map {
  aspect-ratio: 1 / 1;
  background: #E6E2D8;
  border: 1px solid var(--line);
  overflow: hidden;
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}
.map-link {
  display: inline-block;
  margin-top: 12px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-ink);
}
.map-link:hover { text-decoration: underline; }

/* Podnožje ---------------------------------------------------------------- */

.site-footer {
  padding-block: 72px 32px;
  font-size: 15px;
  color: var(--on-ink-muted);
  background: var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1.4fr;
  gap: 48px;
}
.footer-tagline { max-width: 22em; margin-top: 20px; }
.footer-contact { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.footer-contact a { color: var(--on-ink); text-decoration: none; transition: color .2s; }
.footer-contact a:hover { color: var(--accent); }
.footer-title {
  margin-bottom: 16px;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }

.legal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  margin: 0;
  font-size: 14px;
}
.legal dt { font: 500 11px/1.9 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.legal dd { margin: 0; color: var(--on-ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  font-size: 13px;
  border-top: 1px solid var(--ink-line);
}

/* Animacija pri skrolanju ------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .drawing [pathLength] { animation: none; stroke-dashoffset: 0; }
  .drawing .label, .drawing .fade, .drawing .ext { animation: none; opacity: 1; }
}

/* Responzivnost ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .nav-links { gap: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 8px var(--gutter) 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -24px rgba(21, 24, 29, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav-actions { justify-content: space-between; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-block: 64px 48px; }
  .hero-drawing { max-width: 600px; }

  .section { padding-block: 88px; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .titleblock, .contact-map { margin-top: 0; }
  .map { aspect-ratio: 16 / 10; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .brand img { height: 36px; }

  .hero-inner { padding-block: 48px 40px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-drawing { padding: 10px; }

  .spec { grid-template-columns: 1fr; }
  .spec > div,
  .spec > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .spec > div:last-child { border-bottom: 0; }
  .spec dd { margin: 0; font-size: 17px; }

  .section { padding-block: 72px; }
  .section-lead { font-size: 17px; }

  .titleblock dl { grid-template-columns: 1fr; }
  .titleblock dt { padding-bottom: 2px; border-right: 0; border-bottom: 0; }
  .titleblock dd { padding-top: 0; }
  .titleblock dl > :nth-last-child(2) { border-bottom: 0; }

  .values { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }

  .cards { grid-template-columns: 1fr; margin-top: 48px; }
  .card { padding: 28px 22px 32px; }
  .card h3 { margin-top: 22px; }

  .steps { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }

  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .contact-cta { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .legal { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 10px; }
}
