/* ===========================================================================
   Arrosto Caffe — full stylesheet (ported from the original inline styles).
   Colours, spacing and effects reproduce the previous look 1:1.
   Dynamic values (match-bar width, offer crop, active-dot width) come in via
   CSS custom properties set by js/app.js.
   =========================================================================== */

/* ---- Base -------------------------------------------------------------- */
:root { --header-h: 80px; }
html { scroll-behavior: smooth; }
/* Offsets anchor scrolling so section tops clear the sticky header instead of hiding under it. */
#coffees, #picker, #blends, #menu, #craft, #visit { scroll-margin-top: var(--header-h); }
body {
  margin: 0;
  background: #faf7f0;
  color: #221a12;
  font-family: 'Karla', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #a8791a; text-decoration: none; }
a:hover { color: #7c5a12; }
input[type=range] { accent-color: #b8891e; }
details summary::-webkit-details-marker { display: none; }
* { box-sizing: border-box; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.is-hidden { display: none !important; }

/* Decorative fixed corner images */
.om-dec {
  position: fixed; z-index: 1; opacity: .1; pointer-events: none;
  width: clamp(170px, 22vw, 320px); height: auto;
}
.om-dec-tr { top: 0; left: 0; }
.om-dec-bl { bottom: 0; right: 0; }

/* Shared container width */
.wrap { max-width: 1080px; margin: 0 auto; }

/* ---- Header / nav ------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #2c2418;
}
.hd-bar {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; flex-wrap: wrap;
}
.hd-brand { display: flex; align-items: center; gap: 12px; }
/* width:auto is required because the <img> carries width/height attributes - without
   it the attribute's width wins on the axis this rule leaves unset, and the logo
   stretches. Same reason for height:auto on .footer-logo below. */
.hd-logo { height: 58px; width: auto; display: block; }
.hd-brand-text { display: flex; flex-direction: column; }
.hd-brand-name {
  font-family: 'Prata', serif; font-size: 19px; letter-spacing: .5px; color: #f5edda;
}
.hd-brand-tag {
  font-size: 10.5px; color: #bdb09a; letter-spacing: 1.2px; text-transform: uppercase;
}
.hd-burger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid #57492e; border-radius: 10px;
  background: transparent; color: #f5edda; font-size: 20px; cursor: pointer;
  padding: 0; line-height: 1; margin-left: auto;
}
.hd-nav {
  margin-left: auto; display: flex; gap: 18px; font-size: 14px; font-weight: 500;
  flex-wrap: wrap; align-items: center;
}
.hd-nav a { color: #e8dfcc; }
.hd-social { display: flex; gap: 12px; align-items: center; }
.hd-social a { display: flex; color: #f0c245; }
.lang-toggle {
  display: flex; border: 1.5px solid #57492e; border-radius: 999px; overflow: hidden;
}
.lang-btn {
  border: none; padding: 6px 12px; font-size: 12.5px; font-weight: 700;
  font-family: 'Karla', sans-serif; cursor: pointer; background: transparent; color: #bdb09a;
}
.lang-btn.is-active { background: #f0c245; color: #221a12; }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: #221a12; }
.hero-stack { position: absolute; inset: 0; }
.hero-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.hero-stack img.is-active { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,11,7,.88) 0%, rgba(15,11,7,.72) 42%, rgba(15,11,7,.3) 75%, rgba(15,11,7,.15) 100%);
}
.hero-inner {
  position: relative; max-width: 1080px; margin: 0 auto; padding: 90px 20px 74px;
  min-height: 440px; display: flex; flex-direction: column; justify-content: center;
}
.hero-content { animation: fadeUp .6s ease both; max-width: 640px; }
.hero-eyebrow {
  margin: 0 0 10px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: #f0c245; font-weight: 700;
}
.hero-h1 {
  margin: 0 0 14px; font-family: 'Prata', serif; font-size: clamp(34px,6vw,56px);
  line-height: 1.08; letter-spacing: .01em; font-weight: 400; color: #f5edda;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero-p {
  margin: 0 0 24px; font-size: 16.5px; line-height: 1.6; color: #e8dfcc; max-width: 46ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta-arrow { color: #221a12; font-size: 15px; line-height: 1; }

/* Google rating card */
.google-card {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,253,248,.95); border-radius: 14px; padding: 10px 16px;
  width: fit-content; box-shadow: 0 6px 18px rgba(15,11,7,.3); transition: transform .2s;
}
.google-card:hover {
  background: #ffffff; box-shadow: 0 8px 22px rgba(15,11,7,.4); transform: translateY(-2px);
}
.google-card-text { display: flex; flex-direction: column; line-height: 1.2; }
.google-card-rating { display: flex; align-items: center; gap: 6px; }
.google-card-rating b { font-family: 'Prata', serif; font-size: 17px; color: #221a12; }
.google-card-stars { color: #f5b400; font-size: 14px; letter-spacing: 1px; }
.google-card-sub { font-size: 11.5px; color: #5d5344; }

/* Hero feature links (machine / beans) */
.hero-features { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 430px; }
.hero-feature {
  display: flex; align-items: center; gap: 14px;
  background: rgba(34,26,18,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(245,237,218,.25); border-radius: 14px; padding: 10px 16px 10px 10px;
  transition: background .2s, border-color .2s;
}
.hero-feature:hover {
  background: rgba(60,45,28,.8); border: 1px solid rgba(240,194,69,.6);
}
/* flex-basis + no shrink: keeps both cards' images the same width on narrow
   screens, so their text columns stay aligned regardless of label length */
.hero-feature img { flex: 0 0 74px; width: 74px; height: 52px; object-fit: cover; border-radius: 8px; }
.hero-feature img.on-white { background: #fff; }
.hero-feature-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: break-word; }
.hero-feature-kicker {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #f0c245; font-weight: 700;
}
.hero-feature-label { font-size: 13.5px; color: #e8dfcc; font-weight: 500; }

/* Hero carousel dots / arrows */
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; align-items: center; gap: 14px; padding: 0 10px; z-index: 2;
}
.hero-arrow {
  width: 34px; height: 34px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
  background: rgba(15,11,7,.5); backdrop-filter: blur(4px); color: #f5edda; font-size: 17px;
  line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-dot-list { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
  background: rgba(245,237,218,.6); transition: all .3s ease;
}
.hero-dot.is-active { width: 22px; background: #f0c245; }

/* ---- Shared components ------------------------------------------------- */

/* Section shells */
.section { }
.section-light { background: #fffdf8; border-top: 1px solid #e9e1d2; border-bottom: 1px solid #e9e1d2; }
.section-light-b { background: #fffdf8; border-bottom: 1px solid #e9e1d2; }
.section-dark { background: #221a12; color: #f5edda; }
.section-pad { max-width: 1080px; margin: 0 auto; padding: 52px 20px 56px; }

/* Collapsible section header */
.sec-head { cursor: pointer; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sec-chev {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid #d7cbb4; display: flex; align-items: center; justify-content: center;
  color: #a8791a; font-size: 17px;
}
.sec-chev-dark { border-color: #57492e; color: #f0c245; }
.sec-kicker {
  margin: 0 0 6px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: #a8791a; font-weight: 700;
}
.sec-kicker-gold { color: #f0c245; }
.sec-h2 {
  margin: 0; font-family: 'Prata', serif; font-size: clamp(26px,4vw,36px); font-weight: 400;
  line-height: 1.15; letter-spacing: .01em; text-wrap: pretty;
}
.sec-h2-light { color: #f5edda; }
.sec-intro { margin: 12px 0 18px; color: #7a6f5f; font-size: 15px; }
.sec-intro-wide { max-width: 60ch; }
.sec-intro-dark { color: #bdb09a; }

/* Pills / chips */
.pill {
  border: 1px solid #ddcfae; background: #f6efdd; color: #6d5a23;
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.chip-dark {
  border: 1px solid #57492e; background: #2c2418; color: #f0c245;
  font-size: 14px; font-weight: 700; padding: 7px 15px; border-radius: 999px;
}
.chip-outline {
  border: 1px solid #57492e; color: #e8d9b5; font-size: 12px; padding: 3px 10px; border-radius: 999px;
}

/* Info "i" buttons */
.info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid #c9bda2; background: transparent; color: #a8791a;
  font-weight: 700; font-family: 'Prata', serif; cursor: pointer; padding: 0; line-height: 1;
}
.info-btn:hover { border-color: #a8791a; background: #a8791a; color: #fffdf8; }
.info-btn-lg { width: 18px; height: 18px; font-size: 11px; }
.info-btn-md { width: 17px; height: 17px; font-size: 10px; }
.info-btn-sm { width: 16px; height: 16px; font-size: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px; transition: background .2s, transform .2s; cursor: pointer;
}
.btn-primary { background: #f0c245; color: #221a12; border: none; }
.btn-primary:hover { background: #dca316; transform: translateY(-2px); }
.btn-brown { background: #6f4a2e; color: #f5edda; border: none; gap: 8px; }
.btn-brown:hover { background: #573723; transform: translateY(-2px); }
.btn-icon { width: 20px; height: 20px; object-fit: contain; display: block; }

/* Phone call button (used in coffees + togo) */
.call-btn {
  display: inline-flex; align-items: center; gap: 12px; background: #f0c245; color: #221a12;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 15px; width: fit-content;
  transition: background .2s, transform .2s;
}
.call-btn:hover { background: #dca316; transform: translateY(-2px); }
.call-btn-icon { font-size: 19px; line-height: 1; }
.call-btn-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.call-btn-label { font-size: 12px; font-weight: 500; color: #4a3418; }
.call-btn-number { font-family: 'Prata', serif; font-size: 18px; font-weight: 400; }

/* Zoom icon overlay on image buttons */
.img-zoom-btn {
  position: relative; border: none; padding: 0; cursor: pointer; overflow: hidden;
  display: block; background: none;
}
.zoom-badge {
  position: absolute; border-radius: 50%; background: rgba(15,11,7,.7); color: #f0c245;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Offers ------------------------------------------------------------ */
.offer-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 0;
  background: #221a12; border-radius: 22px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(34,26,18,.18); min-height: 440px;
}
.offer-media { position: relative; min-height: 360px; overflow: hidden; }
/* Dynamic crop position fed via --offer-pos */
.offer-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center var(--offer-pos, 50%);
  transform: scale(1.36); transform-origin: center var(--offer-pos, 50%); display: block;
}
.offer-body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; }
.offer-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: #f0c245; color: #221a12; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
.offer-title {
  margin: 0; font-family: 'Prata', serif; font-size: clamp(28px,4.5vw,42px); font-weight: 400;
  line-height: 1.08; letter-spacing: .01em; color: #f5edda;
}
.offer-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.offer-desc { margin: 0; font-size: 15.5px; line-height: 1.6; color: #bdb09a; max-width: 44ch; }
.offer-nav { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 6px; }
.offer-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #57492e; background: #2c2418;
  color: #f0c245; font-size: 17px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.offer-arrow:hover { border-color: #f0c245; background: #f0c245; color: #221a12; }
.offer-dots { display: flex; align-items: center; gap: 7px; }
.offer-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
  background: rgba(245,237,218,.5); transition: all .3s ease;
}
.offer-dot.is-active { width: 22px; background: #f0c245; }

/* ---- Coffees ----------------------------------------------------------- */
.so-label { margin-left: auto; height: 60px; width: auto; display: block; flex-shrink: 0; }

.beans-banner {
  display: flex; align-items: center; gap: 20px; background: #221a12; color: #f5edda;
  border-radius: 16px; padding: 18px 22px; margin-bottom: 26px; flex-wrap: wrap;
}
.beans-banner-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 14px; }
.beans-buy {
  margin: 0 0 4px; font-family: 'Prata', serif; font-size: clamp(17px,2.4vw,21px);
  line-height: 1.35; letter-spacing: .01em; text-wrap: pretty; color: #f0c245;
}
.beans-buy-sub { margin: 0; font-size: 14px; color: #e8dfcc; }
.beans-thumb { flex-shrink: 0; width: 150px; height: 120px; border-radius: 12px; }
.beans-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.beans-thumb .zoom-badge { right: 8px; bottom: 8px; width: 28px; height: 28px; font-size: 14px; }

.coffee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.coffee-card {
  background: #faf7f0; border: 1px solid #e9e1d2; border-radius: 16px; padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.coffee-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.coffee-name { margin: 0; font-family: 'Prata', serif; font-size: 20px; font-weight: 400; }
.coffee-origin { margin: 2px 0 0; font-size: 12.5px; color: #7a6f5f; }
.coffee-score-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.coffee-score {
  background: #221a12; color: #f0c245; font-size: 13px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; white-space: nowrap;
}
.coffee-notes { display: flex; gap: 6px; flex-wrap: wrap; }
/* Fixed pixel height so the ECharts instance has real dimensions to render into
   (the old SVG viewBox scaled fluidly; ECharts containers need a concrete size). */
.radar-wrap { position: relative; width: 100%; height: 200px; }
.cupping-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.cupping-title { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #a8791a; font-weight: 700; }
.cupping-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 12.5px; }
.cupping-row { display: flex; justify-content: space-between; border-bottom: 1px dotted #ddd2bc; padding: 3px 0; }
.cupping-row span { color: #7a6f5f; }
.cupping-total {
  grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid #d9cdb2;
  margin-top: 2px; padding: 6px 0 0; align-items: center;
}
.cupping-total > span { font-weight: 700; }
.cupping-total b { font-family: 'Prata', serif; font-size: 15px; color: #221a12; }
.coffee-meta { display: flex; gap: 8px 16px; font-size: 12.5px; color: #7a6f5f; flex-wrap: wrap; align-items: center; }
.coffee-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.coffee-meta-ico { width: 16px; text-align: center; font-size: 13px; }
.coffee-price-row {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #e9e1d2; padding-top: 12px; margin-top: auto;
}
.coffee-price-label { font-size: 13px; color: #7a6f5f; }
.coffee-price { font-family: 'Prata', serif; font-size: 19px; }
.coffee-wolt-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  color: #00c2e8; font-size: 12.5px; font-weight: 700;
}
.coffee-wolt-link:hover { color: #00a9c9; }
.coffee-wolt-link img { width: 18px; height: 18px; object-fit: contain; display: block; }

/* ---- Picker ------------------------------------------------------------ */
.picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 28px; align-items: start; }
.slider-card {
  background: #fffdf8; border: 1px solid #e9e1d2; border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.slider-head label { font-weight: 700; font-size: 14px; }
.slider-val { font-family: 'Prata', serif; font-size: 16px; color: #a8791a; }
.slider-input { width: 100%; height: 26px; margin: 0; cursor: pointer; }
.slider-ends { display: flex; justify-content: space-between; font-size: 11px; color: #b3a993; }

.picker-result { display: flex; flex-direction: column; gap: 14px; }
.best-card { background: #221a12; color: #f5edda; border-radius: 16px; padding: 26px; position: relative; overflow: hidden; }
.best-kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #f0c245; font-weight: 700; }
.best-name { margin: 0 0 2px; font-family: 'Prata', serif; font-size: 28px; font-weight: 400; }
.best-origin { margin: 0 0 14px; font-size: 13px; color: #bdb09a; }
.best-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.best-bar-track { flex: 1; height: 8px; background: #3a3125; border-radius: 999px; overflow: hidden; }
/* Dynamic width fed via --pct */
.best-bar-fill { height: 100%; background: #f0c245; border-radius: 999px; width: var(--pct, 0%); }
.best-pct { color: #f0c245; font-size: 15px; }
.best-notes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.best-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #3a3125; padding-top: 14px; }
.best-foot-label { font-size: 13px; color: #bdb09a; }
.best-price { font-family: 'Prata', serif; font-size: 20px; }

.runner-card {
  background: #fffdf8; border: 1px solid #e9e1d2; border-radius: 16px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.runner-kicker { margin: 0; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #a8791a; font-weight: 700; }
.runner-name { font-family: 'Prata', serif; font-size: 17px; font-weight: 400; }
.runner-pct { color: #7a6f5f; font-size: 14px; }
.picker-note { margin: 0; font-size: 12.5px; color: #9a8f7c; line-height: 1.5; }
.picker-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---- Espresso blends ---------------------------------------------------
   Labels mirror the bag artwork: solid block, name set bottom-right, then a
   monospace uppercase descriptor in roast brown underneath. */
.blend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; margin-bottom: 22px; }
.blend-card { display: flex; flex-direction: column; gap: 14px; }
.blend-label {
  aspect-ratio: 2.1 / 1; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 18px 22px;
}
.blend-label-original { background: #2c1f1a; }
.blend-label-signature { background: #161b1b; }
.blend-name {
  margin: 0; text-align: right; color: #f5f0e6; font-family: 'Karla', sans-serif; font-weight: 700;
  font-size: clamp(28px,4vw,40px); line-height: .95; letter-spacing: -.02em;
}
.blend-type {
  margin: 0; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px;
  line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; color: #8a4a1c;
}
.blend-prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e9e1d2; }
.blend-prices li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid #e9e1d2; color: #7a6f5f; font-size: 14px;
}
.blend-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.blend-prices b { font-family: 'Prata', serif; font-size: 19px; font-weight: 400; color: #221a12; }

/* ---- To-go banner ------------------------------------------------------ */
.togo-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); align-items: stretch;
  background: #2c2418; border: 1px solid #3a3125; overflow: hidden;
}
.togo-media { position: relative; min-height: 320px; }
.togo-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 35%; display: block;
}
.togo-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.togo-kicker { margin: 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #f0c245; font-weight: 700; }
.togo-h2 {
  margin: 0; font-family: 'Prata', serif; font-size: clamp(30px,5vw,46px); font-weight: 400;
  line-height: 1.05; letter-spacing: .01em; color: #f5edda;
}
.togo-p { margin: 0; font-size: 16px; line-height: 1.6; color: #bdb09a; max-width: 42ch; }
.togo-body .call-btn { margin-top: 6px; }

/* ---- Menu -------------------------------------------------------------- */
.menu-cols { columns: 2 330px; column-gap: 12px; }
.menu-cat {
  border: 1px solid #e9e1d2; border-radius: 14px; background: #faf7f0;
  break-inside: avoid; margin-bottom: 12px;
}
.menu-cat summary {
  cursor: pointer; padding: 16px 20px; font-family: 'Prata', serif; font-size: 19px;
  display: flex; justify-content: space-between; align-items: center; list-style: none;
}
.menu-cat-title { display: flex; align-items: center; gap: 10px; }
.menu-cat-icon { font-size: 17px; line-height: 1; }
.menu-cat-chev { color: #a8791a; font-size: 14px; }
.menu-cat-body { padding: 2px 20px 18px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.menu-item { display: flex; justify-content: space-between; gap: 12px; }
.menu-item-sub { color: #9a8f7c; font-size: 12.5px; }
.menu-cat-note { margin: 6px 0 0; font-size: 12px; color: #9a8f7c; }
.prices-note { margin: 16px 0 0; font-size: 12.5px; color: #9a8f7c; }

/* ---- Craft ------------------------------------------------------------- */
.craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 28px; align-items: stretch; }
.craft-card {
  background: #2c2418; border: 1px solid #3a3125; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.craft-card > img { width: 100%; height: 220px; object-fit: cover; display: block; }
.craft-card > img.on-white { background: #fff; }
.craft-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.craft-card-kicker { margin: 0; font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #f0c245; font-weight: 700; }
.craft-card-title { margin: 0; font-family: 'Prata', serif; font-size: 22px; font-weight: 400; }
.craft-card-p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #bdb09a; }
.craft-card-link { margin-top: auto; color: #f0c245; font-weight: 700; font-size: 13.5px; }

/* ---- Visit ------------------------------------------------------------- */
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 32px; align-items: center; }
.visit-h2 {
  margin: 0 0 14px; font-family: 'Prata', serif; font-size: clamp(26px,4vw,36px); font-weight: 400;
  line-height: 1.15; letter-spacing: .01em; text-wrap: pretty;
}
.visit-lines { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #5d5344; }
.visit-hours {
  margin-top: 18px; background: #fffdf8; border: 1px solid #e9e1d2; border-radius: 16px;
  padding: 16px 20px; max-width: 340px;
}
.visit-hours-title { margin: 0 0 10px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #a8791a; font-weight: 700; }
.visit-hours-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #5d5344; }
.visit-hours-row { display: flex; justify-content: space-between; gap: 14px; }
.visit-hours-row b { color: #221a12; }
.visit-actions { margin-top: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wolt-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #00c2e8; color: #ffffff;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; width: fit-content;
}
.wolt-btn img { width: 28px; height: 28px; object-fit: contain; display: block; }
.visit-social { display: flex; gap: 14px; align-items: center; }
.visit-social a { display: flex; color: #a8791a; }
.wolt-logo-hd { width: 28px; height: 28px; object-fit: contain; display: block; }

.visit-media { display: flex; flex-direction: column; gap: 14px; }
/* overflow clips the image to the rounded corners - this used to come from
   .img-zoom-btn, back when the photo was a lightbox trigger */
.visit-photo-btn { width: 100%; height: 170px; border-radius: 20px; overflow: hidden; }
.visit-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visit-map { position: relative; }
.visit-map iframe { width: 100%; height: 320px; border: none; border-radius: 20px; display: block; }

/* ---- Modals ------------------------------------------------------------ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,11,7,.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay-dark { background: rgba(15,11,7,.82); }
.modal {
  background: #fffdf8; border-radius: 20px; width: 100%; padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: 86vh; overflow: auto;
}
.modal-440 { max-width: 440px; }
.modal-460 { max-width: 460px; }
.modal-480 { max-width: 480px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-title { margin: 0; font-family: 'Prata', serif; font-size: 22px; font-weight: 400; }
.modal-close {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e0d5bf;
  background: #faf7f0; color: #7a6f5f; font-size: 17px; cursor: pointer; line-height: 1; padding: 0;
}
.modal-list { display: flex; flex-direction: column; gap: 16px; }
.modal-entry { border-left: 3px solid #b8891e; padding-left: 14px; }
.modal-entry-name { margin: 0 0 3px; font-family: 'Prata', serif; font-size: 16px; color: #221a12; }
.modal-entry-desc { margin: 0; font-size: 14px; line-height: 1.55; color: #5d5344; }
.modal-entry-desc-sm { margin: 0; font-size: 13.5px; line-height: 1.5; color: #5d5344; }
.modal-body-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: #5d5344; }
.modal-intro { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; color: #7a6f5f; }

/* Lightbox image */
.lightbox-close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(250,247,240,.15); color: #fffdf8; font-size: 20px; cursor: pointer;
  line-height: 1; padding: 0;
}
.lightbox-img {
  width: auto; height: auto;
  max-width: 100%; max-height: 88vh; object-fit: contain; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* ---- Back to top ------------------------------------------------------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: #221a12; color: #f0c245; font-size: 20px;
  cursor: pointer; box-shadow: 0 6px 18px rgba(34,26,18,.35); display: flex; align-items: center;
  justify-content: center; line-height: 1;
}
.to-top:hover { background: #3a2c1c; box-shadow: 0 8px 22px rgba(34,26,18,.45); transform: translateY(-2px); }

/* ---- Footer ------------------------------------------------------------ */
.footer { background: #000000; color: #bdb09a; padding: 26px 20px; text-align: center; font-size: 13px; }
.footer-logo { width: 130px; height: auto; margin-bottom: 10px; }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 12px; align-items: center; }
.footer-social a { display: flex; color: #f0c245; }
.footer-social img { width: 30px; height: 30px; object-fit: contain; display: block; }
.footer p { margin: 0 0 6px; }
.footer p:last-child { margin: 0; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 760px) {
  .om-dec { opacity: .07; width: 130px; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .hd-bar { gap: 8px; padding: 8px 16px; }
  .hd-logo { height: 40px; }
  .hd-nav { gap: 9px 13px; font-size: 12.5px; }
  .hd-burger { display: inline-flex; margin-left: auto; }
  .hd-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    gap: 16px; margin-left: 0; padding: 6px 0 10px;
  }
  .header.nav-open .hd-nav { display: flex; }
  .hd-nav a { font-size: 16px; }
}
@media (max-width: 380px) {
  .so-label { height: 42px; }
}

/* ---- Standalone matcher page (matcher.html) ----------------------------
   One column sized to the viewport: top bar, three result cards, then the
   sliders take whatever height is left. min-height (not height) so a screen too
   short for even the compact tiers scrolls instead of clipping. */
.mt-page {
  min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
           max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.mt-bar { display: flex; align-items: center; gap: 10px; }
.mt-home { display: flex; flex-shrink: 0; }
/* both axes set - the <img> carries width/height attributes (see .hd-logo) */
.mt-logo { height: 38px; width: auto; display: block; }
.mt-title {
  flex: 1; min-width: 0; margin: 0; font-family: 'Prata', serif; font-weight: 400;
  font-size: clamp(17px, 5vw, 22px); line-height: 1.15;
}
.mt-bar .lang-toggle { border-color: #d7cbb4; flex-shrink: 0; }
.mt-bar .lang-btn { color: #7a6f5f; padding: 5px 10px; }
.mt-bar .lang-btn.is-active { color: #221a12; }

.mt-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mt-card {
  display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center;
  grid-template-areas: "rank name pct" "rank notes notes" "rank bar bar";
  gap: 3px 10px; min-height: 76px;
  background: #221a12; color: #f5edda; border-radius: 14px; padding: 9px 14px 11px 10px;
}
.mt-rank {
  grid-area: rank; align-self: center; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #57492e; color: #f0c245; font-weight: 700; font-size: 13px;
}
.mt-card:first-child .mt-rank { background: #f0c245; border-color: #f0c245; color: #221a12; }
.mt-name {
  grid-area: name; font-family: 'Prata', serif; font-weight: 400; font-size: 18px; line-height: 1.2;
  min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-pct { grid-area: pct; justify-self: end; color: #f0c245; font-size: 15px; }
/* All three notes shown; wrap is only a safety net for unusually long notes -
   chip sizing below keeps the current catalog on one line down to 320px wide. */
.mt-notes { grid-area: notes; display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.mt-chip {
  border: 1px solid #57492e; color: #e8d9b5; font-size: 11.5px; line-height: 1.2;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.mt-bar-track {
  grid-area: bar; height: 5px; margin-top: 3px; background: #3a3125; border-radius: 999px; overflow: hidden;
}
/* Dynamic width fed via --pct */
.mt-bar-fill {
  display: block; height: 100%; width: var(--pct, 0%); background: #f0c245; border-radius: 999px;
  transition: width .25s ease;
}

.mt-hint { margin: 2px 0 0; font-size: 12.5px; color: #9a8f7c; text-align: center; }
.mt-sliders {
  flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; align-content: space-evenly;
  gap: 8px 16px; background: #fffdf8; border: 1px solid #e9e1d2; border-radius: 14px; padding: 10px 14px;
}
.mt-slider { min-width: 0; }
.mt-slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mt-full {
  align-self: center; padding: 2px 6px; text-align: center; font-size: 13.5px; font-weight: 700; color: #a8791a;
  text-decoration: underline; text-underline-offset: 3px;
}
/* Category name doubles as the button that opens its explanation */
.mt-info {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 2px 0; margin: 0;
  border: none; background: none; cursor: pointer; color: #221a12; font: inherit; text-align: left;
}
.mt-info-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-info-ico {
  flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #c9bda2;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Prata', serif; font-size: 9.5px; font-weight: 700; color: #a8791a; line-height: 1;
}
.mt-info:hover .mt-info-ico, .mt-info:focus-visible .mt-info-ico { border-color: #a8791a; background: #a8791a; color: #fffdf8; }
.mt-modal-scale {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid #e9e1d2; font-size: 13px; font-weight: 700; color: #a8791a;
}
.mt-slider-val { font-family: 'Prata', serif; font-size: 15px; color: #a8791a; }
.mt-slider-input { width: 100%; height: 26px; margin: 0; cursor: pointer; display: block; }
.mt-slider-ends { display: flex; justify-content: space-between; gap: 4px; font-size: 10.5px; color: #b3a993; }

/* Short screens: tighten step by step so everything still fits one viewport */
@media (max-height: 640px) {
  .mt-page { gap: 7px; }
  .mt-logo { height: 32px; }
  .mt-card { min-height: 68px; padding-top: 7px; padding-bottom: 9px; }
  .mt-name { font-size: 16.5px; }
  .mt-sliders { gap: 4px 16px; padding: 8px 12px; }
  .mt-slider-input { height: 24px; }
}
@media (max-height: 580px) {
  .mt-hint { display: none; }
  .mt-slider-ends { font-size: 10px; }
  .mt-card { min-height: 62px; gap: 2px 10px; }
  .mt-page { gap: 5px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .mt-results { gap: 5px; }
  .mt-slider-input { height: 22px; }
  .mt-full { font-size: 12.5px; padding: 0 6px; }
}
/* only really cramped screens lose the slider end labels */
@media (max-height: 500px) {
  .mt-slider-ends { display: none; }
}
@media (max-width: 380px) {
  .mt-card { padding-left: 8px; padding-right: 10px; column-gap: 8px; }
  .mt-chip { font-size: 10.5px; padding: 1px 6px; }
}
@media (max-width: 340px) {
  .mt-sliders { gap: 6px 10px; padding: 8px 10px; }
  /* notes take the full card width so all three stay on one line */
  .mt-card { grid-template-areas: "rank name pct" "notes notes notes" "bar bar bar"; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stack img, .hero-dot, .offer-dot, .mt-bar-fill { transition: none; }
}
