:root {
  --ink: #17243a;
  --muted: #5d6674;
  --paper: #fffdf8;
  --panel: #ffffff;
  --linen: #f6f0e6;
  --navy: #20365f;
  --gold: #b58a44;
  --gold-soft: #efe2c7;
  --line: #e7ddcf;
  --shadow: 0 22px 60px rgba(31, 45, 77, 0.1);
  font-family: "Inter", "Segoe UI", "Noto Sans", "Noto Sans TC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 221, 207, 0.86);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(260px, 48vw);
  height: 56px;
  object-fit: contain;
}

.brand small {
  max-width: min(560px, 52vw);
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

html[lang="zh-Hant"] .brand small {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 650;
}

html[lang="zh-Hant"] h1 {
  font-size: clamp(2.05rem, 4vw, 3.25rem);
  line-height: 1.16;
}

html[lang="zh-Hant"] h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

html[lang="zh-Hant"] h3 {
  font-size: 1.16rem;
}

html[lang="zh-Hant"] .lead {
  font-size: clamp(1.04rem, 1.55vw, 1.18rem);
  line-height: 1.72;
}

html[lang="zh-Hant"] .button {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links .active {
  color: var(--navy);
}

.lang-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--panel);
}

.hero,
.section,
.page-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 52px;
  padding: 72px 0 56px;
}

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.landing-panel {
  width: min(760px, 100%);
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  font-weight: 800;
}

html[lang="en"] .hero h1 {
  max-width: 680px;
  font-size: clamp(1.9rem, 3.25vw, 2.75rem);
  line-height: 1.16;
}

h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 800;
}

h3 {
  font-size: 1.12rem;
  font-weight: 750;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.hero-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ed 100%);
  box-shadow: var(--shadow);
}

.hero-card ul,
.service-detail ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-card li,
.service-detail li {
  padding-left: 20px;
  position: relative;
  color: var(--muted);
}

.hero-card li::before,
.service-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-card li a {
  color: inherit;
}

.hero-card .service-summary {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.hero-card .learn-more {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-header p {
  max-width: 560px;
}

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

.card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card p {
  margin-top: 12px;
  font-size: 0.98rem;
}

.band {
  background: var(--linen);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.philosophy-section {
  border-top: 1px solid rgba(231, 221, 207, 0.74);
  background: #fffaf1;
}

.philosophy-panel {
  max-width: 920px;
  padding: 34px;
  border: 1px solid rgba(181, 138, 68, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ed 100%);
  box-shadow: 0 18px 46px rgba(31, 45, 77, 0.08);
}

.philosophy-panel p:not(.eyebrow) {
  margin-top: 14px;
  max-width: 780px;
}

.philosophy-panel .actions {
  margin-top: 24px;
}

.page-hero {
  padding: 72px 0 34px;
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-detail {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  scroll-margin-top: 96px;
}

.service-detail p {
  margin-top: 12px;
  font-size: 1rem;
}

.resource-category + .resource-category {
  margin-top: 22px;
}

.resource-category h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

.resource-category > p {
  max-width: 760px;
  margin-top: 8px;
}

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

.resource-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.resource-card h3 {
  color: var(--navy);
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.resource-link {
  align-self: end;
  color: var(--gold);
  font-weight: 800;
}

.resource-soon {
  align-self: end;
  color: var(--muted);
  font-weight: 750;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-foundation {
  padding-top: 56px;
}

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

.foundation-card {
  min-height: 300px;
}

.foundation-card .eyebrow {
  margin-bottom: 12px;
}

.foundation-card p:not(.eyebrow) {
  margin-top: 14px;
}

.values-panel {
  margin-top: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.value-card {
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(181, 138, 68, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(251, 246, 237, 0.98) 100%);
}

.value-card h3 {
  position: relative;
  padding-top: 16px;
  color: var(--navy);
}

.value-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.value-card p {
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.62;
}

.team-section {
  padding-top: 56px;
}

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

.team-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid rgba(181, 138, 68, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ed 100%);
  box-shadow: 0 16px 42px rgba(31, 45, 77, 0.07);
}

.team-card h3 {
  color: var(--navy);
}

.team-role {
  margin-top: 10px;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.45;
}

.team-card p:not(.team-role) {
  margin-top: 12px;
  font-size: 0.98rem;
}

.contact-panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.en-contact .section,
.zh-contact .section {
  width: min(640px, calc(100% - 32px));
  padding: 42px 0 58px;
}

.en-contact .contact-panel,
.zh-contact .contact-panel {
  padding: 24px 26px;
}

.en-contact .contact-panel h2,
.zh-contact .contact-panel h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
}

.en-contact .contact-panel .lead,
.zh-contact .contact-panel .lead {
  font-size: 1rem;
}

.zh-contact .page-hero .eyebrow {
  font-size: 1rem;
  font-weight: 650;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  max-width: 720px;
}

.en-contact .contact-form,
.zh-contact .contact-form {
  gap: 13px;
  margin-top: 20px;
  max-width: 560px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
}

.en-contact .contact-form input,
.en-contact .contact-form textarea,
.zh-contact .contact-form input,
.zh-contact .contact-form textarea {
  padding: 9px 12px;
}

.en-contact .contact-form input,
.zh-contact .contact-form input {
  min-height: 44px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(181, 138, 68, 0.32);
  border-color: var(--gold);
}

.contact-form textarea {
  resize: vertical;
}

.en-contact .contact-form textarea,
.zh-contact .contact-form textarea {
  min-height: 118px;
}

.contact-form .button {
  width: fit-content;
  min-height: 54px;
  margin-top: 6px;
  padding: 14px 24px;
  font-size: 1.08rem;
  cursor: pointer;
}

.en-contact .contact-form .button,
.zh-contact .contact-form .button {
  min-height: 46px;
  padding: 11px 20px;
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
}

.footer-brand small {
  grid-column: 2;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}

.footer-logo {
  grid-row: 1 / span 2;
  width: 44px;
  height: auto;
}

.zh-home {
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 226, 199, 0.7), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fbf4e8 48%, #fffdf8 100%);
}

.zh-home .site-header {
  border-bottom-color: rgba(181, 138, 68, 0.22);
  background: rgba(255, 253, 248, 0.96);
}

.zh-home .nav {
  min-height: 82px;
}

.zh-home .brand {
  color: var(--navy);
  font-size: 1.04rem;
}

.zh-home .brand small {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 650;
}

.zh-home .nav-links {
  font-weight: 650;
}

.zh-home .hero {
  min-height: 690px;
  padding: 92px 0 76px;
  gap: 64px;
  position: relative;
}

.zh-home .hero > div {
  max-width: 680px;
}

.zh-home .hero::after {
  content: "";
  position: absolute;
  right: 28%;
  bottom: 56px;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.55;
}

.zh-home .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(181, 138, 68, 0.32);
  border-radius: 999px;
  background: rgba(239, 226, 199, 0.38);
  color: #8d682d;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
}

.zh-home h1 {
  margin-top: 18px;
  max-width: 620px;
  color: #142844;
  font-size: clamp(1.82rem, 3.1vw, 2.72rem);
  font-weight: 800;
  line-height: 1.18;
}

.zh-home .lead {
  max-width: 660px;
  color: #4c596c;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.zh-home .nowrap {
  white-space: nowrap;
}

.zh-home .button {
  min-height: 50px;
  padding: 13px 22px;
  border-color: #1d365d;
  background: #1d365d;
  box-shadow: 0 12px 28px rgba(29, 54, 93, 0.18);
}

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

.zh-home .button.secondary {
  border-color: rgba(181, 138, 68, 0.7);
  background: #fffdf8;
  color: #1d365d;
  box-shadow: none;
}

.zh-home .hero-card {
  padding: 30px;
  border-color: rgba(181, 138, 68, 0.26);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 26px 70px rgba(31, 45, 77, 0.14);
  backdrop-filter: blur(12px);
}

.zh-home .hero-card h2 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.zh-home .hero-card ul {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 18px;
}

.zh-home .hero-card li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(231, 221, 207, 0.82);
  border-radius: 6px;
  background: transparent;
  color: #263954;
  font-weight: 650;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.zh-home .hero-card li:hover {
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 24px rgba(31, 45, 77, 0.06);
  transform: translateY(-1px);
}

.zh-home .hero-card li a {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px 10px 30px;
}

.zh-home .hero-card .learn-more {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.zh-home .hero-card li::before {
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
}

.zh-home .band {
  border-color: rgba(181, 138, 68, 0.2);
  background: #f5ecdc;
}

.zh-home .band .section {
  padding: 78px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.zh-home .section-header {
  align-items: center;
  margin-bottom: 0;
}

.zh-home .section-header h2 {
  max-width: 520px;
  color: var(--navy);
}

.zh-home .section-header p {
  color: #4c596c;
}

.zh-home .band .actions {
  margin-top: 0;
  justify-content: flex-end;
}

.zh-home .why-section {
  background: #fffdf8;
}

.zh-home .why-section .section {
  padding: 86px 0 92px;
}

.zh-home .why-header {
  max-width: 780px;
  margin-bottom: 30px;
}

.zh-home .why-header h2 {
  color: var(--navy);
}

.zh-home .why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.zh-home .why-card {
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  border: 1px solid rgba(181, 138, 68, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 246, 237, 0.96) 100%);
  box-shadow: 0 18px 46px rgba(31, 45, 77, 0.08);
}

.zh-home .why-card h3 {
  position: relative;
  padding-top: 18px;
  color: #20365f;
  font-size: 1.12rem;
}

.zh-home .why-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

@media (max-width: 820px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .brand small {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .brand-logo {
    height: 40px;
    max-width: min(220px, 72vw);
  }

  .eyebrow,
  html[lang="zh-Hant"] .brand small,
  .zh-home .brand small,
  .zh-home .eyebrow,
  .zh-contact .page-hero .eyebrow {
    font-size: 0.94rem;
    line-height: 1.35;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 48px 0;
  }

  h1 {
    font-size: clamp(2rem, 8.2vw, 2.65rem);
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(1.78rem, 7vw, 2.18rem);
    line-height: 1.18;
  }

  .landing-panel {
    padding: 34px 22px;
  }

  .section-header,
  .two-col,
  .foundation-grid,
  .value-grid,
  .team-grid,
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .zh-home .hero {
    gap: 34px;
    padding: 54px 0;
  }

  .zh-home .hero::after {
    display: none;
  }

  .zh-home h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 7vw, 2.18rem);
    line-height: 1.16;
  }

  .zh-home .hero-card {
    padding: 22px;
  }

  .zh-home .section-header {
    align-items: start;
  }

  .zh-home .band .section {
    grid-template-columns: 1fr;
    padding: 54px 0;
  }

  .zh-home .band .actions {
    justify-content: flex-start;
  }

  .zh-home .why-section .section {
    padding: 58px 0 64px;
  }

  .zh-home .why-grid {
    grid-template-columns: 1fr;
  }

  .zh-home .why-card {
    min-height: 116px;
  }
}
