/* DIG-293 — Phase 1 3-step CTA system (View Menu / Reserve / Visit / Order Delivery)
   Preview-tree only (summer-refresh-v4). Does not touch root /styles.css or /script.js.
   Reuses root :root tokens (--gold, --ink, --cream, --white, --salmon, --serif, --sans). */

.cta-row-3step {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row-3step .btn {
  flex: 0 1 auto;
}

/* ---- Reserve/Visit + Keeta modals ---- */

.cta-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
}

.cta-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.cta-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.68);
  opacity: 0;
  transition: opacity 220ms ease;
}

.cta-modal.is-open .cta-modal__scrim {
  opacity: 1;
}

.cta-modal__panel {
  position: relative;
  width: min(100%, 480px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 30px 28px;
  text-align: left;
  color: var(--ink, #17110d);
  background: var(--white, #fbf6ee);
  border: 1px solid var(--line, #eadfd2);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.cta-modal.is-open .cta-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cta-modal__panel h2 {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 30px);
}

.cta-modal__panel > p {
  color: var(--muted, #756b61);
  line-height: 1.55;
  margin: 0 0 16px;
}

.cta-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink, #17110d);
  background: var(--cream, #f7f1e8);
  border: 1px solid var(--line, #eadfd2);
  border-radius: 999px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.cta-modal__channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.cta-channel {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line, #eadfd2);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink, #17110d);
  background: var(--cream, #f7f1e8);
  transition: border-color 0.16s, transform 0.12s;
}

.cta-channel:hover {
  border-color: var(--gold, #e7a83d);
  transform: translateY(-1px);
}

.cta-channel strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--ink, #17110d);
}

.cta-channel span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #756b61);
}

.cta-keeta-store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--cream, #f7f1e8);
  border: 1px solid var(--line, #eadfd2);
  border-radius: 14px;
  margin-bottom: 10px;
}

.cta-keeta-store strong {
  font-family: var(--serif);
  font-size: 18px;
  flex: 1 1 auto;
}

.cta-keeta-status {
  min-height: 20px;
  font-size: 13px;
  color: var(--gold-dark, #a96b19);
  font-weight: 700;
  margin: 0 0 14px;
}

.cta-modal__panel .btn {
  width: 100%;
}

.cta-modal__panel .btn + .btn {
  margin-top: 10px;
}

/* ---- Sticky mobile bottom CTA bar ---- */

.cta-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  .cta-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white, #fbf6ee);
    border-top: 1px solid var(--line, #eadfd2);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
  }

  .cta-sticky-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--ink, #17110d);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
  }

  .cta-sticky-bar__item:nth-child(2) {
    color: var(--gold-dark, #a96b19);
  }

  .cta-sticky-bar__icon {
    font-size: 18px;
    line-height: 1;
  }

  /* Keep sticky bar from covering the last section on mobile */
  body.has-cta-sticky-bar {
    padding-bottom: 74px;
  }
}
