/* ═══════════════════════════════════════════════════════════════════════════
   INFINITY STAFFING — AI-ERA DESIGN SYSTEM
   White + Blue theme. React-ready: CSS variables match Tailwind extension map.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  /* Blue scale */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-900: #1E3A8A;

  /* Neutrals */
  --white:    #FFFFFF;
  --gray-50:  #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;

  /* Semantic */
  --primary:    var(--blue-600);
  --primary-h:  var(--blue-700);
  --primary-bg: var(--blue-50);
  --text:       var(--gray-900);
  --text-mid:   var(--gray-500);
  --text-light: var(--gray-400);
  --border:     var(--gray-200);
  --surface:    var(--gray-50);

  /* Typography */
  --font-sans:  'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Instrument Serif', serif;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
  --shadow-blue:0 8px 32px rgba(37,99,235,.2);

  /* Spacing */
  --nav-h: 70px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 { font-family: var(--font-sans); font-weight: 700; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-sans); cursor: pointer; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.display-xl {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.display-lg {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.1;
}
.display-md {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -.02em;
}
.italic-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.text-blue { color: var(--primary); }
.text-mid { color: var(--text-mid); }
.body-lg { font-size: 1.1rem; line-height: 1.75; color: var(--gray-600); }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9rem; font-family: var(--font-sans);
  border: none; border-radius: var(--radius); padding: 12px 24px;
  cursor: pointer; transition: all .2s; letter-spacing: .01em;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.btn-secondary {
  background: var(--blue-50); color: var(--primary);
  border: 1.5px solid var(--blue-200);
}
.btn-secondary:hover { background: var(--blue-100); border-color: var(--blue-300); }
.btn-ghost {
  background: transparent; color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--gray-100); border-color: var(--gray-300); }
.btn-white {
  background: #fff; color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 15px 32px; font-size: .97rem; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; }

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: center;
  padding: 0 5%; gap: 24px;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 800; color: var(--gray-900); flex-shrink: 0;
}
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 900; color: #fff;
  position: relative; overflow: hidden;
}
.nav-logo-mark::after {
  content: '';
  position: absolute; top: -4px; right: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4);
}
.nav-center { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--gray-600);
  padding: 7px 14px; border-radius: 8px; transition: all .15s;
}
.nav-links a:hover { color: var(--primary); background: var(--blue-50); }
.nav-links a.active { color: var(--primary); background: var(--blue-50); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-ai-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--gray-900); color: #fff;
  border-radius: 100px; padding: 5px 12px; font-size: .72rem; font-weight: 600;
}
.nav-ai-dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; animation: pulse-ai 2s infinite; }
@keyframes pulse-ai { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.85)} }

.burger { display: none; background: none; border: none; padding: 4px; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: .3s; }
.mobile-drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 299;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 5% 28px; flex-direction: column; gap: 0;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  display: block; padding: 13px 0; color: var(--gray-600); font-weight: 500;
  border-bottom: 1px solid var(--border); font-size: .95rem;
}
.mobile-drawer a:hover { color: var(--primary); }

/* ── CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

/* ── AI BADGE / TAG ─────────────────────────────────────────────────────── */
.ai-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid var(--blue-200);
  border-radius: 100px; padding: 4px 12px;
  font-size: .72rem; font-weight: 700; color: var(--blue-700);
  letter-spacing: .04em;
}
.ai-tag::before { content: '✦'; font-size: .65rem; }

/* ── SECTOR BADGE ───────────────────────────────────────────────────────── */
.sector-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 100px; padding: 4px 12px;
  font-size: .72rem; font-weight: 700; border: 1.5px solid;
}

/* ── JOB CARD ───────────────────────────────────────────────────────────── */
.job-card {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 28px;
  transition: all .25s; position: relative; overflow: hidden;
}
.job-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-700));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.job-card:hover { border-color: var(--blue-300); box-shadow: 0 8px 32px rgba(37,99,235,.12); transform: translateY(-3px); }
.job-card:hover::before { transform: scaleX(1); }
.jc-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.jc-logo {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--gray-100); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.jc-meta-top { flex: 1; }
.jc-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.jc-company { font-size: .84rem; color: var(--text-mid); }
.jc-match {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
  border: 1px solid var(--blue-200); border-radius: 8px;
  padding: 6px 10px; text-align: center; flex-shrink: 0;
}
.jc-match-pct { font-size: 1rem; font-weight: 800; color: var(--primary); display: block; line-height: 1; }
.jc-match-label { font-size: .62rem; color: var(--blue-700); font-weight: 600; letter-spacing: .04em; }
.jc-desc { color: var(--gray-600); font-size: .875rem; line-height: 1.65; margin-bottom: 14px; }
.jc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.jc-tag {
  background: var(--gray-100); color: var(--gray-700);
  border-radius: 6px; padding: 4px 10px; font-size: .78rem; font-weight: 500;
}
.jc-info { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.jc-info-item { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--text-mid); }
.jc-info-item svg { flex-shrink: 0; }
.jc-remote { color: var(--primary); font-weight: 600; }
.jc-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jc-posted { font-size: .78rem; color: var(--text-light); }
.jc-actions { display: flex; align-items: center; gap: 8px; }

/* Share popover */
.share-popover {
  position: relative;
}
.share-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gray-100); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
  color: var(--gray-500);
}
.share-btn:hover { background: var(--blue-50); color: var(--primary); border-color: var(--blue-200); }
.share-menu {
  display: none; position: absolute; bottom: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow-lg); z-index: 50; min-width: 180px;
}
.share-menu.open { display: block; animation: popIn .15s ease; }
@keyframes popIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.share-menu-title { font-size: .7rem; font-weight: 700; color: var(--text-light); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px 8px; }
.share-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: .85rem; font-weight: 500;
  cursor: pointer; transition: background .15s; border: none; background: none;
  width: 100%; text-align: left; text-decoration: none; color: var(--gray-700);
}
.share-link:hover { background: var(--gray-100); color: var(--gray-900); }
.share-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.share-whatsapp { background: #dcfce7; }
.share-linkedin { background: #dbeafe; }
.share-facebook { background: #ede9fe; }
.share-copy { background: var(--gray-100); }

/* ── FILTERS ────────────────────────────────────────────────────────────── */
.filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: 100px; padding: 8px 18px;
  font-size: .83rem; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all .2s;
}
.filter-pill:hover { border-color: var(--blue-300); color: var(--primary); background: var(--blue-50); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── SEARCH INPUT ───────────────────────────────────────────────────────── */
.search-box {
  display: flex; align-items: center;
  background: #fff; border: 2px solid var(--gray-200);
  border-radius: 14px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}
.search-box input, .search-box select {
  border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: .9rem; color: var(--gray-900);
  padding: 14px 18px; flex: 1;
}
.search-box select { border-left: 1.5px solid var(--gray-200); min-width: 160px; cursor: pointer; }
.search-box select option { background: #fff; }
.search-box input::placeholder { color: var(--gray-400); }
.search-box-submit {
  background: var(--primary); color: #fff; border: none;
  padding: 0 26px; height: 100%; font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: background .2s; display: flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); white-space: nowrap;
}
.search-box-submit:hover { background: var(--primary-h); }

/* ── STAT BLOCK ─────────────────────────────────────────────────────────── */
.stat-block { text-align: center; }
.stat-block-num {
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--gray-900); line-height: 1;
}
.stat-block-label { font-size: .82rem; color: var(--text-mid); margin-top: 6px; font-weight: 500; }

/* ── GLOW EFFECTS ───────────────────────────────────────────────────────── */
.blue-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
  background: rgba(37,99,235,.08);
}

/* ── ANIMATIONS ─────────────────────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn { from{opacity:0;transform:translateX(-20px)} to{opacity:1;transform:translateX(0)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes spinSlow { to{transform:rotate(360deg)} }

.animate-fade-up { animation: fadeUp .6s ease both; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.footer { background: var(--gray-900); color: #fff; padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand p { color: var(--gray-400); font-size: .875rem; line-height: 1.8; margin-top: 16px; max-width: 280px; }
.footer-contact { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.footer-contact span, .footer-contact a { color: var(--gray-400); font-size: .84rem; display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: var(--blue-400, #60A5FA); }
.footer-col h5 { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--gray-400); font-size: .875rem; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom a { color: var(--gray-500); font-size: .8rem; }
.footer-bottom a:hover { color: var(--gray-300); }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-center, .nav-right .btn, .nav-ai-badge { display: none; }
  .burger { display: flex; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
