:root {
  --ink: #152223;
  --muted: #5f6c6f;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --line: #dfe6e1;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #b8781f;
  --shadow: 0 18px 50px rgba(21, 34, 35, 0.12);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(223, 230, 225, 0.85);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-dark);
  color: #ffffff;
  font-size: 1.1rem;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
  outline: none;
}

.hero {
  position: relative;
  min-height: 420px;
  height: calc(100svh - 120px);
  max-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("./assets/hero-office.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 22, 24, 0.78) 0%, rgba(8, 22, 24, 0.58) 38%, rgba(8, 22, 24, 0.1) 100%),
    linear-gradient(0deg, rgba(8, 22, 24, 0.24), rgba(8, 22, 24, 0.08));
}

.hero-content {
  display: flex;
  width: min(1120px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 3.8rem;
  line-height: 1.12;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.14rem;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 700;
}

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

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  outline: none;
}

.section {
  padding: 88px 0;
}

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

.section-muted {
  background: #eef3ef;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 32px;
}

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

h2 {
  margin-bottom: 0;
  font-size: 2.1rem;
  line-height: 1.22;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.32;
}

.intro-grid,
.record-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.intro-copy,
.contact-copy,
.record-note {
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-copy p,
.contact-copy p {
  margin-bottom: 14px;
}

.intro-copy p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

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

.service-card {
  min-height: 236px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.record-section {
  background: var(--teal-dark);
  color: #ffffff;
}

.record-section .section-kicker {
  color: #f0ba66;
}

.record-note {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.78);
}

.record-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.record-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.record-list dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.record-list dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.record-list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.contact-section {
  background: var(--paper);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 26px 48px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 860px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 6px 8px;
  }

  .hero {
    min-height: 440px;
    height: calc(100svh - 142px);
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .intro-grid,
  .record-layout,
  .contact-layout,
  .service-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand-name {
    white-space: normal;
  }

  .site-nav {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .hero h1 {
    font-size: 2.08rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h2 {
    font-size: 1.65rem;
  }

  .record-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    padding: 22px 20px;
  }
}
