html {
  scroll-behavior: smooth;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

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

#main-section {
  background-color: #aba6a6;
  margin-top: 10%;
  margin-bottom: 20%;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Sansation", sans-serif;
  box-sizing: border-box;
  background-color: whitesmoke;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Kanit", sans-serif;
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  background-color: transparent;
  width: 0px;
}

.scroll-offset,
#veleprodaja,
#maloprodaja,
#kontakt {
  scroll-margin-top: 150px;
}

* {
  margin: 0;
  padding: 0;
}
.logo {
  height: 60px;
  margin-left: 10px;
}

.logo1 {
  height: 75px;
}

.topnav {
  overflow: hidden;
  background-color: whitesmoke;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px 5px #16161d;
  z-index: 3;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

/* Hide the links inside the navigation menu (except for logo/home) */
/* Animacija za otvaranje/zatvaranje burger menija */
#myLinks {
  display: flex;
  flex-direction: column;
  align-items: space-evenly;
  max-height: 0;
  overflow: hidden;
  background-color: #ffffff;
  transition: max-height 0.4s ease-out;
}

#myLinks.show {
  max-height: 350px; /* prilagodi visinu po potrebi */
  transition: max-height 0.4s ease-in;
}

.topnav a {
  color: whitesmoke;
  padding-top: 10px;
  padding-bottom: 14px;
  padding-right: 14px;
  padding-left: 0px;
  text-decoration: none;
  font-size: clamp(1.2rem, calc(0.5rem + 1vw), 1.4rem);
  display: block;
  color: #16161d;
}

.topnav a.icon {
  background: whitesmoke;
  display: block;
  position: absolute;
  font-size: 30px;
  margin-right: 5px;
  margin-top: 10px;
  margin-left: 0px;
  right: 0;
  top: 0;
}

#myLinks a {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px 2vw;
  margin: 10px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 97%;
}

#myLinks a:hover {
  background-color: rgba(0, 0, 0, 0.4);
  color: crimson;
  transition: 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.main {
  margin: 0;
  padding: 0;
}

.spacer {
  height: 10vh;
}

.hero {
  position: relative;
  width: 100vw;
  height: 120vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: url(/originall/media/hero.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: absolute;
  left: 8vw;
  top: 50%;
  transform: translateY(-50%);
  width: 30vw;
  min-width: 320px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.356);
  padding: 2vw 2vw 2vw 1vw;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.hero-logo {
  width: 90px;
  height: auto;
  margin-bottom: 1vw;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: bold;
  color: rgb(255, 255, 255);
  margin-bottom: 1vw;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-content h6 {
  font-size: 1.3rem;
  color: #fdfdfd;
  font-weight: 400;
  margin-top: 0.5vw;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.onama {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  width: 100vw;
  height: 70vh; /* Adjust as needed */
  background: #f5f5f5;
  overflow: hidden;
  border-bottom: #a30000 4px solid;
  border-top: #a30000 4px solid;
}

.onama-text {
  flex: 2 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3vw;
  min-width: 300px;
  max-width: 500px;
}

.onama-text p {
  margin-bottom: 1.5em;
  font-size: 1.2rem;
}

.onama-text button {
  padding: 0.8em 2.2em;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  background: crimson;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.onama-text button:hover {
  background: #a30000;
}

.onama-img {
  flex: 1 1 45%; /* Larger portion for image */
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.onama-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.veleprodaja {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100vw;
  height: 70vh; /* Adjust as needed */
  background: #f5f5f5;
  overflow: hidden;
  border-bottom: #a30000 4px solid;
}

.veleprodaja .veleprodaja-text {
  flex: 1 1 45%; /* Smaller portion for text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3vw;
  min-width: 300px;
  max-width: 500px;
}

.veleprodaja .veleprodaja-text p {
  margin-bottom: 1.5em;
  font-size: 1.2rem;
}

.veleprodaja .veleprodaja-text button {
  padding: 0.7em 2em;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: crimson;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.veleprodaja .veleprodaja-text button:hover {
  background: #a30000;
}

.veleprodaja .veleprodaja-img {
  flex: 1 1 60%; /* Larger portion for image */
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.veleprodaja .veleprodaja-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.maloprodaja {
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  width: 100vw;
  height: 70vh; /* Adjust as needed */
  background: #f5f5f5;
  overflow: hidden;
  border-bottom: #a30000 4px solid;
}

.maloprodaja .maloprodaja-text {
  flex: 1 1 45%; /* Smaller portion for text */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3vw;
  min-width: 300px;
  max-width: 500px;
}

.maloprodaja .maloprodaja-text p {
  margin-bottom: 1.5em;
  font-size: 1.2rem;
}

.maloprodaja .maloprodaja-text button {
  padding: 0.7em 2em;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: crimson;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.maloprodaja .maloprodaja-text button:hover {
  background: #a30000;
}

.maloprodaja .maloprodaja-img {
  flex: 1 1 60%; /* Larger portion for image */
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.maloprodaja .maloprodaja-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.kontakt {
  background: #c4c4c4;
  padding: 5vw 0;
  width: 100vw;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kontakt h2 {
  font-size: 2.5rem;
  margin-bottom: 2vw;
  color: #16161d;
  text-align: center;
}

.kontakt-cards {
  display: flex;
  gap: 2vw;
  justify-content: center;
  flex-wrap: wrap;
  width: 90vw;
  max-width: 1200px;
}

.kontakt-card {
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 320px;
  width: 100%;
  background: white;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 2vw 2vw 2vw 2vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2vw;
  transition: transform 0.2s;
}

.kontakt-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.kontakt-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1vw;
  color: #fff;
  text-align: center;
}

.kontakt-card p {
  font-size: 1.1rem;
  margin-bottom: 2vw;
  color: #f5f5f5;
  text-align: center;
}

.kontakt-card.crimson {
  background: crimson;
}
.kontakt-card.navy {
  background: navy;
}
.kontakt-card.white {
  background: #fff;
  border: 2px solid #ddd;
}
.kontakt-card.white h3,
.kontakt-card.white p {
  color: #16161d;
}

.kontakt-card button {
  padding: 0.7em 2em;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: #16161d;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.kontakt-card.crimson button {
  background: #fff;
  color: crimson;
}
.kontakt-card.navy button {
  background: #fff;
  color: navy;
}
.kontakt-card.white button {
  background: crimson;
  color: #fff;
}

.kontakt-card button:hover {
  background: #a30000;
  color: #fff;
}

.footer {
  background-color: #16161d;
  color: whitesmoke;
  padding: 5vh 0 10vh 0;
  text-align: center;
  box-shadow: 0 0 10px 5px #16161d;
}
.footer-about {
  font-size: 18px;
  color: gainsboro;
}
.links-text {
  font-size: 18px;
  margin-bottom: 20px;
  color: crimson;
  font-style: none;
}
.footer-content {
  list-style-type: none;
  display: flex;
  justify-content: center;
  justify-content: space-evenly;
}
.footer-links {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: #aba6a6;
}

@media (max-width: 900px) {
  .logo-main {
    height: clamp(15vw, calc(20vh + 2vw), 40vw);
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-links {
    display: none;
  }
  .show > .footer {
    overflow: scroll;
  }
  .kontakt-cards {
    padding: 2vh 0 2vh 0;
    flex-direction: column;
    align-items: center;
    gap: 3vw;
  }
  .kontakt-card {
    max-width: 90vw;
    justify-content: space-evenly;
  }
  .onama {
    flex-direction: column;
    justify-content: center;
  }
  .veleprodaja {
    flex-direction: column;
    justify-content: center;
  }
  .maloprodaja {
    flex-direction: column;
    justify-content: center;
  }

  .hero-content {
    left: 4vw;
    width: 80vw;
    min-width: unset;
    max-width: unset;
    padding: 4vw 2vw;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-logo {
    width: 60px;
  }
}

/* Na mobilnim uređajima prikaži celu sliku u onama / veleprodaja / maloprodaja */
@media screen and (max-width: 784px) {
  .onama-img,
  .veleprodaja .veleprodaja-img,
  .maloprodaja .maloprodaja-img {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    background-color: #ffffff; /* opcionalno: pozadina iza slike */
    box-sizing: border-box;
  }

  .onama-img img,
  .veleprodaja .veleprodaja-img img,
  .maloprodaja .maloprodaja-img img {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    object-fit: contain !important; /* prikaži celu sliku bez sečenja */
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
  }

  /* ako .maloprodaja ima fiksnu visinu na desktopu, poništi je za mobilne */
  .maloprodaja {
    height: auto !important;
  }
  .onama-img {
    display: none;
  }
  .onama-img img {
    display: none;
  }
}
