/* ---------- Index ---------- */

  body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333333; /* tamno siva kao osnovna boja teksta */
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fade-in 1.2s ease-out both;
}

  .animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
  }

  .text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
  }
  
#hero-section video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

  #hero-section {
  height: 60vh;
  position: relative;
  overflow: hidden;
}

  @media (max-width: 768px) {
    #hero-section {
      height: 24vh;
      background-size: cover;
      background-position: center top;
    }
	
  }
  
  .slide {
    display: none;
  }

  .slide.active {
    display: block;
    animation: fadeIn 0.8s ease-out forwards;
  }

  /* Braon boja za tekst umesto plave */
  .text-blue-900,
  .text-blue-800,
  .text-blue-700 {
    color: #a68c6d !important; /* svetlija braon */
  }

  .hover\:text-blue-900:hover,
  .hover\:text-blue-800:hover,
  .hover\:text-blue-700:hover {
    color: #8c7351 !important; /* tamnija braon */
  }

  /* Braon boja za dugmad/linkove */
  .text-braon {
    color: #e6ddc6;
  }

  .hover\:text-braon:hover {
    color: #e6ddc6;
  }

  /* Braon dugme stil */
  .btn-braon {
    background-color: #e6ddc6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
  }

  .btn-braon:hover {
    background-color: #e6ddc6;
  }

  /* Osnovna boja za ceo tekst (ako nije predefinisana) */
  p, li, span, div, h1, h2, h3, h4, h5, h6 {
    color: #333333;
  }

/* ---------- Navigation ---------- */

/* Animacija fade-in */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Desktop linkovi */
.nav-link {
  color: #2a4d8f;
  font-weight: 400;
  font-size: 1rem; /* <<< smanjena veličina teksta (12px) */
  text-decoration: none;
  padding-bottom: 4px;
  margin: 0 0.01rem; /* <<< smanjen razmak levo-desno */
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* Poravnanje linkova koji imaju dropdown (.group) */
.group > .nav-link {
  display: inline-flex;      /* omogućava vertikalno centriranje */
  align-items: center;       /* centrira tekst u linku */
  padding-bottom: 4px;       /* isto kao obični linkovi */
}

.nav-link:hover,
.group:hover > .nav-link {
  color: #fdfcf8; /* svetla krema slova Home, Contact... */
  border-bottom: 2px solid #fdfcf8; /* svetla krema linija underline hover */
}

/* Povećanje visine navigacione trake */
nav {
  display: flex;
  align-items: center; /* centriranje linkova vertikalno */
  height: 10px;        /* visina trake po želji */
}


/* Dropdown meni kontejner */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #e6ddc6; /* zlatno-bež */
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
  min-width: 14rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

/* Dropdown se prikazuje kada hoverujemo roditelja ili dropdown sam */
.group:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Linkovi u dropdownu */
.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #2a4d8f;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-bottom: none; /* bitno da nema donje linije */
}

.dropdown-menu a:hover {
  background-color: #2a4d8f;
  color: #fdfcf8;
}

/*      Mobilni meni linkovi     */
.nav-link-mobile {
  color: #2a4d8f;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.nav-link-mobile:hover {
  background-color: #2a4d8f;
  color: #2a4d8f;
}

/* Stil za toggle dugme u mobilnom meniju */
.mobile-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  color: #2a4d8f;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.mobile-submenu-toggle:hover {
  background-color: #e6ddc6;
  color: #2a4d8f;
}

/* Mobilni podmeni container */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  width: 100%;
  background-color: #e6ddc6; /* braon */
  border-radius: 0.5rem;
  margin-top: 0.25rem;
}

/* Kada je podmeni otvoren */
.mobile-submenu.open {
  max-height: 500px; /* dovoljno za sve stavke */
}

/* Linkovi u mobilnom podmeniju */
.mobile-submenu a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: #2a4d8f;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-submenu a:hover {
  background-color: #2a4d8f;
  color: #fdfcf8;
}

/* Strelica za toggle */
.mobile-submenu-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.mobile-submenu-toggle.open svg {
  transform: rotate(90deg);
}

.mobile-submenu-toggle {
  display: flex;
  justify-content: center; /* Centriramo sadržaj horizontalno */
  align-items: center;     /* Vertikalno centrirano */
  gap: 0.5rem;             /* Razmak između teksta i strelice */
  width: 100%;
  cursor: pointer;
  font-weight: 600;
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.mobile-submenu-toggle svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.rotate-90 {
  transform: rotate(90deg);
}

.nav-link-mobile,
.mobile-submenu-toggle,
.mobile-submenu a {
  color: #2a4d8f !important;
  text-decoration: none;
}

.nav-link-mobile:hover,
.mobile-submenu-toggle:hover,
.mobile-submenu a:hover {
  background-color: #e6ddc6;
  color: #2a4d8f !important;
}

.mobile-submenu-toggle {
  color: #2a4d8f !important;
}
.mobile-submenu-toggle:hover {
  color: #2a4d8f !important;
}
.mobile-submenu-toggle span {
  color: #2a4d8f !important;
}

/* Kontakt sekcija - dodatni fallback za ne-Tailwind stilove */

#kontakt {
    background-color: #f4f6fa;
}

form input, form textarea {
    font-family: inherit;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #e6ddc6; /* blue-600 */
}

button:focus {
    outline: none;
}

/* ---------- Mobile menu scroll fix ---------- */
#mobile-menu {
  position: fixed;        /* fiksiran preko cele strane */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;          /* maksimalna visina ekrana */
  overflow-y: auto;       /* omogućava scroll unutar menija */
  z-index: 50;            /* ostaje iznad ostalih elemenata */
  -webkit-overflow-scrolling: touch; /* glatki scroll na iOS */
}

/* Sprečavanje skrolovanja body-ja dok je meni otvoren */
body.menu-open {
  overflow: hidden;
}

#mobile-menu {
  background: linear-gradient(
    135deg,
    #fdfcf8,  /* svetla krema */
    #f3ede3,  /* toplija krema */
    #e6ddc6,  /* zlatno-bež (umesto jake žute) */
    #cbb87b,  /* mekša zlatna/bež */
    #2a4d8f   /* svetlija Dove plava */
  );
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 80px; /* da ne ide ispod headera */
  z-index: 30;
  color: white;
}
