/* #region HEADER --------------------------------------------- */
nav {
  opacity: 0.95;
  position: fixed;
  z-index: 1000;
  /* place it above other elements */
  width: 100%;
  /* full width */
  top: 0;
  /* stick to the top */
  border-bottom: 1px solid rgb(157, 157, 157);
}

.nav-container {
  max-width: 90rem;
  /* 1200px */
  height: 4rem;
  /* 50px */
  margin: 0 auto;
  /* center the nav */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hide nav on mobile devices */
@media (max-width: 768px) {
  nav .menu-container {
    display: none;
  }
}

/* -------------------------- */
/* Logo and menu btn */
/* -------------------------- */
.logo {
  width: 50px;
  /* adjust as needed */
  height: auto;
}

/* hamburger menu button */
.menu-btn {
  @media screen and (min-width: 768px) {
    display: none;
    /* hide menu button on larger screens */
  }
}
/* -------------------------- */

.menu-container ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 20px;
  line-height: 1.2rem;
  /* two word break height */
}

.menu-container ul li {
  text-align: center;
  height: 4rem;
  transition: background-color 0.3s ease;
  padding: 0 5px;
}

.menu-container ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
  /* subtle hover effect */
}

.menu-container ul li a {
  font-family: var(--font-family-menu-buttons);
  text-transform: uppercase;
  height: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  /* ==> for links to take up the full height of the li element, so that the entire area is clickable link. */
  transition: background-color 1s ease;
}

.menu-container ul li:last-child a {
  padding-left: 0.5rem;
}

/* menu verticalborder styling - placed on the right */
/* ---------------------------------- */
.menu-container ul li:last-child {
  border-left: 3px double white;
}

/* NAV MENU scroll tweak */
#objekti {
  scroll-margin-top: 62px;
}

/* ---------------------------------- */
/* #endregion HEADER */

/* #region HERO */

/* image of the museum */
.hero {
  position: relative;
  min-height: 100dvh;
  /* Gradient behind everything */
  background: var(--color-primary);
  overflow: hidden;
  border-bottom: 1px solid rgb(157, 157, 157);
}

/* Image as pseudo-element */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/img/glavna_zgrada_01_widescreen.jpg) no-repeat center top / cover;
  z-index: 1;
  /* above gradient, below overlay */
}

/* On screens wider than 1920px, contain the image */
@media screen and (min-width: 1921px) {
  .hero::after {
    background-size: contain;
    background-position: center center;
  }
}

/* Your existing overlay stays on top (z-index: 2) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.30);
  z-index: 2;
  /* ensure it's above the image */
}

@media (max-width: 1024px) {
  h1.hero-heading {
    font-size: 3.5rem;
    line-height: 1.2;
  }
}

/* hero heading and call to action buttons */
.cta {
  z-index: 5;
  /* place it above the overlay */
  text-align: center;
  color: white;
  width: 100%;
  padding: 0 1rem;
}

.cta>div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta .button {
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  background: var(--color-primary);
  box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  transition: box-shadow 0.05s ease;
}

.cta .button:hover {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.2);
}

/* #endregion HERO */