/* General Styles */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: sans-serif;
    background-color: #f3f4f6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.nav-bar {
    background-color: rgb(47, 47, 47);
    color: #ffffff;
    padding: 1rem 40px 1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: rgb(214, 161, 91);
}

.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    display: block;
    padding: 0.5rem;
    color: white;
    font-size: 25px;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 1rem;
    }
}

/* Mobile Dropdown */
.mobile-menu {
    display: none;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-list li a {
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-menu-list li a:hover {
    color: rgb(214, 161, 91);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }

    .mobile-menu-button {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

@media (max-width: 767px) {
    .desktop-menu {
        display: none;
    }
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    object-fit: cover;
}

.mobile-video {
    height: 100vh;
}

.desktop-video {
    height: 50vh;
}

@media (max-width: 767px) {
    .desktop-video {
        display: none;
    }
}

@media (min-width: 768px) {
    .mobile-video {
        display: none;
    }
}

/* Logo Styling */
.logo {
    width: 100px;
    height: auto;
}

@media (max-width: 768px) {
    .logo {
        width: 70px;
    }
}

/* Hero Section */
.hero-section {
    background-color: rgba(238, 225, 207, 0.432);
}

.mobile-hero {
    display: block;
}

.desktop-hero {
    display: none;
}

@media (min-width: 768px) {
    .mobile-hero {
        display: none;
    }

    .desktop-hero {
        display: flex;
        padding: 100px 15px 30px 15px;
        gap: 2rem;
    }

    .hero-content {
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-video {
        width: 50%;
    }
}

.restaurant-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: rgb(47, 47, 47);
    margin-bottom: 1rem;
}

.restaurant-text {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .restaurant-title {
        font-size: 4rem;
    }

    .restaurant-text {
        font-size: 1.25rem;
        max-width: 80%;
    }
}

/* Section Styling */
section {
    scroll-margin-top: 80px;
}

/* FOOD */
/* Sekcija galerije */
#galerija {
  padding: 80px 20px 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#galerija h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  font-weight: 700;
  color: #000000;
}

/* Kontejner galerije */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* Pojedinačni item */
.gallery-item {
  flex: 1 1 250px;
  max-width: 280px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Slike u galeriji */
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Opis slike */
.description {
  padding: 15px;
}

.description h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #000000;
}

.description p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Responsive za manje ekrane */
@media (max-width: 600px) {
  .gallery-item {
    max-width: 70%;
  }
}

/* AMBIJENT */
/* Osnovni stil za sekciju */
#galerija-ambijent {
  padding: 40px 20px;
  background-color: #f5f5f5;
  max-width: 1200px;
  margin: 0 auto;
}

/* Kontejner galerije sa grid rasporedom */
.gallery-container-ambijent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Svaki item galerije */
.gallery-item-ambijent, .gallery-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item-ambijent:hover, .gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* Slike unutar itema */
.gallery-item-ambijent img,
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item-ambijent:hover img,
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Responsive podešavanja */
@media (max-width: 768px) {
  .gallery-container-ambijent {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centriranje slika horizontalno */
    gap: 15px;
  }

  .gallery-item-ambijent,
  .gallery-item {
    width: 90%;       /* Sve slike zauzimaju 90% širine kontejnera */
    max-width: 400px; /* Maksimalna širina za bolje izgledanje na većim mobilnim ekranima */
  }

  .gallery-item-ambijent img,
  .gallery-item img {
    width: 100%;      /* Slike pune širine itema */
    height: 300px;
  }
}

@media (max-width: 480px) {
  #galerija-ambijent {
    padding: 20px 10px;
  }
}

/* Popup overlay pozadina */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Slika u popup-u */
.popup-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.popup-overlay img:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: rgb(47, 47, 47);
    color: white;
    padding: 20px 0;
    text-align: center;
    font-family: "Rubik", sans-serif;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    font-size: 1em;
    margin: 0;
}

.footer a {
    color: rgb(226, 205, 178);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .footer p {
        font-size: 0.9em;
    }
}

.call-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgb(217, 189, 155);
  color: #1f2937;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 100;
}

.call-button:hover {
  background-color: rgb(214, 161, 91);
  transform: scale(1.05);
}

/* PAGE contact.html */
.kontakt-sekcija {
  padding: 60px 20px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}

.kontakt-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.kontakt-levo, .kontakt-desno {
  flex: 1 1 500px;
}

.kontakt-levo h2 {
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.kontakt-levo p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.kontakt-podaci {
  list-style: none;
  text-align: center;
  padding: 20px;
  margin-bottom: 24px;
  border: 3px solid rgb(217, 189, 155);
  border-radius: 15px;
}

.kontakt-podaci li {
  margin-bottom: 10px;
  font-size: 16px;
}

.kontakt-podaci a {
  color: #0066cc;
  text-decoration: none;
}

.kontakt-podaci a:hover {
  text-decoration: underline;
}

.kontakt-desno iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Responsive stilovi */
@media (max-width: 768px) {
  .kontakt-container {
    flex-direction: column;
  }

  .kontakt-levo, .kontakt-desno {
    flex: 1 1 100%;
  }

  .kontakt-levo h2 {
    text-align: center;
  }

  .kontakt-desno iframe {
    min-height: 300px;
  }
}

/* PAGE about.html */
.onama-sekcija {
  padding: 60px 20px;
  background-color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.onama-container {
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.onama-container h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-align: center;
}

.onama-container p {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 16px;
  text-align: justify;
}

.onama-galerija {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.onama-galerija img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.onama-galerija img:hover {
  transform: scale(1.03);
}