/* Prikaz samo na desktopu */
.desktop-only {
  display: flex !important;
}
@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
}
/* Floating dugme za poziv na mobilnim uređajima */
.call-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.92);
  border-radius: 50%;
  box-shadow: 0 4px 16px #0007;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  opacity: 0.96;
  border: 2px solid #CBA13544;
}
.call-fab svg {
  margin: 0 auto;
  display: block;
  width: 24px;
  height: 24px;
  stroke: #CBA135;
  filter: drop-shadow(0 0 2px #0008);
  transition: stroke 0.2s, filter 0.2s;
}
.call-fab:hover,
.call-fab:focus {
  background: #181818;
  opacity: 1;
  box-shadow: 0 6px 24px #CBA13544;
}
.call-fab:hover svg,
.call-fab:focus svg {
  stroke: #e0b84d;
  filter: drop-shadow(0 0 6px #CBA13588);
}
@media (max-width: 900px) {
  .call-fab {
    display: flex;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* padding i border se računaju unutar širine */
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Open Sans', sans-serif;
  background-color: #0D0D0D; /* tvoja tamna pozadina */
  color: #EAEAEA;
  -webkit-font-smoothing: antialiased; /* lepši prikaz fonta */
  -moz-osx-font-smoothing: grayscale;
}

/* HERO sekcija */
.hero {
  background-image: url('images/izlog.jpg');
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: 0;
  opacity: 0;
  animation: fadeOverlay 1.5s ease forwards;
}

@keyframes fadeOverlay {
  to { opacity: 1; }
}

/* Sadržaj iznad overlay-a */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Logo: fade-in odozdo */
.logo {
  width: 180px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s;
}

/* Slider kontejner */
.hero-slider {
  position: relative;
  width: 90%;
  max-width: 800px;      /* kontrola realne veličine teksta/slike */
  margin: 0 auto;
}

/* Slike u slideru */
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1.2s ease-in-out; /* blagi crossfade za sve rotacije */
}

/* Aktivna slika (crossfade) */
.hero-slide.active {
  opacity: 1;
}

/* Samo prva slika: fade-in odozdo, istovremeno sa logom */
.hero-slide.active.initial {
  opacity: 0;                    /* forsiraj početnu nevidljivost */
  transform: translateY(20px);   /* pomak odozdo */
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.4s;         /* malo kasnije od loga */
}

/* Jedinstveni keyframes za ulaz odozdo (logo + prva slika) */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-slider { max-width: 900px; }
}

@media (max-width: 768px) {
  .hero-slider { width: 100%; max-width: 100%; }
  .logo { width: 140px; }
  
  /* Navbar na mobilnom - minimalni razmaci */
  .navbar {
    padding: 5px 0;
  }
  
  .navbar ul {
    justify-content: center;
    padding: 0 15px;
    gap: 0;
  }
  
  .navbar li {
    margin: 0;
  }
  
  .navbar a {
    font-size: 0.62rem;
    letter-spacing: 0;
    padding: 4px 3px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .navbar ul {
    padding: 0 15px;
    gap: 0;
  }
  
  .navbar a {
    font-size: 0.56rem;
    padding: 4px 2px;
  }
}

@media (max-width: 320px) {
  .navbar ul {
    padding: 0 12px;
  }
  
  .navbar a {
    font-size: 0.52rem;
    padding: 4px 1px;
  }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(203, 161, 53, 0.2);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Akcija u navbar-u - levo */
.navbar-promo {
  /* Telefon dugme u navbaru - desno */
  .navbar-phone {
    display: flex;
    align-items: center;
    margin-left: 24px;
    text-decoration: none;
    transition: opacity 0.2s, filter 0.2s;
    opacity: 0.92;
  }
  .navbar-phone svg {
    display: block;
    stroke: #CBA135;
    fill: none;
    filter: drop-shadow(0 0 2px #0008);
    transition: stroke 0.2s, filter 0.2s;
  }
  .navbar-phone:hover,
  .navbar-phone:focus {
    opacity: 1;
    filter: brightness(1.2);
  }
  .navbar-phone:hover svg,
  .navbar-phone:focus svg {
    stroke: #e0b84d;
    filter: drop-shadow(0 0 4px #CBA13588);
  }
  /* Sakrij na mobilnim uređajima */
  @media (max-width: 900px) {
    .navbar-phone {
      display: none;
    }
  }
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #CBA135;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s ease;
  padding: 5px 10px;
  border-right: 1px solid rgba(203, 161, 53, 0.3);
  margin-right: 20px;
}

.navbar-promo:hover {
  color: #e0b84d;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  flex: 1;
}

.navbar li { margin: 0 15px; }

.navbar a {
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #CBA135;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover { color: #e0b84d; }

/* Hamburger toggle button (hidden on desktop) */
.navbar-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background-color: #CBA135;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile responsive za navbar */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0 15px;
  }
  
  .navbar-promo {
    font-size: 0.75rem;
    padding: 5px 8px;
    margin-right: 10px;
    border-right: 1px solid rgba(203, 161, 53, 0.3);
    flex-shrink: 0;
  }
  
  .navbar-toggle {
    display: flex;
  }
  
  .navbar ul {
    position: fixed;
    top: 46px;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 46px);
    overflow-y: auto;
  }
  
  .navbar ul.active {
    transform: translateX(0);
  }
  
  .navbar li {
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(203, 161, 53, 0.1);
  }
  
  .navbar a {
    font-size: 1rem;
    display: block;
  }
}

@media (max-width: 480px) {
  .navbar-promo {
    font-size: 0.65rem;
    padding: 4px 6px;
    margin-right: 8px;
  }
}

/* SEKCIJE */
.section {
  padding: 80px 20px;
  text-align: center;
}

.light-bg { background-color: #f9f9f9; color: #0D0D0D; }
.dark-bg { background-color: #0D0D0D; color: #EAEAEA; }

.image-bg {
  background-image: url('images/background.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
}

.image-bg .text-box {
  background-color: rgba(0,0,0,0.6);
  display: inline-block;
  padding: 20px;
  border-radius: 10px;
}

/* Alternating layout */
.content-section {
  width: 100%;
  padding: 100px 60px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.content-section .text,
.content-section .image {
  flex: 0 0 50%;
}

.content-section.reverse { flex-direction: row-reverse; }

/* Slike */
.content-section .image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  max-width: 500px;
}

.content-section .image img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Specifično za Skeyndor logo - bez senke i manji */
.content-section .image img[src*="logotipo-skeyndor"] {
  box-shadow: none;
  width: 80%;
  max-width: 400px;
  border-radius: 0;
}

.content-section .image img[src*="logotipo-skeyndor"]:hover {
  box-shadow: none;
  transform: scale(1);
}

/* Pozadine sekcija */
.content-section:nth-of-type(even) {
  background: linear-gradient(to right, #f5f0e6, #faf7f2);
}

.content-section:nth-of-type(odd) {
  background: linear-gradient(to right, #f9f9f9, #ffffff);
}

/* Responsive */
@media (max-width: 768px) {
  .content-section { flex-wrap: wrap; }
  .content-section .text,
  .content-section .image {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .content-section .image img { max-width: 100%; }
}

/* TIPOGRAFIJA */
h1, h2 {
  font-family: 'Playfair Display', serif;
  color: #CBA135;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

h1 { font-size: 3rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 15px; }

p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  color: #0D0D0D;
}

.dark-bg p { color: #EAEAEA; }

@keyframes shineGold {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* CTA dugmad */
.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #CBA135;
  color: #0D0D0D;
  border-radius: 30px;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #EAEAEA;
  color: #0D0D0D;
}

/* Service buttons in Usluge */
.service-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.service-button {
  background: linear-gradient(90deg, #CBA135, #E0B84D);
  color: #0D0D0D;
  padding: 10px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(203,161,53,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(203,161,53,0.22); }

/* Promo box for Skeyndor & Vecom */
.service-promo {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));
  border: 1px solid rgba(203,161,53,0.06);
}
.service-promo img { width: 140px; max-width: 30%; border-radius: 8px; object-fit: cover; }
.service-promo .promo-text { flex: 1; text-align: left; }
.service-promo h3 { margin:0 0 6px 0; color: #CBA135; }
.service-promo p { margin:0; color: #EAEAEA; }

@media (max-width: 768px) {
  .service-promo { flex-direction: column; align-items: flex-start; }
  .service-promo img { width: 100%; max-width: 100%; }
}

/* SKEYNDOR section styling */
#skeyndor .text {
  text-align: left;
}

#skeyndor .text h3 {
  margin-top: 12px;
  margin-bottom: 16px;
  color: #2D2D2D;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

/* Filozofija section h3 styling - same as Skeyndor */
#filozofija .text h3 {
  margin-top: 12px;
  margin-bottom: 16px;
  color: #2D2D2D;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

/* Vecom section: ensure left-aligned text (image is on the left via .reverse) */
#vecom .text {
  text-align: left;
}

#vecom .text h2 { color: #CBA135; }

/* FOOTER */
.footer {
  background: linear-gradient(to right, #0D0D0D, #1a1a1a);
  color: #CBA135;
  text-align: center;
  padding: 40px 20px;
  font-family: 'Open Sans', sans-serif;
  display: flex;
  justify-content: center; /* centriraj horizontalno */
  border-top: 1px solid #CBA135;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto; /* centriraj blok */
}

.footer-content p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #EAEAEA;
}

/* ==========================
   TESTIMONIALS / UTISCI
   ========================== */
.testimonials {
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.testimonial {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.34);
  border: 2px solid rgba(203,161,53,0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.testimonial-img {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(203,161,53,0.16);
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(0.98) saturate(1.05) sepia(0.06);
}

/* Initials avatar (fallback / privacy-friendly) */
.testimonial-initials {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #CFA853, #CBA135);
  color: #0D0D0D;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}

@media (max-width: 480px) {
  .testimonial-initials { width:56px; height:56px; font-size:0.95rem; }
}

.testimonial-body { flex: 1; }

.testimonial-quote {
  font-style: italic;
  color: #0D0D0D; /* tamniji tekst za čitljivost na svetlijim pozadinama */
  margin-bottom: 8px;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: #CBA135;
  font-size: 0.95rem;
}

/* When testimonials are placed on a dark background, keep quote text light */
.dark-bg .testimonial-quote {
  color: #EAEAEA;
}

@media (max-width: 480px) {
  .testimonial { padding: 14px; gap: 12px; }
  .testimonial-img { width: 56px; height: 56px; flex-basis: 56px; }
}

/* Carousel specific styles for Utisci */
.testimonials-carousel {
  max-width: 920px;
  margin: 18px auto 0 auto;
  position: relative;
  padding: 6px;
}

.testimonials-carousel .testimonial {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
}

.testimonials-carousel .testimonial[hidden] { display: none; }

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.testimonial-controls button {
  background: rgba(203,161,53,0.85);
  color: #0D0D0D;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.test-dots { display:flex; gap:8px; align-items:center; }
.test-dots button { width:10px; height:10px; border-radius:50%; border:none; background:rgba(255,255,255,0.18); }
.test-dots button.active { background:#CBA135; }

@media (max-width: 768px) {
  .testimonials-carousel { padding: 4px; }
  .testimonial { gap: 10px; }
}

/* ==========================
   KONTAKT SEKCIJA
   ========================== */
.kontakt-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
  text-align: left;
}

.kontakt-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.02));
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(203,161,53,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(203,161,53,0.18);
}

.kontakt-item h3 {
  color: #CBA135;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
}

.kontakt-item p {
  color: #0D0D0D;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.kontakt-item a {
  color: #CBA135;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.kontakt-item a:hover {
  color: #E0B84D;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .kontakt-info {
    grid-template-columns: 1fr;
  }
}