/* Reset i osnovni stilovi */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
    font-family: 'Myriad Pro', Arial, sans-serif;
    font-weight: 300;
    scroll-behavior: smooth;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  transition: background 0.4s, box-shadow 0.4s;
}

.navbar.solid {
  background: linear-gradient(90deg, #f7f9fb 60%, #bf966922 100%);
}

/* Koverzija navbar-container */
.navbar-container {
  width: 100%;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 300;
  color: #313c34;
  user-select: none;
}

/* Navigacija */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1;
  justify-content: flex-end;
}

/* Linkovi */
.nav-links a {
  white-space: nowrap;
  color: #848484;
  font-weight: 300;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #313c34;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  flex-direction: column;
  z-index: 2000;
  overflow-x: auto;
}

.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #2c3e50;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: #f0f6fa;
  color: #48524B;
}


/* Hover dropdown samo na desktopu */
@media (min-width: 769px) {

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: flex;
  }

  .dropdown-menu {
    display: none;
  }

  .dropdown-arrow {
    display: none !important;
  }
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: none;
  gap: 5px;
  width: 25px;
  height: 20px;
  justify-content: center;
  align-items: center;
  padding: 0;
  user-select: none;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #2e3d33;
  border-radius: 2px;
  transition: 0.3s;
}

/* Animacija hamburgera kad je aktivan */
.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .navbar {
    height: 60px; /* manja visina navbar-a */
    padding: 0rem;
  }

  .navbar-container {
    height: 100%;
    padding: 0 1.2rem; /* horinzontalni padding */
    align-items: center; /* vertikalno poravnanje */
    display: flex;
  }

  .nav-links {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(90deg, #f7f9fb 100%, #bf966922 100%);
    color: #313c34;
    z-index: 2000;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    opacity: 0;
    transform: translateY(-40px) scaleY(0.98);
    transition: opacity 0.4s, transform 0.4s;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
  }

  .nav-links.open {
    display: flex;
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  .nav-links a {
    font-size: 1.25rem;
    margin: 0.4rem 0;
    color: #313c34;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    width: 100%;
    word-wrap: break-word;
    text-align: left;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    color: #bf9669;
  }

  .logo {
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
    display: flex;
    align-items: center;
  }

  .hamburger {
    display: flex;
    position: static; /* izbaci fixed, neka ide s protokom */
    margin-left: auto; /* gurni desno */
    top: auto;
    right: auto;
    width: 22px;
    height: 18px;
    gap: 4px;
    z-index: 3000;
    cursor: pointer;
    background: none;
  }

  .hamburger .bar {
    height: 2.5px; /* tanji barovi hamburgera */
  }

  /* Dropdown meni */
  .dropdown-menu {
    display: none;
    position: static;
    max-height: 0;
    overflow: hidden;
    padding-left: 1.5rem;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transition: max-height 0.3s ease;
    width: 100%;
  }

  .dropdown-menu.open {
    display: block;
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.3s ease;
  }

  .dropdown-menu a {
    display: block;
    width: 100%;                /* zauzmi cijelu širinu dropdown menija */
    white-space: normal;        /* PRIJELOM RIJEČI ako je dugačko */
    word-break: break-word;     /* Prelomi izuzetno dugu riječ */
    overflow-wrap: break-word;  /* Prelomi i kod nedjeljivih riječi */
    font-size: 1.13rem;
    padding: 0.6rem 0;
    margin: 0;
    color: #313c34;
    background: none;
    border-bottom: none;
    text-align: left;
    transition: color 0.2s ease;
    text-transform: none;
    letter-spacing: 1px;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus {
    color: #bf9669;
    background: none;
  }

  .dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
    border-top-color: #bf9669;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.8rem; /* smanjen razmak */
    width: 100%;
    justify-content: center;
    border-bottom: 2px solid #2e3d33;
    margin-bottom: 1rem;
  }

  .mobile-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    gap: 0.6rem;
  }

  .mobile-logo-img {
    height: 60px; /* smanjen logo */
    width: auto;
    object-fit: contain;
    user-select: none;
  }

  .mobile-logo-text {
    font-size: 1.4rem;
    font-weight: 300;
    color: #bf9669;
    user-select: none;
    letter-spacing: -0.8px;
  }
}


/* Sakrij logo u meniju na desktopu */
@media (min-width: 1200px) {
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 240px;
    background: #f7f9fb;
    box-shadow: 0 8px 32px rgba(44,62,80,0.12);        /* nježnija sjena */
    border-radius: 14px;                               /* veća zaobljenja */
    padding: 0.8rem 0;
    border: 1px solid #e5e5e5;
    transition: opacity 0.25s, transform 0.25s;
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
  }


  /* Dropdown meni dok je navbar proziran (iznad hero videa) */
  .navbar:not(.solid) .dropdown-menu {
    background: rgba(255, 255, 255, 0.15); /* prozirna svijetla pozadina */
    box-shadow: 0 2px 12px rgba(44, 62, 80, 0.06); /* mekša sjenka */
    backdrop-filter: blur(12px); /* blur efekt za stakleni izgled */
    border: 1px solid rgba(255, 255, 255, 0.3); /* blaga bijela linija */
  }

  /* Linkovi u prozirnom dropdownu */
  .navbar:not(.solid) .dropdown-menu a {
    color: #ecf0f1; /* svijetli tekst da kontrastira */
    transition: color 0.3s ease;
  }
  .navbar:not(.solid) .dropdown-menu a:hover,
  .navbar:not(.solid) .dropdown-menu a:focus {
    background: rgba(255, 255, 255, 0.25);
    color: #2e3d33;
  }

  /* Linkovi u dropdown meniju */
  .dropdown-menu a {
    color: #313c34;
    font-size: 1rem;
    font-weight: 300;
    padding: 0.75rem 1.6rem;
    border: none;
    background: none;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    border-radius: 7px;
    margin: 0 0.3rem;
    white-space: normal;        /* Ako je tekst dug, neka se prelomi */
    word-break: break-word;
    letter-spacing: 0.5px;
  }
  .dropdown-menu a:hover,
  .dropdown-menu a:focus {
    background: #e7e0d6;
    color: #bf9669;
    font-weight: 300;
  }
  .nav-links a {
    margin-right: 0.5rem;
  }
  .nav-links a:last-child {
    margin-right: 0;
  }
  .mobile-menu-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

/* Prikaži strelicu samo na manjim ekranima */
@media (max-width: 768px) {
  .dropdown-arrow {
    display: inline-block !important;
  }
}

/* FOOTER */
footer {
  background-color: #848484;
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  font-weight: 300;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  text-align: left;
}

.footer-column h3 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #bf9669;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #bf9669;
}

.footer-bottom {
  font-weight: 300;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #bf9669;
  transform: translateY(-3px);
}

/* Specifične ikone */
.fa-youtube:hover {
  color: #FF0000;
}

.fa-instagram:hover {
  color: #E1306C;
}

.fa-linkedin-in:hover {
  color: #0077B5;
}

.facebook-icon:hover {
  color: #2d4373;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
}