/* ==========================================================================
   MOTRIX — conversion helpers (all pages):
   quick-slot buttons, Google reviews, sticky "Rezervă" bar on phones, WhatsApp button.
   ========================================================================== */

/* ------------------------------------------------------- quick slots */
.quick-slots { display: grid; gap: 12px; margin-top: var(--sp-4); }
.quick-slots[hidden], .quick-slots__group[hidden] { display: none; }
.quick-slots__label { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--c-text-soft); }
.quick-slots__row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-slot {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 92px; padding: 8px 14px; border-radius: 14px; text-decoration: none;
  background: var(--c-surface); border: 1px solid rgba(187, 243, 81, 0.45); color: var(--c-text);
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.quick-slot:hover, .quick-slot:focus-visible {
  background: var(--c-lime); border-color: var(--c-lime); color: var(--c-ink);
  box-shadow: 0 0 18px rgba(187, 243, 81, 0.45); transform: translateY(-2px);
}
.quick-slot__day { font-size: 0.74rem; font-weight: 700; opacity: 0.85; white-space: nowrap; }
.quick-slot__time { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; line-height: 1.1; }
.quick-slots__note { margin: 0; font-size: 0.78rem; color: var(--c-text-mute); }
.reservation-shell .quick-slots { padding: var(--sp-4); border-radius: 18px; background: var(--c-surface); border: 1px solid var(--c-border); }
.reservation-shell .quick-slot { background: rgba(255, 255, 255, 0.04); }

/* ------------------------------------------------------- reviews */
.stars { color: #fbbc04; letter-spacing: 0.08em; }
.reviews-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--sp-3);
  font-size: 0.9rem; font-weight: 700; color: var(--c-text); text-decoration: none;
}
.reviews-badge .stars { font-size: 1.05rem; }
.reviews-badge span:last-child { border-bottom: 1px dashed rgba(255, 255, 255, 0.35); }
.reviews-badge:hover span:last-child { border-bottom-color: var(--c-lime); color: var(--c-lime); }

.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.reviews__rating { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-text-soft); }
.reviews__rating .stars { font-size: 1.3rem; }
.reviews__links { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.reviews__list {
  list-style: none; margin: 0; padding: 4px 2px 14px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.review-card {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border-radius: 18px; background: var(--c-surface); border: 1px solid var(--c-border);
}
.review-card .stars { font-size: 1.05rem; }
.review-card__text { margin: 0; color: var(--c-text-soft); font-size: 0.93rem; line-height: 1.55; max-height: calc(6 * 1.55em); overflow: hidden; }
.review-card__text p { margin: 0; }
.review-card.is-open .review-card__text { max-height: none; }
.review-card__more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--c-lime); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; }
.review-card__more[hidden] { display: none; }
.review-card__name { margin: auto 0 0; font-weight: 800; color: var(--c-text); }
.review-card__name span { font-weight: 500; color: var(--c-text-mute); }
@media (max-width: 599px) {
  .reviews__list { grid-auto-columns: 82%; margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* ------------------------------------------------ sticky bar + WhatsApp */
.sticky-book { display: none; }
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg, .sticky-book__wa svg { width: 28px; height: 28px; }

@media (max-width: 767px) {
  .sticky-book {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 10, 32, 0.94); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(187, 243, 81, 0.35); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(110%); transition: transform 0.3s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book__btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 38px; padding: 4px 10px; font-size: 0.9rem; line-height: 1.1; }
  .sticky-book__btn small { font-size: 0.66rem; font-weight: 600; opacity: 0.8; }
  .sticky-book__wa {
    flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff;
  }
  .sticky-book__wa svg { width: 20px; height: 20px; }
  /* The bar replaces the floating WhatsApp button on phones */
  body:not(.page-rezervari) .wa-float { display: none; }
  body:not(.page-rezervari) .site-footer { padding-bottom: calc(var(--sp-7) + 54px); }
  /* No bar on the booking pages (the booking itself is the call to action) */
  .page-rezervari .sticky-book { display: none; }
  .page-rezervari .wa-float { width: 42px; height: 42px; right: 10px; bottom: 10px; }
  .wa-float svg { width: 22px; height: 22px; }
  /* The atelier booking page has its own sticky summary at the bottom */
  .page-rezervari.page-atelier .wa-float { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sticky-book { transition: none; } }
@media (max-width: 599px) {
  .quick-slots__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .quick-slot { min-width: 0; padding: 7px 4px; border-radius: 12px; }
  .quick-slot__day { font-size: 0.66rem; }
  .quick-slot__time { font-size: 1.02rem; }
}
.quick-slots__wa { margin: 0; font-size: 0.85rem; }
.quick-slots__wa a { color: #25d366; font-weight: 700; }
@media (max-width: 767px) { .page-rezervari .wa-float { display: none; } }

/* Homepage: quick slots under the prices */
.quick-slots-section .quick-slots { max-width: 760px; margin: var(--sp-6) auto 0; padding: var(--sp-4); border-radius: 18px; background: var(--c-surface); border: 1px solid var(--c-border); }

/* Contact page: WhatsApp card */
.info-card--wa .info-card__icon { color: #25d366; }
.info-card--wa .info-card__value { color: #25d366; }
.info-card__hint { margin: 4px 0 0; font-size: 0.8rem; color: var(--c-text-mute); }
