/* ---------------- Reset osnovni ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ---------------- Header ---------------- */
.site-header {
  background: #222;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-weight: bold;
  font-size: 1.5em;
  color: #fff;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.site-nav a:hover {
  color: #f39c12;
}

.phone-cta {
  display: inline-block;
  background: #f39c12;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.phone-cta:hover {
  background: #d35400;
}

/* ---------------- Hamburger meni ---------------- */
.nav-toggle {
  display: none; /* sakriven na desktopu */
  font-size: 2em;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: url('https://kanzavarivanje.rs/images/pozadinaf.jpg') center/cover no-repeat;
  color: #fff;
  padding: 120px 20px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero h1,
.hero p,
.hero a {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero .btn {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: #f39c12;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero .btn.ghost {
  background: transparent;
  border: 2px solid #f39c12;
}

.hero .btn:hover {
  background: #d35400;
}

/* ---------------- Sekcije ---------------- */
.section {
  padding: 60px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
}

/* Contact */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-form {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form button {
  padding: 10px;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #d35400;
}

/* Footer */
.site-footer {
  background: #222;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* ---------------- Media Queries za mobilni meni ---------------- */
@media (max-width: 768px) {

  /* Header raspored: hamburger levo, logo sredina, nema dugme za telefon */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
  }

  .nav-toggle {
    display: block;
    font-size: 2em;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    order: 1; /* levo */
  }

  .logo {
    flex: 1;
    text-align: center; /* sredina */
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    order: 2;
  }

  .phone-cta {
    display: none; /* uklonjen na mobilnom */
  }

  /* Sakrij horizontalni meni i stilizuj mobilni */
  .site-nav {
    display: none;
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px;
    border-radius: 0 0 5px 5px;
    z-index: 1001;
  }

  .site-nav.nav-open {
    display: flex;
  }

  /* Hero padding */
  .hero {
    padding: 80px 10px;
  }
}
