/*
Theme Name:   CJB Corporate
Theme URI:    https://example.com/cjb-corporate
Description:  A refined, editorial-style theme purpose-built for the Corporate Job Board plugin. Features a dark hero system, clean listing layouts, and a two-column single-job design.
Author:       Your Name
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain:  cjb-corporate
Tags:         job-board, corporate, two-columns, custom-header, custom-menu, translation-ready
*/

/* ── Google Fonts ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   THEME DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --c-slate-950: #0a0f1e;
  --c-slate-900: #0f172a;
  --c-slate-800: #1e293b;
  --c-slate-700: #334155;
  --c-slate-600: #475569;
  --c-slate-500: #64748b;
  --c-slate-400: #94a3b8;
  --c-slate-300: #cbd5e1;
  --c-slate-200: #e2e8f0;
  --c-slate-100: #f1f5f9;
  --c-slate-50:  #f8fafc;

  --c-emerald-600: #059669;
  --c-emerald-500: #10b981;
  --c-emerald-400: #34d399;
  --c-emerald-100: #d1fae5;
  --c-emerald-50:  #ecfdf5;

  --c-amber-500: #f59e0b;
  --c-red-500:   #ef4444;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(15,23,42,.06);
  --shadow-md:  0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --shadow-lg:  0 12px 40px rgba(15,23,42,.12);

  --transition: 180ms cubic-bezier(.4,0,.2,1);
  --container:  1200px;
  --content-w:  740px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-slate-800);
  background: var(--c-slate-50);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-emerald-600); transition: color var(--transition); }
a:hover { color: var(--c-emerald-700); }

/* ── Container ──────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  background: #fff;
  border-bottom: 1.5px solid var(--c-slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 20px rgba(15,23,42,.04);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--c-slate-900);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-logo-mark svg { width: 18px; height: 18px; color: var(--c-emerald-400); }

.site-logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-slate-900);
  letter-spacing: -.02em;
  line-height: 1;
}

.site-logo-text span { color: var(--c-emerald-500); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }

.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }

.site-nav a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-slate-600);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a {
  background: var(--c-slate-100);
  color: var(--c-slate-900);
}

/* Nav CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-post-job {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--c-emerald-500);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(16,185,129,.3);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-post-job:hover {
  background: var(--c-emerald-600);
  box-shadow: 0 6px 18px rgba(16,185,129,.4);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.btn-login {
  padding: 8px 16px;
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-slate-600);
  text-decoration: none;
  transition: all var(--transition);
  background: transparent;
  white-space: nowrap;
  display: inline-block;
}
.btn-login:hover {
  border-color: var(--c-slate-400);
  color: var(--c-slate-900);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-slate-700);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
.site-main { padding: 48px 0 80px; }

/* ── Page title bar ─────────────────────────────────────────────────────── */
.page-title-bar {
  background: #fff;
  border-bottom: 1.5px solid var(--c-slate-200);
  padding: 28px 0;
  margin-bottom: 40px;
}

.page-title-bar h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--c-slate-900);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.page-title-bar p {
  font-size: 15px;
  color: var(--c-slate-500);
  margin-top: 6px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-slate-400);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--c-slate-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-emerald-600); }
.breadcrumbs-sep { color: var(--c-slate-300); }
.breadcrumbs-current { color: var(--c-slate-700); font-weight: 500; }

/* ── Two-column layout ──────────────────────────────────────────────────── */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* Sidebar widget */
.sidebar-widget {
  background: #fff;
  border: 1.5px solid var(--c-slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-widget-title {
  background: var(--c-slate-50);
  border-bottom: 1.5px solid var(--c-slate-200);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-slate-500);
}

.sidebar-widget-body { padding: 18px 20px; }

.widget-category-list { list-style: none; }
.widget-category-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--c-slate-100);
}
.widget-category-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--c-slate-700);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.widget-category-list a:hover { color: var(--c-emerald-600); }
.widget-category-count {
  background: var(--c-slate-100);
  color: var(--c-slate-500);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY (general content)
   ═══════════════════════════════════════════════════════════════════════════ */
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--c-slate-900);
  margin-top: 32px;
  margin-bottom: 14px;
  line-height: 1.25;
}
.entry-content h1 { font-size: 32px; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 20px; }
.entry-content p  { margin-bottom: 18px; color: var(--c-slate-700); line-height: 1.8; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 18px; color: var(--c-slate-700); }
.entry-content li { margin-bottom: 8px; line-height: 1.7; }
.entry-content strong { font-weight: 600; color: var(--c-slate-900); }
.entry-content em { font-style: italic; }
.entry-content a { font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--c-slate-900);
  color: var(--c-slate-400);
  margin-top: 80px;
}

.site-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--c-slate-500);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-slate-300);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--c-slate-500);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--c-emerald-400); }

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--c-slate-600);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--c-slate-500); text-decoration: none; font-size: 13px; }
.footer-bottom-links a:hover { color: var(--c-slate-300); }

/* Emerald accent dot */
.footer-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-emerald-500);
  border-radius: var(--radius-full);
  margin: 0 6px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WORDPRESS CORE CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */
.alignleft  { float: left; margin: 0 28px 20px 0; }
.alignright { float: right; margin: 0 0 20px 28px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--c-slate-500); margin-top: 8px; font-style: italic; }

.sticky { border-left: 3px solid var(--c-emerald-500); padding-left: 20px; }

.screen-reader-text {
  clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden;
  position: absolute; width: 1px; word-wrap: normal;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-nav, .header-cta .btn-post-job { display: none; }
  .hamburger { display: flex; }
  .site-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 32px; }
}

@media (max-width: 600px) {
  .site-footer-top { grid-template-columns: 1fr; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn-login { display: none; }
}
/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 260ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav-inner {
  padding: 24px 20px;
}
.mobile-nav ul {
  list-style: none;
  margin-bottom: 24px;
}
.mobile-nav ul li {
  border-bottom: 1px solid var(--c-slate-100);
}
.mobile-nav ul a {
  display: block;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--c-slate-800);
  text-decoration: none;
}
.mobile-nav-cta {
  margin-top: 20px;
}
