/* =====================================================================
   MetalMont — dizajn sistem
   Sve boje, razmaci i radijusi dolaze iz tokena na :root.
   U komponentama nema hardkodovanih hex vrijednosti.
   ===================================================================== */

:root {
  /* Boje */
  --bg: #0B0F14;
  --surface: #121820;
  --surface-2: #18202A;
  --line: #232C38;
  --text: #E8ECF1;
  --muted: #94A3B2;
  --accent: #E08A3C;
  --accent-hover: #F29B4C;
  --accent-ink: #0B0F14;

  /* Brend boje servisa za poruke — koriste se isključivo na ikonama
     Viber/WhatsApp dugmadi, nigdje kao pozadina. */
  --brand-viber: #8E7CF8;
  --brand-whatsapp: #3FD07A;

  /* Izvedene providne vrijednosti (bez novih hex boja) */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --line-soft: color-mix(in srgb, var(--line) 60%, transparent);
  --scrim: color-mix(in srgb, var(--bg) 82%, transparent);
  --scrim-strong: color-mix(in srgb, var(--bg) 94%, transparent);
  --shadow-sm: 0 2px 8px color-mix(in srgb, var(--bg) 70%, transparent);
  --shadow-md: 0 14px 34px color-mix(in srgb, var(--bg) 78%, transparent);
  --shadow-lg: 0 28px 70px color-mix(in srgb, var(--bg) 85%, transparent);

  /* Forma */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --gutter: 20px;
  --header-h: 72px;

  /* Tipografija */
  --font-head: Archivo, "Barlow Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Kretanje */
  --t-fast: 120ms ease;
  --t-base: 180ms ease;
}

/* ------------------------------------------------------------------- reset */

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

html {
  scroll-behavior: smooth;
  /* naslovi anchor sekcija ne završavaju ispod sticky headera */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.14;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin: 0 0 .75rem;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* --------------------------------------------------------------- pristupačnost */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: transform var(--t-base);
}
.skip-link:focus-visible { transform: translateY(0); }

.honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ layout */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* ----------------------------------------------------------------- dugmad */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-align: center;
  transition: background var(--t-base), border-color var(--t-base),
              color var(--t-base), transform var(--t-base);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-hover); }

.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem .95rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--scrim);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: var(--scrim-strong);
}

.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: var(--radius-sm);
  background: var(--text);
  overflow: hidden;
  flex: none;
}
.brand-img { width: 100%; height: 100%; object-fit: contain; }
.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  padding-block: .35rem;
  border-bottom: 1.5px solid transparent;
  transition: color var(--t-base), border-color var(--t-base);
}
.main-nav > a:hover { color: var(--text); border-bottom-color: var(--accent); }
/* Specifičnost: `.main-nav > a` bi inače nadjačala boju teksta na dugmetu. */
.main-nav > a.nav-cta,
.main-nav > a.nav-cta:hover { color: var(--accent-ink); border-bottom-color: transparent; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(520px, 78vh, 760px);
  padding-block: clamp(3rem, 8vw, 5rem);
  isolation: isolate;
}
.hero-sub { min-height: clamp(400px, 56vh, 560px); }
/* Naslovi usluga su duži od naslova na početnoj — manja skala ih drži u dva reda. */
.hero-sub h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }

.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 72%, transparent) 0%,
      color-mix(in srgb, var(--bg) 58%, transparent) 38%,
      color-mix(in srgb, var(--bg) 92%, transparent) 78%,
      var(--bg) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 78%, transparent) 0%, transparent 62%);
}

/* Shell drži punu širinu mreže, a sadržaj se poravnava lijevo unutar nje. */
.hero-inner { max-width: var(--maxw); }
.hero-inner > * { max-width: 44rem; }
.hero h1 { margin-bottom: .6rem; }
.hero-text {
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
}
.hero-stats span { color: var(--muted); font-size: .9rem; }

.crumbs {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  font-size: .82rem;
  color: var(--muted);
}
.crumbs a:hover { color: var(--accent-hover); }
.crumb-sep { width: .9em; height: .9em; opacity: .6; }

/* ---------------------------------------------------------- kartice usluga */

.service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card-cta { border-style: dashed; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.service-card h3 { margin: 0; }
.service-card p { color: var(--muted); font-size: .94rem; flex: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: .35rem;
}
.service-icon .icon { width: 24px; height: 24px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
}
.service-card:hover .card-link { color: var(--accent-hover); }

/* ------------------------------------------------------------ filteri i mreža */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}
.filter {
  padding: .5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
}
.filter:hover { color: var(--text); border-color: var(--accent-line); }
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.project-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base), border-color var(--t-base);
}
.project-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.project-card[hidden] { display: none; }

.project-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.project-card:hover .project-img { transform: scale(1.03); }

.project-body { display: block; padding: 1rem 1.15rem 1.25rem; }
.project-body strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: .2rem;
}
.project-body span { color: var(--muted); font-size: .9rem; line-height: 1.55; }

.empty-state { margin-top: 1.5rem; color: var(--muted); }

/* ------------------------------------------------------------------ proces */

.process-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: korak;
}
.process-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 2px solid var(--accent-line);
}
.process-step {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .35rem;
}
.process-item h3 { margin-bottom: .3rem; }
.process-item p { color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------------ o nama */

.about-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.about-section p { color: var(--muted); max-width: 60ch; }
.about-section .section-head, .about-section h2 { color: var(--text); }

.value-list { display: grid; gap: .75rem; }
.value-list li {
  display: flex;
  gap: .9rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-list .icon { width: 22px; height: 22px; color: var(--accent); margin-top: .2rem; }
.value-list strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  margin-bottom: .1rem;
}
.value-list span { color: var(--muted); font-size: .92rem; }

/* --------------------------------------------------------------------- FAQ */

.faq-list {
  display: grid;
  gap: .6rem;
  max-width: 62rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.faq-item.is-open { border-color: var(--accent-line); }
.faq-item h3 { margin: 0; font-size: 1rem; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.25rem;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--t-base);
}
.faq-q:hover { color: var(--accent-hover); }
.faq-sign {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform var(--t-base);
}
.faq-q[aria-expanded="true"] .faq-sign { transform: rotate(45deg); }

.faq-a { padding: 0 1.25rem 1.2rem; }
.faq-a p { color: var(--muted); max-width: 70ch; margin: 0; }

/* ------------------------------------------------------------ područje rada */

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem .5rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .94rem;
  font-weight: 500;
}
.area-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.info-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.info-card h3 { margin-bottom: .4rem; }
.info-card p { color: var(--muted); font-size: .94rem; }
.info-card a { color: var(--accent); }
.info-card a:hover { color: var(--accent-hover); }
.info-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: .75rem;
}
.muted-note { font-size: .86rem; }

/* ----------------------------------------------------------------- kontakt */

.contact-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.contact-intro > p { color: var(--muted); max-width: 52ch; }

.channels { display: grid; gap: .6rem; margin-top: 1.5rem; }
.channel {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-base), transform var(--t-base);
}
.channel:hover { border-color: var(--accent); transform: translateY(-2px); }
.channel .icon { width: 22px; height: 22px; color: var(--accent); }
.channel strong { display: block; font-family: var(--font-head); font-weight: 600; }

.contact-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: -.1rem 0 0;
  padding: 0 .25rem;
  color: var(--muted);
  font-size: .88rem;
}
.contact-note .icon { width: 17px; height: 17px; color: var(--accent); flex: none; }
.channel small { display: block; color: var(--muted); font-size: .85rem; }

.contact-form {
  display: grid;
  gap: .9rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.field-label { font-size: .86rem; font-weight: 500; color: var(--muted); }
.field-label em { font-style: normal; opacity: .75; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .75rem .9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color var(--t-base);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--accent-line); }
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; cursor: pointer; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--accent); }
.field-error { font-size: .82rem; color: var(--accent-hover); }

.form-status { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-status.is-ok { color: var(--accent-hover); }
.form-status.is-error { color: var(--accent-hover); font-weight: 600; }
.status-fallback-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.status-fallback-link:hover { color: var(--accent-hover); }
.form-legal { margin: 0; font-size: .8rem; color: var(--muted); }

/* ------------------------------------------------- Viber / WhatsApp blok

   Forma nema priloga (Web3Forms besplatni plan to ne podržava), pa
   fotografije idu porukom. Dugmad su neutralna — u --surface sa
   akcentnim borderom na hover — a brend boja se koristi samo na ikoni.
   Dva puna brend bloka (ljubičasti + zeleni) tukla bi se sa narandžastim
   primarnim CTA-om iznad njih i razbila pravilo o ~10% akcenta.       */

.msg-block {
  margin-top: .35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.msg-lead {
  margin: 0 0 .85rem;
  font-size: .9rem;
  color: var(--muted);
}
.msg-actions { display: grid; gap: .55rem; }

.msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .75rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-base);
}
.msg-btn:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}
.msg-btn .icon { width: 20px; height: 20px; }

/* Jedina mjesta gdje se koriste brend boje servisa — samo na ikoni. */
.msg-viber .icon { color: var(--brand-viber); }
.msg-whatsapp .icon { color: var(--brand-whatsapp); }

.msg-fallback {
  margin: .85rem 0 0;
  font-size: .82rem;
  color: var(--muted);
}
.msg-fallback strong { color: var(--text); white-space: nowrap; }

/* Na telefonu link uvijek otvara aplikaciju, pa fallback nema svrhe. */
@media (max-width: 768px) {
  .msg-fallback { display: none; }
}
@media (min-width: 560px) {
  .msg-actions { grid-auto-flow: column; grid-auto-columns: 1fr; }
}

.btn-spinner { display: none; width: 1.05em; height: 1.05em; }
.btn.is-loading .btn-spinner {
  display: block;
  border: 2px solid color-mix(in srgb, var(--accent-ink) 30%, transparent);
  border-top-color: var(--accent-ink);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------- CTA */

.cta-section .cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
}
.cta-inner h2 { margin-bottom: .35rem; }
.cta-inner p { color: var(--muted); max-width: 48ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------------- proza */

.prose { max-width: 70ch; }
.prose-block { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.prose-block:last-child { margin-bottom: 0; }
.prose-block h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.prose-block p { color: var(--muted); }

.related-section { border-top: 1px solid var(--line); }
.back-home { margin-top: 1.75rem; }
.back-home a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--accent);
  font-weight: 600;
}
.back-home a:hover { color: var(--accent-hover); }

/* --------------------------------------------------------------------- 404 */

.error-section { padding-block: clamp(4rem, 12vw, 8rem); }
.error-inner { max-width: 46rem; }
.error-inner > p { color: var(--muted); }
.error-links { display: grid; gap: .5rem; margin: 1.5rem 0 2rem; }
.error-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  transition: color var(--t-base);
}
.error-links a:hover { color: var(--accent-hover); }
.error-links .icon { width: 18px; height: 18px; color: var(--accent); }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-bottom: 88px; /* prostor za sticky traku na mobilnom */
}
.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 40ch; }

.footer-col h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: .85rem;
}
.footer-col ul { display: grid; gap: .45rem; }
.footer-col a { font-size: .94rem; color: var(--text); transition: color var(--t-base); }
.footer-col a:hover { color: var(--accent-hover); }

.footer-contact li > * {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .94rem;
}
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); }
.footer-contact span { color: var(--muted); }

.footer-bottom {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.15rem var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; }
.to-top:hover { color: var(--accent-hover); }
.icon-up { width: 16px; height: 16px; transform: rotate(-90deg); }

/* --------------------------------------------------------- sticky mobilna traka */

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  border-top: 1px solid var(--line);
  background: var(--scrim-strong);
  backdrop-filter: blur(14px);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  padding: .6rem .25rem;
  min-height: 60px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted);
}
.sticky-item .icon { width: 21px; height: 21px; }
.sticky-primary { color: var(--accent); }
.sticky-viber .icon { color: var(--brand-viber); }
.sticky-whatsapp .icon { color: var(--brand-whatsapp); }
.sticky-item + .sticky-item { border-left: 1px solid var(--line); }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}
.lightbox-dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 1100px);
  max-height: 100%;
}
.lightbox-figure { margin: 0; display: grid; gap: .75rem; justify-items: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: min(78vh, 760px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.lightbox-figure figcaption {
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox-counter {
  margin: .25rem 0 0;
  color: var(--muted);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-base), color var(--t-base), background var(--t-base);
}
.lightbox-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.lightbox-close { top: -4px; right: -4px; }
.lightbox-prev { left: -4px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -4px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------- /po-mjeri čarobnjak */

.wizard-noscript {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}
.wizard-noscript a { color: var(--accent); font-weight: 600; }

.wizard { max-width: 56rem; }
.wizard[hidden] { display: none; }

.wizard-progress {
  display: flex;
  gap: .25rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  counter-reset: none;
}
.wizard-progress li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .5rem;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}
.wizard-progress li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.wizard-progress li.is-current {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.wizard-progress li.is-current span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
.wizard-progress li.is-done { color: var(--text); }
.wizard-progress li.is-done span { border-color: var(--accent); color: var(--accent); }

.wizard-title { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 1.25rem; }

.product-grid-choice {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.product-choice {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.15rem;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t-base), transform var(--t-base), background var(--t-base);
}
.product-choice:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.product-choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--surface-2);
}
.product-choice strong { font-family: var(--font-head); font-size: 1.02rem; }
.product-choice > span:last-child { color: var(--muted); font-size: .85rem; line-height: 1.5; }

.wizard-columns {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 720px) {
  .wizard-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

.dim-fields { display: grid; gap: .9rem; }
.dim-field { display: grid; gap: .35rem; }
.dim-field .field-label { font-size: .86rem; font-weight: 500; color: var(--muted); }
.dim-input {
  display: flex;
  align-items: stretch;
  gap: .4rem;
}
.dim-input input {
  width: 100%;
  min-width: 0;
  padding: .65rem .8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.dim-input input:hover { border-color: var(--accent-line); }
.dim-btn {
  display: grid;
  place-items: center;
  width: 44px;
  flex: none;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.2rem;
  font-family: var(--font-head);
  cursor: pointer;
  transition: border-color var(--t-base), color var(--t-base);
}
.dim-btn:hover { border-color: var(--accent); color: var(--accent-hover); }
.dim-range { font-size: .78rem; color: var(--muted); }

.sketch-box {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sketch-box svg {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 240px;
  margin-inline: auto;
}
.sketch-box figcaption {
  margin-top: .6rem;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
}
/* Boje skice — tokeni, ne hex */
.sketch-line { stroke: var(--text); fill: none; stroke-width: 2; stroke-linecap: square; }
.sketch-accent { stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-linecap: square; }
.sketch-dim { stroke: var(--muted); fill: none; stroke-width: 1; }
.sketch-dim-text { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.sketch-note { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }

.opt-group {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}
.opt-group legend {
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: .5rem;
  padding: 0;
}
.opt-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-chip { position: relative; }
.opt-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.opt-chip span {
  display: inline-block;
  padding: .5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
}
.opt-chip input:hover + span { color: var(--text); border-color: var(--accent-line); }
.opt-chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.opt-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wizard-summary {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}
.wizard-summary dl { margin: 0; display: grid; gap: .3rem; }
.wizard-summary .sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .94rem;
}
.wizard-summary dt { color: var(--muted); }
.wizard-summary dd { margin: 0; text-align: right; font-weight: 500; }

.wizard-form { max-width: none; }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  margin-top: clamp(1.5rem, 4vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.wizard-nav [data-wizard-back][hidden] { display: none; }
.wizard-nav [data-wizard-next] { margin-left: auto; }
.wizard-nav [data-wizard-next][hidden] { display: none; }

/* --------------------------------------------------- CTA ka /po-mjeri */

.po-mjeri-cta-section { padding-top: 0; }
.po-mjeri-cta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  transition: transform var(--t-base), border-color var(--t-base);
}
.po-mjeri-cta:hover { transform: translateY(-2px); border-color: var(--accent); }
.po-mjeri-cta-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.08rem;
  margin-bottom: .15rem;
}
.po-mjeri-cta-text span { color: var(--muted); font-size: .92rem; }
.po-mjeri-cta-arrow { margin-left: auto; width: 22px; height: 22px; color: var(--accent); flex: none; }

@media (prefers-reduced-motion: reduce) {
  .product-choice:hover, .po-mjeri-cta:hover { transform: none; }
}

/* ----------------------------------------------------------------- animacije */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */

@media (min-width: 720px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .cta-section .cta-inner { grid-template-columns: 1.4fr auto; }
}

@media (min-width: 900px) {
  :root { --gutter: 28px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1.15fr .85fr; }
  .contact-grid { grid-template-columns: .95fr 1.05fr; }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--scrim-strong);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .main-nav > a:hover { border-bottom-color: var(--line-soft); }
  .nav-cta { margin-top: .9rem; justify-content: center; }
}

@media (max-width: 768px) {
  .sticky-bar { display: flex; }
  .lightbox-close { top: 0; right: 0; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-btn { width: 42px; height: 42px; }
}

@media (min-width: 769px) {
  .site-footer { padding-bottom: 0; }
}

@media (max-width: 480px) {
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .hero-stats { gap: 1rem 1.75rem; }
}

/* ------------------------------------------------------- smanjeno kretanje */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .project-card:hover { transform: none; }
  .project-card:hover .project-img { transform: none; }
  .service-card:hover { transform: none; }
  .channel:hover { transform: none; }
}
