.works .sec-title {
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .categories {
    gap: 0px !important;
  }

  /* Heart tiles are a fixed 300px; shrink them so two fit per row
     without overflowing on phones. */
  .categories .item {
    width: 46vw;
    height: 46vw;
    max-width: 300px;
    max-height: 300px;
  }
}

.categories {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  font-size: 18px;
}

.item {
  width: 300px;
  height: 300px;
}

.mask {
  margin: 0 10px;
  width: 100%;
  height: 100%;
  -webkit-mask: url("/img/categories/heart2.png") no-repeat center center;
  mask: url("/img/categories/heart2.png") no-repeat center center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.event .mask {
  background: url("/img/categories/event.jpg") no-repeat top center;
  background-size: cover;
}

.price .mask {
  background: url("/img/categories/price.jpg") no-repeat top center;
  background-size: cover;
}

.vessel .mask {
  background: url("/img/categories/vessel.jpg") no-repeat top center;
  background-size: cover;
}

.sign .mask {
  background: url("/img/categories/sign.jpg") no-repeat top center;
  background-size: cover;
}


.beverage .mask {
  background: url("/img/categories/beverage.jpg") no-repeat center;
  background-size: cover;
}


.favors .mask {
  background: url("/img/categories/weddingfavor.jpg") no-repeat top center;
  background-size: cover;
}


.sweetBar .mask {
  background: url("/img/categories/sweetBar.jpeg") no-repeat top center;
  background-size: cover;
}

.garnish .mask {
  background: url("/img/categories/garnish.jpg") no-repeat top center;
  background-size: cover;
}

.bartender .mask {
  background: url("/img/categories/bartender.jpg") no-repeat top center;
  background-size: cover;
}

.reserve .mask {
  background: url("/img/categories/reserve.jpg") no-repeat top center;
  background-size: cover;
}


.categories .txt {
  position: relative;
  bottom: 50px;
  border-radius: 10px;
  background-color: #040b1bb3;
  color: white;
  padding: 10px;
  line-height: 1.4;
  font-weight: 600;

  &:hover {
    background-color: #040b1b;
    color: #c99530;
    font-weight: 800;
  }
}
/* ============================================================
   了解更多 — horizontal swipe carousel of navigation cards
   1 card on phones (with a peek of the next), 2 side-by-side on
   wider screens. Native scroll-snap for smooth swipe + snapping;
   arrows for mouse users; dots for position. Cards stay links.
   ============================================================ */
.cards-carousel {
  position: relative;
  max-width: 1120px;
  margin: 12px auto 0;
  padding: 0 clamp(16px, 4vw, 44px);
}

.cards-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 14px;
}
.cards-track::-webkit-scrollbar { display: none; }

.stack-card {
  position: relative;
  display: block;
  flex: 0 0 86%;            /* phone: one card + a peek of the next */
  scroll-snap-align: center;
  height: clamp(400px, 64vw, 520px);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #040b1b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* two cards side-by-side once there's room */
@media (min-width: 768px) {
  .stack-card {
    flex-basis: calc((100% - 22px) / 2);
    scroll-snap-align: start;
    height: 470px;
  }
}

.stack-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

/* legibility gradient over the photo */
.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(4, 11, 27, 0.94) 0%,
      rgba(4, 11, 27, 0.45) 42%,
      rgba(4, 11, 27, 0) 68%);
}

.stack-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* NOTE: this site sets html { font-size: 10px }, so rem is halved vs usual.
   Card text uses px to stay in step with the other components (h4 ~18-24px). */
.stack-card__kicker {
  font-size: 15px;
  letter-spacing: 0.35em;
  font-weight: 700;
  color: #c99530;
  opacity: 0.9;
}

.stack-card__body h4 {
  margin: 0;
  font-size: clamp(24px, 5.5vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
}

.stack-card__body p {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.stack-card__cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  background: #c99530;
  color: #040b1b;
  font-weight: 800;
  font-size: 17px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.stack-card:hover .stack-card__cta {
  background: #e0ad45;
  transform: translateX(4px);
}
.stack-card:hover .stack-card__media {
  transform: scale(1.05);
}

.beverage.stack-card .stack-card__media { background-image: url("/img/categories/beverage.jpg"); }
.price.stack-card    .stack-card__media { background-image: url("/img/categories/price.jpg"); }
.vessel.stack-card   .stack-card__media { background-image: url("/img/categories/vessel.jpg"); }
.reserve.stack-card  .stack-card__media { background-image: url("/img/categories/reserve.jpg"); }

/* prev / next arrows — mainly for mouse users (touch just swipes) */
.cards-nav {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(4, 11, 27, 0.72);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, opacity 0.25s ease;
}
.cards-nav:hover { background: #c99530; color: #040b1b; }
.cards-nav.prev { left: 2px; }
.cards-nav.next { right: 2px; }
.cards-nav[disabled] { opacity: 0.25; cursor: default; }
@media (hover: none) and (pointer: coarse) {
  .cards-nav { display: none; }
}

/* pagination dots */
.cards-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.cards-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.cards-dots .dot.is-active {
  width: 28px;
  background: #c99530;
}
