/* 婚姻995 — 首頁專屬樣式 (home.css) */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--bg-warm);
  background-image: url("../assets/hero-bg.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg,
    rgba(247,242,234,.96) 0%, rgba(247,242,234,.84) 34%,
    rgba(247,242,234,.4) 62%, rgba(247,242,234,.06) 84%, rgba(247,242,234,0) 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.6rem, 7vw, 6.5rem); }
/* 改用照片為主視覺，隱藏雙環插圖 */
.hero__visual { display: none; }
.hero h1 { font-size: clamp(2.15rem, 4.7vw, 3.5rem); line-height: 1.28; margin-bottom: 1.1rem; }
.hero h1 .text-rose { color: var(--brand-rose); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-primary); max-width: 34ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero__stat .n { font-family: var(--font-latin); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; color: var(--brand-navy); line-height: 1; }
.hero__stat .n small { color: var(--brand-gold-dark); font-size: .6em; }
.hero__stat .l { font-size: .88rem; color: var(--text-secondary); margin-top: .35rem; }

/* Hero visual — 已改用照片背景，停用雙環插圖 */
.hero__visual { display: none !important; }
.hero__visual--legacy { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero__rings { width: min(100%, 440px); }
.hero__rings .r1 { fill: none; stroke: var(--brand-navy); stroke-width: 3; }
.hero__rings .r2 { fill: none; stroke: var(--brand-rose); stroke-width: 3; }
.hero__rings .rh { fill: var(--brand-gold); }
.hero__chip {
  position: absolute; background: #fff; border: 1px solid var(--border-default); border-radius: 999px;
  padding: .55rem 1.05rem; font-size: .9rem; font-weight: 600; color: var(--brand-navy);
  box-shadow: var(--shadow-card); display: flex; align-items: center; gap: .45rem;
}
.hero__chip svg { width: 17px; height: 17px; }
.hero__chip.c1 { top: 6%; left: -2%; color: var(--brand-rose-dark); }
.hero__chip.c2 { top: 30%; right: -4%; color: var(--brand-gold-dark); }
.hero__chip.c3 { bottom: 16%; left: 2%; color: var(--brand-navy); }
.hero__chip.c4 { bottom: -2%; right: 6%; color: var(--brand-rose-dark); }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }
.hero__chip { animation: floaty 5s ease-in-out infinite; }
.hero__chip.c2 { animation-delay: .8s; } .hero__chip.c3 { animation-delay: 1.6s; } .hero__chip.c4 { animation-delay: 2.4s; }
@media (prefers-reduced-motion: reduce){ .hero__chip{ animation: none; } }

/* ---------- 服務範圍（practice areas grid，SEO 內鏈） ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.practice-card { display: flex; flex-direction: column; gap: .7rem; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-card); padding: 1.5rem 1.35rem; transition: all .2s ease; }
.practice-card:hover { border-color: var(--brand-rose); background: var(--bg-card-hover); transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.practice-card__ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-gold-soft); color: var(--brand-gold-dark); }
.practice-card:nth-child(2n) .practice-card__ic { background: var(--bg-rose-soft); color: var(--brand-rose-dark); }
.practice-card__ic svg { width: 24px; height: 24px; }
.practice-card h3 { font-size: 1.12rem; margin: 0; }
.practice-card p { font-size: .9rem; color: var(--text-secondary); margin: 0; flex: 1; }
.practice-card .more { font-size: .86rem; font-weight: 600; color: var(--brand-rose-dark); display: inline-flex; align-items: center; gap: .3em; }
.practice-card:hover .more { gap: .55em; }

/* ---------- 流程（我們如何協助）navy ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.process__step { position: relative; background: var(--bg-warm); border-radius: var(--radius-card); padding: 2rem 1.5rem 1.6rem; }
.process__num { font-family: var(--font-latin); font-size: 2.4rem; font-weight: 700; color: var(--brand-gold); line-height: 1; margin-bottom: .7rem; }
.process__step h3 { color: var(--brand-navy); font-size: 1.15rem; }
.process__step p { color: var(--text-secondary); font-size: .93rem; margin: 0; }
.process__step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1.1rem; width: 1.4rem; height: 2px; background: var(--brand-gold); }

/* ---------- 為什麼選擇（trust features）warm ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.why-card { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-card); padding: 2rem 1.7rem; box-shadow: var(--shadow-card); }
.why-card__ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-navy); color: var(--brand-gold); margin-bottom: 1.2rem; }
.why-card__ic svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.25rem; }
.why-card p { color: var(--text-secondary); margin: 0; font-size: .97rem; }

/* ---------- 最新文章 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: all .22s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--brand-rose); }
.post-card__thumb { aspect-ratio: 16/9; background: var(--bg-warm); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph { width:100%; height:100%; display:grid; place-items:center; background: linear-gradient(135deg,#EEE6DA,#F4E7E7); }
.post-card__ph svg { width: 54px; height: 54px; color: var(--brand-gold); opacity: .55; }
.post-card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; font-size: .8rem; color: var(--text-secondary); }
.post-card h3 { font-size: 1.12rem; line-height: 1.5; margin-bottom: .6rem; }
.post-card h3 a { color: var(--brand-navy); }
.post-card h3 a:hover { color: var(--brand-rose); }
.post-card p { font-size: .92rem; color: var(--text-secondary); flex: 1; margin-bottom: 1rem; }
.post-card__more { font-size: .9rem; font-weight: 600; color: var(--brand-rose-dark); }

/* ---------- 品牌呼應 995 ---------- */
.sibling-band { background: var(--brand-navy); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sibling-band h3 { color: #fff; margin-bottom: .4rem; }
.sibling-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 52ch; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__step:not(:last-child)::after { display: none; }
  .why-grid, .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__lead { max-width: none; }
  .hero { background-position: 74% center; }
  .hero::before { background: linear-gradient(180deg, rgba(247,242,234,.86) 0%, rgba(247,242,234,.8) 55%, rgba(247,242,234,.9) 100%); }
}
@media (max-width: 640px) {
  .practice-grid, .process, .why-grid, .post-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.5rem; }
}
