/* GaDongHR — marketing site. Palette = gadonghr-marketing/brand.js.
   Contrast (measured, WCAG): brass on shadow 5.05:1 (body OK) · brass on paper 2.92:1
   (NEVER use brass text on light grounds) · brass on accent 3.32:1 (large text only). */
:root {
  --paper: #FCFBF7; --ink: #171614; --rule: #DBD5C6; --seal: #A8322A;
  --accent: #1B4A3C; --brass: #C08A3E; --muted: #6E685C; --shadow: #102A22;
  --tint: #F2F1EC; --on-dark-muted: #C9D3CE; --on-dark-rule: #3A5A4F;
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --band: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.band-paper :focus-visible, .band-tint :focus-visible { outline-color: var(--accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.brass { color: var(--brass); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 4px;
  font: 700 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-brass { background: var(--brass); color: var(--shadow); }
.btn-brass:hover { background: #D19B4D; }
.btn-ghost { color: var(--paper); border-color: var(--on-dark-rule); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--shadow); }
.btn-outline { color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--paper); }

/* ---------- header ---------- */
.site-head { background: var(--shadow); border-bottom: 1px solid var(--on-dark-rule); }
.head-row { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 40px; height: 40px; flex: none; }
.wordmark { font: 700 24px/1 var(--sans); color: var(--paper); letter-spacing: -0.01em; }
.wordmark span { color: var(--brass); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a, .link-login { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; font-weight: 700; }
.nav a:hover, .link-login:hover { color: var(--paper); }
.head-cta { display: flex; align-items: center; gap: 20px; }

/* ---------- hero ---------- */
.hero { background: var(--shadow); color: var(--paper); padding-block: clamp(48px, 7vw, 96px) var(--band); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  font: 700 13px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow-dark { color: var(--brass); }
.hero h1 { font: 400 clamp(34px, 4.3vw, 52px)/1.12 var(--serif); letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--on-dark-muted); max-width: 34em; margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-price { margin-top: 20px; color: var(--on-dark-muted); font-size: 16px; }
.hero-price strong { color: var(--paper); }

.ledger {
  background: rgba(252, 251, 247, 0.04); border: 1px solid var(--on-dark-rule);
  border-radius: 6px; padding: clamp(22px, 3vw, 32px);
}
.ledger h2 { font: 400 24px/1.25 var(--serif); color: var(--paper); }
.ledger-list { margin-top: 18px; }
.ledger-list li {
  display: grid; grid-template-columns: 8.4em minmax(0, 1fr); gap: 14px;
  padding: 13px 0; border-top: 1px solid var(--on-dark-rule);
}
.ledger-list li:first-child { border-top: 0; }
.when { font: 400 18px/1.35 var(--serif); color: var(--brass); }
.what { font-size: 15px; line-height: 1.45; color: var(--paper); }
.what em { display: block; font-style: normal; font-size: 13px; color: var(--on-dark-muted); margin-top: 2px; letter-spacing: 0.04em; }
.ledger-dl { display: inline-block; margin-top: 16px; color: var(--brass); font-weight: 700; font-size: 15px; }
.ledger-dl:hover { color: var(--paper); }

/* ---------- bands ---------- */
.band { padding-block: var(--band); }
.band-paper { background: var(--paper); }
.band-tint { background: var(--tint); }
.band-dark { background: var(--shadow); color: var(--paper); }
.band h2 { font: 400 clamp(28px, 3.4vw, 42px)/1.15 var(--serif); letter-spacing: -0.005em; max-width: 22em; }
.band-dark h2 { color: var(--paper); }

/* four authorities */
.authorities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.authority { border-top: 3px solid var(--ink); padding-top: 18px; }
.authority h3 { font: 700 18px/1.3 var(--sans); }
.authority .due { font: 400 21px/1.3 var(--serif); color: var(--seal); margin: 8px 0 10px; text-wrap: balance; }
.authority .due strong { font-weight: 700; }
.authority p:last-child { font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.authority p:last-child strong { color: var(--ink); }
.kicker { margin-top: 44px; font: 400 clamp(19px, 1.9vw, 23px)/1.5 var(--serif); max-width: 42em; }

/* modules */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.module { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 3px; padding: 22px 22px 24px; }
.module h3 { font: 700 17px/1.3 var(--sans); }
.module p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.also { margin-top: 28px; font-size: 16px; color: var(--accent); }

/* malaysia */
.my-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.lede-sm { margin-top: 18px; color: var(--on-dark-muted); font-size: 18px; max-width: 30em; }
.my-price { margin-top: 26px; font-size: 16px; color: var(--on-dark-muted); }
.my-price a { color: var(--brass); font-weight: 700; }
.my-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--on-dark-rule); }
.my-list li:last-child { border-bottom: 1px solid var(--on-dark-rule); }
.my-list strong { font: 400 22px/1.25 var(--serif); color: var(--brass); }
.my-list span { font-size: 15.5px; color: var(--on-dark-muted); }

/* security */
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.sec-grid > div > p:not(.eyebrow) { margin-top: 18px; color: var(--muted); max-width: 30em; }
.checks li { position: relative; padding: 13px 0 13px 34px; border-top: 1px solid var(--rule); font-size: 16.5px; }
.checks li:last-child { border-bottom: 1px solid var(--rule); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg);
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 30px 26px 26px;
}
.plan-pop { border: 2px solid var(--accent); box-shadow: 0 10px 30px rgba(16, 42, 34, 0.10); }
.pop {
  position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--paper);
  font: 700 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 12px; border-radius: 3px;
}
.plan h3 { font: 700 19px/1.3 var(--sans); color: var(--accent); }
.amount { color: var(--muted); font-size: 15px; }
.amount span { font: 400 48px/1 var(--serif); color: var(--ink); margin-right: 6px; }
.tagline { font-size: 15.5px; color: var(--muted); }
.plan ul { flex: 1; border-top: 1px solid var(--rule); padding-top: 14px; }
.plan li { font-size: 15.5px; padding: 5px 0 5px 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.plan .btn { width: 100%; margin-top: 6px; }
.call { margin-top: 30px; font-size: 18px; font-weight: 700; color: var(--ink); }
.call a { color: var(--seal); white-space: nowrap; }
.fine { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* calendar */
.calendar-band { padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cal-grid { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cal-grid h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cal-grid p { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* closing */
.close-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.close-actions { display: grid; gap: 18px; justify-items: end; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.contact-links a { color: var(--on-dark-muted); font-weight: 700; font-size: 15.5px; }
.contact-links a:hover { color: var(--paper); }

/* ---------- footer ---------- */
.site-foot { background: var(--shadow); color: var(--on-dark-muted); border-top: 1px solid var(--on-dark-rule); padding-block: 36px 40px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lockup-sm .mark { width: 32px; height: 32px; }
.lockup-sm .wordmark { font-size: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--paper); text-decoration: underline; }
.foot-legal { margin-top: 26px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .authorities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .nav { display: none; }
  .head-cta { margin-left: auto; }
  .hero-grid, .my-grid, .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; gap: 28px; }
  .cal-grid, .close-grid { flex-direction: column; align-items: flex-start; }
  .close-actions { justify-items: start; }
  .contact-links { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .head-row { gap: 12px; min-height: 64px; }
  .mark { width: 34px; height: 34px; }
  .wordmark { font-size: 21px; }
  .head-cta { gap: 14px; }
  .authorities, .modules { grid-template-columns: minmax(0, 1fr); }
  .ledger-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cta-row .btn { flex: 1 1 100%; }
  .cal-grid .btn, .close-actions .btn { width: 100%; }
  .close-actions { width: 100%; }
}

/* ---------- floating contact + chat ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--shadow); color: var(--paper);
  border: 1px solid var(--on-dark-rule); box-shadow: 0 8px 22px rgba(16, 42, 34, 0.28);
  text-decoration: none; cursor: pointer; transition: background-color .15s, transform .15s;
}
.fab:hover { background: var(--accent); }
.fab svg { width: 24px; height: 24px; }
.fab-tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--paper); font: 700 13px/1 var(--sans); padding: 7px 10px;
  border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.fab:hover .fab-tip, .fab:focus-visible .fab-tip { opacity: 1; }
.fab-chat {
  width: auto; height: 56px; border-radius: 28px; padding: 0 22px 0 18px; gap: 10px;
  display: flex; align-items: center; background: var(--brass); color: var(--shadow);
  border: 0; font: 700 16px/1 var(--sans);
}
.fab-chat:hover { background: #D19B4D; }
.fab-chat[hidden] { display: none; }
.fab-stack.is-chat-open .fab:not(.fab-chat) { display: none; }   /* the panel offers WhatsApp/email itself */

.chat {
  position: fixed; right: 22px; bottom: 92px; z-index: 60;
  width: min(390px, calc(100vw - 44px)); height: min(600px, calc(100vh - 124px));
  display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 42, 34, 0.30);
}
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 18px; background: var(--shadow); color: var(--paper); }
.chat-head h2 { font: 400 20px/1.2 var(--serif); }
.chat-head p { margin-top: 4px; font-size: 13px; color: var(--on-dark-muted); }
.chat-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: transparent; color: var(--paper); border: 1px solid var(--on-dark-rule); border-radius: 50%; cursor: pointer; }
.chat-close:hover { border-color: var(--paper); }
.chat-close svg { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 12px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--tint); border-bottom-left-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--accent); color: var(--paper); border-bottom-right-radius: 4px; }
.msg-err { align-self: flex-start; background: #FBEDEC; color: var(--seal); border-bottom-left-radius: 4px; }
.msg-err a { color: var(--seal); font-weight: 700; }
.msg-typing { align-self: flex-start; background: var(--tint); width: 58px; height: 36px; padding: 0; border-bottom-left-radius: 4px;
  background-image: radial-gradient(circle, var(--muted) 3px, transparent 3.5px), radial-gradient(circle, var(--muted) 3px, transparent 3.5px), radial-gradient(circle, var(--muted) 3px, transparent 3.5px);
  background-size: 12px 12px; background-repeat: no-repeat; background-position: 12px center, 23px center, 34px center; }
@media (prefers-reduced-motion: no-preference) { .msg-typing { animation: typing 1.2s infinite ease-in-out; } }
@keyframes typing { 50% { opacity: .45; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { background: var(--paper); color: var(--accent); border: 1px solid var(--accent); border-radius: 18px; padding: 7px 12px; font: 700 13.5px/1.2 var(--sans); cursor: pointer; }
.chat-suggest button:hover { background: var(--accent); color: var(--paper); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 10px; border-top: 1px solid var(--rule); background: var(--paper); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--rule); border-radius: 8px; font: 15px/1.4 var(--sans); color: var(--ink); background: #fff; }
.chat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.chat-form button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent); color: var(--paper); border: 0; border-radius: 8px; cursor: pointer; }
.chat-form button:disabled { opacity: .5; cursor: default; }
.chat-form button svg { width: 20px; height: 20px; }
.chat-foot { padding: 0 14px 12px; font-size: 12px; line-height: 1.45; color: var(--muted); background: var(--paper); }
.chat-foot a { color: var(--accent); font-weight: 700; }

@media (max-width: 560px) {
  .fab-stack { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 48px; height: 48px; }
  .fab-chat { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .fab-chat .fab-label, .fab-tip { display: none; }
  .fab-stack.is-chat-open { display: none; }                      /* close from the panel header */
  .chat { right: 0; left: 0; bottom: 0; width: 100%; height: min(88vh, 640px); border-radius: 14px 14px 0 0; border-bottom: 0; }
  .site-foot { padding-bottom: 210px; }                           /* keep the legal lines clear of the buttons */
}
