/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700&display=swap');

/* ========== GLOBAL ========== */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== HEADER ========== */
.site-header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 10;
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 24px;
  width: 88px;
}

.main-nav {
    display: flex;
    gap: 30px;
    margin-left: -336px;
}

/* Desktop Large Screens: <= 1200px */
@media (max-width: 1200px) and (min-width: 993px) {
    .main-nav {
        margin-left: -100px;
    }
}
/* Small Screen Laptops: <= 992px */
@media (max-width: 992px) {
    .main-nav {
        margin-left: -30px;
    }
}
.main-nav a {
  font-weight: 700;
  font-size: 14px;
  color: #555555;
}
    .main-nav a.active {
        opacity: 0.45;
    }

.language-selector {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555555;
}

.custom-select {
  position: relative;
  margin-left: 0;
}

/* Language dropdown button */
.lang-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  font-weight: 700;
}

.lang-btn img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

/* Dropdown base state */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 5px 0;
  margin: 5px 0 0;
  display: none;
  width: 80px;
  border: 1px solid #ccc;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Dropdown visible when .show is added to parent */
.custom-select.show .dropdown {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Dropdown list items */
.dropdown li {
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown li img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative; /* changed from absolute */
    margin-left: -10px; /* mimic nav spacing */
}

.hamburger span {
  width: 25px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  justify-content: center;
  align-items: center;
}

.mobile-overlay.show {
  display: flex;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 75vh;
  width: 80vw;
  border-radius: 25px;
  padding: 30px 20px;
  z-index: 999;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.mobile-menu.show {
  display: flex;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu a {
  font-weight: 700;
  font-size: 20px;
  color: #555555;
  margin: 10px 0;
}

.language-mobile {
  margin-top: 30px;
}

.language-mobile div {
  margin: 5px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.language-mobile img {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}



/* Mobile & Tablet: <= 768px */
@media (max-width: 768px) {
  .site-header {
    background: transparent;
  }
 .main-nav,
  .language-selector {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .container {
    justify-content: flex-end;
  }

  .logo {
    display: none;
  }


}

/* Mobile Small: <= 570px */
@media (max-width: 570px) {
  .mobile-overlay {
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    padding-top: 0;
  }

 .main-nav,
  .language-selector {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    width: 80vw;
    height: 70vh;
    padding: 30px 20px;
    align-items: center;
    justify-content: center;
  }

  .mobile-logo {
    display: none;
  }

  .close-menu {
    color: #555;
    font-size: 26px;
    top: 15px;
    right: 15px;
  }

  .mobile-menu a {
    color: #555555;
    font-size: 18px;
  }

  .language-mobile strong,
  .language-mobile a {
    color: #555555;
  }

  .language-mobile div {
    margin: 5px 0;
    justify-content: center;
  }
}


/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
}

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

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1200px) {
    .hero-wrapper {
        height: 460px;
    }
}

@media (max-width: 992px) {
    .hero-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        height: 400px;
    }
}

@media (max-width: 570px) {
    .hero-wrapper {
        height: 250px;
    }
}



/* ========== O NAMA NASLOV ========== */
.naslov-o-nama {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color: #555;
    height: 75px;
    color: white;
    margin-top: 0px;
}
/* By default, no break */
.break-mobile {
    display: none;
}

@media (max-width: 569px) {
    .break-mobile {
        display: block;
        height: 0;
    }
    .fade-slide-in {
        margin-bottom: 8px;
    }
}

/* ========== O NAMA CONTENT SECTION ========== */
.onama-content {
    background-color: white;
    margin-bottom: -10px;
    color: #333;
    font-size: 18px;
    line-height: 1.6;
}



.onama-container {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 40px;
    padding: 0 120px; /* Default padding for large screens */
}

/* Medium screens: tablets */
@media (max-width: 992px) {
    .onama-container {
        padding: 0 100px;
        
    }
}

/* Small screens: mobile */
@media (max-width: 768px) {
    .onama-container {
        padding: 0 80px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .onama-container {
        padding: 0 50px;
    }
}

.content {
    background-color: #4a4a4a;
    color: white;
    padding: 2rem 1rem;
}

    .content h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

.contact-info {
    margin-top: 1rem;
    margin-bottom: 4rem;
}

    .contact-info p {
        margin-bottom: 2rem;
    }

.map {
    width: 100%;
    height: 500px;
    border: 0;
}

.fade-slide-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.onama-container > p,
.onama-container .contact-info p,
.map {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.8s ease-out forwards;
}

.onama-container > p {
    animation-delay: 0.2s;
}

.contact-info p:nth-child(1) {
    animation-delay: 0.4s;
}

.contact-info p:nth-child(2) {
    animation-delay: 0.6s;
}

.contact-info p:nth-child(3) {
    animation-delay: 0.8s;
}

.map {
    animation-delay: 1s;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* FOOTER */
footer {
    background-color: #f5f5f5;
    padding: 20px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
}

footer {
    background-color: #f5f5f5;
    padding: 20px 10px;
    text-align: center;
    font-weight: bold;
    font-size: 13pt;
}

.footer-link {
    text-decoration: none;
}

.footer-grey {
    color: #555555;
}

.footer-blue {
    color: #0EA5DE;
}