/* Heroicus — landing "u izradi". Svijetlo, minimalno, urednički. */
:root {
  --bg: #fafaf7;
  --ink: #111111;
  --muted: #6b6b66;
  --line: #deded8;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 72px);
  --sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, 0.9vw + 11px, 24px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 2200px) { :root { --max: 1760px; } }   /* veliki ekrani / 49" */

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.top { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; }
.top img { width: clamp(120px, 14vw, 200px); mix-blend-mode: multiply; }
.lang { font-size: .8em; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 14px; }
.lang [aria-current] { text-decoration: none; border-bottom: 1px solid currentColor; }
.lang a { text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(56px, 12vw, 180px) clamp(48px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78em; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
h1 {
  margin: .45em 0 0; font-weight: 300;
  font-size: clamp(3rem, 1.6rem + 6vw, 6rem); line-height: 1.02; letter-spacing: -.035em;
  max-width: 9ch; text-wrap: balance;
}
.lead { margin: 1.6em 0 0; max-width: 46ch; color: var(--muted); font-size: 1.1em; }

/* Sekcije */
section { padding-block: clamp(48px, 7vw, 112px); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 820px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
h2 { margin: 0; font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.big { margin: 0; font-weight: 300; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1.3; letter-spacing: -.01em; max-width: 30ch; }

/* Logotipi */
.group + .group { margin-top: clamp(28px, 4vw, 56px); }
.group h3 { margin: 0 0 14px; font-size: .85em; font-weight: 500; }
.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (min-width: 560px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.logos li {
  position: relative; aspect-ratio: 5 / 3;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logos img {
  position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain;
  mix-blend-mode: multiply; opacity: .85;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.logos img.inv { filter: invert(1); }                        /* bijeli logo na tamnoj podlozi */
.logos li:hover img { opacity: 1; transform: scale(1.05); }

/* Podaci o firmi */
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .7em clamp(20px, 3vw, 48px); }
dt { color: var(--muted); }
dd { margin: 0; }
address { font-style: normal; }
.contact a { font-size: 1.15em; }

footer { padding-block: 36px 56px; color: var(--muted); font-size: .85em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Reveal na scroll (umjereno). Bez JS-a sve je vidljivo. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .logos li.reveal { transition-delay: calc(var(--i, 0) * 50ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge::before { animation: none; }
  .logos img { transition: none; }
}

/* --- Dorada: karakter --- */
.hero { position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.ring { position: absolute; right: -6vw; top: 50%; transform: translateY(-50%); width: clamp(300px, 46vw, 820px); color: var(--ink); opacity: .1; pointer-events: none; }
@media (min-width: 900px) { .ring { opacity: .92; right: max(-4vw, calc((100vw - var(--max)) / 2 - 6vw)); } }
.ring g { transform-origin: 200px 200px; }
.r1 { animation: spin 90s linear infinite; }
.r2 { animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.cta {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 2.2em; padding: 15px 26px;
  border: 1px solid var(--ink); border-radius: 999px; text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), transform .15s var(--ease);
}
.cta span { transition: transform .3s var(--ease); }
.cta:hover { background: var(--ink); color: var(--bg); }
.cta:hover span { transform: translateX(4px); }
.cta:active { transform: scale(.97); }

h2 span { display: block; margin-bottom: 10px; font-size: 1.9rem; font-weight: 300; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.logos li { transition: background .4s var(--ease); }
.logos li:hover { background: #fff; }
dl { font-size: 1.05em; }
dd { font-variant-numeric: tabular-nums; }

.dark { background: #141413; color: #f2f2ee; border: 0; padding-block: clamp(64px, 10vw, 160px) clamp(40px, 5vw, 80px); }
.dark h2, .dark h2 span { color: #a9a9a1; }
.dark h2 span { color: #f2f2ee; }
.mega { display: inline-block; margin-top: .6em; font-size: clamp(1.7rem, .6rem + 5.2vw, 5.6rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.05; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.mega:hover { background-size: 100% 1px; }
.tel { margin: 1.4em 0 0; font-size: 1.3em; }
footer.dark { padding-block: 0 40px; color: #a9a9a1; font-size: .85em; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid #2c2c2a; }
footer.wrap { display: block; }
@media (prefers-reduced-motion: reduce) { .r1, .r2 { animation: none; } .cta, .cta span, .mega { transition: none; } }
footer.dark { display: block; }
.ring { width: clamp(280px, 40vw, 760px); }
.foot { border-top: 0; padding-top: 0; }
.hero-copy .lead { max-width: 40ch; }

/* --- Iteracija 3 --- */
.cta span { display: inline-block; }
.cta:hover span { transform: translateY(3px); }
h1 { max-width: 8ch; }
@media (min-width: 560px) { h1 { max-width: 7ch; } }
.mark { transform-origin: 200px 200px; }
.dark dl { font-size: 1.1em; }
.dark dt { color: #a9a9a1; }
.dark a { text-decoration-color: rgba(242,242,238,.45); }
.dark a:hover { text-decoration-color: transparent; }
.dark { padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 56px); }
.dark .grid { padding-bottom: clamp(32px, 4vw, 56px); }
html[lang="hr"] h1 { max-width: none; }
html[lang="en"] h1 { max-width: 11ch; }
