/* Osnovni stilovi body i font */
body {
    font-family: 'Century Gothic', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    background-size: cover;
    margin-bottom: 70px; /* da sadržaj ne sakrije footer */
    padding-top: 160px; /* da fiksiran header ne prekriva stranicu */
}

/* HEADER – GRID SISTEM ZA SAVRŠEN RASPORED */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(to bottom, #057c82, #00ff00);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    box-sizing: border-box; /* >>> SPREČAVA PRELIVANJE <<< */
}

/* Logo */
header .logo img {
    height: 120px;
}

/* Navigacija */
nav {
    flex: 1; 
    display: flex;
    justify-content: center; /* drži meni centriran */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
}

nav ul li a.active {
    color: #025e02;
    
    transform: scale(1.2);
}

nav ul li a:hover {
    text-decoration: none;
}

/* Social icons */
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* >>> SPREČAVA da se stisnu ili pomere van ekrana <<< */
}

.social-icons svg {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.social-icons svg:hover {
    transform: scale(1.15);
}

/* FOOTER */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #00ff00, #057c82);
    color: white;
    text-align: center;
    padding: 1px 0;
    font-family: 'Century Gothic', sans-serif;
    z-index: 1000;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Pozadinske klase */
.bg1 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/background.webp') no-repeat center center fixed;
    background-size: cover;
}

.bg2 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/background1.webp') no-repeat center center fixed;
    background-size: cover;
}

.bg3 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/background2.webp') no-repeat center center fixed;
    background-size: cover;
}

.bg4 {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/background3.webp') no-repeat center center fixed;
    background-size: cover;
}

/* RESPONSIVNOST NAV & LOGO */
@media (max-width: 768px) {
    nav ul li a {
        font-size: 24px;
    }
    header .logo img {
        height: 100px;
    }
}

/* MAP SECTION */
.map-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    text-align: center;
}

.map-section iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 450px !important;
    border: none;
    border-radius: 10px;
}
nav ul li a {
    text-decoration: none !important;
}
/* =========================
   MOBILE-ONLY RESPONSIVE FIXES
   (dodati NA KRAJ style.css)
   ========================= */

/* --- generalna podešavanja za tablete/mobilne --- */
@media (max-width: 768px) {

  /* smanjimo "padding-top" na body jer header zauzima manje prostora na mobilu */
  body {
    padding-top: 100px; /* desktop ostaje 160px */
  }

  /* header postaje kompaktniji bez promene desktop izgleda */
  header {
    padding: 0.5rem 0.8rem;
  }

  header .logo img {
    height: 88px; /* manji logo na mobilu */
  }

  /* Omogućimo menu-u da se elegantno smanji, ali ostane u jednom redu */
  nav {
    padding: 0 6px;
    min-width: 0; /* sprečava prelaz elemenata */
  }

  nav ul {
    gap: 0.8rem;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap; /* ostaje 1 red, smanji font i spacing da stane */
    overflow: hidden;
  }

  nav ul li a {
    font-size: 18px; /* smanjeno radi čitljivosti */
    padding: 6px 4px;
    white-space: nowrap;
    display: inline-block;
  }

  /* active efekt manje "skaluje" da ne pomera ostale linkove */
  nav ul li a.active {
    transform: none;
    color: #025e02;
  }

  /* social icons manji i manje margine */
  .social-icons {
    gap: 8px;
  }
  .social-icons svg {
    width: 34px;
    height: 34px;
  }

  /* footer manji visinski footprint */
  footer {
    padding: 6px 0;
    font-size: 13px;
  }

  /* Hero */
  .hero-home {
    padding: 40px 0;
    min-height: 38vh;
  }
  #heroFadeText {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  /* Kontakt - kolone prelamanje */
  .kontakt-kontejner {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    height: auto; /* ukloni fiksne visine koje kvare mobilni */
  }
  .leva-kolona, .desna-kolona {
    width: 100%;
  }
  .mapa-okvir { height: 280px; }

  /* Ponude (tabele) - omogućimo horizontalni skrol i veći font za čitanje */
  .ponuda-tabela {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 15px;
  }
  .ponuda-tabela th, .ponuda-tabela td {
    white-space: nowrap;
  }

  /* O nama - grid -> jedna kolona */
  .onama-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Menu kartice: srediti širine */
  .menu-grid {
    justify-content: center;
    gap: 14px;
  }
  .menu-card {
    width: 46%;
    max-width: 260px;
    height: auto;
  }

  /* delivery buttons manji */
  .delivery-buttons a {
    width: 84px;
    height: 84px;
  }

  /* call popup box smanjeno */
  .call-popup-box {
    width: 92%;
    max-width: 340px;
  }

  /* global image safety */
  img, .menu-card img, header .logo img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* tabele i tekst ispod - veći line-height i padding */
  .ispod, .ponuda-box .intro {
    line-height: 1.45;
    font-size: 16px;
  }

  /* smanjimo marginu naslova koji je veliko na desktopu */
  .kontakt-naslov, .menu-title, .onama-naslov, .ponuda-naslov {
    font-size: clamp(1.8rem, 6.6vw, 2.6rem);
    margin-top: 12px;
    margin-bottom: 12px;
  }

  /* INDEX (mobile-only): make main/index text match other pages' main-title size
     - Scoped to `.home main` so desktop remains unchanged. */
  .home main, .home main * {
    font-size: clamp(1.8rem, 6.6vw, 2.6rem);
    line-height: 1.15; /* preserve compact look similar to page titles */
  }

  /* spreči fiksiranje overflow problema na body */
  body[style] { -webkit-overflow-scrolling: touch; }
}

/* --- dodatna uska optimizacija za male ekrane (mobiteli) --- */
@media (max-width: 480px) {

  body {
    padding-top: 80px; /* još manji top na uskim ekranima */
    margin-bottom: 80px; /* ostavi mesto za footer */
  }

  header .logo img {
    height: 72px;
  }

  nav ul li a {
    font-size: 16px;
    padding: 4px 6px;
  }

  .social-icons svg {
    width: 28px;
    height: 28px;
  }

  .menu-card {
    width: 90%;
  }

  .hero-home {
    padding: 28px 0;
    min-height: 30vh;
  }
  #heroFadeText { font-size: clamp(1.8rem, 10vw, 2.6rem); }

  .kontakt-kontejner {
    padding: 6px;
  }

  .mapa-okvir { height: 220px; }

  .ponuda-tabela { font-size: 14px; }
  .ponuda-tabela th, .ponuda-tabela td { padding: 8px 10px; }

  .ponuda-box { padding: 18px; }
  .ponuda-download a { padding: 10px 18px; font-size: 16px; }

  /* ako footer cover-uje deo sadržaja, povećamo bottom padding */
  .menu-container, .main-container, .onama-container, .ponuda-section {
    padding-bottom: 100px;
  }
}

/* --- helpers: sprečavanje horizontalnog skrola uzrokovanog velikim elementima --- */
@media (max-width: 1024px) {
  /* general safeguard */
  * { box-sizing: border-box; }
  html, body { max-width: 100%; overflow-x: hidden; }
  iframe { max-width: 100%; }
}

/* -----------------------------
   MOBILE NAV TOGGLE (hamburger)
   Uses `body.nav-open` to show
   the overlay vertical nav.
   ----------------------------- */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .hamburger, .hamburger {
  display: inline-block;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: white;
  margin: 4px 0;
  transition: none; /* keep static 3-line icon, no animation */
}

@media (max-width: 900px) {
  /* show hamburger */
  .nav-toggle { display: inline-flex; }
  /* position hamburger to the right, below the header */
  .nav-toggle {
    position: absolute;
    right: 16px;
    top: calc(100% + 8px);
    z-index: 2001;
    background: transparent;
    border: 0;
    padding: 6px;
  }
  /* hide regular centered nav and allow overlay */
  nav { display: block; }

  nav ul {
    display: none; /* hidden by default on small screens */
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* overlay menu when body.nav-open is set */
  body.nav-open nav ul {
    display: flex;
    position: fixed;
    top: 100px; /* below header */
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(5,124,130,0.98), rgba(0,255,0,0.95));
    padding: 12px 10px;
    flex-direction: column;
    align-items: center;
    z-index: 2000;
  }

  body.nav-open nav ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0;
  }

  body.nav-open nav ul li a {
    display: block;
    width: 100%;
    font-size: 20px;
    padding: 12px 0;
  }

  /* reduce logo height to keep header compact on small devices */
  header .logo img { height: 64px; }
}

/* close nav-open state styles for toggle animation */






