/* ============================================================
   Revel IT — shared header + footer styles ("site chrome")
   For jobs.revelit.com, extracted from the new revelit.com build.
   Fonts: Outfit (headings) + Figtree (body), loaded via Google Fonts.
   LIGHT theme is the site default. Dark tokens included for completeness:
   add class "dark" to <html> to switch (omit the toggle if not needed).
   No framework required. All selectors are prefixed .rv- to avoid clashes.
   Conway Solutions · October 2026
   ============================================================ */

:root {
  /* Brand */
  --rv-fox: #EB5A33;          /* primary orange */
  --rv-fox-bright: #F26A43;   /* logo orange (dark mode) */
  --rv-fox-600: #C43E1B;      /* orange hover */
  --rv-fox-super: #F67650;    /* "IT" superscript */
  --rv-violet: #4E56A4;       /* link hover accent (light mode) */
  --rv-violet-bright: #8A91D9;/* link hover accent (dark mode) */

  /* Light theme */
  --rv-page: #F6F7F9;
  --rv-surface: #FFFFFF;
  --rv-ink: #1E242B;
  --rv-muted-ink: #4A6060;
  --rv-line: #E2E6EC;
  --rv-charcoal: #0E1319;     /* scam bar + footer stay dark in both themes */
  --rv-porcelain: #F4F3F6;
  --rv-link-hover: var(--rv-violet);

  --rv-fox-logo: #EB5A33;     /* fox mark fill (light mode) */

  --rv-font-heading: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --rv-font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --rv-shadow-lift: 0 18px 40px -22px rgba(45, 41, 38, 0.35);
}

/* Dark theme (optional, via <html class="dark">) */
html.dark {
  --rv-page: #0E1319;
  --rv-surface: #141B23;
  --rv-ink: #F4F3F6;
  --rv-muted-ink: #A0ACC0;
  --rv-line: #20272E;
  --rv-charcoal: #141B23;
  --rv-link-hover: var(--rv-violet-bright);
  --rv-fox-logo: #F26A43;     /* fox mark fill (dark mode) */
}

/* fox mark fill follows the theme; in the footer it is always the bright orange */
.rv-fox path { fill: var(--rv-fox-logo); }
.rv-footer .rv-fox path { fill: var(--rv-fox-bright); }

/* ---------- base (scoped) ---------- */
.rv-header, .rv-footer {
  font-family: var(--rv-font-body);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.rv-header *, .rv-footer *, .rv-header *::before, .rv-footer *::before { box-sizing: border-box; }
.rv-header a, .rv-footer a { text-decoration: none; }
.rv-header ul, .rv-footer ul { list-style: none; margin: 0; padding: 0; }
.rv-shell { max-width: 80rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .rv-shell { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* ============================================================
   HEADER
   ============================================================ */
.rv-header { position: sticky; top: 0; z-index: 50; }

/* scam-notice bar */
.rv-notice {
  overflow: hidden;
  background: var(--rv-charcoal);
  padding: 0.375rem 1rem;
  text-align: center;
  font-size: 12px;
  line-height: 1.375;
  color: rgba(244, 243, 246, 0.85);
  max-height: 3rem;
  opacity: 1;
  transition: max-height 250ms ease-out, opacity 250ms ease-out, padding 250ms ease-out;
}
@media (min-width: 640px) { .rv-notice { font-size: 12.5px; } }
.rv-notice span { display: inline-flex; align-items: center; gap: 0.375rem; }
.rv-notice svg { height: 0.875rem; width: 0.875rem; flex-shrink: 0; color: var(--rv-fox); }
/* condensed state (added by JS on scroll) */
.rv-header.rv-condensed .rv-notice { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }

/* main bar */
.rv-bar {
  border-bottom: 1px solid var(--rv-line);
  background: color-mix(in srgb, var(--rv-page) 85%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.rv-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 68px;
  transition: height 250ms ease-out;
}
.rv-header.rv-condensed .rv-bar-inner { height: 52px; }

/* logo lockup */
.rv-logo { display: inline-flex; align-items: center; gap: 5px; transform-origin: left center; transition: transform 250ms ease-out; }
.rv-header.rv-condensed .rv-logo { transform: scale(0.82); }
.rv-logo svg { height: 52px; width: auto; flex-shrink: 0; }
.rv-wordmark {
  font-family: var(--rv-font-heading);
  font-weight: 800; line-height: 1; letter-spacing: 0.06em;
  font-size: 1.755rem; color: var(--rv-ink);
}
.rv-wordmark sup {
  margin-left: 3px; font-weight: 700; letter-spacing: normal;
  font-size: 0.78rem; color: var(--rv-fox-super);
  vertical-align: super; line-height: 0;
}

/* nav */
.rv-nav { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .rv-nav { display: flex; } }
.rv-nav a {
  padding: 0.5rem 0.75rem; font-size: 15px; font-weight: 500;
  color: var(--rv-ink); transition: color 150ms;
}
.rv-nav a:hover { color: var(--rv-link-hover); }

/* actions */
.rv-actions { display: flex; align-items: center; gap: 0.5rem; }
.rv-btn {
  display: none; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.5rem 1.25rem;
  font-family: var(--rv-font-heading); font-size: 15px; font-weight: 700;
  transition: all 300ms; cursor: pointer;
}
@media (min-width: 640px) { .rv-btn { display: inline-flex; } }
.rv-btn-ghost {
  border: 2px solid color-mix(in srgb, var(--rv-ink) 20%, transparent);
  background: color-mix(in srgb, var(--rv-surface) 70%, transparent);
  color: var(--rv-ink);
}
.rv-btn-ghost:hover { transform: translateY(-2px); border-color: var(--rv-link-hover); color: var(--rv-link-hover); }
.rv-btn-fox { border: 0; background: var(--rv-fox); color: #fff; box-shadow: var(--rv-shadow-lift); }
.rv-btn-fox:hover { transform: translateY(-2px); background: var(--rv-fox-600); }

/* theme toggle button (always visible; moon shown in light mode, sun in dark) */
.rv-theme-btn {
  display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid var(--rv-line);
  background: var(--rv-surface); color: var(--rv-ink); cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
.rv-theme-btn:hover { border-color: var(--rv-link-hover); color: var(--rv-link-hover); }
.rv-theme-btn svg { height: 1rem; width: 1rem; }
.rv-theme-btn .rv-icon-sun { display: none; }
html.dark .rv-theme-btn .rv-icon-sun { display: block; }
html.dark .rv-theme-btn .rv-icon-moon { display: none; }

/* mobile menu button */
.rv-menu-btn {
  display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid var(--rv-line);
  background: var(--rv-surface); color: var(--rv-ink); cursor: pointer;
}
@media (min-width: 1024px) { .rv-menu-btn { display: none; } }
.rv-menu-btn svg { height: 1.25rem; width: 1.25rem; }

/* mobile panel */
.rv-mobile { display: none; border-bottom: 1px solid var(--rv-line); background: var(--rv-page); }
.rv-mobile.rv-open { display: block; }
.rv-mobile a { display: block; padding: 0.75rem 1.5rem; font-size: 16px; font-weight: 500; color: var(--rv-ink); }
.rv-mobile a:hover { color: var(--rv-link-hover); }

/* ============================================================
   FOOTER  (stays dark in both themes, like the main site)
   ============================================================ */
.rv-footer { background: #0E1319; color: #F4F3F6; }
html.dark .rv-footer { background: #141B23; }

.rv-footer-grid { display: grid; gap: 3rem; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
  .rv-footer-grid { grid-template-columns: 1.2fr 2fr; padding-top: 5rem; padding-bottom: 5rem; }
}

.rv-footer .rv-logo svg { height: 72px; }
.rv-footer .rv-wordmark { font-size: 2.43rem; color: #fff; }
.rv-footer .rv-wordmark sup { font-size: 1.08rem; }

.rv-footer-tagline { margin: 1.25rem 0 0; max-width: 20rem; font-size: 15px; color: rgba(244,243,246,0.7); }

.rv-footer-contact { margin-top: 1.5rem; display: grid; gap: 0.75rem; font-size: 15px; color: rgba(244,243,246,0.8); }
.rv-footer-contact li { display: flex; align-items: center; gap: 0.75rem; }
.rv-footer-contact li:first-child { align-items: flex-start; }
.rv-footer-contact svg { height: 1rem; width: 1rem; flex-shrink: 0; color: var(--rv-fox); margin-top: 2px; }
.rv-footer-contact a { color: inherit; transition: color 150ms; }
.rv-footer-contact a:hover { color: var(--rv-fox); }

.rv-footer-cols { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .rv-footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rv-footer-cols { grid-template-columns: repeat(4, 1fr); } }

.rv-footer-cols h3, .rv-footer-cols .rv-colhead {
  margin: 0; font-family: var(--rv-font-heading);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  color: #F4F3F6; display: inline-block; transition: color 150ms;
}
a.rv-colhead:hover { color: var(--rv-fox); }
.rv-footer-cols ul { margin-top: 1rem; display: grid; gap: 0.625rem; }
.rv-footer-cols ul a { font-size: 15px; color: rgba(244,243,246,0.75); transition: color 150ms; }
.rv-footer-cols ul a:hover { color: var(--rv-fox); }

.rv-footer-legal { border-top: 1px solid rgba(244,243,246,0.15); }
.rv-footer-legal-inner {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  font-size: 13px; color: rgba(244,243,246,0.6);
}
@media (min-width: 1024px) {
  .rv-footer-legal-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.rv-footer-legal-inner p { margin: 0; }
.rv-footer-legal-right { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .rv-footer-legal-right { flex-direction: row; align-items: center; gap: 1rem; } }

/* ============================================================
   HERO BAND with the Revel fox planes (angled triangles)
   Measured 1:1 from revelit.com's hero. Wrap your page hero in
   .rv-hero and put content inside .rv-hero-inner (see hero.html).
   Light mode: solid orange plane left, deep midnight-purple
   gradient plane right. Dark mode: the same shapes as faint
   orange / violet tints. Under 1024px they shrink to small
   corner accents pinned above the content, exactly like the
   main site, so they never sit behind text on mobile.
   ============================================================ */
.rv-hero {
  position: relative;
  overflow: hidden;
  background: var(--rv-page);
}
.rv-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4.5rem 1rem;
}
@media (min-width: 640px) { .rv-hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .rv-hero-inner { padding-top: 6rem; padding-bottom: 6rem; } }

/* left plane — orange */
.rv-hero-plane-left {
  position: absolute;
  left: -3rem; top: -3rem;
  width: 150px; height: 100px;
  clip-path: polygon(0 0, 100% 16%, 64% 100%, 0 74%);
  background: rgba(235, 90, 51, 0.85);
  transform-origin: top left;
  pointer-events: none;
}
html.dark .rv-hero-plane-left { background: rgba(235, 90, 51, 0.12); }

/* right plane — midnight purple gradient (light) / violet tint (dark) */
.rv-hero-plane-right {
  position: absolute;
  right: -3rem; top: -3rem;
  width: 150px; height: 100px;
  clip-path: polygon(26% 0, 100% 0, 76% 100%, 0 84%);
  background: linear-gradient(135deg, #1D1038, #3B2578);
  transform-origin: top right;
  pointer-events: none;
}
html.dark .rv-hero-plane-right { background: rgba(78, 86, 164, 0.18); }

/* full-size planes on desktop; light mode scales them up 12% like the site */
@media (min-width: 1024px) {
  .rv-hero-plane-left  { left: -6rem; top: -7rem; width: 440px; height: 440px; }
  .rv-hero-plane-right { right: -8rem; top: 1.5rem; width: 520px; height: 520px; }
  html:not(.dark) .rv-hero-plane-left  { transform: scale(1.12); }
  html:not(.dark) .rv-hero-plane-right { transform: scale(1.12); }
}

/* eyebrow pill (e.g. "HIRE TALENT" / "JOB SEEKERS") */
.rv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-family: var(--rv-font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #1E242B;
  color: #fff;
}
html.dark .rv-eyebrow { background: rgba(244, 243, 246, 0.08); color: #A7AEE0; }
.rv-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 9999px;
  background: var(--rv-fox);
}

/* hero typography helpers (optional) */
.rv-hero-title {
  margin: 1.1rem 0 0;
  font-family: var(--rv-font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: var(--rv-ink);
}
html.dark .rv-hero-title { color: #F4F3F6; }
.rv-hero-sub {
  margin: 1.25rem 0 0;
  max-width: 46rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--rv-muted-ink);
}
