/* =============================================================================
   FreightMover247: Design System
   Premium logistics aesthetic: deep navy/charcoal, off-white, one accent.
   ============================================================================= */

:root {
  --cx-navy-950: #080f1a;
  --cx-navy-900: #0d1826;
  --cx-navy-800: #142238;
  --cx-navy-700: #1c2f4a;
  --cx-charcoal: #1a1e24;
  --cx-white: #ffffff;
  --cx-off-white: #f6f5f1;
  --cx-paper: #fbfaf7;
  --cx-ink: #111418;
  --cx-ink-soft: #4a5160;
  --cx-line: #e4e1d8;
  --cx-line-dark: rgba(255, 255, 255, 0.12);
  --cx-accent: #c1272d;       /* bold logistics red, echoes the FreightMover247 wordmark */
  --cx-accent-dark: #96181d;
  --cx-accent-light: #f0b3b3;
  --cx-success: #2f7a4d;

  --cx-radius-sm: 4px;
  --cx-radius-md: 8px;
  --cx-radius-lg: 14px;

  --cx-shadow-sm: 0 1px 2px rgba(10, 15, 25, 0.06), 0 1px 1px rgba(10, 15, 25, 0.04);
  --cx-shadow-md: 0 8px 24px rgba(10, 15, 25, 0.08), 0 2px 6px rgba(10, 15, 25, 0.05);
  --cx-shadow-lg: 0 24px 64px rgba(10, 15, 25, 0.16), 0 6px 16px rgba(10, 15, 25, 0.08);

  --cx-container: 1180px;
  --cx-font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --cx-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The mobile off-canvas nav (.main-nav below) is position:fixed and hidden
   via transform: translateX(100%) when closed. Browsers still factor a
   transformed fixed element's full box into the page's scrollable width,
   so without this guard the page reports itself as ~2x the viewport width
   on any screen under the 1180px nav breakpoint, forcing the whole layout
   to shrink/zoom to fit. overflow-x: hidden on the root elements prevents
   that phantom horizontal scroll without affecting the menu's animation. */
html, body { overflow-x: hidden; }
/* The header is position:sticky at 84px tall, so any in-page anchor jump
   (e.g. #openings, #freight-administrator, #services, #about, the
   "Skip to content" link) needs this much breathing room above it, or the
   target lands hidden underneath the header. */
section[id], main[id] { scroll-margin-top: 100px; }
body {
  margin: 0;
  font-family: var(--cx-font-body);
  color: var(--cx-ink);
  background: var(--cx-paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--cx-font-display); font-weight: 700; line-height: 1.14; margin: 0 0 0.5em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container { max-width: var(--cx-container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
@media (max-width: 400px) { .container { padding: 0 16px; } }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-accent-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--cx-accent-light); }

section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--cx-navy-950); color: rgba(255,255,255,0.92); }
.section--alt { background: var(--cx-off-white); }

.h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lede { font-size: 1.2rem; color: var(--cx-ink-soft); max-width: 640px; }
.section--dark .lede { color: rgba(255,255,255,0.72); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--cx-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--cx-accent-light); outline-offset: 2px; }
.btn-primary { background: var(--cx-accent); color: var(--cx-white); }
.btn-primary:hover { background: var(--cx-accent-dark); box-shadow: var(--cx-shadow-md); }
.btn-secondary { background: transparent; color: var(--cx-white); border-color: rgba(255,255,255,0.4); }
.btn-secondary:hover { border-color: var(--cx-white); background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--cx-ink); border-color: var(--cx-ink); }
.btn-outline:hover { background: var(--cx-ink); color: var(--cx-white); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--cx-accent-dark); padding: 10px 14px; min-height: auto; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 15, 26, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; }
.logo svg { display: block; width: 178px; height: auto; transition: transform 0.2s ease; }
.logo:hover svg { transform: scale(1.04); }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo svg { width: 230px; max-width: 60vw; height: auto; display: block; }
@media (max-width: 480px) {
  .logo svg { width: 150px; }
}
@media (max-width: 400px) {
  .logo svg { width: 130px; }
  .nav-toggle { width: 40px; height: 40px; }
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: rgba(255,255,255,0.82); font-size: 0.92rem; font-weight: 500; white-space: nowrap; transition: color 0.15s ease; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--cx-white); border-color: var(--cx-accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.3); border-radius: 6px; width: 44px; height: 44px; color: white; cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 1180px) {
  .main-nav {
    position: fixed; top: 84px; right: 0; bottom: 0; left: 0; z-index: 60;
    height: calc(100vh - 84px); height: calc(100dvh - 84px);
    background: var(--cx-navy-950); flex-direction: column; align-items: flex-start;
    padding: 32px 24px calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 4px; transform: translateX(100%); transition: transform 0.25s ease;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary-header { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */
/*
  Hero sections use a real photograph (assets/images/hero-truck.jpg) as the
  background via .hero__bg, with .hero__scrim laid over it so the light sky
  in the photo does not fight with the white heading text. .hero--visual is
  kept as a photo-free fallback (a navy gradient field) for any page that
  should not carry the photo.
*/
.hero { position: relative; color: var(--cx-white); overflow: hidden; background: var(--cx-navy-950); }
.hero--visual {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(193,39,45,0.22), transparent 60%),
    radial-gradient(900px 500px at 12% 110%, rgba(28,47,74,0.9), transparent 55%),
    linear-gradient(180deg, #080f1a 0%, #0d1826 60%, #0a1220 100%);
}
.hero--visual::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 64px);
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.9) 40%, transparent 90%);
}
/* Signature route/pin motif: keeps the photo-free hero banners (About,
   Services, How It Works, Quote, Contact) from reading as a flat, empty
   color block. Purely decorative, so it is hidden from assistive tech and
   clipped/faded on small screens rather than removed, to avoid crowding
   the heading text. */
.hero--visual::after {
  content: "";
  position: absolute; z-index: 0;
  top: 50%; right: -6%; width: 620px; height: 620px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20640%20640%22%3E%3Ccircle%20cx%3D%22320%22%20cy%3D%22320%22%20r%3D%22260%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20opacity%3D%220.14%22%2F%3E%3Cellipse%20cx%3D%22320%22%20cy%3D%22320%22%20rx%3D%22260%22%20ry%3D%22104%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20opacity%3D%220.14%22%2F%3E%3Cellipse%20cx%3D%22320%22%20cy%3D%22320%22%20rx%3D%22104%22%20ry%3D%22260%22%20fill%3D%22none%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%221.5%22%20opacity%3D%220.14%22%2F%3E%3Cpath%20d%3D%22M120%20400%20Q%20300%20220%20520%20260%22%20fill%3D%22none%22%20stroke%3D%22%23e8737a%22%20stroke-width%3D%224%22%20stroke-linecap%3D%22round%22%20stroke-dasharray%3D%223%2016%22%20opacity%3D%220.75%22%2F%3E%3Ccircle%20cx%3D%22120%22%20cy%3D%22400%22%20r%3D%229%22%20fill%3D%22%23ffffff%22%20opacity%3D%220.55%22%2F%3E%3Ccircle%20cx%3D%22520%22%20cy%3D%22260%22%20r%3D%2213%22%20fill%3D%22%23c1272d%22%2F%3E%3Ccircle%20cx%3D%22520%22%20cy%3D%22260%22%20r%3D%2222%22%20fill%3D%22none%22%20stroke%3D%22%23c1272d%22%20stroke-width%3D%222%22%20opacity%3D%220.5%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat; background-size: contain;
  pointer-events: none;
}
@media (max-width: 900px) { .hero--visual::after { opacity: 0.6; right: -18%; } }
@media (max-width: 640px) { .hero--visual::after { display: none; } }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,11,20,0.94) 0%, rgba(6,11,20,0.8) 32%, rgba(6,11,20,0.38) 60%, rgba(6,11,20,0.12) 100%),
    linear-gradient(180deg, rgba(6,11,20,0.15) 0%, rgba(6,11,20,0.1) 55%, rgba(6,11,20,0.6) 100%);
}
/* padding-top/bottom only (never the shorthand) -- .hero__content is always
   combined on the same element as .container (e.g. class="container
   hero__content"), and the 3-value padding shorthand's "0" for left/right
   would silently override .container's own 24px/16px side padding, since
   both are single-class selectors and this rule comes later in the file.
   That was flattening every hero heading/paragraph/button flush against
   the screen edges on mobile. */
.hero__content { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 120px; }
.hero__eyebrow { color: var(--cx-accent-light); }
.hero h1 { max-width: 820px; color: var(--cx-white); }
.hero__sub { max-width: 560px; font-size: 1.15rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero__content { padding-top: 108px; padding-bottom: 72px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
}

/* ---- Visual panels (photography stand-ins) ------------------------------ */
/* Same rationale as .hero--visual above: styled panels in place of the
   secondary photography (loading dock, warehouse, ops desk, distribution
   center) called for in the brief, ready to be replaced by an <img> with
   the same class footprint once real photos are dropped into assets/images/. */
.visual-panel {
  position: relative;
  border-radius: var(--cx-radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, var(--cx-navy-900), var(--cx-navy-700));
  min-height: 320px;
  display: flex; align-items: flex-end;
  color: white;
  isolation: isolate;
}
.visual-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 46px);
}
.visual-panel::after {
  content: "";
  position: absolute; z-index: 0; width: 260px; height: 260px; border-radius: 50%;
  right: -80px; top: -80px; background: radial-gradient(circle, rgba(193,39,45,0.35), transparent 70%);
}
.visual-panel__icon { position: absolute; top: 28px; left: 28px; z-index: 2; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; color: var(--cx-accent-light); }
.visual-panel__caption { position: relative; z-index: 2; padding: 24px 28px; font-size: 0.85rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.75); background: linear-gradient(180deg, transparent, rgba(4,8,14,0.55)); width: 100%; }
.visual-panel__illus { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 84px 16px 96px; box-sizing: border-box; }

/* ---- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cx-white);
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--cx-shadow-md); transform: translateY(-2px); }
.card__index { font-family: var(--cx-font-display); font-size: 0.95rem; color: var(--cx-accent); font-weight: 700; margin-bottom: 14px; }
.card--dark { background: var(--cx-navy-900); border-color: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.card--dark h3 { color: var(--cx-white); }

.icon-tile { width: 46px; height: 46px; border-radius: 10px; background: rgba(193,39,45,0.12); color: var(--cx-accent-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

/* ---- Responsibilities list ------------------------------------------- */
.resp-card ul { margin-top: 14px; }
.resp-card li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--cx-ink-soft); font-size: 0.96rem; }
.resp-card li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-accent); }

/* ---- Timeline ----------------------------------------------------------- */
.timeline { display: flex; gap: 0; margin-top: 40px; }
.timeline__step { flex: 1; position: relative; padding: 0 18px 0 0; }
.timeline__num { font-family: var(--cx-font-display); font-size: 1.6rem; color: var(--cx-accent); font-weight: 700; }
.timeline__line { position: absolute; top: 14px; left: -10%; width: 20%; height: 1px; background: var(--cx-line); }
.timeline__step:first-child .timeline__line { display: none; }
.timeline h4 { margin-bottom: 6px; font-size: 1.02rem; }
.timeline p { color: var(--cx-ink-soft); font-size: 0.92rem; margin-bottom: 0; }
@media (max-width: 900px) {
  .timeline { flex-direction: column; gap: 28px; }
  .timeline__line { display: none !important; }
  .timeline__step { padding-left: 24px; border-left: 2px solid var(--cx-line); padding-bottom: 4px; }
}

/* ---- Info strip / position facts -------------------------------------- */
.fact-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--cx-line); border-radius: var(--cx-radius-lg); overflow: hidden; }
.fact-strip__item { padding: 26px 20px; border-right: 1px solid var(--cx-line); background: var(--cx-white); }
.fact-strip__item:last-child { border-right: none; }
.fact-strip__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cx-ink-soft); margin-bottom: 6px; }
.fact-strip__value { font-family: var(--cx-font-display); font-size: 1.15rem; font-weight: 600; }
@media (max-width: 900px) { .fact-strip { grid-template-columns: repeat(2, 1fr); } .fact-strip__item:nth-child(2n) { border-right: none; } }
@media (max-width: 520px) { .fact-strip { grid-template-columns: 1fr; } .fact-strip__item { border-right: none !important; border-bottom: 1px solid var(--cx-line); } }

/* ---- Training callout --------------------------------------------------- */
.callout {
  background: linear-gradient(135deg, var(--cx-navy-950), var(--cx-navy-800));
  color: white;
  border-radius: var(--cx-radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.callout__badge { display: inline-block; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; color: var(--cx-accent-light); }
@media (max-width: 800px) { .callout { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---- FAQ ------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--cx-line); padding: 22px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--cx-accent); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; color: var(--cx-ink-soft); }

/* ---- Forms -------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.field .hint { font-size: 0.82rem; color: var(--cx-ink-soft); margin-top: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="date"], .field input[type="url"], .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfcabd; border-radius: var(--cx-radius-sm); font-size: 0.98rem; font-family: inherit; background: var(--cx-white); color: var(--cx-ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cx-accent); box-shadow: 0 0 0 3px rgba(193,39,45,0.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3402c; }
.field .error-msg { color: #b3402c; font-size: 0.85rem; margin-top: 6px; }
.checkbox-row, .radio-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; }
.checkbox-row input, .radio-row input { margin-top: 4px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; }
@media (max-width: 560px) { .checkbox-grid { grid-template-columns: 1fr; } }
fieldset { border: none; padding: 0; margin: 0 0 24px; }

.file-drop { border: 2px dashed #cfcabd; border-radius: var(--cx-radius-md); padding: 32px; text-align: center; background: var(--cx-off-white); }
.file-drop input[type="file"] { display: block; margin: 12px auto 0; }

/* ---- Application wizard --------------------------------------------- */
.wizard { max-width: 760px; margin: 0 auto; }
.progress-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.progress-bar__seg { flex: 1; height: 5px; border-radius: 999px; background: var(--cx-line); overflow: hidden; }
.progress-bar__seg.is-done, .progress-bar__seg.is-current { background: var(--cx-accent); }
.progress-label { font-size: 0.85rem; color: var(--cx-ink-soft); margin-bottom: 40px; display: flex; justify-content: space-between; }
.step-card { background: var(--cx-white); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-lg); padding: 40px; }
@media (max-width: 640px) { .step-card { padding: 24px; } }
.wizard-actions { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }
.review-section { border: 1px solid var(--cx-line); border-radius: var(--cx-radius-md); padding: 22px 24px; margin-bottom: 18px; }
.review-section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.review-section dl,
.field-list { display: grid; grid-template-columns: 180px 1fr; row-gap: 8px; column-gap: 12px; margin: 0; font-size: 0.92rem; }
.review-section dt,
.field-list dt { color: var(--cx-ink-soft); }
.review-section dd,
.field-list dd { margin: 0; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--cx-navy-950); color: rgba(255,255,255,0.65); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h5 { color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-family: var(--cx-font-body); }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }

/* ---- Alerts --------------------------------------------------------- */
.alert { padding: 16px 20px; border-radius: var(--cx-radius-md); margin-bottom: 24px; font-size: 0.95rem; }
.alert-success { background: #e9f4ec; color: #1f5c37; border: 1px solid #bfe0c9; }
.alert-error { background: #fbeae6; color: #8a2c1a; border: 1px solid #f0c3b6; }

/* ---- Misc ------------------------------------------------------------ */
.divider { height: 1px; background: var(--cx-line); border: none; margin: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; }
.badge-new { background: #e6edf7; color: #2b4c85; }
.badge-muted { background: #e9eaec; color: #5a616c; }

/* Honeypot spam-protection field: hidden from sighted users and keyboard/
   screen-reader navigation, but still present in the DOM for scripts that
   blindly fill in every form field. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.badge-screening { background: #f2ecda; color: #7a5f10; }
.badge-interview { background: #e6e0f7; color: #4b2f8f; }
.badge-practical_test { background: #f7e6ef; color: #8f2f6b; }
.badge-reference_check { background: #dcf0ef; color: #16665f; }
.badge-offer { background: #fdeacb; color: #935b0a; }
.badge-hired { background: #dff2e2; color: #1e6b34; }
.badge-rejected { background: #f7dede; color: #93211f; }

.skip-link { position: absolute; left: -9999px; top: 0; background: white; padding: 12px 18px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

img[loading="lazy"] { background: var(--cx-off-white); }

/* =============================================================================
   Admin dashboard
   ============================================================================= */
.admin-body { background: var(--cx-off-white); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--cx-navy-950); color: rgba(255,255,255,0.8); padding: 24px 18px; display: flex; flex-direction: column; }
.admin-sidebar .logo { color: white; margin-bottom: 32px; font-size: 1.1rem; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; font-size: 0.92rem; color: rgba(255,255,255,0.72); margin-bottom: 2px; }
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: white; }
.admin-nav a.is-active { background: rgba(193,39,45,0.18); color: white; }
.admin-sidebar__footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; }
.admin-main { padding: 32px 40px; overflow-x: auto; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-topbar h1 { font-size: 1.5rem; margin: 0; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; overflow-x: auto; align-items: center; }
  .admin-sidebar .logo { margin: 0 16px 0 0; }
  .admin-nav { display: flex; gap: 4px; }
  .admin-sidebar__footer { display: none; }
  .admin-main { padding: 20px; }
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { background: white; border: 1px solid var(--cx-line); border-radius: var(--cx-radius-md); padding: 20px 22px; }
.stat-card__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cx-ink-soft); margin-bottom: 8px; }
.stat-card__value { font-family: var(--cx-font-display); font-size: 1.9rem; font-weight: 700; }

.admin-panel { background: white; border: 1px solid var(--cx-line); border-radius: var(--cx-radius-md); padding: 24px; margin-bottom: 24px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cx-ink-soft); padding: 10px 14px; border-bottom: 1px solid var(--cx-line); white-space: nowrap; }
.admin-table td { padding: 14px; border-bottom: 1px solid var(--cx-line); vertical-align: top; }
.admin-table tr:hover td { background: var(--cx-off-white); }
.table-scroll { overflow-x: auto; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; align-items: flex-end; }
.filter-bar .field { margin-bottom: 0; min-width: 150px; }
.filter-bar label { font-size: 0.72rem; text-transform: uppercase; color: var(--cx-ink-soft); }
.filter-bar select, .filter-bar input { padding: 9px 10px; font-size: 0.88rem; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--cx-navy-950); padding: 20px; }
.login-card { background: white; border-radius: var(--cx-radius-lg); padding: 44px; width: 100%; max-width: 400px; }

.status-select { padding: 8px 10px; border-radius: 6px; border: 1px solid #cfcabd; font-size: 0.85rem; }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-list li { padding: 10px 0; border-bottom: 1px solid var(--cx-line); font-size: 0.88rem; }
.timeline-list li:last-child { border-bottom: none; }
.note-item { padding: 14px 0; border-bottom: 1px solid var(--cx-line); }
.note-item:last-child { border-bottom: none; }
.note-item__meta { font-size: 0.78rem; color: var(--cx-ink-soft); margin-bottom: 4px; }
.pagination { display: flex; gap: 6px; margin-top: 18px; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--cx-line); border-radius: 6px; font-size: 0.85rem; }
.pagination a:hover { background: var(--cx-off-white); }
.pagination .is-current { background: var(--cx-navy-950); color: white; border-color: var(--cx-navy-950); }
