/* ============================================================
   Geodetska organizacija — dizajn 3 „Topo"
   Svetla topla podloga, duboka zelena + sage, topografske konture.
   Desktop-first; breakpointi: 1024px, 720px.
   ============================================================ */

/* ---------- 1) Promenljive i reset ---------- */
:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #232a26;
  --muted: #5c6a61;
  --green: #1e5c46;
  --green-dark: #17493a;
  --sage: #9db89f;
  --sage-light: #e3ebe2;
  --sage-tint: #eef2ec;
  --line: #e4e2d9;
  --r-lg: 16px;
  --r-md: 14px;
  --r-sm: 12px;
  --shadow-sm: 0 4px 14px rgba(30, 60, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 60, 46, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Sidra ispod lepljivog zaglavlja */
section[id] { scroll-margin-top: 86px; }

/* ---------- 2) Pomoćne klase ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Pill oznaka sekcije */
.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--sage-light);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.section-head.center { text-align: center; }
.section-lead {
  color: var(--muted);
  max-width: 560px;
  margin: 12px auto 0;
}

/* Dugmad — pill oblik */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: var(--card);
  color: var(--green);
  border-color: var(--sage);
}
.btn-ghost:hover { border-color: var(--green); }

.btn-block { display: block; width: 100%; text-align: center; }

/* Zajednički stil linijskih ikona */
.ico,
.fact-ico svg,
.svc-ico svg,
.info-ico svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Honeypot — van ekrana */
.hp {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 3) Zaglavlje ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 1.02rem; }
.brand-sub { font-size: 0.78rem; color: var(--muted); }

.nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
}
.nav a:hover { color: var(--green); text-decoration: none; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  background: var(--card);
  color: var(--green);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-phone:hover { text-decoration: none; border-color: var(--green); }
.header-phone .ico { width: 17px; height: 17px; flex-shrink: 0; }

/* Hamburger dugme */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  background: var(--card);
  color: var(--green);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-toggle .ico { width: 20px; height: 20px; }

/* ---------- 4) Mobilna navigacija ---------- */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 14px;
}
.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 13px 24px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--sage-tint);
}
.mobile-nav a:hover { text-decoration: none; color: var(--green); }
.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav .mobile-phone {
  margin: 12px 24px 0;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--sage);
  color: var(--green);
  padding: 12px 20px;
}

/* ---------- 5) Hero + topo konture ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 88px;
}

.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Nijanse kontura — hero (svetla podloga) */
.hero .topo .c1 { stroke: var(--green); opacity: 0.10; }
.hero .topo .c2 { stroke: #4f8a6d; opacity: 0.12; }
.hero .topo .c3 { stroke: var(--sage); opacity: 0.22; }

.hero-inner {
  position: relative;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--sage-light);
  box-shadow: var(--shadow-sm);
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 26px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.h1-line {
  display: block;
  margin-top: 12px;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-trust li { display: flex; align-items: center; }
.hero-trust li + li::before {
  content: "·";
  margin: 0 12px;
  color: var(--sage);
  font-weight: 700;
}

/* ---------- 6) O birou ---------- */
.about {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p { color: var(--ink); font-size: 1.05rem; }
.about-text p:last-child { margin-bottom: 0; color: var(--muted); }

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
}

.fact-card {
  background: var(--sage-tint);
  border: 1px solid var(--sage-light);
  border-radius: var(--r-md);
  padding: 20px;
}
.fact-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  color: var(--green);
  margin-bottom: 12px;
}
.fact-ico svg { width: 22px; height: 22px; }
.fact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.fact-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- 7) Usluge ---------- */
.services { padding: 88px 0; }

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

.svc-card {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.svc-card:hover { transform: translateY(-4px); }

.svc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sage-tint);
  border: 1px solid var(--sage-light);
  color: var(--green);
  flex-shrink: 0;
}
.svc-ico svg { width: 26px; height: 26px; }

.svc-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.svc-body > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }

.svc-list { list-style: none; }
.svc-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 5px;
}
.svc-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}
.svc-list li:last-child { margin-bottom: 0; }

/* ---------- 8) Saradnja (koraci) ---------- */
.steps-sec {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
  max-width: 920px;
  margin: 0 auto;
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px 26px 82px;
}

.step-num {
  position: absolute;
  left: 24px;
  top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 0 0 5px var(--sage-light);
}

.step-body h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- 9) Česta pitanja (FAQ) ---------- */
.faq { padding: 88px 0; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  position: relative;
  padding: 18px 34px 18px 0;
  font-weight: 600;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }

/* Strelica (chevron) */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
}

/* ---------- 10) Kontakt ---------- */
.contact {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 88px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-intro { color: var(--muted); margin-bottom: 26px; }

.info-list { list-style: none; margin-bottom: 26px; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
}

.info-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-tint);
  border: 1px solid var(--sage-light);
  color: var(--green);
  flex-shrink: 0;
}
.info-ico svg { width: 20px; height: 20px; }

.info-body { display: flex; flex-direction: column; padding-top: 1px; min-width: 0; overflow-wrap: anywhere; }
.info-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.info-body a { font-weight: 600; }

.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--sage-tint);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Forma */
.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 { font-size: 1.3rem; margin-bottom: 18px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d5ca;
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 92, 70, 0.14);
}

.form-ok {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--sage-light);
  border: 1px solid var(--sage);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-ok.is-err {
  background: #f7ecdd;
  border-color: #e8d5b5;
  color: #8a5a1c;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- 11) Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: #e8efe9;
  padding: 56px 0;
}

/* Nijanse kontura — footer (tamna podloga) */
.site-footer .topo .c1 { stroke: var(--sage); opacity: 0.22; }
.site-footer .topo .c2 { stroke: #cfe0d0; opacity: 0.12; }
.site-footer .topo .c3 { stroke: var(--sage); opacity: 0.16; }

.footer-inner {
  position: relative;
  text-align: center;
}

.footer-line { margin: 0 0 8px; font-size: 0.98rem; overflow-wrap: anywhere; }
.footer-brandline { font-weight: 700; font-size: 1.05rem; }

.footer-inner a { color: #fff; font-weight: 600; }
.footer-inner a:hover { text-decoration: underline; }

.footer-note {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: rgba(232, 239, 233, 0.75);
}

.footer-copy {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 239, 233, 0.2);
  font-size: 0.86rem;
  color: rgba(232, 239, 233, 0.75);
}
.footer-made { opacity: 0.85; }

/* ---------- 12) Reveal na skrol ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 13) Pristupačnost — smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .svc-card:hover { transform: none; }
}

/* ---------- 14) Responsive: ≤1024px ---------- */
@media (max-width: 1024px) {
  .header-phone { display: none; }
  .nav { gap: 18px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero { padding: 84px 0 72px; }
}

/* ---------- 15) Responsive: ≤720px ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }

  section[id] { scroll-margin-top: 74px; }

  .hero { padding: 64px 0 56px; }
  .hero-lead { font-size: 1.03rem; }
  .hero-actions .btn { width: 100%; }
  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .hero-trust li + li::before { display: none; }

  .about, .services, .steps-sec, .faq, .contact { padding: 60px 0; }
  .section-head { margin-bottom: 30px; }

  .fact-grid { grid-template-columns: 1fr; }

  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { padding: 22px; }

  /* Koraci: vertikalni timeline sa linijom i tačkama */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--sage-light);
  }
  .step {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 0 30px 62px;
  }
  .step:last-child { padding-bottom: 0; }
  .step-num { left: 0; top: 0; }

  .contact-form-card { padding: 24px 20px; }

  .map-wrap iframe { height: 240px; }
}
