/* ==========================================================================
   HireVertex - job seeker recruitment platform
   Palette, typography and radii carried over from the original site.
   ========================================================================== */

:root {
  --ink: #1a0052;          /* headings / dark surfaces */
  --purple: #7160f7;       /* primary action */
  --purple-dark: #5b49e0;
  --body: #524967;         /* body copy */
  --white: #ffffff;
  --tint: #f7f4f9;         /* light section background */
  --tint-2: #f5f1f7;
  --line: #eeeaf0;         /* hairline borders */
  --lavender: #eee7fc;     /* badge / accent background */
  --lavender-line: #d4c8ec;

  --ok: #0f7b52;
  --ok-bg: #e3f6ec;
  --off: #6b647a;
  --off-bg: #eeecf1;

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;
  --pill: 999px;

  --shadow: 0 4px 24px rgba(26, 0, 82, .06);
  --shadow-lg: 0 12px 40px rgba(26, 0, 82, .10);

  --wrap: 1180px;
  --font: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .5rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--tint { background: var(--tint); }
.center { text-align: center; }
.muted { color: var(--body); }
.lead { font-size: 1.1rem; max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

/* skip link ------------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* eyebrow --------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--pill);
  margin-bottom: 20px;
}
.section--tint .eyebrow { background: var(--white); }

/* buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font);
  font-weight: 600; font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--lavender-line); }
.btn--ghost:hover { background: var(--lavender); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--lavender); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn[disabled], .btn--disabled {
  background: var(--off-bg); color: var(--off);
  cursor: not-allowed; pointer-events: none; border-color: transparent; transform: none;
}

/* header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 10px 14px; border-radius: var(--pill);
}
.nav a:hover { background: var(--tint); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--lavender); color: var(--ink); font-weight: 600; }
.header__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 900px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: inline-flex; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 76px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 12px 14px; }
  .nav.is-open .nav__cta { display: inline-flex; margin-top: 10px; }
}
.nav__cta { display: none; }

/* hero ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(180deg, #e7defb 0%, #efe8fd 38%, #f8f5fe 70%, var(--white) 100%);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: end;
}
.hero__copy { padding-bottom: 88px; }
.hero h1 { margin-bottom: 18px; }

/* the portrait sits in a purple panel and breaks past its top edge, matching
   the original hero composition */
.hero__art {
  position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  padding-top: 56px;
}
.hero__panel {
  position: relative;
  width: 100%; max-width: 470px;
  height: 520px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #a08ffb 0%, #7c69f8 42%, #6a54f0 100%);
}
/* faint grid over the panel */
.hero__panel::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 62px 62px;
}
.hero__panel img {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  height: 600px; width: auto; max-width: none;
  object-fit: contain; object-position: bottom;
}

/* floating cards */
.hero__chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px;
  padding: 11px 16px 11px 12px;
  box-shadow: 0 18px 40px rgba(26, 0, 82, .16);
  white-space: nowrap;
}
.hero__chip strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em; color: var(--ink); line-height: 1.25; }
.hero__chip__text span { display: block; font-size: .78rem; font-weight: 500; color: var(--body); }
.hero__chip--role { top: 30px; left: -112px; }
.hero__chip--reply { bottom: 200px; right: -56px; }
.hero__chip__tile {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--lavender); color: var(--purple);
}
.hero__chip__tile--ok { background: var(--ok-bg); color: var(--ok); }

@media (max-width: 1080px) {
  .hero__chip--role { top: 128px; left: -16px; }
  .hero__chip--reply { bottom: 120px; right: -12px; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__art { padding-top: 40px; }
  .hero__panel { max-width: 320px; height: 340px; }
  .hero__panel img { height: 400px; }
  .hero__chip--role { top: 60px; left: -6px; }
  .hero__chip--reply { bottom: 56px; right: -6px; }
}
@media (max-width: 420px) {
  .hero__chip { padding: 9px 12px 9px 10px; }
  .hero__chip strong { font-size: .82rem; }
  .hero__chip__text span { font-size: .7rem; }
}

/* search bar ------------------------------------------------------------ */
.searchbar {
  display: flex; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--pill); padding: 8px 8px 8px 20px;
  max-width: 520px; box-shadow: var(--shadow);
}
.searchbar input {
  flex: 1; border: 0; outline: none; font: inherit; color: var(--ink);
  background: transparent; min-width: 0;
}
.searchbar input::placeholder { color: #9990a8; }

/* stat strip ------------------------------------------------------------ */
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 32px; }
.stat__num {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.stat__label { font-size: .88rem; color: var(--body); margin-top: 6px; }

/* generic grid ---------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head.center { margin-left: auto; margin-right: auto; }

/* cards ----------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card--hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--lavender); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.25rem;
}
.card h3 { font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; }

/* numbered steps -------------------------------------------------------- */
.step__num {
  width: 44px; height: 44px; border-radius: var(--pill);
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; margin-bottom: 18px;
}

/* job cards ------------------------------------------------------------- */
.job-list { display: grid; gap: 16px; }
.job-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 28px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.job-card--open:hover { box-shadow: var(--shadow-lg); border-color: var(--lavender-line); }
.job-card--closed { background: var(--tint-2); border-style: dashed; }
.job-card--closed .job-card__title { color: var(--off); }

.job-card__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 12px;
}
.job-card__title { font-size: 1.3rem; margin: 0; }
.job-card__title a { color: inherit; }
.job-card__title a:hover { color: var(--purple); text-decoration: none; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.badge {
  display: inline-flex; align-items: center;
  font-size: .8rem; font-weight: 500; color: var(--body);
  background: var(--tint); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: var(--pill);
}
.badge--remote { background: var(--lavender); border-color: var(--lavender-line); color: var(--ink); font-weight: 600; }
.badge--bonus { background: var(--ok-bg); border-color: #bfe6d2; color: var(--ok); font-weight: 600; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--pill); white-space: nowrap;
}
.status--open { background: var(--ok-bg); color: var(--ok); }
.status--closed { background: var(--off-bg); color: var(--off); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.job-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.job-card--closed .job-card__foot { border-top-color: var(--lavender-line); }
.salary { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.salary span { font-size: .85rem; font-weight: 500; color: var(--body); }
.job-card__meta { font-size: .88rem; color: var(--body); }
.closed-note { font-size: .88rem; color: var(--off); font-style: italic; }

/* filters --------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-size: .9rem; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--body);
  padding: 9px 20px; border-radius: var(--pill);
  transition: all .18s ease;
}
.filter:hover { border-color: var(--lavender-line); color: var(--ink); }
.filter.is-active { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 600; }
.results-count { font-size: .9rem; color: var(--body); margin-bottom: 18px; }
.no-results { padding: 40px; text-align: center; color: var(--body); background: var(--tint); border-radius: var(--r-md); }

/* job detail ------------------------------------------------------------ */
.jobhead { background: var(--tint); padding: 56px 0; border-bottom: 1px solid var(--line); }
.jobhead h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
.breadcrumb { font-size: .88rem; margin-bottom: 18px; color: var(--body); }
.breadcrumb a { color: var(--body); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 940px) { .job-layout { grid-template-columns: 1fr; } }

.job-body h2 { font-size: 1.45rem; margin-top: 40px; }
.job-body h2:first-child { margin-top: 0; }
.job-body ul { padding-left: 1.2rem; }

.aside {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 26px;
  position: sticky; top: 96px;
}
.aside h3 { font-size: 1.05rem; margin-bottom: 16px; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; }
.facts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: .92rem; margin: 0;
}
.facts li:last-child { border-bottom: 0; }
.facts dt, .facts .k { color: var(--body); }
.facts .v { color: var(--ink); font-weight: 600; text-align: right; }

.notice {
  background: var(--off-bg); border-radius: var(--r-sm);
  padding: 16px 18px; font-size: .9rem; color: var(--off);
}
.notice strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* forms ----------------------------------------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 36px;
  box-shadow: var(--shadow);
}
.fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.fieldset legend {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); padding: 0; margin-bottom: 6px;
}
.fieldset__hint { font-size: .9rem; margin-bottom: 20px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--purple); }
.field small { font-size: .82rem; color: var(--body); margin-top: 6px; }

.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--lavender-line);
  border-radius: var(--r-sm); padding: 12px 14px;
  width: 100%; transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 96, 247, .15);
}
.field input[type="file"] { padding: 10px; background: var(--tint); cursor: pointer; }

/* only flag a field once the visitor has actually interacted with it, so empty
   required inputs (notably date pickers) do not load pre-marked as errors */
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: #d2456b; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: auto; margin-top: 3px; flex: none; }

.form-status { margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm); font-size: .93rem; display: none; }
.form-status.is-error { display: block; background: #fdeaef; color: #a32846; }
.form-status.is-ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-status.is-busy { display: block; background: var(--tint); color: var(--body); }

/* contact --------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 14px; margin-bottom: 26px; }
.contact-item__icon {
  width: 42px; height: 42px; border-radius: var(--r-sm); flex: none;
  background: var(--lavender); display: flex; align-items: center; justify-content: center;
}
.contact-item h4 { margin-bottom: 2px; font-size: 1rem; }
.contact-item p { margin: 0; font-size: .95rem; }

/* blog ------------------------------------------------------------------ */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.1rem; }
.post-card__meta { font-size: .82rem; color: var(--body); margin-top: auto; padding-top: 14px; }

.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 40px; }
.article__meta { font-size: .9rem; color: var(--body); margin-bottom: 28px; }
.article__hero { border-radius: var(--r-md); overflow: hidden; margin-bottom: 34px; }

/* cta banner ------------------------------------------------------------ */
.cta {
  background: var(--ink) url("../../framerusercontent.com/images/Hdgu7KP281kMJh6NSvXHhcZC1E.png") right center / cover no-repeat;
  border-radius: var(--r-xl); padding: 64px 48px; color: #fff; text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 54ch; margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 12px; }
@media (max-width: 640px) { .cta { padding: 44px 24px; border-radius: var(--r-lg); } }

/* footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__name { color: #fff; }
.footer__about { font-size: .92rem; margin-top: 14px; max-width: 42ch; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; font-size: .92rem; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem;
}

/* scroll reveal ---------------------------------------------------------
   Mirrors the original site: elements rest 60px off-position at opacity 0
   and settle as they enter the viewport. JS adds .is-in; without JS the
   .no-reveal fallback on <html> leaves everything visible. */
[data-reveal] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .7s cubic-bezier(.44, 0, .22, .99),
              transform .7s cubic-bezier(.44, 0, .22, .99);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-in { opacity: 1; transform: none; }

.no-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* utilities ------------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
