/* ============================================================
   Građevinska firma — dizajn 3 „Beton"
   Betonsko siva podloga, čelično plava, tamni tekst.
   Sans naslovi, oštre ivice, inženjerski red i simetrija.
   Ozbiljno i solidno: krupan tekst, veliki CTA, mirne animacije.
   ============================================================ */

/* ---------- Promenljive ---------- */
:root {
  --bg: #e8eaec;
  --card: #ffffff;
  --steel: #2b5d8a;
  --steel-deep: #1e4468;
  --steel-soft: #dfe7ef;
  --graphite: #39424b;
  --ink: #232a31;
  --muted: #4b555e;
  --line: #cfd5da;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(35, 42, 49, 0.08);
  --shadow-lg: 0 10px 26px rgba(35, 42, 49, 0.14);
  --font-head: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset i baza ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Zaštita: hidden atribut UVEK sakriva (mobilni meni, form-ok) */
[hidden] { display: none !important; }

body {
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--steel-deep); }

ul[role="list"],
ol[role="list"] { list-style: none; }

h1,
h2,
h3 {
  font-family: var(--font-head);
  color: var(--steel-deep);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

/* Sidra ne zavlače naslov pod fiksno zaglavlje */
section[id] { scroll-margin-top: 92px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--steel);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Dugmad (CTA ≥ 48px) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--steel); color: #fff; border-color: var(--steel); }
.btn-primary:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--steel-deep); border-color: var(--steel); }
.btn-ghost:hover { background: var(--steel-soft); }

.btn-block { width: 100%; }

/* ---------- Naslovi sekcija + ukras (armaturna mreža) ---------- */
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head .orn { display: block; width: 64px; margin-bottom: 12px; }
.section-head.center .orn { margin-left: auto; margin-right: auto; }

.section-head .orn svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--steel);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); }

.section-lead { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   ZAGLAVLJE
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

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

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--steel);
  color: #e8eaec;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--steel-deep); }
.brand-sub { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: none; gap: 4px; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a:hover { background: var(--steel-soft); color: var(--steel-deep); }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px;
  border: 2px solid var(--steel);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--steel-deep);
  font-weight: 700;
  white-space: nowrap;
}
.header-phone:hover { background: var(--steel-soft); }

.header-phone .ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--steel);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
}
.nav-toggle .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Mobilni meni ---------- */
.mobile-nav {
  border-top: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 16px;
}
.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mobile-phone { color: var(--steel); font-weight: 700; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, #dde2e7 0%, var(--bg) 100%);
}

.hero-bld {
  position: absolute;
  width: 300px;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--steel);
  stroke-width: 2;
  opacity: 0.1;
  display: none;
}
.hero-bld-l { left: -60px; }
.hero-bld-r { right: -60px; transform: translateY(-50%) scaleX(-1); }

.hero-inner { position: relative; max-width: 800px; }

.eyebrow {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--steel-deep); }

.hero .h1-line {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--graphite);
}

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

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

/* ---------- Trust traka (3 stavke sa ✓) ---------- */
.trust-band { background: var(--steel-deep); }

.trust-list { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; padding-bottom: 18px; }

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eef2f5;
  font-weight: 600;
  font-size: 1rem;
  justify-content: center;
}

.trust-list .check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: #9fc2de;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   O NAMA
   ============================================================ */
.about { padding: 72px 0; }

.about-grid { display: grid; gap: 40px; }

.about-text p { margin-bottom: 18px; font-size: 1.08rem; }
.about-text p:last-child { margin-bottom: 0; }

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

.fact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.fact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--steel-soft);
  margin-bottom: 14px;
}
.fact-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--steel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.fact-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.fact-card p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   USLUGE (8 kartica, 3 kolone: 3+3+2)
   ============================================================ */
.services { padding: 72px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

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

.svc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.svc-card:hover { transform: translateY(-3px); }

.svc-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--steel-soft);
  margin-bottom: 16px;
}
.svc-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--steel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.svc-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.svc-body > p { color: var(--muted); margin-bottom: 14px; font-size: 0.98rem; }

.svc-list { list-style: none; border-top: 1px solid var(--line); padding-top: 12px; }

.svc-list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 0.97rem; }
.svc-list li:last-child { margin-bottom: 0; }
.svc-list li::before { content: "—"; position: absolute; left: 0; color: var(--graphite); font-weight: 700; }

/* ============================================================
   KAKO RADIMO (4 koraka)
   ============================================================ */
.steps-sec { padding: 72px 0; }

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

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  border: 2px solid var(--steel);
  color: var(--steel-deep);
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   ČESTA PITANJA
   ============================================================ */
.faq { padding: 72px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

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

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 22px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--steel-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--steel);
  line-height: 1;
  transition: transform 0.18s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--steel-soft); }

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

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { padding: 72px 0 84px; }

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

.contact-intro { font-size: 1.08rem; margin-bottom: 26px; }

.info-list { display: grid; gap: 18px; margin-bottom: 28px; }
.info-list li { display: flex; align-items: flex-start; gap: 14px; }

.info-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--steel-soft);
  flex-shrink: 0;
}
.info-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--steel); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.info-body { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; word-break: break-word; }

.info-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}
.info-body a { font-weight: 600; }

.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 300px; border: 0; }

.map-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; font-weight: 700; }

/* ---------- Forma ---------- */
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--steel);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 { font-size: 1.4rem; margin-bottom: 20px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--steel-deep); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #aeb8c1;
  border-radius: var(--radius);
  padding: 13px 14px;
  min-height: 52px;
}
.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus { outline: 3px solid var(--steel); outline-offset: 1px; border-color: var(--steel-deep); }

.field ::placeholder { color: #67717a; opacity: 1; }

.form-ok {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #e8f3e8;
  border: 1px solid #9dc49d;
  color: #1e4620;
  font-weight: 600;
}
.form-ok.is-err { background: #fbeaea; border-color: #d9a0a0; color: #7a1f1f; }

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--steel-deep);
  color: #d7e2ec;
  padding: 48px 0;
  text-align: center;
}

.footer-bld {
  position: absolute;
  width: 220px;
  height: auto;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  stroke: #d7e2ec;
  stroke-width: 2;
  opacity: 0.08;
  pointer-events: none;
}

.footer-inner { position: relative; }

.footer-line { margin-bottom: 8px; }
.footer-brandline { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: #fff; }
.footer-line a { color: #fff; font-weight: 600; }

.footer-note { color: #a3bbd0; font-size: 0.95rem; margin-bottom: 14px; }
.footer-copy { font-size: 0.92rem; color: #a3bbd0; }
.footer-made { color: #c3d3e2; }

/* ============================================================
   REVEAL animacije (samo transform/opacity)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }

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

/* ============================================================
   BREAKPOINT ≥ 720px
   ============================================================ */
@media (min-width: 720px) {
  .trust-list { flex-direction: row; justify-content: center; gap: 44px; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 96px 0 104px; }
  .map-wrap iframe { height: 340px; }
}

/* ============================================================
   BREAKPOINT ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-phone { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .hero-bld { display: block; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .contact-grid { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .contact-form-card { padding: 36px 34px; }
}
