/* Careers page /careers/ (2026-11-28, owner: «صفحة للوظائف… معتمدين من ريكورد كارير ونعتمد عليه في التوظيف»).
   Deep-teal hero with the RecordCareers "verified company" badge on a glass card, facts strip, why-RecordCareers,
   20 role cards with a filter, steps and a closing call. Motion only under .cr-anim (set by the page script). */
.cr { --cr-ink: #0b2b2b; --cr-gold: var(--mcc-gold-300, #f1d491); }

.cr-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background: radial-gradient(ellipse at 85% 0%, rgba(47, 159, 161, .45), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(241, 212, 145, .14), transparent 50%),
              linear-gradient(160deg, #01494a 0%, #013234 60%, #012628 100%); }
.cr-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 80% 10%, transparent 0 46px, rgba(255, 255, 255, .035) 46px 47px); }
.cr-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cr-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(241, 212, 145, .4); color: var(--cr-gold); }
.cr-tag--soft { background: var(--tint, #eef7f6); border-color: var(--line); color: var(--mcc-teal-650, #036f71); }
.cr-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.22; margin: 16px 0 14px; text-wrap: balance; }
.cr-lead { color: #cfe5e1; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.85; margin: 0 0 26px; max-width: 60ch; }
.cr-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cr-btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.cr-btn-glass:hover { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }

.cr-proof { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: 26px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.cr-proof__glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(120deg, rgba(241, 212, 145, .7), transparent 35%, transparent 65%, rgba(129, 214, 206, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cr-proof__badge { display: block; position: relative; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .65); }
.cr-badge { display: block; width: 100%; height: auto; }
.cr-proof__h { margin: 18px 0 6px; font-size: 18px; font-weight: 600; color: #fff; }
.cr-proof__p { margin: 0; color: #b9d6d2; font-size: 14.5px; line-height: 1.8; }

.cr-stats { position: relative; z-index: 2; margin-top: -40px; }
.cr-stats__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 50px -30px rgba(0, 63, 64, .45); overflow: hidden; }
.cr-stats__in > div { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 20px 12px; }
.cr-stats__in > div + div { border-inline-start: 1px solid var(--line); }
.cr-stats b { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; color: var(--mcc-teal-800, #00595a); font-variant-numeric: tabular-nums; }
.cr-stats span { color: var(--muted); font-size: 14px; }

.cr-head { text-align: center; max-width: 720px; margin: 0 auto clamp(24px, 4vw, 40px); }
.cr-head h2 { margin: 14px 0 10px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; text-wrap: balance; }
.cr-head p { margin: 0; color: var(--muted); line-height: 1.85; }

.cr-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cr-why__item { padding: 26px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.cr-why__item h3 { margin: 14px 0 6px; font-size: 18px; }
.cr-why__item p { margin: 0; color: var(--muted); line-height: 1.8; }
.cr-why__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -12px rgba(0, 89, 90, .8); }
.cr-why__ic svg { width: 24px; height: 24px; }

.cr-jobs { background: linear-gradient(180deg, var(--tint, #eef7f6), #fff 70%); }
.cr-tabs { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 26px; }
.cr-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.cr-tabs button b { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--tint, #eef7f6); color: var(--mcc-teal-650, #036f71); font-size: 12.5px; }
.cr-tabs button:hover { border-color: var(--brand, #058a8d); }
.cr-tabs button.is-on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 89, 90, .8); }
.cr-tabs button.is-on b { background: rgba(255, 255, 255, .2); color: #fff; }

.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)); gap: 16px; }
.cr-job { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--sh); transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s, border-color .35s; overflow: hidden; }
.cr-job::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; height: 3px; background: linear-gradient(90deg, var(--mcc-teal-600, #058a8d), var(--cr-gold));
  transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
[dir="ltr"] .cr-job::before { transform-origin: left; }
.cr-job:hover { transform: translateY(-4px); border-color: rgba(5, 138, 141, .35); box-shadow: 0 26px 46px -30px rgba(0, 63, 64, .5); }
.cr-job:hover::before { transform: scaleX(1); }
.cr-job[hidden] { display: none; }
.cr-job__top { display: flex; align-items: center; gap: 10px; }
.cr-ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--tint, #eef7f6); color: var(--mcc-teal-650, #036f71); flex: none; }
.cr-job__cat { font-size: 12.5px; font-weight: 600; color: var(--mcc-teal-650, #036f71); }
.cr-job__n { margin-inline-start: auto; font-size: 13px; font-weight: 600; color: #c7d8d6; font-variant-numeric: tabular-nums; }
.cr-job h3 { margin: 8px 0 0; font-size: 17.5px; line-height: 1.45; }
.cr-job__en { margin: 0; color: var(--muted); font-size: 13px; text-align: start; }
.cr-job ul { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 6px; flex: 1; }
.cr-job li { position: relative; padding-inline-start: 18px; color: #3c5654; font-size: 14px; line-height: 1.7; }
.cr-job li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--cr-gold); box-shadow: 0 0 0 3px rgba(241, 212, 145, .25); }
.cr-apply { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px;
  background: var(--tint, #eef7f6); color: var(--mcc-teal-800, #00595a); font-weight: 600; text-decoration: none; transition: background-color .25s, color .25s; }
.cr-apply svg { width: 16px; height: 16px; transition: transform .3s; }
[dir="rtl"] .cr-apply svg { transform: scaleX(-1); }
.cr-apply:hover { background: var(--grad); color: #fff; text-decoration: none; }
.cr-apply:hover svg { transform: translate(2px, -2px); }
[dir="rtl"] .cr-apply:hover svg { transform: scaleX(-1) translate(2px, -2px); }

.cr-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.cr-steps__list li { position: relative; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); }
.cr-steps__list b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 18px; }
.cr-steps__list h3 { margin: 14px 0 6px; font-size: 17px; }
.cr-steps__list p { margin: 0; color: var(--muted); line-height: 1.8; }

.cr-cta { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.cr-cta__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px 40px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; color: #fff;
  background: radial-gradient(ellipse at 100% 0, rgba(241, 212, 145, .2), transparent 50%), linear-gradient(150deg, #01494a, #012628); box-shadow: 0 30px 60px -34px rgba(0, 50, 52, .9); }
.cr-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(22px, 3vw, 32px); line-height: 1.35; }
.cr-cta p { margin: 0; color: #cfe5e1; }
.cr-cta__end { display: grid; gap: 14px; justify-items: center; }
.cr-cta__badge { display: block; width: min(300px, 100%); border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7); }
.btn--gold { background: linear-gradient(135deg, #f1d491, #c9a254); color: #2b2210; border: 0; box-shadow: 0 12px 26px -14px rgba(192, 138, 42, .9); }
.btn--gold:hover { filter: brightness(1.05); color: #2b2210; text-decoration: none; }

@media (max-width: 960px) {
  .cr-hero__in { grid-template-columns: 1fr; }
  .cr-proof { max-width: 520px; width: 100%; justify-self: center; }
  .cr-why__grid, .cr-steps__list { grid-template-columns: 1fr; }
  .cr-cta__in { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 640px) {
  .cr-stats__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-stats__in > div:nth-child(3) { border-inline-start: 0; }
  .cr-stats__in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cr-hero__btns .btn { flex: 1 1 100%; }
  .cr-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding: 2px 0 8px; scrollbar-width: none; }
  .cr-tabs button { flex: none; }
}

/* Motion (page script adds .cr-anim only when motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .cr-hero__txt > * { animation: crUp .8s cubic-bezier(.22, .61, .36, 1) backwards; }
  .cr-hero__txt > :nth-child(2) { animation-delay: .08s; } .cr-hero__txt > :nth-child(3) { animation-delay: .16s; } .cr-hero__txt > :nth-child(4) { animation-delay: .24s; }
  .cr-proof { animation: crCard 1s cubic-bezier(.22, .61, .36, 1) .2s backwards; }
  .cr-proof__glow { animation: crGlow 6s linear infinite; background-size: 300% 300%; }
  .cr-proof__badge::after, .cr-cta__badge { position: relative; }
  .cr-proof__badge::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%) 160% 0 / 260% 100% no-repeat; animation: crShine 5.5s ease-in-out 1.4s infinite; }
  .cr-proof__badge { transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
  .cr-proof__badge:hover { transform: translateY(-3px) scale(1.015); }
  .cr-anim :is(.cr-head, .cr-why__item, .cr-steps__list li, .cr-cta, .cr-stats__in > div):not(.is-in) { opacity: 0; transform: translateY(18px); }
  .cr-anim :is(.cr-head, .cr-why__item, .cr-steps__list li, .cr-cta, .cr-stats__in > div) { transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1); }
  .cr-anim .cr-why__item:nth-child(2), .cr-anim .cr-steps__list li:nth-child(2), .cr-anim .cr-stats__in > div:nth-child(2) { transition-delay: .1s; }
  .cr-anim .cr-why__item:nth-child(3), .cr-anim .cr-steps__list li:nth-child(3), .cr-anim .cr-stats__in > div:nth-child(3) { transition-delay: .2s; }
  .cr-anim .cr-stats__in > div:nth-child(4) { transition-delay: .3s; }
  .cr-anim .cr-job:not(.is-in) { opacity: 0; transform: translateY(22px) scale(.985); }
  .cr-anim .cr-job.is-in { animation: crUp .6s cubic-bezier(.22, .61, .36, 1) calc(min(var(--i), 8) * 45ms) backwards; }
  .cr-grid.is-swap .cr-job:not([hidden]) { animation: crUp .45s cubic-bezier(.22, .61, .36, 1) backwards; }
}
@keyframes crUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes crCard { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes crGlow { to { background-position: 300% 0; } }
@keyframes crShine { 0%, 60% { background-position: 160% 0; } 100% { background-position: -60% 0; } }

/* "Apply on RecordCareers" buttons in RecordCareers' own colours (2026-11-28, owner: «لازم يطلع لون موقع ريكورد كارير»):
   logo navy #0b2a5c, their action blue #1d4f9e on hover, and the logo green #10a888 as the accent (from their design tokens) */
.cr-apply, a.btn[data-rc] { --rc-navy: #0b2a5c; --rc-blue: #1d4f9e; --rc-green: #10a888;
  background: var(--rc-navy); color: #fff; border: 1px solid var(--rc-navy); box-shadow: 0 8px 20px -10px rgba(11, 42, 92, .55); }
.cr-apply svg, a.btn[data-rc] svg, a.btn[data-rc] .icon { color: var(--rc-green); }
.cr-apply:hover, .cr-apply:focus-visible, a.btn[data-rc]:hover, a.btn[data-rc]:focus-visible { background: var(--rc-blue); border-color: var(--rc-blue); color: #fff; }
.cr-apply:hover svg, a.btn[data-rc]:hover svg { color: #fff; }
/* on the dark bands the navy button gets a thin green ring so it stays visible */
.cr-hero a.btn[data-rc], .cr-cta a.btn[data-rc] { border-color: rgba(16, 168, 136, .85); }
