/* ===================================================================
   Home blocks: ribbon (hr-), CTA split (hx-), menu teaser (hmt-),
   visit us (hv-), CTA banner (hb-). Colours via design tokens only.
   =================================================================== */

.hx-wrap, .hmt-wrap, .hv-wrap, .hb-wrap, .hr-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--container, 1440px);
  margin-inline: auto;
  padding-inline: var(--gutter, 64px);
}

.hx-eyebrow, .hv-eyebrow, .hb-eyebrow {
  display: block;
  margin: 0 0 16px;
  font: 700 12px/1 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================== Ribbon ============================== */
.hr { overflow: hidden; }
.hr__viewport { overflow: hidden; }
.hr__track { display: flex; width: 100%; justify-content: center; }
.hr__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0;
  padding: 22px var(--gutter, 64px);
  list-style: none;
}
.hr__item { display: inline-flex; align-items: center; gap: 32px; }
.hr__word {
  font-family: var(--f-heading);
  font-weight: var(--w-heading, 600);
  font-size: var(--hr-size, 36px);
  line-height: 1.25;
  color: var(--hr-color, var(--c-cream));
  text-decoration: none;
  white-space: nowrap;
}
.hr--italic .hr__word { font-style: italic; }
[dir="rtl"] .hr__word { font-family: var(--f-ar); font-style: normal; }
a.hr__word:hover { text-decoration: underline; text-underline-offset: 6px; }
.hr__sep { display: inline-flex; align-items: center; justify-content: center; color: var(--hr-sep, var(--c-peach)); line-height: 1; }
.hr__sep svg { width: calc(var(--hr-size, 36px) * 0.55); height: calc(var(--hr-size, 36px) * 0.55); }
.hr__sep--text { font: 600 calc(var(--hr-size, 36px) * 0.7)/1 var(--f-heading); }

/* Marquee: two identical lists, the track slides by exactly one list. */
.hr--marquee .hr__track { justify-content: flex-start; width: max-content; animation: hr-scroll var(--hr-speed, 40s) linear infinite; }
.hr--marquee .hr__list { flex-wrap: nowrap; flex-shrink: 0; justify-content: flex-start; padding-inline: 0 32px; }
.hr--marquee:hover .hr__track { animation-play-state: paused; }
[dir="rtl"] .hr--marquee .hr__track { animation-name: hr-scroll-rtl; }
@keyframes hr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hr-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

@media (prefers-reduced-motion: reduce) {
  .hr--marquee .hr__track { animation: none; width: 100%; justify-content: center; }
  .hr--marquee .hr__list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter, 64px); }
  .hr__list[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) {
  .hr__list, .hr__item { gap: 18px; }
  .hr__list { padding-block: 16px; }
  .hr .hr__word { font-size: calc(var(--hr-size, 36px) * 0.5); }
  .hr__sep svg { width: calc(var(--hr-size, 36px) * 0.3); height: calc(var(--hr-size, 36px) * 0.3); }
  .hr__sep--text { font-size: calc(var(--hr-size, 36px) * 0.4); }
}

/* ============================= CTA split ============================= */
.hx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hx-gap, 24px); }
.hx-grid--1 { grid-template-columns: minmax(0, 1fr); }
.hx-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: var(--hx-pad, 48px);
  border-radius: var(--r-card, 28px);
  min-width: 0;
}
.hx-card .hx-eyebrow { margin: 0; }
.hx-eyebrow--soft { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.hx-title { margin: 0; font-size: var(--fs-h2, 44px); line-height: 1.14; color: inherit; overflow-wrap: anywhere; }
.hx-text { margin: 0; max-width: 560px; font: 400 17px/1.53 var(--f-body); color: inherit; }
.hx-card .btn { margin-top: 10px; }

/* ============================ Menu teaser ============================ */
.hmt-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 64px; }
.hmt-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hmt-title { margin: 0; max-width: 520px; font-size: var(--fs-h2, 44px); line-height: 1.14; }
.hmt-text { margin: 0; max-width: 480px; font: 400 var(--fs-lead, 19px)/1.58 var(--f-body); color: var(--c-gray); }
.hmt-items { display: grid; grid-template-columns: repeat(var(--hmt-cols, 2), minmax(0, 1fr)); gap: 20px; }
.hmt-item {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
  padding: 24px;
  border-radius: var(--r-card, 28px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
a.hmt-item:hover { transform: translateY(-3px); }
.hmt-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-block-end: auto; padding-block-end: 18px; }
.hmt-item__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--c-white); color: var(--c-ink);
}
.hmt-item__price { font: 700 16px/1.2 var(--f-body); white-space: nowrap; margin-inline-start: auto; }
.hmt-item__name { margin: 0; font-size: 26px; line-height: 1.2; }
.hmt-item__desc { margin: 0; font: 400 13px/1.45 var(--f-body); opacity: 0.72; }

/* ============================== Visit us ============================== */
.hv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 688px); align-items: center; gap: 72px; }
.hv--map-start .hv-map { order: -1; }
.hv--map-start .hv-grid { grid-template-columns: minmax(0, 688px) minmax(0, 1fr); }
.hv-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; }
.hv-copy .hv-eyebrow { margin: 0; }
.hv-title { margin: 0; font-size: var(--fs-h2, 44px); line-height: 1.14; color: inherit; }
.hv-address { display: flex; align-items: flex-start; gap: 12px; margin: 0; font: 400 var(--fs-lead, 19px)/1.5 var(--f-body); }
.hv-address svg { flex: none; margin-top: 3px; color: var(--c-peach); }
.hv-hours { width: 100%; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.hv-hours__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: 14px;
  border-block-end: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  font: 400 16px/1.4 var(--f-body);
}
.hv-hours__row:first-child { border-block-start: 1px solid color-mix(in srgb, currentColor 20%, transparent); }
.hv-hours__label { opacity: 0.8; }
.hv-hours__value { font-weight: 600; text-align: end; }
.hv-hours__row.is-closed .hv-hours__value { color: var(--c-peach); }
.hv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hv-map {
  position: relative;
  min-width: 0;
  height: var(--hv-map-h, 440px);
  overflow: hidden;
  border-radius: var(--r-card, 28px);
  background: var(--c-line);
  color: var(--c-ink);
}
.hv-map img, .hv-map iframe, .hv-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hv-map__pin { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -100%); color: var(--c-danger); pointer-events: none; }
[dir="rtl"] .hv-map__pin { transform: translate(50%, -100%); }
.hv-map__placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(color-mix(in srgb, var(--c-white) 55%, transparent) 2px, transparent 2px) 0 0 / 64px 64px,
    linear-gradient(90deg, color-mix(in srgb, var(--c-white) 55%, transparent) 2px, transparent 2px) 0 0 / 64px 64px,
    var(--c-line);
}
.hv-pin-icon { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--c-danger); transform: rotate(-45deg); border: 3px solid var(--c-white); box-sizing: border-box; }

/* ============================= CTA banner ============================= */
.hb-panel {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 64px;
}
.hb-panel--boxed { border-radius: var(--r-card, 28px); }
.hb-panel--full { padding: 64px 0; border-radius: 0; }
.hb-copy { min-width: 0; }
.hb-copy .hb-eyebrow { margin-bottom: 14px; }
.hb-title { margin: 0; font-size: var(--fs-h2, 44px); line-height: 1.14; color: inherit; }
.hb-text { margin: 12px 0 0; font: 400 var(--fs-lead, 19px)/1.5 var(--f-body); color: inherit; opacity: 0.85; }
.hb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex-shrink: 0; }
.hb-full-inner { padding-inline: 0; }

/* shared button polish */
.hx-card .btn, .hmt-copy .btn, .hv-actions .btn, .hb-actions .btn { transition: transform 0.15s ease, opacity 0.15s ease; }
.hx-card .btn:hover, .hmt-copy .btn:hover, .hv-actions .btn:hover, .hb-actions .btn:hover { transform: translateY(-1px); opacity: 0.92; }

/* ============================ Responsive ============================ */
@media (max-width: 991px) {
  .hmt-items { grid-template-columns: repeat(var(--hmt-cols-t, var(--hmt-cols, 2)), minmax(0, 1fr)); }
  .hmt-items--1 { grid-template-columns: minmax(0, 1fr); }
  .hx-grid { grid-template-columns: minmax(0, 1fr); }
  .hmt-grid, .hv-grid, .hv--map-start .hv-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hv--map-start .hv-map { order: 0; }
  .hb-panel { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .hx-title, .hmt-title, .hv-title, .hb-title { font-size: calc(var(--fs-h2, 44px) * 0.85); }
}
@media (max-width: 640px) {
  .hx-card { padding: 28px 24px; }
  .hx-title { font-size: 26px; line-height: 1.15; }
  .hx-text { display: none; }
  .hv.cx-visit-us { padding-top: 24px !important; padding-bottom: 24px !important; }
  .hv-actions { flex-direction: column; align-items: stretch; align-self: stretch; width: 100%; }
  .hv-actions .btn { width: 100%; box-sizing: border-box; }
  .hmt.cx-menu-teaser { padding-top: 24px !important; padding-bottom: 24px !important; }
  .hmt-title { font-size: 26px; line-height: 1.15; }
  .hmt-text { display: none; }
  .hx.cx-cta-split { padding-top: 32px !important; padding-bottom: 32px !important; }
  .hx-card { align-items: stretch; }
  .hx-card .btn { width: 100%; box-sizing: border-box; }
  .hmt-items { grid-template-columns: repeat(var(--hmt-cols-m, 2), minmax(0, 1fr)); gap: 12px; }
  .hmt-items--1 { grid-template-columns: minmax(0, 1fr); }
  .hmt-item { padding: 18px; min-height: 150px; }
  .hmt-item__name { font-size: 20px; }
  .hv-map { height: min(var(--hv-map-h, 440px), 220px); }
  .hb-panel { padding: 32px 20px; }
  .hb-title { font-size: 26px; line-height: 1.15; }
  .hb-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hb-actions .btn { width: 100%; box-sizing: border-box; }
  .hb-panel--full { padding-block: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-card .btn, .hmt-copy .btn, .hv-actions .btn, .hb-actions .btn, .hmt-item { transition: none; }
  .hx-card .btn:hover, .hmt-copy .btn:hover, .hv-actions .btn:hover, .hb-actions .btn:hover, a.hmt-item:hover { transform: none; }
}
