:root {
  --bg: #f6efe6;
  --surface: #fdf8f1;
  --text: #231a16;
  --muted: #6a5a52;
  --accent: #8a2f2b;
  --accent-text: #ffffff;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ==========================================================================
   Direction "editorial" — a well-set magazine page.
   Serif display face for headlines and numbers, quiet sans for running text,
   12-column asymmetric grid (4/8, 5/7 splits), hairline rules, letter-spaced
   labels, narrow measure. No cards, no heavy buttons, no rounded corners.

   Tokens from new_site.py: --bg --surface --text --muted --accent --accent-text
                            --font-heading --font-body --font-accent
   Type scale (mobile → desktop), details in NOTES.md:
     h1    clamp(2.75rem, 1.9rem + 5.2vw, 6.75rem)   display headline
     h2    clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)    section titles
     deck  clamp(1.125rem, 1rem + .6vw, 1.5rem)      italic serif subhead
     about clamp(1.125rem, 1rem + .5vw, 1.375rem)    serif running text
     h3    1.25rem                                    menu / step names
     body  1rem, line-height 1.6;  small .95rem;  label .72rem / .14em caps
   Spacing: 8px steps (--s1 … --s12) + fluid section padding (--section-pad).
   Grid: 12 columns from 900px, gutter --gutter, container 1200px.
   ========================================================================== */

:root {
  --s1: .5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;
  --s6: 3rem;   --s8: 4rem;  --s12: 6rem;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --gutter: clamp(1rem, 2.5vw, 2rem);
  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --container: 1200px;
  --measure: 34em;
  /* Hairlines fall back to the muted colour where color-mix() is missing. */
  --rule: var(--muted);
  --rule-strong: var(--text);
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  :root {
    --rule: color-mix(in srgb, var(--text) 22%, transparent);
    --rule-strong: color-mix(in srgb, var(--text) 55%, transparent);
  }
}

/* ------------------------------------------------------------------ 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: 400; margin: 0; }
p { margin: 0; }

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

/* Letter-spaced small label: kickers, dt's, captions, nav. */
.label, .nav a, .contact dt, .kicker {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  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; }


/* -------------------------------------------------------------- masthead */
.site-header { border-bottom: 3px double var(--text); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: .25rem var(--s3);
  padding-block: var(--s2) .6rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
}

.masthead-phone {
  grid-row: 1;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
/* Phones and tablets: no contact in the header — the hero button, the contacts
   section and the sticky bar carry it; the name is next to the language switch. */
@media (max-width: 899px) {
  .masthead-phone { display: none; }
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--accent); }

@media (min-width: 900px) {
  .masthead { grid-template-columns: auto 1fr auto auto; align-items: center; padding-block: var(--s2); }
  .nav { grid-column: auto; justify-self: end; gap: 0 var(--s4); }
  .masthead-phone { grid-column: 3; margin-left: var(--s4); padding-left: var(--s4); border-left: 1px solid var(--rule); }
}

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 9vw, 7rem); }
.hero-grid { display: grid; gap: var(--s4); }

/* Dateline kicker: short accent rule + city */
.kicker { display: flex; align-items: center; gap: .75rem; letter-spacing: .16em; }
.kicker::before { content: ""; width: 2.25rem; height: 1px; background: var(--accent); }

.hero-title {
  margin-top: var(--s3);
  font-size: clamp(2.75rem, 1.9rem + 5.2vw, 6.75rem);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.deck {
  margin-top: var(--s3);
  max-width: 30em;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  margin-top: var(--s4);
}

/* Hours + address set small under letter-spaced labels */
.hero-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule-strong);
}

.hero-copy .hero-meta { margin-top: var(--s6); }
.meta-block .label { margin-bottom: .4rem; }
.meta-address { font-size: .95rem; line-height: 1.5; }
.meta-address a { text-decoration: none; }
.meta-address a:hover { text-decoration: underline; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.55;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Typographic plate for hero--pattern: outlined initial above a hatched foot */
.hero-plate {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
}

.hero-plate::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  border-top: 1px solid var(--rule-strong);
}

.pattern-glyph { height: 78%; }
.pattern-glyph text { font-family: var(--font-heading); font-weight: 400; }
.plate-hatch { top: auto; bottom: 0; height: 22%; }

/* Photo hero: full-width image, the headline plate overlaps its bottom edge */
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.hero-overlap {
  position: relative;
  margin-top: calc(-1 * clamp(2rem, 7vw, 6rem));
  margin-right: var(--s4);
  padding: var(--s3) var(--s3) 0 0;
  background: var(--bg);
}

.hero--split .hero-figure img { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: var(--s6); }
  .hero-aside { align-self: end; }

  /* type: headline on 8 columns, hours/address tucked into the last three */
  .hero--type .hero-copy { grid-column: 1 / 9; }
  .hero--type .hero-aside { grid-column: 10 / 13; }
  .hero--type .hero-meta, .hero--photo .hero-meta { grid-template-columns: 1fr; gap: var(--s3); }

  /* pattern: 7/5 split, the plate stands as tall as the copy */
  .hero--pattern .hero-copy { grid-column: 1 / 8; }
  .hero--pattern .hero-plate {
    grid-column: 8 / 13;
    aspect-ratio: auto;
    min-height: 26rem;
    align-self: stretch;
  }

  /* photo: image across all 12 columns, plate overlaps from the left */
  .hero--photo .hero-figure { grid-column: 1 / 13; }
  .hero--photo .hero-figure img { aspect-ratio: 21 / 9; }
  .hero--photo .hero-copy { grid-column: 1 / 9; margin-right: 0; padding: var(--s4) var(--s6) 0 0; }
  .hero--photo .hero-aside { grid-column: 10 / 13; padding-top: var(--s4); }

  /* split: 6/5 with the image pushed down; hours/address sit at the foot of
     the copy column, level with the image's bottom edge */
  .hero--split .hero-copy { grid-column: 1 / 7; display: flex; flex-direction: column; }
  .hero--split .hero-actions { margin-bottom: var(--s6); }
  .hero--split .hero-meta { margin-top: auto; padding-top: var(--s2); }
  .hero--split .hero-figure { grid-column: 8 / 13; margin-top: var(--s8); }
  .hero--split .hero-figure img { aspect-ratio: 4 / 5; }
}

/* --------------------------------------------------------------- buttons */
/* One outlined call button, the messengers as underlined accent links. */
.btn, .route-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .1rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid currentColor;
  transition: color .2s ease, background-color .2s ease;
}

.btn-call { padding: 0 1.4rem; border: 1px solid var(--text); }
.btn-call:hover, .btn-call:focus-visible { background: var(--text); color: var(--bg); }
.btn-whatsapp, .btn-viber, .btn-telegram, .route-link { color: var(--accent); }
.btn-whatsapp:hover, .btn-viber:hover, .btn-telegram:hover, .route-link:hover { color: var(--text); }

/* -------------------------------------------------------------- sections */
.section { padding-block: var(--section-pad); border-top: 1px solid var(--rule); }
.grid-12 { display: grid; gap: var(--s4); }
.section-head { margin-bottom: var(--s4); }

.section-num {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--font-heading);
  font-size: .95rem;
  letter-spacing: .12em;
  color: var(--accent);
}

.section-title { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; }

@media (min-width: 900px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
  /* 4/8 split: the numbered head stays put while the column scrolls */
  .col-side { grid-column: 1 / 5; align-self: start; position: sticky; top: var(--s4); }
  .col-main { grid-column: 5 / 13; }
  .col-text { grid-column: 6 / 13; }
  .section-head { margin-bottom: 0; }
}

/* ------------------------------------------------------- menu (services) */
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.menu-row { display: flex; align-items: baseline; gap: .75rem; }
.menu-name { font-size: 1.25rem; line-height: 1.3; flex: 0 1 auto; }

/* Dotted leader: an empty flex item whose bottom border sits on the baseline */
.menu-leader {
  flex: 1 1 1.5rem;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--rule-strong);
  transform: translateY(-.3em);
}

.menu-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.menu-desc { margin-top: .35rem; max-width: 38em; font-size: .95rem; color: var(--muted); }

@media (min-width: 900px) {
  .menu--2col { grid-template-columns: 1fr 1fr; column-gap: var(--s6); row-gap: var(--s4); }
}

/* ----------------------------------------------------------------- about */
.about-side .rating { margin-top: var(--s4); display: flex; align-items: baseline; gap: .75rem; }
.rating-value { font-family: var(--font-heading); font-size: 2.5rem; line-height: 1; color: var(--accent); }
.rating-label { font-size: .85rem; color: var(--muted); }

.facts { list-style: none; margin: var(--s4) 0 0; padding: 0; max-width: 24em; }
.facts li {
  padding: .6rem 0;
  border-top: 1px solid var(--rule);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.4;
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }

.about-text {
  max-width: var(--measure);
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  line-height: 1.55;
}

/* Drop cap in the accent */
.about-text::first-letter {
  float: left;
  margin: .1em .14em 0 0;
  font-size: 3.4em;
  line-height: .8;
  color: var(--accent);
}

/* ----------------------------------------------------------------- steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.step-num { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1; color: var(--accent); }
.step-name { font-size: 1.25rem; line-height: 1.3; margin-bottom: .35rem; }
.step-desc { max-width: 32em; font-size: .95rem; color: var(--muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
}

/* --------------------------------------------------------------- gallery */
.gallery .section-head { margin-bottom: var(--s4); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.gallery-grid li:first-child { grid-column: 1 / -1; }
.gallery-item { display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 900px) {
  /* 7/5 – 5/7 alternating mosaic */
  .gallery-grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
  .gallery-grid li:nth-child(4n + 1), .gallery-grid li:nth-child(4n + 4) { grid-column: span 7; }
  .gallery-grid li:nth-child(4n + 2), .gallery-grid li:nth-child(4n + 3) { grid-column: span 5; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  background: rgba(0, 0, 0, .92);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* -------------------------------------------------------------- contacts */
.contacts-actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); }
.hours-block { margin-top: var(--s6); }
.hours-block .label { margin-bottom: .4rem; }
.hours-block .hours li { font-size: 1.1rem; }

.contacts { margin: var(--s4) 0 0; }
.contact {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--s2);
  padding: .7rem 0;
  border-top: 1px solid var(--rule);
}
.contact:last-child { border-bottom: 1px solid var(--rule); }
.contact dt { padding-top: .25em; }
.contact dd { margin: 0; font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.45; overflow-wrap: anywhere; }
/* Inline links get a 44px tap height without moving the text. */
.contact dd a { display: inline-block; padding-block: .6em; margin-block: -.6em; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }

.route-link { margin-top: var(--s3); }

/* Map: hairline frame, desaturated until hovered */
.map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--rule-strong); background: var(--surface); }
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
  transition: filter .3s ease;
}
.map:hover iframe { filter: none; }
.map-caption { margin-top: var(--s2); font-size: .9rem; color: var(--muted); }
.map-caption .label { display: block; margin-bottom: .15rem; }

@media (min-width: 900px) {
  .col-contacts { grid-column: 1 / 6; }
  .col-map { grid-column: 7 / 13; }
  .map { aspect-ratio: 5 / 4; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 3px double var(--text); padding-block: var(--s6) var(--s4); }
.footer-main { display: grid; gap: .35rem; }
.footer-name { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; }
.footer-address, .footer-phone { font-size: .95rem; color: var(--muted); }
.footer-phone a { font-family: var(--font-heading); font-size: 1.05rem; color: var(--text); text-decoration: none; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem var(--s4);
  margin-top: var(--s4);
  padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  font-size: .8rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .footer-main { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: baseline; }
  .footer-name { grid-column: 1 / 5; }
  .footer-address { grid-column: 6 / 10; }
  .footer-phone { grid-column: 10 / 13; text-align: right; }
}

/* ------------------------------------------------------ sticky mobile bar */
/* Slim bar, hairline top, serif labels; script.js adds .is-visible past the hero. */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border-top: 1px solid var(--text);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }

.sticky-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  text-decoration: none;
}
.sticky-msg { font-style: italic; color: var(--accent); border-left: 1px solid var(--rule); }

@media (max-width: 899px) {
  .site-footer { padding-bottom: calc(var(--s4) + 56px); }
}

@media (min-width: 900px) {
  .sticky-bar { display: none; }
}

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

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

/* 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; align-self: center; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  padding: 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}
.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: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
  border-radius: 0;
}
.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: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang-menu a:hover { background: var(--bg); }
.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; }
/* Desktop: fourth column of the header grid, after the contact. This must come
   after the base .lang-switch rule above. */
@media (min-width: 900px) {
  .lang-switch { grid-column: 4; grid-row: 1; }
}

/* Optional logo (site.yml `logo`) in front of the brand name. */
.brand-logo { display: inline-block; width: 2em; height: 2em; margin-right: .5em; border-radius: 50%; object-fit: cover; vertical-align: middle; }

/* «Meniul complet» (site.yml menu_url): a text link under the menu heading. */
.menu-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .25rem; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.menu-link:hover { text-decoration-thickness: 2px; }
