/* ─────────────────────────────────────────────────────────────
   A.table nordic — brand v6 shared stylesheet
   Used by all sub-pages (menus / services / cases / faq).
   ───────────────────────────────────────────────────────────── */

:root{
  --blue:        #4C659D;
  --blue-deep:   #3a4f7e;
  --blue-ink:    #2b3a5d;
  --yellow:      #F0E87B;
  --sand:        #CEB888;

  --paper:       #F5F2EB;
  --paper-warm:  #efeadf;
  --white:       #FFFFFF;
  --ink:         #1c1c1c;
  --ink-soft:    #2c2a26;
  --muted:       #6B6660;
  --muted-soft:  #908A82;
  --hair:        #E5E0D7;
  --hair-soft:   #ece8de;

  --sans:   "Noto Sans TC", "Helvetica Neue", Helvetica, "PingFang TC", system-ui, sans-serif;
  --latin:  "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif:  "Noto Serif TC", "Songti TC", serif;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html, body{ width: 100%; }
body{
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ display: block; max-width: 100%; height: auto; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection{ background: var(--yellow); color: var(--ink); }
.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Containers */
.wrap{        max-width: 1200px; margin: 0 auto; padding: 0 clamp(28px, 6vw, 80px); }
.wrap-narrow{ max-width: 760px;  margin: 0 auto; padding: 0 clamp(28px, 6vw, 80px); }
.wrap-wide{   max-width: 1400px; margin: 0 auto; padding: 0 clamp(28px, 6vw, 80px); }

/* Type */
h1, h2, h3, h4{
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.42;
  text-wrap: balance;
}
.eyebrow{
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
}
.eyebrow-rule{
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-rule::before{
  content: "";
  width: 28px; height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}
.section-title{
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.4;
  margin-top: 22px;
  max-width: 24ch;
}
.section-title.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-title .accent{ color: var(--blue); font-weight: 400; }
.section-lead{
  font-size: 16px;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 24px;
  font-weight: 300;
}
.section-lead.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons / links */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.22em;
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover{ background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover{ background: var(--ink); color: var(--paper); }

.arrow-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--blue);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--blue);
  transition: gap .2s, color .2s, border-color .2s;
}
.arrow-link:hover{ gap: 16px; color: var(--blue-deep); border-color: var(--blue-deep); }

/* Ornament + rule */
.eng-watermark{
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
}
.section-rule{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(36px, 5vw, 72px) clamp(28px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}
.section-rule .rule{
  flex: 1 1 auto;
  max-width: 220px;
  height: 1px;
  background: var(--hair);
}
.section-rule .ornament{
  width: 44px; height: 44px;
  flex-shrink: 0;
  opacity: 0.85;
}
.section-rule .ornament img{
  width: 100%; height: 100%;
  object-fit: contain;
}

/* ─── NAV ─────────────────────────────────────────────── */
.site-nav{
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.site-nav .wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--blue);
}
.brand .mark{ width: 36px; height: 36px; flex-shrink: 0; display: block; }
.brand .mark img{ width: 100%; height: 100%; display: block; }
.brand .name{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.28em;
  line-height: 1.2;
  color: var(--blue);
}
.brand .name .en{
  display: block;
  font-family: var(--latin);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--blue);
  opacity: 0.7;
  margin-top: 2px;
  text-transform: lowercase;
  font-weight: 400;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav-links a{
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a[aria-current="page"]{ color: var(--blue); }
.nav-links a:not(.book)::after{
  content:"";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover{ color: var(--blue); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ transform: scaleX(1); }
.nav-links a.book{
  padding: 10px 22px;
  border: 1px solid var(--blue);
  color: var(--blue);
  transition: background .2s, color .2s;
  letter-spacing: 0.22em;
  white-space: nowrap;
}
.nav-links a.book:hover{ background: var(--blue); color: var(--white); }
.nav-toggle{
  display: none;
  width: 32px; height: 32px;
  color: var(--ink);
}
.nav-toggle::before{
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  margin: 0 auto;
}

/* ─── SUBPAGE HERO ────────────────────────────────────── */
.page-hero{
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.page-hero .eng-watermark{
  top: 6%; right: -90px;
  width: 360px; height: 360px;
}
.page-hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  position: relative; z-index: 1;
}
.page-hero h1{
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.32;
  color: var(--ink);
  margin: 22px 0 24px;
}
.page-hero h1 .accent{ color: var(--blue); font-weight: 400; }

/* Responsive heading line-breaks: keep the comma break on phones (clean
   two-line, no awkward CJK mid-phrase wrap); drop it on tablet/desktop so
   titles sit on one line — or wrap balanced when too long. */
@media (min-width: 768px){
  .section-title br,
  .page-hero h1 br{ display: none; }
  .section-title,
  .page-hero h1{ text-wrap: balance; }
}
.page-hero-lead{
  max-width: 38ch;
  font-size: 16px;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-weight: 300;
}
.page-hero-actions{
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 36px;
}
.page-hero-meta{
  display: flex;
  gap: clamp(24px, 3.5vw, 48px);
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}
.page-hero-meta dt{
  font-family: var(--latin);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.page-hero-meta dd{
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 400;
}
.page-hero-meta dd .small{
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.04em;
}
.page-hero-visual{
  position: relative;
  aspect-ratio: 4/5;
}
.page-hero-visual img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}
.page-hero-cap{
  position: absolute;
  left: 0; bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--paper);
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero-cap::before{
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ─── chapter head shared ─────────────────────────────── */
.chapter-head{
  margin-bottom: clamp(40px, 5vw, 60px);
}
.chapter-head.center{ text-align: center; }

/* ─── FAQ shared ──────────────────────────────────────── */
.faq-list{ max-width: 820px; margin: 0 auto; }
.faq-item{ border-top: 1px solid var(--hair); }
.faq-item:last-of-type{ border-bottom: 1px solid var(--hair); }
.faq-item summary{
  list-style: none;
  cursor: pointer;
  padding: 24px 6px;
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  gap: 14px;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color .2s;
}
.faq-item summary:hover{ color: var(--blue); }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .q{
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--blue);
  text-transform: uppercase;
}
.faq-item summary .toggle{
  width: 16px; height: 16px;
  position: relative;
  justify-self: end;
  flex-shrink: 0;
}
.faq-item summary .toggle::before,
.faq-item summary .toggle::after{
  content: "";
  position: absolute;
  background: var(--ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .toggle::before{ width: 12px; height: 1px; }
.faq-item summary .toggle::after{
  width: 12px; height: 1px;
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .25s;
}
.faq-item[open] summary .toggle::after{
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq-item .answer{
  padding: 0 6px 26px 70px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 62ch;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.footer{
  padding: clamp(56px, 7vw, 88px) 0 32px;
  border-top: 1px solid var(--hair);
  margin-top: clamp(40px, 6vw, 96px);
}
.footer-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hair);
}
.footer-grid h5{
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.footer-grid p,
.footer-grid a{
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
  font-weight: 300;
}
.footer-grid .links{ display: grid; gap: 4px; }
.footer-grid a{ transition: color .2s; }
.footer-grid a:hover{ color: var(--blue); }
.footer .brand{ margin-bottom: 20px; }
.footer .tagline{
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 10px;
  max-width: 28ch;
}
.footer .lagom-line{
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.footer-bottom{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  align-items: center;
}
.footer-bottom span,
.footer-bottom a{
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-bottom .seize{ max-width: 130px; opacity: 0.7; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 980px){
  .page-hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .page-hero-visual{ aspect-ratio: 4/3; }
  .footer-grid{ grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px){
  .nav-links{ display: none; }
  .nav-links.show{
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    padding: 20px clamp(28px, 6vw, 80px);
    border-bottom: 1px solid var(--hair);
    gap: 18px;
  }
  .nav-toggle{ display: inline-block; }
  .faq-item summary{ grid-template-columns: 40px 1fr 16px; gap: 10px; font-size: 15px; }
  .faq-item .answer{ padding-left: 50px; }
}
