
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
* { box-sizing: border-box; }
:root { --brand:#FFD300; --bg:#0b0e11; --panel:#1a1a1a; }
body {
  margin: 0;
  background: var(--bg);
  color: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}
a { color: var(--brand); }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; background: #000; box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  position: sticky; top: 0; z-index: 10;
}
header img { height: 250px; }
nav { display:flex; align-items:center; gap:1rem; }
nav a {
  color: var(--brand); text-decoration: none; font-weight: 600; font-size: 1.05rem;
}
nav a:hover { color: #fff; }
.lang { background:#111; color:#fff; border:1px solid #333; border-radius:8px; padding:.4rem .6rem; }
.video-banner video {
  width: 100%; height: 400px; object-fit: cover; display: block; filter: brightness(70%);
}
.hero {
  position: relative; text-align: center; margin-top: -250px; padding: 6rem 2rem 3rem; color: #fff;
  background: url('https://www.transparenttextures.com/patterns/concrete-wall.png'); background-size: cover; background-blend-mode: multiply;
}
.hero h2 { color: var(--brand); font-size: 2.6rem; margin-bottom: 1rem; text-shadow: 0 3px 10px rgba(0,0,0,0.8); }
.hero .tagline {
  color:var(--brand); font-weight:800; font-size:2rem; text-transform:uppercase; letter-spacing:.5px;
  -webkit-text-stroke:1.5px #000;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000, 0 2px 0 #000, 2px 0 0 #000, 0 -2px 0 #000, -2px 0 0 #000;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.2rem; }
.cards, .services .grid, .gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; margin: 2rem 0;
}
.card, .service, .panel {
  background: url('https://www.transparenttextures.com/patterns/concrete-wall.png'); background-size: cover;
  border: 2px solid var(--brand); border-radius: 12px; padding: 1.5rem; color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4); transition: transform .3s, box-shadow .3s;
}
.card:hover, .service:hover, .panel:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,0.6); }
.card h3, .service h3 { color: var(--brand); margin-top: 0; }
.service a { text-decoration: none; color: inherit; display: block; }
.gallery div {
  background: url('https://www.transparenttextures.com/patterns/brick-wall.png'); background-size: cover; border-radius: 12px; overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.gallery img:hover { transform: scale(1.06); }
.cta { margin: 2rem 0; text-align: center; }
.btn { background: var(--brand); color: #000; border: none; border-radius: 10px; padding: .9rem 1.4rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { filter: brightness(0.95); }
footer { background:#000; color:#aaa; padding: 3rem 2rem; text-align: center; margin-top: 2rem; }
footer img { height: 100px; margin-bottom: 1rem; }
.sub-hero { padding: 3rem 1rem; text-align: center; background: #111;
  background-image: url('https://images.unsplash.com/photo-1494526585095-c41746248156?q=80&w=1600&auto=format&fit=crop'); background-size: cover; background-position: center; position: relative; }
.sub-hero::after { content:''; position:absolute; inset:0; background: rgba(0,0,0,0.45); }
.sub-hero > * { position: relative; z-index: 1; }
.breadcrumbs { margin: 1rem 0; font-size: .95rem; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; align-items: start; margin: 2rem 0; }
.pill { display: inline-block; padding: .3rem .7rem; border:1px solid var(--brand); border-radius: 999px; color:var(--brand); font-size: .85rem; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { margin: .5rem 0; padding-left: 1.1rem; position: relative; }
.feature-list li::before { content: '🧱'; position: absolute; left: 0; }
/* FAQ (accordion) */
.faq .item { border:1px solid #333; border-radius:10px; margin:.8rem 0; overflow:hidden; background:#141414; }
.faq .q { margin:0; padding:1rem 1.2rem; font-weight:600; cursor:pointer; background:#0f0f0f; }
.faq .a { max-height:0; overflow:hidden; transition:max-height .4s ease; padding:0 1.2rem; }
.faq .item.open .a { max-height: 300px; padding:1rem 1.2rem; }
/* Contact form */
form.contact { max-width:700px; margin:2rem auto; }
form.contact input, form.contact textarea {
  width:100%; padding:.85rem 1rem; margin:.5rem 0; border-radius:10px; border:1px solid #444; background:#1d1d1d; color:#fff; font-size:1rem;
}
form.contact button { margin-top:.5rem; }
.toast { position: fixed; bottom: 20px; right: 20px; background:#1a1a1a; border:1px solid var(--brand); padding:.8rem 1rem; border-radius:10px; display:none; }
.phones a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--panel-strong);

  font-size: 1.2rem;   /* povećava veličinu (1rem ≈ 16px) */
  font-weight: 700;    /* podebljan tekst */
}.phones a[href^="mailto"]::before {
  content: "✉️";
  margin-right: 6px;
}


header .phones {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  white-space: nowrap;
  align-items: center;
}


#o-nas .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}


/* === Custom Fixes: Icons + Nav nowrap === */
header .phones a[href^="tel"]::before {
  content: "📞";
  margin-right: 6px;
}
header .phones a[href^="mailto"]::before {
  content: "✉️";
  margin-right: 6px;
}

header nav {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}
header nav a, header nav select {
  flex-shrink: 0;
}


/* Phone/Mail icons */
header .phones a[href^="tel"]::before { content: "📞"; margin-right: 6px; }
header .phones a[href^="mailto"]::before { content: "✉️"; margin-right: 6px; }


/* Keep nav on a single line */
header nav { display: flex; align-items: center; gap: 1rem; flex-wrap: nowrap; white-space: nowrap; }
header nav a, header nav select { flex-shrink: 0; }


/* Phones and mails in 2 rows */
header .phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
}
header .phones-row {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}
header .phones-row a { white-space: nowrap; }


/* === VISUAL UPGRADE: Header & Hero === */

/* Smaller logo for cleaner header */
header img { height: 140px; max-width: 100%; }

/* Translucent sticky header with blur */
header {
  background: rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Nav underline hover animation */
nav a { position: relative; }
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  bottom: -6px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
nav a:hover::after { transform: scaleX(1); }

/* Video overlay gradient for better text contrast */
.video-banner { position: relative; }
.video-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

/* Hero CTA button */
.hero-cta { margin-top: 1rem; }
.btn.cta-hero {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.btn.cta-hero:hover { transform: translateY(-1px); transition: transform .2s ease; }

/* Tighter header spacing on smaller screens */
@media (max-width: 1024px){
  header img { height: 100px; }
  .video-banner video { height: 360px; }
}
@media (max-width: 768px){
  header img { height: 80px; }
  .video-banner video { height: 300px; }
}


/* === VISUAL UPGRADE 2: Services + Gallery lightbox + 3D hover === */

/* Service icons */
.service h3 .icon, .card h3 .icon {
  display: inline-block;
  margin-right: .45rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* 3D hover effect for cards/services */
:root { --lift: translateY(-8px) scale(1.02); }
.card, .service {
  transform: translateZ(0);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
  perspective: 1000px;
}
.card:hover, .service:hover {
  transform: var(--lift) rotateX(1deg);
  box-shadow: 0 16px 30px rgba(0,0,0,0.5);
  border-color: rgba(255,211,0,0.9);
}

/* Gallery Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 2rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.lightbox .lb-image {
  max-width: min(90vw, 1200px);
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  grid-column: 2;
  grid-row: 2;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: .4rem .75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.lightbox .lb-close { grid-column: 3; grid-row: 1; justify-self: end; }
.lightbox .lb-prev  { grid-column: 1; grid-row: 2; justify-self: start; }
.lightbox .lb-next  { grid-column: 3; grid-row: 2; justify-self: end; }
@media (max-width: 768px){
  .lightbox { padding: 1rem; }
  .lightbox .lb-image { max-height: 70vh; }
}


/* === PARTNERJI — SINGLE SOURCE OF TRUTH (locked) === */
section#partnerji.partners-fixed .partner-logos {
  display: grid;
  grid-template-columns: repeat(5, 180px);
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
section#partnerji.partners-fixed .partner-card {
  width: 180px;
  height: 130px;
  background: var(--panel);
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  overflow: hidden;
  box-sizing: border-box;
}
section#partnerji.partners-fixed .partner-card img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 0 6px 0;
}
section#partnerji.partners-fixed .partner-card p {
  margin: 0;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 1100px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: repeat(4, 180px); }
}
@media (max-width: 880px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: repeat(3, 180px); }
}
@media (max-width: 680px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: repeat(2, 180px); }
}
@media (max-width: 380px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: 1fr; }
  section#partnerji.partners-fixed .partner-card { width: 100%; }
}
/* === /PARTNERJI — END === */


/* === PARTNERJI — LARGER CARDS === */
section#partnerji.partners-fixed .partner-logos {
  display: grid;
  grid-template-columns: repeat(5, 220px);
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
section#partnerji.partners-fixed .partner-card {
  width: 220px;
  height: 160px;
  background: var(--panel);
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  overflow: hidden;
  box-sizing: border-box;
}
section#partnerji.partners-fixed .partner-card img {
  width: 140px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 0 8px 0;
}
section#partnerji.partners-fixed .partner-card p {
  margin: 0;
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 1200px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: repeat(4, 220px); }
}
@media (max-width: 950px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: repeat(3, 220px); }
}
@media (max-width: 700px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: repeat(2, 220px); }
}
@media (max-width: 480px){
  section#partnerji.partners-fixed .partner-logos { grid-template-columns: 1fr; }
  section#partnerji.partners-fixed .partner-card { width: 100%; }
}
/* === /PARTNERJI — END === */


/* === PARTNERJI — HOVER EFFECT === */
section#partnerji.partners-fixed .partner-card {
  transition: transform .3s, box-shadow .3s;
}
section#partnerji.partners-fixed .partner-card:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 10px 28px rgba(0,0,0,0.7);
}
/* === /PARTNERJI — HOVER EFFECT === */



/* === HERO SLIDESHOW (replaces video) === */
.video-banner { position: relative; }
.video-banner .hero-slideshow {
  position: relative;
  width: 100%;
  height: 400px; /* same height as previous video */
  overflow: hidden;
  filter: brightness(70%); /* keep same darkening as video had */
}
.video-banner .hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 25s infinite;
  transform: scale(1.08); /* Ken Burns zoom-out */
  will-change: opacity, transform;
}
.video-banner .hero-slideshow .slide:nth-child(1) { animation-delay: 0s;  }
.video-banner .hero-slideshow .slide:nth-child(2) { animation-delay: 5s;  }
.video-banner .hero-slideshow .slide:nth-child(3) { animation-delay: 10s; }
.video-banner .hero-slideshow .slide:nth-child(4) { animation-delay: 15s; }
.video-banner .hero-slideshow .slide:nth-child(5) { animation-delay: 20s; }

@keyframes heroSlide {
  0%   { opacity: 0; transform: scale(1.08); }
  4%   { opacity: 1; transform: scale(1.06); }   /* fade in */
  20%  { opacity: 1; transform: scale(1.02); }   /* hold + slight zoom */
  24%  { opacity: 0; transform: scale(1.00); }   /* fade out */
  100% { opacity: 0; transform: scale(1.00); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .video-banner .hero-slideshow .slide {
    animation: none;
    opacity: 1;
  }
}

/* Responsive heights matching previous video rules */
@media (max-width: 1024px){
  .video-banner .hero-slideshow { height: 360px; }
}
@media (max-width: 768px){
  .video-banner .hero-slideshow { height: 300px; }
}
/* === Hero links (clickable) === */
.hero .hero-links { color: var(--brand); font-size: 2.4rem; margin-bottom: 1rem; text-shadow: 0 3px 10px rgba(0,0,0,0.8); text-align:center; }
.hero .hero-links a { color: var(--brand); text-decoration: none; font-weight: 700; }
.hero .hero-links a:hover { color: #fff; text-decoration: none; }
/* === Overlay only over slideshow === */
.video-banner { position: relative; }
.video-banner .tw-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 5;
  pointer-events: none;
}
.video-banner #tw-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  max-width: 90%;
  line-height: 1.4;
}
.video-banner .tw-overlay.fade-out { opacity: 0; transition: opacity 0.8s ease; }


/* === STROKOVNOST IMAGE HOVER EFFECT === */
#strokovnost img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;

  transform-origin: center center;
}
#strokovnost img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}


/* === STROKOVNOST IMAGE CLICK ENLARGE === */
#strokovnost img.enlarged {
  transform: scale(2.5) !important;
  z-index: 999;
  position: relative;
}


/* === STROKOVNOST CLICK ENLARGE === */
#strokovnost img.enlarged {
  transform: scale(2.5) !important;
  cursor: zoom-out;
  position: relative;
  z-index: 20;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  border-radius: 12px;
}
#strokovnost img.enlarged:hover {
  transform: scale(2.5) !important; }





/* === GALLERY LARGER THUMBNAILS === */
#reference .gallery {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
#reference .gallery .thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
  cursor: pointer;
}
#reference .gallery .thumb img:hover {
  transform: scale(1.05);
}
