:root {
  --navy-950: #111934;
  --navy-900: #192449;
  --navy-800: #22345f;
  --navy-700: #2c4777;
  --blue-600: #2778b9;
  --cyan-500: #50b7cf;
  --lime-500: #a2d80d;
  --orange-500: #ff8a12;
  --orange-600: #e87500;
  --ink: #15213b;
  --muted: #61708a;
  --line: #dce5ef;
  --soft: #f3f7fb;
  --white: #ffffff;
  --shadow-sm: 0 10px 28px rgba(24, 48, 83, 0.08);
  --shadow-lg: 0 24px 70px rgba(17, 36, 67, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(80, 183, 207, 0.65);
  outline-offset: 3px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.utility-bar {
  color: #dce8f5;
  background: var(--navy-950);
  font-size: 0.84rem;
}

.utility-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch button {
  padding: 0;
  color: #aebbd0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.language-switch button.active {
  color: var(--white);
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(220, 229, 239, 0.9);
  box-shadow: 0 5px 22px rgba(17, 36, 67, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 310px;
  height: auto;
}

.primary-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.primary-nav a {
  position: relative;
  display: grid;
  align-items: center;
  padding: 0 14px;
  color: #34435d;
  font-size: 0.93rem;
  font-weight: 650;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--cyan-500), var(--orange-500));
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--navy-900);
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-toggle > span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("vancouver-hero.webp") center 52% / cover no-repeat;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 25, 54, 0.92) 0%, rgba(18, 42, 77, 0.77) 45%, rgba(17, 41, 72, 0.2) 76%),
    linear-gradient(0deg, rgba(16, 31, 57, 0.36), transparent 45%);
}

.hero-content {
  max-width: 700px;
  padding-block: 88px 132px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-500);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bfefff;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e8f0f8;
  font-size: clamp(1.04rem, 1.5vw, 1.25rem);
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  color: var(--white);
  background: var(--orange-500);
  border: 1px solid var(--orange-500);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(232, 117, 0, 0.22);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--orange-600);
  border-color: var(--orange-600);
  box-shadow: 0 14px 32px rgba(232, 117, 0, 0.3);
  transform: translateY(-2px);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.48);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.17);
}

.button.navy {
  background: var(--navy-800);
  border-color: var(--navy-800);
  box-shadow: none;
}

.button.navy:hover {
  background: var(--navy-950);
}

.button.ghost {
  color: var(--navy-800);
  background: transparent;
  border-color: #aebdd0;
  box-shadow: none;
}

.button.ghost:hover {
  color: var(--navy-950);
  background: #edf4fa;
  border-color: var(--navy-700);
}

.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.trust-item {
  min-height: 142px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 4px 14px;
  padding: 25px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-number {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--cyan-500);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.trust-item strong {
  color: var(--navy-900);
  font-size: 1.02rem;
}

.trust-item span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  padding-block: 94px;
}

.section.soft {
  background: var(--soft);
}

.section.navy-section {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(80, 183, 207, 0.19), transparent 28%),
    radial-gradient(circle at 8% 90%, rgba(162, 216, 13, 0.09), transparent 25%),
    var(--navy-950);
}

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

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.split-content h2,
.cta-panel h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.navy-section .section-heading h2,
.navy-section .section-heading p {
  color: var(--white);
}

.section-heading > p,
.split-content > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.info-card,
.contact-card {
  position: relative;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.service-card {
  min-height: 295px;
  display: flex;
  flex-direction: column;
  padding: 27px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--cyan-500), var(--lime-500), var(--orange-500));
  opacity: 0;
  transition: opacity 180ms ease;
}

.service-card:hover {
  border-color: #c7d6e6;
  box-shadow: 0 20px 45px rgba(24, 48, 83, 0.13);
  transform: translateY(-5px);
}

.service-card:hover::before {
  opacity: 1;
}

.card-code {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--navy-900);
  background: linear-gradient(145deg, #e7f8fc, #f7fbff);
  border: 1px solid #c8e8ef;
  border-radius: 14px;
  font-size: 0.87rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.service-card:nth-child(2) .card-code {
  background: #f1f9d9;
  border-color: #d9eaaa;
}

.service-card:nth-child(3) .card-code {
  background: #fff0df;
  border-color: #ffd4a4;
}

.service-card h3,
.info-card h3,
.contact-card h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.25rem;
  line-height: 1.35;
}

.service-card p,
.info-card p,
.contact-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue-600);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 150ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.split.reverse > :first-child {
  order: 2;
}

.statement-panel {
  position: relative;
  min-height: 470px;
  display: grid;
  align-content: end;
  padding: 38px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(25, 36, 73, 0.98), rgba(39, 91, 130, 0.92));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.statement-panel::before {
  position: absolute;
  width: 300px;
  height: 300px;
  top: -110px;
  right: -60px;
  content: "";
  background: rgba(80, 183, 207, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 42% 58% 63% 37%;
  transform: rotate(18deg);
}

.statement-panel::after {
  position: absolute;
  width: 190px;
  height: 190px;
  top: 80px;
  right: 68px;
  content: "";
  border: 34px solid rgba(162, 216, 13, 0.18);
  border-radius: 50%;
}

.statement-panel .mark-large {
  position: relative;
  z-index: 1;
  width: 96px;
  margin-bottom: auto;
}

.statement-panel blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  font-weight: 820;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.statement-panel cite {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: #d8e5f1;
  font-size: 0.91rem;
  font-style: normal;
}

.check-list,
.plain-list {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: #33425c;
}

.check-list li::before {
  position: absolute;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  top: 3px;
  left: 0;
  content: "✓";
  color: var(--navy-900);
  background: #e8f7bd;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.metric {
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.metric strong {
  display: block;
  color: var(--navy-900);
  font-size: 1.65rem;
  line-height: 1.2;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 46px 52px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(80, 183, 207, 0.18), transparent 45%),
    var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cta-panel p {
  margin: 10px 0 0;
  color: #d9e5f0;
}

.page-hero {
  position: relative;
  isolation: isolate;
  min-height: 355px;
  display: grid;
  align-items: end;
  padding-block: 78px 62px;
  color: var(--white);
  background: var(--navy-900);
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("vancouver-hero.webp") center 47% / cover no-repeat;
  opacity: 0.45;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(17, 25, 52, 0.98), rgba(25, 47, 79, 0.78) 58%, rgba(25, 47, 79, 0.38));
}

.page-hero .eyebrow {
  color: #bcecf6;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #e4edf7;
  font-size: 1.08rem;
}

.subnav {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.subnav .shell {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
}

.subnav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.subnav a:hover {
  color: var(--navy-900);
}

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

.info-card {
  padding: 30px;
}

.info-card .tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  color: var(--navy-700);
  background: #e8f7fb;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.info-card ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 18px 0 0;
  color: #3f4e68;
  list-style: none;
}

.info-card li {
  position: relative;
  padding-left: 18px;
}

.info-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--orange-500);
  content: "•";
  font-weight: 900;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  counter-increment: process;
}

.process-step::before {
  display: block;
  margin-bottom: 42px;
  color: #8cdded;
  content: "0" counter(process);
  font-size: 1.6rem;
  font-weight: 900;
}

.process-step h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.08rem;
}

.process-step p {
  margin: 9px 0 0;
  color: #c4d2e1;
  font-size: 0.92rem;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-card {
  padding: 34px;
}

.contact-card .office-label {
  display: inline-flex;
  margin-bottom: 17px;
  color: var(--blue-600);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 23px;
}

.contact-lines a,
.contact-lines span {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #35445e;
}

.contact-lines b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--navy-900);
  background: #e8f7fb;
  border-radius: 8px;
  font-size: 0.73rem;
}

.contact-lines a:hover {
  color: var(--blue-600);
}

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

.contact-actions .button {
  min-height: 44px;
  padding: 9px 15px;
  font-size: 0.9rem;
}

.notice {
  padding: 17px 20px;
  color: #5b4a14;
  background: #fff8dc;
  border: 1px solid #f2df9e;
  border-radius: 12px;
}

.notice strong {
  color: #403306;
}

.site-footer {
  color: #d5deea;
  background:
    radial-gradient(circle at 85% 20%, rgba(80, 183, 207, 0.12), transparent 27%),
    var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr 1fr;
  gap: 52px;
  padding-block: 64px 44px;
}

.footer-grid h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 0.96rem;
}

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand-lockup img {
  width: 48px;
  height: 48px;
}

.footer-brand-lockup strong,
.footer-brand-lockup span {
  display: block;
}

.footer-brand-lockup strong {
  color: var(--white);
  font-size: 1.1rem;
}

.footer-brand-lockup span {
  color: #aebad0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.footer-brand p {
  max-width: 320px;
  margin: 20px 0 0;
  color: #aebad0;
  font-size: 0.9rem;
}

.footer-links,
.site-footer address {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.footer-links a,
.site-footer address a,
.site-footer address span {
  color: #aebad0;
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer-links a:hover,
.site-footer address a:hover {
  color: var(--white);
}

.footer-bottom {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8292aa;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
}

/* CRS calculator */
.calculator-page {
  background: var(--soft);
}

.calculator-intro {
  padding-block: 48px 24px;
}

.calculator-intro h1 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.calculator-intro p {
  max-width: 800px;
  margin: 12px 0 0;
  color: var(--muted);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 26px;
  padding-bottom: 90px;
}

.calculator-form {
  display: grid;
  gap: 17px;
}

.form-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.form-section-header .step {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  background: var(--navy-800);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 850;
}

.form-section-header h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: 1.08rem;
}

.form-section-body {
  padding: 24px;
}

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

.form-grid.one {
  grid-template-columns: 1fr;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 7px;
  color: #34435c;
  font-size: 0.89rem;
  font-weight: 760;
}

.field small {
  display: block;
  margin-top: 6px;
  color: #7b879a;
  font-size: 0.76rem;
  line-height: 1.4;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c8d4e1;
  border-radius: 9px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(39, 120, 185, 0.12);
  outline: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: #4a5870;
  background: #f7f9fc;
  border: 1px solid #d8e1eb;
  border-radius: 9px;
  cursor: pointer;
}

.radio-pill input:checked + span {
  color: var(--navy-900);
  background: #e8f7fb;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 2px rgba(80, 183, 207, 0.11);
  font-weight: 760;
}

.language-box {
  padding: 19px;
  background: #f8fafc;
  border: 1px solid #dfe7ef;
  border-radius: 13px;
}

.language-box + .language-box {
  margin-top: 15px;
}

.language-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.language-box-header h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.98rem;
}

.benchmark-output {
  color: var(--blue-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-scores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 15px;
}

.spouse-section[hidden] {
  display: none;
}

.score-card {
  position: sticky;
  top: 104px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(80, 183, 207, 0.32), transparent 36%),
    var(--navy-950);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.score-total {
  padding: 32px 30px 26px;
  text-align: center;
}

.score-total span {
  display: block;
  color: #bed0e0;
  font-size: 0.84rem;
  font-weight: 700;
}

.score-total output {
  display: block;
  margin: 9px 0 2px;
  color: var(--white);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.score-total small {
  color: #91a5bc;
  font-size: 0.8rem;
}

.score-breakdown {
  padding: 10px 24px 23px;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.score-row span {
  color: #b9c7d8;
  font-size: 0.86rem;
}

.score-row strong {
  color: var(--white);
  font-size: 0.92rem;
}

.score-detail {
  padding: 0 24px 24px;
}

.score-detail details {
  color: #cbd7e4;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.score-detail summary {
  padding: 15px 0;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
}

.detail-list {
  display: grid;
  gap: 8px;
  padding-bottom: 15px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #aab9cb;
  font-size: 0.78rem;
}

.calculator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 24px 26px;
}

.calculator-actions button,
.calculator-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 760;
}

.calculator-actions a {
  color: var(--navy-950);
  background: var(--lime-500);
  border-color: var(--lime-500);
}

.validation-message {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  color: #7b3c00;
  background: #fff3e7;
  border: 1px solid #ffd5a6;
  border-radius: 8px;
  font-size: 0.82rem;
}

.validation-message.visible {
  display: block;
}

.calculator-disclaimer {
  padding: 18px 21px;
  color: #59677c;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.82rem;
}

.calculator-disclaimer a {
  color: var(--blue-600);
  text-decoration: underline;
}

@media (max-width: 1060px) {
  .brand img {
    width: 270px;
  }

  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.86rem;
  }

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

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 3;
  }

  .calculator-layout {
    grid-template-columns: minmax(0, 1fr) 315px;
  }
}

@media (max-width: 880px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 250px;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 35px rgba(17, 36, 67, 0.12);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    min-height: 47px;
    padding-inline: 10px;
    border-bottom: 1px solid #eef2f6;
  }

  .primary-nav a::after {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 0;
    width: 3px;
    height: auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(13, 25, 54, 0.92), rgba(18, 42, 77, 0.65));
  }

  .hero-content {
    padding-block: 76px 148px;
  }

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

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse > :first-child {
    order: initial;
  }

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

  .cta-panel {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .cta-panel .button-row {
    margin-top: 0;
  }

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

  .footer-grid > :last-child {
    grid-column: auto;
  }

  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .score-card {
    position: static;
    grid-row: 1;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 28px);
    --radius: 15px;
    --radius-lg: 20px;
  }

  .utility-inner {
    min-height: 34px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 216px;
  }

  .menu-toggle {
    width: 43px;
    height: 40px;
  }

  .hero {
    min-height: 640px;
  }

  .hero::before {
    background-position: 61% center;
  }

  .hero-content {
    padding-block: 65px 160px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

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

  .button {
    width: 100%;
  }

  .trust-strip {
    margin-top: -118px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 106px;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding-block: 70px;
  }

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

  .card-grid,
  .content-grid,
  .process-grid,
  .office-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 260px;
  }

  .statement-panel {
    min-height: 410px;
    padding: 28px;
  }

  .metric-grid {
    gap: 10px;
  }

  .metric {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: center;
  }

  .metric span {
    margin-top: 0;
  }

  .cta-panel {
    padding: 30px 25px;
  }

  .page-hero {
    min-height: 320px;
    padding-block: 56px 45px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 52px 38px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 17px;
  }

  .calculator-intro {
    padding-top: 36px;
  }

  .calculator-layout {
    padding-bottom: 65px;
  }

  .form-section-header,
  .form-section-body {
    padding: 19px;
  }

  .form-grid,
  .language-scores {
    grid-template-columns: 1fr;
  }

  .language-box {
    padding: 15px;
  }

  .language-box-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .score-total output {
    font-size: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
