/* ============================================================
   Apex Workforce Solution - design tokens
   ============================================================ */
:root {
  --bg-dark: #12181c;
  --bg-dark-2: #1b2328;
  --bg-light: #f6f3ec;
  --bg-card: #ffffff;
  --accent: #e8a33d;
  --accent-deep: #c97f1e;
  --text-dark: #12181c;
  --text-muted: #5b6469;
  --text-light: #f6f3ec;
  --text-light-muted: #b7bfc3;
  --line: rgba(18, 24, 28, 0.12);
  --line-dark: rgba(246, 243, 236, 0.16);
  --success: #3f7a5c;
  --success-bg: #e7f0ea;
  --radius: 10px;
  --max-w: 1120px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { line-height: 1.6; color: var(--text-muted); margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-dark { background: var(--bg-dark); color: var(--text-light); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text-dark); }
.btn-outline:hover { border-color: var(--text-dark); }
.btn-outline-light { background: transparent; border-color: var(--line-dark); color: var(--text-light); }
.btn-outline-light:hover { border-color: var(--text-light); }
.btn-whatsapp { background: #25d366; color: #06210f; }
.btn-whatsapp:hover { background: #1ebc59; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-light-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-light); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-dark);
  border-radius: 8px;
  color: var(--text-light);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-cta .btn-outline-light span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, #1e2830 0%, var(--bg-dark) 55%);
  color: var(--text-light);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}
.hero p.lead {
  color: var(--text-light-muted);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-light);
}
.hero-stat span { font-size: 0.85rem; color: var(--text-light-muted); }

/* ---------- Ticket (signature element) ---------- */
.ticket {
  background: var(--bg-card);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 88px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
  transform: rotate(-2.5deg);
  color: var(--text-dark);
  overflow: hidden;
}
.ticket-main { padding: 26px 22px; }
.ticket-eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ticket-role {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 6px 0 14px;
}
.ticket-rows { display: grid; gap: 8px; font-size: 0.85rem; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 12px; }
.ticket-rows span:first-child { color: var(--text-muted); }
.ticket-rows span:last-child { font-weight: 600; text-align: right; }
.ticket-stub {
  background: var(--bg-dark);
  color: var(--accent);
  border-left: 2px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  position: relative;
}
.ticket-stub::before, .ticket-stub::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-light);
  left: -9px;
}
.ticket-stub::before { top: -9px; }
.ticket-stub::after { bottom: -9px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 44px; }
.section-head .eyebrow { color: var(--accent-deep); }
.section-dark { background: var(--bg-dark); color: var(--text-light); }
.section-dark p { color: var(--text-light-muted); }
.section-dark h2 { color: var(--text-light); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; }
  .ticket { transform: none; max-width: 420px; margin: 0 auto; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fdf1de;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 4px; font-size: 1.05rem; }

/* ---------- Job cards / list ---------- */
.job-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.job-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.job-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.job-card .company { color: var(--text-muted); font-size: 0.9rem; }
.tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  white-space: nowrap;
}
.tag-closed { background: #f2e4e2; color: #a3402f; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.meta-row span { display: flex; align-items: center; gap: 6px; }
.job-card .summary { font-size: 0.92rem; margin-bottom: 0; }
.job-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.ref { font-family: var(--font-display); font-weight: 700; color: var(--accent-deep); }

.jobs-toolbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.jobs-toolbar input, .jobs-toolbar select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  color: var(--text-dark);
}
.jobs-toolbar input { flex: 1; min-width: 220px; }
.jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .jobs-grid { grid-template-columns: 1fr; } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ---------- Job details ---------- */
.job-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.job-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .job-detail-grid { grid-template-columns: 1fr; } }
.apply-card {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 100px;
}
.apply-card p { color: var(--text-light-muted); font-size: 0.9rem; }
.apply-card .btn { margin-bottom: 10px; }
.info-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: 0.88rem; }
.info-list li { display: flex; justify-content: space-between; border-top: 1px solid var(--line-dark); padding-top: 10px; }
.info-list li:first-child { border-top: none; padding-top: 0; }
.info-list span:first-child { color: var(--text-light-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: 18px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: #4a3110; margin: 0; }

/* ---------- Forms ---------- */
.form-field { display: grid; gap: 6px; margin-bottom: 20px; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  color: var(--text-dark);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-light-muted); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--text-light); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--text-light-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--text-light); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 56px 0;
}
.page-banner .eyebrow { color: var(--accent); }
.page-banner p { color: var(--text-light-muted); max-width: 60ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 60;
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Admin panel ---------- */
.pin-gate {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.pin-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.pin-card input {
  text-align: center;
  letter-spacing: 0.3em;
  font-size: 1.3rem;
  font-family: var(--font-display);
}
.pin-error {
  color: #a3402f;
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.admin-row-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 6px; }
.admin-row-actions { display: flex; gap: 10px; }
.unsaved-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fdf1de;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 24px;
}
.form-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .form-field.full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.admin-note {
  background: #eef4f1;
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.9rem;
  color: #2f5c46;
  margin-bottom: 32px;
}
