/* Kovačko-bravarska radnja Nović — stilovi */

:root {
  --bg: #f4f1ec;
  --surface: #ffffff;
  --ink: #161514;
  --ink-soft: #5d5850;
  --line: rgba(22, 21, 20, .1);
  --iron: #121110;
  --iron-2: #1c1b19;
  --iron-line: rgba(255, 255, 255, .09);
  --on-dark: #d9d3ca;
  --ember: #e0661f;
  --ember-dark: #c4520f;
  --glow: radial-gradient(60% 80% at 85% 0%, rgba(224, 102, 31, .35), transparent 70%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 20px 50px -20px rgba(30, 20, 10, .25);
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1.1em; }
em { font-style: normal; color: var(--ember); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 600px; }

/* ---------- Dugmad ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ember);
  background: var(--ember);
  color: #fff;
  font: 600 .98rem/1 var(--font-body);
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--ember-dark); border-color: var(--ember-dark); transform: translateY(-2px); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--iron); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { padding: 11px 18px; font-size: .9rem; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ember);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.link:hover svg { transform: translateX(3px); }
.link svg { transition: transform .25s var(--ease); }

/* ---------- Zaglavlje ---------- */

.header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  pointer-events: none;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--iron-line);
  background: rgba(18, 17, 16, .55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  pointer-events: auto;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled .wrap { background: rgba(18, 17, 16, .88); box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .5); }

.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 14px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 2px; }
.nav a { display: block; }
.nav > ul > li > a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--on-dark);
  font: 500 .95rem/1.2 var(--font-body);
  transition: background .2s, color .2s;
}
.nav > ul > li > a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav > ul > li > a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .12); }

.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0 3px 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.sub {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 260px;
  padding: 8px !important;
  background: var(--iron-2);
  border: 1px solid var(--iron-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: .2s var(--ease);
}
.sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-sub:hover .sub,
.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { padding: 11px 14px; border-radius: 10px; color: var(--on-dark); font-size: .95rem; }
.sub a:hover,
.sub a[aria-current="page"] { background: rgba(255, 255, 255, .07); color: #fff; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--iron);
  color: var(--on-dark);
}
.hero-bg,
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom 18s var(--ease) both;
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 17, 16, .55) 0%, rgba(18, 17, 16, .25) 40%, rgba(18, 17, 16, .95) 100%),
    linear-gradient(90deg, rgba(18, 17, 16, .85) 0%, rgba(18, 17, 16, 0) 70%);
}
.hero h1, .page-hero h1 { color: #fff; }

.hero { min-height: 100svh; display: flex; align-items: flex-end; }
.hero-inner { padding-block: 150px 56px; }
.hero h1 { max-width: 13ch; animation: rise .9s var(--ease) .1s both; }
.hero .lead { animation: rise .9s var(--ease) .25s both; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; animation: rise .9s var(--ease) .4s both; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  border: 1px solid var(--iron-line);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  font-size: .88rem;
  color: #fff;
  animation: rise .9s var(--ease) both;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(224, 102, 31, .25); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 64px 0 0;
  border-top: 1px solid var(--iron-line);
  animation: rise .9s var(--ease) .55s both;
}
.stats div { padding: 24px 24px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--iron-line); }
.stats dt { font: 700 clamp(1.6rem, 3vw, 2.4rem)/1 var(--font-head); color: #fff; letter-spacing: -.02em; }
.stats dd { margin: 8px 0 0; font-size: .92rem; }

.page-hero .wrap { padding-block: 190px 80px; }
.page-hero .lead { margin: 0; }

@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Traka ---------- */

.marquee {
  overflow: hidden;
  background: var(--ember);
  color: #fff;
  padding-block: 18px;
}
.marquee-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font: 700 1.15rem/1 var(--font-head);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.marquee span::after { content: "✦"; font-size: .8rem; opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sekcije ---------- */

.section { padding-block: clamp(72px, 10vw, 130px); }
.section--tight { padding-top: 48px; }
.section--dark { background: var(--iron); color: var(--on-dark); background-image: var(--glow); }
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section--dark .section-head p { color: var(--on-dark); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}
.split p { color: var(--ink-soft); }

.collage { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: end; }
.collage img { width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.collage img:first-child { aspect-ratio: 3 / 4; }
.collage img:last-child { aspect-ratio: 4 / 5; margin-bottom: 48px; }

/* Bento proizvodi */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, minmax(280px, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  isolation: isolate;
  min-height: 300px;
}
.tile--big { grid-row: span 2; }
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0) 30%, rgba(18, 17, 16, .9) 100%);
}
.tile:hover img { transform: scale(1.06); }
.tile-body { position: relative; width: 100%; padding: 28px 90px 28px 28px; }
.tile-body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 8px; }
.tile-body p { margin: 0; color: var(--on-dark); font-size: .95rem; max-width: 420px; }
.tile-count {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  font-size: .8rem;
  font-weight: 600;
}
.tile-arrow {
  position: absolute;
  right: 26px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--iron);
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.tile:hover .tile-arrow { background: var(--ember); color: #fff; transform: rotate(-45deg); }

/* Koraci */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--iron-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  transition: border-color .3s, background .3s;
}
.step:hover { border-color: rgba(224, 102, 31, .5); background: rgba(224, 102, 31, .06); }
.step-num {
  display: block;
  margin-bottom: 48px;
  font: 700 .9rem/1 var(--font-head);
  color: var(--ember);
}
.step p { margin: 0; font-size: .95rem; }

/* Citat i vrijednosti */
.quote {
  margin: 0 0 72px;
  max-width: 980px;
  font: 700 clamp(1.8rem, 4vw, 3.2rem)/1.15 var(--font-head);
  letter-spacing: -.025em;
  color: #fff;
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding-top: 26px; border-top: 1px solid var(--iron-line); }
.value p { margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.tags li {
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.tags li:hover { border-color: var(--ember); color: var(--ember); }

/* CTA */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--iron);
  background-image: var(--glow);
  color: var(--on-dark);
}
.cta > div:first-child { max-width: 620px; }
.cta h2 { color: #fff; }
.cta p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Galerija ---------- */

.gallery-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.gallery-bar p { margin: 0; color: var(--ink-soft); }
.gallery-bar strong { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--ember); color: var(--ember); }

.gallery { columns: 4 240px; column-gap: 14px; }
.gallery a {
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #e4ded4;
  break-inside: avoid;
}
.gallery img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .3s; }
.gallery a:hover img { transform: scale(1.04); opacity: .92; }
.gallery a.is-hidden { display: none; }

.more { text-align: center; margin-top: 40px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 11, 10, .95);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: calc(100% - 160px); max-height: calc(100% - 120px); border-radius: var(--radius-sm); }
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--iron-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.lightbox button:hover { background: var(--ember); border-color: var(--ember); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--on-dark);
  font-size: .85rem;
}

/* ---------- Kontakt ---------- */

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ccard {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.ccard-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 36px;
  border-radius: 14px;
  background: rgba(224, 102, 31, .12);
  color: var(--ember);
  font-size: 1.3rem;
}
.ccard h3 { margin-bottom: 6px; }
.ccard p { margin: 0; color: var(--ink-soft); font-size: .95rem; overflow-wrap: anywhere; }

.map { margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 480px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Podnožje ---------- */

.footer { background: var(--iron); color: #9c968d; font-size: .95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-block: 80px 56px;
}
.footer-brand p { max-width: 360px; }
.footer h3 {
  margin-bottom: 18px;
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--on-dark); transition: color .2s; }
.footer a:hover { color: var(--ember); }
.footer-logo { height: 46px; width: auto; margin-bottom: 20px;  }
.copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--iron-line);
  font-size: .85rem;
}

/* ---------- Animacija pri skrolu ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-call { display: none !important; }
  .steps,
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header { inset: 10px 0 auto; }
  .header .wrap { border-radius: 26px; flex-wrap: wrap; padding: 0 8px 0 18px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 6px 16px 0;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { padding: 13px 14px; font-size: 1.05rem; }
  .sub {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: none;
    box-shadow: none;
    padding: 0 0 0 14px !important;
  }
  .sub::before, .has-sub > a::after { display: none; }
  .nav-call { display: inline-flex !important; margin-top: 8px; }

  .split,
  .bento,
  .values { grid-template-columns: 1fr; }
  .bento { grid-template-rows: none; }
  .tile--big { grid-row: auto; min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; margin-top: 44px; }
  .stats div,
  .stats div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--iron-line); display: flex; align-items: baseline; gap: 14px; }
  .stats dd { margin: 0; }
  .steps,
  .contact-cards,
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery a { margin-bottom: 8px; border-radius: 10px; }
  .tile-body { padding: 22px 76px 22px 22px; }
  .tile-arrow { right: 20px; bottom: 22px; width: 44px; height: 44px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .map iframe { height: 360px; }
  .lightbox img { max-width: calc(100% - 24px); max-height: calc(100% - 160px); }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-count { bottom: 32px; }
}
