/* Homepage-only redesign styles.
   Loaded by index.html ONLY -- scoped entirely under body.home-page so it
   can never bleed into any other page that shares styles.css (explore,
   role detail, etc). This file overrides --font-display/--font-body/--bg/
   --ink/--accent for the homepage's own look -- a deliberately
   monochrome, institutional palette: white/near-black/greys only, no
   colored accent at all -- and restyles the page's existing shared
   components (buttons, section heads, bands) to match, without
   touching their markup, text or behaviour. */

body.home-page {
  --font-display: "Jost", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --ink: #1a1a1a;
  --ink-muted: #6e6e6e;
  --accent: #1a1a1a;
  --accent-ink: #1a1a1a;
  --line: #d6d5d2;
  /* Shared with .home-hero's bottom fade so the two sections blend with
     no visible seam. */
  --roles-bg: #15120f;
  background: var(--bg);
  color: var(--ink);
}

body.home-page .btn {
  border-radius: 0;
}

body.home-page .btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

body.home-page .section-head h2,
body.home-page h1,
body.home-page h2,
body.home-page h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

body.home-page .eyebrow { color: var(--accent-ink); }

body.home-page footer {
  background: var(--bg-alt);
  border-top: 0.81px solid var(--line);
}

body.home-page .footer-left .logo {
  font-size: clamp(1.013rem, 1.6vw, 1.458rem);
}

body.home-page .footer-left p,
body.home-page .footer-right {
  font-size: clamp(0.745rem, 1vw, 0.891rem);
}

/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.15) 0%, rgba(10, 8, 6, 0.55) 100%),
    url("../images/hero-canyon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fades the hero's bottom edge into Latest Roles' background color so
   there's no hard seam between the photo and that section. */
.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  background: linear-gradient(180deg, transparent, var(--roles-bg));
  pointer-events: none;
}

.home-hero-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19.44px;
  padding: 17.82px clamp(16.2px, 4vw, 45.36px);
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.55), transparent);
}

.home-hero-brand {
  display: flex;
  align-items: center;
  gap: 8.1px;
}

.home-hero-icon {
  height: clamp(32.4px, 3.2vw, 48.6px);
  width: auto;
  display: block;
}

.home-hero-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.931rem;
  color: #f3efe6;
  letter-spacing: 0.0081em;
}

.home-hero-signin {
  font-size: clamp(0.729rem, 0.95vw, 0.931rem);
  color: rgba(243, 239, 230, 0.85);
  text-decoration: none;
  letter-spacing: 0.0081em;
}

.home-hero-signin:hover { color: #f3efe6; }

.home-hero-signin {
  border: 0.81px solid rgba(243, 239, 230, 0.35);
  border-radius: 0;
  padding: clamp(5.67px, 0.6vw, 8.91px) clamp(14.58px, 1.3vw, 19.44px);
}

.home-hero-content {
  position: relative;
  padding: 0 clamp(16.2px, 4vw, 45.36px);
  max-width: 1134px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  /* Was capped at 3.1rem -- kept growing text small relative to a wide
     screen since the container (.wrap, elsewhere) isn't capped either.
     Raised ceiling so it actually keeps scaling up on large monitors. */
  font-size: clamp(1.15rem, 4.36vw, 2.95rem);
  line-height: 1.08;
  color: #f3efe6;
  margin: 0 0 22.68px;
}

.home-hero-cta.home-hero-cta {
  /* White, not var(--accent) -- the hero sits on the dark photo overlay,
     where a near-black button would lose its edge against it. Still
     strictly neutral (white/black), not a color choice. */
  display: inline-block;
  background: #ffffff;
  color: #1a1a1a;
  border: none;
  border-radius: 0;
  padding: clamp(9px, 0.79vw, 12.8px) clamp(19.3px, 1.9vw, 28.3px);
  font-size: clamp(0.64rem, 0.79vw, 0.77rem);
  font-weight: 600;
  text-decoration: none;
}

.home-hero-cta.home-hero-cta:hover { transform: translateY(-0.81px); opacity: 0.92; }

/* ---------- Section shell ---------- */

.home-section {
  background: var(--bg);
  padding: clamp(38.88px, 9vw, 105.3px) 0;
}

.home-section-alt {
  background: var(--bg-alt);
}

/* Latest Roles only -- a direct continuation of the hero's dark photo,
   not a separate light block. How it works, Categories and the footer
   CTA band are untouched. */
.home-section-dark {
  background: var(--roles-bg);
  color: #f3efe6;
}

.home-section > .wrap > h2 {
  font-size: clamp(1.134rem, 3.2vw, 2.268rem);
  margin: 0 0 25.92px;
}

/* ---------- Editorial list rows (Latest Roles + Categories) ---------- */
/* Deliberately not a card grid -- a plain list with rules between rows
   reads less like a generic SaaS template and more like a real,
   current listing (closer to how Mercor/Turing surface open roles). */

.home-list-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 19.44px;
  padding: clamp(16.2px, 1.8vw, 24.3px) 0;
  border-bottom: 0.81px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.home-list-row:first-child { border-top: 0.81px solid var(--line); }

.home-list-row:hover .home-list-row-title {
  text-decoration: underline;
  text-underline-offset: 2.43px;
}

.home-list-row-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.891rem, 1.4vw, 1.377rem);
  white-space: nowrap;
}

.home-list-row-meta {
  color: var(--ink-muted);
  font-size: clamp(0.729rem, 1vw, 0.931rem);
  text-align: right;
}

@media (max-width: 518.4px) {
  .home-list-row { flex-direction: column; align-items: flex-start; gap: 4.86px; }
  .home-list-row-meta { text-align: left; }
}

.home-roles-btn.home-roles-btn {
  display: inline-block;
  margin-top: 25.92px;
  background: transparent;
  color: var(--ink);
  border: 0.81px solid var(--ink);
  border-radius: 0;
  padding: clamp(9.72px, 0.9vw, 14.58px) clamp(22.68px, 2vw, 30.78px);
  font-size: clamp(0.769rem, 0.95vw, 0.931rem);
  font-weight: 600;
  text-decoration: none;
}

.home-roles-btn.home-roles-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.home-role-tag {
  display: inline-block;
  color: var(--ink-muted);
  font-size: clamp(0.608rem, 0.75vw, 0.729rem);
  font-weight: 600;
  letter-spacing: 0.0324em;
  text-transform: uppercase;
  margin-right: 8.1px;
}

.home-list-row-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.home-category-icon {
  display: inline-flex;
  margin-right: 9.72px;
}

.home-category-icon svg {
  width: 16.2px;
  height: 16.2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Latest Roles dark-section overrides ---- */

.home-section-dark .home-list-row {
  color: #f3efe6;
  border-bottom: 0.81px solid rgba(243, 239, 230, 0.18);
  padding: 12.96px 0;
}

.home-section-dark .home-list-row:first-child {
  border-top: 0.81px solid rgba(243, 239, 230, 0.18);
}

.home-section-dark .home-list-row-meta {
  color: rgba(243, 239, 230, 0.6);
}

.home-section-dark .home-roles-btn {
  color: #f3efe6;
  border-color: rgba(243, 239, 230, 0.4);
}

.home-section-dark .home-roles-btn:hover {
  background: #f3efe6;
  color: #15120f;
}

.home-section-dark .home-role-tag {
  color: rgba(243, 239, 230, 0.6);
}

/* ---------- How it works: numbered rail ---------- */

.home-journey {
  display: flex;
  align-items: flex-start;
}

.home-journey-step {
  flex: 1;
}

.home-journey-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.43rem, 3.6vw, 3.726rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16.2px;
}

.home-journey-title {
  margin: 0 0 6.48px;
  font-weight: 600;
  font-size: clamp(0.851rem, 1.2vw, 1.134rem);
}

.home-journey-desc {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 26ch;
  font-size: clamp(0.81rem, 1vw, 0.931rem);
}

.home-journey-arrow {
  color: var(--line);
  font-size: 1.296rem;
  padding: 0 19.44px;
  align-self: center;
  margin-top: -32.4px;
}

@media (max-width: 615.6px) {
  .home-journey { flex-direction: column; gap: 25.92px; }
  .home-journey-arrow { display: none; }
}

/* ---------- Client CTA ---------- */

.home-contact-inner {
  text-align: center;
}

.home-contact-inner p {
  margin: 0;
  font-size: clamp(0.851rem, 1.1vw, 1.053rem);
}

.home-contact-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2.43px;
}

.home-contact-link:hover { color: var(--ink-muted); }
