/* Careers page - follows the structure of sparkle.ng/careers, built with the Sparkle design tokens.
   Dark hero with photo and curved edge, mission, values, tribe carousel, perks, office gallery, vacancies. */

.c-wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.c-sec { padding: 88px 0; background: var(--surface-card); }
.c-two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.center { text-align: center; }
.eyebrow { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: .78rem; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--green-700); margin-bottom: 14px; }
.c-big { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: var(--fw-extra); letter-spacing: var(--ls-display); line-height: var(--lh-heading); margin-bottom: 24px; }
.c-sec p { color: #000; line-height: 1.75; }

/* ---------- Header sits on the hero ---------- */
.pub-header.on-hero { position: absolute; top: 0; left: 0; right: 0; background: transparent; }

/* ---------- Hero ---------- */
.c-hero { position: relative; display: flex; align-items: center; min-height: clamp(600px, 56vw, 860px);
  padding: 110px max(var(--gutter), calc((100vw - var(--container-max)) / 2 + var(--gutter))) 120px;
  background: #101010 url('/static/img/careers/career.jpg') center top / cover no-repeat; color: #fff; }
.c-hero-copy { max-width: 600px; position: relative; z-index: 1; }
.c-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: var(--fw-extra); line-height: 1.08; letter-spacing: var(--ls-display); margin-bottom: 24px; }
.c-hero p { color: #fff; font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }

/* ---------- Mission ---------- */
.c-phone { position: relative; display: flex; justify-content: center; min-height: 520px; align-items: center; }
.c-phone img { position: relative; z-index: 1; max-height: 580px; width: auto; max-width: 78%; filter: drop-shadow(var(--shadow-lg)); }
.c-phone .blob { position: absolute; display: block; }
.c-phone .b1 { width: 64%; aspect-ratio: 1; right: 0; top: 0; background: var(--sparkle-lime); border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; }
.c-phone .b2 { width: 46%; aspect-ratio: 1; left: 4%; bottom: 2%; background: var(--sparkle-yellow); border-radius: 44% 56% 40% 60% / 58% 42% 58% 42%; }

/* ---------- Values ---------- */
.c-values { background: var(--paper-2); }
.c-values-grid { align-items: start; }
.c-values h3 { font-size: 1.5rem; font-weight: var(--fw-extra); margin-bottom: 12px; }
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.vi { flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: #000; }
.vi.lime { background: var(--sparkle-lime); }
.vi.green { background: var(--sparkle-green); }
.value h4 { font-size: 1.05rem; font-weight: var(--fw-bold); margin-bottom: 6px; }
.value p { font-size: .9rem; line-height: 1.65; margin: 0; }

/* ---------- Meet the tribe ---------- */
.c-tribe { position: relative; background: var(--sparkle-navy); padding: 88px 0; overflow: hidden; }
.c-tribe::before, .c-tribe::after { content: ""; position: absolute; border-radius: 50%; }
.c-tribe::before { width: 520px; height: 520px; left: -200px; bottom: -240px; background: var(--sparkle-green); border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%; }
.c-tribe::after { width: 340px; height: 340px; right: -120px; top: -140px; background: var(--sparkle-orange); border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
.tribe-card { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.tribe-card .slide { display: none; grid-template-columns: 1.1fr .9fr; align-items: stretch; animation: pop var(--dur-slow) var(--ease-out); }
.tribe-card .slide.on { display: grid; }
.tribe-card .q { background: #fff; padding: 40px 36px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); display: flex; flex-direction: column; justify-content: center; }
.tribe-card h3 { font-size: 1.4rem; font-weight: var(--fw-extra); margin-bottom: 16px; }
.tribe-card blockquote { margin: 0 0 18px; font-size: .95rem; line-height: 1.75; color: #000; }
.tribe-card .who { margin: 0; font-size: .88rem; color: #000; }
.tribe-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; display: block; }
.tribe-card .arrows { display: flex; gap: 10px; margin-top: 22px; }
.tribe-card .arrows button { width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: var(--sparkle-lime); color: #000; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: transform var(--dur-fast) var(--ease-spring), filter var(--dur-fast) var(--ease-out); }
.tribe-card .arrows button:hover { filter: brightness(.95); }
.tribe-card .arrows button:active { transform: scale(.92); }

/* ---------- Perks ---------- */
.c-perks { background: var(--surface-card); }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.perk { background: var(--surface-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 32px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--font-display); font-size: .95rem; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pi { width: 64px; height: 64px; border-radius: 50%; background: var(--lime-100); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.perk:nth-child(even) .pi { background: var(--beige-100); }

/* ---------- For all ---------- */
.c-for-all { background: var(--lime-100); }
.c-for-all .c-two { align-items: start; }

/* ---------- Office gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; margin-top: 40px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.gallery .g4 { grid-column: span 2; }

/* ---------- Vacancies ---------- */
.c-vacancies { background: var(--paper-2); padding: 88px 0 28px; }
.c-vacancies .process { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.c-vacancies .step { background: var(--green-100); color: #000; border-radius: var(--radius-pill); height: 38px; padding: 0 16px 0 7px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: .82rem; }
.c-vacancies .step b { background: var(--sparkle-green); color: #000; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
#view.pub-main { margin: 0 auto; padding-top: 24px; padding-bottom: 0; }
.c-vacancies + .pub-main { background: transparent; }
body { background: var(--paper-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .c-two { grid-template-columns: 1fr; gap: 40px; }
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .values-list { grid-template-columns: 1fr; }
  .tribe-card .slide.on { grid-template-columns: 1fr; }
  .tribe-card .q { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 28px 24px; }
  .tribe-card img { border-radius: 0 0 var(--radius-lg) var(--radius-lg); min-height: 280px; max-height: 340px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .g4 { grid-column: span 2; }
}
@media (max-width: 720px) {
  .c-sec, .c-tribe { padding: 56px 0; }
  .c-hero { background-position: 72% top; padding: 100px var(--gutter) 90px; min-height: 620px; }
  .c-hero::before { content: ""; position: absolute; inset: 0 0 14% 0; background: linear-gradient(90deg, rgba(16, 16, 16, .9), rgba(16, 16, 16, .5)); }
  .c-phone { min-height: 420px; }
  .perk-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .perk { padding: 24px 12px; font-size: .84rem; }
}

/* ---------- Role page: compact dark banner, details beside the application form ---------- */
.role-hero { background: var(--ink); color: #fff; padding: 56px 0 64px; border-bottom: 6px solid var(--sparkle-lime); }
.role-hero[hidden] { display: none; }
.role-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--fw-extra); letter-spacing: var(--ls-display); margin: 18px 0 16px; max-width: 820px; }
.role-back { color: #fff; font-weight: var(--fw-bold); text-decoration: none; display: inline-block; }
.role-back:hover { color: var(--sparkle-lime); text-decoration: none; }
.role-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.role-meta span { background: rgba(255, 255, 255, .14); color: #fff; border-radius: var(--radius-pill); height: 32px; padding: 0 16px; display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: .82rem; }
.role-main { padding-top: 40px; padding-bottom: 8px; }
.role-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.role-grid .card + .card { margin-top: 0; }
.role-grid #apply-card { position: sticky; top: 92px; }
.role-summary { font-size: 1.05rem; line-height: 1.75; }
.job-detail h2 { font-size: 1.15rem; font-weight: var(--fw-extra); margin-top: 28px; }
.job-detail ul.bullets li { margin-bottom: 8px; line-height: 1.65; }
@media (max-width: 960px) { .role-grid { grid-template-columns: 1fr; } .role-grid #apply-card { position: static; } }
