/* ============================================================
   MM METAL — Industrial / Brutalist CSS
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #0c0c0e;
  --bg-2:          #101013;
  --bg-3:          #17171c;
  --bg-4:          #1d1d24;
  --accent:        #8aa4b8;
  --accent-light:  #b0c8dc;
  --accent-dim:    #3d5566;
  --ember:         #1d4f8c;
  --neon:          #4db8ff;
  --line-glow:     0 0 6px rgba(77,184,255,0.45), 0 0 14px rgba(77,184,255,0.18);
  --line-glow-soft: 0 0 4px rgba(77,184,255,0.3);
  --text:          #dde2e8;
  --text-muted:    #7a8490;
  --text-faint:    #3c4148;
  --border:        #252530;
  --border-bright: #3a3a4a;
  --font-display:  'Bebas Neue', 'Impact', sans-serif;
  --font-body:     'Inter', 'Segoe UI', sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;
  --max-w:         1280px;
  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    /* Diagonal brushed-steel streaks — visible but not loud */
    repeating-linear-gradient(
      158deg,
      transparent 0px,
      transparent 2px,
      rgba(255,255,255,0.03) 2px,
      rgba(255,255,255,0.03) 3px,
      transparent 3px,
      transparent 8px,
      rgba(255,255,255,0.015) 8px,
      rgba(255,255,255,0.015) 9px
    ),
    /* Top-light: steel catching overhead lamp */
    radial-gradient(
      ellipse 140% 50% at 50% -10%,
      rgba(160,190,215,0.09) 0%,
      transparent 65%
    ),
    /* Bottom shadow: depth */
    radial-gradient(
      ellipse 120% 40% at 50% 115%,
      rgba(0,0,0,0.55) 0%,
      transparent 70%
    );
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
em  { font-style: italic; }

/* ============================================================
   GRAIN OVERLAY
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0.09;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0,0);     } 10%  { transform: translate(-3%,-5%);  }
  20%  { transform: translate(5%,3%);   } 30%  { transform: translate(-2%,7%);   }
  40%  { transform: translate(4%,-2%);  } 50%  { transform: translate(-6%,4%);   }
  60%  { transform: translate(3%,-6%);  } 70%  { transform: translate(-4%,1%);   }
  80%  { transform: translate(6%,5%);   } 90%  { transform: translate(-3%,-4%);  }
  100% { transform: translate(0,0);     }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 { line-height: 1.0; letter-spacing: -0.02em; }

h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 9rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.92;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.9;
}

h3 {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent-light);
}

.section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin-top: 16px;
}

.section-rule {
  width: 48px;
  height: 1px;
  background: var(--accent-dim);
  margin-bottom: 28px;
  box-shadow: var(--line-glow-soft);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section   { padding: 120px 0; }

/* ============================================================
   BUTTONS
   overflow:hidden removed intentionally — clips magnetic transform.
   Fill effect uses clip-path on ::before instead.
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: color var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.36s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}
.btn:hover::before { clip-path: inset(0 0% 0 0); }

.btn .btn-text,
.btn > svg { position: relative; z-index: 1; }

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary::before { background: var(--accent-light); }
.btn-primary:hover   { color: var(--bg); box-shadow: 0 0 24px rgba(138,164,184,0.22); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  outline: 1px solid var(--border-bright);
  outline-offset: -1px;
}
.btn-ghost::before { background: var(--bg-4); }
.btn-ghost:hover   { outline-color: var(--accent-dim); color: var(--accent-light); }

.btn-arrow { transition: transform var(--transition); flex-shrink: 0; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 24px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-bottom 0.3s ease;
}

#navbar.scrolled {
  background: rgba(12, 12, 14, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--text);
  user-select: none;
}
.nav-logo-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nav-logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nav-logo-text { display: flex; align-items: center; gap: 10px; }
.logo-mm {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--text);
}
.logo-divider {
  width: 1px;
  height: 16px;
  background: var(--accent-dim);
  box-shadow: var(--line-glow-soft);
  flex-shrink: 0;
}
.logo-metal {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0;
  color: var(--accent-light);
}

.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  box-shadow: var(--line-glow);
  transition: width 0.3s ease;
}
.nav-links a:hover          { color: var(--text); }
.nav-links a:hover::after   { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: var(--transition);
}
.hamburger span:first-child { width: 28px; }
.hamburger span:last-child  { width: 18px; }
.hamburger.open span:first-child { width: 22px; transform: translateY(3.5px) rotate(45deg);   }
.hamburger.open span:last-child  { width: 22px; transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 499;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent-light); }
.mobile-menu .btn {
  font-family: var(--font-body);
  margin-top: 24px;
  width: auto;
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 14px 28px;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 180px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../slike/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.22) saturate(0.6);
  z-index: 1;
  will-change: transform;
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 110%, rgba(29,79,140,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 80% at 80% -10%, rgba(40,70,100,0.3)   0%, transparent 60%),
    linear-gradient(180deg, #0a0c10 0%, #0c0c0e 60%, #0e0c0a 100%);
  z-index: 0;
}

.hero-vert-text {
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  z-index: 2;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.hero-year {
  position: absolute;
  right: -20px; top: 12%;
  font-family: var(--font-display);
  font-size: clamp(10rem, 20vw, 22rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(138, 164, 184, 0.06);
  letter-spacing: 0.1em;
  line-height: 1;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 3; max-width: 900px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-tag-line {
  display: block;
  width: 32px; height: 1px;
  background: var(--accent-dim);
  box-shadow: var(--line-glow-soft);
  flex-shrink: 0;
}

.hero-title { margin-bottom: 32px; display: flex; flex-direction: column; }
.h1-line { display: block; }
.h1-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--accent-light);
  line-height: 1.1;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  pointer-events: none;
}
.hero-scroll-track {
  width: 1px; height: 56px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.hero-scroll-thumb {
  position: absolute;
  top: -50%; left: 0;
  width: 1px; height: 50%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scrollPulse 2.2s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes scrollPulse { 0% { top: -50%; } 100% { top: 150%; } }

/* ============================================================
   STATS
   ============================================================ */
#stats {
  background: var(--bg-2);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Metallic sheen on alternating sections — each reads as a slightly
   different face of the same steel plate catching light differently */
#stats::before,
#usluge::before,
#kontakt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      158deg,
      transparent 0px,
      transparent 2px,
      rgba(255,255,255,0.025) 2px,
      rgba(255,255,255,0.025) 3px,
      transparent 3px,
      transparent 8px,
      rgba(255,255,255,0.012) 8px,
      rgba(255,255,255,0.012) 9px
    );
  pointer-events: none;
  z-index: 0;
}
#stats > *,
#usluge > *,
#kontakt > * { position: relative; z-index: 1; }

.stats-rule {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--ember) 50%, var(--border) 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(77,184,255,0.25);
}

.stats-editorial {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 80px;
  align-items: center;
}

.stat-feat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 80px;
  border-right: 1px solid var(--border);
}
.stat-feat-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 10rem);
  letter-spacing: 0.04em;
  line-height: 0.85;
  color: var(--accent-light);
  text-shadow: 0 0 16px rgba(77,184,255,0.35), 0 0 38px rgba(77,184,255,0.15);
  display: block;
}
.stat-feat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stats-stack {
  display: flex;
  flex-direction: column;
  padding: 0 40px;
  border-right: 1px solid var(--border);
}
.stat-row { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; }
.stat-row-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow: 0 0 12px rgba(77,184,255,0.22);
  min-width: 90px;
  display: block;
}
.stat-row-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stat-divider { height: 1px; background: var(--border); }

.stats-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 260px;
  padding-left: 40px;
  border-left: 2px solid var(--neon);
  box-shadow: none;
}
.stats-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   O NAMA
   ============================================================ */
#o-nama {
  position: relative;
  overflow: hidden;
}

/* Coarser, more horizontal grain — like the face of a steel plate */
#o-nama::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      172deg,
      transparent 0px,
      transparent 1px,
      rgba(255,255,255,0.028) 1px,
      rgba(255,255,255,0.028) 2px,
      transparent 2px,
      transparent 6px,
      rgba(255,255,255,0.014) 6px,
      rgba(255,255,255,0.014) 7px
    ),
    /* side-lit: light catches from the left */
    radial-gradient(
      ellipse 60% 100% at -5% 50%,
      rgba(138,164,184,0.07) 0%,
      transparent 65%
    );
  pointer-events: none;
  z-index: 0;
}
#o-nama > * { position: relative; z-index: 1; }

.o-nama-outer { position: relative; }

.o-nama-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0;
}

.o-nama-text-col { padding: 0; }
.o-nama-text-col .section-title { margin-bottom: 32px; }
.o-nama-text-col p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 480px;
}

/* Key facts panel */
.o-nama-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  align-self: stretch;
}

.o-nama-fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 36px 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}
.o-nama-fact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--neon);
  box-shadow: var(--line-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.o-nama-fact:hover { border-color: var(--accent-dim); }
.o-nama-fact:hover::before { transform: scaleX(1); }

.o-nama-fact-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--accent-light);
  text-shadow: 0 0 16px rgba(77,184,255,0.25);
}
.o-nama-fact-suffix {
  font-size: 0.6em;
  color: var(--accent);
}
.o-nama-fact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Pull quote spans full width at the bottom */
.o-nama-pull {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  padding: 28px 32px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--neon);
  box-shadow: -4px 0 20px rgba(77,184,255,0.12);
  margin: 0;
}

.owner-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.owner-avatar {
  width: 48px; height: 48px;
  background: var(--bg-4);
  border: 1px solid var(--border-bright);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.owner-name  { font-weight: 700; font-size: 0.9rem; }
.owner-title {
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* ============================================================
   USLUGE
   ============================================================ */
#usluge { background: var(--bg-2); }
.usluge-header { margin-bottom: 72px; }

.usluge-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}

/* Last item spans full width when total count is odd */
.usluga-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--border);
}

.usluga-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 56px 1fr;
  gap: 0 24px;
  align-items: start;
  padding: 36px 0 36px 28px;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
}
.usluga-item:hover { border-color: var(--accent-dim); }
.usluga-item.in-view { border-color: var(--accent-dim); }

.usluga-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--neon);
  box-shadow: var(--line-glow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.usluga-item.line-from-top::before    { transform-origin: top; }
.usluga-item.line-from-bottom::before { transform-origin: bottom; }
.usluga-item:hover::before { transform: scaleY(1); }
.usluga-item.in-view::before { transform: scaleY(1); }

.usluga-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding-top: 2px;
  user-select: none;
  transition: color var(--transition);
}
.usluga-item:hover .usluga-num { color: var(--accent); }
.usluga-item.in-view .usluga-num { color: var(--accent); }

.usluga-icon-wrap {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
  color: var(--accent);
}

.usluga-svg { overflow: visible; }
.usluga-svg path, .usluga-svg line, .usluga-svg polyline,
.usluga-svg circle, .usluga-svg rect, .usluga-svg polygon {
  stroke: var(--accent);
  transition: stroke var(--transition);
}
.usluga-item:hover .usluga-svg path,
.usluga-item:hover .usluga-svg line,
.usluga-item:hover .usluga-svg polyline,
.usluga-item:hover .usluga-svg circle { stroke: var(--ember); }
.usluga-item.in-view .usluga-svg path,
.usluga-item.in-view .usluga-svg line,
.usluga-item.in-view .usluga-svg polyline,
.usluga-item.in-view .usluga-svg circle { stroke: var(--ember); }

.usluga-body h3 { margin-bottom: 10px; color: var(--text); transition: color var(--transition); }
.usluga-item:hover .usluga-body h3 { color: var(--accent-light); }
.usluga-item.in-view .usluga-body h3 { color: var(--accent-light); }
.usluga-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; }

/* Items sit flush in a clean two-column grid so the top borders
   and accent lines read as one continuous line per column. */
.usluga-item:nth-child(odd)  { margin-top: 0; }
.usluga-item:nth-child(even) { margin-top: 0; }
/* Full-width last item should not be offset */
.usluga-item:last-child:nth-child(odd) { margin-top: 0; }

.usluga-rule { display: none; }

/* ============================================================
   GALERIJA
   ============================================================ */
#galerija {
  padding-bottom: 0;
  position: relative;
}

/* Near-horizontal streak — cold steel shelf */
#galerija::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      175deg,
      transparent 0px,
      transparent 2px,
      rgba(255,255,255,0.022) 2px,
      rgba(255,255,255,0.022) 3px,
      transparent 3px,
      transparent 10px,
      rgba(255,255,255,0.01) 10px,
      rgba(255,255,255,0.01) 11px
    );
  pointer-events: none;
  z-index: 0;
}
#galerija > * { position: relative; z-index: 1; }
.galerija-header { margin-bottom: 56px; }

/* ── Tab bar ────────────────────────────────────────────────
   Bug fixed: removed conflicting margin-right + gap combo.
   Now uses gap only, no margin on individual tabs.
   ─────────────────────────────────────────────────────────── */
.gal-tabs {
  display: flex;
  gap: 0;                          /* no gap — tabs separated by their own padding */
  flex-wrap: wrap;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.gal-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 28px;              /* padding creates clickable area */
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

/* Ember underline indicator */
.gal-tab::after {
  content: '';
  position: absolute;
  left: 28px; right: 28px; bottom: -1px;
  height: 2px;
  background: var(--ember);
  box-shadow: var(--line-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.gal-tab:hover          { color: var(--text); }
.gal-tab.active         { color: var(--accent-light); }
.gal-tab.active::after  { transform: scaleX(1); }

/* Panels */
.gal-panel          { display: block; }
.gal-panel[hidden]  { display: none; }

/* ── Track + drag ─────────────────────────────────────────── */
.galerija-track-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.galerija-track-wrap::-webkit-scrollbar { display: none; }
.galerija-track-wrap.dragging { cursor: grabbing; }

.galerija-track {
  display: flex;
  gap: 12px;
  padding: 0 32px 60px;
  width: max-content;
}

.gal-item {
  position: relative;
  flex-shrink: 0;
  width: 360px;
  height: 460px;
  background: var(--bg-3);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gal-item--tall { height: 560px; }
.gal-item--wide { width: 520px; }

.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.gal-item:hover img { transform: scale(1.04); }

.gal-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 18px;
  background: linear-gradient(to top, rgba(12,12,14,0.9), transparent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gal-item:hover .gal-caption { transform: translateY(0); }

.gal-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px dashed var(--text-faint);
}

.gal-drag-hint {
  position: absolute;
  bottom: 16px; right: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  pointer-events: none;
  animation: dragPulse 3s ease-in-out infinite;
}
@keyframes dragPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img  { max-width: 90vw; max-height: 86vh; object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--text); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.10); }
#lb-prev { left: 20px; }
#lb-next { right: 20px; }

/* ============================================================
   ZASTO MI
   ============================================================ */
#zasto-mi {
  background: var(--bg);
  position: relative;
}

/* Steeper angle — different face of metal than the --bg-2 sections */
#zasto-mi::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      148deg,
      transparent 0px,
      transparent 2px,
      rgba(255,255,255,0.026) 2px,
      rgba(255,255,255,0.026) 3px,
      transparent 3px,
      transparent 9px,
      rgba(255,255,255,0.013) 9px,
      rgba(255,255,255,0.013) 10px
    ),
    /* right-side light catch */
    radial-gradient(
      ellipse 50% 80% at 105% 40%,
      rgba(138,164,184,0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}
#zasto-mi > * { position: relative; z-index: 1; }
.zasto-header { margin-bottom: 64px; }
.zasto-list { display: flex; flex-direction: column; }

.zasto-row {
  display: grid;
  grid-template-columns: 32px 280px 1fr;
  gap: 0 40px;
  align-items: start;
  padding: 28px 0 28px 24px;
  border-top: 1px solid var(--border);
  transition: border-color var(--transition);
  position: relative;
}
.zasto-row:last-child { border-bottom: 1px solid var(--border); }
.zasto-row:hover      { border-color: var(--accent-dim); }
.zasto-row.in-view     { border-color: var(--accent-dim); }

.zasto-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--neon);
  box-shadow: var(--line-glow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
}
/* Scroll DOWN  — grow/shrink from top */
.zasto-row.line-from-top::before   { transform-origin: top; }
/* Scroll UP    — grow/shrink from bottom */
.zasto-row.line-from-bottom::before { transform-origin: bottom; }
.zasto-row:hover::before   { transform: scaleY(1); }
.zasto-row.in-view::before { transform: scaleY(1); }

.zasto-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-dim);
  padding-top: 3px;
  user-select: none;
}
.zasto-row h3 { font-size: 0.88rem; color: var(--text); padding-top: 3px; transition: color var(--transition); }
.zasto-row:hover h3 { color: var(--accent-light); }
.zasto-row.in-view h3 { color: var(--accent-light); }
.zasto-row p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================
   KONTAKT
   ============================================================ */
#kontakt { background: var(--bg-2); }
.kontakt-eyebrow { margin-bottom: 48px; }

.kontakt-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

.kontakt-title { margin-bottom: 32px; }
.kontakt-lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 420px;
}

.kontakt-details { display: flex; flex-direction: column; margin-bottom: 36px; }
.kontakt-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.kontakt-item-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--bg-3);
}
.kontakt-item-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.kontakt-item-text strong { font-weight: 500; font-size: 0.88rem; }
.kontakt-item-text a { transition: color var(--transition); }
.kontakt-item-text a:hover { color: var(--accent-light); }

.map-wrap {
  border: 1px solid var(--border);
  height: 200px;
  background: var(--bg-3);
  overflow: hidden;
}
.map-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.map-wrap iframe { display: block; }

.kontakt-form { display: flex; flex-direction: column; gap: 16px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group   { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); background: var(--bg-4); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg-3); }
.form-note { font-size: 0.7rem; color: var(--text-faint); margin-top: 6px; }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--border-bright);
  background: var(--bg-3);
}
.form-success.show { display: block; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  margin-top: 16px;
}
.form-success p { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    158deg,
    transparent 0px,
    transparent 2px,
    rgba(255,255,255,0.018) 2px,
    rgba(255,255,255,0.018) 3px,
    transparent 3px,
    transparent 8px
  );
  pointer-events: none;
  z-index: 0;
}
footer > * { position: relative; z-index: 1; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-mm    { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.1em; color: var(--text); }
.footer-logo .logo-divider { width: 1px; height: 14px; background: var(--accent-dim); }
.footer-logo .logo-metal { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1rem; color: var(--accent-light); }
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.7rem; color: var(--text-faint); letter-spacing: 0.06em; }
.footer-nap {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
  order: 10;
  margin-top: 4px;
}
.footer-nap a { color: var(--text-faint); transition: color var(--transition); }
.footer-nap a:hover { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .o-nama-inner               { grid-template-columns: 1fr; gap: 48px; }
  .o-nama-facts               { grid-template-columns: 1fr 1fr; }
  .stats-editorial             { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stat-feat                   { padding-right: 40px; }
  .stats-quote                 { grid-column: 1 / -1; border-left: 2px solid var(--neon); border-top: none; padding: 0 0 0 28px; max-width: 100%; box-shadow: none; }
  .usluge-list                 { grid-template-columns: 1fr; }
  .usluga-item:nth-child(even) { margin-top: 0; }
  .usluga-item:last-child:nth-child(odd) { grid-column: 1; border-bottom: none; }
  .kontakt-grid                { grid-template-columns: 1fr; gap: 56px; }
  .zasto-row                   { grid-template-columns: 28px 1fr; }
  .zasto-row p                 { grid-column: 2; }
}

@media (max-width: 768px) {
  .section   { padding: 80px 0; }
  .container { padding: 0 20px; }
  h1 { font-size: clamp(3.2rem, 11vw, 5rem); }
  h2 { font-size: clamp(2.4rem,  8vw, 3.5rem); }
  .nav-links, .nav-cta { display: none; }
  .hamburger            { display: flex; }
  #hero                 { padding-bottom: 140px; }
  .hero-vert-text       { display: none; }
  .hero-year            { display: none; }
  .hero-actions         { flex-direction: column; }
  .hero-actions .btn    { width: 100%; justify-content: center; }
  /* Gallery CTA — inline, never full width */
  #galerija > .container > .btn { width: auto; align-self: flex-start; }
  .stats-editorial      { grid-template-columns: 1fr; gap: 32px; }
  .stat-feat            { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
  .stats-stack          { padding: 0; border: none; }
  .gal-tab              { padding: 12px 16px; font-size: 0.65rem; }
  .gal-tab::after       { left: 16px; right: 16px; }
  .galerija-track       { padding: 0 20px 48px; }
  .gal-item             { width: 280px; height: 360px; }
  .gal-item--tall       { height: 420px; }
  .gal-item--wide       { width: 360px; }
  .zasto-row            { grid-template-columns: 1fr; gap: 8px; }
  .zasto-num            { display: none; }
  .zasto-row p          { grid-column: 1; }
  .form-row             { grid-template-columns: 1fr; }
  .footer-inner         { flex-direction: column; text-align: center; }
  .footer-links         { flex-wrap: wrap; justify-content: center; }

  /* ── USLUGE MOBILE ACCORDION ──────────────────────────────
     On mobile each service item collapses to icon + title + chevron.
     Tapping expands the description with a smooth height animation.
     ─────────────────────────────────────────────────────────── */
  .usluge-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  /* Reset the editorial vertical offset — all items flush on mobile */
  .usluga-item:nth-child(even) { margin-top: 0; }
  .usluga-item:last-child:nth-child(odd) { grid-column: 1; border-bottom: none; }

  .usluga-item {
    /* Switch to a simple flex row for the header */
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    /* Keep the left neon accent from the ::before */
    flex-wrap: wrap;
  }

  /* Hide the number — too cramped on mobile */
  .usluga-item .usluga-num { display: none; }

  /* Icon stays, but smaller */
  .usluga-item .usluga-icon-wrap {
    flex-shrink: 0;
    padding-top: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .usluga-item .usluga-svg { width: 28px; height: 28px; }

  /* Title row — takes remaining space, sits next to icon */
  .usluga-item .usluga-body {
    flex: 1;
    min-width: 0;
  }
  .usluga-item .usluga-body h3 {
    margin-bottom: 0; /* no gap when collapsed */
  }

  /* Description: hidden by default, animates open */
  .usluga-item .usluga-body p {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.35s ease,
                opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
  }
  /* Inner span needed for grid height trick */
  .usluga-item .usluga-body p > span {
    overflow: hidden;
    display: block;
  }

  /* Expanded state */
  .usluga-item.accordion-open .usluga-body p {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 10px;
  }
  .usluga-item.accordion-open .usluga-body h3 {
    color: var(--accent-light);
  }

  /* Chevron indicator — appended via JS, rotates when open */
  .usluga-chevron {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--accent-dim);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                color var(--transition);
  }
  .usluga-item.accordion-open .usluga-chevron {
    transform: rotate(180deg);
    color: var(--accent-light);
  }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .gal-tab { padding: 10px 12px; }
  .gal-tab::after { left: 12px; right: 12px; }
}
