.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

/* GLOBAL STYLES
    --------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #5a5a5a;
  background-color: #5e5b5424;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  opacity: 90%;
}

body {
  font-family: "Open Sans", sans-serif;
}

p {
  font-family: "Lato", sans-serif;
  font-weight: 400 !important;
  font-size: clamp(17px, 3.4vw, 24px) !important;
}

/* CUSTOMIZE THE CAROUSEL
    -------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 4rem;
  overflow: hidden;
}

.slide {
  margin-bottom: 4rem;
}

/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

/* Declare heights because of positioning of img element */

.carousel-item > img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-family: "Lato", sans-serif;
}

.marketing h2 {
  font-weight: 400;
}

.marketing .col-lg-4 p {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}

/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0;
  /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05rem;
}

.featurette-heading {
  font-size: 32px;
}

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 55px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}

/* 1️⃣ Slika ispunjava cijeli ekran */
.hero-img {
  height: 100vh !important; /* visina cijelog prozora */
  object-fit: cover; /* ponaša se kao background-size: cover */
  object-position: center 40%; /* pomak gore/dolje po želji */
  display: block; /* sprječava bijeli razmak ispod slike */
}

/* 3️⃣ Carousel caption (tekst) ostaje iznad overlaya */
.carousel-caption {
  position: relative;
  z-index: 2;
}

/* 4️⃣ Carousel visina (ako nije već definirana) */
.carousel,
.carousel-inner,
.carousel-item {
  height: 100vh;
  overflow: hidden;
}

/* mobitel/portrait */
@media (min-width: 768px) {
  .hero-img {
    min-height: 100%;
  }
}

/* desktop */
@media (min-width: 1200px) {
  .hero-img {
    height: 100%;
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
}

.hero-img .container,
.hero-img .carousel-caption {
  position: relative;
  z-index: 2;
}

.new-position {
  position: relative !important;
  text-align: center !important;
  z-index: 2;
}

.podnaslov {
  font-size: clamp(14px, 2.7vw, 19px) !important;
  color: #f8f9fa;
  margin-top: 20px;
}

.o-nama {
  margin-bottom: 80px;
  margin-top: 80px;
}

.o-nama_title {
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.o-nama_paragraf {
  text-align: center;
}

.carousel,
.carousel-inner,
.carousel-item {
  height: 95vh;
  position: relative;
}

.pilenka {
  background-image: url("/Photos/Slika.jpg");
  width: 500px;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.pilenka2 {
  width: 500px;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ukloni marginu na malim širinama */
.nav-item {
  margin-left: 20px;
}

/* stavi razmak tek od LG naviše */
@media (min-width: 992px) {
  .navbar-nav .nav-item + .nav-item {
    margin-left: 60px;
  }
}

.crvena-nesilica {
  filter: brightness(0.9); /* 90% svjetline = tamnije */
  border-radius: 10px;
}

.card img {
  transition: transform 8s ease-in-out;
}
.card:hover img {
  transform: scale(1.05);
}

.btn-primary {
  background-color: #34411a;
  border-color: #34411a;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: #34411a;
  border-color: #34411a;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #273313; /* tamnija nijansa */
  border-color: #273313;
}

.btn-secondary:hover {
  background-color: #273313; /* tamnija nijansa */
  border-color: #273313;
}

.nav-background {
  background-color: #5e5b54 !important;
}

.footer-section {
  background-color: #5e5b54 !important;
  font-size: 14px;
}

.footer-o-nama {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-o-nama:hover {
  color: #adb5bd !important;
}

.footer-galerija {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-galerija:hover {
  text-decoration: none;
  color: #adb5bd !important;
}

.footer-kontakt {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-kontakt:hover {
  text-decoration: none;
  color: #adb5bd !important;
}

.footer-section a[href*="perfectlab"] {
  color: #adb5bd; /* svjetlija siva */
  font-size: 0.9em;
}
.footer-section a[href*="perfectlab"]:hover {
  color: #ffffff;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 65, 26, 0.5) !important;

  background-color: #34411a !important;
  border-color: #34411a !important;
}

.btn-secondary:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5) !important;

  background-color: #34411a !important;
  border-color: #34411a !important;
}

.navbar-nav .nav-link {
  position: relative;
  color: #f8f9fa; /* ili neka druga osnovna boja teksta */
  transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2.5px;
  background-color: #34411a; /* tvoja boja */
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

html,
body {
  overflow-x: hidden;
}
.navbar,
.navbar-collapse {
  max-width: 100vw;
}

@media (max-width: 575.98px) {
  .navbar-nav .nav-link::after {
    display: none;
  }
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 75vh;
  }

  .carousel-item > img.hero-img {
    height: 75vh;
    object-fit: cover; /* osiguraj crop */
    transform: translateY(-210px); /* POMAK GORE — prilagodi npr. -40 do -100 */
  }
}

@media (min-width: 576px) and (max-width: 900px) {
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 89vh;
  } /* malo kraće od full-screen */

  .carousel-item > img.hero-img {
    height: 85vh;
    object-fit: cover;
    object-position: center 75%; /* blagi fokus niže */
    transform: translateY(-80px); /* blagi “lift” kadra */
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

.text_ponude {
  text-align: center;
  margin-bottom: 80px;
}

.logo_slika {
  margin-bottom: 8px;
}

.carousel-item {
  position: relative;
}

.carousel-caption {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  bottom: auto !important; /* pregazi Bootstrapovo bottom */
  right: auto !important;

  z-index: 2;
  text-align: center;
  width: min(90%, 1000px); /* da tekst ne bježi u rubove */
  margin: 0;
  padding: 0 1rem;
}

/* Sekcija s kartom */
.map-section {
  margin-bottom: 100px;
  margin-top: 100px;
  text-align: center;
  padding: 40px 20px;
  background-color: #f9f9f9; /* možeš promijeniti ili maknuti */
}

/* Naslov iznad karte */
.map-section h2 {
  margin-bottom: 40px;
}

/* Omot za responzivnost i centriranje */
.map-container {
  position: relative;
  width: 100%;
  max-width: 900px; /* širina na desktopu */
  margin: 0 auto; /* centrirano */
  aspect-ratio: 16 / 9; /* automatski omjer (možeš promijeniti u 4/3 ili 3/2) */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* iframe prilagođen kontejneru */
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 1200px) {
  .o-nama,
  .text_ponude {
    margin-top: 50px;
    margin-bottom: 50px;
  }
}

.social-logos {
  margin-top: 25px;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-logos a img,
.kontakt-podaci {
  width: 35px; /* veličina loga */
  height: 35px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-logos a img:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.contact-info {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  color: #333;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item img {
  width: 26px; /* veličina ikone */
  height: 26px;
  object-fit: contain;
}

.contact-item a {
  color: #0066cc; /* ili tvoja brend boja, npr. zelena: #3b5d2a */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #004a99;
}

/* 1) Stabilna visina hero-a na mobitelima (adresna traka) */
.carousel,
.carousel-inner,
.carousel-item {
  height: 100svh; /* small viewport height – radi dobro na mobitelu */
  min-height: 420px;
  overflow: hidden;
  margin-bottom: 0 !important;
}
@supports (height: 100dvh) {
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 100dvh; /* još stabilnije gdje je podržano */
  }
}

/* 2) Slika ispuni cijeli slajd + anti-seam trik */
.carousel-item > img.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* anti-1px seam (pokriva podrezivanje i iOS rounding) */
  inset: -1px 0 0 0; /* gurni 1px gore */
  height: calc(100% + 2px); /* i rastegni 1-2px */
  backface-visibility: hidden;
  -webkit-transform: translateZ(0); /* GPU nudge za iOS */
}

/* 3) Ukloni “lift” i duboki fokus na nižim visinama (da ne ode previše gore) */
@media (max-height: 850px) and (min-height: 701px) {
  .carousel-item > img.hero-img {
    object-position: center 65% !important;
    transform: none !important;
  }
}
@media (max-height: 700px) {
  .carousel-item > img.hero-img {
    object-position: center !important;
    transform: none !important;
  }
}

/* 4) Ako i dalje vidiš sivu crtu zbog pozadine tijela — pobij je bijelim */
body {
  background-color: #fff;
}

/* (po želji) Ako sljedeća sekcija ima vlastitu pozadinu,
   dodaj joj malo gornjeg paddingsa umjesto margine na .carousel */
.o-nama {
  margin-top: 32px;
}

/* Od 995px širine naniže — lagano podigni hero sliku */
@media (max-width: 995px) {
  .carousel-item > img.hero-img {
    object-position: center 70% !important; /* pomakni fokus malo više */
    transform: translateY(-50px) !important; /* podigni sliku gore */
  }
}

/* Od 700px visine naniže i dalje ostaje tvoj postojeći fix */
@media (max-height: 700px) {
  .carousel-item > img.hero-img {
    object-position: center !important;
    transform: none !important;
  }
}

/* ispod 995px širine samo promijeni fokus slike */
@media (max-width: 995px) {
  .carousel-item > img.hero-img {
    object-position: center 85% !important; /* podigni kadar */
    transform: none !important; /* makni translate */
  }
}

/* od 995px naniže — blagi pomak gore */
@media (max-width: 995px) {
  .carousel-item > img.hero-img {
    object-position: center 75% !important; /* blago podigni kadar */
  }
}

/* od 800px naniže — još malo gore */
@media (max-width: 800px) {
  .carousel-item > img.hero-img {
    object-position: center 90% !important; /* dodatno podigni kadar */
  }
}

@media (max-width: 700px) {
  .carousel-item > img.hero-img {
    object-position: center 90% !important; /* dodatno podigni kadar */
    transform: translateY(-100px) !important; /* lagano podigni sliku */
  }
}

@media (max-width: 700px) {
  .carousel {
    height: 74vh !important; /* smanji visinu karusela */
  }
}

/* od 610px naniže — dodatno podigni sliku, bez donjeg reza */
@media (max-width: 610px) {
  .carousel-item > img.hero-img {
    object-position: center 95% !important; /* pomakni fokus još više */
    transform: translateY(-230px) !important; /* lagano podigni sliku */
  }
}
/* --- Mobilni prikaz: manja visina i bolja pozicija slike --- */
@media (max-width: 610px) {
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 63vh !important; /* smanji visinu karusela */
  }

  .carousel-item > img.hero-img {
    object-position: center 95% !important; /* lagano podigni kadar */
  }
}

.potrazite-nas-title {
  font-weight: 400;
}
