/* ══════════════════════════════════════════
   模組05｜品牌質感風格（多頁式）共用樣式
   主色 --primary 可依客人品牌調整
   ══════════════════════════════════════════ */

:root {
  --primary:      #6b7c1a;
  --primary-dark: #4a5812;
  --primary-pale: #f0f3e0;
  --cream:        #fdf8ef;
  --text:         #2d2a1e;
  --text-light:   #6b6450;
  --gold:         #c9a84c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1),
              transform 0.85s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.12s; }
.fade-up:nth-child(3) { transition-delay: 0.22s; }
.fade-up:nth-child(4) { transition-delay: 0.32s; }

/* ── NAV ── */
nav {
  background: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: url(#white-mask);
}
.nav-links { display: flex; align-items: center; }
nav a {
  padding: 18px 22px;
  text-decoration: none;
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  letter-spacing: 3px;
  position: relative;
  transition: color 0.25s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 22px; right: 22px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
nav a:hover { color: #fff; }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: #fff; }
nav a.active::after { transform: scaleX(1); }
.nav-fb {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  color: rgba(255,255,255,0.82);
  transition: color 0.25s;
  text-decoration: none;
}
.nav-fb:hover { color: #fff; }
.nav-fb::after { display: none !important; }
.nav-fb svg { width: 20px; height: 20px; }

/* ── SECTION 共用 ── */
section { padding: 104px 24px; }
.section-title { text-align: center; margin-bottom: 68px; }
.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 300;
}
.section-title h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  letter-spacing: 5px;
  font-weight: 600;
}
.title-line {
  width: 36px; height: 1px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* ── FOOTER ── */
footer { background: var(--primary); text-align: center; padding: 64px 24px 40px; }
.footer-logo { height: 72px; width: auto; filter: url(#white-mask); margin-bottom: 14px; }
.footer-tagline { font-size: 0.82rem; letter-spacing: 4px; color: rgba(255,255,255,0.7); margin-bottom: 36px; font-weight: 300; }
.footer-divider { width: 36px; height: 1px; background: rgba(255,255,255,0.22); margin: 0 auto 28px; }
.footer-links { display: flex; justify-content: center; gap: 36px; margin-bottom: 36px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.95rem; letter-spacing: 3px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-fb { display: inline-flex; align-items: center; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.footer-fb:hover { color: var(--gold); }
.footer-fb svg { width: 18px; height: 18px; }
.footer-copy { font-size: 0.68rem; color: rgba(255,255,255,0.3); letter-spacing: 1.5px; }

/* ── HAMBURGER TOGGLE ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RWD ── */
@media (max-width: 768px) {
  section { padding: 72px 20px; }
  nav { padding: 0 16px; position: relative; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary-dark);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  nav a { padding: 16px 24px; font-size: 0.9rem; letter-spacing: 2px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  nav a::after { display: none; }
  .nav-fb { padding: 16px 24px; border-bottom: none; }
}
@media (max-width: 480px) {
  .footer-links { gap: 20px; }
}
