:root {
  --ink: #17201b;
  --muted: #5c6760;
  --paper: #f8f7f3;
  --panel: #ffffff;
  --line: #dad8ce;
  --accent: #1f6f63;
  --accent-dark: #164d45;
  --gold: #c79a3b;
  --charcoal: #25302a;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(248, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--accent-dark);
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: inset 0 -6px 0 rgba(31, 111, 99, 0.08);
  font-weight: 800;
}

.brand-mark span {
  line-height: 1;
}

.brand-mark em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  max-width: 280px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.site-nav a,
.header-phone,
.site-footer a {
  text-decoration: none;
}

.language-link {
  color: var(--accent-dark);
  font-weight: 800;
}

.home-link {
  color: var(--accent-dark);
  font-weight: 900;
}

.header-phone {
  padding: 10px 14px;
  color: white;
  background: var(--charcoal);
  border-radius: var(--radius);
  font-weight: 700;
}

.menu-button {
  display: none;
  width: max-content;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: clamp(560px, 76vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.personal-hero .hero-image {
  object-position: 76% 12%;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(14, 24, 20, 0.82), rgba(14, 24, 20, 0.48), rgba(14, 24, 20, 0.08));
}

.hero-content {
  position: relative;
  max-width: 780px;
  padding: 0 clamp(22px, 6vw, 88px) 82px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
}

.trust-headline {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.trust-word {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  font-size: clamp(92px, 15vw, 190px);
  line-height: 0.82;
  letter-spacing: 0;
  background: linear-gradient(transparent 64%, rgba(31, 111, 99, 0.92) 64%);
}

.trust-line {
  display: block;
  max-width: 560px;
  font-size: clamp(28px, 4.2vw, 62px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

h3 {
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  max-width: 640px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--accent);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.inline-link {
  display: inline-flex;
  margin: 0 12px 12px 0;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 28px clamp(18px, 4vw, 56px);
  background: white;
}

.stats strong {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
}

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

.section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card div {
  padding: 20px;
}

.card a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.text-card {
  min-height: 220px;
}

.category-card {
  color: inherit;
  text-decoration: none;
}

.category-card strong {
  color: var(--accent-dark);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  min-height: 430px;
  background: var(--charcoal);
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 18%;
}

.page-hero div {
  align-self: center;
  padding: clamp(32px, 6vw, 72px);
}

.page-hero h1,
.page-hero p {
  color: white;
}

.split,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lead-form,
.fact-box {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-section {
  background: white;
}

.timeline-note {
  max-width: 980px;
  margin-bottom: 24px;
  padding: 18px 20px;
  color: var(--accent-dark);
  background: var(--paper);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.55;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 1px;
  overflow-x: auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-timeline article {
  min-width: 180px;
  padding: 20px;
  background: white;
}

.process-timeline h3 {
  color: var(--accent-dark);
  font-size: 18px;
}

.risk-doc-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  background: var(--paper);
}

.risk-column,
.doc-column {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.risk-column li,
.doc-column li {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.legal-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  font-weight: 800;
}

.values-section {
  background: white;
}

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

.value-grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--panel);
}

.background-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.background-section img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: white;
}

.profile-copy {
  max-width: 760px;
}

.profile-copy h2 {
  margin-bottom: 18px;
}

.profile-copy li {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-card .lead-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.business-card-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.qr-code {
  width: min(100%, 280px);
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.qr-code.big {
  width: min(100%, 360px);
}

.contact-lines {
  display: grid;
  gap: 8px;
}

.contact-lines a,
.contact-lines span {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-lines.large {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 800;
}

.lead-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
}

.fact-box {
  display: grid;
  gap: 10px;
}

.fact-box strong {
  color: var(--accent-dark);
  font-size: 34px;
}

.fact-box a {
  color: var(--accent-dark);
  font-weight: 800;
}

.source-links {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.source-links a {
  display: inline-flex;
  margin: 0 12px 10px 0;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.market-snapshot,
.school-snapshot {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

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

.mini-stat-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.mini-stat-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-stat-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--charcoal);
  line-height: 1.25;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 160px;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.trend-chart div {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  gap: 8px;
  align-items: end;
  text-align: center;
}

.trend-chart i {
  display: block;
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}

.trend-chart span,
.chart-note {
  color: var(--muted);
  font-size: 13px;
}

.chart-note {
  margin-top: 10px;
}

.property-details,
.date {
  color: var(--accent-dark);
  font-weight: 800;
}

.prose {
  max-width: 820px;
}

.prose p,
.prose li {
  font-size: 18px;
}

.prose .lede {
  color: var(--charcoal);
  font-size: 21px;
  font-weight: 700;
}

.article-section {
  margin-top: 34px;
}

.article-section h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.testimonial-detail {
  min-height: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
}

.quote {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.15;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 120px;
  gap: 22px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 56px);
  color: white;
  background: var(--accent-dark);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-band-qr,
.footer-qr {
  width: 112px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: white;
}

.footer-qr {
  margin-top: 12px;
}

.featured-video {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  background: white;
}

.youtube-intro {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.inline-link-row {
  margin-top: 18px;
}

.featured-video-thumb,
.video-card {
  color: inherit;
  text-decoration: none;
}

.featured-video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #111;
}

.featured-video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-video-thumb span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: white;
  background: rgba(31, 111, 99, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
}

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

.video-anchor-section {
  scroll-margin-top: 96px;
  border-top: 1px solid var(--line);
}

.video-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-card div {
  padding: 18px;
}

.video-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-card strong {
  color: var(--accent-dark);
}

.playlist-grid {
  margin-bottom: 20px;
}

.playlist-card {
  border-color: rgba(31, 111, 99, 0.35);
  background: linear-gradient(180deg, white, #f3faf8);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 44px clamp(18px, 4vw, 56px);
  color: white;
  background: var(--charcoal);
}

.site-footer p,
.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 8px;
}

.quick-contact {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.quick-contact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 14px 8px 8px;
  color: white;
  background: var(--accent-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(23, 32, 27, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.quick-contact-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent-dark);
  background: white;
  border-radius: 50%;
  font-size: 13px;
}

.quick-contact-panel {
  display: none;
  width: min(340px, calc(100vw - 32px));
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 56px rgba(23, 32, 27, 0.22);
}

.quick-contact[data-open="true"] .quick-contact-panel {
  display: block;
}

.quick-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.quick-contact-head strong {
  font-size: 18px;
}

.quick-contact-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
}

.quick-contact-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.quick-contact-actions a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--accent-dark);
  background: #f3faf8;
  border: 1px solid rgba(31, 111, 99, 0.2);
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
}

.quick-contact-wechat {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.quick-contact-wechat img {
  width: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .card-grid,
  .video-grid,
  .value-grid,
  .risk-doc-section,
  .stats,
  .site-footer,
  .page-hero,
  .profile-panel,
  .featured-video,
  .background-section,
  .split,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .page-hero img {
    max-height: 320px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 42px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 48px;
  }

  .contact-band {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .contact-band-qr {
    justify-self: start;
  }

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

  .trend-chart {
    gap: 6px;
  }

  .quick-contact {
    right: 12px;
    bottom: 12px;
  }

  .quick-contact-toggle span:last-child {
    display: none;
  }

  .quick-contact-toggle {
    min-height: 50px;
    padding: 7px;
  }
}
