/* Ferrohk — Flexi XM HK Landing
   Breakpoints: mobile ≤767px | tablet 768–1023px | desktop ≥1024px */

:root {
  --navy: #0c2c55;
  --navy-dark: #081f3d;
  --orange: #f69235;
  --orange-soft: #fff4e8;
  --accent: #6367ff;
  --green-dot: #26ae5d;
  --text: #000000;
  --muted: #54595f;
  --border: #e4e8f4;
  --bg: #ffffff;
  --bg-soft: #f8f9fc;
  --bg-stats: #f8f9fc;
  --tag-ft-bg: #e8f0ff;
  --tag-ft-text: #2563eb;
  --tag-pt-bg: #e6f8ef;
  --tag-pt-text: #16a34a;
  --tag-fl-bg: #f0ebff;
  --tag-fl-text: #7c3aed;
  --tag-ct-bg: #fff3e0;
  --tag-ct-text: #d97706;
  --tag-sh-bg: #f3f4f6;
  --tag-sh-text: #54595f;
  --max: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(12, 44, 85, 0.06);
  --font: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --font-count: "Inter", system-ui, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --space: 1.25rem;
  /* Figma Header 211:2524 is 53px tall */
  --header-h: 53px;
}

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

html {
  scroll-behavior: smooth;
  /* Offset hash targets under the sticky overlay header */
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.wrap {
  width: min(100% - (var(--space) * 2), var(--max));
  margin-inline: auto;
}

/* ── Logo ───────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 99px;
  height: 32px;
  object-fit: contain;
}

.logo-light img {
  width: 148px;
  height: 48px;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  border: none;
  font-family: var(--font);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1;
  border-radius: 6px;
}

/* Figma job-card Button 194:9514 — 142×44 */
.job-apply {
  gap: 10px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  min-height: 44px;
}

.job-apply .job-apply-arrow {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fff;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  line-height: 1;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  font-weight: var(--fw-regular);
  font-size: 16px;
  line-height: 1.5;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  gap: 0.55rem;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
}

.btn-ghost:hover {
  border-color: #c9d2e0;
}

/* Figma Job Section load-more I177:8419;171:650 */
.btn-load-more {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 10px 24px;
  gap: 10px;
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

.btn-load-more:hover {
  background: var(--bg-soft);
  transform: none;
}

.btn-load-more .load-more-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--navy);
}

.btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: auto;
  padding: 2px 6px;
  border-radius: 50px;
  background: rgba(32, 41, 69, 0.15);
  color: #202945;
  font-size: 12px;
  font-weight: var(--fw-regular);
  line-height: 14px;
}

/* ── Header (Figma 211:2524 — 1366×53) ──────────────── */
.site-header {
  /* Overlay hero (Figma: Header + Hero both at y=0; header paints on top) */
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: calc(-1 * var(--header-h));
}

.header-wrap {
  /* Figma: pl 84 / pr 64 on 1366 artboard — not the shared .wrap max */
  width: 100%;
  max-width: 1366px;
  margin-inline: auto;
  padding-left: clamp(1.25rem, 6.15vw, 84px);
  padding-right: clamp(1.25rem, 4.7vw, 64px);
}

.nav {
  /* 3-column grid keeps logo left, links true-center, CTA right (Figma Header) */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 53px;
  padding: 10px 0;
}

.nav .logo {
  justify-self: start;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  justify-self: center;
}

.nav-links a {
  color: #000;
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  letter-spacing: 0;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #000;
  opacity: 0.7;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  justify-self: end;
}

.btn-header {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1;
  min-width: 96px;
  background: var(--navy);
  color: #fff;
}

.btn-header:hover {
  background: var(--navy-dark);
  transform: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
}

.nav-mobile {
  display: none;
  padding: 0 0 1rem;
}

.nav-mobile.is-open {
  display: grid;
  gap: 0.15rem;
}

.nav-mobile a,
.nav-mobile button {
  appearance: none;
  background: none;
  border: none;
  display: block;
  padding: 0.85rem 0.4rem;
  text-align: left;
  font-family: var(--font);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid var(--border);
}

/* ── Hero (Figma node 6:1090 — 1366×676) ─────────────── */
/* Side photos sit past the artboard edges; .hero clips them — no sideways scroll */
.hero {
  /* length/length => unitless scale factor for transform: scale() */
  --hero-scale: calc(100vw / 1366px);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  height: calc(676px * var(--hero-scale));
  background: #fff;
}

.hero-stage {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1366px;
  height: 676px;
  transform: translateX(-50%) scale(var(--hero-scale));
  transform-origin: top center;
  overflow: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--navy);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

.hero-badge::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-dot);
}

/* Figma: content block centered in stage, pt 183 */
.hero-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 183px;
  width: 596px;
  transform: translateX(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  margin: 0;
  font-size: 54px;
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: 0;
  color: #000;
  white-space: nowrap;
}

.hero h1 .grad {
  background: linear-gradient(180deg, var(--navy) 11.5%, var(--accent) 78.5%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
  max-width: 584px;
}

.hero-cta {
  margin-top: 24px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  border-radius: 6px;
  gap: 14px;
}

.hero-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-photo {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.16);
}

.hero-photo-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
  pointer-events: none;
}

.hero-photo img {
  position: absolute;
  max-width: none !important;
  width: auto;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Exact Figma frame positions (nodes 75:2827–75:2832) + fill crops */
.hero-photo-1 {
  top: 30px;
  left: -29.5px;
  width: 205px;
  height: 273px;
}

.hero-photo-1 img {
  height: 100%;
  width: 199.73%;
  left: -58.89%;
  top: 0;
}

.hero-photo-2 {
  top: 327px;
  left: -48px;
  width: 263px;
  height: 327px;
}

.hero-photo-2 img {
  height: 145.2%;
  width: 120.5%;
  left: 18.17%;
  top: -38.61%;
}

/* Figma 75:2831 — top 17 sits under the overlay header; right overhangs -7 */
.hero-photo-3 {
  top: 17px;
  left: 1115px;
  right: -7px;
  width: auto;
  height: 199px;
}

.hero-photo-3 img {
  height: 100%;
  width: 115.47%;
  left: -7.62%;
  top: 0;
}

.hero-photo-4 {
  top: 253px;
  left: 1155px;
  right: -24px;
  width: auto;
  height: 355px;
}

.hero-photo-4 img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── Work types ─────────────────────────────────────── */
/* Figma 107:3748: 64px after hero; py 48; gap 64 title→cards */
.work-types {
  background: var(--bg-soft);
  margin-top: 64px;
  padding: 48px 0;
}

.section-title {
  margin: 0 0 64px;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 32px);
  font-weight: var(--fw-medium);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text);
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.type-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.05);
}

.type-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #edf0fb;
}

.type-icon img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.type-card h3 {
  margin: 0 0 0.35rem;
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text);
}

.type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

/* ── Jobs ───────────────────────────────────────────── */
/* Figma Landing: 110px gap before jobs; intro→list gap 64; title→copy 32 */
.jobs {
  margin-top: 110px;
  padding: 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.jobs-intro {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 64px;
}

.jobs-intro .section-title {
  margin-bottom: 32px;
}

.jobs-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

.jobs-layout {
  display: grid;
  grid-template-columns: 242px 1fr;
  gap: 3rem;
  align-items: start;
}

/*
  Stick the filter column under the header while the jobs grid row
  (as tall as the job list) is in view, then release.
*/
.job-filters-col {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 5;
  align-self: start;
  padding-top: 48px;
}

.job-filters-inner {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.job-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding: 40px 0;
  width: 222px;
  flex-shrink: 0;
  background: var(--bg);
}

.job-filters-separator {
  width: 1px;
  flex-shrink: 0;
  align-self: stretch;
  background: var(--border);
}

.job-filter {
  appearance: none;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  padding: 4px 24px 4px 10px;
  text-align: right;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--fw-regular);
  cursor: pointer;
  border-radius: 0;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
}

.job-filter .filter-count {
  font-family: var(--font-count);
  font-weight: var(--fw-regular);
  color: inherit;
}

.job-filter:hover {
  color: var(--orange);
}

.job-filter.is-active {
  color: var(--orange);
  border-left-color: var(--orange);
  font-weight: var(--fw-medium);
}

.job-filter.is-active .filter-count {
  color: var(--orange);
  font-weight: var(--fw-medium);
}

.jobs-main-label {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0;
}

.job-list {
  display: grid;
  gap: 1rem;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 32px;
}

.job-card[hidden] {
  display: none !important;
}

.jobs-more[hidden] {
  display: none !important;
}

.job-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 10px;
}

.job-card-top h3 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--fw-medium);
  color: #000;
  line-height: 1;
  letter-spacing: 0;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  letter-spacing: 0;
}

.tag-ft { background: rgba(65, 187, 231, 0.15); color: #66a6ea; }
.tag-pt { background: rgba(111, 207, 151, 0.15); color: #52c883; }
.tag-fl { background: rgba(99, 103, 255, 0.15); color: #8494ff; }
.tag-ct { background: var(--tag-ct-bg); color: var(--tag-ct-text); }
.tag-sh { background: var(--tag-sh-bg); color: var(--tag-sh-text); }

.job-desc {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.85);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

.job-meta {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #edf0fb;
  display: grid;
  gap: 10px;
}

.job-meta li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  letter-spacing: 0;
  margin: 0;
  padding: 0;
}

.job-meta .job-amt {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.job-meta svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 0.15rem;
  color: #9aa3b2;
}

/* Figma pay row: type + bold HKD + unit + settle, segments split by divider */
.job-pay-row {
  align-items: center;
  min-height: 20px;
}

.job-pay-row > svg,
.job-pay-icon {
  width: 14px;
  height: 10px;
  margin-top: 0;
  align-self: center;
}

.job-pay-segs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.job-pay-seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.job-pay-type {
  color: #54595f;
  font-size: 14px;
  line-height: 18px;
}

.job-pay-amt-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.job-pay-unit {
  color: #54595f;
  font-size: 14px;
  line-height: 18px;
}

.job-pay-settle {
  color: #54595f;
  font-size: 12px;
  line-height: 14px;
}

.job-pay-divider {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: #e4e8f4;
  flex-shrink: 0;
}

/* Figma: Remote + applicants on one row */
.job-meta-row {
  display: block;
  margin: 0;
  padding: 0;
}

.job-meta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #54595f;
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  white-space: nowrap;
}

.job-meta-item svg {
  width: 14px;
  height: 14px;
  margin-top: 0;
}

.jobs-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ── How it works ───────────────────────────────────── */
/* Figma 42:2023: 110px gap before; gap 64 title→steps */
.how {
  margin-top: 110px;
  padding: 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.how .section-title {
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.steps::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 16%;
  right: 16%;
  border-top: 1px dashed #adb5bd;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 2.5rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: none;
}

.step-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.step-1 .step-icon { background: #6367ff; }
.step-2 .step-icon { background: #2f55d4; }
.step-3 .step-icon { background: #f69235; }

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 20px;
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: 0;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

/* ── Stats ──────────────────────────────────────────── */
/* Figma 117:3998: 110px gap before; py 48; #f8f9fc + blurred map art */
.stats {
  position: relative;
  overflow: hidden;
  margin-top: 110px;
  padding: 48px 0;
  background: var(--bg-stats);
}

.stats-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/stats-bg.png") center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.02);
  pointer-events: none;
}

.stats .wrap {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 47px;
  text-align: center;
  max-width: 835px;
  margin-inline: auto;
}

.stat-num {
  display: block;
  font-family: var(--font-count);
  font-size: clamp(2rem, 4vw, 40px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #0c2c55 11.538%, #6367ff 78.49%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: rgba(0, 0, 0, 0.85);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

/* ── Reviews ────────────────────────────────────────── */
/* ── Reviews ────────────────────────────────────────── */
/* Figma 52:2229: 110px gap before; gap 64 title→cards */
.reviews {
  margin-top: 110px;
  padding: 0;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.reviews .section-title {
  margin-bottom: 64px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: #f5c518;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.review-card blockquote {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.review-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

.review-user img[src$="avatar-2.png"] {
  object-position: center 30%;
}

.review-user img[src$="avatar-3.png"] {
  object-position: center 35%;
}

.review-user strong {
  display: block;
  font-size: 16px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--navy);
}

.review-user span {
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  letter-spacing: 0;
}

/* ── Footer ─────────────────────────────────────────── */
/* Figma 145:5318: 110px gap before + pt 48; copyright pb 24 */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 110px;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 2.5rem;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  margin: 0 0 1.25rem;
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
  color: #c6ccd2;
  max-width: 28rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: 1.5;
  letter-spacing: 0;
}

.footer-meta,
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
  color: #c6ccd2;
}

.footer-meta svg {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.footer-nav a {
  color: #c6ccd2;
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  letter-spacing: 0;
  color: #c6ccd2;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ── Subpages ───────────────────────────────────────── */
/* Header overlays content; restore top clearance on pages without a hero collage */
.page-hero {
  padding: calc(var(--header-h) + 2.75rem) 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 32px;
  font-weight: var(--fw-medium);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--navy);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.prose {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 3rem;
}

.prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.thank-panel {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem 1.5rem;
  margin: calc(var(--header-h) + 1.5rem) 0 3.5rem;
}

.thank-panel h1 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.thank-panel p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* ── Apply modal ────────────────────────────────────── */
body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000; /* above sticky header (300) so dim layer covers everything */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 44, 85, 0.45);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92vh, 840px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(12, 44, 85, 0.22);
  padding: 1.75rem 1.6rem 1.4rem;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-close svg {
  width: 14px;
  height: 14px;
}

.modal-dialog h2 {
  margin: 0 2rem 1.25rem 0;
  font-size: 20px;
  font-weight: var(--fw-medium);
  line-height: 1;
  letter-spacing: 0;
  color: var(--navy);
}

.apply-form {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-label {
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 18px;
  letter-spacing: 0;
  color: var(--text);
}

.field-label .req {
  color: #e03131;
  margin-left: 0.1rem;
}

.field-label .optional {
  color: var(--muted);
  font-weight: var(--fw-regular);
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.apply-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2354595f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.apply-form input:focus,
.apply-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 103, 255, 0.12);
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.phone-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 103, 255, 0.12);
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.75rem;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  white-space: nowrap;
}

.flag-hk-img {
  flex-shrink: 0;
  border-radius: 2px;
}

.phone-field input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.captcha {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  min-width: 280px;
  margin: 0.15rem auto 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  background: #f9f9f9;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.captcha input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: #4285f4;
}

.captcha-label {
  font-size: 0.9rem;
  color: #222;
}

.captcha-brand {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  font-size: 0.62rem;
  color: #555;
  line-height: 1.2;
  text-align: center;
}

.captcha-brand small {
  font-size: 0.55rem;
  color: #777;
}

.captcha-img {
  object-fit: contain;
}

.apply-submit {
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  border-radius: 10px;
  margin-top: 0.15rem;
}

.apply-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.apply-note-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 767px) {
  :root { --space: 1rem; }

  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding: calc(var(--header-h) + 2.25rem) 1rem 2.5rem;
    overflow: visible;
  }

  .hero-stage {
    position: relative;
    left: auto;
    width: 100%;
    height: auto;
    transform: none;
  }

  .hero-collage {
    display: none;
  }

  .hero-center {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    white-space: normal;
  }

  .hero-cta {
    margin-top: 0;
  }

  .work-types {
    margin-top: 40px;
    padding: 40px 0;
  }

  .jobs,
  .how,
  .reviews {
    margin-top: 64px;
    padding: 0;
  }

  .stats {
    margin-top: 64px;
    padding: 40px 0;
  }

  .site-footer {
    margin-top: 64px;
  }

  .section-title,
  .how .section-title,
  .reviews .section-title {
    margin-bottom: 40px;
  }

  .jobs-intro {
    margin-bottom: 40px;
  }

  .jobs-intro .section-title {
    margin-bottom: 24px;
  }

  .type-grid,
  .review-grid,
  .stats-grid,
  .steps {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .steps::before {
    display: none;
  }

  .step-icon {
    margin-bottom: 0.75rem;
  }

  /* Filters on top; flex column so sticky spans the whole jobs section */
  .jobs-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }

  .job-filters-col {
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-h);
    z-index: 6;
    align-self: stretch;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px 0;
    background: var(--bg);
    box-shadow: 0 8px 16px -12px rgba(12, 44, 85, 0.18);
  }

  .job-filters-inner {
    display: block;
  }

  .job-filters-separator {
    display: none;
  }

  .job-filters {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .job-filter {
    flex-shrink: 0;
    border-left: none;
    border-radius: 999px;
    background: var(--bg-soft);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
  }

  .job-filter.is-active {
    border-left: none;
    background: var(--orange-soft);
    color: var(--orange);
  }

  .job-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .job-apply {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .modal {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 12px 12px;
    padding: 1.4rem 1.1rem 1.1rem;
  }

  .modal-dialog h2 {
    font-size: 1.05rem;
  }

  .captcha {
    min-width: 0;
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --space: 1.5rem; }

  .nav-links {
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  /* Tablet keeps scaled Figma stage (photos clip with artboard) */

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

  /* Filters on top; flex column so sticky spans the whole jobs section */
  .jobs-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
  }

  .job-filters-col {
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-h);
    z-index: 6;
    align-self: stretch;
    width: 100%;
    padding: 12px 0;
    background: var(--bg);
    box-shadow: 0 8px 16px -12px rgba(12, 44, 85, 0.18);
  }

  .job-filters-inner {
    display: block;
  }

  .job-filters-separator {
    display: none;
  }

  .job-filters {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding: 0;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .job-filter {
    flex-shrink: 0;
    border-left: none;
    border-radius: 999px;
    background: var(--bg-soft);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
  }

  .job-filter.is-active {
    border-left: none;
    background: var(--orange-soft);
    color: var(--orange);
  }

  .nav-links {
    gap: 1.5rem;
  }

  .steps {
    gap: 1rem;
  }

  .steps::before {
    left: 18%;
    right: 18%;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  :root { --space: 1.75rem; }

  .type-card:hover,
  .job-card:hover,
  .review-card:hover {
    box-shadow: var(--shadow);
  }
}
