/* ===== GLOBALNE VARIJABLE I STILOVI ===== */
:root {
  --primary-bg: #f9f9f9;
  --text-color: #333;
  --header-bg: #fff;
  --footer-bg: #333;
  --footer-text: #fff;
  --accent-color: #eba14c;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
  --mobile-bp: 768px;
  --tablet-bp: 1024px;
  --desktop-bp: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  background-color: var(--primary-bg);
  color: var(--text-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Overlay za hamburger meni */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== HEADER/NAVIGACIJA ===== */
.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--header-bg);
  padding: 20px 5vw;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 5vw;
}

.logo_img {
  width: 100%;
  max-width: 180px;
  height: auto;
  background-color: var(--text-color);
}

.logo_text {
  color: var(--text-color);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  margin-left: 10px;
}

.nav_links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.nav_links li {
  display: inline;
}

.nav_links a {
  text-decoration: none;
  color: var(--text-color);
  padding: 10px 20px;
  display: inline-block;
  font-size: clamp(16px, 2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.nav_links a:hover {
  background-color: var(--accent-color);
  color: var(--footer-text);
  border-radius: 5px;
}

/* Hamburger meni */
.hamburger_menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 10px;
}

.hamburger_menu .line {
  width: 30px;
  height: 4px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all var(--transition-speed) ease-in-out;
}

.hamburger_menu.open .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger_menu.open .line:nth-child(2) {
  opacity: 0;
}

.hamburger_menu.open .line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== FOOTER ===== */
.footer_container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 20px 30px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.footer_info {
  margin: 10px;
}

.footer_info h3 {
  margin-left: 25px;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-info-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
  font-size: 16px;
}

.footer-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  filter: brightness(0) invert(1); /* Ovo će ikonice učiniti bijelim ako je --footer-text bijela */
  opacity: 0.9;
}

.footer_social_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
}

.social-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
}

.footer_social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social_icon img {
  width: 30px;
  height: 30px;
  transition: transform var(--transition-speed) ease;
}

.social_icon img:hover {
  transform: scale(1.1);
}

.footer_rights {
  text-align: center;
  width: 100%;
  font-size: 14px;
  margin-top: 20px;
}

/* ===== RESPONZIVNOST ===== */
@media (max-width: 1200px) {
  .nav_links {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .logo_img {
    max-width: 150px;
  }
  .nav_links {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .header_container {
    padding: 15px;
  }
  .nav_links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--header-bg);
    padding: 80px 30px 30px;
    gap: 20px;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    box-shadow: var(--shadow-light);
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease;
    z-index: 998;
  }
  .nav_links.open {
    display: flex;
    transform: translateX(0);
  }
  .nav_links li {
    margin: 10px 0;
  }
  .nav_links a {
    font-size: 18px;
    padding: 15px 0;
    width: 100%;
  }
  .hamburger_menu {
    display: flex;
  }
  .footer_container {
    flex-direction: column;
    text-align: center;
  }

  .footer_info h3 {
    margin-left: 0;
  }

  .footer-info-item {
    justify-content: center;
  }

  .footer_social_wrapper {
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .logo_img {
    max-width: 120px;
  }
  .nav_links {
    max-width: 100%;
    padding: 70px 20px 20px;
  }
}
