/* =========================================================
   REVALIS WORKFORCE SOLUTIONS — PREMIUM RESPONSIVE WEBSITE
   Mobile-first / Android-friendly / accessible / no framework
   ========================================================= */

:root {
  --ink: #07111f;
  --ink-2: #0b1829;
  --panel: #0e1f33;
  --white: #ffffff;
  --soft: #d9e4ee;
  --muted: #9fb2c3;
  --blue: #0aa8ff;
  --blue-2: #0877df;
  --gold: #f2b544;
  --line: rgba(255,255,255,.12);
  --shadow: 0 22px 70px rgba(0,0,0,.24);
  --radius: 24px;
  --shell: min(1160px, calc(100% - 32px));
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f4f7fa;
  color: #102033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
section { scroll-margin-top: 92px; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-140%);
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { transform: none; }

/* NAV */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(3,10,18,.76), rgba(3,10,18,.20));
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  padding-top: env(safe-area-inset-top);
}

.site-header.scrolled {
  background: rgba(6,16,29,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--line);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 1.35rem;
  font-style: italic;
  background: linear-gradient(145deg, #0db5ff, #0a5fc9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 7px 20px rgba(0,137,255,.28);
  transform: skew(-7deg);
}

.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 1.15rem; letter-spacing: .10em; }
.brand-copy small { font-size: .55rem; letter-spacing: .20em; margin-top: 6px; color: #cfe2f1; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #d8e5ef;
  font-size: .9rem;
  font-weight: 750;
}
.primary-nav a { transition: color .2s ease, transform .2s ease; }
.primary-nav a:hover { color: #fff; transform: translateY(-1px); }
.nav-cta {
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.nav-cta:hover { background: rgba(255,255,255,.14); }

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

/* HERO */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/revalis-hero-banner.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,10,17,.94) 0%, rgba(4,10,17,.82) 36%, rgba(4,10,17,.24) 70%, rgba(4,10,17,.04) 100%),
    linear-gradient(0deg, rgba(4,10,17,.93) 0%, rgba(4,10,17,.08) 55%, rgba(4,10,17,.40) 100%);
}

.hero-inner {
  padding-top: 132px;
  padding-bottom: clamp(70px, 10vw, 126px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .26em;
}

.hero .eyebrow { color: #c9ebff; }
.eyebrow span { color: var(--gold); padding-inline: 4px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }

h1 {
  margin-bottom: 22px;
  max-width: 780px;
  font-size: clamp(2.8rem, 8.5vw, 6.75rem);
  letter-spacing: -.055em;
  font-weight: 950;
  text-wrap: balance;
}
h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fff, #5cc8ff 55%, #1d9cf3);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 30px;
  color: #dce8f0;
  font-size: clamp(1.06rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 32px rgba(4,130,234,.30);
}
.btn-primary:hover { box-shadow: 0 16px 38px rgba(4,130,234,.38); }
.btn-ghost {
  border-color: rgba(255,255,255,.25);
  color: #fff;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.13); }
.btn-dark { background: #07111f; color: #fff; }
.btn-full { width: 100%; border: 0; }

.hero-proof {
  display: flex;
  gap: 34px;
  color: #fff;
}
.hero-proof div { display: grid; }
.hero-proof strong { font-size: 1.1rem; }
.hero-proof span { color: #adc0cf; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; }

.trust-strip {
  background: #07111f;
  color: #d8e5ef;
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.trust-grid {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  align-items: center;
  text-align: center;
}
.trust-grid span {
  padding: 12px 18px;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .10em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.10);
}
.trust-grid span:last-child { border-right: 0; }

/* SECTIONS */
.section { padding: clamp(76px, 9vw, 128px) 0; }
.section-dark { background: #07111f; color: #fff; }
.section-accent {
  background:
    radial-gradient(circle at 15% 10%, rgba(14,156,255,.12), transparent 33%),
    linear-gradient(180deg, #eef8ff 0%, #e8f2f9 100%);
}
.section-copy h2,
.section-heading h2,
.statement-inner h2 {
  margin-bottom: 22px;
  color: #0b1c2e;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: -.045em;
  font-weight: 950;
  text-wrap: balance;
}
.section-dark .section-heading h2 { color: #fff; }
.section-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.statement-inner > p:not(.eyebrow) { color: #4f6070; }
.section-dark .section-heading > p:not(.eyebrow) { color: #a9bac7; }
.lead { font-size: 1.12rem; line-height: 1.72; }
.center { max-width: 780px; margin: 0 auto 52px; text-align: center; }

.split {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
}
.split-balanced { grid-template-columns: repeat(2,minmax(0,1fr)); }

.value-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-top: 30px;
}
.mini-card {
  padding: 22px;
  border: 1px solid #dce5ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18,50,79,.06);
}
.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #e8f7ff;
  color: #0b8eda;
  font-weight: 900;
  font-size: .76rem;
}
.mini-card h3 { margin-bottom: 8px; }
.mini-card p { margin: 0; color: #617283; font-size: .92rem; }

.image-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #07111f;
  box-shadow: var(--shadow);
}
.image-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.image-card figcaption {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(5,15,25,.72);
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.step-card {
  position: relative;
  min-height: 280px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}
.step-card::after {
  content:"";
  position:absolute;
  inset:auto 24px 0 24px;
  height:3px;
  background:linear-gradient(90deg,var(--blue),transparent);
}
.step-num {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  margin-bottom: 54px;
  border-radius: 50%;
  background: rgba(11,168,255,.14);
  border: 1px solid rgba(11,168,255,.28);
  color: #70d2ff;
  font-weight: 950;
}
.step-card h3 { font-size: 1.18rem; margin-bottom: 12px; }
.step-card p { color: #9fb1c1; font-size: .94rem; margin:0; }

.media-stack { position: relative; }
.media-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-note {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px;
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: rgba(4,16,29,.78);
  border: 1px solid rgba(255,255,255,.13);
  color: #fff;
  backdrop-filter: blur(12px);
}
.media-note span { color: #bfd0de; font-size: .85rem; }

.check-list {
  list-style: none;
  margin: 28px 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  color: #3c5062;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #e7f7ff;
  color: #078fe0;
  font-size: .8rem;
  font-weight: 1000;
}
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: #0878d7;
  font-weight: 900;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin: 28px 0 30px;
}
.feature-grid article {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(19,71,112,.10);
}
.feature-grid article > span { color: var(--gold); }
.feature-grid h3 { margin: 12px 0 8px; font-size: 1rem; }
.feature-grid p { margin: 0; color: #607384; font-size: .9rem; }

.founder-section { background: #fff; }
.founder-grid {
  display: grid;
  grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}
.portrait-wrap { position: relative; max-width: 520px; }
.portrait-wrap img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 28px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}
.portrait-frame {
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 28px;
  border: 2px solid rgba(9,147,233,.20);
  z-index: 0;
}
blockquote {
  margin: 28px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--blue);
  color: #153958;
  font-size: 1.2rem;
  font-weight: 900;
}

.statement-section {
  padding: 110px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5,13,22,.94), rgba(5,13,22,.70)),
    url("assets/revalis-stronger-tomorrow.jpg") center 38% / cover no-repeat;
  background-attachment: fixed;
}
.statement-inner { max-width: 760px; }
.statement-inner h2 { color: #fff; }
.statement-inner > p:not(.eyebrow) { color: #c7d5df; font-size: 1.1rem; max-width: 680px; }

.contact-section { background: #07111f; color:#fff; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.8fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: start;
}
.contact-section .section-copy h2 { color:#fff; }
.contact-section .section-copy > p:not(.eyebrow) { color:#aebfcb; }

.contact-points {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin-top: 28px;
}
.contact-points > div {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}
.contact-label {
  display:block;
  color:#7f95a6;
  font-size:.68rem;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:4px;
}
.config-note { font-size:.78rem; opacity:.7; margin-top:18px!important; }
.config-note code { color:#fff; }

.contact-card {
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  color: #102033;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}
.form-head {
  display:grid;
  margin-bottom:20px;
}
.form-head strong { font-size:1.25rem; }
.form-head span { color:#718394; font-size:.83rem; }

.contact-card label {
  display:grid;
  gap:7px;
  margin-bottom:14px;
  font-size:.78rem;
  font-weight:850;
  color:#31495d;
}
.contact-card input,
.contact-card select,
.contact-card textarea {
  width:100%;
  border:1px solid #d6e1e9;
  border-radius:12px;
  background:#f8fbfd;
  color:#0c2033;
  padding:13px 14px;
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  border-color:#24aefa;
  box-shadow:0 0 0 4px rgba(13,166,244,.12);
  background:#fff;
}
.contact-card textarea { resize:vertical; min-height:120px; }
.form-status { min-height:1.4em; margin:12px 0 0; color:#4b657a; font-size:.82rem; }

/* FOOTER */
.site-footer {
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  background: #040b13;
  color: #b7c7d3;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
  display:grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap:30px;
  align-items:end;
}
.brand-footer { margin-bottom:12px; }
.site-footer p { margin:0; font-size:.8rem; }
.footer-links { display:flex; gap:15px; flex-wrap:wrap; font-size:.82rem; font-weight:750; }
.footer-links a:hover { color:#fff; }
.footer-meta { text-align:right; display:grid; gap:5px; }

/* MOTION */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity:1; transform:none; }

/* TABLET */
@media (max-width: 980px) {
  .menu-btn { display:flex; }
  .primary-nav {
    position: fixed;
    top: calc(76px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(6,16,29,.98);
    box-shadow: 0 22px 70px rgba(0,0,0,.38);
    transform-origin: top;
    transform: scaleY(.92) translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .primary-nav.open { opacity:1; transform:none; pointer-events:auto; }
  .primary-nav a { padding:14px 12px; border-radius:10px; }
  .primary-nav a:hover { background:rgba(255,255,255,.06); transform:none; }
  .nav-cta { margin-top:6px; text-align:center; }

  .split,
  .split-balanced,
  .founder-grid,
  .contact-grid { grid-template-columns:1fr; }

  .founder-grid { gap:54px; }
  .portrait-wrap { max-width:620px; margin-inline:auto; }

  .steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .trust-grid span:nth-child(2) { border-right:0; }
  .trust-grid span:nth-child(-n+2) { border-bottom:1px solid rgba(255,255,255,.10); }

  .image-card { max-width:620px; margin-inline:auto; }
  .image-card img { aspect-ratio: 4/5; }
  .media-stack { max-width:720px; margin-inline:auto; }

  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-meta { text-align:left; grid-column:1/-1; }
}

/* PHONE / ANDROID */
@media (max-width: 640px) {
  :root { --shell: min(100% - 24px, 1160px); --radius: 20px; }

  .nav-wrap { min-height:68px; }
  .brand-mark { width:38px; height:38px; border-radius:10px; }
  .brand-copy strong { font-size:.95rem; }
  .brand-copy small { font-size:.46rem; }
  .primary-nav { top: calc(70px + env(safe-area-inset-top)); }
  .menu-btn { width:42px; height:42px; }

  .hero { min-height: 92svh; }
  .hero-media {
    background-position: 72% center;
  }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(4,10,17,.42) 0%, rgba(4,10,17,.70) 38%, rgba(4,10,17,.97) 78%),
      linear-gradient(90deg, rgba(4,10,17,.46), rgba(4,10,17,.08));
  }
  .hero-inner { padding-top: 130px; padding-bottom: 54px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { display:grid; }
  .hero-actions .btn { width:100%; }
  .hero-proof { gap:18px; justify-content:space-between; }
  .hero-proof strong { font-size:.95rem; }
  .hero-proof span { font-size:.62rem; }

  .trust-grid { grid-template-columns:1fr; }
  .trust-grid span {
    border-right:0!important;
    border-bottom:1px solid rgba(255,255,255,.09);
    min-height:52px;
    display:grid;
    place-items:center;
  }
  .trust-grid span:last-child { border-bottom:0; }

  .section { padding:72px 0; }
  .section-copy h2,
  .section-heading h2,
  .statement-inner h2 { font-size: clamp(2rem, 11vw, 3.4rem); }

  .value-row,
  .feature-grid,
  .steps,
  .contact-points { grid-template-columns:1fr; }

  .step-card { min-height:unset; }
  .step-num { margin-bottom:30px; }

  .image-card img { aspect-ratio: 4/5; object-position:center top; }
  .statement-section {
    padding:82px 0;
    background-attachment:scroll;
    background-position:62% center;
  }
  .contact-card { padding:20px; border-radius:18px; }

  .footer-grid { grid-template-columns:1fr; }
  .footer-meta { grid-column:auto; }

  /* prevent Android zoom-on-focus / tiny UI issues */
  input, select, textarea { font-size:16px!important; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,
  *::before,
  *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
  .reveal { opacity:1; transform:none; }
}
