/* ============ El-sej – stilovi ============ */
:root {
  --red: #E3161B;
  --red-hot: #FF2A2F;
  --red-deep: #B80E12;
  --ink: #141416;
  --ink-2: #1C1C1E;
  --steel: #2A2B30;
  --mist: #F4F4F6;
  --line: #E4E5E9;
  --text: #1C1C1E;
  --muted: #5B5E66;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,20,22,.06), 0 8px 24px rgba(20,20,22,.06);
  --head: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red-hot); outline-offset: 3px; border-radius: 6px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 16px/1 var(--head); text-decoration: none;
  padding: 16px 24px; border-radius: 999px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(227,22,27,.35); }
.btn--red:hover { background: var(--red-hot); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { padding: 11px 18px; font-size: 15px; box-shadow: none; }

/* ---------- Zaglavlje ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; color: var(--ink-2); }
.brand__logo { height: 50px; width: auto; }
.lg-el  { font: 900 132px var(--head); letter-spacing: -4px; fill: var(--red); }
.lg-sej { font: 800 124px var(--head); letter-spacing: -3px; fill: currentColor; }
.lg-tag { font: 600 19px var(--head); letter-spacing: 5px; fill: currentColor; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(227,22,27,.22), transparent 60%),
    linear-gradient(180deg, #17171A 0%, var(--ink) 100%);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero__bolt {
  position: absolute; right: 6%; top: 50%; height: 120%; width: auto; transform: translateY(-50%) rotate(8deg);
  fill: var(--red); opacity: .12; filter: drop-shadow(0 0 40px rgba(255,42,47,.6));
}
.hero__in { position: relative; padding: 96px 20px 112px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: #D6D7DC; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 9px 14px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 4px rgba(255,42,47,.25); }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 900; margin: 22px 0 22px; max-width: 18ch; }
.hl { color: var(--red-hot); }
.lead { font-size: clamp(17px, 2vw, 20px); color: #C9CBD1; max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.facts { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 14px 44px; }
.facts li { display: flex; flex-direction: column; border-left: 3px solid var(--red); padding-left: 14px; }
.facts strong { font: 800 26px/1.1 var(--head); }
.facts span { font-size: 14px; color: #A9ABB3; }

/* trčeća LED traka na dnu hero dijela */
.ledstrip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background:
    radial-gradient(circle, rgba(255,255,255,.18) 1.6px, transparent 2px) 0 50% / 14px 6px repeat-x,
    linear-gradient(90deg, transparent 0%, var(--red-hot) 12%, #FFB000 24%, transparent 36%) 0 0 / 50% 100% repeat-x;
  animation: run 3.2s linear infinite;
  opacity: .9;
}
@keyframes run { to { background-position: 0 50%, 100% 0; } }

/* ---------- Sekcije ---------- */
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head--left { text-align: left; margin: 0 0 28px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 900; margin: 8px 0 14px; }
.sec-head p { color: var(--muted); }
.kicker { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.kicker--light { color: var(--red-hot); }

/* ---------- Tabovi usluga ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; background: var(--mist); padding: 6px; border-radius: 999px; width: fit-content; margin: 0 auto 36px; max-width: 100%; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 15px/1 var(--head); color: var(--muted); background: transparent; border: 0;
  padding: 13px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tab.is-on { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
.panel.is-on { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D6D8DE; }
.card__ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(227,22,27,.08); color: var(--red); margin-bottom: 18px;
}
.card__ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card--accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.card--accent p { color: #BFC1C8; }
.card--accent .card__ic { background: rgba(255,42,47,.16); color: var(--red-hot); }
.more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--red-hot); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- LED sekcija ---------- */
.led { background: var(--ink); color: #fff; padding: 96px 0; overflow: hidden; }
.led__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.led h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 900; margin: 8px 0 16px; }
.led__txt > p { color: #BFC1C8; max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* stepenice s trčećim svjetlom */
.led__demo { display: grid; place-items: center; }
.stairs { display: flex; flex-direction: column-reverse; gap: 10px; width: 100%; max-width: 380px; }
.stairs span {
  display: block; height: 30px; border-radius: 6px; background: #232328; position: relative; overflow: hidden;
}
.stairs span:nth-child(1) { width: 100%; }
.stairs span:nth-child(2) { width: 88%; margin-left: 12%; }
.stairs span:nth-child(3) { width: 76%; margin-left: 24%; }
.stairs span:nth-child(4) { width: 64%; margin-left: 36%; }
.stairs span:nth-child(5) { width: 52%; margin-left: 48%; }
.stairs span:nth-child(6) { width: 40%; margin-left: 60%; }
.stairs span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #FF2A2F, #FF7A00, #FFD000, #FF2A2F);
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(255,90,40,.9), 0 0 30px rgba(255,42,47,.5);
  opacity: .12;
  animation: step 3.6s ease-in-out infinite, hue 4s linear infinite;
}
.stairs span:nth-child(1)::after { animation-delay: 0s, 0s; }
.stairs span:nth-child(2)::after { animation-delay: .25s, 0s; }
.stairs span:nth-child(3)::after { animation-delay: .5s, 0s; }
.stairs span:nth-child(4)::after { animation-delay: .75s, 0s; }
.stairs span:nth-child(5)::after { animation-delay: 1s, 0s; }
.stairs span:nth-child(6)::after { animation-delay: 1.25s, 0s; }
@keyframes step { 0%, 8% { opacity: .12; } 18%, 70% { opacity: 1; } 85%, 100% { opacity: .12; } }
@keyframes hue { to { background-position: 200% 0; } }

/* ---------- Galerija radova ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 14px; }
.g-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.g-wide { grid-column: span 2; }
/* fotografije imaju vodeni žig kamere na dnu – object-fit ga odsijeca */
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  font: 600 14px/1.3 var(--body); color: #fff;
  background: linear-gradient(transparent, rgba(20,20,22,.85));
}
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; } .g-wide { grid-column: auto; } }

/* ---------- Zašto ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why__item { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.why__num { display: inline-block; font: 900 15px/1 var(--head); color: var(--red); background: rgba(227,22,27,.08); padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }
.why__item h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.why__item p { color: var(--muted); font-size: 15.5px; }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps li > span {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font: 900 18px/1 var(--head); background: var(--ink); color: #fff;
}
.steps h3 { font-size: 18px; font-weight: 800; margin: 4px 0 4px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* ---------- Kontakt ---------- */
.contact__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: stretch; }
.clist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.clist li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.clist li:last-child { border-bottom: 0; }
.clist .i { width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.clabel { display: block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.clist a, .clist span:not(.clabel) { font-weight: 600; font-size: 17px; text-decoration: none; }
.clist a:hover { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--mist); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.mapbox { display: flex; flex-direction: column; gap: 12px; }
.mapbox .map { flex: 1; }
.maplink { align-self: flex-end; font-weight: 700; color: var(--red); text-decoration: none; }
.maplink:hover { text-decoration: underline; }

/* ---------- Obrazac za upit ---------- */
.upitf { margin-top: 56px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.upitf .sec-head { margin-bottom: 24px; }
.upitf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.upitf__full { grid-column: 1 / -1; }
.upitf label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.upitf input, .upitf select, .upitf textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid #CFD1D7; border-radius: 10px; padding: 12px 14px; width: 100%;
}
.upitf textarea { resize: vertical; }
.upitf input:focus, .upitf select:focus, .upitf textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.upitf [aria-invalid="true"] { border-color: var(--red); background: #FFF5F5; }
.upitf .upitf__check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.upitf .upitf__check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red); }
.upitf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upitf__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.upitf__foot .btn { border: 0; cursor: pointer; }
.upitf__foot .btn[disabled] { opacity: .6; cursor: wait; }
.upitf__msg { margin: 0; font-weight: 600; }
.upitf__msg.ok { color: #1B7F3A; }
.upitf__msg.err { color: var(--red-deep); }
@media (max-width: 560px) { .upitf { padding: 24px 18px; } .upitf__grid { grid-template-columns: 1fr; } }

/* oznaka za podatke koje još treba upisati */
.ph { background: #FFF3B0; color: #6B5300 !important; border-radius: 6px; padding: 1px 6px; font-weight: 600; }

/* ---------- Podnožje ---------- */
.foot { background: var(--ink); color: #C9CBD1; padding: 44px 0 110px; }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.foot__mark { width: 52px; height: 52px; color: #fff; margin-bottom: 4px; }
.foot strong { color: #fff; }
.foot__small { font-size: 14px; color: #8A8D96; }

/* ---------- Traka za poziv (mobitel) ---------- */
.callbar { display: none; }

/* ---------- Prilagodba ekranima ---------- */
@media (max-width: 980px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .led__in { grid-template-columns: 1fr; gap: 40px; }
  .contact__in { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .section, .led { padding: 72px 0; }
  .hero__in { padding: 64px 20px 88px; }
  .hero__bolt { right: -20%; opacity: .09; }

  .callbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink); border-top: 1px solid #2B2C31;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 4px 12px; color: #fff; text-decoration: none; font: 700 13px/1 var(--head);
  }
  .callbar a:first-child { background: var(--red); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__logo { height: 42px; }
  .why { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 12px 10px; font-size: 14px; }
  .tab .i { display: none; }
  .btn { width: 100%; justify-content: center; }
  .facts { gap: 14px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .stairs span::after { opacity: 1; }
}
