/* Osnovne promenljive (boje, fontovi) */
:root {
  --color-bg: #f5f5f7;
  --color-bg-alt: #ffffff;
  --color-primary: #e25822; /* narandžasta / boja metala */
  --color-primary-dark: #c24617;
  --color-text: #222222;
  --color-text-muted: #666666;
  --color-border: #dddddd;
  --color-header-bg: #ffffff;

  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 0.75rem;
  --radius-sm: 0.5rem;

  --container-width: 1120px;
}

/* Reset / osnovni stilovi */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

/* HERO SECTION – BACKGROUND IMAGE */
.hero-bg {
  position: relative;
  height: 80vh;
  background-image: url("img/hero-hala.png"); /* OVDE STAVI TVOJU SLIKU */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55); /* tamni overlay */
  display: flex;
  align-items: center;
}

/* Bel tekst u hero sekciji */
.hero-bg h1,
.hero-bg p,
.hero-bg strong,
.hero-bg .hero-info-number,
.hero-bg .hero-info-label {
  color: #ffffff;
}

/* Dugme light outline */
.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.12);
  text-decoration: none;
}

/* Ukloni placeholder sliku ako postoji */
.hero-image {
  display: none !important;
}

/* Linkovi */
a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HEADER / NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-header-bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Glavni meni – mobilni default */
.main-nav {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
  gap: 1.2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}

.main-nav a {
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-nav.open {
  transform: translateX(0);
}

/* Hamburger dugme */
.nav-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 999px;
  transition: all 0.25s ease-out;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Pozovi dugme u headeru */
.nav-call {
  display: none; /* na mobilnom sakriven, na desktopu prikazujemo */
}

/* Sekcije */
.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

/* HERO */
.hero {
  padding-top: 4.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero-content h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-info {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-info > div {
  min-width: 90px;
}

.hero-info-number {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
}

.hero-info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Dugmad */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(226, 88, 34, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 8px 22px rgba(226, 88, 34, 0.45);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.btn-call {
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* Dve kolone (O nama) */
.two-columns {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.two-columns p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Info kartice */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.info-card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Kartice usluga */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

/* Galerija – osnovno: mobilni 1 po redu */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.gallery-item {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 200px;      /* iste visine -> uredan grid */
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.social-links {
  margin-top: 1.5rem;
  text-align: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.social-link:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

/* Koraci / proces */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.step {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  padding-left: 3.25rem;
}

.step-number {
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

/* Kontakt sekcija */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.contact-list li {
  margin-bottom: 0.4rem;
}

/* Forma */
.contact-form {
  background-color: var(--color-bg);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  padding: 0.6rem 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(226, 88, 34, 0.2);
}

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* Mapa */
.map-wrapper {
  margin-top: 2.5rem;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-wrapper iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* Footer */
.site-footer {
  background-color: #111111;
  color: #f5f5f5;
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
}

.footer-small span {
  color: var(--color-primary);
}

/* RESPONSIVE - TABLET ≥ 768px */
@media (min-width: 768px) {
  .nav-container {
    min-height: 72px;
  }

  .main-nav {
    position: static;
    transform: none;
    background: transparent;
    flex-direction: row;
    padding-top: 0;
    gap: 1.2rem;
  }

  .main-nav a {
    color: var(--color-text);
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-call {
    display: inline-flex;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-image-placeholder {
    padding: 4rem 2rem;
    font-size: 1.1rem;
  }

  .two-columns {
    flex-direction: row;
    align-items: flex-start;
  }

  .two-columns > div:first-child {
    flex: 3;
  }

  .info-cards {
    flex: 2;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* TABLET GALERIJA: 2 slike u redu */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Koraci – tablet: 2 u redu */
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Kontakt – dve kolone */
  .contact-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-grid > div {
    flex: 1;
  }

  .map-wrapper {
    height: 320px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* DESKTOP ≥ 1024px */
@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  /* Galerija – 4 u redu */
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Koraci – 4 u redu */
  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
