/* Careers pages — takes its look from the hiring posters: maroon, cream and gold */
:root {
  --cr-maroon:      #2C0710;
  --cr-maroon-deep: #1E040A;
  --cr-maroon-soft: #41101B;
  --cr-line:        rgba(251, 240, 220, .16);
  --cr-cream:       #FBF0DC;
  --cr-cream-dim:   #DCC9B4;
  --cr-gold:        #E5BA62;
  --cr-gold-dark:   #D2A247;
  --cr-paper:       #FDF7EB;
  --cr-ink:         #2C0710;
  --cr-ink-soft:    #6C5048;
  --cr-paper-line:  #E7D8C0;
  --cr-danger:      #B3261E;
  --cr-serif: 'DM Serif Display', 'Noto Serif Sinhala', Georgia, serif;
  --cr-sans:  'Montserrat', 'Noto Sans Sinhala', 'Segoe UI', -apple-system, sans-serif;
}

/* app.css reserves 130px under the footer as a margin, which shows as a band of body colour here */
.info-footer { margin-bottom: 0; padding-bottom: 96px; }
@media (min-width: 768px) { .info-footer { padding-bottom: 24px; } }

.cr {
  background: var(--cr-maroon);
  color: var(--cr-cream);
  font-family: var(--cr-sans);
  font-weight: 500;
}
.cr-wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ── Shared type & buttons ───────────────────────────────── */
.cr-eyebrow {
  color: var(--cr-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.cr-h2 {
  font-family: var(--cr-serif);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--cr-cream);
}
.cr-sub { color: var(--cr-cream-dim); font-size: 15px; margin-top: 8px; }
.cr-section { padding-top: 48px; padding-bottom: 8px; }

.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--cr-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.cr-btn i { font-size: 13px; }
.cr-btn-gold { background: var(--cr-gold); color: var(--cr-ink); }
.cr-btn-ghost { border-color: var(--cr-cream-dim); color: var(--cr-cream); }
.cr-btn-dark { background: var(--cr-maroon); color: var(--cr-cream); }
.cr-btn-dark-ghost { border-color: var(--cr-maroon); color: var(--cr-maroon); }
@media (hover: hover) {
  .cr-btn-gold:hover { background: var(--cr-gold-dark); }
  .cr-btn-ghost:hover { background: rgba(251, 240, 220, .1); }
  .cr-btn-dark:hover { background: var(--cr-maroon-soft); }
  .cr-btn-dark-ghost:hover { background: rgba(44, 7, 16, .08); }
}
.cr a:focus-visible, .cr button:focus-visible, .cr input:focus-visible,
.cr select:focus-visible, .cr textarea:focus-visible {
  outline: 3px solid var(--cr-gold);
  outline-offset: 2px;
}

/* ── Hero ────────────────────────────────────────────────── */
.cr-hero {
  position: relative;
  background: linear-gradient(180deg, var(--cr-maroon-deep) 0%, var(--cr-maroon) 100%);
  text-align: center;
  isolation: isolate;
}
/* The warm out-of-focus lights behind the posters */
.cr-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle 110px at 10% 22%, rgba(255, 186, 92, .3), transparent 70%),
    radial-gradient(circle 46px at 21% 58%, rgba(255, 196, 120, .2), transparent 70%),
    radial-gradient(circle 90px at 90% 18%, rgba(255, 186, 92, .26), transparent 70%),
    radial-gradient(circle 34px at 78% 46%, rgba(255, 214, 150, .24), transparent 70%),
    radial-gradient(circle 170px at 100% 78%, rgba(168, 62, 28, .34), transparent 70%),
    radial-gradient(circle 170px at 0% 84%, rgba(168, 62, 28, .28), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.cr-hero-inner { padding-top: 40px; padding-bottom: 44px; }
.cr-hero-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 50%;
}
.cr-hero-title {
  max-width: 780px;
  margin: 14px auto 0;
  font-family: var(--cr-serif);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  line-height: 1.06;
  color: var(--cr-cream);
  text-wrap: balance;
}
.cr-hero-text {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--cr-cream-dim);
  font-size: 16px;
  line-height: 1.65;
}
.cr-hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.cr-hero-loc {
  margin-top: 22px;
  color: var(--cr-cream-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cr-hero-loc i { color: var(--cr-gold); margin-right: 6px; }

/* ── Job cards ───────────────────────────────────────────── */
.cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin-top: 24px;
}
.cr-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cr-maroon-soft);
  border: 1px solid var(--cr-line);
  border-radius: 16px;
  color: var(--cr-cream);
  text-decoration: none;
  transition: border-color .15s;
}
.cr-card-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cr-maroon-deep); }
.cr-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.cr-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.cr-card-title { font-family: var(--cr-serif); font-size: 28px; line-height: 1.15; color: var(--cr-gold); }
.cr-card-si { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--cr-cream); }
.cr-card-summary { margin-top: 10px; color: var(--cr-cream-dim); font-size: 14px; line-height: 1.55; }
.cr-card .cr-facts { margin: 14px 0 18px; }
.cr-card .cr-btn { width: 100%; margin-top: auto; }
@media (hover: hover) {
  .cr-card:hover { border-color: var(--cr-gold); }
  .cr-card:hover .cr-card-img img { transform: scale(1.03); }
}

.cr-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--cr-cream-dim); font-size: 13px; list-style: none; }
.cr-facts > * { display: inline-flex; align-items: baseline; gap: 7px; }
.cr-facts i { color: var(--cr-gold); font-size: 12px; }

.cr-empty {
  margin-top: 24px;
  padding: 48px 20px;
  background: var(--cr-maroon-soft);
  border: 1px solid var(--cr-line);
  border-radius: 16px;
  text-align: center;
}
.cr-empty i { color: var(--cr-gold); font-size: 30px; }
.cr-empty h3 { margin-top: 14px; font-family: var(--cr-serif); font-size: 26px; font-weight: 400; }
.cr-empty p { margin-top: 8px; color: var(--cr-cream-dim); font-size: 15px; }

/* ── How it works ────────────────────────────────────────── */
.cr-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px;
  margin-top: 24px;
  list-style: none;
}
.cr-steps li { padding-top: 18px; border-top: 1px solid var(--cr-line); }
.cr-step-num { font-family: var(--cr-serif); font-size: 40px; line-height: 1; color: var(--cr-gold); }
.cr-steps h3 { margin-top: 10px; font-size: 16px; font-weight: 700; color: var(--cr-cream); }
.cr-steps p { margin-top: 6px; color: var(--cr-cream-dim); font-size: 14px; line-height: 1.6; }

/* ── Contact band ────────────────────────────────────────── */
.cr-contact-wrap { padding-top: 48px; padding-bottom: 56px; }
.cr-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 24px;
  background: var(--cr-paper);
  border-radius: 16px;
  color: var(--cr-ink);
}
.cr-contact h2 { font-family: var(--cr-serif); font-size: 28px; font-weight: 400; line-height: 1.15; }
.cr-contact p { margin-top: 4px; color: var(--cr-ink-soft); font-size: 15px; }
.cr-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Job detail ──────────────────────────────────────────── */
.cr-detail { padding-top: 20px; padding-bottom: 56px; }
.cr-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--cr-cream-dim);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.cr-back:hover { color: var(--cr-cream); }
.cr-detail-grid { display: grid; gap: 24px; margin-top: 8px; }
.cr-detail-media img { width: 100%; border-radius: 16px; }
.cr-detail-title {
  margin-top: 8px;
  font-family: var(--cr-serif);
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--cr-gold);
}
.cr-detail-si { margin-top: 6px; font-size: 18px; color: var(--cr-cream); }
.cr-facts-lg { margin-top: 16px; font-size: 14px; }
.cr-apply-jump { width: 100%; margin-top: 20px; }

.cr-prose { margin-top: 28px; color: var(--cr-cream-dim); font-size: 15px; line-height: 1.7; }
.cr-prose p { margin-top: 12px; }
.cr-prose .cr-lead { margin-top: 0; color: var(--cr-cream); font-size: 18px; line-height: 1.55; }
.cr-prose h2 {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--cr-line);
  font-family: var(--cr-serif);
  font-size: 25px;
  font-weight: 400;
  color: var(--cr-cream);
}
.cr-prose ul { margin-top: 10px; list-style: none; }
.cr-prose li { position: relative; padding-left: 20px; margin-top: 7px; }
.cr-prose li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .68em;
  width: 7px;
  height: 7px;
  background: var(--cr-gold);
  transform: rotate(45deg);
}

/* ── Application form ────────────────────────────────────── */
.cr-panel {
  margin-top: 32px;
  padding: 24px 20px;
  background: var(--cr-paper);
  border-radius: 16px;
  color: var(--cr-ink);
  scroll-margin-top: 90px;
}
.cr-panel-title { font-family: var(--cr-serif); font-size: 30px; font-weight: 400; line-height: 1.15; color: var(--cr-ink); }
.cr-panel-sub { margin: 6px 0 20px; color: var(--cr-ink-soft); font-size: 14px; }

.cr-field { margin-bottom: 18px; min-width: 0; }
.cr-field-row { display: grid; gap: 0 14px; }
.cr-field > label:not(.cr-file):not(.cr-check), .cr-label {
  display: block;
  margin-bottom: 6px;
  color: var(--cr-ink);
  font-size: 14px;
  font-weight: 600;
}
.cr-req { color: var(--cr-danger); }
.cr-optional { color: var(--cr-ink-soft); font-size: 12px; font-weight: 500; }
.cr-field input[type=text], .cr-field input[type=tel], .cr-field input[type=email],
.cr-field input[type=number], .cr-field select, .cr-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--cr-paper-line);
  border-radius: 10px;
  color: var(--cr-ink);
  font-family: var(--cr-sans);
  font-size: 16px; /* below 16px iOS zooms the page on focus */
  font-weight: 500;
}
.cr-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.cr-field ::placeholder { color: #9A8678; }
.cr-field input:focus, .cr-field select:focus, .cr-field textarea:focus { border-color: var(--cr-maroon); outline: none; box-shadow: 0 0 0 3px rgba(229, 186, 98, .55); }
.cr-hint { margin-top: 5px; color: var(--cr-ink-soft); font-size: 12.5px; line-height: 1.45; }
.cr-error { color: var(--cr-danger); font-size: 13px; font-weight: 600; line-height: 1.4; }
.cr-error:not(:empty) { margin-top: 5px; }
.cr-invalid input, .cr-invalid select, .cr-invalid textarea, .cr-invalid .cr-file { border-color: var(--cr-danger) !important; }

.cr-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px dashed #BFA88C;
  border-radius: 10px;
  color: var(--cr-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  word-break: break-word;
}
.cr-file i { color: var(--cr-gold-dark); }
.cr-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cr-file-input:focus-visible ~ .cr-hint { text-decoration: underline; }

.cr-check { display: flex; align-items: flex-start; gap: 10px; color: var(--cr-ink); font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.cr-check input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--cr-maroon); }
.cr-check a { color: var(--cr-ink); font-weight: 700; text-decoration: underline; }

.cr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-form-error { color: var(--cr-danger); font-size: 14px; font-weight: 600; }
.cr-form-error:not(:empty) { margin-bottom: 12px; }
.cr-submit { width: 100%; min-height: 54px; font-size: 16px; }
.cr-submit:disabled { opacity: .65; cursor: wait; }

.cr-success { text-align: center; padding: 12px 0; outline: none; }
.cr-success[hidden] { display: none; }
.cr-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  background: var(--cr-maroon);
  border-radius: 50%;
  color: var(--cr-gold);
  font-size: 24px;
}
.cr-success p { margin-top: 8px; color: var(--cr-ink-soft); font-size: 15px; line-height: 1.6; }
.cr-success .cr-ref-label { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cr-success .cr-ref { margin: 4px 0 22px; color: var(--cr-ink); font-size: 24px; font-weight: 700; letter-spacing: .06em; }

/* ── Tablet & desktop ────────────────────────────────────── */
@media (min-width: 560px) {
  .cr-field-row { grid-template-columns: 1fr 1fr; }
  .cr-panel { padding: 32px; }
}
@media (min-width: 768px) {
  .cr-wrap { padding-left: 32px; padding-right: 32px; }
  .cr-hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .cr-section { padding-top: 64px; }
  .cr-contact { padding: 36px 40px; }
  .cr-glow {
    background:
      radial-gradient(circle 240px at 8% 24%, rgba(255, 186, 92, .28), transparent 70%),
      radial-gradient(circle 80px at 21% 62%, rgba(255, 196, 120, .2), transparent 70%),
      radial-gradient(circle 190px at 90% 20%, rgba(255, 186, 92, .24), transparent 70%),
      radial-gradient(circle 60px at 78% 50%, rgba(255, 214, 150, .22), transparent 70%),
      radial-gradient(circle 340px at 100% 82%, rgba(168, 62, 28, .34), transparent 70%),
      radial-gradient(circle 340px at 0% 88%, rgba(168, 62, 28, .28), transparent 70%);
  }
}
@media (min-width: 960px) {
  .cr-detail-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
  .cr-detail-media { position: sticky; top: 96px; }
  .cr-apply-jump { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-card-img img, .cr-btn { transition: none; }
}
