:root {
  --paper: #fff8e9;
  --ink: #3e2c39;
  --cream: #fff7df;
  --yellow: #ffd15c;
  --yellow-light: #ffe18a;
  --saffron: #f5a819;
  --hibiscus: #c62f66;
  --oasis: #316d60;
  --coral: #ef795d;
  --plum: #65435b;
  --mountain-back: #40384f;
  --mountain-front: #2f5054;
  --border-warm: #efe0c4;
  --muted: #8a7a63;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

[dir="rtl"] body, .font-arabic { font-family: 'Cairo', 'DM Sans', sans-serif; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 7.5vw, 108px);
  background: var(--paper);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.04em; }
.brand-mark {
  display: grid; width: 39px; height: 39px; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--saffron);
  box-shadow: 0 2px 0 rgba(62,44,57,0.16); font-size: 17px; font-weight: 900;
}
.header-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); font-size: 14px; font-weight: 600; }
.header-nav .muted { color: #725c58; font-weight: 500; }

/* ---------- Buttons (offset-shadow recipe) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--yellow); box-shadow: 0 4px 0 var(--ink); color: var(--ink);
  font-weight: 800; padding: 0 22px; cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { background: var(--yellow-light); transform: translateY(-2px); }
.button:active { box-shadow: none; transform: translateY(3px); }
.button:disabled { opacity: 0.6; cursor: default; transform: none; }
.button.secondary { background: white; }
.button.small { min-height: 34px; padding: 0 14px; font-size: 13px; }
.button.teal { background: var(--oasis); color: white; }
.button.outline { background: transparent; box-shadow: none; }

/* ---------- Cards ---------- */
.card {
  background: white; border: 1.5px solid var(--border-warm); border-radius: 16px; padding: 16px;
}

/* ---------- Job card ---------- */
.job-card { display: flex; gap: 14px; align-items: center; }
.job-logo {
  width: 46px; height: 46px; border-radius: 10px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--saffron);
  font-size: 13px; flex-shrink: 0; overflow: hidden;
}
.job-logo img { width: 100%; height: 100%; object-fit: cover; }
.job-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.job-title:hover { color: var(--hibiscus); }
.job-meta { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-inline-end: 6px; }
.tag-remote { background: #e8f0ec; color: var(--oasis); }
.tag-level { background: #fbe3ec; color: var(--hibiscus); }
.tag-salary { background: var(--yellow); color: var(--ink); border: 1.5px solid var(--ink); padding: 5px 12px; }

/* ---------- Wave divider ---------- */
.wave-divider { position: relative; height: 60px; margin-top: -1px; overflow: hidden; background: var(--plum); }
.wave-divider::before, .wave-divider::after {
  position: absolute; left: -10%; width: 120%; height: 100%; border-radius: 50% 50% 0 0; content: "";
}
.wave-divider::before { top: 20px; background: var(--paper); transform: rotate(-2deg); }
.wave-divider::after { top: 38px; background: #c8d7d0; opacity: 0.55; transform: rotate(2deg); }

/* ---------- Layout helpers ---------- */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  border: 1.5px solid var(--border-warm); border-radius: 12px; padding: 12px 14px; font-size: 14px; background: white; color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--saffron); }
.error-text { color: var(--hibiscus); font-size: 13px; }
.helper-text { color: var(--muted); font-size: 13px; }

.two-col { display: flex; gap: 24px; }
.sidebar { width: 240px; flex-shrink: 0; }
@media (max-width: 800px) { .two-col { flex-direction: column; } .sidebar { width: 100%; } }
