@font-face {
  font-family: 'Montserrat';
  font-weight: 100 900;
  font-style: normal;
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-display: swap;
}
body, button, input, select, textarea {
  font-family: 'Montserrat', sans-serif !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  margin: 0 !important;
}
body {
  font-family: 'Montserrat', sans-serif;
}
a{
  text-decoration: none;
  color: inherit;
}

/* ========================================
   HEADER STICKY + OFFCANVAS
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  color: #fff;
  padding: 20px 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
body.scrolled .site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Container unutra */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo img {
  height: 120px;
  transition: filter 0.3s ease;
}

/* Hamburger dugme - defaultno SAKRIVEN */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.menu-toggle .bar {
  width: 28px; height: 3px;
  background: #1c4bd5;
  border-radius: 2px;
  display: block;
  transition: 0.22s;
}
.menu-toggle.is-active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* NAVIGATION
   -- Na desktopu (preko 1200px): prikazi meni horizontalno i hamburger sakrij.
   -- Na mobile/tablet (1200px i manje): prikazi hamburger, nav je offcanvas.
*/

/* OFFCANVAS (mobile/tablet <=1200px) */
.site-nav {
  position: fixed;
  top: 76px;
  left: -300px;
  width: 280px;
  height: calc(100vh - 76px);
  background: #fff;
  box-shadow: 4px 0 18px rgba(30,30,30,0.08);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  transition: left 0.32s ease;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}
.site-nav.active {
  left: 0;
}
.nav-menu {
    display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  align-items: flex-start;
  padding: 0 24px;
  list-style: none;
}
.nav-menu li {
  width: 100%;
}
.nav-menu li a {
  color: #222;
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 1.13rem;
  display: block;
  transition: background .18s, color .2s;
}


/* Backdrop za fade */
.menu-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,32,61, 0.28);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}



/* Sprečava scroll na body kad je meni otvoren */
body.menu-open {
  overflow: hidden;
}

/* === DESKTOP (preko 1200px): hamburger nestaje, meni je horizontalan, bez offcanvas === */
@media (min-width: 1201px) {
  .menu-toggle {
    display: none !important;
  }
  .site-nav {
    position: static !important;
    left: 0 !important;
    width: 100%;
    height: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding-top: 0;
    flex-direction: row;
    display: flex !important;
    transition: none;
  }
  .nav-menu {
    flex-direction: row;
    gap:10px;
    padding: 0;
    align-items: center;
  }
  /* Defaultno stanje (header transparentan) */
.nav-menu li a {
  color: #fff;
  background: none;
  border-bottom: none;
  padding: 0;
  font-size: 16px;
  text-align: center;
  transition: color 0.3s ease;
}

/* Kada body ima klasu scrolled -> header je bijel */
body.scrolled .nav-menu li a {
  color: #0f1f3b;
}

}

/* === TABLET & MOBILE (1200px i manje): hamburger prikazan, meni offcanvas === */
@media (max-width: 1200px) {
  .menu-toggle {
    display: flex;
  }
}

/* ========================================
   FOOTER (primer)
   ======================================== */
.footer-section {
  background: #172443;
  color: #fff;
  padding: 40px 0 0 0;
  font-family: 'Montserrat', sans-serif;
}
.footer-brand {
  flex: 1 1 260px;
  min-width: 230px;
  text-align: left;
}
.footer-brand h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  text-align: left;
}
.highlight-red {
  color: #e94560;
}
.footer-brand p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #d3d3d3;
  text-align: left;
}
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}
.footer-social img {
  width: 32px;
  height: 32px;
  filter: grayscale(100%) brightness(2);
  transition: filter 0.2s;
}
.footer-social a:hover img {
  filter: none;
}
.footer-contact {
  flex: 1 1 180px;
  min-width: 180px;
}
.footer-contact h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
}
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact ul li {
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  filter: invert(100%);
}
.footer-bottom {
  margin-top: 40px;
  background: #0b1323;
  padding: 18px 0;
}
.footer-copy {
  color: #aaa;
  font-size: 0.9rem;
}
.footer-bottom-links {
  display: flex;
  gap: 22px;
}
.footer-bottom-links a {
  color: #d3d3d3;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: #e94560;
}

/* Responsive Footer */
@media (max-width: 1200px) {
  .section-container.footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-brand h2 {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-contact {
    align-items: center;
    text-align: center;
  }
  .footer-contact {
    justify-content: center;
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .section-container.footer-top {
    gap: 40px;
  }
  .footer-bottom .section-container {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }
}
@media (max-width: 500px) {
  .footer-section {
    padding: 24px 0 0 0;
  }
  .section-container {
    padding: 0 10px;
  }
  .footer-brand h2 {
    font-size: 1.5rem;
  }
  .footer-contact {
    min-width: 0;
  }
  .footer-bottom {
    padding: 10px 0;
  }
}





/* single  */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HERO */
.post-hero {
  position: relative;
  height: 100vh;               /* cijeli ekran */
  display: flex;
  align-items: flex-end;       /* naslov pri dnu */
  justify-content: center;
  background-size: cover;    /* cijela slika stane u okvir */
  background-repeat: no-repeat;/* da se ne ponavlja */
  background-position: bottom; /* centriraj */
  overflow: hidden;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.post-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; /* zadržavamo zbog alt teksta za čitače */
  pointer-events: none;
}
.post-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,16,30,.65) 0%, rgba(10,16,30,.35) 40%, rgba(10,16,30,0) 70%);
}
.post-hero__inner {
  position: relative;
  z-index: 2;
  padding: 64px 20px 48px;
  color: #fff;
}
.post-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; opacity: .9; margin-bottom: 10px;
}
.post-meta__sep { opacity: .6; }
.post-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Placeholder kad nema featured image-a */
.post-hero--noimg {
  background: #0f1f3b;
}
.post-hero--noimg .post-hero__overlay { display:none; }

/* CONTENT */
.post-content {
  padding: 40px 20px 24px;
  font-size: 1.05rem;
  color: #0f1f3b;
}
.post-content p { margin: 0 0 1.1em; line-height: 1.7; }
.post-content h2, .post-content h3, .post-content h4 { margin: 1.6em 0 .6em; }
.post-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* Navigacija postova */
.post-nav {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 12px 20px 48px;
}
.post-nav a { color: #1c4bd5; text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

/* Responsivnost */
@media (max-width: 640px) {
  .post-hero__inner { padding: 56px 16px 32px; }
  .post-content { padding: 28px 16px; }
  .post-nav { padding: 8px 16px 40px; }
  .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
  margin: 0;
  width:100%;
}
}

/* Bavarians – responsive galerija */
.wp-block-gallery.bav-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop */
  gap: 16px;
}
.wp-block-gallery.bav-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* tablet */
@media (max-width: 1024px) {
  .wp-block-gallery.bav-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* telefon – jedna ispod druge */
@media (max-width: 700px) {
  .wp-block-gallery.bav-gallery {
    grid-template-columns: 1fr;
  }
}
/* Single Product: tamni header + bijeli linkovi */
.single-product .site-header {
  background: #172443 !important;
  color: #fff;
}

/* ako imaš transparent/sticky varijantu */
.single-product .site-header.transparent,
.single-product .site-header.is-sticky {
  background: #172443 !important;
}

/* linkovi/meni u headeru */
/* .single-product .site-header a,
.single-product .site-header .menu a {
  color: #fff !important;
} */

/* hover (malo posvijetli) */
.single-product .site-header .menu a:hover {
  color: rgba(255,255,255,.85) !important;
}

/* ikone u headeru (cart/search/hamburger) */
.single-product .site-header svg,
.single-product .site-header .icon,
.single-product .site-header .hamburger span {
  fill: #fff;
  color: #fff;
  background-color: #fff; /* za hamburger linije ako su background-based */
}
/* Backdrop (dinamički kreiran) */
.menu-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(25,32,61,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
  z-index: 2999; /* ispod .site-nav */
}


/* Off-canvas: <=1200px */
@media (max-width:1200px){
  .menu-toggle{ display:flex !important; }
  .site-nav{
    position: fixed !important;
    top: 76px !important;
    left: 0 !important;
    width: 320px !important;
    max-width: 88vw !important;
    height: calc(100vh - 76px) !important;
    background: #fff !important;
    box-shadow: 4px 0 18px rgba(30,30,30,.12) !important;
    z-index: 3000 !important;
    transform: translateX(-100%) !important;
    transition: transform .3s ease !important;
    display: block !important;
    overflow-y: auto !important;
  }
  .site-nav.active{ transform: translateX(0) !important; }
  body.menu-open{ overflow: hidden; }
}

/* Desktop: normalan meni */
@media (min-width:1201px){
  .menu-toggle{ display:none !important; }
  .menu-backdrop{ display:none !important; }
  .site-nav{
    position: static !important;
    transform: none !important;
    background: none !important;
    box-shadow: none !important;
  }
}
