/* =====================================================
   STAFFPLACE · DESIGN SYSTEM
   Vanilla CSS · Mobile-first base styles
   Responsive overrides live in /css/responsive.css
   ===================================================== */

:root,
[data-theme="dark"] {
  /* Dark palette (default) */
  --bg: #0B1220;
  --surface: #111827;
  --surface-hover: #0F172A;
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --line: #1F2937;
  --line-strong: #374151;
  --accent: #22C55E;
  --accent-hover: #16A34A;
  --accent-text: #052e16;
  --warn: #F59E0B;
  --error: #F87171;

  /* Theme-aware alphas */
  --alpha-surface: rgba(255,255,255,0.02);
  --alpha-surface-2: rgba(255,255,255,0.04);
  --alpha-surface-3: rgba(255,255,255,0.07);
  --alpha-accent: rgba(34,197,94,0.08);
  --alpha-accent-soft: rgba(34,197,94,0.04);
  --sticky-bg: rgba(17,24,39,0.95);
  --scrim-bg: rgba(11,18,32,0.85);
  --color-scheme: dark;

  /* Layout tokens (theme-independent) */
  --max-width: 1280px;
  --gutter: 20px;
  --gutter-lg: 32px;
  --radius: 8px;
  --radius-lg: 12px;

  /* Type tokens */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Eyebrow */
  --eyebrow-tracking: 0.18em;
}

[data-theme="light"] {
  /* Light palette */
  --bg: #FFFFFF;
  --surface: #F4F6F8;
  --surface-hover: #EEF1F5;
  --text: #0B1220;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --accent: #16A34A;
  --accent-hover: #15803D;
  --accent-text: #FFFFFF;
  --warn: #B45309;
  --error: #B91C1C;

  --alpha-surface: rgba(11,18,32,0.02);
  --alpha-surface-2: rgba(11,18,32,0.04);
  --alpha-surface-3: rgba(11,18,32,0.06);
  --alpha-accent: rgba(22,163,74,0.10);
  --alpha-accent-soft: rgba(22,163,74,0.05);
  --sticky-bg: rgba(244,246,248,0.95);
  --scrim-bg: rgba(255,255,255,0.85);
  --color-scheme: light;
}

/* In light theme, surface sections + footer become dark "islands" — */
/* re-scoped to dark palette so all child text, hairlines and inputs flip. */
[data-theme="light"] .section--surface,
[data-theme="light"] .footer {
  --bg: #0B1220;
  --surface: #111827;
  --surface-hover: #0F172A;
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --line: #1F2937;
  --line-strong: #374151;
  --accent: #22C55E;
  --accent-hover: #5C90FF;
  --accent-text: #052e16;
  --alpha-surface: rgba(255,255,255,0.02);
  --alpha-surface-2: rgba(255,255,255,0.04);
  --alpha-surface-3: rgba(255,255,255,0.07);
  --alpha-accent: rgba(34,197,94,0.08);
  --alpha-accent-soft: rgba(34,197,94,0.04);

  background: var(--bg);
  color: var(--text);
}

html { color-scheme: var(--color-scheme); }

/* =====================================================
   1. RESET / BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.011em;
  overscroll-behavior-y: none;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; text-decoration: none; transition: color .18s ease, border-color .18s ease; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }

a, button, summary, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

::selection { background: var(--accent); color: var(--accent-text); }

/* =====================================================
   2. LAYOUT
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section--surface { background: var(--surface); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
}

/* =====================================================
   3. TYPOGRAPHY
   ===================================================== */
.font-display,
.display {
  font-family: var(--font-display);
  letter-spacing: -0.028em;
  font-weight: 600;
  line-height: 1.02;
}
.display--xl { font-size: 40px; line-height: 0.98; }
.display--lg { font-size: 36px; }
.display--md { font-size: 28px; }
.display--sm { font-size: 22px; line-height: 1.1; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  color: var(--muted);
}

.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  max-width: 540px;
  margin-top: 32px;
}

.text-muted { color: var(--muted); }
.text-primary { color: var(--text); }
.text-accent { color: var(--accent); }
.muted { color: var(--muted); font-weight: 400; font-size: 0.85em; }

.mono,
.font-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.row-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.link {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.link:hover { border-color: var(--accent); }

/* =====================================================
   4. HAIRLINES & DIVIDERS
   ===================================================== */
.hairline-t { border-top: 1px solid var(--line); }
.hairline-b { border-bottom: 1px solid var(--line); }
.hairline-l { border-left: 1px solid var(--line); }
.hairline-r { border-right: 1px solid var(--line); }

/* =====================================================
   5. BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border-radius: var(--radius);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  text-align: center;
}
.btn--sm { padding: 8px 14px; height: 36px; font-size: 13px; }
.btn--md { padding: 14px 20px; height: 48px; }
.btn--lg { padding: 16px 26px; height: 56px; font-size: 16px; }

.btn--accent { background: var(--accent); color: var(--accent-text); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--accent:active { transform: scale(0.985); }

.btn--line { background: transparent; color: var(--text); border-color: var(--line); }
.btn--line:hover { border-color: var(--line-strong); background: var(--alpha-surface); }

.btn--ghost { background: var(--alpha-surface-2); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--alpha-surface-3); }

/* =====================================================
   6. UTILITY BAR
   ===================================================== */
.utility-bar {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.utility-bar__inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.utility-bar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.utility-bar__sep { color: var(--line-strong); margin: 0 8px; }
.utility-bar__cities { display: none; color: var(--muted); }
.utility-bar__meta { display: none; }

.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: rgba(34,197,94,0.25);
  animation: ping 2.4s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping {
  0% { transform: scale(0.8); opacity: 1; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

/* =====================================================
   7. NAVBAR
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.navbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__brand { display: inline-flex; align-items: center; }
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.028em;
}
.brand-name__accent { color: var(--accent); }

/* Preloader / loading screen */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0B1220;
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.preloader__brand {
  color: #FFFFFF;
  font-size: 34px;
  font-weight: 800;
  opacity: 0;
  animation: preloaderFadeUp .55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.preloader__bar {
  position: relative;
  width: 168px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.preloader__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 2px;
  background: var(--accent);
  animation: preloaderSlide 1.1s ease-in-out infinite;
}
.preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes preloaderFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes preloaderSlide {
  0%   { left: -40%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__brand { animation: none; opacity: 1; }
  .preloader__bar::after { animation: none; width: 100%; }
  .preloader { transition: none; }
}

.navbar__nav { display: none; gap: 32px; font-size: 14px; }
.navbar__nav a { color: var(--muted); }
.navbar__nav a:hover { color: var(--text); }
.navbar__nav a.is-active { color: var(--text); font-weight: 500; }

.navbar__actions { display: none; align-items: center; gap: 20px; }
.navbar__phone { font-size: 14px; color: var(--text); font-weight: 500; font-family: var(--font-mono); }
.navbar__phone:hover { color: var(--accent); }

.navbar__menu-btn {
  width: 44px;
  height: 44px;
  margin-right: -8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.navbar__menu-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.navbar__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.navbar__menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: opacity .25s ease, transform .25s ease;
  opacity: 1;
}
.mobile-menu[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter);
}
.mobile-menu nav a {
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu nav a.is-active { font-weight: 500; }
.mobile-menu__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px var(--gutter) 20px;
}

/* =====================================================
   8. HERO
   ===================================================== */
.hero {
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  padding: 48px var(--gutter) 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.hero__pitch { min-width: 0; }
.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
}
.hero__cta .btn { width: 100%; }

.hero__roles { width: 100%; }

/* Trust microcopy strip directly under hero CTAs */
.hero__trust {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hero__trust .sep { color: var(--line-strong); }

/* Hubs strip below trust */
.hero__hubs {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.hero__hubs-link {
  display: inline;
  color: var(--text);
}
.hero__hubs-link:hover { color: var(--accent); }
.hero__hubs-link .text-accent { margin-left: 4px; }

/* Promise section signature — accent green eyebrow */
.section--promise .eyebrow { color: var(--accent); }

/* Hero stats — full bleed table (2-column on mobile, 4-column on desktop) */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-stats__cell {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
/* In a 2-column grid, only the right-column cells get a left border + indent */
.hero-stats__cell:nth-child(2n) {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.hero-stats__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.hero-stats__label { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Trust list inside hero (vertical numbers / labels strip) */
.trust-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.trust-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-list__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.trust-list__value { font-size: 14px; color: var(--text); }

/* Roles availability card (operations panel) */
.roles-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.roles-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.roles-card__updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.roles-card__list { display: flex; flex-direction: column; }
.roles-card__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.roles-card__list li:last-child { border-bottom: 0; }
.role-status {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.role-status--open { background: var(--accent); box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }
.role-status--limited { background: var(--warn); box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.role-name { font-size: 15px; font-weight: 500; }
.role-pay {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.role-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.roles-card__foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.legend--end { margin-left: auto; }

/* =====================================================
   9. SERVICES TABLE (homepage / hire)
   ===================================================== */
.services-table { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num title pay"
    "desc desc desc";
  column-gap: 12px;
  row-gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
  align-items: baseline;
}
.service-row:hover { background: var(--surface-hover); }
.service-row .row-num { grid-area: num; }
.service-row__title { grid-area: title; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.025em; min-width: 0; }
.service-row__desc { grid-area: desc; font-size: 14px; color: var(--muted); line-height: 1.5; }
.service-row__pay { grid-area: pay; text-align: right; }
.pay-rate {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pay-rate__unit { color: var(--muted); font-weight: 400; }
.pay-rate--muted {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =====================================================
   10. GUARANTEE / EDITORIAL HEADLINE
   ===================================================== */
.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.editorial__headline {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.028em;
}

/* =====================================================
   11. TESTIMONIAL / PULL-QUOTE
   ===================================================== */
.pull-quote {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-weight: 500;
  font-size: 28px;
  color: var(--text);
}
.pull-quote-attr {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.pull-quote-sep { background: var(--line); width: 1px; height: 16px; display: inline-block; }

/* =====================================================
   12. PROCESS / NUMBERED STEPS (split layout)
   ===================================================== */
.process {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}
.process__step {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.process__step:last-child { border-bottom: 0; }
.process__step .row-num {
  display: inline-block;
  margin-right: 10px;
}
.process__time {
  display: inline-block;
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.process__time::before {
  content: '· ';
  color: var(--muted);
  margin-right: 4px;
}
.process__title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 8px;
  letter-spacing: -0.025em;
}
.process__desc {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 32ch;
}

/* Process row variant (no time, used in long lists) */
.process-row {
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
}
.process-row__num { padding-top: 4px; }
.process-row__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.process-row__desc { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* =====================================================
   13. WHY / VALUE GRID
   ===================================================== */
.why-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}
.why-cell {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.why-cell__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 20px;
  letter-spacing: -0.025em;
}
.why-cell__desc {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Tabular row layout (Why on homepage style) */
.why-row {
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.why-row__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.why-row__desc { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* =====================================================
   14. FAQ ACCORDION
   ===================================================== */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--muted);
  transition: transform .25s ease, opacity .25s ease;
}
.faq-toggle::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-toggle::after { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.faq-item[open] .faq-toggle::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item[open] summary { color: var(--text); }
.faq-body {
  padding: 0 0 28px;
  margin-top: -4px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 64ch;
}
.faq-item[open] .faq-body {
  animation: faqReveal .32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] .faq-body { animation: none; }
}

/* =====================================================
   15. FORMS
   ===================================================== */
.input,
.input-line {
  width: 100%;
  background: var(--alpha-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.input::placeholder { color: var(--muted); opacity: 0.7; }
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--alpha-accent-soft);
}
.input-line {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
}
.input-line:focus { outline: none; border-bottom-color: var(--accent); background: transparent; }
textarea.input,
textarea.input-line { resize: none; min-height: 96px; }
.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field { display: flex; flex-direction: column; }
.field__label,
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field__error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--error);
  display: none;
}
.field.has-error .field__error { display: block; }
.field.has-error .input,
.field.has-error .input-line,
.field.has-error .chip-group { border-color: var(--error); }
.req { color: var(--accent); margin-left: 2px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.field--span-2 { grid-column: 1 / -1; }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip { position: relative; display: inline-flex; align-items: center; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  background: var(--alpha-surface);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}
.chip:hover span { border-color: var(--line-strong); }
.chip input:checked + span {
  border-color: var(--accent);
  background: var(--alpha-accent);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-foot {
  margin-top: 32px;
  display: flex;
  flex-direction: column-reverse;
  gap: 16px;
}
.reassurance { font-size: 12px; color: var(--muted); }

.form-success {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--alpha-accent);
}
.form-success__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}
.form-success__body { margin-top: 6px; font-size: 14px; color: var(--text); }

.form-error {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  background: rgba(248,113,113,0.06);
}
.form-error__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--error);
}
.form-error__body { margin-top: 4px; font-size: 14px; color: var(--text); }
.form-error__body a { color: var(--accent); border-bottom: 1px solid var(--line); }

/* Form panel (used in hire-staff hero) */
.form-panel {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--gutter);
  margin: 0 calc(var(--gutter) * -1);
}
.form-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.form-panel__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.025em; }
.form-panel__sub { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* =====================================================
   16. REQUIREMENTS COLUMNS
   ===================================================== */
.reqs-cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
.reqs-col__head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.reqs-col__tag {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
}
.reqs-col__tag--required { border-color: var(--accent); color: var(--accent); }
.reqs-list { display: grid; grid-template-columns: 1fr; }
.reqs-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.reqs-list li:last-child { border-bottom: 0; }
.reqs-list__title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.reqs-list__desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* =====================================================
   17. CONTACT BLOCKS (phone, whatsapp, email)
   ===================================================== */
.contact-channels {}
.contact-channel {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.contact-channel:last-child { border-bottom: 1px solid var(--line); }
.contact-channel__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.contact-channel__value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.contact-channel__value.mono { font-family: var(--font-mono); font-weight: 600; }
.contact-channel:hover .contact-channel__value { color: var(--accent); }
.contact-channel__arrow { color: var(--muted); font-size: 18px; }

/* =====================================================
   18. ABOUT — TIMELINE / VALUES
   ===================================================== */
.timeline {
  border-top: 1px solid var(--line);
}
.timeline__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__year {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  width: 80px;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.timeline__desc {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 60ch;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.fact-cell {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
/* Mobile (2-col): only right-column cells get a left border + indent */
.fact-cell:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 24px; }
.fact-cell__value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.028em;
}
.fact-cell__label { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* =====================================================
   19. FOOTER
   ===================================================== */
.footer { background: var(--surface); }
.footer__grid {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.footer__brand p {
  margin-top: 24px;
  max-width: 360px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.footer__heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: var(--eyebrow-tracking);
  color: var(--muted);
}
.footer__list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer__list a { color: var(--text); }
.footer__list a:hover { color: var(--accent); }
.footer__list .mono { font-family: var(--font-mono); }

.footer__legal {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.footer__legal a { margin-right: 20px; color: var(--muted); }
.footer__legal a:hover { color: var(--text); }

/* =====================================================
   20. STICKY MOBILE BAR
   ===================================================== */
.sticky-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  background: var(--sticky-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(0);
  transition: transform .3s ease;
}
/* Soft fade above the sticky bar so content doesn't cut hard */
.sticky-bar::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(to top, var(--scrim-bg), transparent);
  pointer-events: none;
}
.sticky-bar.is-hidden { transform: translateY(110%); }
.sticky-bar__inner {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* =====================================================
   21. SECTION HEAD HELPERS
   ===================================================== */
.heading-block { display: grid; gap: 24px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.22,.8,.2,1), transform .9s cubic-bezier(.22,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* =====================================================
   22. PAY CALCULATOR
   ===================================================== */
.calc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.calc__inputs {
  padding: 32px 0;
  display: grid;
  gap: 24px;
}
.calc__output {
  background: var(--surface);
  margin: 0 calc(var(--gutter) * -1);
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
}
.calc__field {
  display: grid;
  gap: 8px;
}
.calc__field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calc__field-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.calc__select {
  width: 100%;
  background: var(--alpha-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 36px 14px 16px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.calc__select:focus { outline: none; border-color: var(--accent); }
.calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.calc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.calc__output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calc__output-cell { padding: 20px 0; }
.calc__output-cell + .calc__output-cell {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.calc__primary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 8px;
}
.calc__primary-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calc__primary-value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1;
}
.calc__secondary-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.calc__secondary-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.calc__disclaimer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .calc { grid-template-columns: 1fr 1fr; gap: 0; }
  .calc__inputs { padding: 32px 32px 32px 0; }
  .calc__output { margin: 0; padding: 32px 0 32px 32px; border-top: 0; border-left: 1px solid var(--line); background: transparent; }
  .calc__primary-value { font-size: 72px; }
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
