/* SF Constructions d.o.o. — stilovi sajta
   Boje i font po Knjizi grafičkih standarda v2.0 (2026).
   Mobile first: osnovna pravila su za telefon, @media (min-width: 960px) za desktop. */

:root {
  --navy: #101828;        /* Ponoćna plava – primarna */
  --green: #16A06B;       /* Zelena – akcenat, tačka */
  --green-light: #2BD18F; /* Svijetla zelena – samo tačka na ponoćnoj plavoj */
  --stone: #D9D6CF;       /* Kamen */
  --cream: #FAFAF7;       /* Krem bijela – podloga */
  --white: #FFFFFF;
  --ink-2: #2A3344;       /* tekst paragrafa */
  --muted: #4A5363;       /* oznake, potpisi */
  --line: #D9D6CF;
  --line-soft: #E6E4DE;
  --field: #C9C6BE;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --radius: 12px;
  --radius-lg: 16px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); }
a:hover { color: var(--green); }

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Tačka – potpis iz logotipa */
.dot { color: var(--green); }
.dot-light { color: var(--green-light); }

/* ---------- Logotip ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--navy);
  text-decoration: none;
}
.logo:hover { color: var(--navy); }
.logo-sf { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.07em; }
.logo-word { font-size: 11.5px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.logo--light { color: var(--cream); }
.logo--light .dot { color: var(--green-light); }
.logo--footer .logo-sf { font-size: 36px; }
.logo--footer .logo-word { font-size: 14px; }

/* ---------- Zaglavlje i navigacija ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  padding: 8px var(--gutter) 28px;
  background: var(--navy);
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid rgba(250, 250, 247, 0.12);
  color: var(--cream);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a[aria-current="page"]::after { content: "."; color: var(--green-light); }

/* ---------- Dugmad i linkovi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { background: var(--white); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: #1E2A40; color: var(--cream); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 44px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Tipografija ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.eyebrow--plain::before { display: none; }

.h1 {
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.037em;
  text-wrap: balance;
}
.h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }

.lead { font-size: 17px; line-height: 1.58; color: var(--ink-2); }
.text { color: var(--ink-2); }
.small { font-size: 13px; color: var(--muted); }

/* ---------- Sekcije ---------- */
.section { padding-block: 56px; }
.section--line { border-top: 1px solid var(--line-soft); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { gap: 32px; }

.page-intro { padding-block: 40px 32px; }
.page-intro .stack-sm { gap: 16px; }

.bleed-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.rounded { border-radius: var(--radius); }

/* ---------- Naslovna: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}
.hero::before {
  content: "";
  position: absolute;
  right: -96px;
  bottom: calc(56.25vw - 130px);
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: var(--green);
}
.hero-grid { position: relative; display: grid; gap: 40px; padding-top: 48px; }
.hero-text { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero .eyebrow { margin-bottom: 22px; color: var(--stone); }
.hero-title {
  font-size: clamp(54px, 7.3vw, 104px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.048em;
}
.hero-lead { max-width: 480px; margin-top: 24px; font-size: 17px; line-height: 1.55; color: var(--stone); }
.hero-text .btn { margin-top: 32px; }
.hero-img {
  position: relative;
  width: calc(100% + 2 * var(--gutter));
  max-width: none;
  margin-inline: calc(-1 * var(--gutter));
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- Izdvojeni projekat ---------- */
.feature { display: grid; gap: 20px; grid-template-areas: "head" "img" "body"; }
.feature-head { grid-area: head; }
.feature-img { grid-area: img; }
.feature-body { grid-area: body; }

.rows { border-top: 1px solid var(--line); }
.rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.rows li span:first-child { font-weight: 600; }
.rows li span:last-child { color: var(--muted); text-align: right; }

/* ---------- Koraci (Šta radimo) ---------- */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 12px; }
.step-num {
  grid-row: span 2;
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--green);
}
.step p { font-size: 15px; color: var(--ink-2); }

/* ---------- Poziv na kontakt ---------- */
.cta { padding-block: 52px; background: var(--stone); }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-mail { font-size: 15px; font-weight: 600; user-select: all; }

/* ---------- Projekat ---------- */
.facts { border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.facts dt {
  padding-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-hero { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.project-detail { display: grid; gap: 40px; padding-block: 36px 48px; }
.project-detail .stack { gap: 16px; }

.gallery { display: grid; gap: 24px; }
.gallery figure { display: flex; flex-direction: column; gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- O nama ---------- */
.about-intro { display: grid; gap: 36px; padding-top: 40px; }
.about-intro .bleed-img { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stats dd { font-size: 34px; line-height: 1.1; font-weight: 300; letter-spacing: -0.03em; }
.stats dd.stats-text { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }

.principles { display: flex; flex-direction: column; gap: 28px; }
.principles h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.principles p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

.dots-band {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image: radial-gradient(circle, rgba(250, 250, 247, 0.14) 1.4px, transparent 1.8px);
  background-size: 22px 22px;
  color: var(--cream);
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 40px; padding-bottom: 48px; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list .label,
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list .value { font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--navy); text-decoration: none; }
.company-data { margin-top: 32px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.company-data strong { color: var(--navy); }
.company-data .label { margin-bottom: 8px; }
.form-card .h2 { font-size: clamp(26px, 2.2vw, 30px); }

.form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-inline: calc(-1 * var(--gutter));
  padding: 40px var(--gutter) 44px;
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input,
.field textarea {
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--cream);
  font: inherit;
  font-size: 16px;
  color: var(--navy);
}
.field input { height: 50px; }
.field textarea { padding-block: 12px; line-height: 1.5; resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: #6B7280; }
.field input:focus,
.field textarea:focus { border-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 4px; }
.form-status { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.form-status.is-ok { color: #0E7A50; }
.form-status.is-error { color: #B42318; }

.map-band { min-height: 260px; display: flex; }
.map-inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding-block: 24px; }
.map-pin {
  position: absolute;
  left: 48%;
  top: 72px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 0 8px rgba(43, 209, 143, 0.18);
}
.map-city { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.map-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; color: var(--cream); font-size: 15px; font-weight: 600; }
.map-link:hover { color: var(--green-light); }

/* ---------- Podnožje ---------- */
.site-footer { padding-block: 48px 40px; border-top: 1px solid rgba(250, 250, 247, 0.14); background: var(--navy); color: var(--stone); font-size: 15px; line-height: 1.6; }
.footer-grid { display: flex; flex-direction: column; gap: 28px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--green-light); }
.footer-name { color: var(--cream); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 250, 247, 0.14);
  font-size: 13px;
  line-height: 1.7;
}

/* ---------- 404 ---------- */
.notfound { padding-block: 96px; }

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  .header-inner { height: 80px; }
  .logo { gap: 6px; }
  .logo-sf { font-size: 34px; }
  .logo-word { font-size: 13px; }
  .logo--footer .logo-sf { font-size: 44px; }
  .logo--footer .logo-word { font-size: 17px; }

  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 36px; }
  .site-nav .nav-home { display: none; }
  .site-nav a {
    min-height: 44px;
    border: 0;
    color: var(--navy);
    font-size: 15px;
    letter-spacing: 0;
  }
  .site-nav a:hover { color: var(--green); }
  .site-nav a[aria-current="page"]::after { color: var(--green); }
  .site-nav .nav-cta a {
    padding: 0 22px;
    border-radius: 999px;
    background: var(--navy);
    color: var(--cream);
  }
  .site-nav .nav-cta a:hover { background: #1E2A40; color: var(--cream); }
  .site-nav .nav-cta a[aria-current="page"]::after { color: var(--green-light); }

  .section { padding-block: 112px 120px; }
  .stack-lg { gap: 48px; }
  .eyebrow { font-size: 13px; }
  .lead { font-size: 19px; }
  .btn { min-height: 54px; padding: 0 28px; }
  .h3 { font-size: 22px; }

  .page-intro { padding-block: 88px 48px; }
  .page-intro .stack-sm { gap: 20px; }

  .hero::before { right: -150px; bottom: -260px; width: 560px; height: 560px; }
  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
    align-items: center;
    padding-block: 96px 112px;
  }
  .hero .eyebrow { margin-bottom: 28px; }
  .hero-lead { margin-top: 32px; font-size: 20px; }
  .hero-text .btn { margin-top: 40px; }
  .hero-img {
    width: 100%;
    margin: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  }

  .feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "img head" "img body";
    grid-template-rows: auto auto;
    column-gap: 72px;
    row-gap: 22px;
  }
  .feature-head { align-self: end; }
  .feature-img { align-self: center; border-radius: var(--radius-lg); }
  .feature-body { align-self: start; }

  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .step { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 2px solid var(--navy); }
  .step-num { font-size: 56px; }
  .step p { font-size: 16px; }

  .cta { padding-block: 88px; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .cta-inner .stack-sm { max-width: 640px; }
  .cta-actions { align-items: flex-end; flex-shrink: 0; }

  .project-hero { width: 100%; margin: 0; border-radius: var(--radius-lg); }
  .project-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; padding-block: 88px 96px; }
  .project-detail .stack { max-width: 640px; gap: 18px; }
  .project-detail .text { font-size: 18px; line-height: 1.65; }
  .facts > div { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; font-size: 16px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .gallery .span-2 { grid-column: span 2; }

  .about-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; padding-block: 88px 96px; }
  .about-intro .bleed-img { width: 100%; margin: 0; border-radius: var(--radius-lg); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; border-top: 2px solid var(--navy); }
  .stats > div { padding: 22px 24px 0 0; border: 0; gap: 8px; }
  .stats dd { font-size: 44px; line-height: 1.05; }
  .stats dd.stats-text { font-size: 18px; }
  .principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .principles h3 { font-size: 28px; letter-spacing: -0.03em; }
  .principles p { margin-top: 12px; font-size: 17px; }
  .dots-band { background-size: 24px 24px; }

  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; padding-bottom: 96px; }
  .contact-list { border-top: 2px solid var(--navy); }
  .contact-list li { padding: 18px 0; }
  .contact-list .value { font-size: 22px; letter-spacing: -0.015em; }
  .form-card { margin: 0; padding: 40px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); gap: 24px; }
  .form { gap: 18px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .field input { height: 52px; padding: 0 16px; }
  .field textarea { padding: 14px 16px; }
  .form .btn { align-self: flex-start; }
  .map-band { min-height: 320px; }
  .map-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-block: 40px; }
  .map-pin { top: 108px; width: 22px; height: 22px; box-shadow: 0 0 0 10px rgba(43, 209, 143, 0.18); }
  .map-city { font-size: 28px; letter-spacing: -0.03em; }
  .map-link { font-size: 16px; }

  .site-footer { padding-block: 72px 44px; }
  .footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
  .footer-nav { flex-direction: column; gap: 4px; }
  .footer-nav a { min-height: 0; }
  .footer-legal { flex-direction: row; justify-content: space-between; gap: 24px; margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
