/* ===========================================================
   Rejoice Innovations — careers homepage sections (index.php)
   Shared tokens / buttons / nav / footer live in base.css.
   =========================================================== */
body { background: #fff; }

/* ---------- hero ---------- */
.hero { padding: 3.4rem 0 2.6rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2.6rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 800; }
.hero-sub { color: var(--ink-2); font-size: 1.08rem; margin: 1.1rem 0 1.6rem; max-width: 30rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hstat b { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--ink); display: block; }
.hstat span { font-size: .82rem; color: var(--muted); }

.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; background: var(--soft2); }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }   /* the office photo only — not the chip icon */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,46,.05) 0%, rgba(15,27,46,.06) 55%, rgba(15,27,46,.5) 100%); }
.hero-badge { position: absolute; z-index: 2; font-family: var(--font-head); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-badge.b1 { left: 20px; bottom: 22px; font-weight: 700; font-size: 1.15rem; max-width: 45%; line-height: 1.15; }
.hero-badge.b2 { right: 20px; bottom: 22px; font-style: italic; font-weight: 600; font-size: .95rem; text-align: right; opacity: .95; }
.hero-chip { position: absolute; z-index: 2; top: 18px; right: 18px; background: rgba(255,255,255,.92); border-radius: 999px; padding: .4rem .9rem;
  display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--navy); box-shadow: var(--shadow-sm); }
.hero-chip img { width: 22px; height: 22px; border-radius: 6px; flex: none; object-fit: cover; }

/* ---------- values strip ---------- */
.values { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding: 1.6rem 0; }
.value { display: flex; gap: .7rem; align-items: flex-start; }
.value-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.value-ico svg { width: 22px; height: 22px; }
.value h4 { font-size: .95rem; margin-bottom: .1rem; }
.value p { font-size: .8rem; color: var(--muted); margin: 0; line-height: 1.35; }

/* ---------- openings ---------- */
.openings-grid { display: grid; grid-template-columns: .85fr 1.35fr; gap: 2.6rem; align-items: start; }
.openings-intro p { color: var(--ink-2); margin: 1rem 0 1.6rem; max-width: 22rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.tab { font-size: .86rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s ease; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.job-list { display: flex; flex-direction: column; gap: .7rem; }
.jrow { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm); text-decoration: none !important; color: inherit; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; }
.jrow:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6def0; }
.jrow.is-hidden { display: none; }
.jrow-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.jrow-ico svg { width: 22px; height: 22px; }
.jrow-main { flex: 1; min-width: 0; }
.jrow-title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); display: block; }
.jrow-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .3rem; font-size: .8rem; color: var(--muted); }
.jrow-meta .tag { display: inline-flex; align-items: center; gap: .3rem; }
.jrow-meta .tag.ft { background: var(--tint); color: var(--brand-2); font-weight: 600; padding: .12rem .5rem; border-radius: 999px; }
.jrow-meta svg { width: 13px; height: 13px; }
.jrow-cta { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--ink); }
.jrow:hover .jrow-cta { color: var(--brand); }
.jrow-cta .arr { transition: transform .18s ease; }
.jrow:hover .jrow-cta .arr { transform: translateX(3px); }
.jrow-empty { text-align: center; color: var(--muted); padding: 2rem; }
@media (min-width: 941px) {
  .openings-intro { position: sticky; top: 96px; }
  .job-list { max-height: 640px; overflow-y: auto; padding: .25rem .5rem .25rem .25rem; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
  .job-list::-webkit-scrollbar { width: 6px; }
  .job-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
}

/* ---------- life at rejoice ---------- */
.life-head { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; margin-bottom: 1.6rem; }
.life-head .txt { max-width: 46rem; }
.life-head p { color: var(--ink-2); margin: .5rem 0 0; }
.life-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gitem { position: relative; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 3.4; box-shadow: var(--shadow-sm); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gitem:hover img { transform: scale(1.07); }
.gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,27,46,.62) 100%); }
.gitem .cap { position: absolute; z-index: 2; left: 12px; bottom: 11px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .92rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); text-align: left; }
.gitem:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- testimonials ---------- */
.tst-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.tcard .quote { color: var(--ink-2); font-size: .96rem; margin: 0 0 1.1rem; }
.tcard .who { display: flex; align-items: center; gap: .7rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.who b { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--ink); }
.who span { font-size: .8rem; color: var(--muted); }
.tst-arrows { display: flex; gap: .5rem; }
.tst-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: all .15s ease; }
.tst-arrows button:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--grad-deep); color: #fff; }
.cta-in { padding: 3.4rem 0; position: relative; z-index: 2; max-width: 40rem; }
.cta .eyebrow-line { color: rgba(255,255,255,.7); }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .7rem; }
.cta p { color: rgba(255,255,255,.85); margin: 0 0 1.6rem; }
.cta-glow { position: absolute; right: -120px; top: -80px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(47,109,246,.5), transparent 65%); z-index: 1; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,10,22,.93); display: flex; align-items: center; justify-content: center; padding: 1.4rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96%; max-height: 90vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: .7rem; right: 1.1rem; font-size: 2.6rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-media { aspect-ratio: 16 / 11; }
  .values-in { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .openings-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tst-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 2.2rem 0; }
  .life-head { grid-template-columns: 1fr; align-items: start; }
  .tst-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .values-in { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .hero-stats { gap: 1.4rem; }
}
