/* ========================================
   漢森民俗調理整復中心 v5
   古典中國風 — 朱紅配色
   ======================================== */

/* --- CSS Variables --- */
:root {
  /* 主色：朱紅系（不死紅，帶暖棕的傳統紅） */
  --red-deep:    #7A1B1B;
  --red-primary: #9B2335;
  --red-warm:    #B5364A;
  --red-light:   #D4606E;
  --red-pale:    #F2DCD6;
  --red-bg:      #FDF5F3;

  /* 輔助色：古色古香 */
  --gold:        #C9A96E;
  --gold-light:  #E8D5A8;
  --gold-dark:   #8A6E3A;
  --ink:         #2C1810;
  --ink-light:   #4A3528;
  --ink-muted:   #6B5548;
  --parchment:   #FAF3EA;
  --cream:       #FFF8F0;
  --wood:        #5C3A21;

  /* Typography */
  --font-serif:  'Noto Serif TC', 'PMingLiU', serif;
  --font-sans:   'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-brush:  'Ma Shan Zheng', cursive;

  /* Spacing */
  --section-pad: 100px;
  --container-w: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--red-bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red-primary); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Ornament Bar --- */
.top-ornament {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red-primary), var(--gold));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(122, 27, 27, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(122, 27, 27, 0.97);
  box-shadow: 0 2px 20px rgba(44, 24, 16, 0.3);
}

.nav-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-seal {
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--red-deep);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold-light);
  transform: rotate(-3deg);
}

.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 2px;
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  letter-spacing: 1px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 60%; }

.nav-cta {
  background: var(--gold);
  color: var(--red-deep) !important;
  font-weight: 600;
  border-radius: 2px;
  padding: 8px 20px;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--gold-light);
  color: var(--red-deep) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: all 0.3s var(--ease);
}

/* 桌機上隱藏 sidebar backdrop */
.nav-backdrop { display: none; }

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--red-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(155, 35, 53, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(138, 110, 58, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(201, 169, 110, 0.15) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(201, 169, 110, 0.03) 60px,
      rgba(201, 169, 110, 0.03) 61px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(201, 169, 110, 0.03) 60px,
      rgba(201, 169, 110, 0.03) 61px
    );
}

/* 角落回紋裝飾 */
.hero-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.4;
  z-index: 2;
}
.hero-corner--tl { top: 100px; left: 40px; border-width: 3px 0 0 3px; }
.hero-corner--tr { top: 100px; right: 40px; border-width: 3px 3px 0 0; }
.hero-corner--bl { bottom: 40px; left: 40px; border-width: 0 0 3px 3px; }
.hero-corner--br { bottom: 40px; right: 40px; border-width: 0 3px 3px 0; }

/* 對聯 */
.hero-couplet {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-couplet span {
  font-family: var(--font-brush);
  font-size: 1.6rem;
  color: var(--gold);
  opacity: 0.35;
  writing-mode: vertical-rl;
  letter-spacing: 8px;
}
.hero-couplet--left { left: 50px; }
.hero-couplet--right { right: 50px; }

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 90px 24px 40px;
}

/* 印章 */
.hero-seal {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(-4deg);
}
.hero-seal::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold);
  opacity: 0.6;
}
.hero-seal span {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1.3;
  letter-spacing: 4px;
  text-align: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.title-top {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 8px;
}
.title-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.title-main {
  font-family: var(--font-brush);
  font-size: 3.5rem;
  color: var(--cream);
  letter-spacing: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* 四診 */
.hero-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pillar-char {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  width: 56px;
  height: 56px;
  border: 2px solid rgba(201, 169, 110, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.08);
}
.pillar-label {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  opacity: 0.8;
}
.pillar-sep {
  color: var(--gold);
  opacity: 0.3;
  font-size: 1.5rem;
  margin-top: -18px;
}

.hero-verse {
  margin: 0 auto 28px;
  padding: 12px 32px;
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  display: block;
  width: fit-content;
  max-width: 100%;
}
.hero-verse p {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 3px;
}
.hero-verse cite {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.7;
  font-style: normal;
}

.btn-hero {
  display: inline-block;
  background: var(--gold);
  color: var(--red-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 48px;
  letter-spacing: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}
.btn-hero::before,
.btn-hero::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-dark);
  border-style: solid;
  transition: all 0.3s var(--ease);
}
.btn-hero::before { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.btn-hero::after { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }
.btn-hero:hover {
  background: var(--gold-light);
  color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.hero-scroll {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--gold-light);
  letter-spacing: 4px;
  opacity: 0.6;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--gold);
  opacity: 0.4;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50% { opacity: 0.6; transform: scaleY(1); }
}

/* --- Section Styling --- */
.section {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 76px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  scroll-margin-top: 0;
  /* 跳過螢幕外 section 的 style/layout 計算，大幅降低主執行緒負擔 */
  content-visibility: auto;
  contain-intrinsic-size: 100vh;
}
/* 緊鄰首屏的 about 維持立即渲染（LCP 元素在裡面），避免 LCP 評估失準 */
.about { content-visibility: visible; }
/* header 緊貼 navbar 下方；後面的主要內容直接接在 header 之後（無上下置中空白） */
.section > .container { display: flex; flex-direction: column; flex: 1; }
.section > .container > .section-header { flex: 0 0 auto; }
.section > .container > .section-header + * { margin-top: 0; margin-bottom: 0; }
/* about 特例：container 只有 header，about-layout 在外面 */
.about > .container { flex: 0 0 auto; }
.about > .about-layout { flex: 1; align-items: center; }

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.header-icon {
  font-size: 1.5rem;
  color: var(--red-primary);
  margin-bottom: 8px;
}
.header-icon--light { color: var(--gold-light); }

.section-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-tag--light { color: var(--gold-light); opacity: 0.7; }

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red-deep);
  letter-spacing: 12px;
  margin-bottom: 16px;
}
.section-title--light { color: var(--cream); }
.title-dot { color: var(--gold); font-size: 0.6em; vertical-align: middle; }

.brush-divider {
  width: 80px;
  height: 3px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  border-radius: 2px;
}
.brush-divider--light {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-muted);
  letter-spacing: 2px;
}

/* --- About Section --- */
.about {
  background: var(--cream);
}
.about .section-header {
  margin-bottom: 20px;
}

.about-layout {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.image-frame {
  position: relative;
  padding: 12px;
  border: 1px solid var(--gold);
}
.image-frame::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid rgba(201, 169, 110, 0.3);
}

.image-placeholder {
  background: linear-gradient(135deg, var(--red-pale), #e8d5c4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  min-height: 200px;
  letter-spacing: 2px;
}
.image-placeholder--tall { min-height: 420px; }
.image-placeholder--portrait { min-height: 300px; }
.image-placeholder--cert { min-height: 160px; }

.about-image {
  align-self: start;
}
.about-photo {
  display: block;
  width: 100%;
  height: 65vh;
  max-height: 700px;
  min-height: 380px;
  object-fit: cover;
  object-position: center bottom;
}

.about-lead {
  font-family: var(--font-brush);
  font-size: 2rem;
  color: var(--red-primary);
  margin-bottom: 8px;
}

.about-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 4px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--red-pale);
}

.about-content p {
  color: var(--ink-light);
  margin-bottom: 16px;
  line-height: 2;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--red-pale);
}

.stat-item {
  text-align: center;
}

.stat-circle {
  width: 90px;
  height: 90px;
  border: 2px solid var(--red-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  background: rgba(155, 35, 53, 0.04);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red-primary);
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--red-warm);
}

.stat-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 2px;
}

/* --- Services Section --- */
.services {
  background:
    linear-gradient(180deg, var(--red-bg) 0%, var(--parchment) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.service-cat-card {
  background: var(--cream);
  border: 1px solid var(--red-pale);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.service-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.service-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(122, 27, 27, 0.12);
  border-color: var(--gold);
}
.service-cat-card:hover::before { transform: scaleX(1); }

.service-cat-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--red-pale);
}

.service-stamp {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red-primary);
  width: 56px;
  height: 56px;
  border: 2px solid var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transform: rotate(-3deg);
  opacity: 0.85;
}

.service-cat-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: 6px;
  margin-bottom: 6px;
}

.service-cat-tag {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 3px;
}

.service-items {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  flex: 1;
}

.service-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(201, 169, 110, 0.35);
}
.service-item:last-child { border-bottom: none; }

.item-name {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1.5;
}

.item-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-primary);
  white-space: nowrap;
}
.item-price small {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 1px;
}

.service-cat-footer {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  border-top: 1px solid var(--red-pale);
}
.service-cat-footer .btn-sm {
  min-width: 130px;
  text-align: center;
}

.btn-sm {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  padding: 6px 16px;
  border: 1px solid var(--red-primary);
  color: var(--red-primary);
  letter-spacing: 2px;
  transition: all 0.3s var(--ease);
}
.btn-sm:hover {
  background: var(--red-primary);
  color: var(--cream);
}

/* --- Certificates Section --- */
.certificates {
  background:
    linear-gradient(180deg, var(--red-bg) 0%, var(--cream) 100%);
}
.certs-carousel {
  position: relative;
  overflow: hidden;
  max-width: 1180px;
  margin: 0 auto;
}
.certs-track {
  display: flex;
  /* transition is set by JS to allow snap-back without animation */
}
.cert-slide {
  flex: 0 0 33.333%;
  padding: 0 16px;
  box-sizing: border-box;
}
.cert-card {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--red-pale);
  background: var(--cream);
  overflow: hidden;
}
.cert-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.certs-carousel .carousel-nav {
  margin-top: 24px;
}

/* --- Cases (Videos) Section --- */
.cases {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--cream) 100%);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.case-video {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid var(--red-pale);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(122, 27, 27, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.case-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(122, 27, 27, 0.15);
}
.case-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Reviews Wall (Google Reviews) --- */
.reviews {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--red-bg) 100%);
}
.review-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  height: 64vh;
  max-height: 640px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.review-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}
.review-col--up   { animation: rwUp   60s linear infinite; }
.review-col--down { animation: rwDown 75s linear infinite; }
.review-col--mid  { animation: rwUp   50s linear infinite; }
.review-wall:hover .review-col { animation-play-state: paused; }
.review-col img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--red-pale);
  background: #fff;
  box-shadow: 0 2px 10px rgba(122, 27, 27, 0.06);
}
@keyframes rwUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes rwDown {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--red-primary);
  background: transparent;
  color: var(--red-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  border-radius: 50%;
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover {
  background: var(--red-primary);
  color: var(--cream);
}

/* --- Booking Section --- */
.booking {
  background:
    linear-gradient(135deg, var(--red-deep) 0%, #6B1515 50%, var(--red-deep) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.booking-pattern {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(201, 169, 110, 0.04) 30px,
      rgba(201, 169, 110, 0.04) 31px
    );
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.booking-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: 40px 32px;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.card-watermark {
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(201, 169, 110, 0.06);
  line-height: 1;
}

.booking-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.booking-card p {
  color: var(--gold-light);
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.8;
}

.booking-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.btn-line {
  display: inline-block;
  padding: 7px 16px;
  background: #06C755;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.btn-line:hover {
  background: #05b34c;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s var(--ease);
}
.btn-outline-light:hover {
  background: var(--gold);
  color: var(--red-deep);
}

.booking-note p {
  font-size: 0.8rem;
  color: var(--gold-light);
  opacity: 0.6;
  margin-bottom: 4px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table thead tr { border-bottom: 1px solid rgba(201, 169, 110, 0.35); }
.hours-table tbody tr { border-bottom: 1px solid rgba(201, 169, 110, 0.15); }
.hours-table th {
  padding: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 3px;
  text-align: left;
  opacity: 0.75;
}
.hours-table th:last-child { text-align: right; }
.hours-table td {
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 1px;
}
.hours-table td:last-child { text-align: right; }
.hours-table .closed { color: var(--red-light); opacity: 0.7; }
.hours-table .by-appointment { color: var(--gold); opacity: 0.85; font-style: italic; }

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: var(--gold-light);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.logo-seal--sm {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 2px;
  display: block;
}
.footer-slogan {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 2px;
  display: block;
}

.footer-details { margin-bottom: 20px; }
.f-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.f-icon {
  color: var(--gold);
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}
.f-item p { font-size: 0.9rem; color: var(--gold-light); opacity: 0.8; }
.f-item a { color: var(--gold-light); opacity: 0.8; }
.f-item a:hover { color: var(--gold); opacity: 1; }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all 0.3s var(--ease);
  border-radius: 50%;
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.footer-map {
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 4px;
  overflow: hidden;
  min-height: 250px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gold-light);
  opacity: 0.5;
  letter-spacing: 1px;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--red-primary);
  color: var(--cream);
  border: 2px solid var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease);
  z-index: 99;
  border-radius: 50%;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--gold);
  color: var(--red-deep);
  transform: translateY(-3px);
}

/* --- Animations --- */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
}
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s var(--ease) forwards;
}
.animate-fade-in:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-in-up:nth-child(1) { animation-delay: 0.4s; }
.animate-fade-in-up:nth-child(2) { animation-delay: 0.6s; }
.animate-fade-in-up:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-wall { max-width: 760px; height: 60vh; }
  .cases-grid { gap: 18px; }
  .hero-couplet { display: none; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

  .section { padding: 88px 0 40px; }

  /* 行動裝置：移除 backdrop-filter（GPU 昂貴）+ 改用實心紅色 */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(122, 27, 27, 0.97); }
  /* Reviews wall mask 在手機上昂貴，改成簡單裁切 */
  .review-wall { -webkit-mask-image: none; mask-image: none; }
  /* Hero 多層 repeating-linear-gradient 在手機上 paint 成本高，移除網格紋 */
  .hero-overlay { display: none; }

  .nav-toggle { display: flex; }
  /* 行動裝置改為右側滑入式 sidebar */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(280px, 80vw);
    background: rgba(122, 27, 27, 0.98);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 88px 22px 24px;
    gap: 0;
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.32s var(--ease);
    pointer-events: none;
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
    border-bottom: none;
    z-index: 1000;
  }
  .nav-menu li { width: 100%; }
  .nav-menu.active {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-link {
    padding: 14px 4px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(201, 169, 110, 0.12);
    font-size: 1rem;
  }
  .nav-link::after { display: none; }
  /* 「預約調理」在 sidebar 弱化為普通項目（金色文字強調即可）*/
  .nav-cta {
    background: transparent;
    color: var(--gold) !important;
    font-weight: 700;
    margin-top: 4px;
    padding: 14px 4px;
    text-align: left;
    border-radius: 0;
    border-top: 1px solid rgba(201, 169, 110, 0.3);
    border-bottom: none;
  }
  .nav-cta:hover { background: transparent; color: var(--gold-light) !important; }

  /* Sidebar 半透明遮罩 */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s var(--ease);
    z-index: 999;
  }
  .nav-backdrop.active { opacity: 1; pointer-events: auto; }

  /* sidebar 開啟時鎖住 body 滾動 */
  body.nav-open { overflow: hidden; }

  .title-main { font-size: 2.2rem; letter-spacing: 4px; }
  .title-top { font-size: 0.9rem; letter-spacing: 4px; }

  .hero-pillars { gap: 10px; flex-wrap: wrap; }
  .pillar-char { width: 44px; height: 44px; font-size: 1.5rem; }
  .pillar-sep { display: none; }
  .hero-verse { padding: 12px 16px; }

  .hero-corner { width: 40px; height: 40px; }
  .hero-corner--tl { top: 80px; left: 16px; }
  .hero-corner--tr { top: 80px; right: 16px; }
  .hero-corner--bl { bottom: 16px; left: 16px; }
  .hero-corner--br { bottom: 16px; right: 16px; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-cat-card { padding: 28px 22px 22px; }
  .service-cat-name { letter-spacing: 4px; font-size: 1.25rem; }

  .certs-carousel {
    max-width: 320px;
  }
  .cert-slide { flex: 0 0 100%; padding: 0 8px; }

  .cases-grid { grid-template-columns: 1fr; max-width: 360px; gap: 16px; }
  .review-wall { grid-template-columns: 1fr; max-width: 360px; height: 62vh; gap: 12px; }
  .review-wall .review-col:nth-child(2),
  .review-wall .review-col:nth-child(3) { display: none; }
  /* 手機只剩單欄，加快滾動讓視覺更生動 */
  .review-col--up { animation-duration: 30s; }
  .review-col img { border-radius: 4px; }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6rem;
    letter-spacing: 6px;
  }

  .about-stats {
    gap: 16px;
  }
  .stat-circle { width: 72px; height: 72px; }
  .stat-num { font-size: 1.3rem; }

  .booking-btns { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-seal { width: 80px; height: 80px; }
  .hero-seal span { font-size: 1.3rem; }
  .title-main { font-size: 1.8rem; }
  .hero-pillars { gap: 8px; }
  .pillar-char { width: 38px; height: 38px; font-size: 1.2rem; }
  .pillar-label { font-size: 0.6rem; }
}
