/* ==========================================================================
   HR Consultant PK — styles
   Mobile-first. Spacing follows an 8px scale (--s1 … --s8).
   ========================================================================== */

:root {
  --navy: #0F4C81;
  --navy-dark: #0A3459;
  --amber: #F59E0B;
  --amber-dark: #B45309;      /* AA-contrast amber for text on white */
  --text: #1F2937;
  --muted: #4B5563;
  --bg-light: #F4F7FB;
  --white: #FFFFFF;
  --line: #DCE3EC;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 52, 89, .06), 0 8px 24px rgba(10, 52, 89, .06);
  --header-h: 72px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --section-y: clamp(56px, 8vw, 104px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s2)); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 1rem; }
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.2; color: var(--navy-dark); }
h1 { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p + p { margin-top: var(--s2); }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--navy-dark); color: var(--white); padding: var(--s1) var(--s2); border-radius: 8px;
}
.skip-link:focus { top: var(--s2); }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--s2); }
.container--narrow { max-width: 800px; }
@media (min-width: 768px) { .container { padding-inline: var(--s4); } }

.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: var(--s1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 12px var(--s3); border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 40px; padding: 8px 20px; font-size: .9375rem; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); }
.btn--accent { background: var(--amber); color: var(--navy-dark); }
.btn--accent:hover { background: #FBBF24; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #D6E2EE; font-size: .875rem; }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px var(--s3); padding-block: 6px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
@media (min-width: 768px) { .topbar__inner { justify-content: space-between; } }

/* ---------- Header / nav ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.header.is-scrolled { box-shadow: 0 4px 20px rgba(10, 52, 89, .08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy-dark); text-decoration: none; }
.wordmark__logo { width: 44px; height: 44px; object-fit: contain; flex: none; }
.wordmark--light .wordmark__logo { background: var(--white); border-radius: 10px; padding: 3px; }
.wordmark__tld { color: var(--amber-dark); }
.wordmark--light { color: var(--white); }
.wordmark--light .wordmark__tld { color: var(--amber); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 24px; height: 2px; background: var(--navy-dark); border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(10,52,89,.08); padding: var(--s2) var(--s2) var(--s3); }
.nav.is-open { display: block; }
.nav__list a { display: block; padding: 12px var(--s1); color: var(--text); text-decoration: none; font-weight: 600; border-radius: 8px; }
.nav__list a:hover { color: var(--navy); background: var(--bg-light); }
.nav__cta { margin-top: var(--s2); width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { display: flex !important; align-items: center; gap: var(--s3); position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav__list { display: flex; gap: 4px; }
  .nav__list a { padding: 8px 10px; font-size: .9375rem; }
  .nav__cta { margin-top: 0; width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-light), var(--white)); padding-block: clamp(56px, 10vw, 120px); }
.hero__inner { position: relative; max-width: 1140px; }
.hero__inner > * { max-width: 720px; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--muted); margin-top: var(--s3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero__points { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin-top: var(--s4); color: var(--muted); font-weight: 600; font-size: .9375rem; }
.hero__points li { display: flex; align-items: center; gap: var(--s1); }
.hero__points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }

.hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; display: block; }
.shape--ring { width: 420px; height: 420px; right: -160px; top: -120px; border: 56px solid rgba(15, 76, 129, .07); border-radius: 50%; }
.shape--dot { width: 120px; height: 120px; right: 12%; bottom: 10%; background: rgba(245, 158, 11, .18); border-radius: 50%; }
.shape--grid { width: 220px; height: 220px; right: 22%; top: 18%; background-image: radial-gradient(rgba(15,76,129,.2) 1.5px, transparent 1.5px); background-size: 18px 18px; }
@media (max-width: 767px) { .shape--grid, .shape--dot { display: none; } .shape--ring { width: 260px; height: 260px; border-width: 36px; right: -140px; } }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: var(--white); padding-block: var(--s5); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); text-align: center; }
.stat__value { display: block; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 800; }
.stat__label { color: #D6E2EE; }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-light); }
.section__head { max-width: 680px; margin-bottom: var(--s5); }
.section__head p:not(.eyebrow) { color: var(--muted); margin-top: var(--s2); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Services */
.service-grid { display: grid; gap: var(--s3); }
.service { display: flex; flex-direction: column; padding: var(--s4) var(--s3); transition: border-color .2s, transform .2s; }
.service:hover { border-color: var(--navy); transform: translateY(-2px); }
.service__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--bg-light); fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s2); }
.service p { color: var(--muted); margin-top: var(--s1); flex: 1; }
.service__link { margin-top: var(--s2); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.service__link::after { content: "→"; transition: transform .2s; }
.service__link:hover { text-decoration: underline; }
.service__link:hover::after { transform: translateX(3px); }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

/* Split layout (Why us, Contact) */
.split { display: grid; gap: var(--s5); }
.split > div > p:not(.eyebrow) { color: var(--muted); margin-top: var(--s2); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s8); align-items: start; } .split--contact { grid-template-columns: 5fr 7fr; } }

.feature-list { display: grid; gap: var(--s2); }
.feature-list li { background: var(--white); border-left: 4px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s2) var(--s3); box-shadow: var(--shadow); }
.feature-list p { color: var(--muted); margin-top: 4px; font-size: .9375rem; }

/* Industries */
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-list li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; background: var(--white); }

/* Process */
.steps { display: grid; gap: var(--s3); counter-reset: none; }
.step { background: var(--white); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; margin-bottom: var(--s2); }
.step p { color: var(--muted); margin-top: var(--s1); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Pricing */
.plan-grid { display: grid; gap: var(--s3); }
.plan { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); }
.plan p { color: var(--muted); flex: 1; }
.plan--highlight { border: 2px solid var(--navy); }
@media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }

/* Testimonial */
.testimonial { max-width: 760px; margin-inline: auto; text-align: center; }
.testimonial blockquote { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); font-weight: 600; color: var(--navy-dark); }
.testimonial figcaption { margin-top: var(--s2); color: var(--muted); font-weight: 600; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: 20px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.0625rem; color: var(--navy-dark);
}
.faq__q::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--navy); flex: none; }
.faq__q[aria-expanded="true"]::after { content: "−"; }
.faq__a { padding: 0 0 20px; color: var(--muted); }

/* CTA */
.cta { background: var(--navy-dark); color: var(--white); padding-block: var(--section-y); text-align: center; }
.cta h2 { color: var(--white); max-width: 720px; margin-inline: auto; }
.cta p { color: #D6E2EE; margin: var(--s2) auto var(--s4); max-width: 560px; }

/* Contact */
.contact-details { display: grid; gap: var(--s2); margin-top: var(--s4); }
.contact-details dt { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-details dd { margin: 2px 0 0; font-weight: 600; }

.form { padding: var(--s3); display: grid; gap: var(--s2); }
@media (min-width: 640px) { .form { padding: var(--s4); } }
.form__row { display: grid; gap: var(--s2); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--white);
  padding: 12px 14px; min-height: 48px; border: 1px solid #A8B4C4; border-radius: 10px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #B91C1C; background: #FEF2F2; }
.field__error { color: #B91C1C; font-size: .875rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--navy); }
.field--check label { font-weight: 400; }
.field--check .field__error { grid-column: 1 / -1; }
.form__context { background: var(--bg-light); border-left: 4px solid var(--amber); padding: 10px 14px; border-radius: 0 8px 8px 0; font-weight: 600; font-size: .9375rem; }
.form__submit { justify-self: start; }
.form__status { font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-success { color: #166534; background: #F0FDF4; padding: 12px 14px; border-radius: 8px; }
.form__status.is-error { color: #B91C1C; background: #FEF2F2; padding: 12px 14px; border-radius: 8px; }
.form__note { font-size: .875rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: #0B1D33; color: #C7D2DF; padding-block: var(--s8) var(--s3); }
.footer__grid { display: grid; gap: var(--s4); }
.footer__grid p { margin-top: var(--s2); max-width: 320px; }
.footer__title { color: var(--white); font-size: 1rem; margin-bottom: var(--s2); }
.footer ul { display: grid; gap: var(--s1); }
.footer a { color: #C7D2DF; text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__copy { text-align: center; font-size: .875rem; border-top: 1px solid #1E3550; margin-top: var(--s6); padding-top: var(--s3); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: var(--s2); z-index: 40; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { bottom: var(--s2); background: #25D366; }
.fab--wa svg { fill: var(--white); }
.fab--top { bottom: calc(var(--s2) + 64px); background: var(--white); border: 1px solid var(--line); }
.fab--top svg { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) { .fab { right: var(--s3); } .fab--wa { bottom: var(--s3); } .fab--top { bottom: calc(var(--s3) + 64px); } }
/* Keep the floating buttons from covering the last lines of the footer on small screens */
@media (max-width: 767px) { .footer { padding-bottom: 96px; } .form-in-view .fab { display: none; } }

/* ---------- Legal pages ---------- */
.legal { padding-block: var(--s8); }
.legal h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: var(--s2); }
.legal h2 { font-size: 1.35rem; margin-top: var(--s5); margin-bottom: var(--s1); }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: var(--s3); margin-top: var(--s1); }
.legal .notice { background: #FFFBEB; border-left: 4px solid var(--amber); padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--text); margin-bottom: var(--s3); }
.simple-header { border-bottom: 1px solid var(--line); }
.simple-header .container { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); gap: var(--s2); }
.notfound { text-align: center; padding-block: 120px; }
.notfound p { color: var(--muted); margin: var(--s2) 0 var(--s4); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .service:hover { transform: none; }
}
