:root {
  --navy: #0b1f3a;
  --blue: #153d66;
  --ink: #132033;
  --muted: #647084;
  --line: #dce3ea;
  --mist: #f4f7fa;
  --white: #ffffff;
  --gold: #c69a45;
  --gold-soft: #f3e6c7;
  --shadow: 0 18px 50px rgba(8, 26, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  background: var(--white);
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 234, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border: 2px solid rgba(198, 154, 69, 0.55);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 750;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #24364e;
  font-size: 15px;
  font-weight: 650;
}

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

.site-nav a:hover {
  color: var(--blue);
}

.language-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.language-toggle {
  min-width: 46px;
  height: 36px;
  border-radius: 999px;
  font-weight: 750;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 8px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 26, 48, 0.88) 0%, rgba(8, 26, 48, 0.72) 42%, rgba(8, 26, 48, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 26, 48, 0.2), rgba(8, 26, 48, 0.02));
}

.hero-content {
  width: min(760px, 100%);
  padding: clamp(72px, 12vw, 136px) clamp(20px, 6vw, 84px);
  color: var(--white);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.1vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--navy);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.button.dark-secondary {
  color: var(--navy);
  border-color: rgba(11, 31, 58, 0.22);
  background: var(--white);
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--blue);
  font-weight: 850;
  border-bottom: 1px solid rgba(21, 61, 102, 0.35);
}

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

.trust-band div {
  padding: 24px clamp(20px, 5vw, 72px);
  background: var(--white);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band strong {
  color: var(--navy);
  font-size: 18px;
}

.trust-band span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(68px, 10vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 84px);
  background: var(--mist);
}

.intro-copy {
  color: #31445f;
  font-size: 19px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(8, 26, 48, 0.06);
}

.service-card {
  min-height: 420px;
  padding: 28px 24px;
  border: 0;
  border-radius: 0;
  background: #dceaf3;
}

.line-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(21, 61, 102, 0.18);
  border-radius: 8px;
}

.line-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 16px;
  color: #31445f;
  font-size: 14px;
  line-height: 1.45;
}

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

.service-card p,
.steps p,
.faq p,
.about p,
.contact p,
.site-footer p {
  color: var(--muted);
}

.process {
  background: var(--navy);
}

.process .section-heading h2,
.process .steps strong {
  color: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.steps li {
  min-height: 230px;
  padding: 28px;
  background: #102b4c;
}

.steps li::before {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-weight: 850;
  content: "0" counter(list-item);
}

.steps p {
  color: rgba(255, 255, 255, 0.72);
}

.about {
  background: var(--mist);
}

.about-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: stretch;
}

.about-panel > div:first-child,
.credential-box {
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credential-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 5px solid var(--gold);
}

.credential-box span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.credential-box strong {
  margin: 12px 0;
  color: var(--navy);
  font-size: 32px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.page-hero {
  padding: clamp(70px, 10vw, 118px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 26, 48, 0.94), rgba(21, 61, 102, 0.88)),
    url("assets/hero-immigration.png") center / cover;
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.faq-page {
  display: grid;
  gap: 42px;
  background: var(--mist);
}

.faq-category {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.faq-category h2 {
  position: sticky;
  top: 110px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.faq-cta {
  background: var(--white);
}

.faq-cta h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
}

.faq-cta p {
  max-width: 680px;
  color: var(--muted);
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

summary {
  padding: 20px 22px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.contact {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(32px, 6vw, 78px);
  background: var(--mist);
}

.contact-actions {
  flex-direction: column;
  gap: 10px;
}

.contact-actions a,
.contact-actions span {
  width: fit-content;
  padding-bottom: 2px;
  color: var(--blue);
  border-bottom: 1px solid rgba(21, 61, 102, 0.35);
  font-weight: 750;
}

.wechat-card {
  width: min(260px, 100%);
  margin-top: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 26, 48, 0.08);
}

.wechat-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.wechat-card span {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(198, 154, 69, 0.22);
  border-color: var(--gold);
}

.intake-hero {
  padding-bottom: clamp(84px, 12vw, 140px);
}

.intake-section {
  background: var(--mist);
}

.intake-form {
  display: grid;
  gap: 22px;
  max-width: 1060px;
  margin: 0 auto;
}

.form-panel,
.consent-box {
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(8, 26, 48, 0.07);
}

.form-panel {
  display: grid;
  gap: 20px;
}

.application-type-panel {
  border-top: 5px solid var(--gold);
  box-shadow: 0 18px 44px rgba(8, 26, 48, 0.1);
}

.form-panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.field-grid,
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-panel label,
.consent-box label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 750;
}

.checkbox-grid label,
.consent-box label {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkbox-grid label {
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 3px 2px 0 0;
  accent-color: var(--gold);
}

.consent-box {
  color: var(--muted);
  box-shadow: none;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.radio-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--navy);
  font-weight: 750;
}

.radio-block > span {
  display: block;
}

.radio-block label {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: #31445f;
  font-weight: 650;
}

.declaration-grid {
  display: grid;
  gap: 16px;
}

.declaration-grid label {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.form-panel h3 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 20px;
}

.intake-submit {
  justify-self: start;
  min-width: 180px;
}

.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.submit-status {
  color: var(--muted);
  font-weight: 750;
}

.submit-status.is-success {
  color: #0f7a3b;
}

.submit-status.is-error {
  color: #b42318;
}

.is-hidden-by-type {
  display: none !important;
}

.repeatable-table {
  display: grid;
  gap: 10px;
}

.repeatable-table > span {
  color: var(--navy);
  font-weight: 750;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.repeatable-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.repeatable-table th {
  padding: 12px 14px;
  color: var(--navy);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  white-space: nowrap;
}

.repeatable-table td {
  padding: 8px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}

.repeatable-table td:last-child,
.repeatable-table th:last-child {
  width: 52px;
  border-right: 0;
}

.repeatable-table input {
  min-width: 130px;
  padding: 10px;
}

.add-row-button,
.remove-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a8ccff;
  border-radius: 6px;
  color: #0757d8;
  background: #eaf3ff;
  cursor: pointer;
  font-weight: 850;
}

.add-row-button {
  width: fit-content;
  min-height: 38px;
  padding: 8px 14px;
}

.add-row-button:hover {
  background: #cfe5ff;
}

.remove-row-button {
  width: 34px;
  height: 34px;
  padding: 0;
}

.hidden {
  display: none;
}

.site-footer {
  display: grid;
  gap: 6px;
  padding: 30px clamp(20px, 5vw, 72px);
  background: #07172b;
  color: var(--white);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 77px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .language-toggle {
    width: 100%;
    text-align: left;
  }

  .language-toggle {
    padding-left: 0;
    border: 0;
  }

  .intro,
  .about-panel,
  .contact,
  .faq-category,
  .field-grid,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .faq-category h2 {
    position: static;
  }

  .service-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 720px;
    align-items: flex-end;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(8, 26, 48, 0.92) 0%, rgba(8, 26, 48, 0.74) 58%, rgba(8, 26, 48, 0.2) 100%);
  }

  .hero-content {
    padding-top: 140px;
  }

  .trust-band,
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .service-card,
  .steps li {
    min-height: auto;
  }
}
