/* 茂豐行前台主題樣式（由 front/common.css 移入） */
.gold {
  color: #c2a747;
}

.gold-bg {
  background-color: #c2a747;
}

.gold-border {
  border-color: #c2a747;
}

.gold-gradient {
  background: linear-gradient(
    90deg,
    transparent 0%,
    #c2a747 50%,
    transparent 100%
  );
}

.gold-gradient-v {
  background: linear-gradient(
    180deg,
    rgba(194, 167, 71, 0.15) 0%,
    transparent 50%,
    rgba(194, 167, 71, 0.15) 100%
  );
}

.noto-serif-tc-400 {
  font-family: "Noto Serif TC", serif;
  font-weight: 400;
}

.noto-serif-tc-700 {
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
}

.noto-sans-tc-400 {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 400;
}

.noto-sans-tc-500 {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
}

.noto-sans-tc-700 {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

/* 漢堡選單：三線 → X 微動畫 */
.menu-toggle {
  position: relative;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
  transform-origin: center;
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease,
    width 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .menu-toggle__bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* 行動選單：由上往下滑出 */
.mobile-menu {
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__inner {
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 0.48s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.35s ease;
}

.mobile-menu.is-open .mobile-menu__inner {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu__item {
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-menu.is-open .mobile-menu__item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__item:nth-child(1) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(2) { transition-delay: 0.17s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(3) { transition-delay: 0.22s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(4) { transition-delay: 0.27s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(6) { transition-delay: 0.37s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(7) { transition-delay: 0.42s; }
.mobile-menu.is-open .mobile-menu__item:nth-child(8) { transition-delay: 0.47s; }

/* 首頁輪播 */
.hero-slide {
  background-color: #000;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.hero-slide > * {
  position: relative;
  z-index: 1;
}

.hero-dot {
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background-color: #c2a747;
}
