/* my.worx1hr.com — employee portal */
@font-face {
  font-family: 'Avenir_Book';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('/assets/fonts/Avenir-Book.ttf') format('truetype');
}

:root {
  --navy: #001B54;
  --navy-3: #122a5e;
  --gold: #C09473;
  --gold-soft: #e3c6ad;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, .64);
  --faint: rgba(255, 255, 255, .045);
  --faint-2: rgba(255, 255, 255, .075);
  --border: rgba(192, 148, 115, .26);
  --radius: 18px;
  --maxw: 1080px;
  --font: 'Avenir_Book', 'Poppins', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -12%, var(--navy-3) 0%, var(--navy) 62%),
    var(--navy);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Header ---------- */
.topbar { padding: 20px 0 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; display: block; }
.brand span { font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.lang-toggle { display: inline-flex; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 100px; padding: 4px; gap: 2px; }
.lang-toggle button { border: 0; background: transparent; color: var(--muted); font-size: 13px; letter-spacing: .04em; padding: 7px 14px; border-radius: 100px; cursor: pointer; transition: background .2s, color .2s; }
.lang-toggle button[aria-pressed="true"] { background: var(--gold); color: var(--navy); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 34px 0 6px; }
.hero .logo { width: 150px; max-width: 46vw; height: auto; display: block; margin: 0 auto 22px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: clamp(15px, 2.2vw, 17px); line-height: 1.5; }

/* ---------- Search ---------- */
.search { position: relative; max-width: 620px; margin: 26px auto 0; }
.search svg.search-icon { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); stroke: var(--gold); pointer-events: none; }
.search input {
  width: 100%;
  height: 58px;
  padding: 0 52px 0 54px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .07);
  font-size: 16.5px;
  color: var(--white);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search input::placeholder { color: rgba(255, 255, 255, .5); }
.search input:focus { border-color: var(--gold); background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(192, 148, 115, .16); }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); cursor: pointer; display: grid; place-items: center; }
.search .clear svg { width: 14px; height: 14px; stroke: var(--white); }
.search-status { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Quick actions ---------- */
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.quick-label { width: 100%; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.quick a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: 100px;
  background: var(--faint-2);
  border: 1px solid var(--border);
  font-size: 15px;
  transition: border-color .18s, background .18s, transform .18s;
}
.quick a:hover { border-color: var(--gold); background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.quick a svg { width: 20px; height: 20px; stroke: var(--gold); flex: none; }

/* ---------- Category nav (sticky) ---------- */
.catnav { position: sticky; top: 0; z-index: 20; margin-top: 30px; background: rgba(0, 27, 84, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid var(--border); }
.catnav nav { max-width: var(--maxw); margin: 0 auto; padding: 10px 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.catnav nav::-webkit-scrollbar { display: none; }
.catnav a { flex: none; white-space: nowrap; font-size: 13.5px; color: var(--muted); padding: 8px 15px; border-radius: 100px; transition: background .18s, color .18s; }
.catnav a:hover { color: var(--gold-soft); }
.catnav a.active { background: var(--gold); color: var(--navy); font-weight: 700; }
.catnav a[aria-disabled="true"] { opacity: .35; pointer-events: none; }

/* ---------- Sections ---------- */
.section { padding-top: 46px; scroll-margin-top: 66px; }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.section-head h2 { margin: 0; font-size: clamp(18px, 3vw, 24px); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.section-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.section-desc { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card {
  position: relative;
  display: flex; align-items: center; gap: 15px;
  min-height: 92px;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: var(--faint);
  border: 1px solid var(--border);
  transition: transform .18s, background .18s, border-color .18s;
}
.card:hover, .card:focus-visible { transform: translateY(-2px); background: var(--faint-2); border-color: var(--gold); outline: none; }
.card .icon { flex: none; width: 46px; height: 46px; border-radius: 13px; background: rgba(192, 148, 115, .12); display: grid; place-items: center; }
.card .icon svg { width: 23px; height: 23px; stroke: var(--gold); }
.card .body { flex: 1 1 auto; min-width: 0; }
.card .title { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.card .desc { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.card .go { flex: none; width: 18px; height: 18px; stroke: currentColor; opacity: .45; transition: transform .18s, opacity .18s; }
.card:hover .go { opacity: 1; transform: translateX(2px); }
.card.external:hover .go { transform: translate(2px, -2px); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 56px 20px 10px; color: var(--muted); }
.empty strong { display: block; color: var(--white); font-size: 19px; margin-bottom: 6px; }
.empty a { color: var(--gold-soft); text-decoration: underline; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 64px 0 40px; color: rgba(255, 255, 255, .4); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: 26px; }
  .hero .logo { width: 120px; margin-bottom: 16px; }
  .search input { height: 54px; font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 84px; padding: 16px; }
  .catnav nav { padding: 9px 18px; }
}
@media (max-width: 440px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
