/* ===========================================================
   AK SG CONSULTANCY SERVICES PTE. LTD.
   Bilingual corporate site — single stylesheet
   Palette: business blue / deep navy / white / light gray
   =========================================================== */

:root {
  --navy: #0b3d6e;
  --navy-deep: #0a2c4f;
  --blue: #1769c0;
  --blue-600: #1565c0;
  --blue-050: #eef4fb;
  --ink: #15233a;
  --body: #3c4a5e;
  --muted: #6b7a8d;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --dark: #0b2643;
  --dark-2: #0e2f53;
  --wa: #25d366;
  --wa-dark: #1da851;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 38, 67, 0.06);
  --shadow: 0 14px 40px rgba(15, 38, 67, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 38, 67, 0.16);
  --maxw: 1160px;
  --space: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html[lang="zh-CN"] body { font-family: "Noto Sans SC", "Inter", -apple-system, "Segoe UI", sans-serif; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad-y) 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1.6px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --pad-y: 10px; padding: 10px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(21, 101, 192, .28); }
.btn-primary:hover { background: var(--navy); box-shadow: 0 12px 26px rgba(21, 101, 192, .34); }

.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(11, 61, 110, .22); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-050); }

.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-whatsapp:hover { background: var(--wa-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s, background .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 9px 14px; font-size: 15px; font-weight: 500; color: var(--ink);
  border-radius: 8px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--blue); background: var(--blue-050); }
.nav-lang-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent; border: 1.5px solid var(--line); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: transparent; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #d8e4f1; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow.light { color: #6fb2f3; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-title {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.18; font-weight: 800; color: var(--ink);
  letter-spacing: -.02em; margin: 0 0 16px;
}
.section-title.light { color: #fff; }
.section-text { font-size: 17px; color: var(--body); margin: 0 0 14px; }
.section-text.center { text-align: center; }
.section-text.light { color: #aec4dc; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(23, 105, 192, .14), transparent 60%),
    radial-gradient(700px 480px at -6% 12%, rgba(11, 61, 110, .10), transparent 55%),
    linear-gradient(180deg, #f7fafe, #eef4fb);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center;
  padding: clamp(56px, 8vw, 96px) 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em;
  color: var(--ink); margin: 0 0 20px;
}
.hero-sub { font-size: 18px; color: var(--body); max-width: 620px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-tags li {
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  background: rgba(255, 255, 255, .8); border: 1px solid #dbe6f3; padding: 7px 14px; border-radius: 999px;
}

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
}
.hero-card-title { font-size: 21px; font-weight: 800; color: var(--ink); margin: 0; line-height: 1.3; }
.hero-card-text { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.hero-card-meta { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe0f3; }
.card-icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blue-050); color: var(--blue-600);
}
.card-icon svg { width: 27px; height: 27px; }
.card-title { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.card-text { font-size: 15px; color: var(--body); margin: 0; line-height: 1.65; }

/* ---------- Who We Serve ---------- */
.who-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.who-copy { position: sticky; top: 96px; }
.who-list { display: grid; gap: 14px; }
.who-list li {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px;
  font-size: 16px; color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm);
}
.who-check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-050); color: var(--blue-600);
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}

/* ---------- Why Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.why-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.why-ico svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.why-item p { font-size: 14.5px; color: var(--body); margin: 0; line-height: 1.6; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  position: relative; padding: 28px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
}
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-600); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step-title { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.step-text { font-size: 14px; color: #a9c2db; margin: 0; line-height: 1.6; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-visual-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--blue-600)); box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.about-badge {
  position: absolute; top: 18px; left: 18px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--navy);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.about-skyline {
  position: absolute; inset: 0;
  background:
    linear-gradient(transparent 55%, rgba(0, 0, 0, .25)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 26px);
  opacity: .8;
}
.about-mark { position: relative; z-index: 1; font-family: Georgia, serif; font-size: clamp(56px, 10vw, 96px); font-weight: 700; color: rgba(255,255,255,.95); letter-spacing: .04em; }
.about-copy .section-text:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 30px 18px 0; position: relative;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--blue); transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 18px; font-size: 15.5px; color: var(--body); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 26px 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.contact-list a { color: #d8e4f1; transition: color .2s; }
.contact-list a:hover { color: #fff; text-decoration: underline; }
.contact-ico { flex: none; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #6fb2f3; }
.contact-ico svg { width: 20px; height: 20px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.contact-form { background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); color: var(--body); }
.form-title { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(23, 105, 192, .12);
}
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9fb6cf; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; }
.footer-brand .logo-img { height: 38px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-name { font-size: 14px; font-weight: 600; color: #e7eef6; margin: 0 0 4px; }
.footer-name-zh { font-size: 14px; color: #9fb6cf; margin: 0; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a, .footer-col span { display: block; font-size: 15px; color: #9fb6cf; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 24px; }
.footer-bottom p { margin: 0; font-size: 13.5px; color: #8197b0; }
.footer-disclaimer { max-width: 560px; }

/* ---------- Floating buttons ---------- */
.float-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .2s, box-shadow .2s;
}
.float-wa svg { width: 30px; height: 30px; }
.float-wa:hover { transform: scale(1.08); }

.to-top {
  position: fixed; right: 24px; bottom: 88px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--navy);
  border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: 1fr; gap: 28px; }
  .who-copy { position: static; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  :root { --space: 64px; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 22px;
    box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav-lang-mobile { display: block; margin-top: 8px; padding: 13px 12px; font-weight: 700; color: var(--blue); border-top: 1px solid var(--line); }
  .lang-toggle { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .float-wa { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .to-top { right: 18px; bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .float-wa:hover { transform: none; }
}
