/* ===== CAREERS PAGE (careers.html) =====
   Everything this page needs lives here; the shared form fields, buttons and the CV box come from style.css.
   Day-mode colours of the cards are at the end of css/day.css.
   Order of the page: title -> three big cards -> perks -> hiring steps -> team quotes -> application form -> newsletter -> footer. */

.cr-section { padding-top: 50px; padding-bottom: 50px; }
.cr-first { padding-top: 20px; padding-bottom: 20px; }
.cr-apply { padding-bottom: 100px; }
.cr-section .section-header { margin-bottom: 40px; }
.cr-hero-btn { margin-top: 22px; }

/* the three big cards under the page title */
.cr-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cr-perk { text-align: center; padding: 36px 28px; }
.cr-perk-icon { margin-bottom: 16px; font-size: 2.4rem; line-height: 1; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cr-perk h4 { margin-bottom: 8px; font-size: 1.15rem; }
.cr-perk p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.65; }

/* perks & benefits: 3 per row, 2 on a tablet, 1 on a phone */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card { padding: 26px 24px; background: rgba(123,108,246,0.04); border: 1px solid rgba(123,108,246,0.12); border-radius: 16px; transition: border-color 0.25s ease, transform 0.25s ease; }
.benefit-card:hover { border-color: rgba(123,108,246,0.3); }
.benefit-icon { margin-bottom: 14px; font-size: 1.6rem; color: var(--primary); }
.benefit-card h4 { margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.benefit-card p { font-size: 0.86rem; line-height: 1.65; color: var(--text-secondary); }

/* hiring steps: four cards in a row with a small arrow between them; 2 x 2 on a tablet, stacked on a phone */
.hiring-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.hs-step { position: relative; padding: 28px 20px; text-align: center; background: rgba(123,108,246,0.04); border: 1px solid rgba(123,108,246,0.12); border-radius: 16px; }
.hs-step:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -21px; width: 9px; height: 9px; border-top: 2px solid var(--text-muted); border-right: 2px solid var(--text-muted); transform: translateY(-50%) rotate(45deg); }
.hs-num { margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 800; line-height: 1.1; background: var(--gradient-royal); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hs-step h4 { margin-bottom: 6px; font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.hs-step p { font-size: 0.84rem; line-height: 1.65; color: var(--text-secondary); }

/* what the team says */
.emp-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.emp-testi-card { margin: 0; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(123,108,246,0.04); border: 1px solid rgba(123,108,246,0.12); border-radius: 16px; }
.emp-quote { margin: 0 0 22px; font-style: italic; font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); }
.emp-quote::before { content: '\201C'; }
.emp-quote::after { content: '\201D'; }
.emp-testi-footer { display: flex; align-items: center; gap: 12px; }
.emp-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 700; color: #fff; box-shadow: inset 0 0 0 42px rgba(6,6,24,0.28); }
.emp-avatar:empty { display: none; }
.emp-testi-card:nth-child(3n+1) .emp-avatar { background: linear-gradient(135deg, #7B6CF6, #38BDF8); }
.emp-testi-card:nth-child(3n+2) .emp-avatar { background: linear-gradient(135deg, #F472B6, #FB923C); }
.emp-testi-card:nth-child(3n) .emp-avatar { background: linear-gradient(135deg, #28C878, #38BDF8); }
.emp-name { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); }
.emp-role { font-size: 0.78rem; color: var(--text-muted); }

/* the application form (the card itself is .careers-wrap in style.css) */
.careers-wrap h2 { margin-bottom: 8px; font-size: 1.7rem; text-align: center; }
.cr-apply-desc { margin-bottom: 36px; font-size: 0.92rem; text-align: center; color: var(--text-secondary); }
#apply { scroll-margin-top: 90px; }

@media (max-width: 1023px) {
  .benefits-grid, .emp-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .hiring-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hs-step:not(:last-child)::after { display: none; }
}
@media (max-width: 767px) {
  .cr-perks { grid-template-columns: 1fr; gap: 16px; }
  .cr-perk { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .cr-section { padding-top: 36px; padding-bottom: 36px; }
  .cr-first { padding-top: 12px; padding-bottom: 12px; }
  .cr-apply { padding-bottom: 70px; }
  .cr-section .section-header { margin-bottom: 28px; }
  .benefits-grid, .emp-testi-grid, .hiring-steps { grid-template-columns: 1fr; gap: 14px; }
  .benefit-card { padding: 22px 20px; }
  .hs-step { padding: 22px 18px; }
  .emp-testi-card { padding: 24px 20px; }
  .cr-apply-desc { margin-bottom: 26px; }
}
