/* RESET / OSNOVNO ----------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background: #f3f4f6;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* SECTIONS ----------------------------------------------------------- */

.section {
  padding: 60px 0;
}

/* EYEBROW TITLE ----------------------------------------------------------- */

.eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin: 0 0 12px;
}

/* NASLOVI SEKCIJA ----------------------------------------------------------- */

.section h2 {
  font-size: 2.1rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 26px;
  color: #111827;
}

/* LOGO BAR ----------------------------------------------------------- */

.about-logo-bar {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.about-logo-img {
  display: block;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  height: auto;
}

/* TOP NAV ----------------------------------------------------------- */

.top-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.nav-inner {
  display: flex;
  justify-content: center;   /* CENTRIRA MENI */
  gap: 32px;
  padding: 14px 24px;
  font-size: 0.95rem;
}

.top-nav a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
}

.top-nav a:hover {
  color: #111827;
}

.top-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #111827;
  transition: width 0.18s ease-out;
}

.top-nav a:hover::after {
  width: 100%;
}

/* HERO ----------------------------------------------------------- */

.hero {
  background: #f3f4f6;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero-lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: #374151;
  max-width: 44rem;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.97rem;
  color: #374151;
}

.hero-bullets li::before {
  content: "• ";
  color: #6b7280;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-link {
  font-size: 0.95rem;
  color: #374151;
  text-decoration: none;
}

.hero-link:hover {
  text-decoration: underline;
}

/* HERO – POZADINSKA SLIKA -------------------------------------------------- */

.hero.hero-bg-wrap {
  position: relative;
  overflow: hidden;
  min-height: 420px; /* možeš povećati po želji */
  display: flex;
  align-items: center;
  background: #f3f4f6;
}

/* pozadinska slika */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("naslovna.png") center/cover no-repeat;
  opacity: 0.22;              /* prozirnost slike */
  filter: blur(1.2px);        /* blagi blur da tekst bude čitljiv */
  z-index: 1;
}

/* tekst ide iznad slike */
.hero-inner {
  position: relative;
  z-index: 2;
}

/* dodatni kontrast */
.hero-text {
  max-width: 780px;
  backdrop-filter: none; /* ako želiš glass-effect, mogu dodati! */
}

/* BUTTON ----------------------------------------------------------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease-out, transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.btn-primary:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

/* O NAMA ----------------------------------------------------------- */

.about {
  background: #f9fafb;
}

.about-text p {
  margin: 0 0 16px;
  font-size: 1.03rem;
  color: #374151;
}

.about-text strong {
  font-weight: 600;
}

/* STO LEGALIZIRAMO ----------------------------------------------------------- */

.sto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sto-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 14px 16px 16px;
}

.sto-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 500;
  color: #111827;
}

.sto-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* POSTUPAK ----------------------------------------------------------- */

.postupak-text p {
  margin: 0 0 16px;
  font-size: 1.03rem;
  color: #374151;
}

.postupak-text strong {
  font-weight: 600;
}

/* KORACI ----------------------------------------------------------- */

.koraci {
  background: #f9fafb;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 18px 16px 16px;
}

.step-number {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.9rem;
  color: #6b7280;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 500;
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* DOKUMENTACIJA ----------------------------------------------------------- */

.dokumentacija-intro {
  margin: 0 0 20px;
  font-size: 1.03rem;
  color: #374151;
}

.dok-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}

.dok-block {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 14px 16px 16px;
}

.dok-block h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 500;
  color: #111827;
}

.dok-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dok-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.97rem;
  color: #374151;
}

.dok-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: #6b7280;
}

.dok-napomena p {
  margin: 0;
  font-size: 0.95rem;
  color: #6b7280;
}

/* ZASTO MI ----------------------------------------------------------- */

.zasto {
  background: #f9fafb;
}

.zasto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.zasto-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 14px 16px 16px;
}

.zasto-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 500;
}

.zasto-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* PRIMJERI ----------------------------------------------------------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 14px 16px 16px;
}

.case-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 500;
}

.case-meta {
  margin: 0 0 8px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.case-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

/* FAQ ----------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 10px 12px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.98rem;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: #6b7280;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 8px 0 4px;
  font-size: 0.95rem;
  color: #4b5563;
}

/* KONTAKT ----------------------------------------------------------- */

.kontakt-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.kontakt-intro {
  margin: 0 0 18px;
  font-size: 1.03rem;
  color: #374151;
}

.kontakt-form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.kontakt-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: #374151;
}

.kontakt-form input,
.kontakt-form textarea {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 8px 11px;
  font: inherit;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.kontakt-form textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: 110px;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  border-color: #1f2937;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.15);
  background: #ffffff;
}

/* desni stupac */

.kontakt-right {
  font-size: 0.95rem;
  color: #374151;
  display: flex;
}

.kontakt-box {
  flex: 1;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kontakt-box h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #111827;
}

.kontakt-box p {
  margin: 0 0 8px;
}

.kontakt-box a {
  color: #1f3b5c;
  text-decoration: none;
}

.kontakt-box a:hover {
  text-decoration: underline;
}

.kontakt-note {
  font-size: 0.9rem;
  color: #6b7280;
}

/* KARTA ----------------------------------------------------------- */

.kontakt-map {
  margin-top: auto;
}

.kontakt-map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* FOOTER ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.9rem;
  color: #6b7280;
}

.footer-inner {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-left, .footer-right {
  color: #6b7280;
}

.footer-right a {
  color: #374151;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

.footer-left a {
  color: #374151;
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

/* RESPONSIVE ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .sto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .sto-grid,
  .steps-grid,
  .zasto-grid,
  .cases-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kontakt-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .kontakt-right {
    display: block;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 48px 0;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .about-text p,
  .postupak-text p,
  .dokumentacija-intro,
  .dok-list li,
  .kontakt-intro,
  .kontakt-form label,
  .kontakt-box p,
  .hero-lead {
    font-size: 1rem;
  }

  /* NAV – dva reda na mobitelu */
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;         /* manji razmaci, da stanu dva reda */
    padding: 10px 12px;
  }

  .top-nav a {
    flex: 0 1 30%;        /* otprilike 3 linka u redu */
    text-align: center;
  }

  /* DOKUMENTACIJA – blokovi jedan ispod drugog */
  .dok-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
