/* ===================================
   鄰裏資產管理 — 形象網站樣式
   Warm Neutral · 三階灰棕色系
   =================================== */

/* --- Design Tokens --- */
:root {
  /* 三階灰棕 + 黑白 */
  --clr-primary: #a19585; /* 深 — 按鈕/重點 */
  --clr-primary-dark: #2c2c2c; /* 黑 — hover 加深 */
  --clr-primary-light: #dedad7; /* 淺 — 卡片/淺底 */
  --clr-accent: #a19585; /* 深 — 同 primary */
  --clr-accent-light: #dedad7;
  --clr-bg: #dedad7; /* 淺 — 主背景 */
  --clr-bg-alt: #cbc5b9; /* 中 — 交替背景 */
  --clr-text: #2c2c2c; /* 黑 — 主文字 */
  --clr-text-muted: #a19585; /* 深 — 次要文字 */
  --clr-border: #cbc5b9; /* 中 — 邊框 */
  --clr-white: #ffffff; /* 白 */

  /* Hero 門洞座標（CSS variables，確保 surround/floor/door 三處一致） */
  --door-x1: 20%; /* 門洞左側 */
  --door-x2: 79.2%; /* 門洞右側 */
  --door-top: 15%; /* 門洞頂部 */
  --door-bot: 91%; /* 門洞底部（距頂百分比）*/
  --container-size: 95vmin;

  /* 使用微軟正黑體，不引入外部字型服務 */
  --ff-serif:
    "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "蘋方-繁", "Heiti TC",
    "黑體-繁", "Georgia", serif;
  --ff-sans:
    "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "蘋方-繁", "Heiti TC",
    "黑體-繁", sans-serif;
  --ff-display:
    "Microsoft JhengHei", "微軟正黑體", "PingFang TC", "蘋方-繁", serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 12px rgba(161, 149, 133, 0.12);
  --shadow-md: 0 8px 32px rgba(161, 149, 133, 0.16);
  --shadow-lg: 0 20px 60px rgba(44, 44, 44, 0.14);

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-height: 76px;
  --max-width: 1200px;
  --section-padding: 100px 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-label {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-text);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: var(--clr-text-muted);
  line-height: 1.8;
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 500;
  transition:
    background 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}
.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.18);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 10px 32px rgba(44, 44, 44, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--clr-white);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: transparent;
  color: var(--clr-primary-dark);
  border: 1.5px solid var(--clr-primary);
}

.btn-outline-dark:hover {
  background: var(--clr-primary-light);
  box-shadow: 0 4px 16px rgba(44, 44, 44, 0.12);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* --- View Transition API（僅限換頁時觸發） --- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-logo {
  border-radius: 3px;
}

/* ==============================
   NAVIGATION
   ============================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    backdrop-filter var(--transition),
    border-color var(--transition);
  padding: 0 24px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(38, 33, 29, 0.4); /* 40% 不透明度 = 60% 透明度壓克力 */
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 4px 24px rgba(20, 16, 13, 0.12);
  border-bottom: 1px solid rgba(222, 218, 215, 0.08);
}

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

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition), filter var(--transition);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16)); /* 套用 drop-shadow 陰影 */
}

.nav.scrolled .nav-logo-icon {
  filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.16)); /* 滾動後變色並維持陰影 */
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.04);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 44px; /* 與 logo 圖示高度 (44px) 完全一致 */
  padding: 1px 0;
  box-sizing: border-box;
  width: 175px; /* 固定寬度，防止打字動畫期間推擠導航連結 */
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18)); /* 文字套用 drop-shadow 陰影 */
}

.nav-logo-name {
  font-family: var(--ff-serif);
  font-size: 19px;
  font-weight: 700;
  color: #F7F4EE; /* 溫馨象牙暖白，高對比與適中柔和兼具 */
  letter-spacing: 1.5px;
  line-height: 1;
}

.nav-logo-sub {
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 500;
  color: #D8CEBE; /* 溫馨香檳沙金 */
  letter-spacing: 1.8px;
  line-height: 1;
}



/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500; /* 稍微加粗，提升金屬色字體可讀性 */
  color: #D8CEBE; /* 溫馨香檳沙金（金屬色） */
  transition:
    background var(--transition),
    color var(--transition),
    filter var(--transition);
  cursor: pointer;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15)); /* 文字套用 drop-shadow 陰影 */
}

.nav-link:hover {
  background: rgba(216, 206, 190, 0.12); /* 淡淡金屬沙金背景 */
  color: #ffffff;
}

.nav-link[aria-current="page"] {
  background: rgba(216, 206, 190, 0.18); /* 金屬沙金背景 */
  color: #ffffff;
  font-weight: 600;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--clr-primary);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  border: none;
}

.nav-cta:hover {
  background: #8E8272;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.nav-cta[aria-current="page"] {
  background: #8E8272;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Home Page (Light Background) transparent nav state */
.nav-home:not(.scrolled) .nav-logo-text {
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.45)); /* 柔和白色背光，避免文字顯得過淡 */
}
.nav-home:not(.scrolled) .nav-logo-name {
  color: #2b2520; /* 稍微加深以增強對比，原為 #3e3731 */
}
.nav-home:not(.scrolled) .nav-logo-sub {
  color: #5a4f44; /* 稍微加深以增強對比，原為 #7d6e60 */
}
.nav-home:not(.scrolled) .nav-link {
  color: #6a5d50; /* 質感深青銅金，兼顧金屬感與清晰對比度 */
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5)); /* 柔和背光 */
}
.nav-home:not(.scrolled) .nav-link:hover {
  background: rgba(106, 93, 80, 0.08);
  color: #2b2520;
}
.nav-home:not(.scrolled) .nav-link[aria-current="page"] {
  background: rgba(106, 93, 80, 0.12);
  color: #2b2520;
}
.nav-home:not(.scrolled) .nav-hamburger span {
  background: #6a5d50; /* 同步為深青銅金 */
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--clr-white);
  transition:
    transform var(--transition),
    opacity var(--transition),
    background var(--transition);
}

.nav.scrolled .nav-hamburger span {
  background: #D8CEBE; /* 採用與文字相同的香檳沙金色（金屬色） */
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(38, 33, 29, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 16px 24px 32px;
  border-bottom: 1px solid rgba(222, 218, 215, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform var(--transition),
    opacity var(--transition),
    visibility 0s linear var(--transition);
}

.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-mobile-link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: #F7F4EE;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background var(--transition),
    color var(--transition);
  cursor: pointer;
}

.nav-mobile-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-mobile-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.nav-mobile-cta {
  margin-top: 12px;
  text-align: center;
  padding: 14px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.nav-mobile-cta[aria-current="page"] {
  background: var(--clr-primary-dark);
  color: var(--clr-white);
}

/* ==============================
   HERO — 開門視差
   ============================== */
.hero {
  position: relative;
  height: 100svh;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── 底層：房間（近乎原圖尺寸置中貼齊門內框） ── */
.hero-room {
  position: absolute;
  top: var(--door-top);
  bottom: calc(100% - var(--door-bot));
  left: var(--door-x1);
  right: calc(100% - var(--door-x2));
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: center 65%;
  border-radius: 2px;
}

.hero-room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  will-change: transform;
  transform-origin: center 65%;
}

/* 暖色陽光照射效應 (Sunlight Rays & Bright Warm Glow) */
.hero-sunlight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(255, 240, 200, 0.6) 0%,
      rgba(255, 215, 140, 0.3) 40%,
      rgba(255, 180, 100, 0) 75%
    ),
    linear-gradient(
      180deg,
      rgba(255, 248, 225, 0.25) 0%,
      rgba(255, 255, 255, 0) 55%
    );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* 明亮暖色過渡，開門時展現陽光能見度 */
  background: linear-gradient(
    135deg,
    rgba(15, 22, 32, 0.42) 0%,
    rgba(32, 28, 20, 0.28) 50%,
    rgba(12, 12, 12, 0.48) 100%
  );
  will-change: opacity;
}

/*
 * 大門圖片策略（v2.1）：
 *
 * 外框（牆壁 + 地板）：hero-door-bg-new.png
 * 門板（左/右）     ：hero-door-split.png
 *
 * 門洞座標（CSS variables）：
 *   --door-x1: 20%  --door-x2: 80%  --door-top: 15%  --door-bot: 91%
 *
 * 縫隙消除策略：
 *   surround polygon 各內邊向門洞延伸 1%（z:2），
 *   door panels（z:3）蓋住重疊區域。
 *   floor（z:1）被 surround 底邊壓住。
 */

/* ── 門組等比例容器 (1:1 防止大門在手機或寬螢幕上拉伸變形) ── */
.hero-gate-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--container-size);
  height: var(--container-size);
  z-index: 1;
}

/* 直向螢幕（如手機）時，將門組貼在最底端，避免下方地板留白 */
@media (max-aspect-ratio: 1/1) {
  .hero-gate-container {
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
  }
}

/* ── 靜態：天花板 + 牆壁（U 形 clip-path）── */
.hero-surround {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("../images/door/hero-door-bg-new.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  /*
	 * 各內邊向門洞延伸 1%：
	 *   左牆內側：20% → 21%（多覆蓋 1%）
	 *   右牆內側：80% → 79%
	 *   頂部橫樑：15% → 16%
	 *   底部地板交界：91% → 92%（向下壓住 surround/floor 縫隙）
	 */
  clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 92%,
    78.5% 92%,
    78.5% 16%,
    21% 16%,
    21% 92%,
    0% 92%
  );
  will-change: transform, opacity;
}

/* ── 靜態：地板（z:1，surround 底邊 92% 壓住 91% 的縫隙） ── */
.hero-floor {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../images/door/hero-door-bg-new.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  clip-path: inset(var(--door-bot) 0 0 0);
}

/* ── 動態：門洞容器（perspective 父層）── */
.hero-door {
  position: absolute;
  top: var(--door-top);
  bottom: calc(100% - var(--door-bot));
  left: var(--door-x1);
  right: calc(100% - var(--door-x2));
  z-index: 3;
  perspective: 2000px;
}

.hero-door-left,
.hero-door-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  will-change: transform;
  overflow: hidden;
}

/*
 * 門板對齊策略（v2.2）：
 * ::before 尺寸 = --container-size，background-size 也 = --container-size，
 * 再用負偏移對齊到容器座標系。這樣 split.png 和 bg-new.png 完美嵌合且不失真。
 */
.hero-door-left::before,
.hero-door-right::before {
  content: "";
  position: absolute;
  width: var(--container-size);
  height: var(--container-size);
  background-image: url("../images/door/hero-door-split.png");
  background-repeat: no-repeat;
  background-size: var(--container-size) var(--container-size);
}

.hero-door-left {
  left: 0;
  transform-origin: left center;
}
.hero-door-left::before {
  /* 補回門洞容器相對容器左上角的偏移 */
  left: calc(-0.20 * var(--container-size)); /* = var(--door-x1) */
  top: calc(-0.15 * var(--container-size)); /* = var(--door-top) */
}

.hero-door-right {
  right: 0;
  transform-origin: right center;
}
.hero-door-right::before {
  /* 補回門洞容器相對容器右上角的偏移 (100% - 79.2% = 20.8%) */
  right: calc(-0.208 * var(--container-size)); /* = 100% - var(--door-x2) */
  top: calc(-0.15 * var(--container-size)); /* = var(--door-top) */
}

/* 門縫陰影增加立體感 */
.hero-door-left::after,
.hero-door-right::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-door-left::after {
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset -12px 0 28px rgba(0, 0, 0, 0.18);
}
.hero-door-right::after {
  border-left: 1px solid rgba(0, 0, 0, 0.3);
  box-shadow: inset 12px 0 28px rgba(0, 0, 0, 0.18);
}

/* ── 文字內容 ── */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-tag,
.hero-title,
.hero-subtitle,
.hero-desc,
.hero-actions {
  will-change: transform, opacity;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-white);
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 720px;
  text-align: center;
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 1.5px;
  text-align: center;
  font-weight: 500;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 40px;
  text-align: center;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.7),
    0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 2px;
  z-index: 1;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

/* Stats Bar */
.stats-bar {
  background: var(--clr-white);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide: var(--clr-border);
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--clr-border);
  transition: background var(--transition);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item:hover {
  background: var(--clr-primary-light);
}

.stat-number {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--clr-text-muted);
  letter-spacing: 1px;
}

/* ==============================
   ABOUT SECTION
   ============================== */
.about {
  padding: var(--section-padding);
  background: var(--clr-bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  -webkit-transform: scale(1);
  transition: transform 1.5s ease-in-out;
  -webkit-transition: -webkit-transform 1.5s ease-in-out;
  will-change: transform;
}

.about-img-main:hover img {
  transform: scale(1.12);
  -webkit-transform: scale(1.12);
}

.about-img-accent {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--clr-white);
}

.about-img-accent img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: 24px;
  right: -20px;
  background: var(--clr-primary);
  color: var(--clr-white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-badge-num {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.about-badge-label {
  font-size: 11px;
  opacity: 0.9;
  letter-spacing: 1px;
  margin-top: 4px;
}

.about-quote {
  font-family: var(--ff-serif);
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--clr-primary-dark);
  border-left: 3px solid var(--clr-accent);
  padding: 16px 20px;
  background: var(--clr-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
  line-height: 1.7;
  font-style: italic;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  cursor: default;
}

.value-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.value-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--clr-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
}

.value-text strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.value-text span {
  font-size: 12px;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* ==============================
   SERVICES
   ============================== */
.services {
  padding: var(--section-padding);
  background: var(--clr-bg-alt);
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.services-header .section-desc {
  margin: 0 auto;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  cursor: default;
}

.service-card:hover {
  /* 卡片本身不位移，只加強陰影；圖片 zoom 在下方處理 */
  box-shadow: var(--shadow-lg);
}

.service-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-primary-light);
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  -webkit-transform: scale(1);
  transition: transform 1.5s ease-in-out;
  -webkit-transition: -webkit-transform 1.5s ease-in-out;
  will-change: transform;
}

.service-card:hover .service-card-img img,
.service-card-img:hover img {
  transform: scale(1.12);
  -webkit-transform: scale(1.12);
}

.service-card-icon {
  display: none;
}

.service-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.service-card-title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  min-height: 5.4em;
}

.service-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--clr-text-muted);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-primary);
  flex-shrink: 0;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-primary);
  transition:
    gap var(--transition),
    color var(--transition);
  cursor: pointer;
  margin-top: auto;
}

.service-card-link:hover {
  gap: 10px;
  color: var(--clr-primary-dark);
}

/* ==============================
   BEFORE / AFTER CASES
   ============================== */
.cases {
  padding: var(--section-padding);
  background: var(--clr-bg);
}

.cases-header {
  text-align: center;
  margin-bottom: 40px;
}

.cases-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Before/After Slider */
.slider-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--clr-bg-alt, #faf7f2);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
}

.slider-card-header {
  display: none !important;
}

.slider-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none; /* Pointer Events 捕捉 */
  z-index: 1;
}

.slider-after,
.slider-before {
  position: absolute;
  inset: 0;
}

.slider-after img,
.slider-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-before {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
  transition: none !important;
}

.slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  will-change: left;
  transition: none !important;
}

.slider-handle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 40px;
  border-radius: 20px;
  background-color: #c29b7c;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18-6-6 6-6"/><path d="m15 6 6 6-6 6"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.slider-label {
  position: absolute;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 3;
  color: #ffffff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.slider-label-before {
  left: 14px;
  background: rgba(45, 45, 45, 0.85);
}

.slider-label-after {
  right: 14px;
  background: rgba(194, 155, 124, 0.95);
}

.slider-info {
  display: none !important;
}

.slider-range-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
}

.slider-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
}

/* WebKit Runnable Track (Chrome / Safari / Edge) */
.slider-range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background-color: #e4ddd5;
  background-image: linear-gradient(to right, #8c7361 0%, #8c7361 100%);
  background-repeat: no-repeat;
  background-size: var(--pct, 50%) 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

/* Firefox Track */
.slider-range::-moz-range-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background-color: #e4ddd5;
  background-image: linear-gradient(to right, #8c7361 0%, #8c7361 100%);
  background-repeat: no-repeat;
  background-size: var(--pct, 50%) 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

/* WebKit Range Thumb (Chrome / Safari / Edge) */
.slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  height: 34px;
  margin-top: -13px;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%238C7361" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.15s ease,
    background-image 0.15s ease;
}

.slider-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.slider-range.dir-left::-webkit-slider-thumb {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%238C7361" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>');
}

/* Firefox Range Thumb */
.slider-range::-moz-range-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #ffffff;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%238C7361" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.15s ease,
    background-image 0.15s ease;
}

.slider-range.dir-left::-moz-range-thumb {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%238C7361" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>');
}

/* ==============================
   PROCESS
   ============================== */
.process {
  padding: var(--section-padding);
  background: #2c2c2c;
  position: relative;
  overflow: hidden;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.process-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 72px;
  position: relative;
  z-index: 1;
}

.process-header .section-title {
  color: var(--clr-white);
}
.process-header .section-label {
  color: rgba(222, 218, 215, 0.8); /* --clr-bg 淡化 */
}
.process-header .section-desc {
  color: rgba(255, 255, 255, 0.65);
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
}

.process-step-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  /* 實心背景，確保水平連線被遮住 */
  background: #2c2c2c;
  box-shadow: 0 0 0 8px #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.process-step:hover .process-step-num {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 8px #2c2c2c;
}

.process-step-icon {
  width: 30px;
  height: 30px;
}

.process-step-order {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background: var(--clr-accent);
  border-radius: 50%;
  /* 放大步驟數字 */
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  letter-spacing: 0;
}

.process-step-title {
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ==============================
   TESTIMONIALS
   ============================== */
.testimonials {
  padding: var(--section-padding);
  background: var(--clr-bg-alt);
}

.testimonials-header {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 56px;
}

.testimonials-header .section-desc {
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  cursor: default;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.star {
  width: 16px;
  height: 16px;
  color: var(--clr-primary); /* 星級評分用 deep */
}

.testimonial-quote {
  font-family: var(--ff-serif);
  font-size: 15px;
  color: var(--clr-text);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 18px;
  color: var(--clr-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--clr-text);
}

.author-location {
  font-size: 12px;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

/* ==============================
   CONTACT
   ============================== */
.contact {
  padding: var(--section-padding);
  background: var(--clr-bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.contact-info-title {
  font-family: var(--ff-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.contact-info-desc {
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--clr-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 12px;
  color: var(--clr-text-muted);
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text);
}

.contact-link {
  color: var(--clr-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.contact-link:hover {
  color: var(--clr-primary);
  border-bottom-color: var(--clr-primary);
}

.contact-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
}

.contact-form-title {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.contact-form-sub {
  font-size: 14px;
  color: var(--clr-text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-label span {
  color: var(--clr-accent);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-family: var(--ff-sans);
  font-size: 14px;
  color: var(--clr-text);
  background: var(--clr-bg);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  resize: vertical;
}

.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(161, 149, 133, 0.2);
  background: var(--clr-white);
}

.form-control::placeholder {
  color: var(--clr-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--clr-primary);
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--ff-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 6px 24px rgba(44, 44, 44, 0.25);
  transform: translateY(-1px);
}

.form-submit:active {
  transform: translateY(0);
}

/* ==============================
   FAQ
   ============================== */
.faq {
  padding: var(--section-padding);
  background: var(--clr-bg);
}

.faq-header {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
}

.faq-header .section-desc {
  margin: 0 auto;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--clr-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--clr-text);
  user-select: none;
  -webkit-user-select: none;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--clr-primary);
  flex-shrink: 0;
  transition: transform var(--transition);
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--clr-primary-dark);
}

.faq-answer {
  padding: 0 28px 22px;
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.9;
  border-top: 1px solid var(--clr-border);
  padding-top: 18px;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: #2c2c2c;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin: 20px 0 24px;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--ff-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
  cursor: pointer;
}

.footer-link:hover {
  color: var(--clr-white);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition:
    background var(--transition),
    color var(--transition);
  cursor: pointer;
}

.footer-social-btn:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-tagline {
  font-family: var(--ff-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

/* Footer Logo */
.footer .nav-logo-name {
  color: var(--clr-white);
  font-size: 20px;
}
.footer .nav-logo-sub {
  color: rgba(255, 255, 255, 0.65); /* 提高對比度，原為 0.45 */
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .about-inner {
    gap: 48px;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .process-steps::before {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-mobile {
    display: flex;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--clr-border);
  }
  .stat-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-badge {
    right: 12px;
  }
  .about-values {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card-desc {
    min-height: 0;
  }
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .cases-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .faq-item summary,
  .faq-q {
    padding: 18px 20px;
  }
  .faq-answer {
    padding: 0 20px 18px;
    padding-top: 14px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  /* 手機版：步驟改橫向（圖示左、文字右）*/
  .process-step {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    text-align: left;
    padding: 0 16px 32px;
    position: relative;
  }

  /* 每個步驟自己繪製下一段連線，避免穿出節點背景 */
  .process-step::after {
    content: "";
    position: absolute;
    left: 60px;
    top: 88px;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
    pointer-events: none;
  }

  .process-step:last-child::after {
    display: none;
  }

  .process-step-num {
    grid-row: 1 / 3;
    align-self: start;
    margin-bottom: 0;
  }

  .process-step-title {
    align-self: end;
    margin-bottom: 4px;
  }

  .process-step-desc {
    align-self: start;
  }

  .hero-tag {
    font-size: 11px;
  }
}

/* ==============================
   BACK TO TOP
   ============================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-primary);
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease;
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.95);
}

/* ==============================
   ACCESSIBILITY
   ============================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==============================
   PAGE HERO（子頁頂部橫幅）
   ============================== */
.page-hero {
  background: #2c2c2c;
  padding: 140px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.page-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(222, 218, 215, 0.7);
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--clr-white);
}

.breadcrumb-sep {
  opacity: 0.35;
}

/* ==============================
   CONTACT PAGE（聯絡頁，無表單）
   ============================== */
.contact-page {
  padding: var(--section-padding);
  background: var(--clr-bg-alt);
}

.contact-page-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* QR 區塊 */
.contact-qr-block {
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  text-align: center;
}

.contact-qr-title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 8px;
}

.contact-qr-sub {
  font-size: 14px;
  color: var(--clr-text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.contact-qr-img {
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* QR placeholder 文字 */
.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-muted);
  font-size: 13px;
}

.contact-qr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #06c755; /* LINE 品牌綠 */
  color: var(--clr-white);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-qr-btn:hover {
  background: #05b14a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

/* Google Map 區塊 */
.contact-map {
  padding: 0 0 var(--section-padding);
  background: var(--clr-bg-alt);
}

.contact-map-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.contact-map-header {
  margin-bottom: 28px;
}

.contact-map-header .section-label {
  margin-bottom: 8px;
}

.contact-map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Map placeholder */
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--clr-text-muted);
  text-align: center;
}

.map-placeholder-icon {
  width: 56px;
  height: 56px;
  background: var(--clr-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
}

.map-placeholder p {
  font-size: 14px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-page-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-qr-block {
    padding: 32px 24px;
  }

  .contact-map-embed {
    height: 300px;
  }
}

/* ==========================================
   INITIAL PRELOADER & DOOR REVEAL STYLES
   ========================================== */
body.loading {
  overflow: hidden !important;
  touch-action: none;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  overflow: hidden;
  user-select: none;
}

.preloader-door {
  position: absolute;
  top: 0;
  width: 50.5vw;
  height: 100vh;
  background: #131c2e;
  z-index: 1;
  will-change: transform, opacity;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
}

.preloader-door-left {
  left: 0;
  transform-origin: left center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.preloader-door-right {
  right: 0;
  transform-origin: right center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
  will-change: transform, opacity;
}

.preloader-logo img {
  height: 64px;
  width: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.preloader-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.preloader-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 28px;
}

.preloader-progress-track {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.preloader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #34d399 100%);
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.preloader-percentage {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: monospace, system-ui;
}
