/* ==========================================================================
   JIUZHOUZIBEN LIMITED — corporate website stylesheet
   100% original. No external fonts, frameworks or images are referenced.

   TYPOGRAPHY SYSTEM (see README "Typography" — reuse these rules as-is)
   - Modular fluid scale via clamp(); body 1.0625rem / 1.7 line-height.
   - Chinese text: line-height 1.8, letter-spacing 0, never justified.
   - English headings: letter-spacing -0.02em; eyebrow labels +0.12em.
   - Prose measure capped at 68ch; vertical rhythm on a 0.5rem scale.
   ========================================================================== */

:root {
  /* Palette */
  --navy: #0b2a4a;
  --navy-2: #0e3a66;
  --navy-3: #123f70;
  --teal: #0e9f9f;
  --teal-bright: #19b5b5;
  --teal-soft: #e6f5f5;
  --ink: #1d3049;          /* headings */
  --body: #33475c;         /* body text — high contrast on light bg */
  --muted: #5a6e82;        /* meta text only */
  --bg: #f5f8fa;
  --surface: #ffffff;
  --line: #dce5ec;
  --error: #b3261e;

  /* Type scale (fluid, modular) */
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h1: clamp(2.2rem, 5vw, 3.4rem);
  --fs-h1-page: clamp(1.9rem, 4.2vw, 2.9rem);
  --fs-h2: clamp(1.7rem, 3.5vw, 2.4rem);
  --fs-h3: 1.25rem;
  --fs-lede: clamp(1.075rem, 1.6vw, 1.2rem);

  /* Spacing rhythm — everything derives from 0.5rem */
  --section-pad: clamp(3rem, 8vw, 5rem);
  --radius: 1rem;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.10);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Chinese text gets more air between lines, and never any tracking. */
body.lang-zh { line-height: 1.8; }
body.lang-zh :is(h1, h2, h3, h4, p, li, a, span, dt, dd, .btn, .eyebrow) {
  letter-spacing: 0;
}

/* --- Headings ------------------------------------------------------------ */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-wrap: balance;
}
body.lang-en :is(h1, h2) { letter-spacing: -0.02em; }
body.lang-zh :is(h1, h2, h3) { line-height: 1.3; }

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.35; }

p { margin: 0 0 1rem; }
@supports (text-wrap: pretty) { p { text-wrap: pretty; } }

a { color: var(--teal); text-decoration-color: rgba(14, 159, 159, 0.4); text-underline-offset: 0.18em; }
a:hover { color: var(--navy-2); }

.nowrap { white-space: nowrap; }

/* --- Layout primitives (shared by every page) ---------------------------- */
.container {
  width: min(72.5rem, calc(100% - 3rem));
  margin-inline: auto;
}
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--bg); }
.prose { max-width: 68ch; }
.prose-wide { max-width: 55rem; margin-inline: auto; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
}
.eyebrow-light { color: var(--teal-bright); }

.section-title { margin: 0 0 1rem; }
.section-lede {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 2.5rem;
}
body.lang-zh .section-lede { line-height: 1.8; }
.section-more { margin-top: 2rem; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* --- Buttons (never wrap, never collide) --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.8rem 1.6rem;
  border-radius: 0.75rem;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0b8585; color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--teal-bright); color: #06283f; }
.btn-accent:hover { background: #25c6c6; color: #06283f; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(11, 42, 74, 0.08); }
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { flex: none; border-radius: 0.55rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; gap: 0.12rem; min-width: 0; }
.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.lang-zh .brand-name { letter-spacing: 0; font-size: 1.06rem; }
.brand-tag { font-size: 0.72rem; line-height: 1.4; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 550;
  white-space: nowrap;
  padding: 0.35rem 0;
}
.main-nav > a:hover { color: var(--teal); }
.main-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 0.6rem;
}
.main-nav .nav-cta:hover { background: var(--teal); color: #fff; }

.lang-switch { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.lang-switch a {
  font: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.2rem 0.1rem;
  cursor: pointer;
}
.lang-switch a:hover { color: var(--teal); }
.lang-switch .lang-current { font-size: 0.9rem; font-weight: 700; color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* --- Flash messages -------------------------------------------------------- */
.flash-wrap { padding-top: 1.25rem; }
.flash {
  border-radius: 0.75rem;
  padding: 0.9rem 1.2rem;
  margin: 0 0 0.5rem;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.flash-success { background: var(--teal-soft); color: #075e5e; border: 1px solid #bfe6e6; }
.flash-warning { background: #fdf3e3; color: #7a5410; border: 1px solid #f0dcbc; }
.flash-error { background: #fdeceb; color: var(--error); border: 1px solid #f5c6c2; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  color: #eaf3f8;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 38%, #0d5a63 72%, var(--teal) 115%);
  background-size: 220% 220%;
  animation: heroFlow 16s ease-in-out infinite alternate;
  padding-block: clamp(3.5rem, 9vw, 6rem);
  overflow: hidden;
}
@keyframes heroFlow {
  from { background-position: 0% 40%; }
  to   { background-position: 90% 60%; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}
.hero-title { color: #fff; margin: 0 0 1.25rem; }
.hero-lede {
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: #c9dcea;
  max-width: 54ch;
  margin: 0 0 2rem;
}
body.lang-zh .hero-lede { line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0; }
.hero-art {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  padding: 1.25rem;
  animation: heroFloat 7s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art .draw { fill: none; stroke: #a8d8dc; stroke-width: 1.6; }
.hero-art .draw.soft { stroke: rgba(168, 216, 220, 0.5); }
.hero-art .accent-line {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 6;
  animation: lineMarch 14s linear infinite;
}
@keyframes lineMarch { to { stroke-dashoffset: -220; } }
.hero-art .dot { fill: var(--teal-bright); }

/* --- Page hero (inner pages) ---------------------------------------------- */
.page-hero {
  color: #eaf3f8;
  background: linear-gradient(115deg, var(--navy), var(--navy-2) 60%, #0d5a63);
  padding-block: clamp(2.75rem, 7vw, 4.25rem);
}
.page-title { color: #fff; font-size: var(--fs-h1-page); margin: 0 0 1rem; }
.page-lede {
  font-size: var(--fs-lede);
  line-height: 1.65;
  color: #c9dcea;
  max-width: 60ch;
  margin: 0;
}
body.lang-zh .page-lede { line-height: 1.8; }

/* --- Cards ----------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.5rem;
}
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 0.6rem; }
.card p { margin: 0; line-height: 1.68; }
body.lang-zh .card p { line-height: 1.8; }
.card .icon-lg { margin-bottom: 1rem; }

.icon { width: 1.35rem; height: 1.35rem; color: var(--teal); flex: none; }
.icon-sm { width: 1.05rem; height: 1.05rem; }
.icon-lg { width: 2.3rem; height: 2.3rem; }

/* --- Steps ------------------------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.section-alt .step { background: var(--surface); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.step h3 { margin: 0 0 0.55rem; }
.step p { margin: 0; line-height: 1.68; }
body.lang-zh .step p { line-height: 1.8; }

/* --- CTA band ---------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(115deg, var(--navy), #0d5a63);
  color: #eaf3f8;
  padding-block: var(--section-pad);
  text-align: center;
}
.cta-inner h2 { color: #fff; margin: 0 0 0.9rem; }
.cta-inner p {
  color: #c9dcea;
  max-width: 52ch;
  margin: 0 auto 1.8rem;
  line-height: 1.7;
}

/* --- Services page ---------------------------------------------------------- */
.service-list { display: grid; gap: 0; max-width: 62rem; margin-inline: auto; }
.service-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.75rem;
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
}
.service-row:first-child { padding-top: 0; }
.service-row:last-child { border-bottom: 0; padding-bottom: 0; }
.service-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.1rem;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon .icon-lg { margin: 0; }
.service-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin: 0 0 0.8rem; }
.service-body ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.service-body li { margin: 0.35rem 0; line-height: 1.65; }
body.lang-zh .service-body li { line-height: 1.8; }
.service-meta { color: var(--muted); font-size: var(--fs-small); margin: 0; }

/* --- Prose / article ---------------------------------------------------------- */
.prose p { line-height: 1.75; }
body.lang-zh .prose p { line-height: 1.85; }
.prose h2 { font-size: var(--fs-h2); margin: 0 0 1rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; line-height: 1.7; }

.article-title { font-size: var(--fs-h1-page); margin: 0 0 1rem; }
.article-lede { font-size: var(--fs-lede); color: var(--muted); margin-bottom: 1.5rem; }
.article-body { margin-bottom: 2.5rem; }
.article-back { margin: 0; }

/* --- Info table ----------------------------------------------------------------- */
.info-table { margin: 0; border-top: 1px solid var(--line); }
.info-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.info-row dt { font-weight: 700; color: var(--ink); margin: 0; }
.info-row dd { margin: 0; line-height: 1.65; font-variant-numeric: tabular-nums; }

/* --- News ------------------------------------------------------------------------ */
.news-date {
  color: var(--teal);
  font-size: var(--fs-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  margin: 0 0 0.55rem;
}
.news-card h3, .news-card-title { font-size: 1.22rem; line-height: 1.4; margin: 0 0 0.6rem; }
.news-card h3 a, .news-card-title a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover, .news-card-title a:hover { color: var(--teal); }
.news-more { margin-top: 1rem; }
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}
.page-status { color: var(--muted); font-variant-numeric: tabular-nums; }
.empty-note { margin-inline: auto; text-align: center; color: var(--muted); }

/* --- Deliverables (solutions) ---------------------------------------------------- */
.deliverable {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.deliverable h3 { margin: 0 0 0.9rem; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  margin: 0.5rem 0;
  line-height: 1.65;
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0.15rem;
  color: var(--teal);
  font-weight: 700;
}

/* --- Pricing (strict grid, premium finish) ---------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 33rem));
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 0.5rem;
}
.plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(3.4rem, auto) 1fr auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: 0 4px 18px rgba(11, 42, 74, 0.05);
}
.plan-card-featured {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, #0d5a63 130%);
  border-color: var(--navy);
  color: #d7e6f2;
  box-shadow: var(--shadow);
}
.plan-badge {
  position: absolute;
  top: -0.85rem;
  right: 1.75rem;
  background: var(--teal-bright);
  color: #06283f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin: 0;
}
body.lang-zh .plan-badge { letter-spacing: 0; }
.plan-name { font-size: 1.45rem; margin: 0 0 0.4rem; }
.plan-card-featured .plan-name { color: #fff; }
.plan-for { color: var(--muted); font-size: var(--fs-small); margin: 0; line-height: 1.55; }
.plan-card-featured .plan-for { color: #a9c6da; }
.plan-price {
  font-size: clamp(1.85rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  margin: 1.1rem 0 0.4rem;
  align-self: start;
}
.plan-card-featured .plan-price { color: #fff; }
/* The quote fallback is styled as deliberately as a price. */
.plan-price-quote {
  color: var(--teal);
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
}
.plan-card-featured .plan-price-quote { color: var(--teal-bright); }
.plan-features {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
}
.plan-features li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.7rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: 0; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0.1rem;
  color: var(--teal);
  font-weight: 700;
}
.plan-card-featured .plan-features li { border-top-color: rgba(255, 255, 255, 0.16); }
.plan-card-featured .plan-features li::before { color: var(--teal-bright); }
.plan-cta { width: 100%; padding-block: 0.95rem; font-size: 1.02rem; }
.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 46rem;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.65;
  text-align: left;
}
.secure-note .icon { margin-top: 0.2rem; }

/* --- Contact ------------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}
.contact-info h2, .contact-form-wrap h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  margin: 0 0 1.4rem;
}
.contact-line {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0 0 1.3rem;
  line-height: 1.65;
}
.contact-line .icon { margin-top: 0.25rem; }
.contact-line strong { color: var(--ink); }
.location-art {
  margin-top: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.location-art svg { display: block; width: 100%; height: auto; }
.location-art .map-road { fill: none; stroke: #b9cbd9; stroke-width: 7; stroke-linecap: round; }
.location-art .map-water { fill: #cfe8e8; }
.location-art .map-pin { fill: var(--teal); }
.location-art .map-pin-ring { fill: none; stroke: var(--teal); stroke-width: 1.6; opacity: 0.55; }
.location-art .map-pin-dot { fill: #fff; }
.contact-note { color: var(--muted); font-size: var(--fs-small); margin-top: 0.9rem; }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: 0 4px 18px rgba(11, 42, 74, 0.05);
}
.form-field { margin-bottom: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 0.45rem;
  line-height: 1.45;
}
.form-field .required { color: var(--teal); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: #fbfcfd;
  border: 1.5px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem 0.95rem;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(14, 159, 159, 0.45);
  outline-offset: 1px;
  border-color: var(--teal);
  background: #fff;
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: var(--fs-small); margin: 0.45rem 0 0; line-height: 1.5; }
.btn-submit { width: 100%; padding-block: 0.95rem; }
.form-note { color: var(--muted); font-size: var(--fs-small); margin: 1rem 0 0; line-height: 1.6; }

/* --- Footer ---------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #c9dcea;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 1.1fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
.footer-name { color: #fff; font-weight: 800; font-size: 1.1rem; margin: 0 0 0.2rem; letter-spacing: -0.01em; }
.footer-name-zh { color: #9fb9cf; margin: 0 0 1rem; font-size: 0.98rem; }
.footer-desc { line-height: 1.7; margin: 0; max-width: 40ch; }
.footer-heading {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
body.lang-zh .footer-heading { letter-spacing: 0; }
.footer-col a { color: #c9dcea; text-decoration: none; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-col > a { display: block; margin-bottom: 0.6rem; line-height: 1.5; }
.footer-line {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
  line-height: 1.6;
}
.footer-line .icon { color: var(--teal-bright); margin-top: 0.28rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.4rem 1.6rem;
}
.footer-bottom p { margin: 0; font-size: var(--fs-small); color: #8fa9bf; }

/* --- Scroll reveal (JS-gated so no-JS visitors still see everything) ------- */
html.anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.anim .reveal.visible { opacity: 1; transform: none; }

/* --- Responsive ------------------------------------------------------------------ */
@media (max-width: 64rem) {
  .main-nav { gap: 1.1rem; }
  .brand-tag { display: none; }
}
@media (max-width: 54rem) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.5rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { text-align: center; margin-top: 0.9rem; border-bottom: 0; }
  .lang-switch { padding-top: 0.9rem; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pricing-grid { grid-template-columns: minmax(0, 33rem); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 34rem) {
  .container { width: calc(100% - 2.5rem); }
  .plan-card, .contact-form-wrap { padding: 1.6rem; }
  .service-row { grid-template-columns: 1fr; gap: 1rem; }
  .info-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.anim .reveal { opacity: 1; transform: none; }
}

/* Contact page: portrait panel level with the form, details below */
.contact-top { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 2.5rem; align-items: stretch; }
.portrait-card { display: flex; flex-direction: column; margin: 0; min-height: 26rem; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 36px -22px rgba(10, 42, 74, 0.45); background: var(--navy); }
.portrait-media { position: relative; flex: 0 0 60%; min-height: 0; }
.portrait-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; display: block; }
.portrait-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.35rem 1.5rem 1.1rem; color: #fff; }
.portrait-body h3 { color: #fff; font-size: 1.45rem; line-height: 1.35; margin: 0 0 0.55rem; }
.portrait-body p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 1rem; line-height: 1.7; }
.portrait-card figcaption { display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 1.5rem 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.66); font-size: 0.8rem; letter-spacing: 0.06em; }
.portrait-card figcaption::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--teal); flex: none; }
.contact-details { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2.25rem; }
.details-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 1rem 2.5rem; margin-top: 1.25rem; }
.details-row .contact-line { margin: 0; }
.contact-human { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
@media (max-width: 54rem) {
  .contact-top { grid-template-columns: 1fr; }
  .portrait-card { min-height: 0; }
  .portrait-media { flex: none; height: 19rem; }
  .details-row { grid-template-columns: 1fr; }
}
