/* ==========================================================================
   首頁專用樣式
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — 卷宗封面
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink-900);
  color: var(--text-invert);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(176, 58, 46, 0.30) 0, transparent 52%),
    radial-gradient(ellipse at 88% 92%, rgba(176, 58, 46, 0.12) 0, transparent 48%);
  pointer-events: none;
}
/* 極淡的格線，像檔案紙 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 242, 236, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 236, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(176, 58, 46, 0.5);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--seal-400);
  text-transform: uppercase;
}
.hero__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--seal-400);
}

.hero__quote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 400;
  color: var(--text-invert-muted);
  line-height: 1.85;
  margin: 0 0 18px;
  padding-left: 18px;
  border-left: 2px solid rgba(176, 58, 46, 0.55);
}

.hero__title {
  color: var(--text-invert);
  font-size: clamp(1.9rem, 5.2vw, 3.35rem);
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--seal-400);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: rgba(176, 58, 46, 0.22);
  z-index: -1;
}

.hero__lead {
  max-width: 54ch;
  color: var(--text-invert-muted);
  font-size: 1.01rem;
  line-height: 1.95;
  margin: 0 0 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 右側：案件卡 */
.hero__card {
  position: relative;
  background: rgba(245, 242, 236, 0.045);
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  backdrop-filter: blur(4px);
  min-width: 0;
}
.hero__card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 26px;
  width: 82px;
  height: 4px;
  background: var(--seal-500);
}
.hero__card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.14);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-invert-muted);
  text-transform: uppercase;
}
.hero__card-rows { display: grid; gap: 14px; margin: 0; }
.hero__card-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}
.hero__card-row dt {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-invert-muted);
}
.hero__card-row dd {
  margin: 0;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--text-invert);
}
.hero__card-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(245, 242, 236, 0.2);
}
.hero__card-foot .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seal-400);
  letter-spacing: 0.02em;
}
.hero__card-foot small { color: var(--text-invert-muted); font-size: 0.78rem; letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   主視覺條
   -------------------------------------------------------------------------- */
.keyvisual { background: var(--ink-900); line-height: 0; }
.keyvisual img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   信任數據列
   -------------------------------------------------------------------------- */
.stats {
  background: var(--paper-300);
  border-bottom: 1px solid var(--line-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
}
.stat {
  background: var(--paper-300);
  padding: 26px 18px;
  text-align: center;
  min-width: 0;
}
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  color: var(--ink-800);
  line-height: 1.2;
}
.stat__num sup { font-size: 0.5em; color: var(--seal-500); margin-left: 2px; }
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   服務項目
   -------------------------------------------------------------------------- */
.services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.services-more { margin-top: 34px; text-align: center; }

/* --------------------------------------------------------------------------
   關於我們
   -------------------------------------------------------------------------- */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.about-split__media { position: relative; min-width: 0; }
.about-split__media img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
}
.about-split__stamp {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px solid var(--seal-500);
  border-radius: 50%;
  background: rgba(245, 242, 236, 0.94);
  color: var(--seal-500);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  transform: rotate(-9deg);
}
.about-split__body { min-width: 0; }

.about-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.about-points li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.about-points li::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--seal-500);
  background: var(--seal-050);
  background-image: linear-gradient(45deg, transparent 44%, var(--seal-500) 44%, var(--seal-500) 56%, transparent 56%);
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}
.about-points strong {
  grid-column: 2;
  display: block;
  color: var(--text-strong);
  font-family: var(--font-serif);
  margin-bottom: 2px;
}
/* li 裡有三個 grid item（::before、strong、span），不指定欄位的話 span 會
   掉到下一列的第一欄，只剩 26px 寬。 */
.about-points span {
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   收費導引
   -------------------------------------------------------------------------- */
.price-note {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 20px;
  margin-top: 28px;
}
.price-note__item {
  padding: 22px;
  background: var(--paper-000);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--seal-500);
  border-radius: var(--radius-md);
  min-width: 0;
}
.price-note__item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.price-note__item p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   服務地區
   -------------------------------------------------------------------------- */
/* 用每格自己的框線畫格線，不用 gap + 底色的作法 ——
   24 個項目排不滿最後一列時，空格會露出容器底色，看起來像破洞。 */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.area-grid li {
  list-style: none;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 15px 16px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  font-size: 0.92rem;
  color: var(--text-invert);
  transition: background 0.2s var(--ease);
}
.area-grid li:hover { background: rgba(245, 242, 236, 0.05); }
.area-grid li span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--seal-400);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   最新情報（雙欄）
   -------------------------------------------------------------------------- */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.intel-col { min-width: 0; }
.intel-col__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--ink-800);
}
.intel-col__title { font-size: 1.1rem; margin: 0; }

/* --------------------------------------------------------------------------
   響應式
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__card { max-width: 520px; }
  .about-split { grid-template-columns: minmax(0, 1fr); }
  .about-split__stamp { right: 10px; bottom: -22px; width: 96px; height: 96px; font-size: 0.74rem; }
  .intel-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 12px; }
  .hero__card { padding: 22px 18px; }
  .hero__card-row { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services-head { flex-direction: column; align-items: stretch; }
}
