/* ===========================================================================
   Samcruit careers site — shared public-site shell (header, hero, footer)
   and the role-listing grid. Standalone page: no admin sidebar shell.
   Every value below comes from the tokens in app.css; nothing is hard-coded.
   =========================================================================== */

.site { display: flex; flex-direction: column; min-height: 100%; }

/* ---------- header ------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header-inner {
  --od-gap: var(--s-4);
  max-width: 1240px;
  margin-inline: auto;
  padding: var(--s-3) var(--s-4);
}

.site-nav { --od-gap: var(--s-4); }
.nav-link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
  padding: var(--s-2) 0;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-current { color: var(--primary); }

/* ---------- hero ----------------------------------------------------------- */

.hero { padding: var(--s-8) var(--s-4) var(--s-6); }
.hero-inner { --od-gap: var(--s-3); max-width: 1240px; margin-inline: auto; }

.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 44ch;
}
@media (min-width: 900px) {
  .hero-title { font-size: var(--fs-display); line-height: var(--lh-display); }
}
.hero-sub {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-muted);
  max-width: 60ch;
}
.hero-stats { --od-gap: var(--s-8); margin-top: var(--s-2); }

/* ---------- role list ------------------------------------------------------ */

.roles { padding: 0 var(--s-4) var(--s-12); }
.roles-inner { --od-gap: var(--s-4); max-width: 1240px; margin-inline: auto; display: flex; flex-direction: column; }

.roles-toolbar { --od-gap: var(--s-4); flex-wrap: wrap; }
.toolbar-search { flex: 1 1 260px; max-width: 360px; }
.toolbar-mode { flex: 1 1 320px; }

.roles-grid { --od-cols: 1; --od-gap: var(--s-4); }
@media (min-width: 768px) { .roles-grid { --od-cols: 2; } }
@media (min-width: 1024px) { .roles-grid { --od-cols: 3; } }

.role-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-4);
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-state), box-shadow var(--t-state), border-color var(--t-state);
}
.role-card[hidden] { display: none; }
.role-card > * { min-width: 0; }
.role-card:hover {
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}
.role-card:active { transform: translateY(0); }

.role-head { --od-gap: var(--s-3); }
.role-head-text { --od-gap: var(--s-1); }
.role-title { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; }
.role-client { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-muted); }

.role-meta { --od-gap: var(--s-2); }

.role-foot {
  --od-gap: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.role-salary { font-weight: 600; }
.role-cta {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--primary);
}
.role-card:hover .role-cta { color: var(--primary-hover); }
.role-card:hover .role-cta svg { transform: translateX(2px); }
.role-cta svg { transition: transform var(--t-state); }

.roles-empty { padding: var(--s-8) 0; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .role-card:hover { transform: none; }
  .role-card:hover .role-cta svg { transform: none; }
}

/* ---------- footer --------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: var(--s-6) var(--s-4);
}
.site-footer-inner { --od-gap: var(--s-4); max-width: 1240px; margin-inline: auto; flex-wrap: wrap; }

.footer-legal-row { padding-top: var(--s-3); border-top: 1px solid var(--border); }
.footer-legal { --od-gap: var(--s-4); }
.footer-powered { text-align: right; }
