/* =========================================================
   Geometar — Dizajn 2 „Teren"
   Tamna graphite osnova, signalno žuti akcenat (hi-vis),
   crosshair/nišan motiv, mono koordinate kao dekor.
   Desktop-first · breakpointi: 1024px, 720px
   ========================================================= */

/* ---------- 1. Promenljive i reset ---------- */
:root {
  --bg: #141a22;
  --panel: #1d2732;
  --panel-2: #232f3d;
  --accent: #f5b301;
  --accent-strong: #ffc61a;
  --accent-soft: rgba(245, 179, 1, 0.12);
  --text: #eef2f6;
  --muted: #9aa8b8;
  --line: rgba(154, 168, 184, 0.18);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
ul, ol { list-style: none; }
section[id] { scroll-margin-top: 88px; }

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

/* ---------- 2. Pomoćne klase ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }

/* naslov sekcije: crosshair + tag + h2 */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  margin-bottom: 44px;
}

.head-mark {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: var(--panel);
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
}

/* merna traka — separator sekcija */
.tape-sep {
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 34px, transparent 34px 38px);
  opacity: 0.28;
}

/* koordinate — mono dekor (generičke, nisu podaci firme) */
.coords {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- 3. Dugmad ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary { background: var(--accent); color: #16130a; }
.btn-primary:hover { background: var(--accent-strong); color: #16130a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- 4. Header i navigacija ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 26, 34, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  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.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 24px; margin-left: auto; }

.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover { color: var(--text); border-bottom-color: var(--accent); }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--text);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.header-phone:hover { border-color: var(--accent); color: var(--accent); }
.header-phone svg { color: var(--accent); }

/* hamburger — vidljiv samo ispod 1024px */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 14px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle:hover { border-color: var(--accent); color: var(--accent); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 24px 16px;
}

.mobile-nav a {
  padding: 13px 4px;
  color: var(--text);
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mobile-phone { font-family: var(--mono); color: var(--accent); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 64px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(154, 168, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 168, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-motif {
  position: absolute;
  top: 50%;
  right: -70px;
  transform: translateY(-56%);
  width: min(46vw, 500px);
  height: auto;
  color: var(--accent);
  opacity: 0.16;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow-tick {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

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

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero .coords { margin-top: 8px; }

/* trust traka ispod hero sadržaja */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin-top: 42px;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}

.trust-bar svg { color: var(--accent); flex-shrink: 0; }

/* ---------- 6. O birou ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-body p { max-width: 760px; color: var(--text); margin-bottom: 16px; }
.about-body p:last-child { margin-bottom: 0; }

.fact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.fact-cards li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}

.fact-cards h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; }
.fact-cards p { font-size: 0.88rem; color: var(--muted); }

/* ---------- 7. Usluge ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover { transform: translateY(-3px); border-color: rgba(245, 179, 1, 0.45); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.service-card > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 14px; }

.service-list { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.service-list li { font-size: 0.9rem; color: var(--text); padding: 3px 0; }
.service-list li::before { content: "— "; color: var(--accent); }

/* ---------- 8. Saradnja (koraci) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  position: relative;
}

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}

.step-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 0.92rem; color: var(--muted); }

/* ---------- 9. Česta pitanja ---------- */
.faq-list { max-width: 820px; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.18s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

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

.contact-info {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.info-list li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.info-list li:last-child { border-bottom: none; }

.info-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}

.info-value { color: var(--text); }
.info-value a { color: var(--text); }
.info-value a:hover { color: var(--accent); }

.map-wrap {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
  filter: grayscale(0.3) contrast(0.96);
}

.map-link { display: inline-block; margin-top: 12px; font-size: 0.9rem; font-weight: 600; }
.map-link::after { content: " ↗"; }

/* forma */
.contact-form-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.98rem;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea { resize: vertical; min-height: 110px; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(154, 168, 184, 0.55); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.form-ok {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 179, 1, 0.4);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}

.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

/* ---------- 11. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #101620;
  padding: 44px 0 36px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-name { font-weight: 700; font-size: 1.05rem; }
.coords-footer { margin-left: auto; }

.footer-line,
.footer-phone { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }

.footer-line a,
.footer-phone a { color: var(--muted); }

.footer-line a:hover,
.footer-phone a:hover { color: var(--accent); }

.footer-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.footer-made { color: var(--muted); }

/* ---------- 12. Reveal animacija ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in { opacity: 1; transform: none; }

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

  .reveal { opacity: 1; transform: none; transition: none; }

  .btn,
  .service-card,
  .faq-item summary::after { transition: none; }
}

/* ---------- 13. Breakpoint: 1024px ---------- */
@media (max-width: 1024px) {
  .nav,
  .header-phone { display: none; }

  .menu-toggle { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: flex; }

  .hero { padding: 84px 0 56px; }
  .hero-motif { right: -140px; opacity: 0.1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- 14. Breakpoint: 720px ---------- */
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }

  .hero { padding: 64px 0 44px; }
  .hero-motif { display: none; }
  .hero-lead { font-size: 1.02rem; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .trust-bar { flex-direction: column; gap: 12px; margin-top: 32px; }

  .services-grid,
  .steps-grid,
  .fact-cards { grid-template-columns: 1fr; }

  .info-list li { grid-template-columns: 1fr; gap: 2px; }

  .contact-info,
  .contact-form-wrap { padding: 20px; }

  .footer-brand { flex-wrap: wrap; }
  .coords-footer { margin-left: 0; width: 100%; }
}
