/* Početna strana 3dmeni.rs, tamna tema: jelo pod lampom u tamnoj sali.
   Boje i fontovi su u tokens.css (zajednički sa menijima). */
@import url(tokens.css);

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--text-base)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- zaglavlje */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.top-nav { display: flex; align-items: center; gap: 26px; }
.top-nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.top-nav .nav-demo { color: var(--ink); font-weight: 600; }
.top-nav .nav-secondary { display: none; }

/* ---------------------------------------------------------------- dugmad */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button-primary { padding: 14px 28px; border-radius: 999px; background: var(--ink); color: var(--page); }
.button-primary:hover { background: #fff8ec; }
.button-quiet { padding: 14px 2px; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.button-quiet:hover { color: var(--ink); }

/* ---------------------------------------------------------------- uvod */
.hero {
  display: grid;
  grid-template-areas: 'title' 'scene' 'text';
  padding-top: 20px;
  padding-bottom: 64px;
}
.hero-title { grid-area: title; }
.hero-scene { grid-area: scene; }
.hero-text { grid-area: text; }
.hero h1 {
  max-width: 12em;
  font-family: var(--display);
  font-size: clamp(42px, 11vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.lede { max-width: 34em; color: var(--muted); font-size: clamp(17px, 4.4vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 30px; }
.lede + .hero-actions { margin-top: 30px; }

.hero-scene { position: relative; margin: 0 calc(var(--gutter) * -1); }
.hero-scene model-viewer {
  display: block;
  width: 100%;
  height: clamp(340px, 100vw, 620px);
  background-color: var(--page);
  --poster-color: var(--page);
}
/* Slika jela odmah, i pre nego što stigne <model-viewer> (isto mesto kao njegov poster). */
.hero-scene model-viewer:not(:defined) {
  background: var(--page) url(../img/hero-poster.jpg) center / contain no-repeat;
}
/* Ivice 3D prikaza se utapaju u stranicu: krug svetla u tamnoj sali. */
.hero-scene model-viewer {
  -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
}
.hero-scene figcaption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

/* ---------------------------------------------------------------- odeljci */
.section {
  display: grid;
  gap: 24px 48px;
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}
.section h2 {
  max-width: 14em;
  font-family: var(--display);
  font-size: clamp(32px, 7.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-intro { max-width: 36em; margin-top: 16px; color: var(--muted); }
.prose { max-width: 40em; }
.prose p + p { margin-top: 14px; }

/* reference na izvore: mali broj posle tvrdnje */
.ref {
  margin-left: 2px;
  font-size: 0.72em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
}
.ref:hover { text-decoration: underline; }

/* gde nastaje nesporazum: naslov preko cele širine, pa četiri mesta u mreži */
.section-head { max-width: 40em; }
.facts { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; padding-top: 6px; }
.facts h3 { font-family: var(--display); font-size: 27px; line-height: 1.2; }
.facts p { margin-top: 10px; max-width: 34em; color: var(--muted); }
.facts .answer {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  color: var(--ink);
}
.facts .answer::before {
  content: '';
  flex: none;
  width: 18px;
  height: 1px;
  margin-top: 0.8em;
  background: var(--accent);
}

/* šta pokazuju istraživanja */
.evidence { display: grid; gap: 34px; }
.evidence-lead { margin: 0; }
.evidence-figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  font-family: var(--display);
  font-size: clamp(52px, 14vw, 92px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.evidence-figure .evidence-vs { color: var(--muted); font-family: var(--text); font-size: 17px; letter-spacing: 0; }
.evidence-lead figcaption { margin-top: 18px; max-width: 36em; color: var(--muted); }
.evidence-note { margin-top: 8px; font-size: 14px; }
.evidence-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.evidence-list li { max-width: 40em; padding-top: 16px; border-top: 1px solid var(--line); }
.evidence-list li:last-child { color: var(--ink); }

/* koraci za gosta: brojevi kao tanjiri pod svetlom */
.steps { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a2622 0%, var(--surface) 70%);
  box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 0 0 7px var(--surface), inset 0 0 0 8px var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
}
.steps h3 { align-self: end; font-size: 19px; font-weight: 600; line-height: 1.3; }
.steps p { margin-top: 4px; color: var(--muted); }

/* šta dobija restoran */
.offer { display: grid; gap: 22px 48px; margin: 0; }
.offer dt { font-weight: 600; }
.offer dd { margin: 4px 0 0; color: var(--muted); }

/* probajte */
.try-body { display: flex; align-items: center; gap: 30px; }
.try-body p { max-width: 36ch; color: var(--muted); }
.try-body .button { margin-top: 22px; }
.qr {
  flex: none;
  width: 156px;
  height: 156px;
  padding: 14px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--page);
}
.qr svg { display: block; width: 100%; height: 100%; }

/* pitanja */
.faq { display: grid; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 0 18px; max-width: 42em; color: var(--muted); }

/* kontakt */
.contact { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 21px; }
.contact a { color: var(--ink); text-decoration-color: var(--accent); }

/* izvori */
.sources { display: grid; gap: 10px; margin: 0; padding-left: 1.4em; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sources li { padding-left: 4px; scroll-margin-top: 24px; }
.sources li:target { color: var(--ink); }
.sources a { overflow-wrap: anywhere; }

.bottom {
  padding-top: 28px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* strana koja ne postoji */
.notfound { padding-top: 12vh; padding-bottom: 20vh; }
.notfound h1 { max-width: 12em; font-family: var(--display); font-size: clamp(40px, 9vw, 72px); line-height: 1.05; }
.notfound .lede { margin-top: 20px; }

/* ---------------------------------------------------------------- računar */
@media (min-width: 720px) {
  .top-nav .nav-secondary { display: inline; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    grid-template-rows: 1fr auto 1fr;
    grid-template-areas: '. scene' 'title scene' 'text scene';
    column-gap: 24px;
    min-height: min(760px, calc(100svh - 80px));
    padding-top: 0;
    padding-bottom: 40px;
  }
  .hero-text { align-self: start; margin-top: 24px; }
  .hero h1 { font-size: clamp(56px, 5.6vw, 82px); }
  .hero-scene { margin: 0 calc(var(--gutter) * -1) 0 0; }
  .hero-scene model-viewer { height: min(680px, calc(100svh - 120px)); }
  .section { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-top: 88px; padding-bottom: 88px; }
  .section-wide { grid-template-columns: 1fr; }
  .section-wide .facts { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .section-wide .facts li,
  .section-wide .facts li:first-child { padding: 30px 0 34px; border-top: 1px solid var(--line); }
  .offer { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
