:root {
  --navy: #0b1a36;
  --navy-2: #15284a;
  --teal: #23908e;
  --teal-deep: #176c6a;
  --paper: #f4f1ea;
  --paper-2: #e7e2d6;
  --ink: #142033;
  --muted: #5c6573;
  --line: rgba(11, 26, 54, 0.12);
  --white: #fffcf7;
  --serif: "Noto Serif TC", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Noto Sans TC", "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif;
  --shadow: 0 18px 40px rgba(11, 26, 54, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: #d3ebe9; color: var(--navy); }
:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--teal));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.brand-sub { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }
#site-nav { display: flex; gap: 4px; align-items: center; }
#site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
#site-nav a:hover { background: rgba(11, 26, 54, 0.06); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  padding: 8px 14px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--teal-deep);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: end;
  padding: 72px 0 36px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.45rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}
.hero h1 span { display: block; }
.lede {
  max-width: 38em;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 20px 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
}
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; border-color: rgba(11, 26, 54, 0.25); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-line { background: var(--white); border-color: rgba(11, 26, 54, 0.2); }
.btn-line::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #06c755;
  margin-right: 8px;
}
.hero-panel {
  background: var(--navy);
  color: #f7f4ee;
  padding: 28px 26px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-panel img { width: 112px; height: 112px; margin-bottom: 18px; }
.hero-panel dl { margin: 0; display: grid; gap: 12px; }
.hero-panel div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-panel dt { color: rgba(247, 244, 238, 0.62); font-size: 0.88rem; }
.hero-panel dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; }

.section { padding: 72px 0; }
.section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
}
.section-intro { max-width: 40em; color: var(--muted); margin: 0 0 32px; }
.kicker {
  margin: 0 0 8px;
  color: var(--teal-deep);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.service-grid, .work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 24px 28px;
  border-radius: 16px;
  min-height: 100%;
}
.service .index {
  font-family: var(--serif);
  color: var(--teal);
  font-size: 0.95rem;
}
.service h3 { margin: 10px 0 8px; font-size: 1.25rem; font-weight: 600; }
.service p { margin: 0; color: var(--muted); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: none;
}
.steps li {
  background: var(--white);
  border-top: 3px solid var(--navy);
  padding: 22px 18px 24px;
  min-height: 100%;
}
.steps li:nth-child(2) { border-top-color: var(--teal); }
.steps span {
  display: block;
  font-family: var(--serif);
  color: var(--teal-deep);
  margin-bottom: 10px;
}
.steps h3 { margin: 0 0 8px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.flow-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.preview {
  height: 196px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}
.preview .pv-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  opacity: 0.75;
}
.preview strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
}
.preview em { font-style: normal; font-size: 0.88rem; opacity: 0.8; }
.preview-law { background: #0c1c33; color: #f4efe4; }
.preview-law::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 1px;
  background: #c6a15b;
}
.preview-cpa {
  background:
    linear-gradient(#d5dce6, #d5dce6) 0 46px / 100% 1px no-repeat,
    linear-gradient(#e7eef6, #e7eef6) 0 78px / 100% 1px no-repeat,
    linear-gradient(#e7eef6, #e7eef6) 0 110px / 100% 1px no-repeat,
    #f7f8fa;
  color: #1a2332;
}
.preview-cpa .pv-kicker { color: #1b4f8a; }
.preview-derma { background: #f6f1ec; color: #3a2e2a; }
.preview-derma::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -20px;
  top: -30px;
  background: #e7d2c8;
}
.preview-derma strong, .preview-derma em, .preview-derma .pv-kicker { position: relative; z-index: 1; }
.preview-dining {
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 134, 74, 0.45), transparent 42%),
    #141210;
  color: #f3ede4;
}
.preview-tcm { background: #f3ebdd; color: #24352a; }
.preview-tcm::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 54px;
  height: 78px;
  border: 1.5px solid #3c5340;
  border-radius: 40px 40px 30px 30px;
  opacity: 0.55;
}
.preview-ext { background: #e7f2ef; color: #14302c; }
.work-meta { padding: 18px 18px 20px; }
.work-meta span {
  color: var(--teal-deep);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
.work-meta h3 { margin: 6px 0 4px; font-size: 1.12rem; font-weight: 600; }
.work-meta p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pricing {
  background: var(--navy);
  color: #f7f4ee;
}
.pricing .kicker { color: #8fd0cd; }
.pricing h2 { max-width: 12em; }
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.price {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px;
  border-radius: 16px;
}
.price span { display: block; color: rgba(247, 244, 238, 0.66); }
.price strong {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
}
.price-note { margin: 22px 0 0; color: rgba(247, 244, 238, 0.72); max-width: 42em; }
.exact {
  margin: 8px 0 0;
  font-size: 1.02rem;
}

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--teal-deep);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mail {
  color: var(--navy);
  font-weight: 500;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.contact-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.contact-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--navy); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.footer-brand img { width: 28px; height: 28px; }

@media (max-width: 980px) {
  .hero, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .steps, .work-grid { grid-template-columns: 1fr 1fr; }
  .hero { align-items: start; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  #site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: rgba(244, 241, 234, 0.98);
    border-bottom: 1px solid var(--line);
  }
  #site-nav.is-open { display: flex; }
  #site-nav a { padding: 12px; border-radius: 10px; }
}
@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .site-header { padding: 12px 16px; }
  .hero, .contact-grid, .price-row, .steps, .work-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 12px; gap: 28px; }
  .section { padding: 52px 0; }
  .hero-panel div { align-items: baseline; }
  .preview { height: 168px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work-card { transition: none; }
}
