:root {
  --bg: #fff8f3;
  --surface: #ffffff;
  --text: #3a2328;
  --muted: #7d6168;
  --accent: #c9365c;
  --accent-text: #ffffff;
  --accent-ink: #a8284a;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ==========================================================================
   Direction "sweet" — a pastry shop. Cream paper, a serif for headings, a soft
   sans for text, one berry accent. Signature moves: scalloped edges like a
   doily or piped cream (hero bottom, footer top), the hero photo on a round
   cake board with a scalloped rim, layer-cake stripes under section titles,
   ribbon kickers with notched ends, prices as round bonbon badges, reviews as
   pastel notes, numbered steps for ordering a cake. No shadows; gradients
   only draw the scallops and stripes.

   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.6vw, 5.25rem)  600, lh 1.02, -.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 .14em
   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: 1.25rem;
  --hair: 1px solid rgb(0 0 0 / .12);
  --tint: var(--surface);
  --tint-2: var(--surface);
}

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

/* ------------------------------------------------------------------ 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; }

.label-caps {
  margin: 0 0 .75rem;
  font-size: .72rem;
  font-weight: 700;
  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; }

/* The ribbon: a small banner with notched ends. */
.ribbon { margin: 0 0 .9rem; }
.ribbon span {
  display: inline-block;
  padding: .35rem 1.1rem;
  background: var(--accent);
  color: var(--accent-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.3;
  clip-path: polygon(0 0, 100% 0, calc(100% - .55rem) 50%, 100% 100%, 0 100%, .55rem 50%);
}

/* Layer-cake stripes under a title. */
.layers {
  display: block;
  width: 5.5rem;
  height: .6rem;
  margin-top: .9rem;
  background: repeating-linear-gradient(180deg, var(--accent) 0 2px, transparent 2px 4px, var(--accent) 4px 6px, transparent 6px 8px, var(--accent) 8px 10px);
}

/* Scalloped edge: a row of half circles, like a doily. */
.scallop {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  height: 1.1rem;
  pointer-events: none;
}
.scallop--bottom {
  bottom: -1.1rem;
  background: radial-gradient(circle at 50% 0, var(--tint) 1rem, transparent calc(1rem + 1px));
  background-size: 2.2rem 1.1rem;
  background-position: 50% 0;
}
.scallop--top {
  top: -1.1rem;
  background: radial-gradient(circle at 50% 100%, var(--accent) 1rem, transparent calc(1rem + 1px));
  background-size: 2.2rem 1.1rem;
  background-position: 50% 100%;
}

/* ---------------------------------------------------------------- header */
.site-header { padding-block: .75rem; background: var(--surface); border-bottom: var(--hair); }

.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: .7rem; min-width: 0; min-height: 44px; text-decoration: none; }

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.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: small caps, one scrolling strip on phones. */
.nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 1.2rem;
  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: 700;
  letter-spacing: .12em;
  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-ink);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  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 { position: relative; padding-block: var(--s5) var(--s8); background: var(--tint); }
.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.6vw, 5.25rem);
  line-height: 1.02;
  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);
}
.hero-hours { margin-top: var(--s3); font-family: var(--font-heading); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* The cake board: a doily (scalloped disc) under a round photo. */
.board { position: relative; width: min(100%, 22rem); aspect-ratio: 1; margin-inline: auto; }
.doily {
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  background: var(--surface);
  mask: radial-gradient(circle at 50% 50%, #000 70%, transparent 70.5%), radial-gradient(circle, #000 60%, transparent 61%);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 70%, transparent 70.5%), radial-gradient(circle, #000 60%, transparent 61%);
}
/* Scalloped rim: a ring of small circles drawn with a conic-gradient-free trick —
   22 dots placed by repeating radial gradients along the edge. */
.doily::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--surface);
  mask: radial-gradient(circle at 50% 50%, transparent 68%, #000 68.5%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 68%, #000 68.5%);
}
.board-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--surface);
  background: var(--accent);
  outline: 1.5px solid var(--accent);
  outline-offset: -1px;
}
.board-img { width: 100%; height: 100%; object-fit: cover; }
.board-fill { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; color: var(--accent-text); }
.board-initial { font-family: var(--font-heading); font-size: clamp(6rem, 24vw, 9rem); line-height: 1; }

/* Bonbon: a round badge. */
.bonbon {
  display: inline-grid;
  place-items: center;
  gap: .05rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  border: 1.5px solid var(--accent);
}
.bonbon--rating { position: absolute; right: -4%; bottom: 2%; width: 7rem; height: 7rem; transform: rotate(-8deg); }
.bonbon-value { font-family: var(--font-heading); font-size: 2rem; line-height: 1; color: var(--accent-ink); }
.bonbon-label { max-width: 5.5rem; font-size: .62rem; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------- 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; }

/* -------------------------------------------------------------- vitrina */
.vitrina { display: grid; gap: var(--s3); }
.sweet {
  position: relative;
  padding: var(--s3) var(--s3) var(--s3) calc(var(--s3) + .75rem);
  border-radius: var(--r);
  background: var(--surface);
  border: var(--hair);
}
.sweet::before { content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: .35rem; border-radius: 0 .35rem .35rem 0; background: var(--accent); }
.sweet-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem var(--s3); }
.sweet-name { font-size: 1.25rem; line-height: 1.25; }
.bonbon--price { min-width: 4rem; min-height: 4rem; padding: .3rem; font-family: var(--font-heading); font-size: .85rem; line-height: 1.1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.sweet-desc { max-width: 46em; margin-top: .5rem; 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; }

.facts { display: grid; gap: .6rem; align-self: start; }
.fact { display: flex; gap: .8rem; padding: .9rem 1.1rem; border-radius: 999px; background: var(--tint); font-weight: 600; }
.fact::before { content: ""; flex: none; width: .75rem; height: .75rem; margin-top: .45rem; border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; gap: var(--s3); }
.step { padding: var(--s3); border-radius: var(--r); background: var(--surface); border: var(--hair); }
.step-num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s2);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.step-name { font-size: 1.25rem; line-height: 1.25; }
.step-desc { margin-top: .5rem; font-size: .95rem; color: var(--muted); }

/* -------------------------------------------------------------- reviews */
.notes { display: grid; gap: var(--s3); }
.note {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: var(--s3);
  border-radius: var(--r);
  background: var(--tint-2);
}
.note:nth-child(even) { background: var(--surface); border: var(--hair); }
.stars { display: inline-flex; gap: .1rem; }
.star { width: 1rem; height: 1rem; 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); }
.note-text { font-family: var(--font-heading); font-size: 1.0625rem; line-height: 1.5; }
.note-meta { margin-top: auto; font-size: .875rem; color: var(--muted); }
.note-meta b { color: var(--text); font-weight: 700; }

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

/* -------------------------------------------------------------- gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.gallery-item { display: block; position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--surface); outline: 1.5px solid var(--accent); outline-offset: 5px; }
.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-radius: var(--r); background: var(--tint); }
.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: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact dd a { display: inline-block; padding-block: .6em; margin-block: -.6em; text-decoration: none; color: var(--accent-ink); }

.contacts-map { display: flex; flex-direction: column; }
.map { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 6px solid var(--surface); outline: 1.5px solid var(--accent); 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-ink); font-weight: 700; text-decoration: none; }

/* --------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: var(--s4); 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: .85; }
.footer-phone a { font-weight: 700; 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 / .3);
  font-size: .85rem;
  opacity: .9;
}
.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: 1.5px solid var(--accent);
  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-ink);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
  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, .bonbon--rating { transition: opacity .15s ease, transform .2s ease, color .15s ease; }
  .btn:hover, .sticky-bar a:hover { opacity: .85; }
  .nav a:hover { color: var(--accent-ink); }
  .bonbon--rating: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) {
  .vitrina { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board { width: min(100%, 26rem); }
}

/* -------------------------------------------------------------- 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(--s10); }
  .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 .board, .hero--pattern .board, .hero--type .board { width: 100%; max-width: 28rem; justify-self: end; }
  .hero--photo .board { width: 100%; max-width: 30rem; justify-self: start; }
  .hero-title { max-width: 11ch; }
  .bonbon--rating { width: 8rem; height: 8rem; right: -6%; }
  .bonbon-value { font-size: 2.25rem; }

  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s12); align-items: start; }

  .notes { 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 { gap: var(--s4); }

  .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: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  border: 1.5px solid var(--accent);
}
.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: 700;
  letter-spacing: .08em;
  border-radius: 999px;
}
.lang-menu a:hover { background: var(--tint); }
.lang-menu a[aria-current="page"] { color: var(--accent-ink); 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-ink); font-weight: 700; text-decoration: none; }
.menu-link:hover { text-decoration: underline; }
