/* ==========================================================================
   Glavni sajt (digitalnimeniji.com) i stranica 404.
   Stranice menija ne koriste ovaj fajl — one učitavaju menu.css + svoju temu.
   ========================================================================== */

:root {
  --ink:       #0f0d0b;
  --ink-2:     #1b1714;
  --paper:     #ffffff;
  --sand:      #faf7f2;
  --line:      #e8e2d8;
  --text:      #1c1917;
  --muted:     #6f655b;
  --gold:      #a97c1f;
  --gold-strong: #8f6a19;  /* podloga dugmeta — beo tekst na njoj prolazi 4.5:1 */
  --gold-deep: #7f5c12;
  --gold-soft: #e9d6a8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --radius: 16px;

  /* Senke umesto okvira — prilagođavaju se podlozi umesto da seku po njoj. */
  --shadow-1:
    0 0 0 1px rgb(15 13 11 / 6%),
    0 1px 2px -1px rgb(15 13 11 / 8%),
    0 2px 4px 0 rgb(15 13 11 / 4%);
  --shadow-2:
    0 0 0 1px rgb(15 13 11 / 7%),
    0 8px 16px -8px rgb(15 13 11 / 18%),
    0 20px 36px -20px rgb(15 13 11 / 22%);

  /* Pokret: bez golog ease — krive imaju snagu, trajanje prati veličinu. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-press: 110ms;
  --dur-hover: 170ms;
  --dur-card: 240ms;
  --dur-enter: 460ms;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.25rem);
}

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section--sand { background: var(--sand); border-block: 1px solid var(--line); }

.section__head { max-width: 42rem; margin-bottom: clamp(2rem, 5vw, 3rem); }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .9rem;
}

.section__title { font-size: clamp(1.75rem, 4vw, 2.6rem); }

.section__lead {
  margin-top: .9rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.08rem);
}

/* ==========================================================================
   Pokret
   Ulazak sekcija: opacity + translateY + blur (element se izoštrava, ne samo
   pojavljuje). Skriveno stanje postoji samo uz JavaScript, pa bez njega
   stranica ostaje potpuno čitljiva.
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition:
    opacity var(--dur-enter) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--dur-enter) var(--ease-out) var(--reveal-delay, 0ms),
    filter var(--dur-enter) var(--ease-out) var(--reveal-delay, 0ms);
}

.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Zaglavlje je odmah u vidnom polju, pa ulazi na učitavanje, ne na skrol.
   "backwards" sprečava da tekst blesne pre nego što mu dođe red. */
@keyframes uvod {
  from { opacity: 0; transform: translateY(12px); filter: blur(5px); }
}

.js .hero__stack > * {
  animation: uvod var(--dur-enter) var(--ease-out) backwards;
  animation-delay: var(--uvod-delay, 0ms);
}

.js .hero__stack > :nth-child(2) { --uvod-delay: 70ms; }
.js .hero__stack > :nth-child(3) { --uvod-delay: 140ms; }
.js .hero__stack > :nth-child(4) { --uvod-delay: 210ms; }
.js .hero__stack > :nth-child(5) { --uvod-delay: 280ms; }
.js .hero__device { animation: uvod 620ms var(--ease-out) 120ms backwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 2.75rem;
  transition:
    transform var(--dur-hover) var(--ease-out),
    background-color var(--dur-hover) var(--ease-soft),
    border-color var(--dur-hover) var(--ease-soft),
    box-shadow var(--dur-hover) var(--ease-soft);
}

.btn:hover { transform: translateY(-2px); }

/* Pritisak je brži od prelaza — prst oseti odziv odmah. */
.btn:active { transform: translateY(0) scale(.975); transition-duration: var(--dur-press); }

.btn--primary { background: var(--gold-strong); color: #fff; box-shadow: 0 6px 14px -8px rgb(169 124 31 / 80%); }
.btn--primary:hover { background: var(--gold-deep); box-shadow: 0 12px 22px -10px rgb(169 124 31 / 75%); }

.btn--ghost { color: inherit; border-color: currentColor; opacity: .85; }
.btn--ghost:hover { opacity: 1; }

.btn--sm { padding: .55rem 1.05rem; font-size: .88rem; }

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

.topbar { position: relative; z-index: 3; padding-block: 1.15rem; color: #fff; }

.topbar .wrap { display: flex; align-items: center; gap: 1.25rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  transition: transform var(--dur-card) var(--ease-out);
}

.brand:hover .brand__mark { transform: rotate(-8deg); }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.topnav { display: none; gap: 1.6rem; }

.topnav a {
  position: relative;
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
  font-size: .92rem;
  padding-block: .2rem;
  transition: color var(--dur-hover) var(--ease-soft);
}

/* Linija ispod se izvlači iz sredine umesto da se samo upali. */
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transition: transform var(--dur-hover) var(--ease-out);
}

.topnav a:hover { color: #fff; }
.topnav a:hover::after { transform: scaleX(1); }

@media (min-width: 60rem) { .topnav { display: flex; } }

.topbar__tel {
  display: none;
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-hover) var(--ease-soft);
}

.topbar__tel:hover { color: var(--gold-soft); }

@media (min-width: 48rem) { .topbar__tel { display: inline; } }

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

.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48rem 26rem at 8% -10%, rgb(169 124 31 / 34%), transparent 62%),
    radial-gradient(36rem 22rem at 100% 100%, rgb(169 124 31 / 16%), transparent 66%);
}

.hero > * { position: relative; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 9vw, 6rem);
}

@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }

.hero__title { font-size: clamp(2.35rem, 6vw, 3.9rem); margin-bottom: 1.15rem; }

.hero__title em { font-style: italic; color: var(--gold-soft); }

.hero__lead {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: rgb(255 255 255 / 78%);
  max-width: 34rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  font-size: .87rem;
  color: rgb(255 255 255 / 66%);
}

.hero__points li { display: flex; align-items: center; gap: .45rem; }

.hero__points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
  flex: none;
}

.hero__device { justify-self: center; width: min(100%, 22rem); }

/* --- Ušteda vremena ------------------------------------------------------- */

.payoff {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 56rem) { .payoff { grid-template-columns: .9fr 1.1fr; } }

.payoff__stat {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.payoff__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 4.5rem);
  line-height: 1;
  color: var(--gold-soft);
}

.payoff__unit { font-size: .95rem; color: rgb(255 255 255 / 72%); margin-top: .6rem; }

.payoff__fine { font-size: .8rem; color: rgb(255 255 255 / 48%); margin-top: 1rem; }

.payoff__list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.35rem; }

.payoff__list h3 { font-size: 1.1rem; margin-bottom: .35rem; }

.payoff__list p { color: var(--muted); font-size: .95rem; }

/* --- Problem -> rešenje --------------------------------------------------- */

.compare { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

@media (min-width: 48rem) { .compare { grid-template-columns: repeat(3, 1fr); } }

.compare li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
}

.compare h3 { font-size: 1.1rem; margin-bottom: .5rem; }

.compare p { color: var(--muted); font-size: .94rem; }

.compare del { color: #9c2f22; text-decoration-thickness: 1px; }

/* --- Koraci --------------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: korak;
}

@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li { counter-increment: korak; }

.steps li::before {
  content: counter(korak, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .9rem;
}

.steps h3 { font-size: 1.2rem; margin-bottom: .45rem; }

.steps p { color: var(--muted); font-size: .95rem; }

/* --- Primeri -------------------------------------------------------------- */

.demos { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

@media (min-width: 52rem) { .demos { grid-template-columns: repeat(3, 1fr); } }

.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  transition:
    transform var(--dur-card) var(--ease-out),
    box-shadow var(--dur-card) var(--ease-out);
}

.demo:hover, .demo:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.demo__swatch {
  height: 7.5rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.demo__body { padding: 1.25rem 1.35rem 1.45rem; }

.demo h3 { font-size: 1.15rem; margin-bottom: .3rem; }

.demo h3 a { text-decoration: none; }

.demo h3 a::after { content: ""; position: absolute; inset: 0; }

.demo p { color: var(--muted); font-size: .9rem; }

.demo__url {
  display: block;
  margin-top: .85rem;
  font-size: .8rem;
  color: var(--gold-deep);
  word-break: break-all;
}

/* --- Prednosti ------------------------------------------------------------ */

.features { display: grid; gap: clamp(1.5rem, 3.5vw, 2.25rem); list-style: none; margin: 0; padding: 0; }

@media (min-width: 46rem) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .features { grid-template-columns: repeat(3, 1fr); } }

.features li { border-top: 2px solid var(--gold-soft); padding-top: 1.1rem; }

.features h3 { font-size: 1.08rem; margin-bottom: .4rem; }

.features p { color: var(--muted); font-size: .93rem; }

/* --- Ponuda --------------------------------------------------------------- */

.offer { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }

@media (min-width: 52rem) { .offer { grid-template-columns: repeat(2, 1fr); } }

.offer > li {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-1);
}

.offer h3 { font-size: 1.3rem; margin-bottom: .35rem; }

.offer > li > p { color: var(--muted); font-size: .94rem; }

.offer ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .55rem; font-size: .94rem; }

.offer ul li { display: flex; gap: .6rem; align-items: start; }

.offer ul li::before { content: "✓"; color: var(--gold-deep); font-weight: 600; flex: none; }

/* --- Pitanja -------------------------------------------------------------- */

.faq { max-width: 46rem; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.5rem 1.1rem 0;
  position: relative;
  font-weight: 500;
  font-size: 1.02rem;
  transition: color var(--dur-hover) var(--ease-soft);
}

.faq summary:hover { color: var(--gold-deep); }

.faq summary::-webkit-details-marker { display: none; }

/* Znak plus se pretvara u minus rotacijom, bez zamene teksta. */
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: .55rem;
  top: 50%;
  width: .75rem;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  translate: 0 -50%;
  transition: rotate var(--dur-card) var(--ease-out), opacity var(--dur-card) var(--ease-out);
}

.faq summary::before { rotate: 90deg; }

.faq details[open] summary::before { rotate: 0deg; opacity: 0; }

/* Visina se menja odmah (ne animiramo raspored), sadržaj se blago uvede. */
@keyframes odgovor {
  from { opacity: 0; transform: translateY(-4px); }
}

.faq details[open] p { animation: odgovor var(--dur-card) var(--ease-out); }

.faq p { color: var(--muted); font-size: .95rem; padding-bottom: 1.2rem; max-width: 40rem; }

/* --- Poziv na akciju ------------------------------------------------------ */

.cta { background: var(--ink); color: #fff; text-align: center; }

.cta .section__head { margin-inline: auto; text-align: center; margin-bottom: 2rem; }

.cta .section__lead { color: rgb(255 255 255 / 74%); }

.cta .eyebrow { color: var(--gold-soft); }

.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.cta__note { margin-top: 1.1rem; font-size: .87rem; color: rgb(255 255 255 / 60%); }

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

.site-footer {
  background: var(--ink-2);
  color: rgb(255 255 255 / 66%);
  padding-block: 2.5rem;
  font-size: .88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.site-footer a { color: rgb(255 255 255 / 88%); }

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

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: #fff;
  padding: 2rem;
}

.error-page h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: .75rem; }

.error-page p { color: rgb(255 255 255 / 72%); }
