/* ============================================
   ZORAN I FILIP TRANSPORT — Stylesheet
   ============================================ */

:root {
  --navy: #1a2950;
  --navy-dark: #0f1a36;
  --navy-light: #2a3a6b;
  --yellow: #FFC107;
  --yellow-dark: #e6ac00;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1a2950;
  --text-muted: #5a6a8a;
  --border: #e1e6ef;
  --shadow-sm: 0 2px 8px rgba(26, 41, 80, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 41, 80, 0.10);
  --shadow-lg: 0 20px 60px rgba(26, 41, 80, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --container-max: 1180px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Sticky header offset — kad scrolluje na #anchor, ne pokriva sekciju */
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition);
}
.logo:hover { transform: scale(1.03); }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-img-footer {
  height: 72px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 28px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.phone-num {
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.08), transparent 50%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--yellow); }
.hero .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 540px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-meta {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin: 0;
}
/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  min-height: 320px; /* fallback za browser-e bez aspect-ratio podrške */
  background: var(--navy-dark);
  user-select: none;
  -webkit-user-select: none;
}
/* Stariji browser fallback — ako aspect-ratio nije podržan, koristi padding-hack */
@supports not (aspect-ratio: 16 / 10) {
  .hero-slider { height: 0; padding-bottom: 62.5%; min-height: 320px; }
}
.slider-track {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 5s ease;
  will-change: opacity, transform;
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Prev/Next dugmad */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
  opacity: 0;
}
.hero-slider:hover .slider-nav,
.hero-slider:focus-within .slider-nav { opacity: 1; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}
.slider-nav:active { transform: translateY(-50%) scale(0.95); }

/* Dot indikatori */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
  padding: 8px 14px;
  background: rgba(26, 41, 80, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), width var(--transition);
}
.dot:hover { background: rgba(255, 255, 255, 0.85); }
.dot.is-active {
  background: var(--yellow);
  width: 28px;
  border-radius: 5px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head h2 { color: var(--navy); }
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ============================================
   GRIDS
   ============================================ */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ============================================
   CARDS (USLUGE)
   ============================================ */
.card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--yellow);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--bg-alt);
  border-radius: 14px;
}
.card h3 { color: var(--navy); }
.card p { color: var(--text-muted); margin: 0; }

/* Servisne kartice sa banner slikama */
.card-service {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-service .card-image {
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 100px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--navy-dark);
  transition: transform 0.5s ease;
}
@supports not (aspect-ratio: 3 / 1) {
  .card-service .card-image { height: 0; padding-bottom: 33.33%; min-height: 100px; }
}
.card-service:hover .card-image {
  transform: scale(1.06);
}
.card-service .card-body {
  padding: 1.25rem 1.5rem 1.75rem;
  flex: 1;
}
.card-service .card-body p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ============================================
   IZNAJMLJIVANJE MAŠINA
   ============================================ */
.masine-grid {
  display: grid;
  gap: clamp(1rem, 1.5vw, 1.5rem);
  /* Desktop velikih ekrana: 4 u red */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Tablet: 2x2 */
@media (max-width: 1100px) {
  .masine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Mobilni: 1 u red */
@media (max-width: 560px) {
  .masine-grid { grid-template-columns: 1fr; }
}
.machine-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.machine-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--navy-dark);
  transition: transform 0.5s ease;
}
@supports not (aspect-ratio: 4 / 3) {
  .machine-image { height: 0; padding-bottom: 75%; min-height: 200px; }
}
.machine-card:hover .machine-image { transform: scale(1.05); }
.machine-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}
.machine-body h3 { color: var(--navy); margin: 0; }
.machine-body p { color: var(--text-muted); margin: 0; flex: 1; line-height: 1.55; font-size: 0.96rem; }
.btn-machine {
  align-self: flex-start;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  margin-top: auto;
}
.machine-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.machine-contact-actions .btn-machine {
  margin-top: 0;
  flex: 1 1 110px;
  min-width: 0;
  padding-inline: 0.8rem;
}
.brand-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: currentColor;
}
.btn-machine-wa {
  background: #25D366;
}
.btn-machine-wa:hover {
  background: #1ebe57;
}
.btn-machine-viber {
  background: #7360F2;
}
.btn-machine-viber:hover {
  background: #5b46df;
}

/* ============================================
   GALERIJA + LIGHTBOX
   ============================================ */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  /* Manji minmax (180px) → bolje fitovanje na malim mobilnim ekranima */
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: clamp(0.4rem, 1vw, 1rem);
}
.gallery-item {
  /* CRITICAL: Button defaults inline-block — eksplicitno block + 100% width za grid item */
  display: block;
  width: 100%;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
  outline: none;
  /* Padding-bottom hack za 4:3 — radi na svim browser-ima (Safari iOS <16 takođe) */
  height: 0;
  padding-bottom: 75%;
  -webkit-tap-highlight-color: transparent;
}
/* Modern browsers: aspect-ratio nadjačava padding-hack (čistije) */
@supports (aspect-ratio: 4 / 3) {
  .gallery-item {
    aspect-ratio: 4 / 3;
    height: auto;
    padding-bottom: 0;
  }
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:focus-visible { box-shadow: 0 0 0 3px var(--yellow); }
.gallery-item::after {
  content: '🔍';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(26, 41, 80, 0.85);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; transform: translateY(0); }
.gallery-item.is-hidden { display: none; }

/* Touch screens (nemaju hover) → overlay uvek vidljiv */
@media (hover: none) {
  .gallery-item::after { opacity: 0.85; transform: translateY(0); }
}

.gallery-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 26, 54, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
  backdrop-filter: blur(8px);
  animation: lb-fade-in 0.25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-figure {
  margin: 0;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: lb-zoom 0.3s ease;
}
@keyframes lb-zoom {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.lightbox-caption {
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  opacity: 0.85;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: none;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 50%;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
  z-index: 101;
}
.lightbox-close { top: clamp(1rem, 2vw, 2rem); right: clamp(1rem, 2vw, 2rem); }
.lightbox-prev { left: clamp(1rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(1rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 193, 7, 0.85); color: var(--navy); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

body.lb-open { overflow: hidden; }

/* ============================================
   FAQ — accordion
   ============================================ */
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--yellow);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  padding: 1.15rem 3rem 1.15rem 1.5rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.4;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--yellow);
  color: var(--navy);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover { color: var(--navy-light); }
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}
.faq-item p strong { color: var(--navy); }

/* ============================================
   PODRUČJE RADA — lokalni SEO sekcija
   ============================================ */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.area-group {
  background: var(--white);
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.area-group h3 {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
}
.area-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}
.area-group li {
  color: var(--text);
  padding: 0.3rem 0;
  font-size: 0.96rem;
  border-bottom: 1px dashed var(--border);
}
.area-group li:last-child { border-bottom: none; }
.areas-note {
  text-align: center;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Napomena ispod usluga */
.services-note {
  margin: 2.5rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg-alt);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.services-note strong { color: var(--navy); }
.services-note a {
  color: var(--navy);
  font-weight: 700;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
  transition: color var(--transition);
}
.services-note a:hover { color: var(--navy-light); }

/* ============================================
   FEATURES (ZAŠTO NAS)
   ============================================ */
.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  width: 80px;
  height: 80px;
  background: var(--yellow);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature h3 { color: var(--navy); }
.feature p { color: var(--text-muted); margin: 0; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}
.contact-info {
  display: grid;
  gap: 1.25rem;
}
.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.contact-card p { margin: 0.25rem 0; color: var(--text-muted); }
.contact-phone, .contact-wa, .contact-viber {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.contact-phone {
  background: var(--navy);
  color: var(--white);
}
.contact-phone:hover {
  background: var(--navy-light);
  transform: translateX(4px);
}
.contact-wa {
  background: #25D366;
  color: var(--white);
}
.contact-wa:hover {
  background: #1ebe57;
  transform: translateX(4px);
}
.contact-viber {
  background: #7360F2;
  color: var(--white);
}
.contact-viber:hover {
  background: #5b46df;
  transform: translateX(4px);
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

/* ============================================
   SIDE TIMELINE — fluid scaling sa clamp()
   ============================================
   Strategija (2026 best practice):
   - clamp() za sve dimenzije → fluid skaliranje 768px → 1920px+
   - Label sa position: absolute → ne pomera layout, ne preklapa sadržaj
   - Hide samo na pravom mobilnom (≤768px) — ne na svim manjim desktopovima
   - prefers-reduced-motion respect
   ============================================ */
.side-timeline {
  position: fixed;
  top: 50%;
  /* Fluid: 6px @ 768px → 24px @ 1600px+ */
  right: clamp(0.4rem, 1.4vw, 1.5rem);
  transform: translateY(-50%);
  z-index: 40;
  pointer-events: none;
}
.side-timeline ul {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Fluid gap između tačaka */
  gap: clamp(0.2rem, 0.4vw, 0.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Vertikalna linija — fluid debljina i pozicija */
.side-timeline ul::before {
  content: '';
  position: absolute;
  top: clamp(4px, 0.5vw, 8px);
  bottom: clamp(4px, 0.5vw, 8px);
  /* Centrira liniju u dot-u (pola širine dot-a, izračunato fluidno) */
  left: calc(clamp(8px, 0.7vw, 12px) / 2 - 1px);
  width: 2px;
  background: rgba(26, 41, 80, 0.15);
  border-radius: 2px;
  z-index: 0;
}
.side-timeline li {
  position: relative;
  z-index: 1;
}
.side-timeline a {
  pointer-events: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  /* Fluid padding za touch target — minimum 32px na mobilnom desktop-u */
  padding: clamp(0.3rem, 0.6vw, 0.5rem) clamp(0.25rem, 0.4vw, 0.35rem) clamp(0.3rem, 0.6vw, 0.5rem) 0;
  text-decoration: none;
  outline: none;
}
.tl-dot {
  /* Fluid: 8px @ 768px → 12px @ 1600px+ */
  width: clamp(8px, 0.7vw, 12px);
  height: clamp(8px, 0.7vw, 12px);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(26, 41, 80, 0.35);
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
/* Label IZLAZI LEVO od dot-a — apsolutno pozicioniran, ne menja layout */
.tl-label {
  position: absolute;
  right: calc(100% + clamp(0.3rem, 0.6vw, 0.5rem));
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: var(--navy);
  color: var(--white);
  padding: clamp(3px, 0.4vw, 5px) clamp(8px, 1vw, 12px);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  /* Fluid font size */
  font-size: clamp(0.72rem, 0.78vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* Mali "trougao" desno od label-a (visual hint da pokazuje na dot) */
.tl-label::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid var(--navy);
}
/* Hover/focus → label vidljiv */
.side-timeline a:hover .tl-label,
.side-timeline a:focus-visible .tl-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.side-timeline a:hover .tl-dot {
  border-color: var(--navy);
  transform: scale(1.2);
}
.side-timeline a:focus-visible .tl-dot {
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.4);
}
/* Aktivna sekcija */
.side-timeline a.is-active .tl-dot {
  background: var(--yellow);
  border-color: var(--navy);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.25);
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tl-dot, .tl-label, .side-timeline a { transition: none; }
}

/* ============================================
   FLOAT CONTACT
   ============================================ */
.wa-float,
.viber-float {
  position: fixed;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(14px, 1.6vw, 18px) 0 clamp(10px, 1.2vw, 14px);
  height: clamp(48px, 5vw, 56px);
  background: #25D366;
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(0.78rem, 0.85vw, 0.9rem);
  letter-spacing: 0.05em;
  z-index: 50;
  transition: transform var(--transition), background var(--transition);
  white-space: nowrap;
}
.wa-float {
  bottom: clamp(14px, 2vw, 24px);
  background: #25D366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.5s infinite;
}
.viber-float {
  bottom: calc(clamp(14px, 2vw, 24px) + clamp(48px, 5vw, 56px) + 8px);
  background: #7360F2;
  box-shadow: 0 6px 20px rgba(115, 96, 242, 0.38);
}
.wa-left  { left: clamp(12px, 1.6vw, 20px); }
.wa-right { right: clamp(12px, 1.6vw, 20px); }
.viber-left  { left: clamp(12px, 1.6vw, 20px); }
.viber-right { right: clamp(12px, 1.6vw, 20px); }
.wa-float:hover {
  transform: scale(1.05);
  animation: none;
  background: #1ebe57;
}
.viber-float:hover {
  transform: scale(1.05);
  background: #5b46df;
}
.wa-icon,
.viber-icon {
  width: clamp(22px, 2.4vw, 26px);
  height: clamp(22px, 2.4vw, 26px);
  flex-shrink: 0;
  fill: currentColor;
}
.viber-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wa-name {
  font-weight: 800;
  letter-spacing: 0.06em;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .viber-float { animation: none; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-footer ul li {
  padding: 0.3rem 0;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--yellow); }
.logo-footer { margin-bottom: 1rem; }
.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { margin: 0.4rem 0; }

/* Development credit — Toške */
.dev-credit { font-size: 0.88rem; }
.dev-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s ease;
  padding: 4px 8px;
  border-radius: 6px;
}
.dev-link:hover { color: #a5b4fc; }
.dev-label { font-weight: 600; }
.dev-tag {
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-weight: 700;
  color: #818cf8;
  transition: color 0.25s ease;
  letter-spacing: 0.02em;
}
.dev-link:hover .dev-tag { color: #c7d2fe; }

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-slider {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero { padding: 3rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Logo manji na mobilnom */
  .logo-img { height: 44px; }
  .logo-img-footer { height: 64px; }

  /* Slider — mobilno: navigacija manja, dugmad uvek vidljiva */
  .hero-slider { aspect-ratio: 4 / 3; min-height: 260px; }
  @supports not (aspect-ratio: 4 / 3) {
    .hero-slider { height: 0; padding-bottom: 75%; min-height: 260px; }
  }
  .slider-nav {
    width: 38px;
    height: 38px;
    opacity: 1; /* na mobilnom uvek vidljivo, nema hover-a */
    background: rgba(255, 255, 255, 0.85);
  }
  .slider-prev { left: 8px; }
  .slider-next { right: 8px; }
  .slider-dots { bottom: 12px; gap: 8px; padding: 6px 12px; }
  .dot { width: 8px; height: 8px; }
  .dot.is-active { width: 22px; }
  /* Mobilno: kompaktniji WA dugmadi, simetrično levo-desno */
  .wa-float,
  .viber-float {
    height: 44px;
    padding: 0 12px 0 10px;
    font-size: 0.78rem;
    gap: 6px;
  }
  .viber-float {
    bottom: calc(14px + 44px + 8px);
  }
  .wa-icon, .viber-icon { width: 22px; height: 22px; }
}

@media (max-width: 700px) {
  /* Servisne kartice mobilno: malo viši banner za bolju čitljivost teksta */
  .card-service .card-image { aspect-ratio: 5 / 2; }
  @supports not (aspect-ratio: 5 / 2) {
    .card-service .card-image { padding-bottom: 40%; }
  }
  .services-note { font-size: 0.98rem; padding: 1rem 1.25rem; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 1.85rem; }
  .hero .lead { font-size: 1rem; }
  .card, .feature { padding: 1.5rem 1.25rem; }
  .card-service .card-body { padding: 1rem 1.25rem 1.5rem; }
  .logo-img { height: 38px; }
}

/* Side timeline: hide samo na pravom mobilnom (≤768px) — true tablet/phone */
@media (max-width: 768px) {
  .side-timeline { display: none; }

  /* Galerija: forsira 2 kolone na tablet/mobile — auto-fill ne kao guess */
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .filter-btn { font-size: 0.85rem; padding: 0.5rem 0.9rem; }

  /* Mašine: jedan ispod drugog sa malo nižim banner-om */
  .machine-image { aspect-ratio: 16 / 10; }
  @supports not (aspect-ratio: 16 / 10) {
    .machine-image { padding-bottom: 62.5%; }
  }
}

/* Stvarno mali ekrani — 1 kolona za galeriju */
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .gallery-item { padding-bottom: 66.66%; } /* 3:2 ratio za bolje proporcije pri full width */
  @supports (aspect-ratio: 3 / 2) {
    .gallery-item { aspect-ratio: 3 / 2; padding-bottom: 0; }
  }
  /* Filter dugmad scroll horizontalno ako ne stane */
  .gallery-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery-filter::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
