/* PT. Soon Poh Technologies — matches the Soon Poh Investments group look */
:root {
  --navy: #031222;
  --navy-2: #0a1f35;
  --ink: #16202c;
  --muted: #5b6676;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-soft: #f7f5f1;
  --gold: #d79628;
  --gold-soft: #eabb79;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(3, 18, 34, .94); box-shadow: 0 2px 20px rgba(0,0,0,.25); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.15; }
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--gold-soft); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #dfe5ec; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.nav-links .btn { color: var(--navy); letter-spacing: 0; text-transform: none; padding: 10px 20px; }
.nav-links .btn:hover { color: var(--navy); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; background: var(--navy) url("../img/hero-main.webp") center / cover no-repeat;
  padding: 120px 0 80px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,18,34,.92) 0%, rgba(3,18,34,.7) 55%, rgba(3,18,34,.35) 100%); }
.hero .wrap { position: relative; }
.hero .rule { width: 64px; height: 3px; background: var(--gold); margin-bottom: 28px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); font-weight: 700; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: #c9d2dc; max-width: 600px; margin: 22px 0 36px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats */
.stats { background: var(--navy-2); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; border-left: 1px solid rgba(255,255,255,.08); text-align: center; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-head); font-size: 40px; color: var(--gold); line-height: 1.1; }
.stat span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #aab6c3; }

/* Sections */
section { scroll-margin-top: 76px; }
.section { padding: 100px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #fff; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.dark .lead { color: #b8c3cf; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.facts div { background: #fff; padding: 20px 22px; }
.facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 50px; }
.svc { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc-img { aspect-ratio: 16 / 8; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .svc-img img { transform: scale(1.04); }
.svc-body { padding: 28px 30px 32px; }
.svc h3 { font-size: 23px; }
.svc p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--bg-soft); color: var(--ink); border: 1px solid #ece6db; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.why { padding: 30px 26px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.why .num { font-family: var(--font-head); color: var(--gold); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.why h3 { font-size: 20px; }
.why p { color: #b8c3cf; font-size: 15.5px; margin: 0; }

/* Presence */
.presence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 50px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.office.primary { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.office .role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.office h3 { font-size: 26px; margin-top: 8px; }
.office p { color: var(--muted); margin: 0; }

/* Careers */
.careers { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.careers ul { margin: 0 0 24px; padding-left: 20px; color: var(--muted); }
.careers .card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.careers .card p { color: #b8c3cf; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; margin-top: 40px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list dt, .contact-list .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-list a { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
form.contact { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: #c9d2dc; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05); color: #fff; font: inherit; font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13.5px; color: #93a1b0; margin: 0; }

/* Footer */
.site-footer { background: #020c17; color: #93a1b0; padding: 60px 0 30px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-head); color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #b8c3cf; }
.site-footer a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; }

/* Simple pages (privacy, 404) */
.page { padding: 150px 0 90px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(32px, 4vw, 46px); }
.page h2 { font-size: 22px; margin-top: 1.6em; }
.page p, .page li { color: #3a4553; }
.page-header { background: var(--navy); }
.page-header .site-header { position: static; background: var(--navy); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .careers, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { aspect-ratio: 16 / 9; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy); padding: 10px 20px 24px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .btn { margin-top: 10px; display: inline-flex; }
  .site-header.menu-open { background: var(--navy); }
  .svc-grid, .presence-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.08); }
  .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .why-grid, .row2, .facts { grid-template-columns: 1fr; }
  .stat b { font-size: 32px; }
  .brand small { display: none; }
}

/* Profile mission, ancillary, platform workflow, 3-col cards */
.mission { margin: 24px 0; padding: 22px 26px; border-left: 3px solid var(--gold); background: var(--bg-soft); font-family: var(--font-head); font-size: 21px; line-height: 1.4; font-weight: 500; }
.mission span { display: block; font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.ancillary { margin-top: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.ancillary h3 { font-size: 20px; }
.ancillary ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 40px; color: var(--muted); }
.ancillary li { margin-bottom: 6px; break-inside: avoid; }
#platform .why-grid { grid-template-columns: repeat(3, 1fr); }
.workflow { margin: 36px 0 10px; color: #dfe5ec; }
.presence-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { #platform .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .presence-grid.three { grid-template-columns: 1fr; } .ancillary ul { columns: 1; } }
@media (max-width: 520px) { #platform .why-grid { grid-template-columns: 1fr; } }
