:root {
  --bg: #ffffff;
  --paper: #f7f7f5;
  --ink: #111827;
  --muted: #5f6673;
  --line: #e5e7eb;
  --gold: #b99a5b;
  --gold-soft: #d8c395;
  --dark: #111827;
  --danger: #8a1f1f;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.08);
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  color: #374151;
  font-size: 15px;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.lang-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 660px;
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 34%, rgba(255, 255, 255, 0.5) 58%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #806934;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", "Microsoft JhengHei", serif;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.hero-copy {
  max-width: 580px;
  margin-bottom: 30px;
  color: #374151;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--dark);
  color: #fff;
}

.button.secondary {
  border-color: #cfd3da;
  background: rgba(255, 255, 255, 0.78);
  color: var(--dark);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.quick-info div {
  padding: 24px clamp(20px, 4vw, 56px);
  background: #fff;
}

.quick-info span,
.quick-info strong {
  display: block;
}

.quick-info span {
  color: var(--muted);
  font-size: 13px;
}

.quick-info strong {
  margin-top: 4px;
  font-size: 17px;
}

.section {
  padding: clamp(68px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.services {
  background: var(--paper);
}

.knowledge {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article,
.knowledge-grid article {
  min-height: 218px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.service-grid span,
.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  color: #806934;
  font-weight: 900;
}

.service-grid p,
.knowledge-grid p,
.process-steps p,
.profile-layout p {
  color: var(--muted);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 270px;
}

.knowledge-grid span {
  width: fit-content;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 4px 10px;
  color: #806934;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-grid a {
  align-self: end;
  margin-top: 6px;
  color: #806934;
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-band {
  background: #fff;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 760px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.profile-mark {
  width: min(260px, 58vw);
}

.profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.profile-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #374151;
  font-size: 14px;
}

.process {
  background: var(--dark);
  color: #fff;
}

.process .eyebrow {
  color: var(--gold-soft);
}

.process .section-heading p:not(.eyebrow),
.process-steps p {
  color: #d1d5db;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-steps div {
  border-top: 1px solid rgba(216, 195, 149, 0.6);
  padding-top: 22px;
}

.consultation {
  background: var(--paper);
}

.intake-form {
  max-width: 1120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd3da;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(185, 154, 91, 0.2);
}

.file-label small {
  color: var(--muted);
  font-weight: 500;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  font-weight: 600;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.form-result {
  display: block;
  margin-top: 24px;
  border-left: 4px solid var(--gold);
  padding: 16px;
  background: #fbfaf7;
  color: #374151;
  white-space: pre-wrap;
}

.form-result[hidden] {
  display: none;
}

.form-result a {
  color: var(--danger);
  font-weight: 900;
  text-decoration: underline;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 40px;
  align-items: start;
  background: #fff;
}

address {
  display: grid;
  gap: 10px;
  color: #374151;
  font-style: normal;
}

address a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

address a:hover {
  color: #806934;
}

.site-footer {
  display: grid;
  gap: 20px;
  padding: 42px clamp(20px, 5vw, 72px);
  background: var(--dark);
  color: #d1d5db;
}

.site-footer img {
  width: min(460px, 100%);
}

.site-footer p {
  max-width: 820px;
  margin-bottom: 0;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .brand {
    min-width: auto;
    flex: 1;
  }

  .site-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 620px;
  }

  .service-grid,
  .knowledge-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout,
  .contact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .brand small {
    white-space: normal;
  }

  .site-nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 280px;
  }

  .hero::after {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.96) 52%, rgba(255, 255, 255, 0.15) 100%);
  }

  .hero-media img {
    object-position: 64% center;
  }

  h1 {
    font-size: clamp(36px, 9vw, 40px);
  }

  .quick-info,
  .service-grid,
  .knowledge-grid,
  .process-steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .profile-mark {
    width: 170px;
  }
}
