/* ── GHS HRD Nexus — Design System ───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display&display=swap');

:root {
  --navy:        #0f2440;
  --navy-mid:    #16324f;
  --navy-pale:   #eaf1fb;
  --gold:        #f5c400;
  --gold-dark:   #c49b00;
  --green:       #1b5e20;
  --green-mid:   #2e7d32;
  --green-pale:  #e8f5e9;
  --accent:      #2f6feb;
  --accent-dark: #1d4ed8;
  --accent-pale: #e8f0fe;
  --ink:         #16202e;
  --muted:       #5c6472;
  --border:      #e3e6ea;
  --bg:          #f7f8fa;
  --white:       #ffffff;
  --font:        'DM Sans', sans-serif;
  --font-display:'DM Serif Display', serif;
  --shadow:      0 2px 4px rgba(15,36,64,.05), 0 8px 20px rgba(15,36,64,.06);
  --shadow-lg:   0 10px 24px rgba(15,36,64,.10), 0 2px 8px rgba(15,36,64,.06);
  --radius:      12px;
  --radius-lg:   18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* ── Top nav ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img {
  width: 42px; height: 42px; object-fit: contain;
  background: #fff; border: 1.5px solid var(--border); border-radius: 9px; padding: 3px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .95rem; color: var(--navy); font-weight: 700; }
.brand-text span { font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav a {
  text-decoration: none; font-size: .88rem; font-weight: 600;
  color: var(--muted); transition: color .15s;
  padding: .4rem 0; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--gold); border-radius: 2px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 60%, #0c1e37 100%);
  color: #fff;
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 20%, rgba(245,196,0,.10) 0%, transparent 70%),
              radial-gradient(ellipse 50% 60% at 10% 90%, rgba(47,111,235,.12) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,196,0,.12);
  border: 1px solid rgba(245,196,0,.3);
  padding: .4rem 1rem; border-radius: 30px;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  text-wrap: balance;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 10px;
  font-size: .92rem; font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s;
  font-family: var(--font);
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd60a; transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem; display: block;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--navy); margin: 0 0 .85rem; text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ── Portal cards ─────────────────────────────────────────────────────── */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.portal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
  position: relative;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portal-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.portal-icon.i-hrims   { background: var(--accent-pale); }
.portal-icon.i-leave   { background: var(--green-pale); }
.portal-icon.i-upgrade { background: #fdf0e2; }
.portal-icon.i-pms     { background: #f3e8fd; }
.portal-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0 0 .6rem; }
.portal-card p { color: var(--muted); font-size: .87rem; margin: 0 0 1.5rem; flex: 1; }
.portal-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 700; color: var(--accent);
  text-decoration: none;
}
.portal-link:hover { color: var(--accent-dark); }
.portal-badge {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--grey-badge, #eee); color: var(--muted);
  padding: .25rem .6rem; border-radius: 20px;
}
.portal-badge.live { background: var(--green-pale); color: var(--green-mid); }
.portal-badge.soon { background: #fdf0e2; color: var(--gold-dark); }
.portal-link.disabled { color: var(--muted); cursor: default; pointer-events: none; }

/* ── Feature strip ────────────────────────────────────────────────────── */
.feature-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.feature-item { text-align: center; }
.feature-item .num {
  font-family: var(--font-display);
  font-size: 2.2rem; color: var(--navy); display: block; margin-bottom: .4rem;
}
.feature-item .label { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ── Content pages (About/Contact) ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 .6rem;
}
.page-hero p { color: rgba(255,255,255,.75); margin: 0; font-size: 1rem; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: .85rem; }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--navy);
  font-size: 1.5rem; margin: 2.5rem 0 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 1rem; margin: 0 0 1.1rem; }
.prose ul { color: var(--muted); padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); }

.value-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin: 2rem 0;
}
.value-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.value-card .icon { font-size: 1.6rem; margin-bottom: .75rem; display: block; }
.value-card h4 { margin: 0 0 .4rem; font-size: .95rem; color: var(--navy); }
.value-card p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ── Contact page ─────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow);
}
.contact-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }
.contact-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-pale); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-row .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.contact-row .value { font-size: .95rem; color: var(--ink); font-weight: 600; }
.contact-row .value a { color: var(--accent); text-decoration: none; }
.contact-row .value a:hover { text-decoration: underline; }

.contact-note {
  background: var(--navy-pale); border-radius: var(--radius-lg);
  padding: 2rem; color: var(--navy);
}
.contact-note h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin: 0 0 .85rem; }
.contact-note p { color: var(--navy-mid); font-size: .9rem; margin: 0 0 1rem; opacity: .85; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 3.5rem 0 2rem;
  font-size: .87rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; }
.footer-brand strong { color: #fff; font-size: .95rem; }
.footer-col h4 {
  color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 1rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.65); text-decoration: none;
  margin-bottom: .65rem; font-size: .86rem; transition: color .15s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
  font-size: .78rem; color: rgba(255,255,255,.45);
}

@media (max-width: 640px) {
  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: .9rem;
    padding-bottom: .9rem;
    row-gap: .75rem;
  }
  .main-nav { gap: 1.4rem; width: 100%; justify-content: center; }
  .hero { padding: 3.5rem 0 4rem; }
  .section { padding: 3rem 0; }
}
