html {
  scroll-behavior: smooth;
}

body {
  padding-top: 80px;
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, .navbar-brand {
  font-family: 'Playfair Display', serif;
}

section {
  scroll-margin-top: 90px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  height: 100vh;
  background: url('../images/hero/hero.jpg') center/cover no-repeat;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* ===== HERO TEKST STIL ===== */

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.hero-section p {
  font-size: 1.2rem;
  margin-top: 15px;
  color: #f1f1f1;
  opacity: 0.95;
}

/* ===== HERO BUTTON STYLE ===== */

.hero-section .hero-btn {
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero-section .btn-success {
  background-color: #3a6b35;
  border: none;
}

.hero-section .btn-success:hover {
  background-color: #2e5229;
}

.hero-section .btn-outline-light:hover {
  background-color: #fff;
  color: #000;
}

.btn-success {
  background-color: #3a6b35;
  border: none;
}

/* ===== SCROLL DOWN STRELICA ===== */
.scroll-down a {
  display: inline-block;
  animation: bounce 2s infinite;
  color: white;
  text-decoration: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}


/* ===== NAVBAR ===== */

#mainNavbar {
  padding: 18px 0;
  background-color: white;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000 !important;
  letter-spacing: 1px;
}

.navbar-brand:hover {
  color: #000 !important;
}

.nav-link {
  font-weight: 500;
  margin-left: 20px;
  position: relative;
  color: #333 !important;
  transition: color 0.3s ease;
}

/* Hover underline animacija */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #3a6b35;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #3a6b35 !important;
}

/* Kontakt dugme */
.contact-btn {
  background-color: #3a6b35;
  color: white !important;
  padding: 8px 18px;
  border-radius: 30px;
  margin-left: 25px;
  transition: all 0.3s ease;
}

.contact-btn::after { display: none; }

.contact-btn:hover { background-color: #2e5229; }

/* Scroll efekat */
.navbar-scrolled {
  padding: 10px 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

#galerija img {
  transition: transform 0.3s ease;
}

#galerija img:hover {
  transform: scale(1.03);
}

/* Kartice */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ===== HERO RESPONSIVE ===== */
@media (max-width: 768px) {

  .hero-section h1 { font-size: 2rem; }
  .hero-section p { font-size: 1rem; }

  .hero-section .hero-btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  /* Strelica dole responsive */
  .scroll-down i { font-size: 18px; }

}

}

/* ===== O NAMA ===== */
#o-nama h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 20px;
}

#o-nama p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  #o-nama .row {
    flex-direction: column-reverse; /* slika ispod teksta na mobilnom */
  }
  #o-nama img {
    margin-bottom: 20px;
  }
}

/* Sve slike u karticama */
.card-img-top {
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* Vertikalne slike – ako je visina veća od širine */
.card-img-top.vertical {
  max-height: 276px;
  object-fit: cover;
  width: 100%;
}

/* ===== GALERIJA ===== */

#galerija h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.gallery-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== GRID GALERIJA ===== */
.gallery-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 po redu */
  gap: 15px; /* razmak između slika */
}

.gallery-columns a {
  display: block;
}

.gallery-img {
  width: 100%;
  height: 250px; /* uniformna visina za thumbnail */
  object-fit: cover; /* vertikalne i horizontalne se lepo uklapaju */
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .gallery-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-columns {
    grid-template-columns: 1fr;
  }
}

/* ===== KONTAKT SEKCIA ===== */
#kontakt h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

#kontakt p {
  font-size: 1rem;
  margin-bottom: 8px;
}

#kontakt iframe {
  border-radius: 8px;
}

.navbar .dropdown-menu {
  min-width: auto;
  border-radius: 8px;
}

.navbar .dropdown-item:hover {
  background-color: #3a6b35;
  color: white;
}