/* ==========================================================================
   GRAĐEVINSKE I ZANATSKE FIRME — dizajn 1 „Gradilište"
   Svetla podloga, signal žuta #f5a800 kao akcenat + tamni ugalj #1c2228.
   Energično i moderno: jak sans naslovni rez, žuti markeri, oštrije ivice.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Promenljive i osnovni reset
   -------------------------------------------------------------------------- */
:root {
  --bg:          #f8f8f5;   /* svetla podloga — beton/papir */
  --bg-alt:      #f1efe7;   /* alternativna sekcija — svetli pesak */
  --card:        #ffffff;   /* bele kartice */
  --card-soft:   #fcfcfa;   /* meka bela (header, polja forme) */
  --ink:         #1c2228;   /* tamni ugalj — tekst */
  --muted:       #4d5560;   /* prigušen tekst (AA na svetloj podlozi) */
  --yellow:      #f5a800;   /* signal žuta — dugmad, trake, markeri (NE za tekst na belom) */
  --yellow-hi:   #ffb81f;   /* svetlija žuta — hover */
  --yellow-soft: #fdf0cf;   /* žućkaste podloge ikona */
  --ochre:       #8a5f00;   /* tekstualni akcenat izveden iz žute (AA: 5.6:1 na belom) */
  --line:        #e3e4de;   /* ivice */
  --line-strong: #c6c9c2;   /* ivice polja forme */
  --radius:      12px;
  --shadow:      0 10px 28px rgba(28, 34, 40, 0.08);
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

::selection { background: #ffe4a1; }

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   2. Tipografija — jak sans rez, moderan i direktan
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: inherit;
  color: var(--ink);
  margin: 0 0 0.6em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 2.9rem); line-height: 1.12; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ochre);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

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

/* Skip-link za tastaturu */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--yellow);
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Raspored — kontejner i sekcije
   -------------------------------------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
  scroll-margin-top: 5.5rem; /* sidra ispod lepljivog headera */
}

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* žuti marker ispod naslova sekcije */
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
  margin: 0.55rem auto 0;
}

.section-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.5rem;
}

@media (min-width: 720px) {
  .section { padding: 4.5rem 0; }
}

/* --------------------------------------------------------------------------
   4. Dugmad — veliki klik-ciljevi (min 48px visine), gradilišna žuta
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
.btn-primary:hover { background: var(--yellow-hi); border-color: var(--yellow-hi); color: var(--ink); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   5. Header i navigacija — bela traka sa žutim „šlemom" na vrhu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card-soft);
  border-top: 4px solid var(--yellow);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 10px;
  background: var(--ink);
  color: var(--yellow);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: inherit;
  font-weight: 800;
  font-size: 1.12rem;
}
.brand-sub { font-size: 0.82rem; color: var(--muted); }

.nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.header-phone { display: none; }

.hamburger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.5rem 0.95rem;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.hamburger:hover { border-color: var(--ink); background: var(--yellow-soft); }

/* Mobilni meni */
.mobile-nav {
  background: var(--card-soft);
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  display: block;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--ochre); background: var(--bg); }
.mobile-nav .mobile-phone { color: var(--ochre); font-weight: 700; }

@media (min-width: 1024px) {
  .nav {
    display: flex;
    gap: 1.5rem;
  }
  .nav a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 0.4rem 0.1rem;
  }
  .nav a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
  }

  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ochre);
  }
  .header-phone a {
    font-weight: 700;
    text-decoration: none;
    color: var(--ochre);
  }
  .header-phone a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }

  .hamburger { display: none; }
  .mobile-nav { display: none; }
}

/* --------------------------------------------------------------------------
   6. Hero — split: tekst levo, SVG gradilište (kran + zgrada) desno
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(640px 340px at 88% 0%, rgba(245, 168, 0, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, #f1efe6 100%);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 0.8rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.hero-trust li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ochre);
  font-weight: 700;
}

.hero-figure {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
}
.hero-art {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

/* --------------------------------------------------------------------------
   7. O nama — dva pasusa + 4 kartice sa žutom ivicom
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-body p { font-size: 1.08rem; }
.about-body p + p { margin-top: 1em; }

.facts-grid {
  display: grid;
  gap: 1rem;
}

.fact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
}
.fact-card h3 {
  font-size: 1.08rem;
  color: var(--ochre);
  margin-bottom: 0.35em;
}
.fact-card p {
  font-size: 0.98rem;
  color: var(--muted);
}

@media (min-width: 720px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   8. Usluge — 8 kartica, ugalj-ikone na žućkastim pločicama
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--yellow); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--ink);
  margin-bottom: 1rem;
}
.service-icon svg { width: 27px; height: 27px; }

.service-card h3 { font-size: 1.18rem; margin-bottom: 0.4em; }
.service-card > p {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 0.9em;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.96rem;
  margin-bottom: 0.4rem;
}
.service-list li:last-child { margin-bottom: 0; }
.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ochre);
  font-weight: 700;
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .service-card { padding: 1.6rem 1.4rem; }
}

/* --------------------------------------------------------------------------
   9. Kako radimo — horizontalna traka sa 4 koraka
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  gap: 2rem;
}

.step { text-align: center; }

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--yellow-soft);
  border: 2px solid var(--yellow);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.step h3 { font-size: 1.15rem; margin-bottom: 0.35em; }
.step p {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 26em;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  /* linija koja povezuje brojeve */
  .steps::before {
    content: "";
    position: absolute;
    top: 31px;
    left: 9%;
    right: 9%;
    height: 2px;
    background: #f0d68e;
  }
}

/* --------------------------------------------------------------------------
   10. Česta pitanja — <details> kartice
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3.2rem 1.1rem 1.4rem;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ochre);
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--ochre); }

.faq-item summary:hover { color: var(--ochre); }

.faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   11. Kontakt — podaci + mapa levo, forma desno
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: var(--yellow-soft);
  color: var(--ink);
}
.contact-ico svg { width: 22px; height: 22px; }

.contact-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.contact-list a { font-weight: 600; }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 0.7rem;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}
.map-link { font-weight: 600; }

/* Forma */
.contact-form-wrap form {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}
.contact-form-wrap h3 { font-size: 1.4rem; margin-bottom: 1rem; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
}
.field textarea { min-height: 130px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: #5f6772; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(245, 168, 0, 0.3);
}

/* Honeypot — van ekrana (NE display:none) */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-ok {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background: #eaf3e4;
  color: #295329;
  border: 1px solid #bcd8b4;
  border-radius: 8px;
  font-weight: 600;
}
.form-ok.err {
  background: #f9e4e0;
  color: #8c2f22;
  border-color: #e4b7ae;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .contact-form-wrap form { padding: 2rem 1.9rem; }
}

/* --------------------------------------------------------------------------
   12. Footer — tamni ugalj sa žutom trakom
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #e7eaee;
  border-top: 4px solid var(--yellow);
  padding: 2.2rem 0;
  text-align: center;
}
.site-footer p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration-color: var(--yellow);
}
.site-footer a:hover { color: var(--yellow-hi); }
.footer-note { color: #aab3bd; }
.footer-made { white-space: nowrap; }

/* --------------------------------------------------------------------------
   13. Reveal animacije (samo transform/opacity) + smanjeno kretanje
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .service-card { transition: none; }
  .service-card:hover { transform: none; }
}
