/* HERO BACKGROUND */

/* HERO SEKCII - Zajednički stilovi za sve stranice */

.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Tablet - veća visina */
@media (min-width: 768px) {
  .page-hero {
    height: 450px;
  }
}

/* Desktop - najveća visina */
@media (min-width: 1024px) {
  .page-hero {
    height: 600px;
    min-height: 600px;
  }
}

/* Pozadina hero sekcije */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-image.laser {
  object-position: top;
}

/* Overlay za bolju čitljivost teksta */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* Sadržaj hero sekcije */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  padding: 0 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Naslov hero sekcije */
.hero-title {
  font-size: 2.5rem;
  font-family: serif;
  margin-bottom: 1rem;
  color: rgb(217, 182, 143);
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Podnaslov hero sekcije */
.hero-subtitle {
  font-size: 1.25rem;
  max-width: 36rem;
  margin: 0 auto;
  margin-bottom: 1rem;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

/* Responsive prilagođavanje */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 2rem;
    max-width: 48rem;
  }
}

/* Animacija za fade-in efekat */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Varijacije za različite stranice */

/* Home page hero (može biti drugačiji) */
.home-hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
}

.services-hero .hero-title {
  color: white;
}

/* Contact page hero */
.contact-hero .hero-overlay {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Utility klase za customizaciju */

.hero-overlay-dark {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

.hero-overlay-medium {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.hero-overlay-light {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

.hero-overlay-primary {
  background-color: rgba(36, 94, 96, 0.6) !important;
}

.hero-content-left {
  text-align: left;
  align-items: flex-start;
}

.hero-content-right {
  text-align: right;
  align-items: flex-end;
}

.hero-content-center {
  text-align: center;
  align-items: center;
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .hero-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-container {
    padding: 0 2rem;
  }
}
