/* ==========================================================================
   Vitamin Horgoš — content.css (ORBIS rebuild, content pages)
   o-nama, kvalitet, recepti, recept, novosti, za-partnere, kontakt, gde-kupiti, 404.
   Page pieces only; tokens and shared components come from variables / base / layout /
   components.css. Feature sheets: story.css (Tada / Danas), kitchen.css, spec.css, share.css.
   ========================================================================== */

/* ---------- Shared section rhythm ---------- */
/* eyebrow + title stacks inside split heads and CTA bands */
.section__head > div,
.ctaband > div:first-child,
.qsplit__text,
.fsplit__aside,
.csplit__form,
.msplit__text { display: grid; gap: var(--sp-16); align-content: start; justify-items: start; }
.section__head > div > *,
.ctaband > div:first-child > * { margin: 0; }
.section__head .link-more { margin-top: var(--sp-8); }
.chron__aside { display: grid; gap: var(--sp-16); justify-items: start; }
.section__head > .eyebrow { justify-self: start; }
.section__head--center > .eyebrow { justify-self: center; }

/* data pages: hidden until rendered (js/recipes.js calls VH.pageReady), 3s fallback */
.js body[data-view="recipe"]:not(.is-ready) #main { visibility: hidden; animation: reveal-main 0s linear 3s forwards; }

/* counters: unit after the figure, 3-column variant */
.counter__value { display: inline-flex; align-items: baseline; gap: 0.12em; }
.counter__unit { font-size: 0.5em; color: var(--gold-ink); }
.section--black .counter__unit, .section--burgundy .counter__unit { color: var(--gold); }
.has-pozadina .counter__unit { color: var(--on-dark); } /* premium 3: the small unit over a photo band stays ≥ 7:1 */
.counters--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* gold „01“ numbers in pillars; pillar bullet lists (small gold squares) */
.pillar { display: grid; align-content: start; gap: var(--sp-12); }
.pillar p { margin-top: 0; }
.pillar__title { line-height: 1.25; }
.pillar__title b { color: var(--gold); }
.section--cream .pillar__title b, .section--white .pillar__title b { color: var(--gold-ink); }
.section--cream .pillar__title, .section--white .pillar__title { color: var(--ink); }
.pillar__list { display: grid; gap: var(--sp-8); margin-top: var(--sp-8); padding-top: var(--sp-16); border-top: 1px solid var(--line-dark-soft); font-size: var(--t-card-body); }
.pillar__list li { display: flex; gap: var(--sp-12); align-items: baseline; }
.pillar__list li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--gold); transform: translateY(-3px); }
.section--cream .pillar, .section--white .pillar { background: var(--warm-white); }
.section--cream .pillar p, .section--white .pillar p { color: var(--ink-body); }
.section--cream .pillar__list, .section--white .pillar__list { border-top-color: var(--line-light); }
.section--cream .pillar__list li::before { background: var(--gold-ink); }

/* ---------- O nama: quote block on burgundy (ORBIS 20) ---------- */
.cq { gap: clamp(var(--sp-48), 7vw, var(--sp-128)); }
.cq__quote { display: grid; gap: var(--sp-24); }
.cq__quote .quote p { max-width: 22em; margin: 0; }
.cq__cite { padding-left: calc(var(--sp-32) + 1px); font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold); }
.cq__text { display: grid; gap: var(--sp-16); align-content: start; }
.cq__title { margin-bottom: var(--sp-8); font-size: var(--t-h3); line-height: 1.2; }
.cq__text p + p { margin-top: 0; }

/* ---------- O nama: mill split with a zoom control (ORBIS 21); it opens the media-wall lightbox ---------- */
.msplit { align-items: center; }
.msplit__lead { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem); font-style: italic; font-weight: var(--fw-light); line-height: 1.35; color: var(--gold); }
.msplit__text p + p { margin-top: 0; }
.msplit .mcard img { cursor: pointer; }
.mcard__cap { z-index: 1; font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; }

/* ---------- O nama: „Fabrika uživo“ media wall (premium 10, item 8) ----------
   3 / 2 / 1 columns; graded photos (one look baked in by _tools/images/grade-photos.py); a 60px gold-line zoom button
   on every picture opens the lightbox (js/mediawall.js, .mbox below). */
.mwall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-48) var(--sp-32); }
.mwall__card { display: grid; gap: var(--sp-16); align-content: start; margin: 0; }
.mwall__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--ground-black); transition: border-color var(--dur-hover); }
.mwall__media picture, .mwall__media img { display: block; width: 100%; height: 100%; }
.mwall__media picture { display: block; width: 100%; height: 100%; }
.mwall__media img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.mwall__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(21, 17, 15, 0.5)); pointer-events: none; }
.mwall__card:hover .mwall__media, .mwall__card:focus-within .mwall__media { border-color: var(--gold-ink); }
.mwall__zoom {
  position: absolute;
  right: var(--sp-16);
  bottom: var(--sp-16);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(21, 17, 15, 0.72);
  color: var(--gold);
  transition: background-color var(--dur-hover), color var(--dur-hover);
}
.mwall__zoom .icon { width: 24px; height: 24px; }
.mwall__zoom:hover, .mwall__card:hover .mwall__zoom, .mcard:hover .mwall__zoom { background: var(--gold); color: var(--ground-black); }
.mwall__zoom:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(21, 17, 15, 0.7); }
.mwall__cap { display: grid; gap: var(--sp-12); justify-items: start; }
.mwall__title { display: flex; align-items: baseline; gap: var(--sp-12); font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); line-height: 1.4; text-transform: uppercase; color: var(--ink); }
.mwall__no { color: var(--gold-ink); font-variant-numeric: tabular-nums lining-nums; }
.mwall__rule.hairline { width: 48px; background: var(--gold); opacity: 1; }
.mwall__text { max-width: 30rem; font-size: var(--t-card-body); line-height: 1.6; color: var(--ink-body); }
.mwall__note { margin-top: var(--sp-48); padding-top: var(--sp-16); border-top: 1px solid var(--line-light); font-size: var(--t-card-body); color: var(--ink-body); }

/* lightbox: dark ground, large picture, counter, caption, 60px prev / next / close; no transition with reduced motion */
.mbox { position: fixed; inset: 0; z-index: var(--z-veil); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 350ms var(--ease-out); }
.mbox[hidden] { display: none; }
.mbox.is-open { opacity: 1; }
.mbox__bg { position: absolute; inset: 0; background: rgba(21, 17, 15, 0.96); }
.mbox__fig { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--sp-24); width: 100%; max-height: 100%; margin: 0; padding: 96px 120px 40px; }
.mbox__media { display: flex; justify-content: center; min-height: 0; max-width: 100%; }
.mbox__img { display: block; width: auto; height: auto; max-width: min(1200px, 100%); max-height: calc(100svh - 300px); border: 1px solid var(--line-dark-soft); border-radius: var(--radius); object-fit: contain; }
.mbox__cap { display: grid; gap: var(--sp-8); justify-items: center; max-width: 46rem; text-align: center; }
.mbox__count { margin: 0; font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); color: var(--gold); font-variant-numeric: tabular-nums lining-nums; }
.mbox__title { margin: 0; font-family: var(--font-serif); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: var(--fw-light); line-height: 1.15; color: var(--on-dark); }
.mbox__text { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--on-dark-body); }
.mbox__btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(21, 17, 15, 0.7);
  color: var(--gold);
  transition: background-color var(--dur-hover), color var(--dur-hover);
}
.mbox__btn .icon { width: 24px; height: 24px; }
.mbox__btn:hover { background: var(--gold); color: var(--ground-black); }
.mbox__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mbox__close { top: var(--sp-24); right: var(--sp-24); }
.mbox__nav[hidden] { display: none; }
.mbox__prev { left: var(--sp-32); top: calc(50% - 30px); }
.mbox__next { right: var(--sp-32); top: calc(50% - 30px); }
.about-counters, .q-counters { margin-top: var(--sp-96); }
.phero__script { margin: calc(var(--sp-8) * -1) 0 0; } /* „Najbolje iz Vojvodine“ under the o-nama title (brand.css .script-accent) */
.msplit__mill:empty { display: none; }

/* „Mlin radi“: two stones; the top one turns while on screen (js/extras.js), static with reduced motion */
.mill { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-24); margin-top: var(--sp-16); padding-top: var(--sp-24); border-top: 1px solid var(--line-dark-soft); }
.mill__stones { position: relative; width: 88px; height: 88px; }
.mill__stone { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--on-dark); stroke-width: 1.2; }
.mill__stone--bed { opacity: 0.22; transform: translateY(18%) scaleY(0.34); }
.mill__stone--top { stroke: var(--gold); animation: mill-turn 12s linear infinite paused; }
.mill__stone circle + circle { stroke-dasharray: 2 4; }
.mill.is-on .mill__stone--top, .mill.is-on .mill__dust i { animation-play-state: running; }
.mill__dust { position: absolute; left: 50%; bottom: -10px; width: 28px; height: 16px; translate: -50% 0; pointer-events: none; }
.mill__dust i { position: absolute; top: 0; left: calc(var(--x, 50) * 1%); width: 2px; height: 2px; border-radius: 50%; background: var(--red); opacity: 0; animation: mill-dust 2.4s cubic-bezier(0.4, 0, 1, 1) infinite paused; }
.mill__dust i:nth-child(1) { --x: 20; animation-delay: 0s; }
.mill__dust i:nth-child(2) { --x: 46; animation-delay: 0.35s; }
.mill__dust i:nth-child(3) { --x: 70; animation-delay: 0.7s; }
.mill__dust i:nth-child(4) { --x: 34; animation-delay: 1.05s; }
.mill__dust i:nth-child(5) { --x: 58; animation-delay: 1.4s; }
.mill__dust i:nth-child(6) { --x: 82; animation-delay: 1.75s; }
.mill__dust i:nth-child(7) { --x: 10; animation-delay: 2.1s; }
.mill__label { max-width: 24ch; font-size: var(--t-card-body); color: var(--on-dark-body); }
@keyframes mill-turn { to { transform: rotate(360deg); } }
@keyframes mill-dust { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 0.8; } 100% { opacity: 0; transform: translate(2px, 14px); } }

/* ---------- Timeline rows: wider year column for „1971–1973“ ---------- */
.tlrows { counter-reset: none; }
.tlrow { grid-template-columns: 64px 200px minmax(0, 1fr); }
.tlrow__text { max-width: 44rem; }
.tlrow--now .tlrow__year { font-style: italic; color: var(--gold-ink); }
.section--black .tlrow--now .tlrow__year, .section--burgundy .tlrow--now .tlrow__year { color: var(--gold); }
.section--black .tlrow__text, .section--burgundy .tlrow__text { color: var(--on-dark-body); }

/* ---------- Tada / Danas grid (cards: story.css) ---------- */
.tada-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-32); min-height: 300px; }

/* ---------- Certificates split (ORBIS 02): text left, 2 × 2 certificate cards right ---------- */
.qsplit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.qsplit__text p { margin: 0; }
.egrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-24); }
.egrid .ecard { height: 100%; }
.section--burgundy .ecard { background: rgba(21, 17, 15, 0.42); border-color: rgba(201, 162, 77, 0.28); }
.section--burgundy .ecard:hover { border-color: var(--gold); }
.ecard__text { color: var(--on-dark-body); }
.section--cream .ecard__text, .section--white .ecard__text { color: var(--ink-body); }

/* ---------- Kvalitet: own seed varieties ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--sp-32); }
.vcard { display: grid; gap: var(--sp-8); align-content: start; padding: var(--sp-32) 0; border-top: 1px solid var(--line-light-strong); }
.vcard__code { font-size: 1rem; font-weight: var(--fw-semibold); letter-spacing: 0.1em; color: var(--gold-ink); }
.vcard__name { font-size: var(--t-h3); font-weight: var(--fw-regular); }
.vcard__meta { font-size: var(--t-card-body); color: var(--ink-body); }

/* ---------- Business cards (kontakt, gde-kupiti, novosti, za-partnere; premium 10 item 10) ----------
   Core look (rows, watermark, cream variant) lives in components.css; here only the grids and page variants. */
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-32); }
.bgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bcard { align-content: start; }
.bcard__name { font-size: clamp(1.875rem, 1.6rem + 0.8vw, 2.25rem); }
.bcard__lines a, .bcard__row { overflow-wrap: break-word; } /* e-mails break after the „@“ (<wbr>), never mid-word */
.bcard__lines a > span, .bcard__row > span { min-width: 0; }
.bcard__note { display: block; font-size: 0.9375rem; color: var(--on-dark-body); }
.bcard--cream .bcard__note { color: var(--ink-body); }
.bcard__row { margin: 0; font-style: normal; }
.bcard__row .icon { flex: none; width: 24px; height: 24px; color: var(--gold); }
.bcard--cream .bcard__row .icon { color: var(--gold-ink); }
.bcard__lines > :last-child { border-bottom: 0; }
.section--black .bcard, .section--burgundy .bcard { border: 1px solid var(--line-dark-soft); }
.bcard--lead { background: linear-gradient(135deg, var(--ground-burgundy) 0%, var(--ground-burgundy-deep) 75%); }

/* Contact business cards (ORBIS 22, premium 2): the Vitamin logo as a faint watermark cropped by the right edge,
   the cream variant uses the red logo */
.bcard--logo::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -18%;
  width: min(78%, 340px);
  aspect-ratio: 346 / 240;
  background: url("../assets/logo-white@2x.png") center / contain no-repeat;
  opacity: 0.07;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}
.bcard--logo.bcard--cream::before { background-image: url("../assets/logo-transparent@2x.png"); opacity: 0.06; }

/* kontakt: the head-office card (flyer data) with the click-to-load map attached on the right, then the departments */
.bvisit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--sp-32), 4vw, var(--sp-64)); align-items: stretch; }
.bvisit + .bgrid { margin-top: var(--sp-32); }
.bvisit.bcard--logo::before { top: auto; right: auto; bottom: -48px; left: -64px; width: 300px; transform: rotate(-8deg); }
.bvisit:not(.bcard--cream) .bvisit__map.map { border-color: var(--line-dark-soft); }
.bvisit__text { display: grid; gap: var(--sp-16); align-content: start; }
.bvisit__hours span > span:first-child { font-weight: var(--fw-semibold); }
.bvisit .bcard__note { font-size: 1rem; }
.bvisit__map { min-height: 360px; }

/* za-partnere: one card per partner type, with its own outlined CTA */
.pcards .bcard { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; }
.pcard__lead { font-size: var(--t-card-body); line-height: 1.65; color: var(--on-dark-body); }
.pcard__list { display: grid; border-top: 1px solid var(--line-dark-soft); }
.pcard__list li { display: flex; align-items: baseline; gap: var(--sp-12); padding: var(--sp-12) 0; border-bottom: 1px solid var(--line-dark-soft); font-size: var(--t-card-body); color: var(--on-dark); }
.pcard__list li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--gold); transform: translateY(-3px); }
.pcard__cta { align-self: end; justify-self: stretch; justify-content: space-between; max-width: 100%; margin-top: var(--sp-8); white-space: normal; text-align: left; }
.pcards__more { margin-top: var(--sp-32); font-size: var(--t-card-body); color: var(--ink-body); }
.pcards__more a { color: var(--ink); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--gold-ink); text-underline-offset: 4px; }

/* other numbers (kontakt): hairline rows on cream */
.dirbox { margin-top: var(--sp-64); }
.dirbox__title { margin-bottom: var(--sp-16); font-size: var(--t-h3); }
.dirlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-48); border-top: 1px solid var(--line-light); }
.dirlist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4) var(--sp-16); min-height: 64px; padding: var(--sp-12) 0; border-bottom: 1px solid var(--line-light); }
.dirlist__label { color: var(--ink-body); }
.dirlist a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: var(--fw-semibold); color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line-light-strong); text-underline-offset: 5px; }
.dirlist a:hover { text-decoration-color: var(--gold-ink); }

/* ---------- Forms: contact and partner (light panel on a dark section, or plain on cream) ---------- */
.fpanel__note { max-width: 40rem; font-size: var(--t-card-body); color: var(--ink-body); }
.cform { width: 100%; }
.csplit { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--sp-48), 6vw, var(--sp-96)); }
.csplit__aside { display: grid; gap: var(--sp-24); align-content: start; justify-items: start; }
.csplit__aside > * { margin: 0; }
.csplit__lines { width: 100%; max-width: 26rem; border-top: 1px solid var(--line-dark-soft); }
.cform__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-16) var(--sp-24); }
.cform__promise { display: flex; align-items: center; gap: var(--sp-8); margin: 0; font-size: 1.125rem; font-weight: var(--fw-semibold); color: var(--ink); }
.cform__promise::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--gold-ink); }
.fpanel {
  padding: var(--sp-48);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--warm-white);
  color: var(--ink-body);
}
.fpanel .fpanel__note { margin-bottom: var(--sp-32); }
.fpanel .check { color: var(--ink-body); }
.fpanel .field__error { color: #A3141A; }
.fpanel :focus-visible { outline-color: var(--gold-ink); }
.fsplit__text { display: grid; gap: var(--sp-24); justify-items: start; }
.fsplit__text > * { margin: 0; }
.fsplit__aside { gap: var(--sp-32); }
.fsplit__card { width: 100%; }
.form__status--err { display: flex; align-items: center; gap: var(--sp-12); padding: var(--sp-16) var(--sp-24); border-left: 3px solid #A3141A; background: var(--warm-white); color: #A3141A; font-weight: var(--fw-semibold); }
.form__status--err .icon { width: 20px; height: 20px; flex: none; }
.section--white .form__status--err { background: var(--cream); }
.req { color: #A3141A; }

/* success state (main.js successHTML): drawn check mark */
.success { padding: var(--sp-48) var(--sp-24); border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--warm-white); color: var(--ink-body); }
.success .success__mark { width: 88px; height: 88px; border: 0; color: var(--gold-ink); }
.success__mark circle, .success__mark path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 800ms var(--ease-out) forwards; }
.success__mark path { animation-delay: 500ms; }
.success__title { font-family: var(--font-serif); font-weight: var(--fw-light); line-height: 1.1; color: var(--ink); }
.success a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Map (kontakt): click-to-load facade ---------- */
.map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--ground-black); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 162, 77, 0.28) 0 6px, transparent 7px),
    radial-gradient(circle at 50% 45%, transparent 0 22px, rgba(201, 162, 77, 0.35) 23px 24px, transparent 25px),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(245, 240, 232, 0.06) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(245, 240, 232, 0.06) 47px 48px),
    var(--ground-black);
}
.map__facade.is-loaded { background: none; }
.map__facade.is-loaded .map__load { display: none; }
.map__load { margin-top: 120px; }
.bvisit__map.map { aspect-ratio: auto; border-color: var(--line-light-strong); }

/* ---------- Company facts (kontakt, cream): shared hairline table, row labels ---------- */
.cofacts { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cofacts__aside { display: grid; gap: var(--sp-24); align-content: start; justify-items: start; }
.cofacts__aside > * { margin: 0; }
.cofacts__table th { width: 13rem; }
.cofacts__table td { overflow-wrap: break-word; }
.cofacts__table a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-light-strong); text-underline-offset: 5px; transition: text-decoration-color var(--dur-hover); }
.cofacts__table a:hover { text-decoration-color: var(--gold-ink); }
.section--cream .social-btn { border-color: var(--line-light-strong); color: var(--ink); }
.section--cream .social-btn:hover { border-color: var(--gold-ink); color: var(--gold-ink); }

/* ---------- News ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-32); align-items: start; }
.ngrid > .ncard:first-child { grid-column: span 2; grid-row: span 2; }
.ncard { scroll-margin-top: calc(var(--header-h) + var(--sp-24)); }
.ncard:focus { outline: none; }
.ncard.is-target, .ncard:target { border-color: var(--gold-ink); box-shadow: 0 0 0 1px var(--gold-ink); }
.ncard__media--plate { display: grid; place-items: center; margin: var(--sp-12) var(--sp-12) 0; border-radius: calc(var(--radius) - 2px); background: var(--plate); }
.ncard__media--plate picture, .ncard__media--plate img { width: auto; height: 78%; object-fit: contain; }
.ngrid > .ncard:first-child .ncard__media--plate { aspect-ratio: 21 / 9; }
.ncard__body { gap: var(--sp-16); padding: var(--sp-32); }
.ncard__text { display: grid; gap: var(--sp-12); font-size: var(--t-card-body); color: var(--ink-body); }
.ncard__text p + p { margin-top: 0; }
.ncard .link-more { justify-self: start; }
.ncard--press { align-self: stretch; }
.ncard--press .bcard__name { font-size: var(--t-h3); }

/* ---------- Gde kupiti: retail note ---------- */
.retail__note { display: grid; gap: var(--sp-16); max-width: 46rem; padding: var(--sp-32); border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--warm-white); }
.retail__note p + p { margin-top: 0; }
.retail__call { display: flex; flex-wrap: wrap; gap: var(--sp-12); }
/* a phone number or an e-mail address reads in its own case, and a long address wraps after the „@“ on phones */
.retail__call .btn { max-width: 100%; height: auto; min-height: var(--btn-h); text-transform: none; letter-spacing: 0.02em; font-size: 1.0625rem; white-space: normal; overflow-wrap: break-word; }
.retail__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line-light); }
.retail__list li { padding: var(--sp-16) 0; border-bottom: 1px solid var(--line-light); font-family: var(--font-serif); font-size: var(--t-card); color: var(--ink); }

/* ---------- Za partnere: route-like numbered steps ---------- */
.proute .numcol__text a { color: var(--ink); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--line-light-strong); text-underline-offset: 4px; white-space: nowrap; }

/* ---------- Recepti: search + groups ---------- */
.rlist .section__head { margin-bottom: var(--sp-48); }
.rtools { display: grid; gap: var(--sp-32); margin-bottom: var(--sp-48); padding-bottom: var(--sp-32); border-bottom: 1px solid var(--line-light); }
.rtools__search { max-width: 40rem; }
.rtools__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-12); }
.rtools__row .input { -webkit-appearance: none; appearance: none; }
.rtools__btn .icon { width: 20px; height: 20px; }
.rtools__groups { display: grid; gap: var(--sp-8); }
/* premium 2: the same labels and squared filter buttons as the product catalogue (catalog.css .toolbar) */
.rtools .field__label { font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }
.rtools .seg { display: flex; flex-wrap: wrap; gap: var(--sp-8); padding: 0; border: 0; background: none; }
.rtools .seg > .seg__pill { display: none; }
.rtools .seg > button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: var(--tap);
  padding: 0 var(--sp-16);
  border: 1px solid var(--line-light-strong);
  border-radius: var(--radius);
  background: var(--warm-white);
  font-size: 1.0625rem;
  transition: border-color var(--dur-hover), background-color var(--dur-hover), color var(--dur-hover);
}
.rtools .seg > button:hover { border-color: var(--ink); }
.rtools .seg > button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.rtools .seg .muted { font-size: 0.875rem; font-weight: var(--fw-semibold); opacity: 1; color: var(--gold-ink); }
.rtools .seg [aria-pressed="true"] .muted { color: var(--gold); }
.rlist__intro { margin-bottom: var(--sp-24); max-width: 46rem; font-size: var(--t-lead); line-height: 1.55; color: var(--ink-body); }
.rlist__intro strong { font-weight: var(--fw-semibold); color: var(--ink); }
.rlist__note { margin-bottom: var(--sp-32); font-size: var(--t-card-body); color: var(--ink-body); }
#recipes { min-height: 60vh; }

/* ---------- Recept: hero facts, ingredients card, numbered steps ---------- */
.rhero .phero__title { max-width: 20ch; }
.rhero .eyebrow a { color: inherit; text-decoration: underline; text-decoration-color: rgba(201, 162, 77, 0.5); text-underline-offset: 5px; }
.rhero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-8) var(--sp-32); margin-top: var(--sp-8); font-size: 1.0625rem; color: var(--on-dark-body); }
.rhero__meta li { display: inline-flex; align-items: center; gap: var(--sp-8); }
.rhero__meta .icon { color: var(--gold); }
.recipe__grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(var(--sp-48), 6vw, var(--sp-96)); align-items: start; }
.ingredients { position: sticky; top: calc(var(--header-h) + var(--sp-24)); display: grid; gap: var(--sp-12); padding: var(--sp-32); border: 1px solid var(--line-light); border-radius: var(--radius); background: var(--warm-white); }
.ing-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-16); }
.ing-head h2 { font-size: var(--t-h3); }
.ing-progress { font-size: 1rem; font-weight: var(--fw-semibold); color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.ingredients .field__hint { margin: 0; }
.ing-group { margin-top: var(--sp-16); font-family: var(--font-sans); font-size: var(--t-eyebrow); font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }
.ing-list { display: grid; border-top: 1px solid var(--line-light); }
.ing-list li { border-bottom: 1px solid var(--line-light); }
.ing-list .check { align-items: center; min-height: 52px; padding: var(--sp-8) 0; font-size: 1.125rem; color: var(--ink); }
.ing-list .check input:checked + span { text-decoration: line-through; text-decoration-color: var(--gold-ink); color: var(--ink-body); }
.brand { font-weight: var(--fw-semibold); }
.ing-reset { justify-self: start; margin-top: var(--sp-8); }
.rprod { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--sp-16); align-items: center; margin-top: var(--sp-16); padding-top: var(--sp-24); border-top: 1px solid var(--line-light); }
.rprod__stage { position: relative; display: grid; place-items: center; width: 112px; height: 112px; border-radius: var(--radius); background: var(--plate); overflow: hidden; }
.rprod__stage picture, .rprod__stage img { width: 84%; height: 84%; object-fit: contain; }
.rprod__label { font-size: 0.875rem; font-weight: var(--fw-semibold); letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: var(--gold-ink); }
.rprod__title { margin: 4px 0 var(--sp-12); font-size: 1.375rem; line-height: 1.2; }
.rprod__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rsteps { display: grid; gap: var(--sp-16); justify-items: start; }
.steps-list { width: 100%; margin-top: var(--sp-16); border-top: 1px solid var(--line-light); }
.steps-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--sp-24); align-items: baseline; padding: var(--sp-32) 0; border-bottom: 1px solid var(--line-light); }
.steps-list__num { font-family: var(--font-serif); font-size: 2.5rem; font-weight: var(--fw-light); line-height: 1; color: var(--gold-ink); font-variant-numeric: lining-nums tabular-nums; }
.steps-list p { max-width: 40rem; font-size: 1.1875rem; line-height: 1.7; color: var(--ink); }
.recipe__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-12) var(--sp-24); margin-top: var(--sp-24); }
.rnf { gap: var(--sp-24); }
.rnf__groups { justify-content: center; }

/* product cards are light: keep their own ink colours inside dark sections (recept „U ovom receptu“) */
.section--black .pcard { color: var(--ink-body); }
.section--black .pcard :is(h3, .pcard__title) { color: var(--ink); }
.section--black .pcard .link-more { color: var(--gold-ink); }
.section--black .pcard .btn--line { border-color: var(--ink); color: var(--ink); }
.section--black .pcard .btn--line:hover { background: var(--ink); color: var(--cream); }
.section--black .pcard .chip, .section--black .pcard__packs li { color: var(--ink); }
.section--black .pcard :focus-visible { outline-color: var(--gold-ink); }

/* ---------- 404 ---------- */
.nf-hero { min-height: 100svh; }
.nf-hero .phero__actions { margin-top: var(--sp-16); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .qsplit, .csplit, .cofacts, .bvisit { grid-template-columns: minmax(0, 1fr); }
  .bvisit__map.map { min-height: 0; aspect-ratio: 4 / 3; }
  .tada-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgrid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd last card takes the full row, no orphan */
  .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .counters--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe__grid { grid-template-columns: minmax(0, 1fr); }
  .ingredients { position: static; }
  .tlrow { grid-template-columns: 48px 150px minmax(0, 1fr); }
  .about-counters, .q-counters { margin-top: var(--sp-64); }
  .mwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .dirlist { grid-template-columns: minmax(0, 1fr); }
  .ngrid { grid-template-columns: minmax(0, 1fr); }
  .ngrid > .ncard:first-child { grid-column: auto; }
  .ngrid > .ncard:first-child .ncard__media--plate { aspect-ratio: 16 / 10; }
  .fpanel { padding: var(--sp-32) var(--sp-24); }
}
@media (max-width: 700px) {
  .cofacts__table tr { display: grid; gap: var(--sp-4); }
  .cofacts__table th { padding: var(--sp-12) 0 0; border: 0; }
  .cofacts__table td { display: block; padding-top: 0; }
  .mbox { align-items: flex-start; }
  .mbox__fig { padding: 88px var(--sp-16) 112px; }
  .mbox__img { max-height: calc(100svh - 360px); }
  .mbox__close { top: var(--sp-16); right: var(--sp-16); }
  .mbox__prev, .mbox__next { position: fixed; top: auto; bottom: var(--sp-24); }
  .mbox__prev { left: calc(50% - 76px); }
  .mbox__next { right: calc(50% - 76px); }
}
@media (max-width: 640px) {
  .mwall { grid-template-columns: minmax(0, 1fr); gap: var(--sp-48); }
  .tada-grid, .vgrid, .egrid, .bgrid--3, .counters--3 { grid-template-columns: minmax(0, 1fr); }
  .tlrow { grid-template-columns: minmax(0, 1fr); }
  .cofacts__table th { width: auto; }
  .ncard__body { padding: var(--sp-24); }
  .steps-list li { grid-template-columns: 52px minmax(0, 1fr); gap: var(--sp-16); }
  .steps-list__num { font-size: 2rem; }
  .ingredients { padding: var(--sp-24); }
  .rtools__row { grid-template-columns: minmax(0, 1fr); }
  .rtools .seg > button { flex: 1 1 auto; }
  .mill__stones { width: 72px; height: 72px; }
  .phero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mill__stone--top, .mill__dust i { animation: none; }
  .mbox, .mwall__media, .mwall__zoom, .mbox__btn { transition: none; }
  .success__mark circle, .success__mark path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Print (recipes) ---------- */
@media print {
  #site-header, #site-footer, .asst, .asst-fab, .to-top, .preloader, .crumbs, .phero__actions, .phero__media, .recipe__actions, .ing-reset,
  .rprod, #r-products-sec, #r-more-sec, .btn-row, .rtools { display: none !important; }
  body { background: #fff; color: #000; }
  .phero, .section { min-height: 0 !important; margin: 0 !important; padding: 12pt 0 !important; background: #fff !important; color: #000 !important; }
  .phero::after { display: none; }
  .phero__title { color: #000; font-size: 26pt; }
  .phero__lead, .lead, .eyebrow, .eyebrow a, .rhero__meta { color: #333 !important; }
  .js [data-reveal], .js .hseq, .js .is-split .hw > span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .recipe__grid { grid-template-columns: 1fr 1.5fr; }
  .ingredients, .steps-list li { position: static; border-color: #bbb; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
