:root {
  --ink: #142033;
  --muted: #5f6c7b;
  --line: #d7dee8;
  --paper: #ffffff;
  --soft: #f3f6fa;
  --navy: #18324b;
  --blue: #315f9c;
  --blue-dark: #204a78;
  --gold: #b98931;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 10px 28px rgba(18, 32, 52, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(49, 95, 156, 0.06), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.brand,
.nav a,
.button,
.list-card {
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #0b5cab;
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px #fff;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--blue-dark);
  background: #fff;
  border: 2px solid #0b5cab;
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #fff;
  background: rgba(20, 32, 51, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  max-width: 420px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.brand:hover {
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
}

.nav a,
.site-footer a {
  color: #fff;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 0 5px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  opacity: 0.82;
  white-space: nowrap;
}

.nav a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav a[aria-current="page"],
.nav a.nav-section-current {
  color: #fff;
  border-bottom-color: var(--gold);
  opacity: 1;
}

.hero,
.card,
.notice,
.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 40px;
  margin: 20px 0 12px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--blue);
  pointer-events: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 38px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24, 50, 75, 0.98), rgba(32, 74, 120, 0.94)),
    var(--navy);
}

.home-hero::before {
  background: var(--gold);
}

.home-hero a {
  color: #fff;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-media {
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(24, 50, 75, 0.12), rgba(24, 50, 75, 0.02)),
    url("/assets/jinsi-building-hero.jpg") center / cover;
  box-shadow: 0 16px 36px rgba(9, 23, 38, 0.24);
}

.hero h1 {
  max-width: 18ch;
  margin: 10px 0 16px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-compact h1 {
  max-width: 32ch;
  font-size: clamp(30px, 3.7vw, 44px);
}

.hero p,
.article-body p,
.article-body li {
  max-width: 72ch;
}

.lead {
  color: #344054;
  font-size: 17px;
}

.home-hero .lead,
.home-hero .meta,
.home-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta,
.small-note {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 17px;
  color: #fff;
  background: var(--blue);
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.button:hover {
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
}

.button-secondary {
  color: var(--blue-dark);
  background: transparent;
  border-color: var(--blue);
}

.home-hero .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.66);
}

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

.accent-card .button-light,
.service-card-highlight .button-light {
  color: var(--blue-dark);
  background: #fff;
  border-color: #fff;
}

.accent-card .button-light:hover,
.service-card-highlight .button-light:hover {
  color: #fff;
  background: transparent;
}

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

.stats-row div {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stats-row strong {
  display: block;
  color: var(--blue-dark);
  font-size: 26px;
  line-height: 1.1;
}

.stats-row span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.fact-strip {
  gap: 0;
  margin: 4px 0 22px;
  border-block: 1px solid var(--line);
}

.fact-strip div {
  padding: 18px 22px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.fact-strip div:last-child {
  border-right: 0;
}

.fact-strip strong {
  font-size: 22px;
}

.section {
  margin-block: 28px;
}

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

.section-heading h2,
.card h2,
.notice h2,
.profile-card h2 {
  margin-top: 0;
  line-height: 1.3;
}

.grid,
.service-grid,
.three-column,
.two-column {
  display: grid;
  gap: 16px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.practice-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.practice-layout > * {
  grid-column: span 4;
}

.practice-layout > :nth-last-child(-n + 2) {
  grid-column: span 6;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.notice {
  padding: 24px;
  margin: 0;
}

.list-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.list-card:hover {
  border-color: #b9c8da;
  box-shadow: 0 12px 26px rgba(18, 32, 52, 0.09);
  transform: translateY(-1px);
}

.service-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.service-card h2,
.service-card h3 {
  line-height: 1.35;
}

.service-card-highlight,
.accent-card {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--navy));
  border-color: transparent;
}

.service-card-highlight a,
.accent-card a {
  color: #fff;
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  color: var(--blue-dark);
  background: #eaf1fb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.service-card-highlight .service-index {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.check-list,
.tag-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  margin: 7px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 4px 11px;
  color: #31465f;
  background: #f2f6fb;
  border: 1px solid #d2deec;
  border-radius: 999px;
}

.article-list {
  display: grid;
  gap: 10px;
}

.list-card {
  display: grid;
  gap: 5px;
  padding: 17px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #d2deec;
  border-radius: var(--radius-md);
}

.list-card:hover {
  border-left-color: var(--blue);
}

.list-card span {
  color: var(--muted);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 26px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 180px;
}

.contact-card strong {
  font-size: 22px;
}

.breadcrumb {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb li + li {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.breadcrumb a {
  color: var(--muted);
}

.notice {
  border-left: 5px solid var(--gold);
  box-shadow: none;
}

.text-link {
  font-weight: 750;
}

.site-footer {
  margin-top: 34px;
  color: #fff;
  background: #111f31;
}

.site-footer .container {
  padding-top: 30px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.8fr;
  gap: 28px;
}

.site-footer p {
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 860px) {
  .header-inner {
    display: block;
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .brand {
    display: block;
    max-width: none;
    margin-bottom: 3px;
    font-size: 15px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 8px;
    width: 100%;
  }

  .nav a {
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
  }

  .home-hero,
  .two-column,
  .three-column,
  .profile-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    gap: 24px;
  }

  .hero {
    padding: 30px;
  }

  .hero-media {
    min-height: 250px;
  }

  .practice-layout > *,
  .practice-layout > :nth-last-child(-n + 2) {
    grid-column: span 6;
  }

  .profile-actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
    padding: 18px 0;
  }

  .hero,
  .home-hero {
    padding: 23px;
  }

  .hero h1,
  .hero-compact h1 {
    max-width: none;
    font-size: 30px;
    line-height: 1.16;
  }

  .home-hero .lead {
    font-size: 16px;
  }

  .hero-media {
    min-height: 220px;
  }

  .stats-row,
  .fact-strip {
    grid-template-columns: 1fr;
  }

  .fact-strip {
    border-block: 0;
  }

  .fact-strip div {
    padding: 13px 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-strip div:last-child {
    border-bottom: 0;
  }

  .practice-layout > *,
  .practice-layout > :nth-last-child(-n + 2) {
    grid-column: 1 / -1;
  }

  .card,
  .notice,
  .profile-card,
  .service-card {
    padding: 21px;
  }

  .section {
    margin-block: 20px;
  }

  .actions .button {
    width: 100%;
  }

  .site-footer {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
