/* ==========================================================================
   安居室內裝修設計有限公司 — 全站共用樣式
   設計系統：深石墨綠 × 溫潤木質黃銅 × 暖白，襯線標題 + 無襯線內文
   ========================================================================== */

:root {
  /* 色彩 */
  --c-dark: #1d2a2b;          /* 最深：頁尾、深色區塊 */
  --c-heading: #22302f;       /* 標題文字 */
  --c-primary: #9a6a3a;       /* 主色：木質黃銅（按鈕、重點） */
  --c-primary-dark: #7d5430;  /* 主色 hover */
  --c-primary-soft: #f3e9dc;  /* 主色淡底 */
  --c-accent: #4d6b63;        /* 輔色：灰松綠（標籤、圖示） */
  --c-accent-soft: #e4ece9;
  --c-bg: #f8f6f2;            /* 主背景 */
  --c-alt: #efeae2;           /* 交替區塊背景 */
  --c-paper: #ffffff;         /* 卡片背景 */
  --c-ink: #2a2f2e;           /* 內文 */
  --c-muted: #626b69;         /* 次要文字 */
  --c-line: #ddd6cb;          /* 分隔線 */
  --c-on-dark: #f1eee8;       /* 深底上的文字 */
  --c-on-dark-muted: #b9c2bf;

  /* 字體 */
  --f-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --f-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  /* 字級階層 */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --fs-xl: clamp(1.55rem, 1.3rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.4vw, 3.25rem);

  /* 間距與版面 */
  --container: 72rem;
  --container-narrow: 48rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --gap: clamp(1.25rem, 2.5vw, 2rem);
  --radius: .625rem;
  --radius-lg: 1rem;
  --shadow: 0 .5rem 1.75rem rgba(29, 42, 43, .08);
  --shadow-lg: 0 1rem 2.5rem rgba(29, 42, 43, .16);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  color: var(--c-heading);
  line-height: 1.35;
  margin: 0 0 .6em;
  letter-spacing: .02em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, .section-head p, .cta-band p, .page-hero p { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-primary); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--c-dark); color: #fff; padding: .6em 1.2em; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 版面容器 ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-alt); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--c-on-dark-muted); }

.section-head { max-width: 44rem; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--c-muted); font-size: var(--fs-md); margin: 0; }
.section--dark .section-head p { color: var(--c-on-dark-muted); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 1.75rem; height: 1px;
  background: currentColor; vertical-align: middle; margin-right: .6rem;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: #e3bf93; }

.lead { font-size: var(--fs-md); color: var(--c-muted); }
.text-center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.6em;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-primary); color: #fff; box-shadow: 0 .4rem 1.2rem rgba(154, 106, 58, .3); }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--outline { border-color: var(--c-heading); color: var(--c-heading); background: transparent; }
.btn--outline:hover { background: var(--c-heading); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--c-dark); }
.btn-group { display: flex; flex-wrap: wrap; gap: .85rem; }
.section-head .btn-group, .text-center .btn-group { justify-content: center; }
@media (max-width: 36rem) {
  .hero .btn-group, .cta-band .btn-group, .page-hero .btn-group { flex-direction: column; align-items: stretch; max-width: 20rem; }
  .cta-band .btn-group { margin-inline: auto; }
}

.text-link {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .04em;
}
.text-link::after { content: "→"; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 246, 242, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 .25rem 1rem rgba(29, 42, 43, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--c-heading); flex-shrink: 0; }
.logo:hover { color: var(--c-heading); }
.logo-mark { width: 2.4rem; height: 2.4rem; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; font-family: var(--f-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.2; letter-spacing: .08em; }
.logo-text small { font-family: var(--f-sans); font-size: .62rem; font-weight: 500; letter-spacing: .12em; color: var(--c-muted); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: block; padding: .5em .8em;
  color: var(--c-ink); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .05em;
  position: relative;
}
.nav-link::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .2em; height: 2px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--c-primary); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--c-primary); font-weight: 700; }
.nav-cta { padding: .6em 1.3em; }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  background: transparent; border: 1px solid var(--c-line); border-radius: var(--radius);
  cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 50%; width: 1.2rem; height: 2px; margin-left: -.6rem;
  background: var(--c-heading); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 64rem) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--c-bg); border-bottom: 1px solid var(--c-line);
    box-shadow: 0 1rem 1.5rem rgba(29, 42, 43, .08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: .85em .25em; border-bottom: 1px solid var(--c-line); }
  .nav-link::after { display: none; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- 首頁 Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(32rem, 88vh, 48rem);
  display: flex; align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  background-color: var(--c-dark);
  background-size: cover; background-position: center;
  color: #fff;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(20, 30, 31, .86) 0%, rgba(20, 30, 31, .62) 45%, rgba(20, 30, 31, .2) 100%);
}
.hero-content { max-width: 40rem; }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero p { font-size: var(--fs-md); color: rgba(255, 255, 255, .88); max-width: 34rem; margin-bottom: 2rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2.25rem; font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.hero-badges li { display: inline-flex; align-items: center; gap: .5em; }
.hero-badges li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #e3bf93; }

/* ---------- 內頁 Page Hero ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 7vw, 5rem);
  background-color: var(--c-dark);
  background-size: cover; background-position: center;
  color: #fff;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 30, 31, .88) 0%, rgba(20, 30, 31, .55) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { max-width: 38rem; color: rgba(255, 255, 255, .86); font-size: var(--fs-md); margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--fs-xs); margin-bottom: 1.25rem; color: rgba(255, 255, 255, .7); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: #fff; }

/* ---------- 數據列 ---------- */
.stats-bar { background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats > div { padding: clamp(1.5rem, 3vw, 2.25rem) 1rem; }
.stats > div + div { border-left: 1px solid var(--c-line); }
.stat-num { display: block; font-family: var(--f-serif); font-size: var(--fs-xl); font-weight: 700; color: var(--c-primary); line-height: 1.2; }
.stat-label { display: block; font-size: var(--fs-sm); color: var(--c-muted); margin-top: .25rem; }
@media (max-width: 48rem) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}

/* ---------- 網格 ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 64rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 卡片 ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--c-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--c-muted); font-size: var(--fs-sm); }
.card-body .text-link { margin-top: auto; }
.card-tag {
  display: inline-block; align-self: flex-start;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  color: var(--c-accent); background: var(--c-accent-soft);
  padding: .2em .8em; border-radius: 999px; margin-bottom: .75rem;
}

/* 標籤列 */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tag-list li { font-size: var(--fs-xs); color: var(--c-accent); background: var(--c-accent-soft); padding: .25em .85em; border-radius: 999px; }

/* ---------- 圖示特色 ---------- */
.feature { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--c-paper); border-radius: var(--radius-lg); border: 1px solid var(--c-line); }
.feature h3 { font-size: var(--fs-md); margin-bottom: .4em; }
.feature p { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }
.section--dark .feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--c-primary-soft); color: var(--c-primary);
  margin-bottom: 1rem;
}
.icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.section--dark .icon { background: rgba(227, 191, 147, .14); color: #e3bf93; }

/* ---------- 圖文左右 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; isolation: isolate; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split-media::after {
  content: ""; position: absolute; z-index: -1; inset: auto -1rem -1rem auto; width: 60%; height: 60%;
  border: 2px solid var(--c-primary); border-radius: var(--radius-lg); opacity: .35;
}
.split--reverse .split-media::after { inset: auto auto -1rem -1rem; }
.split-body p { color: var(--c-muted); }
.split-body .btn-group { margin-top: 1.75rem; }
@media (max-width: 56rem) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media::after { display: none; }
}

/* 深色區塊內元件 */
.section--dark .step { background: rgba(255, 255, 255, .05); box-shadow: none; border-top-color: #e3bf93; }
.section--dark .step::before { color: #e3bf93; }
.section--dark .step-meta { color: #e3bf93; }
.section--dark .btn--outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.section--dark .btn--outline:hover { background: #fff; color: var(--c-dark); }

/* 勾選清單 */
.check-list { list-style: none; display: grid; gap: .6rem; margin: 1.25rem 0; }
.check-list li { position: relative; padding-left: 1.85rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d6b63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.section--dark .check-list li { color: var(--c-on-dark); }

/* ---------- 流程步驟 ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
  .steps:has(> .step:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
  .steps:has(> .step:nth-child(6)) { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
}
.step {
  counter-increment: step; position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--c-paper); border-radius: var(--radius-lg); border-top: 3px solid var(--c-primary);
  box-shadow: var(--shadow);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--f-serif); font-size: var(--fs-xl); font-weight: 700;
  color: var(--c-primary); opacity: .45; line-height: 1; margin-bottom: .75rem;
}
.step h3 { font-size: var(--fs-md); margin-bottom: .35em; }
.step p { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }
.step-meta { display: inline-block; margin-top: .85rem; font-size: var(--fs-xs); font-weight: 700; color: var(--c-accent); }

/* 時間軸（細節流程 / 公司沿革） */
.timeline { list-style: none; position: relative; max-width: var(--container-narrow); margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--c-line); }
.timeline-item { position: relative; padding-left: 2.75rem; padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 0; top: .4rem; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--c-bg); border: 3px solid var(--c-primary);
}
.section--alt .timeline-item::before { background: var(--c-alt); }
.timeline-label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--c-primary); margin-bottom: .2rem; }
.timeline-item h3 { font-size: var(--fs-md); margin-bottom: .3em; }
.timeline-item p { color: var(--c-muted); margin: 0; }

/* ---------- 作品案例 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.filter-btn {
  padding: .5em 1.3em; font: inherit; font-size: var(--fs-sm); font-weight: 500;
  color: var(--c-ink); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 999px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter-btn.is-active, .filter-btn[aria-pressed="true"] { background: var(--c-heading); border-color: var(--c-heading); color: #fff; }

.project-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.project-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--c-dark); color: #fff;
  aspect-ratio: 4 / 3;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.project-card:hover img { transform: scale(1.06); opacity: .85; }
.project-info {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: linear-gradient(to top, rgba(20, 30, 31, .92), rgba(20, 30, 31, 0));
}
.project-info h3 { color: #fff; font-size: var(--fs-md); margin: 0 0 .2em; }
.project-info p { font-size: var(--fs-xs); color: rgba(255, 255, 255, .8); margin: 0; letter-spacing: .04em; }
.project-cat {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  color: var(--c-dark); background: #e3bf93; padding: .1em .7em; border-radius: 999px; margin-bottom: .5rem;
}
.project-grid [hidden] { display: none; }

/* 案例詳細（作品頁） */
.case-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.case-detail + .case-detail { margin-top: clamp(3rem, 6vw, 5rem); }
.case-detail img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.case-detail--reverse > :first-child { order: 2; }
.case-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: 1.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--c-line); }
.case-meta dt { font-size: var(--fs-xs); color: var(--c-muted); letter-spacing: .06em; }
.case-meta dd { margin: 0; font-weight: 700; color: var(--c-heading); }
@media (max-width: 56rem) {
  .case-detail { grid-template-columns: 1fr; }
  .case-detail--reverse > :first-child { order: 0; }
}

/* ---------- 客戶見證 ---------- */
.quote-card {
  position: relative; margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--c-paper); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.quote-card::before {
  content: "“"; position: absolute; top: .25rem; right: 1.25rem;
  font-family: var(--f-serif); font-size: 4.5rem; line-height: 1; color: var(--c-primary); opacity: .2;
}
.quote-card blockquote { margin: 0 0 1.25rem; color: var(--c-ink); }
.quote-card figcaption { font-size: var(--fs-sm); color: var(--c-muted); }
.quote-card figcaption strong { display: block; color: var(--c-heading); font-size: var(--fs-base); }
.stars { color: #c99a52; letter-spacing: .15em; font-size: var(--fs-sm); margin-bottom: .75rem; }

/* ---------- 常見問題 ---------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; display: grid; gap: .85rem; }
.faq details { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--c-primary); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.1rem 3.25rem 1.1rem 1.35rem; font-weight: 700; color: var(--c-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--c-primary); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.35rem 1.25rem; color: var(--c-muted); }
.faq details > div p:last-child { margin: 0; }

/* ---------- 價格 / 方案 ---------- */
.plan { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.plan--featured { border: 2px solid var(--c-primary); box-shadow: var(--shadow-lg); }
.plan-price { font-family: var(--f-serif); font-size: var(--fs-xl); color: var(--c-primary); font-weight: 700; line-height: 1.2; margin-bottom: .25rem; }
.plan-price small { font-family: var(--f-sans); font-size: var(--fs-sm); color: var(--c-muted); font-weight: 400; }
.plan .check-list { flex: 1; }
.plan .btn { align-self: flex-start; }

/* ---------- CTA 色帶 ---------- */
.cta-band {
  position: relative; isolation: isolate;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background-color: var(--c-dark); background-size: cover; background-position: center;
  color: #fff; text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 30, 31, .82); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 36rem; margin: 0 auto 2rem; font-size: var(--fs-md); }
.cta-band .btn-group { justify-content: center; }

/* ---------- 聯絡 / 表單 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { margin: 0; flex-shrink: 0; width: 2.75rem; height: 2.75rem; }
.contact-list strong { display: block; color: var(--c-heading); font-size: var(--fs-sm); }
.contact-list span, .contact-list a { color: var(--c-muted); }
.contact-list a:hover { color: var(--c-primary); }

.form-card { background: var(--c-paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 36rem) { .form-grid { grid-template-columns: 1fr; } }
.form-field label, .form-field legend { font-size: var(--fs-sm); font-weight: 700; color: var(--c-heading); }
.form-field .req { color: #b4442f; margin-left: .2em; }
.form-field input:not([type="checkbox"]):not([type="radio"]), .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: var(--fs-base); color: var(--c-ink);
  padding: .7em .9em; background: var(--c-bg);
  border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:not([type="checkbox"]):not([type="radio"]):focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--c-primary); background: #fff; box-shadow: 0 0 0 3px rgba(154, 106, 58, .18);
}
.form-field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-field legend { padding: 0; margin-bottom: .4rem; }
.choice-group { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .3rem; }
.choice-group label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; color: var(--c-ink); cursor: pointer; }
.choice-group input { width: 1.1rem; height: 1.1rem; margin: 0; padding: 0; flex-shrink: 0; accent-color: var(--c-primary); border: 0; background: none; box-shadow: none; }
.form-note { font-size: var(--fs-xs); color: var(--c-muted); margin: 1rem 0 0; }
.form-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { font-size: var(--fs-sm); font-weight: 700; color: var(--c-accent); margin: 0; }
.form-status:empty { display: none; }

/* 營業資訊表 */
.info-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.info-table th, .info-table td { padding: .75rem .5rem; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.info-table th { width: 7rem; color: var(--c-heading); white-space: nowrap; }
.info-table td { color: var(--c-muted); }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-muted); font-size: var(--fs-sm); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(2rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 64rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.site-footer .logo-text small { color: var(--c-on-dark-muted); }
.footer-brand p { margin: 1.1rem 0 0; max-width: 22rem; }
.site-footer h2 { font-family: var(--f-sans); font-size: var(--fs-sm); letter-spacing: .12em; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; display: grid; gap: .55rem; }
.footer-links a, .site-footer a { color: var(--c-on-dark-muted); }
.footer-links a:hover, .site-footer a:hover { color: #e3bf93; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs);
}

/* 手機底部快速聯絡 */
.mobile-cta { display: none; }
@media (max-width: 48rem) {
  .mobile-cta {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--c-dark); box-shadow: 0 -.25rem 1rem rgba(0, 0, 0, .15);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .9rem .5rem; color: #fff; font-weight: 700; font-size: var(--fs-sm); }
  .mobile-cta a + a { background: var(--c-primary); }
  .site-footer { padding-bottom: 3.25rem; }
}

/* ---------- 進場動畫 ---------- */
.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
