/* =====================================================================
   JOuBusiness — Design System
   Hong Kong company formation & management
   Brand blue sampled from logo icon: #00478D
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root{
  /* --- Brand & palette --- */
  --blue:        #00478D;   /* logo blue — primary */
  --blue-700:    #0A3A6E;   /* hover / deeper */
  --blue-900:    #062C55;   /* deepest blue */
  --navy:        #07203B;   /* dark sections */
  --navy-deep:   #051427;   /* darkest ink panels */
  --sky:         #4DA3E0;   /* light-blue accent (on dark) */
  --cyan:        #1597AC;   /* refined teal accent */
  --amber:       #E07B2E;   /* conversion CTA accent (refined orange) */
  --amber-700:   #C5661B;

  --ink:         #0C1B2E;   /* primary text */
  --muted:       #54657C;   /* secondary text */
  --faint:       #8493A6;   /* tertiary / captions */

  --paper:       #FFFFFF;
  --mist:        #F1F5FA;   /* cool light section bg */
  --mist-2:      #E8EFF7;
  --line:        #DCE5F0;   /* hairlines / borders */
  --line-soft:   #EAF0F7;

  /* --- Type --- */
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body:    'Manrope', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  /* --- Radii --- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* --- Shadows --- */
  --sh-1: 0 1px 2px rgba(7,32,59,.05), 0 2px 8px rgba(7,32,59,.05);
  --sh-2: 0 4px 14px rgba(7,32,59,.08), 0 12px 34px rgba(7,32,59,.07);
  --sh-3: 0 18px 50px rgba(7,32,59,.16);

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------------------------------------------------------------- reset */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--body);
  font-size:17px;
  line-height:1.65;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:var(--blue); text-decoration:none; }
a:hover{ color:var(--blue-700); }
h1,h2,h3,h4,h5{ font-family:var(--display); color:var(--ink); margin:0; line-height:1.12; letter-spacing:-.02em; font-weight:800; text-wrap:balance; }
p{ margin:0; text-wrap:pretty; }
button{ font-family:inherit; }

/* ---------------------------------------------------------- typography */
.h-display{ font-size:clamp(2.6rem, 6vw, 4.4rem); }
.h1{ font-size:clamp(2.1rem, 4.4vw, 3.3rem); }
.h2{ font-size:clamp(1.7rem, 3.2vw, 2.5rem); }
.h3{ font-size:clamp(1.25rem, 2vw, 1.55rem); font-weight:700; }
.lede{ font-size:clamp(1.1rem,1.5vw,1.32rem); line-height:1.55; color:var(--muted); font-weight:500; }
.eyebrow{
  font-family:var(--mono); text-transform:uppercase; letter-spacing:.18em;
  font-size:.74rem; font-weight:700; color:var(--cyan);
  display:inline-flex; align-items:center; gap:.55em;
}
.eyebrow::before{ content:""; width:26px; height:2px; background:var(--cyan); display:inline-block; }
.eyebrow.on-dark{ color:var(--sky); }
.eyebrow.on-dark::before{ background:var(--sky); }
.muted{ color:var(--muted); }

/* -------------------------------------------------------------- layout */
.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter); }
.wrap-wide{ max-width:1340px; margin:0 auto; padding-inline:var(--gutter); }
section{ position:relative; }
.section{ padding-block:clamp(64px,9vw,118px); }
.section-sm{ padding-block:clamp(48px,6vw,76px); }
.bg-mist{ background:var(--mist); }
.bg-navy{ background:var(--navy); color:#E7EEF7; }
.bg-navy h1,.bg-navy h2,.bg-navy h3,.bg-navy h4{ color:#fff; }
.bg-blue{ background:var(--blue); color:#EAF2FB; }
.bg-blue h1,.bg-blue h2,.bg-blue h3{ color:#fff; }

.grid{ display:grid; gap:clamp(20px,2.4vw,32px); }
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:940px){ .cols-3,.cols-4{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:620px){ .cols-2,.cols-3,.cols-4{ grid-template-columns:1fr; } }
@media(max-width:860px){ .hero-grid{ grid-template-columns:1fr !important; } }

/* -------------------------------------------------------------- buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.6em;
  font-family:var(--display); font-weight:700; font-size:1rem;
  padding:.95em 1.6em; border-radius:var(--r-sm); border:1.5px solid transparent;
  cursor:pointer; transition:.18s ease; white-space:nowrap; line-height:1;
}
.btn svg{ width:1.05em; height:1.05em; }
.btn-primary{ background:var(--blue); color:#fff; box-shadow:0 8px 22px rgba(0,71,141,.28); }
.btn-primary:hover{ background:var(--blue-700); color:#fff; transform:translateY(-1px); box-shadow:0 12px 28px rgba(0,71,141,.34); }
.btn-cta{ background:var(--amber); color:#fff; box-shadow:0 8px 22px rgba(224,123,46,.32); }
.btn-cta:hover{ background:var(--amber-700); color:#fff; transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--blue); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--blue); background:var(--mist); color:var(--blue); }
.btn-ghost.on-dark{ color:#fff; border-color:rgba(255,255,255,.32); }
.btn-ghost.on-dark:hover{ background:rgba(255,255,255,.1); border-color:#fff; color:#fff; }
.btn-lg{ padding:1.1em 2em; font-size:1.06rem; }
.btn-block{ width:100%; }

/* --------------------------------------------------------------- chips */
.chip{
  display:inline-flex; align-items:center; gap:.5em;
  font-size:.84rem; font-weight:600; color:var(--blue);
  background:var(--mist-2); padding:.42em .85em; border-radius:var(--r-pill);
}
.chip svg{ width:1.05em; height:1.05em; }

/* --------------------------------------------------------------- cards */
.card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:clamp(22px,2.6vw,34px); transition:.2s ease;
}
.card-hover:hover{ border-color:var(--mist-2); box-shadow:var(--sh-2); transform:translateY(-3px); }

/* service icon tile */
.ico{
  width:54px; height:54px; border-radius:14px; display:grid; place-items:center;
  background:linear-gradient(150deg, #E8F1FB, #DCEBFa); color:var(--blue); flex:none;
}
.ico svg{ width:26px; height:26px; }
.ico.amber{ background:linear-gradient(150deg,#FBEEDF,#F8E4CF); color:var(--amber-700); }
.ico.cyan{ background:linear-gradient(150deg,#DEF1F4,#D0EAEE); color:var(--cyan); }

/* underline accent used on existing cards */
.accent-bar{ height:3px; width:46px; background:var(--amber); border-radius:2px; margin-top:18px; }

/* --------------------------------------------------------- image slots */
.imgph{
  position:relative; border-radius:var(--r-lg); overflow:hidden;
  background:
    repeating-linear-gradient(135deg, #E9EFF7 0 14px, #F3F7FC 14px 28px);
  border:1px solid var(--line);
  display:grid; place-items:center; min-height:220px; color:var(--faint);
}
.imgph::after{
  content:attr(data-label); font-family:var(--mono); font-size:.78rem;
  letter-spacing:.02em; color:#6b7d93; text-align:center; padding:14px 18px;
  max-width:84%; line-height:1.5;
}
.imgph .tag{
  position:absolute; top:12px; left:12px; font-family:var(--mono); font-size:.64rem;
  letter-spacing:.12em; text-transform:uppercase; color:#fff; background:rgba(7,32,59,.62);
  padding:.35em .7em; border-radius:6px;
}
.imgph.on-navy{
  background:repeating-linear-gradient(135deg,#0d2c4e 0 14px,#103458 14px 28px);
  border-color:rgba(255,255,255,.12);
}
.imgph.on-navy::after{ color:#9cb6d4; }

/* --------------------------------------------------------------- stats */
.stat{ }
.stat .num{ font-family:var(--display); font-weight:800; font-size:clamp(2.2rem,4vw,3rem); color:var(--blue); line-height:1; letter-spacing:-.03em; }
.bg-navy .stat .num,.bg-blue .stat .num{ color:#fff; }
.stat .lbl{ color:var(--muted); font-size:.95rem; margin-top:.5em; font-weight:500; }
.bg-navy .stat .lbl{ color:#9fb4cc; }

/* --------------------------------------------------- header / navbar */
.nav{
  position:sticky; top:0; z-index:50; background:rgba(255,255,255,.86);
  backdrop-filter:saturate(150%) blur(14px); border-bottom:1px solid var(--line-soft);
}
.nav-inner{ display:flex; align-items:center; gap:28px; height:74px; }
.nav .logo img{ height:30px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:28px; margin-left:auto; }
.nav-links a{ font-weight:600; color:var(--ink); font-size:.96rem; }
.nav-links a:hover{ color:var(--blue); }
.nav-links .has-sub{ display:inline-flex; align-items:center; gap:.3em; }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-burger{ display:none; background:none; border:0; cursor:pointer; padding:6px; }
@media(max-width:980px){
  .nav-links{ display:none; }
  .nav-burger{ display:block; margin-left:auto; }
}

/* --------------------------------------------------------------- footer */
.footer{ background:var(--navy-deep); color:#9fb4cc; padding-block:64px 30px; }
.footer h4{ color:#fff; font-size:1rem; margin-bottom:16px; font-family:var(--display); letter-spacing:.01em; }
.footer a{ color:#bcccdf; }
.footer a:hover{ color:#fff; }
.footer .logo img{ height:30px; margin-bottom:18px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1.3fr; gap:40px; }
@media(max-width:760px){ .footer-grid{ grid-template-columns:1fr; gap:32px; } }
.footer-bot{ border-top:1px solid rgba(255,255,255,.1); margin-top:46px; padding-top:22px; display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; font-size:.86rem; color:#7e94ad; }
.footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.footer ul a{ font-size:.95rem; }

/* ------------------------------------------------------------ FAQ */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:22px 4px; font-family:var(--display); font-weight:700; font-size:1.08rem; color:var(--ink);
}
.faq-q .pm{ flex:none; width:26px; height:26px; border-radius:50%; border:1.5px solid var(--line); display:grid; place-items:center; transition:.2s; color:var(--blue); }
.faq-item.open .faq-q .pm{ background:var(--blue); border-color:var(--blue); color:#fff; transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a > div{ padding:0 4px 22px; color:var(--muted); max-width:80ch; }

/* ------------------------------------------------------------ misc */
.divider{ height:1px; background:var(--line); border:0; }
.center{ text-align:center; }
.mx-auto{ margin-inline:auto; }
.tick{ color:var(--amber); flex:none; }
.list-check{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.list-check li{ display:flex; gap:12px; align-items:flex-start; }
.list-check li svg{ width:22px; height:22px; margin-top:2px; }
@keyframes revealAuto{ to{ opacity:1; transform:none; } }
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; animation:revealAuto .01s linear 1.4s forwards; }
.reveal.in{ opacity:1; transform:none; animation:none; }

::selection{ background:var(--blue); color:#fff; }

/* ====================================================== FAPI order form */
.fapi{ background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-2); }
.fapi-sec{ background:var(--blue); color:#fff; font-family:var(--display); font-weight:700; font-size:1.02rem; text-align:center; padding:14px 18px; letter-spacing:.01em; }
.fapi-sec.red{ background:#D6342B; }
.fapi-body{ padding:clamp(18px,2.4vw,28px); }
.fapi-row{ display:flex; align-items:flex-start; gap:14px; padding:15px 4px; border-bottom:1px solid var(--line-soft); }
.fapi-row:last-child{ border-bottom:0; }
.fapi-check{ width:22px; height:22px; border-radius:6px; border:1.5px solid var(--line); flex:none; margin-top:1px; display:grid; place-items:center; background:#fff; }
.fapi-check.on{ background:var(--blue); border-color:var(--blue); }
.fapi-check.on svg{ display:block; }
.fapi-check svg{ display:none; width:14px; height:14px; }
.fapi-item-name{ flex:1; font-weight:500; font-size:.98rem; }
.fapi-price{ font-family:var(--display); font-weight:700; white-space:nowrap; }
.fapi-special{ border:2px dashed #D6342B; border-radius:var(--r); background:#FFF7E0; padding:16px 18px; display:flex; gap:14px; align-items:flex-start; }
.fapi-field{ margin-bottom:16px; }
.fapi-field label{ display:block; font-size:.86rem; font-weight:600; color:var(--muted); margin-bottom:7px; }
.fapi-input{ width:100%; border:1.5px solid var(--line); border-radius:var(--r-sm); padding:12px 14px; font-family:var(--body); font-size:1rem; color:var(--ink); background:#fff; transition:.15s; }
.fapi-input:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,71,141,.12); }
.fapi-pay{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:520px){ .fapi-pay{ grid-template-columns:1fr; } }
.fapi-paybox{ border:1.5px solid var(--line); border-radius:var(--r-sm); padding:18px; text-align:center; font-weight:600; cursor:pointer; transition:.15s; }
.fapi-paybox.on{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,71,141,.12); background:#F7FAFE; }
.fapi-summary{ display:flex; justify-content:space-between; align-items:baseline; padding:6px 0; }
.fapi-summary .big{ font-family:var(--display); font-weight:800; font-size:1.5rem; color:var(--blue); }

/* ========================================================= article prose */
.prose{ font-size:1.12rem; line-height:1.75; color:#22364D; }
.prose > * + *{ margin-top:1.25em; }
.prose h2{ font-size:clamp(1.5rem,2.6vw,2rem); margin-top:1.8em; }
.prose h3{ font-size:1.3rem; font-weight:700; margin-top:1.6em; }
.prose p{ color:#3A4B61; }
.prose a{ color:var(--blue); font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--mist-2); }
.prose a:hover{ text-decoration-color:var(--blue); }
.prose strong{ color:var(--ink); font-weight:700; }
.prose ul,.prose ol{ padding-left:1.3em; color:#3A4B61; }
.prose li{ margin-top:.55em; }
.prose ul li::marker{ color:var(--blue); }
.prose blockquote{ border-left:4px solid var(--cyan); background:var(--mist); border-radius:0 var(--r-sm) var(--r-sm) 0; padding:18px 22px; margin:1.6em 0; font-weight:600; color:var(--ink); }
.prose img,.prose .imgph{ border-radius:var(--r); margin:1.6em 0; }
