/* =====================================================================
   POLISH — header, floating menu, hero cards, hot alerts, expandable
   cards, trust + FAQ, cookie banner, legal pages.  (loads after enhancements.css)
   ===================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 5000; background: var(--gold); color: #0d1d3e; padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Header (desktop) ---------- */
.navbar .container { max-width: 1320px; }
.navbar .nav-inner { gap: 18px; flex-wrap: nowrap; }
.navbar .logo { flex-shrink: 0; white-space: nowrap; font-size: 19px; letter-spacing: .2px; gap: 11px; }
.navbar .logo .logo-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(232,163,61,.14); border: 1px solid rgba(232,163,61,.4); }
.logo-text { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; line-height: 1; }
.logo-text b { font-weight: 800; color: #fff; }
.logo-text i { font-style: normal; font-weight: 700; color: var(--gold); }
.navbar .nav-links { flex: 1; justify-content: flex-end; gap: 2px; flex-wrap: nowrap; list-style: none; margin: 0; padding: 0; }
.navbar .nav-links a { white-space: nowrap; padding: 9px 11px; font-size: 14px; }
.navbar .nav-links .btn { padding: 9px 15px; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.nav-sep { width: 1px; height: 24px; background: rgba(255,255,255,.2); margin: 0 8px; }
.navbar .nav-links a.nav-active { color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Floating menu button (left) + slide-in drawer ---------- */
.nav-fab { display: none; position: fixed; top: 12px; left: 12px; z-index: 1400; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(232,163,61,.6); background: var(--blue); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: 0 8px 22px rgba(0,0,0,.3); transition: transform .25s, background .25s; }
.nav-fab:hover { transform: scale(1.06); }
.nav-fab span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-fab.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-fab.open span:nth-child(2) { opacity: 0; }
.nav-fab.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer-overlay { position: fixed; inset: 0; z-index: 1300; background: rgba(8,20,17,.58); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 330px); z-index: 1350; background: linear-gradient(180deg, #17423a 0%, #0e2924 100%); transform: translateX(-104%); transition: transform .38s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding: 76px 16px 20px; overflow-y: auto; box-shadow: 14px 0 44px rgba(0,0,0,.35); visibility: hidden; }
.mobile-drawer.open { transform: none; visibility: visible; }
.drawer-brand { position: absolute; top: 18px; left: 76px; font: 800 16px var(--font-display); color: #fff; white-space: nowrap; }
.drawer-brand span { color: var(--gold); }
.drawer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.drawer-links a { display: flex; align-items: center; gap: 14px; padding: 11px 12px; color: #fff; border-radius: 12px; font: 600 15px var(--font-display); transition: background .2s; }
.drawer-links a:hover, .drawer-links a:active { background: rgba(255,255,255,.09); }
.drawer-links i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); font-size: 14px; }
.mobile-drawer.open .drawer-links li { animation: drawerIn .45s both; animation-delay: calc(var(--i) * 45ms + 120ms); }
@keyframes drawerIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.drawer-cta { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
.drawer-cta .btn { justify-content: center; padding: 13px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.drawer-foot { margin-top: 14px; font-size: 12px; color: rgba(255,255,255,.55); text-align: center; }
.drawer-foot a { color: rgba(255,255,255,.8); text-decoration: underline; }
body.drawer-open { overflow: hidden; }

@media (max-width: 1180px) {
  .navbar .nav-links { display: none; }
  .nav-fab { display: flex; }
  .navbar { padding: 12px 0; }
  .navbar .logo { margin-left: 58px; font-size: 18px; }
}
@media (max-width: 380px) { .navbar .logo { font-size: 16px; } .navbar .logo .logo-icon { width: 34px; height: 34px; font-size: 17px; } }

/* ---------- Hero choice cards (Kenya / Abroad) ---------- */
.hero-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 36px; max-width: 580px; }
.choice-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.09); border: 1.5px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); color: #fff; text-align: left; cursor: pointer; font-family: inherit; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.choice-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.16); border-color: var(--gold); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.choice-flag { position: relative; width: 58px; height: 58px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--gold); }
.choice-flag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.choice-card strong { display: block; font: 700 16px var(--font-display); line-height: 1.2; }
.choice-card small { display: block; margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.78); }
.choice-card .go { margin-left: auto; color: var(--gold); transition: transform .25s; }
.choice-card:hover .go { transform: translateX(4px); }
@media (max-width: 1024px) { .hero-choice { margin-left: auto; margin-right: auto; } }
@media (max-width: 560px) { .hero-choice { gap: 10px; } .choice-card { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; } .choice-card .go { display: none; } .choice-card strong { font-size: 15px; } }

/* ---------- Hot alerts ---------- */
.hot-section { background: linear-gradient(180deg, #fff7ec 0%, #fff 100%); padding: 44px 0 36px; border-bottom: 1px solid var(--border); }
.hot-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.hot-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(22px, 3vw, 28px); color: var(--navy); }
.hot-pulse { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #e5484d; flex-shrink: 0; }
.hot-pulse::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #e5484d; animation: hotPulse 1.6s infinite; }
@keyframes hotPulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.hot-sub { color: var(--text-muted); font-size: 14px; }
.hot-track { display: flex; gap: 16px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hot-card { flex: 0 0 min(320px, 82vw); scroll-snap-align: start; background: #fff; border: 1.5px solid #f6d9b0; border-left: 5px solid #e5484d; border-radius: 16px; padding: 18px 18px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .25s, box-shadow .25s; text-align: left; font-family: inherit; }
.hot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.hot-flag { align-self: flex-start; font: 700 11px var(--font); letter-spacing: .6px; text-transform: uppercase; color: #fff; background: #e5484d; padding: 4px 10px; border-radius: 100px; }
.hot-card h3 { font-size: 17px; color: var(--navy); line-height: 1.3; margin: 0; }
.hot-meta { font-size: 13px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.hot-meta i { color: var(--blue); margin-right: 4px; }
.hot-desc { font-size: 13.5px; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.hot-left { font-size: 12.5px; font-weight: 700; color: #c2410c; }
.hot-apply { font: 700 13px var(--font-display); color: var(--blue); }

/* ---------- Region pill flags ---------- */
.flag-ico { width: 16px; height: 12px; object-fit: cover; border-radius: 2px; vertical-align: -1px; margin-right: 5px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.badge-hot { background: #e5484d !important; color: #fff !important; }

/* ---------- Category cards (image slot + animated dropdown) ---------- */
.categories-grid { align-items: start; }
.cat-card { padding: 0 !important; overflow: hidden; cursor: pointer; text-align: left; position: relative; }
.cat-media { position: relative; height: 130px; overflow: hidden; background: linear-gradient(135deg, var(--blue-light), #e8edf7); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-media.empty { display: none; }
.cat-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,30,26,.45)); }
.cat-body { padding: 20px 22px 18px; }
.cat-card .cat-icon { position: relative; z-index: 1; }
.cat-media:not(.empty) + .cat-body .cat-icon { margin-top: -44px; box-shadow: 0 8px 20px rgba(0,0,0,.18); border: 3px solid #fff; }
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat-count.none { background: #f1f1ee; color: var(--text-muted); }
.cat-caret { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-pale); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: transform .35s, background .25s; flex-shrink: 0; }
.cat-card.open .cat-caret { transform: rotate(180deg); background: var(--blue); color: #fff; }
.cat-more, .step-more, .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.cat-card.open .cat-more, .step-card.open .step-more, .faq-item.open .faq-a { grid-template-rows: 1fr; }
.cat-more > div, .step-more > div, .faq-a > div { overflow: hidden; min-height: 0; }
.cat-more-inner { padding-top: 14px; border-top: 1px dashed var(--border); margin-top: 14px; }
.cat-more-inner p { font-size: 13.5px !important; color: var(--text) !important; margin-bottom: 10px !important; }
.word { display: inline-block; opacity: 0; transform: translateY(8px); }
.open .word { animation: wordIn .45s forwards; animation-delay: calc(var(--w) * 28ms + 150ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.role-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.role-chips span { font-size: 12px; font-weight: 600; background: var(--blue-pale); color: var(--blue); border: 1px solid var(--border); padding: 4px 10px; border-radius: 100px; opacity: 0; transform: scale(.9); }
.open .role-chips span { animation: chipIn .4s forwards; animation-delay: calc(var(--c) * 60ms + 250ms); }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.cat-go { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }

/* ---------- How-it-works cards ---------- */
.step-card { cursor: pointer; position: relative; }
.step-tap { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 700 12.5px var(--font-display); color: var(--blue); }
.step-tap i { transition: transform .35s; }
.step-card.open .step-tap i { transform: rotate(180deg); }
.step-more-inner { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); text-align: left; }
.step-more-inner ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.step-more-inner li { font-size: 13.5px; color: var(--text); line-height: 1.5; padding-left: 22px; position: relative; opacity: 0; transform: translateX(-8px); }
.step-more-inner li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; position: absolute; left: 0; top: 4px; color: var(--blue); }
.open .step-more-inner li { animation: liIn .45s forwards; animation-delay: calc(var(--c) * 90ms + 200ms); }
@keyframes liIn { to { opacity: 1; transform: none; } }
.steps-track { align-items: flex-start; }

/* ---------- Trust, safety, FAQ ---------- */
.trust-section { background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.trust-card { padding: 28px 24px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: var(--blue-pale); transition: all var(--transition); }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); background: #fff; }
.trust-card .ti { width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.trust-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.trust-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.safety-box { margin-top: 34px; display: flex; gap: 18px; align-items: flex-start; background: #fff8e8; border: 1.5px solid #f3d9a0; border-radius: var(--radius-lg); padding: 22px 24px; }
.safety-box > i { font-size: 26px; color: #c77d0a; margin-top: 2px; }
.safety-box h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.safety-box ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.safety-box li { font-size: 14px; line-height: 1.55; color: var(--text); }
.faq-section { background: var(--blue-pale); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.faq-item.open { border-color: var(--blue); box-shadow: var(--shadow); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; padding: 18px 20px; background: none; border: none; cursor: pointer; font: 700 15.5px var(--font-display); color: var(--navy); }
.faq-q i { color: var(--blue); transition: transform .35s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a p { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.7; color: var(--text); margin: 0; }

/* ---------- Footer extras ---------- */
.footer-badges span.licence { background: rgba(232,163,61,.15); border-color: rgba(232,163,61,.4); }
.footer-legal a { transition: color .2s; }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2500; max-width: 760px; margin: 0 auto; background: #041a3b; color: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.35); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; transform: translateY(140%); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.cookie-banner.show { transform: none; }
.cookie-banner p { flex: 1 1 280px; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,.88); margin: 0; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions button { cursor: pointer; border-radius: 100px; padding: 10px 18px; font: 700 13.5px var(--font-display); border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.cookie-actions button.primary { background: var(--gold); border-color: var(--gold); color: #0d1d3e; }

/* ---------- Legal pages ---------- */
.legal-top { background: #041a3b; padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.legal-top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.legal-top .logo { font-size: 18px; }
.legal-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.legal-nav a { color: rgba(255,255,255,.8); font-size: 13.5px; padding: 7px 12px; border-radius: 100px; }
.legal-nav a:hover, .legal-nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.policy-wrap { max-width: 800px !important; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); margin: 36px auto 60px !important; padding: 40px 36px 48px !important; box-shadow: var(--shadow); }
.policy-wrap table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.policy-wrap th, .policy-wrap td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy-wrap th { background: var(--blue-pale); color: var(--navy); }
.legal-foot { text-align: center; padding: 0 20px 40px; font-size: 13px; color: var(--text-muted); }
.legal-foot a { color: var(--blue); margin: 0 8px; font-weight: 600; }
@media (max-width: 600px) { .policy-wrap { padding: 26px 18px 34px !important; margin: 18px 12px 40px !important; } }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }

/* legal page typography */
body.legal { background: var(--blue-pale); }
.policy-wrap h1 { color: var(--navy); margin-bottom: 6px; font-size: clamp(26px, 4vw, 34px); }
.policy-wrap .updated { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }
.policy-wrap h2 { color: var(--navy); font-size: 18px; margin: 30px 0 10px; }
.policy-wrap p, .policy-wrap li { color: var(--text); font-size: 15px; line-height: 1.75; }
.policy-wrap p { margin: 0 0 10px; }
.policy-wrap ul { margin: 8px 0 12px 20px; display: grid; gap: 4px; }
.policy-wrap a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.policy-wrap .note { background: var(--blue-pale); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 14px; }

/* ---------- Photo posts (posters) ---------- */
.job-photo.poster img { object-position: top center; }
.jm-poster { margin: 14px 0 18px; }
.jm-poster img { display: block; width: 100%; max-height: 540px; object-fit: contain; background: #f4f4f1; border-radius: 14px; border: 1px solid var(--border); cursor: zoom-in; }
.jm-poster figcaption { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }
.lightbox { position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 14px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; cursor: pointer; }
.qp-preview { display: block; max-width: 100%; max-height: 280px; margin: 0 0 14px; border-radius: 12px; object-fit: contain; background: #f4f4f1; border: 1px solid var(--border); }
.qp-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 14px; cursor: pointer; }
.qp-check input { width: 18px; height: 18px; }
.qp-pending { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff8e8; border: 1px solid #f3d9a0; font-size: 13.5px; }
.qp-pending button { margin-left: 8px; cursor: pointer; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 100px; padding: 4px 12px; font-weight: 700; }
