/* ==========================================================================
   Career (Figma "Web Agency Design-Career", prototype page 14).
   Header, footer and the press-logo strip come from style.css.
   ========================================================================== */

.cr-wrap { width: 1332px; max-width: 100%; margin: 0 auto; }
.cr-heading {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 42px;
  line-height: 52px;
  color: var(--color-heading);
  text-align: center;
}
.cr-heading--left { text-align: left; }

/* ---------- Banner ---------- */
/* Text on the left (centred with flex), photo columns on the right running the full height */
.cr-hero {
  --banner-pt: 0;
  --banner-x: 3px;
  --banner-shade: linear-gradient(115deg, rgba(3, 7, 24, .95) 0%, rgba(4, 20, 60, .82) 40%, rgba(10, 80, 210, .55) 75%, rgba(16, 112, 240, .5) 100%);
  align-items: stretch;
  background-image: url("../assets/images/career/banner-gradient.jpg");
}
.cr-hero__inner { display: flex; justify-content: space-between; }
.cr-hero__copy { align-self: center; padding-top: 81px; }
.cr-hero__title {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 62px;
  line-height: 78px;
  color: var(--color-white);
}
.cr-hero__text {
  width: 666px;
  margin-top: 22px;
  padding-left: 3px;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, .82);
}
.cr-page .cr-hero__actions .circle-link { font-size: 16px !important; margin-left: 4px; }
.cr-hero__actions { display: flex; align-items: center; gap: 20px; margin-top: 77px; }
.cr-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 30px;
  background: rgba(120, 150, 220, .18);
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.cr-hero__badge span { color: #F5B82E; letter-spacing: 1px; font-size: 11px; }

/* Two columns of team portraits that glide slowly; faded at the top and bottom */
.cr-hero__team {
  display: flex;
  gap: 30px;
  width: 596px;
  contain: size;              /* the scrolling columns never make the banner taller */
  padding-top: 112px;
  -webkit-mask-image: linear-gradient(180deg, transparent 112px, #000 260px, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 112px, #000 260px, #000 78%, transparent 100%);
}
.cr-hero__col { display: flex; flex-direction: column; gap: 27px; width: 283px; animation: cr-up 18s linear infinite; }
.cr-hero__col + .cr-hero__col { margin-top: -180px; animation-name: cr-down; }
.cr-hero__col img { width: 283px; height: 361px; flex: 0 0 361px; object-fit: cover; border-radius: 6px; background: #E9EDF5; }
@keyframes cr-up   { from { transform: translateY(0); }       to { transform: translateY(-776px); } }
@keyframes cr-down { from { transform: translateY(-776px); }  to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cr-hero__col { animation: none; } }

/* Press logos: dark strip under the banner, as in the design */
.cr-page .press-strip { background: #050A22; }

/* ---------- Why you'll love it here ---------- */
.cr-love { padding: var(--section-space) 0; background: var(--color-white); }
.cr-love__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 34px; margin-top: 50px; }
.cr-love__card img { width: 100%; height: 254px; object-fit: cover; border-radius: 10px; }
.cr-love__title { margin-top: 26px; font-family: var(--font-poppins); font-weight: 600; font-size: 20px; line-height: 28px; color: var(--color-heading); }
.cr-love__text { margin-top: 10px; font-family: var(--font-dm-sans); font-size: 15px; line-height: 23px; color: #4B5563; }

/* ---------- Perks and Benefits ---------- */
.cr-perks { padding: var(--section-space) 0; background: #F5F6FD; }
.cr-perks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 34px; margin-top: 50px; }
.cr-perk { padding: 28px 30px 32px; border: 1px solid #ECEEF5; border-radius: 10px; background: var(--color-white); }
.cr-perk__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; font-size: 22px; line-height: 1; }
.cr-perk__title { max-width: 330px; margin-top: 26px; font-family: var(--font-poppins); font-weight: 600; font-size: 20px; line-height: 28px; color: var(--color-heading); }
.cr-perk__text { max-width: 320px; margin-top: 10px; font-family: var(--font-dm-sans); font-size: 15px; line-height: 24px; color: #4B5563; }

/* ---------- Rewards and Recognition (photo mosaic) ---------- */
.cr-rewards { padding: var(--section-space) 0; background: var(--color-white); }
.cr-rewards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 1216px; max-width: 100%; margin: 50px auto 0; }
.cr-rewards__col { display: flex; flex-direction: column; gap: 16px; }
.cr-rewards__col img { width: 100%; height: calc(var(--h) * 1.3588px); object-fit: cover; border-radius: 8px; }

/* ---------- Open positions ---------- */
.cr-jobs { padding: var(--section-space) 0; background: #F5F6FD; }
.cr-jobs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.cr-job { display: flex; flex-direction: column; padding: 30px 28px 26px 20px; border: 1px solid #E8EAF2; border-radius: 6px; background: var(--color-white); }
.cr-job__title { font-family: var(--font-poppins); font-weight: 600; font-size: 19px; line-height: 26px; color: var(--color-heading); }
.cr-job__meta { margin-top: 10px; font-family: var(--font-dm-sans); font-size: 14px; line-height: 20px; color: #4B5563; }
.cr-job__apply { align-self: flex-end; margin-top: 16px; font-weight: 500; font-size: 19px; }

/* 85px of visible space: take off the empty space above the first line of text */
@media (min-width: 1200px) {
  .cr-love, .cr-perks, .cr-rewards, .cr-jobs { padding-top: calc(var(--section-space) - 11px); }
}

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 1199.98px) {
  .cr-wrap { padding: 0 16px; }
  .cr-heading { font-size: 30px; line-height: 38px; }
  .cr-hero { padding-bottom: 0; }
  .cr-hero__inner { flex-direction: column; }
  .cr-hero__copy { padding-top: 0; }
  .cr-hero__title { font-size: 40px; line-height: 50px; }
  .cr-hero__text { width: auto; max-width: 640px; margin-top: 20px; padding-left: 0; font-size: 17px; }
  .cr-hero__actions { flex-wrap: wrap; margin-top: 32px; }
  .cr-hero__team { width: 100%; height: 420px; margin-top: 40px; padding-top: 0; justify-content: center; -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
  .cr-hero__col { width: 44%; max-width: 220px; }
  .cr-hero__col img { width: 100%; height: auto; flex-basis: auto; aspect-ratio: 283 / 361; }
  .cr-hero__col + .cr-hero__col { margin-top: -120px; }
  .cr-love__grid, .cr-perks__grid, .cr-jobs__grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .cr-rewards__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 32px; padding: 0 16px; }
  .cr-rewards__col { gap: 10px; }
  .cr-rewards__col img { height: auto; aspect-ratio: 4 / 3; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .cr-love__grid, .cr-perks__grid, .cr-jobs__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Apply pop-up (Figma prototype page 15)
   ========================================================================== */
.ap-modal {
  width: 740px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--color-white);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  overflow: auto;
}
.ap-modal::backdrop { background: rgba(3, 8, 22, .72); }
.ap-modal[open] { animation: ap-in .22s ease; }
@keyframes ap-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
body.ap-lock { overflow: hidden; }

.ap-form { position: relative; padding: 40px 40px 44px; }
.ap-close {
  position: absolute; top: 26px; right: 25px;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: #F1F3F7; color: #374151; cursor: pointer;
  transition: background-color .2s ease;
}
.ap-close:hover { background: #E3E7EF; }
.ap-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-poppins); font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .4px; text-transform: uppercase; color: var(--color-primary); }
.ap-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.ap-title { margin-top: 6px; font-family: var(--font-poppins); font-weight: 600; font-size: 28px; line-height: 36px; color: var(--color-heading); }

.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 20px; margin-top: 22px; }
.ap-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ap-field--full { margin-top: 19px; }
.ap-label { font-family: var(--font-poppins); font-weight: 600; font-size: 14px; line-height: 20px; color: #374151; }
.ap-label b { color: var(--color-primary); font-weight: 600; }
.ap-input {
  width: 100%;
  height: 45px;
  padding: 0 16px;
  border: 1px solid #E3E6EC;
  border-radius: 8px;
  background: #F8F9FA;
  outline: 0;
  font-family: var(--font-dm-sans);
  font-size: 15px;
  color: #111827;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.ap-input::placeholder { color: #9CA3AF; }
.ap-input:focus, .ap-input:focus-within { border: 1.5px solid var(--color-primary); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(0, 119, 224, .08); }
input.ap-input:not(:placeholder-shown):not(:focus) { background: #FFFFFF; }
textarea.ap-input { height: 113px; padding: 14px 16px; resize: vertical; line-height: 22px; }

.ap-phone { display: flex; align-items: center; padding: 0; }
.ap-phone select { flex: 0 0 66px; height: 24px; padding: 0 6px 0 14px; border: 0; border-right: 1px solid #E3E6EC; background: transparent; font-size: 16px; outline: 0; cursor: pointer; }
.ap-phone input { flex: 1; min-width: 0; height: 100%; padding: 0 14px 0 12px; border: 0; background: transparent; outline: 0; font-family: var(--font-dm-sans); font-size: 15px; color: #111827; }
.ap-phone input::placeholder { color: #9CA3AF; }
.ap-select { position: relative; }
.ap-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; color: #374151; }
.ap-select svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #4B5563; pointer-events: none; }

.ap-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 49px;
  padding: 0 20px 0 22px;
  border: 1.5px dashed #D9C6F7;
  border-radius: 8px;
  background: #F9F4FF;
  color: var(--color-primary);
  cursor: pointer;
  transition: border-color .2s ease;
}
.ap-file:hover { border-color: var(--color-primary); }
.ap-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ap-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-poppins); font-weight: 600; font-size: 15px; }
.ap-file__hint { font-family: var(--font-poppins); font-weight: 500; font-size: 11px; color: var(--color-primary); white-space: nowrap; }

.ap-robot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 251px;
  height: 73px;
  margin-top: 24px;
  padding: 0 12px 0 14px;
  border: 1px solid #D3D3D3;
  border-radius: 3px;
  background: #F9F9F9;
  box-shadow: 0 0 4px rgba(0, 0, 0, .08);
  cursor: pointer;
  font-family: Roboto, Arial, sans-serif;
}
.ap-robot input { position: absolute; opacity: 0; pointer-events: none; }
.ap-robot__box { flex: 0 0 24px; height: 24px; border: 2px solid #C1C1C1; border-radius: 2px; background: #FFFFFF; display: grid; place-items: center; transition: border-color .2s ease; }
.ap-robot input:checked + .ap-robot__box { border-color: transparent; }
.ap-robot input:checked + .ap-robot__box::after { content: ""; width: 8px; height: 15px; margin-top: -4px; border: solid #1F9D55; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ap-robot input:focus-visible + .ap-robot__box { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.ap-robot__text { flex: 1; font-size: 13px; color: #222; }
.ap-robot__logo { display: flex; flex-direction: column; align-items: center; color: #4A90E2; }
.ap-robot__logo small { font-size: 8px; color: #555; margin-top: 2px; }

.ap-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 32px; }
.ap-status { flex: 1; font-family: var(--font-dm-sans); font-size: 13px; color: #D2405F; }
.ap-status.is-done { color: #1F9D6B; }
.ap-submit {
  height: 43px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 119, 224, .25);
  transition: background-color .2s ease;
}
.ap-submit:hover { background: #005EB4; }

@media (max-width: 767.98px) {
  .ap-form { padding: 28px 18px 24px; }
  .ap-title { font-size: 22px; line-height: 30px; padding-right: 44px; }
  .ap-close { top: 18px; right: 16px; }
  .ap-grid { grid-template-columns: 1fr; }
  .ap-file__hint { display: none; }
  .ap-submit { width: 100%; }
}

/* ==========================================================================
   Review updates (developer feedback)
   ========================================================================== */
/* Perks: line icons in the site blue */
.cr-perk__icon { background: #EAF3FD; color: var(--color-primary); border-radius: 10px; }
.cr-perk__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cr-perk { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.cr-perk:hover { border-color: rgba(0, 119, 224, .35); box-shadow: 0 16px 32px -16px rgba(0, 119, 224, .35); transform: translateY(-3px); }

/* Open positions: "Apply" sits on the left, under the job details */
.cr-job__apply { align-self: flex-start; margin-top: 24px; }
.cr-job { padding: 30px 28px 28px; }

/* "Why you'll love it here": photos get a clean, even edge */
.cr-love__card img { border: 1px solid #E6E8F0; box-sizing: border-box; }

/* Tablets and phones: cards keep the same 24px inside as cards elsewhere on the site */
@media (max-width: 1199.98px) {
  .cr-perk, .cr-job { padding-left: 24px; padding-right: 24px; }
}
