@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap");

/* ==========================================================
   1. OSNOVNI I GLOBALNI STILOVI
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* sprječava horizontalni scroll */
}

.main-content {
  flex: 1;
}

/* ==========================================================
   2. MODERAN HEADER (Glassmorphism)
   ========================================================== */
header {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.logo h1 span {
  color: #f39c12;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #f39c12;
}

.btn-header-call {
  background-color: #f39c12;
  color: #0f172a;
  padding: 9px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-header-call:hover {
  background-color: #d98700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

/* ==========================================================
   3. SLIDESHOW / HERO SEKCIJA
   ========================================================== */
.slideshow {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  top: 0;
  background-color: #0f172a;
}

.slides {
  display: none;
}

.slides img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

/* Dugmad (strelice) */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 26px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(3px);
}

.prev:hover,
.next:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* Efekat prelaza slika */
.fade {
  animation-name: fadeEffect;
  animation-duration: 1s;
}

@keyframes fadeEffect {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Tekst preklop preko slika */
.text-overlay {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 5;
  width: 90%;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 2s forwards;
}

.text-overlay .main-title {
  font-size: 2.8rem;
  font-weight: bold;
  display: inline-block;
  padding: 12px 25px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.text-overlay .subtitle {
  font-size: 1.3rem;
  color: #f39c12;
  font-weight: bold;
  margin-top: 5px;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ==========================================================
   4. HIGHLIGHT BAR
   ========================================================== */
.highlight-section {
  background-color: #0f172a;
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid #1e293b;
}

.highlight-section .highlight-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.highlight-section .highlight-item {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-section .highlight-item::before {
  content: "✓";
  color: #f39c12;
  margin-right: 12px;
  font-size: 1.5rem;
}

.highlight-cta a {
  background-color: #f39c12;
  color: #0f172a;
  padding: 10px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 5px;
}

.highlight-cta a:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================
   5. PROIZVODI SEKCIJA
   ========================================================== */
.proizvodi-sekcija {
  padding: 80px 20px 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.proizvodi-sekcija h2 {
  font-size: 2.2rem;
  color: #0f172a;
  font-weight: 700;
}

.section-sub {
  color: #64748b;
  margin-bottom: 40px;
}

.proizvodi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.proizvod-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.proizvod-link .proizvod {
  height: 100%;
}

.proizvod {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e2e8f0;
}

.proizvod:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  border-color: #f39c12;
}

.proizvod img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.proizvod h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #0f172a;
}

.proizvod p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  flex-grow: 1;
}

.proizvod .vidi-vise {
  display: inline-block;
  margin-top: 15px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #f39c12;
  letter-spacing: 0.5px;
}

/* ==========================================================
   6. SEKCIJA O FIRMI
   ========================================================== */
.o-firmi {
  background-color: #ffffff;
  color: #1e293b;
  padding: 80px 20px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.o-firmi-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.o-firmi-text {
  flex: 1;
  min-width: 300px;
}

.o-firmi-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #0f172a;
  border-left: 5px solid #f39c12;
  padding-left: 15px;
}

.o-firmi-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #475569;
}

.o-firmi-slika {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.o-firmi-slika img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.o-firmi-slika img:hover {
  transform: scale(1.02);
}

/* ==========================================================
   7. GALERIJA RADOVA
   ========================================================== */
.galerija-radova-sekcija {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

.galerija-radova-sekcija h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: #0f172a;
}

.galerija-radova-sekcija .paneli-podnaslov {
  margin-bottom: 40px;
}

.galerija-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.galerija-grid img,
.galerija-slika {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.galerija-grid img:hover,
.galerija-slika:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   8. SEKCIJA ISKUSTVO I KLIJENTI
   ========================================================== */
.iskustvo {
  background-color: #f1f5f9;
  color: #222;
  padding: 80px 20px;
  text-align: center;
}

.iskustvo-container,
.iskustvo-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.iskustvo-item {
  flex: 1;
  min-width: 250px;
}

.okvir {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.okvir:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #f39c12;
}

.okvir h3 {
  font-size: 3rem;
  color: #f39c12;
  margin-bottom: 10px;
  font-weight: 700;
}

.okvir p {
  font-size: 1.1rem;
  color: #475569;
  font-weight: 600;
}

/* ==========================================================
   9. MARKETING I KONTAKT SEKCIONALNA CJELINA
   ========================================================== */
.marketing {
  background-color: #0f172a;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-family: "Poppins", Arial, sans-serif;
}

.marketing h2,
.marketing-poruka {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 15px 0;
}

.marketing h2 span,
.marketing-poruka span {
  color: #f39c12;
  font-weight: 600;
}

.unified-contact-section {
  background: #0f172a;
  color: #ffffff;
  padding: 60px 20px 80px;
  text-align: center;
}

.contact-header-slogan {
  max-width: 800px;
  margin: 0 auto 50px;
}

.slogan-badge {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: inline-block;
}

.contact-header-slogan h2 {
  font-size: 2.2rem;
  margin: 20px 0 10px;
  font-weight: 600;
  line-height: 1.3;
}

.contact-header-slogan h2 span {
  color: #f39c12;
}

.contact-header-slogan p {
  color: #94a3b8;
  font-size: 1.05rem;
}

.contact-cards-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.contact-card {
  background: #1e293b;
  border-radius: 16px;
  padding: 35px 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #334155;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.highlight-card {
  border: 2px solid #f39c12;
}

.card-icon {
  font-size: 2rem;
  color: #f39c12;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.contact-card a {
  color: #f39c12;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Klasični #contact ID stilovi za kompatibilnost */
#contact {
  width: 100%;
  background: #0f172a;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

#contact h2 {
  font-size: 1.8em;
  letter-spacing: 1px;
  margin-bottom: 0px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info p,
#contact p {
  margin: 0;
  font-size: 1em;
}

#contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

#contact a:hover {
  color: #f39c12;
}

/* ==========================================================
   10. MODERAN FOOTER
   ========================================================== */
footer {
  background-color: #0b0f19;
  color: #94a3b8;
  padding-top: 60px;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 0 20px 50px;
}

.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #f39c12;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
  background-color: #070a10;
}

/* ==========================================================
   11. POD-STRANICE PROIZVODA & PROFILI
   ========================================================== */
.product-hero {
  position: relative;
  background-color: #222;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 90px 20px 70px;
  text-align: center;
  overflow: hidden;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.product-hero h1,
.product-hero p {
  position: relative;
  z-index: 2;
}

.product-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.product-hero p {
  font-size: 1.1rem;
  color: #f39c12;
  font-weight: bold;
}

.breadcrumb {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.breadcrumb a:hover {
  color: #f39c12;
}

.product-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px 20px;
}

.product-detail .opis {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
  max-width: 800px;

  /* Centriranje bloka na stranici */
  margin-left: auto;
  margin-right: auto;

  /* Poravnanje samog teksta (obostrano poravnat) */
  text-align: justify;
}

.product-detail .prednosti {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.product-detail .prednosti li {
  list-style: none;
  background: #f9f9f9;
  border-left: 4px solid #f39c12;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.product-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}

.product-gallery img:hover {
  transform: scale(1.03);
}

.product-cta {
  background-color: #f9f9f9;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.product-cta h2 {
  margin-bottom: 10px;
  color: #222;
}

.product-cta p {
  color: #666;
  margin-bottom: 20px;
}

.btn-poziv {
  display: inline-block;
  background-color: #f39c12;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 14px 30px;
  border-radius: 30px;
  transition:
    background 0.3s,
    transform 0.3s;
}

.btn-poziv:hover {
  background-color: #d98700;
  transform: translateY(-3px);
}

.back-link {
  display: inline-block;
  margin: 30px 0 10px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  color: #f39c12;
}

/* --- Paneli galerija (garažna vrata) --- */
.paneli-naslov {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 1.8rem;
  color: #222;
  text-align: center;
}

.paneli-podnaslov {
  max-width: 1100px;
  margin: 8px auto 30px;
  padding: 0 20px;
  text-align: center;
  color: #666;
  font-size: 1rem;
}

.paneli-grid {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.paneli-item {
  cursor: pointer;
  text-align: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.paneli-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.paneli-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.paneli-item span {
  display: block;
  font-weight: bold;
  color: #333;
  font-size: 0.95rem;
}

/* --- Kartice profila (dizajn "ALU Profile Cards", boje projekta) --- */
/* Dizajn: Barlow / Barlow Condensed; crvena -> #f39c12, tamna -> #0f172a, sive -> paleta sajta */
.proizvodi-zaglavlje {
  max-width: 1100px;
  margin: 0 auto 28px;
  padding: 0 20px;
  font-family: "Barlow", "Poppins", Arial, sans-serif;
  text-align: left;
}

.proizvodi-eyebrow {
  margin-bottom: 10px;
  font:
    600 12px/1 "Barlow",
    sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f39c12;
}

.proizvodi-naslov {
  margin: 0 0 8px;
  font:
    700 42px/1.02 "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #0f172a;
}

.proizvodi-podnaslov {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
}

.profili-grid {
  margin: 0 auto 50px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 kolone; ispod 720px jedna */
  gap: 22px;
  align-items: start;
}

@media (max-width: 720px) {
  .profili-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Vodopad (masonry): JS dijeli kartice u kolone, svaka ide u najnižu kolonu */
.profili-grid.vodopad {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.vodopad-kolona {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profil-kartica {
  font-family: "Barlow", "Poppins", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  text-align: left;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.profil-kartica:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.18);
}

.kartica-slika {
  position: relative;
  height: 210px;
  background: #f1f5f9;
}

.kartica-slika img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.slika-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.placeholder-ikona {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
}

/* Oznaka (pilula sa ikonom) preko slike, npr. "TERMO PREKID · 22 MM" */
.kartica-oznaka {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 12px;
  font:
    600 11px/1 "Barlow",
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.oznaka-ikona {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.kartica-tijelo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
  flex: 1;
}

/* Tagovi (čipovi), npr. Prozori / Vrata / Fiksne stijene */
.kartica-tagovi {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kartica-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font:
    500 12px/1 "Barlow",
    sans-serif;
  color: #475569;
}

.tag-ikona {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #f39c12;
}

.kartica-naslov {
  margin: 0;
  font:
    700 26px/1.05 "Barlow Condensed",
    sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f172a;
}

/* Brzi pregled - 2x2 pločice */
.kartica-statovi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kartica-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-width: 0;
}

.kartica-stat > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-ikona {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #f39c12;
}

.stat-oznaka {
  font:
    600 10px/1.2 "Barlow",
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.stat-vrijednost {
  font:
    700 14px/1.2 "Barlow",
    sans-serif;
  color: #0f172a;
  overflow-wrap: anywhere;
}

/* Opis - skraćen na 3 reda uz "Prikaži više" */
.opis-tekst {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.kartica-opis.otvoren .opis-tekst {
  display: block;
  -webkit-line-clamp: unset;
}

.opis-tekst p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.opis-tekst p + p {
  margin-top: 8px;
}

.opis-toggle {
  background: none;
  border: none;
  padding: 4px 0 0;
  font:
    600 13px/1 "Barlow",
    sans-serif;
  color: #f39c12;
  cursor: pointer;
}

.opis-toggle:hover {
  color: #d98700;
}

/* Tehnički podaci - akordeon po grupama */
.kartica-specs {
  border-bottom: 1px solid #e2e8f0;
}

.spec-grupa {
  border-top: 1px solid #e2e8f0;
}

.spec-grupa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  transition: background 0.2s ease;
}

.spec-grupa summary::-webkit-details-marker {
  display: none;
}
.spec-grupa summary::marker {
  content: "";
}
.spec-grupa summary:hover {
  background: #f8fafc;
}

.spec-grupa summary > span {
  flex: 1;
  font:
    600 12px/1 "Barlow",
    sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0f172a;
}

.spec-ikona {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #f39c12;
}

.spec-strelica {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.22s ease;
}

.spec-grupa[open] > summary .spec-strelica {
  transform: rotate(180deg);
}

.spec-sadrzaj {
  padding: 2px 2px 12px;
}

/* Lista bez naslova (npr. PVC profili) - uvijek vidljiva */
.spec-lista {
  border-top: 1px solid #e2e8f0;
  padding: 8px 2px 12px;
}

.spec-red {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.spec-red:last-child {
  border-bottom: none;
}

.spec-kljuc {
  font-size: 13px;
  color: #64748b;
}

.spec-vrijednost {
  font:
    600 13px/1.4 "Barlow",
    sans-serif;
  color: #1e293b;
  text-align: right;
}

.spec-stavka {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.spec-kvacica {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #f39c12;
  stroke-width: 2.5;
}

.prazna-poruka {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 20px;
}

/* ==========================================================
   12. INTERAKTIVNI KATALOG PANELA
   ========================================================== */
.katalog-panela-sekcija {
  margin: 50px auto 70px;
  padding: 40px 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.paneli-katalog-header {
  max-width: 750px;
  margin: 0 auto 30px;
}

.paneli-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(243, 156, 18, 0.15);
  color: #f39c12;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.paneli-katalog-header h2 {
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.paneli-katalog-header p {
  color: #64748b;
  font-size: 0.95rem;
}

.katalog-viewport {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flipbook-container {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background-color: #ffffff;
}

.page {
  background-color: #ffffff;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.page a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.katalog-kontrole {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.katalog-btn {
  background-color: #f39c12;
  color: #0f172a;
  padding: 10px 22px;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.2);
}

.katalog-btn:hover {
  background-color: #d98700;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(243, 156, 18, 0.35);
}

#paneli-page-indicator {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  background: #f1f5f9;
  padding: 8px 18px;
  border-radius: 20px;
}

/* ==========================================================
   13. LIGHTBOX SCRIPT STILOVI
   ========================================================== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 5000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-slika {
  max-width: 80%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 20px;
  border-radius: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 5001;
}

.lightbox-close:hover {
  color: #f39c12;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px 20px;
  user-select: none;
  transition: color 0.3s;
}

.lightbox-prev {
  left: 15px;
}
.lightbox-next {
  right: 15px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #f39c12;
}

/* ==========================================================
   14. RESPONSIVE / ADAPTIRANJE PRIKAZA
   ========================================================== */
/* ==========================================================
   14. RESPONSIVE / ADAPTIRANJE PRIKAZA
   ========================================================== */
@media (max-width: 900px) {
  .proizvodi {
    grid-template-columns: repeat(2, 1fr);
  }
  .galerija-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .paneli-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .o-firmi-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .slides img {
    height: 420px;
  }

  .text-overlay .main-title {
    font-size: 1.8rem;
    padding: 8px 16px;
  }

  .text-overlay .subtitle {
    font-size: 1rem;
  }

  .highlight-section .highlight-item {
    font-size: 1rem;
  }
  .highlight-section .highlight-item::before {
    font-size: 1.2rem;
  }

  /* 📱 1. BLOKOVI ISKUSTVA / BROJEVI - Jedan ispod drugog */
  .iskustvo-container,
  .iskustvo-grid {
    flex-direction: column !important;
    align-items: center;
  }

  .iskustvo-item {
    width: 100%;
    min-width: unset;
  }

  /* 📱 2. MARKETING I KONTAKT KARTICE - Jedan ispod drugog */
  .contact-cards-container {
    grid-template-columns: 1fr !important; /* Prisiljava 1 kolonu za kartice */
    gap: 20px;
  }

  .contact-info {
    flex-direction: column !important;
    align-items: center;
    gap: 15px;
  }

  /* Ostali stilovi za mobitel */
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .product-detail .prednosti {
    grid-template-columns: 1fr;
  }
  .product-hero {
    padding: 60px 20px 45px;
  }
  .product-hero h1 {
    font-size: 1.8rem;
  }

  .katalog-panela-sekcija {
    padding: 25px 10px;
    margin: 30px auto 40px;
  }

  .paneli-katalog-header h2 {
    font-size: 1.5rem;
  }

  .katalog-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .lightbox-slika {
    max-width: 92%;
  }
  .lightbox-caption {
    font-size: 1rem;
    bottom: 20px;
  }
  .lightbox-prev,
  .lightbox-next {
    font-size: 22px;
    padding: 10px 12px;
  }
}

@media (max-width: 600px) {
  .proizvodi {
    grid-template-columns: 1fr;
  }
  .galerija-grid {
    grid-template-columns: 1fr;
  }
  .paneli-grid {
    grid-template-columns: 1fr;
  }
}
