/* Ansible homepage and HK scheme pages — original stylesheet.
   Layout follows a simple visa-site pattern (header over banner, benefits, cards, steps, contact).
   No third-party CSS, icon fonts, or webfont CDNs. */
:root {
  --ink: #2c3350;
  --muted: #5c6480;
  --navy: #1b2438;
  --header: rgba(16, 22, 38, 0.58);
  --cta: #d67a28;
  --cta-hover: #c46a1c;
  --line: #e4e7f0;
  --wash: #f3f5fa;
  --paper: #ffffff;
  --max: 1120px;
  --radius: 4px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  font-family: "Noto Sans CJK SC", "Noto Sans CJK HK", "PingFang SC", "PingFang HK",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", system-ui, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  background: var(--paper);
}
html[lang="zh-HK"], html[lang="zh-HK"] body {
  font-family: "Noto Sans CJK HK", "Noto Sans CJK TC", "PingFang HK", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans", system-ui, sans-serif;
}
html[lang="en"], html[lang="en"] body {
  font-family: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cta); }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20000; }

/* Header — over the banner, like a typical visa-site masthead */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header);
  color: #fff;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  flex: 0 0 auto;
  line-height: 1.15;
}
.logo a { color: #fff; display: block; }
.logo a:hover { color: #fff; opacity: 0.9; }
.logo .cn {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.logo .en {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.85;
  font-weight: 500;
}
.nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 40px;
}
.nav-item { position: relative; }
.nav-item > a, .nav-item > button.nav-btn {
  display: block;
  background: none;
  border: 0;
  color: #fff;
  padding: 24px 12px;
  cursor: pointer;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nav-item > a:hover, .nav-item > button.nav-btn:hover,
.nav-item:hover > a, .nav-item:hover > button.nav-btn { color: #fff; opacity: 0.8; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(16, 22, 38, 0.16);
  padding: 10px 0;
  z-index: 20;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu { display: block; }
.submenu a {
  display: block;
  padding: 10px 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}
.submenu a:hover { background: var(--wash); color: var(--ink); }
.submenu a .sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}
.lang button {
  background: none;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px 2px;
}
.lang button[aria-current="true"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.lang .sep { user-select: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 36px;
  padding: 0 16px;
  border-radius: 20px;
  border: 2px solid var(--cta);
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.06em;
}
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--cta);
}
.btn-ghost:hover { background: var(--cta); color: #fff; }
.hamburger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 6px 8px;
}

/* Banner */
.hero, .page-banner {
  position: relative;
  min-height: 520px;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-banner { min-height: 360px; }
.hero img, .page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after, .page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16,22,38,0.25), rgba(16,22,38,0.45) 55%, rgba(16,22,38,0.55));
}
.hero-copy, .page-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 120px 24px 72px;
}
.hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-shadow: 0 1px 12px rgba(0,0,0,0.25);
}
.page-banner h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.page-banner .aka {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.16em;
  opacity: 0.92;
}

/* Benefits */
.benefits {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.benefit h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.benefit p { color: var(--muted); font-size: 14px; }

/* Services */
.section {
  padding: 48px 24px 64px;
}
.section-label {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
}
.service-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.card {
  width: calc(33.333% - 16px);
  min-width: 260px;
  max-width: 360px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card .body { padding: 18px 18px 16px; flex: 1; }
.card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.card .aka {
  font-size: 13px;
  opacity: 0.75;
  margin: 4px 0 10px;
  letter-spacing: 0.08em;
}
.card p { font-size: 13px; line-height: 1.6; opacity: 0.92; }
.card .cta-row {
  margin-top: 14px;
  height: 44px;
  display: flex;
  align-items: stretch;
}
.card .cta-row a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
}
.card .cta-row a:hover { background: var(--cta-hover); color: #fff; }

/* Steps */
.steps-wrap { background: var(--wash); }
.steps {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step { text-align: center; padding: 8px 8px 0; }
.step .num {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); }

/* Contact bar */
.contact-bar {
  background: var(--wash);
  text-align: center;
  padding: 64px 24px;
}
.contact-bar p {
  max-width: 640px;
  margin: 0 auto 20px;
  font-size: 16px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.88);
  padding: 48px 24px 24px;
  font-size: 14px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .cn { font-weight: 700; letter-spacing: 0.08em; }
.footer-brand .en { font-size: 12px; letter-spacing: 0.12em; opacity: 0.8; margin: 4px 0 12px; }
.footer-brand p, .site-footer address { font-style: normal; line-height: 1.7; opacity: 0.88; }
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 700;
}
.site-footer ul { list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: rgba(255,255,255,0.88); }
.site-footer a:hover { color: #fff; }
.legal-note {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.75;
}
.credits {
  max-width: var(--max);
  margin: 12px auto 0;
  font-size: 12px;
  opacity: 0.65;
}
.copy {
  max-width: var(--max);
  margin: 16px auto 0;
  font-size: 12px;
  opacity: 0.55;
}

/* Service / contact pages */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 16px;
}
.prose .lead { font-size: 16px; margin-bottom: 8px; }
.block {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 8px;
}
.block h2 {
  font-size: 18px;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-align: center;
}
.block ul { padding-left: 1.2em; color: var(--ink); }
.block li { margin: 8px 0; }
.contact-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-details h1 { font-size: 28px; letter-spacing: 0.12em; margin-bottom: 20px; }
.contact-details h2 { font-size: 16px; margin: 18px 0 4px; }
.contact-details p { color: var(--muted); }

/* Modal form */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16,22,38,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  padding: 32px 28px 28px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.modal-card h3 { font-size: 18px; margin-bottom: 20px; text-align: center; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin: 8px 0 16px; }
.form-msg { margin-top: 12px; font-size: 14px; color: var(--ink); }

/* Mobile */
@media (max-width: 840px) {
  .hamburger { display: block; }
  .nav, .lang { display: none; }
  body.menu-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #161c2c;
    margin: 0;
    padding: 8px 0 16px;
    gap: 0;
  }
  body.menu-open .nav-item > a,
  body.menu-open .nav-item > button.nav-btn { padding: 14px 24px; text-align: left; width: 100%; }
  body.menu-open .submenu {
    position: static;
    display: block;
    background: transparent;
    color: #fff;
    box-shadow: none;
    padding: 0 0 8px 16px;
  }
  body.menu-open .submenu a { color: rgba(255,255,255,0.85); }
  body.menu-open .submenu a .sub { color: rgba(255,255,255,0.5); }
  body.menu-open .lang {
    display: flex;
    position: absolute;
    top: 22px;
    right: 108px;
    color: #fff;
  }
  .hero { min-height: 440px; }
  .hero-copy { padding: 100px 20px 56px; }
  .benefits, .steps { grid-template-columns: 1fr 1fr; }
  .card { width: calc(50% - 12px); }
  .footer-grid, .contact-page { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .benefits, .steps { grid-template-columns: 1fr; }
  .card { width: 100%; max-width: none; }
  .header-inner { padding: 0 12px; }
  .logo .cn { font-size: 16px; }
}

.contact-details a { text-decoration: underline; text-underline-offset: 3px; }
.footer-brand a { text-decoration: underline; text-underline-offset: 2px; }
