/* ============================================================
   Ketering Beograd KBGD — one-motif direction
   The plate: olive on bone, Bricolage Grotesque
   ============================================================ */

:root {
  --bg: #ecebe7;
  --surface: #e1dfd9;
  --ink: #38450f;
  --muted: #5d683a;
  --field: #38450f;
  --field-ink: #ecebe7;
  --bone: #ecebe7;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(4rem, 6.4vw, 6.5rem);

  --margin: clamp(1.25rem, 4vw, 3.5rem);
  --section-space: clamp(6rem, 4rem + 6vw, 10rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.15; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 999px; }

::selection { background: var(--ink); color: var(--bone); }

/* ---------- the one button (a plate seen from the side) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 1rem 2.4rem;
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 500;
  color: var(--bone);
  background: var(--field);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms;
}
.btn:hover { transform: scale(1.04); color: var(--bone); }
.btn:active { transform: scale(0.98); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-line:hover { color: var(--muted); }

/* ---------- hero: the giant plate ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-shape {
  position: absolute;
  width: 130vh;
  height: 130vh;
  border-radius: 50%;
  background: var(--field);
  left: calc(78% - 65vh);
  top: calc(55% - 65vh);
}

.hero-plate {
  position: absolute;
  margin: 0;
  width: 62vh;
  height: 62vh;
  left: calc(78% - 31vh);
  top: calc(55% - 31vh);
}
.hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 50%;
}
html.js .hero-plate img {
  clip-path: circle(0% at 50% 50%);
  transform: scale(1.12);
  animation: shutter 1.15s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}
@keyframes shutter {
  to { clip-path: circle(50% at 50% 50%); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero-plate img { clip-path: none; transform: none; animation: none; }
}

.hero-bar {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.5rem);
  left: var(--margin);
  right: var(--margin);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
}
.wordmark {
  font-size: var(--step-lead);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}
.hero-links { display: flex; gap: 1.75rem; }
.hero-links a { font-size: var(--step-body); font-weight: 500; text-decoration: none; }
.hero-links a:hover { text-decoration: underline; }

.hero-copy {
  position: relative;
  max-width: 44%;
  padding-left: var(--margin);
  padding-block: 7rem 4rem;
}
.hero h1 {
  font-size: var(--step-display);
  margin-bottom: 1.75rem;
}
.hero-sentence {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  max-width: 34ch;
  margin-bottom: 2.5rem;
}

@media (max-width: 56rem) {
  .hero { display: block; }
  .hero-shape {
    width: 135vw;
    height: 135vw;
    left: calc(50% - 67.5vw);
    top: 58svh;
  }
  .hero-plate {
    width: 62vw;
    height: 62vw;
    left: calc(50% - 31vw);
    top: calc(58svh + 10vw);
  }
  .hero-bar {
    position: absolute;
    inset: auto 1.25rem auto;
    top: 1.25rem;
  }
  .hero-links { gap: 1.25rem; }
  .hero-links a:not(:last-child) { display: none; }
  .hero-copy {
    max-width: none;
    padding: 14svh 1.25rem 0;
  }
  .hero h1 { font-size: 11.5vw; }
}

/* ---------- intro: statement with plate thumbnails ---------- */

.intro {
  padding-block: 16vh;
  padding-inline: var(--margin);
  display: flex;
  justify-content: center;
  text-align: center;
}

.statement {
  max-width: 62ch;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.thumb {
  display: inline-block;
  width: 1.5em;
  height: 0.85em;
  object-fit: cover;
  border-radius: 999px;
  vertical-align: -0.12em;
  margin-inline: 0.1em;
}

/* ---------- work: stacked folders ---------- */

.work { padding-block: 0 var(--section-space); padding-inline: var(--margin); }
.work h2 { font-size: var(--step-head); margin-bottom: 3rem; }

.folders { display: flex; flex-direction: column; }

.folder { position: relative; }

@media (min-width: 56.01rem) {
  .folder { position: sticky; top: calc(1rem + var(--stack) * 64px); }
}

.folder-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 44px;
  margin-bottom: -1px;
  padding: 0.5rem 1.5rem;
  background: var(--field);
  color: var(--bone);
  text-decoration: none;
  clip-path: polygon(0 14px, 14px 0, 100% 0, 100% 100%, 0 100%);
  transition: background-color 200ms;
}
.folder-tab:hover { background: var(--muted); color: var(--bone); }
.folder-name { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.folder-kind { font-size: var(--step-small); opacity: 1; }

.folder-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
  background: var(--surface);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.folder-body img {
  width: min(100%, 52vh);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.folder-text p { font-size: var(--step-body); max-width: 38ch; margin-bottom: 1.25rem; }
.text-link { font-weight: 600; }

@media (max-width: 56rem) {
  .folder { position: relative; }
  .folder-tab { clip-path: polygon(0 10px, 10px 0, 100% 0, 100% 100%, 0 100%); }
  .folder-body { grid-template-columns: 1fr; }
}

/* ---------- proof: tile board ---------- */

.proof { padding-block: 0 var(--section-space); padding-inline: var(--margin); }

.tile-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tile {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
}
.tile h3 { font-size: var(--step-lead); margin-bottom: 0.9rem; }
.tile p { font-size: var(--step-body); color: var(--muted); }
.tile .text-link { font-size: var(--step-body); margin-top: auto; }

.tile-lead {
  grid-column: span 2;
  background: var(--field);
  color: var(--bone);
  justify-content: flex-start;
}
.tile-lead h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0; }

.tile-note { background: var(--bg); padding-left: 0; }
.tile-note p {
  font-size: var(--step-lead);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

@media (max-width: 56rem) {
  .tile-board { grid-template-columns: 1fr 1fr; }
  .tile-lead { grid-column: span 2; min-height: 8rem; }
  .tile { min-height: 0; }
}

/* ---------- menu: two columns, plate bullets ---------- */

.menu { padding-block: 0 var(--section-space); padding-inline: var(--margin); }

.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2.5rem; margin-bottom: 1rem; }
.menu-head h2 { margin: 0; }
.menu-note { color: var(--muted); margin: 0; }

.menu-sheet {
  background: var(--surface);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.menu-cat { margin-bottom: 5.5rem; }
.menu-cat h3 {
  font-size: var(--step-head);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.menu-cat h3 span {
  font-size: var(--step-body);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.menu-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem 4rem;
}

.menu-item { display: flex; gap: 1rem; }
.menu-item .dot {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--field);
}
.menu-dish { display: block; font-weight: 600; font-size: var(--step-body); }
.menu-price { float: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-price::after { content: " RSD"; font-weight: 400; font-size: var(--step-small); color: var(--muted); }
.menu-item p { font-size: var(--step-small); color: var(--muted); margin-top: 0.35rem; max-width: 38ch; clear: both; }

.menu-calc {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.menu-calc label { font-weight: 600; }
.menu-calc input {
  font-family: var(--font);
  font-size: var(--step-body);
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  width: 6rem;
  font-variant-numeric: tabular-nums;
}
.menu-calc input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.menu-total { margin: 0; }
.menu-total strong { font-variant-numeric: tabular-nums; }

.menu-foot { margin-top: 1.25rem; color: var(--muted); }
.menu-foot a { color: var(--ink); font-weight: 600; }

@media (max-width: 56rem) {
  .menu-panel { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- process: accordion of olive tints ---------- */

.process { padding-block: 0 var(--section-space); padding-inline: var(--margin); }

.process-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2rem clamp(2rem, 2rem + 3vw, 5rem);
  align-items: end;
  margin-bottom: 4rem;
}
.process-intro h2 { margin: 0; }
.process-intro p { font-size: var(--step-body); margin: 0; max-width: 44ch; }

.accordion { display: flex; gap: 0; min-height: 520px; }

.stage {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: var(--tint);
  color: var(--tint-ink);
  min-width: 0;
  transition: flex-grow 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.stage.is-open { flex-grow: 3.5; }

.stage-tab {
  font-family: var(--font);
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  padding: 1.25rem;
  min-height: 44px;
  cursor: pointer;
  text-align: start;
  align-self: flex-start;
}
.stage-tab span {
  display: block;
  font-size: var(--step-body);
  font-weight: 600;
}
.stage:not(.is-open) .stage-tab span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--step-lead);
}
.stage-tab:focus-visible { outline-color: currentColor; }

.stage-body {
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  flex: 1;
}
.stage-body[hidden] { display: none; }
.stage-body h3 { font-size: var(--step-lead); margin-bottom: 1rem; }
.stage-body p { font-size: var(--step-body); max-width: 36ch; }
.stage-body img {
  width: clamp(10rem, 16vw, 15rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 56rem) {
  .accordion { flex-direction: column; min-height: 0; }
  .stage { flex: 1 1 auto; }
  .stage-tab span,
  .stage:not(.is-open) .stage-tab span {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: var(--step-body);
  }
  .stage-tab { align-self: stretch; min-height: 64px; display: flex; align-items: center; }
  .stage-body { grid-template-columns: 1fr; padding: 0 1.25rem 1.5rem; }
  .stage-body[hidden] { display: none; }
  .stage-body img { width: 9rem; }
}

/* ---------- live: square plate ---------- */

.live {
  padding-block: 0 var(--section-space);
  padding-inline: var(--margin);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: center;
}

.live-photo { margin: 0; }
.live-photo img {
  width: min(100%, 34rem);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 50%;
}

.live-tabs { display: flex; gap: 1.75rem; margin-bottom: 1.75rem; }
.live-tabs button { color: var(--muted); }
.live-tabs button:hover, .live-tabs button.is-active { color: var(--ink); }

.live h2 { margin-bottom: 1rem; }
.live p { max-width: 40ch; }

.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.live-actions .btn { flex: 1 1 12rem; }

@media (max-width: 56rem) {
  .live { grid-template-columns: 1fr; }
}

/* ---------- contact: clip-out coupon ---------- */

.contact {
  padding-block: 4rem var(--section-space);
  padding-inline: var(--margin);
}

.coupon {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--field);
  color: var(--bone);
  clip-path: url(#notch);
  padding: clamp(2rem, 1.5rem + 3vw, 4rem) 0;
}
.coupon-left {
  padding: 0 clamp(1.5rem, 1rem + 2vw, 3rem) 0 var(--margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.coupon-left h2 { font-size: clamp(1.75rem, 1rem + 2vw, 2.25rem); margin: 0; }
.coupon-left p { margin: 0; color: var(--bone); max-width: 30ch; }

.coupon-right {
  padding: 0 var(--margin) 0 clamp(1.5rem, 1rem + 2vw, 3rem);
  display: grid;
  gap: 10px;
  align-content: center;
  border-left: 5px dotted var(--bg);
}
.coupon-right input {
  font-family: var(--font);
  font-size: var(--step-body);
  color: var(--bone);
  background: oklch(0.42 0.07 115);
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 1.4rem;
  transition: background-color 200ms;
}
.coupon-right input::placeholder { color: oklch(0.78 0.04 115); }
.coupon-right input:focus {
  outline: 3px solid var(--bone);
  outline-offset: 2px;
  background: oklch(0.46 0.08 115);
}
.coupon-submit {
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 600;
  color: var(--field);
  background: var(--bone);
  border: 0;
  border-radius: 999px;
  min-height: 56px;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.coupon-submit:hover { transform: scale(1.02); }
.coupon-submit:active { transform: scale(0.98); }
.coupon-status { min-height: 1.4em; font-size: var(--step-small); margin: 0; color: var(--bone); }
.coupon-status a { color: var(--bone); }

.contact-small { margin-top: 2rem; text-align: center; color: var(--muted); }
.contact-small a { color: var(--ink); font-weight: 600; }

@media (max-width: 56rem) {
  .coupon {
    grid-template-columns: 1fr;
    margin-inline: 0;
    padding: 0;
  }
  .coupon-left { padding: 2rem 1.25rem 1.75rem; }
  .coupon-left p { margin-top: 1rem; }
  .coupon-right { padding: 0 1.25rem 2rem; }
}

/* ---------- footer: olive field ---------- */

.footer {
  background: var(--field);
  color: var(--bone);
  padding: clamp(4rem, 3rem + 4vw, 7rem) var(--margin) 4rem;
}
.footer-inner { max-width: 64rem; }

.footer-name {
  font-size: var(--step-display);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.footer-motto {
  font-size: var(--step-lead);
  font-weight: 500;
  max-width: 24ch;
  margin-bottom: 3rem;
}
.footer address { font-style: normal; line-height: 1.8; font-size: var(--step-body); }
.footer address a { color: var(--bone); }
.footer address a:hover { color: var(--bone); text-decoration-thickness: 0.15em; }

/* ---------- reveal (only with JS) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
