:root {
  --bg: #f3eadf;
  --surface: #fdf8f2;
  --text: #36211a;
  --muted: #7a6157;
  --accent: #5c3a2e;
  --accent-text: #ffffff;
  --accent-ink: #5c3a2e;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ==========================================================================
   Direction "togo" — coffee to go, built like the paper cup. Cream paper,
   a serif for headings, one cocoa-dark accent. Signature moves: the round
   label (thick dark ring, the name running around it, the photo inside), the
   corrugated sleeve band under the hero and above the footer, prices as round
   lids, the Google rating as a stamp, reviews as perforated tickets, gallery
   frames arched like a cup. No shadows, no gradients except the sleeve ribs.

   Tokens from new_site.py: --bg --surface --text --muted --accent --accent-text
                            --accent-ink --font-heading --font-body
   Type scale (mobile → desktop), details in NOTES.md:
     h1      clamp(2.75rem, 1.7rem + 4.8vw, 5.5rem)   600, lh 1, -.02em (serif)
     lead    clamp(1.0625rem, 1rem + .4vw, 1.25rem)   body, muted
     h2      clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem)  600 (serif)
     h3      1.25rem / 600 (serif); body 1rem / 1.6; caps .72rem .16em
   Spacing: 8px steps, section padding clamp(3.5rem, 8vw, 6.5rem).
   ========================================================================== */

:root {
  --s1: .5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;  --s5: 2.5rem;
  --s6: 3rem;   --s8: 4rem;  --s10: 5rem;   --s12: 6rem;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --container: 1180px;
  --measure: 34em;
  --r: 1rem;
  --hair: 1px solid rgb(0 0 0 / .14);
  --rib: rgb(0 0 0 / .07);
  --tint: var(--surface);
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  :root {
    --hair: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    --rib: color-mix(in srgb, var(--text) 9%, transparent);
    --tint: color-mix(in srgb, var(--accent) 8%, var(--bg));
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--page-pad), var(--container)); margin-inline: auto; }

/* Spaced small caps. */
.kicker, .label-caps {
  margin: 0 0 .75rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Inline SVG patterns; the parent is position:relative + overflow:hidden. */
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------------------------------------------------------------- header */
.site-header { padding-block: .75rem; }

.header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem var(--s2);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; min-width: 0; min-height: 44px; text-decoration: none; }

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: 1.3rem;
}
.brand-mark--img { padding: 0; object-fit: cover; }

.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1.1;
}

.header-phone {
  display: none;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Navigation: spaced caps, one scrolling strip on phones. */
.nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 1.1rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.5rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn-call { background: var(--accent); color: var(--accent-text); }

.hero-actions, .contacts-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ----------------------------------------------------------------- hero */
.hero { padding-block: var(--s5) var(--s6); }
.hero-grid { display: grid; gap: var(--s6); align-items: center; }

.hero-title {
  margin: 0 0 var(--s2);
  font-size: clamp(2.75rem, 1.7rem + 4.8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 26em;
  margin: 0 0 var(--s4);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

/* The cup label: ring text around a dark circle, photo inside. */
.label { position: relative; width: min(100%, 24rem); aspect-ratio: 1; margin-inline: auto; }
.label-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.label-text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  fill: var(--text);
}
.label-inner {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  border: 6px solid var(--text);
}
.label-img { width: 100%; height: 100%; object-fit: cover; }
.label-fill { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; color: var(--accent-text); }
.label-initial { font-family: var(--font-heading); font-size: clamp(6rem, 24vw, 9rem); line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .label-ring { animation: spin 80s linear infinite; transform-origin: 50% 50%; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* --------------------------------------------------------------- sleeve */
/* The corrugated band: thin vertical ribs, like a cup sleeve. */
.sleeve {
  border-block: 2px solid var(--text);
  background: repeating-linear-gradient(90deg, var(--rib) 0 2px, transparent 2px 9px), var(--surface);
}
.sleeve--footer { height: 2.25rem; }
.sleeve-row { display: grid; gap: 0; }
.sleeve-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  padding: .8rem 0;
  border-bottom: var(--hair);
  margin: 0;
}
.sleeve-cell:last-child { border-bottom: 0; }
.sleeve-key { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sleeve-val { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- sections */
.section { padding-top: var(--section-pad); }
.contacts-section { padding-bottom: var(--section-pad); }

.section-head { margin: 0 0 var(--s5); }
.section-title { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.1; letter-spacing: -.015em; }
.section-title::after { content: ""; display: block; width: 3rem; height: 2px; margin-top: .9rem; background: var(--accent); }

/* ---------------------------------------------------------------- items */
.items { display: grid; gap: var(--s3); }
.item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding: var(--s3) 0;
  border-top: var(--hair);
}

/* The lid: a round dark badge with the price. */
.lid {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: .3rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.lid--dot { width: 1rem; height: 1rem; margin-top: .55rem; padding: 0; }
.item-name { font-size: 1.25rem; line-height: 1.25; }
.item-desc { max-width: 44em; margin-top: .4rem; font-size: .95rem; color: var(--muted); }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; gap: var(--s5); }
.about-text { max-width: var(--measure); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.6; }
.about-side { display: grid; gap: var(--s4); align-content: start; }

/* The stamp: a double ring with the rating inside. */
.stamp {
  display: grid;
  place-items: center;
  gap: .15rem;
  width: 10.5rem;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 4px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  transform: rotate(-6deg);
}
.stamp-value { font-family: var(--font-heading); font-size: 2.75rem; line-height: 1; letter-spacing: -.03em; }
.stamp-label { max-width: 7.5rem; font-size: .68rem; font-weight: 600; letter-spacing: .06em; line-height: 1.25; text-transform: uppercase; }

.stars { display: inline-flex; gap: .1rem; }
.star { width: .95rem; height: .95rem; fill: rgb(0 0 0 / .16); }
@supports (color: color-mix(in srgb, red 50%, transparent)) { .star { fill: color-mix(in srgb, var(--text) 18%, transparent); } }
.star--on { fill: var(--accent); }

.facts { display: grid; border-top: var(--hair); }
.fact { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: var(--hair); font-weight: 500; }
.fact::before { content: ""; flex: none; width: .75rem; height: .75rem; margin-top: .5rem; border: 2px solid var(--accent); border-radius: 50%; }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; gap: 0; border-top: var(--hair); }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: var(--hair); }
.step-num { display: grid; place-items: center; grid-row: 1 / 3; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-family: var(--font-heading); font-size: 1.2rem; }
.step-name { font-size: 1.25rem; line-height: 1.25; }
.step-desc { grid-column: 2; font-size: .95rem; color: var(--muted); }

/* -------------------------------------------------------------- reviews */
/* Tickets: a dashed perforation, a round stamp with the mark. */
.tickets { display: grid; gap: var(--s3); }
.ticket {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: var(--s3);
  border: 1.5px dashed var(--accent);
  border-radius: var(--r);
  background: var(--surface);
}
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.ticket .star { width: 1.05rem; height: 1.05rem; }
.ticket-stamp {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  transform: rotate(8deg);
}
.ticket-text { font-family: var(--font-heading); font-size: 1.0625rem; line-height: 1.5; }
.ticket-meta { margin-top: auto; font-size: .875rem; color: var(--muted); }
.ticket-meta b { color: var(--text); font-weight: 600; }

.reviews-more { margin-top: var(--s4); }
.link-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* -------------------------------------------------------------- gallery */
/* Frames arched like a cup: round top, straight bottom. */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.gallery-item { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% var(--r) var(--r) / 28% 28% var(--r) var(--r); background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
  background: rgb(0 0 0 / .84);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; object-fit: contain; border-radius: var(--r); }
.lightbox-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------------------------------------- contacts */
.contacts-grid { display: grid; gap: var(--s4); }

.contacts-card { padding: var(--s3); border: 1.5px dashed var(--accent); border-radius: var(--r); background: var(--surface); }
.contacts-actions { margin-bottom: var(--s4); }

.hours-block { margin-bottom: var(--s3); }
.hours { border-top: var(--hair); }
.hours li { padding: .6rem 0; border-bottom: var(--hair); font-family: var(--font-heading); font-weight: 600; font-variant-numeric: tabular-nums; }

.contacts { display: grid; }
.contact { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s2); padding: .7rem 0; border-bottom: var(--hair); }
.contact:last-child { border-bottom: 0; }
.contact dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact dd a { display: inline-block; padding-block: .6em; margin-block: -.6em; text-decoration: none; }

.contacts-map { display: flex; flex-direction: column; }
.map { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 2px solid var(--text); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.route-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 3rem; margin-top: var(--s2); color: var(--accent); font-weight: 600; letter-spacing: .04em; text-decoration: none; }

/* --------------------------------------------------------------- footer */
.site-footer { padding: var(--s6) 0 calc(var(--s6) + 5rem); background: var(--accent); color: var(--accent-text); }

.footer-main { display: grid; gap: .25rem; margin-bottom: var(--s3); }
.footer-name { font-family: var(--font-heading); font-size: 1.5rem; }
.footer-address { opacity: .8; }
.footer-phone a { font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid rgb(255 255 255 / .2);
  font-size: .85rem;
  opacity: .85;
}
.footer-credit a { color: inherit; }

/* ------------------------------------------------------ sticky mobile bar */
.sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: .5rem;
  padding: .6rem var(--page-pad) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 2px solid var(--text);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }

.sticky-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .5rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-bar .sticky-call { background: var(--accent); color: var(--accent-text); }

/* --------------------------------------------------------- hover motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn, .sticky-bar a, .nav a, .route-link, .stamp { transition: opacity .15s ease, transform .2s ease, color .15s ease; }
  .btn:hover, .sticky-bar a:hover { opacity: .85; }
  .nav a:hover { color: var(--accent); }
  .stamp:hover { transform: rotate(0deg); }
  .gallery-item img { transition: transform .5s ease; }
  .gallery-item:hover img { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-bar { transition: none; }
}

/* ---------------------------------------------------------- two columns */
@media (min-width: 700px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sleeve-row { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 var(--s4); }
  .sleeve-cell { flex-direction: column; align-items: flex-start; gap: .15rem; border-bottom: 0; }
  .label { width: min(100%, 28rem); }
}

/* -------------------------------------------------------------- desktop */
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .5rem var(--s3); }
  .nav { grid-column: 2; grid-row: 1; justify-content: center; overflow: visible; gap: 0 1.6rem; }
  .header-phone { display: inline-flex; grid-column: 3; grid-row: 1; }

  .hero { padding-block: var(--s8) var(--s8); }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s10); }
  .hero--photo .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero--split .label, .hero--pattern .label, .hero--type .label { width: 100%; max-width: 30rem; justify-self: end; }
  .hero--photo .label { width: 100%; max-width: 32rem; justify-self: start; }
  .hero-title { max-width: 11ch; }

  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s12); }
  .about-side { padding-top: .4rem; }

  .tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }

  .steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .step { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .step-num { grid-row: auto; margin-bottom: var(--s2); }
  .step-desc { grid-column: auto; }

  .contacts-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); }
  .contacts-card { padding: var(--s4); }
  .map { flex: 1; min-height: 26rem; aspect-ratio: auto; }

  .footer-main { grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: var(--s3); }
  .site-footer { padding-bottom: var(--s6); }

  .sticky-bar { display: none; }
}

/* Language switch (base/lang_switch.html.j2): a <details> dropdown — current
   language on the button, all three in a small menu under it. */
.lang-switch { position: relative; grid-column: 2; grid-row: 1; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  padding: 0 .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  border: 1.5px solid var(--text);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ""; }
.lang-caret { width: .65em; height: .65em; flex: none; transition: transform .15s ease; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .3rem);
  z-index: 40;
  min-width: 10.5rem;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: var(--surface);
  color: var(--text);
  border: var(--hair);
  border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: .7em;
  min-height: 42px;
  padding: 0 .75rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: 999px;
}
.lang-menu a:hover { background: var(--tint); }
.lang-menu a[aria-current="page"] { color: var(--accent); pointer-events: none; }
.lang-menu .lang-name { color: var(--muted); font-weight: 400; font-size: .85em; letter-spacing: 0; text-transform: none; }
/* Desktop: last column of the header grid, after the contact. Must come
   after the base .lang-switch rule above. */
@media (min-width: 900px) {
  .lang-switch { grid-column: 4; grid-row: 1; }
}

/* «Meniul complet» (site.yml menu_url): a text link under the section head. */
.menu-link { display: inline-flex; align-items: center; min-height: 44px; margin: calc(-1 * var(--s3)) 0 var(--s3); color: var(--accent); font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.menu-link:hover { text-decoration: underline; }
