/* Eng Chambers — Divorce & Family Law page.
   Warm honey-and-caramel palette with a soft apricot glow. The site's own components
   pick it up through the shared tokens. */

.theme-warm {
  /* Nov 2026: shared palette. Only the page's own helper tones remain, now neutral. */
  --sand: #ece7dc;
  --honey: #dcd5c7;
  --apricot: #ece7dc;
  --shadow-soft: none;
  --r-lg: 0px;
  --r-md: 0px;
}
.theme-warm { background: var(--linen); }
.theme-warm .btn--primary, .theme-warm .btn--light, .theme-warm .btn--outline-light { border-radius: 999px; }
.fw-btn-soft { border-radius: 999px; border-color: var(--honey); background: var(--white); color: var(--bronze-deep); }
.fw-btn-soft:hover { border-color: var(--bronze); color: var(--ink); background: var(--white); }

/* ---------- Hero ---------- */
.fw-hero {
  padding-block: 56px 80px;
  background:
    radial-gradient(55% 70% at 88% 20%, var(--apricot) 0%, transparent 65%),
    var(--sand);
}
.fw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.fw-hero h1 { font-weight: 400; margin-bottom: 22px; max-width: 14ch; }
.fw-lede { font-size: var(--fs-20); line-height: 1.6; color: var(--muted); max-width: 44ch; margin-bottom: 30px; }
.fw-trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--fs-14); color: var(--muted); }
.fw-trust li { display: flex; align-items: center; gap: 10px; }
.fw-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); flex: none; }
.fw-hero-media { margin: 0; justify-self: end; width: min(100%, 400px); }
.fw-arch { display: block; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 8px solid var(--white); }
.fw-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

/* ---------- Services grid ---------- */
.fw-services { padding-block: 96px; }
.fw-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 40px; }
.fw-head h2 { margin: 0; font-weight: 400; }
.fw-head-side { margin: 0; color: var(--muted); }
.fw-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fw-card {
  width: 100%; height: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px;
  padding: 26px 24px 22px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--stone);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.fw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--honey); }
.fw-card:focus-visible { outline: 3px solid var(--bronze-deep); outline-offset: 3px; }
.fw-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--apricot); color: var(--bronze-deep); display: grid; place-items: center; margin-bottom: 6px; }
.fw-ico svg { width: 28px; height: 28px; }
.fw-card-title { font: 500 1.45rem/1.2 var(--font-display); text-wrap: balance; }
.fw-card-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.fw-card-more { margin-top: 6px; font-size: var(--fs-14); font-weight: 500; color: var(--bronze-deep); display: inline-flex; gap: 8px; }
.fw-card-more::after { content: "→"; transition: transform 200ms var(--ease); }
.fw-card:hover .fw-card-more::after { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.fw-faq { padding-block: 96px; background: var(--sand); }
.fw-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.fw-faq h2 { font-weight: 400; }
.fw-muted { color: var(--muted); }
.theme-warm .faq { border-top-color: var(--honey); }
.theme-warm .faq details { border-bottom-color: var(--honey); }

/* ---------- Service pages ---------- */
.fw-asset-data[hidden] { display: none !important; }
.fw-card { text-decoration: none; }
.fw-card:hover { color: var(--ink); }

.fs-hero { padding-block: 48px 64px; background: radial-gradient(55% 80% at 90% 30%, var(--apricot) 0%, transparent 65%), var(--sand); }
.fs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.fs-hero h1 { font-weight: 400; margin-bottom: 18px; max-width: 18ch; }
.fs-lede { font: 400 1.35rem/1.5 var(--font-display); color: var(--ink); max-width: 52ch; margin-bottom: 28px; }
.fs-hero-ico .fw-ico { width: 168px; height: 168px; margin: 0; background: var(--white); box-shadow: var(--shadow-soft); border: 8px solid var(--apricot); }
.fs-hero-ico .fw-ico svg { width: 76px; height: 76px; stroke-width: 1.1; }

.fs-body { padding-block: 64px 96px; }
.fs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; }
.fs-content { max-width: 760px; min-width: 0; }
.fs-content > :first-child { margin-top: 0; }
.fs-label { font: 500 13px/1.4 var(--font-body) !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-deep); margin: 44px 0 18px; }
.fs-content > .fs-label:first-child { margin-top: 0; }

.fs-aside-inner { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.fs-aside-title { margin: 0; font: 500 13px/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-deep); }
.fs-others { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--stone); }
.fs-others a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stone); color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.fs-others a svg { width: 16px; height: 16px; flex: none; color: var(--bronze); opacity: 0; transform: translateX(-4px); transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
.fs-others a:hover svg, .fs-others a[aria-current="page"] svg { opacity: 1; transform: none; }
.fs-others a:hover { color: var(--bronze-deep); }
.fs-others a[aria-current="page"] { color: var(--bronze-deep); font-weight: 500; }
.fs-help { padding: 20px; border-radius: var(--r-md); background: var(--sand); display: grid; gap: 14px; }
.fs-help p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.fs-help strong { display: block; color: var(--ink); font: 500 1.15rem/1.3 var(--font-display); margin-bottom: 4px; }
.fs-help .btn { min-height: 44px; }

.fs-related { margin-top: 48px; }
.fs-related { display: grid; gap: 10px; }
.fs-related .fs-label { margin-bottom: 4px; }
.fs-related a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-md); background: var(--sand); color: var(--ink); text-decoration: none; font: 500 1.2rem/1.3 var(--font-display); }
.fs-related a:hover { color: var(--bronze-deep); }
.fs-related svg { width: 20px; height: 20px; flex: none; color: var(--bronze-deep); }
.fs-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--stone); }
.fs-pn a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--stone); background: var(--white); color: var(--ink); text-decoration: none; font: 500 1.1rem/1.3 var(--font-display); transition: border-color 200ms var(--ease); }
.fs-pn a:hover { border-color: var(--bronze); color: var(--ink); }
.fs-pn a span { display: grid; gap: 2px; min-width: 0; }
.fs-pn small { font: 400 13px/1.3 var(--font-body); color: var(--muted); }
.fs-pn svg { width: 20px; height: 20px; flex: none; color: var(--bronze-deep); }
.fs-pn-next { justify-content: flex-end; text-align: right; grid-column: 2; }

/* Requirements box */
.fw-req { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--stone); font-size: 0.9375rem; }
.fw-req strong { font: 500 13px/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-deep); }
.fw-req span { position: relative; padding-left: 26px; }
.fw-req span::before { content: ""; position: absolute; left: 3px; top: 0.45em; width: 11px; height: 6px; border-left: 1.6px solid var(--bronze); border-bottom: 1.6px solid var(--bronze); transform: rotate(-45deg); }
.fw-tip { margin-top: 28px; padding: 14px 18px; border-left: 3px solid var(--bronze); background: var(--apricot); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 0.9375rem; }

/* Flowchart */
.fw-flow { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; }
.fw-flow > li { position: relative; display: grid; gap: 2px; padding: 0 0 22px 52px; counter-increment: st; }
.fw-flow > li::before {
  content: counter(st); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--bronze); color: var(--bronze-deep);
  font: 500 1rem/1 var(--font-display); z-index: 1;
}
.fw-flow > li::after { content: ""; position: absolute; left: 16.5px; top: 32px; bottom: 0; width: 1.5px; background: var(--honey); }
.fw-flow > li:last-child { padding-bottom: 0; }
.fw-flow > li:last-child::after { display: none; }
.fw-flow b { font: 500 1.15rem/1.3 var(--font-display); }
.fw-flow span { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.fw-flow-split { grid-template-columns: 1fr 1fr; gap: 12px !important; }
.fw-flow-split::before { content: "" !important; width: 14px !important; height: 14px !important; left: 10px !important; top: 14px !important; background: var(--bronze) !important; border: 0 !important; transform: rotate(45deg); border-radius: 2px !important; }
.fw-flow-split { counter-increment: none !important; }
.fw-flow-split > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px dashed var(--honey); }
.fw-flow-end::before { background: var(--bronze-deep) !important; color: var(--white) !important; border-color: var(--bronze-deep) !important; }

/* Two / three column explainers */
.fw-two, .fw-three { display: grid; gap: 12px; }
.fw-two { grid-template-columns: 1fr 1fr; }
.fw-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fw-two > div, .fw-three > div { padding: 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--stone); display: grid; gap: 6px; align-content: start; }
.fw-two h4 { margin: 0; font-size: 1.15rem; font-weight: 500; }
.fw-two p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.fw-three b { font: italic 500 1.3rem/1.2 var(--font-display); color: var(--bronze-deep); }
.fw-three span { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.fw-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fw-chips li { padding: 7px 14px; border-radius: 999px; background: var(--apricot); color: var(--bronze-deep); font-size: 14px; }
.fw-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--stone); border-radius: var(--r-md); overflow: hidden; background: var(--white); }
.fw-row li { padding: 16px; display: grid; gap: 4px; position: relative; }
.fw-row li + li { border-left: 1px solid var(--stone); }
.fw-row b { font: 500 1.1rem/1.2 var(--font-display); color: var(--bronze-deep); }
.fw-row span { font-size: 14px; color: var(--muted); }
.fw-dots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fw-dots li { position: relative; padding-left: 22px; }
.fw-dots li::before { content: ""; position: absolute; left: 3px; top: 0.7em; width: 7px; height: 7px; border-radius: 50%; background: var(--bronze); }

/* 九宫格 asset grid */
.fw-nine-tip { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 4px; }
.fw-nine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fw-nine > button, .fw-nine > a {
  min-width: 0; padding: 18px 18px 16px; cursor: pointer; font: inherit; text-align: left; text-decoration: none;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px; align-content: start;
  border-radius: var(--r-md); border: 1px solid var(--stone); background: var(--white); color: var(--ink);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.fw-nine > :nth-child(odd) { background: var(--sand); }
.fw-nine > button:hover, .fw-nine > a:hover { border-color: var(--bronze); transform: translateY(-2px); box-shadow: var(--shadow-soft); color: var(--ink); }
.fw-nine .pic { width: 64px; height: 64px; border-radius: 16px; background: var(--white); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--stone); }
.fw-nine > :nth-child(even) .pic { background: var(--sand); }
.fw-nine .pic svg { width: 48px; height: 48px; stroke: var(--bronze-deep); }
.fw-nine .pic .f { fill: var(--honey); }
.fw-nine .pic .f2 { fill: var(--bronze-light); }
.fw-nine .pic .w { fill: var(--white); }
.fw-nine .n { font: 500 1.15rem/1.25 var(--font-display); text-wrap: balance; }
.fw-nine .go { font-size: 13px; font-weight: 500; color: var(--bronze-deep); display: inline-flex; align-items: center; gap: 6px; }
.fw-nine .go::after { content: "→"; transition: transform 200ms var(--ease); }
.fw-nine > button .go::after { content: "↓"; }
.fw-nine > :hover .go::after { transform: translateX(3px); }
.fw-nine > button:hover .go::after { transform: translateY(2px); }
.fw-nine-guide .go { color: var(--white) !important; background: var(--bronze-deep); padding: 3px 10px; border-radius: 999px; justify-self: start; }
.fw-nine > button[aria-pressed="true"] { background: var(--bronze-deep); border-color: var(--bronze-deep); color: var(--white); }
.fw-nine > button[aria-pressed="true"] .go { color: var(--white); }
.fw-nine > button[aria-pressed="true"] .pic { background: var(--white); box-shadow: none; }
.fw-asset { margin-top: 16px; }
.fw-asset-hint { color: var(--muted); font-size: 0.9375rem; text-align: center; padding: 14px; border: 1px dashed var(--honey); border-radius: var(--r-md); margin: 0; }
.fw-asset h4 { font-size: 1.4rem; font-weight: 500; margin: 0 0 8px; }
.fw-asset p { margin: 0 0 10px; }
.fw-asset .o { margin: 0; padding: 12px 16px; background: var(--apricot); border-radius: 12px; font-size: 0.9375rem; }
.fw-asset.is-in { animation: fw-up 320ms var(--ease) both; padding: 20px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--r-md); }
@keyframes fw-up { from { opacity: 0; transform: translateY(8px); } }

/* Comparison table */
.fw-table-wrap { overflow-x: auto; border: 1px solid var(--stone); border-radius: var(--r-md); background: var(--white); }
.fw-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; }
.fw-table th, .fw-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stone); }
.fw-table tr:last-child th, .fw-table tr:last-child td { border-bottom: 0; }
.fw-table thead th { font: 500 1.1rem/1.2 var(--font-display); color: var(--bronze-deep); background: var(--sand); }
.fw-table tbody th { font-weight: 500; color: var(--ink); width: 22%; }
.fw-table td { color: var(--muted); }

/* Comparison cards */
.fw-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fw-compare > div { padding: 18px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--stone); }
.fw-compare-ref { background: var(--sand) !important; }
.fw-compare b { display: block; font: 500 1.25rem/1.2 var(--font-display); color: var(--bronze-deep); margin-bottom: 12px; }
.fw-compare dl { margin: 0; display: grid; gap: 2px; }
.fw-compare dt { font-size:13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.fw-compare dt:first-child { margin-top: 0; }
.fw-compare dd { margin: 0; font-size: 0.9375rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .fw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) {
  .fw-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .fw-hero-media { justify-self: center; width: min(100%, 340px); }
  .fw-faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .fs-grid { grid-template-columns: 1fr; gap: 48px; }
  .fs-aside-inner { position: static; }
  .fs-hero-ico .fw-ico { width: 128px; height: 128px; }
  .fw-head { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .fw-hero { padding-block: 32px 56px; }
  .fw-services, .fw-faq { padding-block: 64px; }
  .fw-card { padding: 20px; }
  .fs-hero { padding-block: 28px 48px; }
  .fs-hero-grid { grid-template-columns: 1fr; }
  .fs-hero-ico { display: none; }
  .fs-lede { font-size: 1.2rem; }
  .fs-body { padding-block: 40px 64px; }
  .fs-pn { grid-template-columns: 1fr; }
  .fs-pn-next { grid-column: auto; }
  .fw-three, .fw-two, .fw-row, .fw-compare { grid-template-columns: 1fr; }
  .fw-row li + li { border-left: 0; border-top: 1px solid var(--stone); }
  .fw-flow-split { grid-template-columns: 1fr; }
  .fw-nine { gap: 8px; }
  .fw-nine > button, .fw-nine > a { padding: 12px 10px; gap: 8px; }
  .fw-nine .pic { width: 46px; height: 46px; border-radius: 12px; }
  .fw-nine .pic svg { width: 36px; height: 36px; }
  .fw-nine .n { font-size: 0.98rem; }
  .fw-nine .go { font-size:13px; }
  .fw-nine-guide .go { padding: 2px 8px; }
  .fw-nine-tip { display: block; margin: 6px 0 0; }
}
@media (max-width: 479px) { .fw-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .fw-asset.is-in { animation: none; }
  .fw-card, .fw-nine button { transition: none; }
}

.fw-asset-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; color: var(--bronze-deep); text-decoration: underline; text-underline-offset: 3px; }
.fw-asset-link::after { content: "→"; text-decoration: none; }
.fw-asset-link:hover { color: var(--ink); }
