/* ═══════════════════════════════════════════════════════
   CAREERS PAGE
═══════════════════════════════════════════════════════ */

/* ─── Hero ─────────────────────────────────────────────── */
.careers-hero {
  background: #ffffff;
  max-width: none;
  margin: 0;
  padding: 5rem var(--section-pad-h) 4rem;
  border-bottom: 1px solid rgba(42,92,170,0.1);
  position: relative;
  overflow: hidden;
}

.careers-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,92,170,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,92,170,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.careers-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.careers-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: #e8f0fe;
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.75rem;
}

.careers-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.careers-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  color: #0a1a3a;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.careers-hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #4a5e78;
  line-height: 1.75;
  max-width: 580px;
}

/* ─── Who We're Looking For ────────────────────────────── */
.careers-profiles {
  background: var(--navy-950);
  max-width: none;
  margin: 0;
  padding: var(--section-pad-v) var(--section-pad-h);
}

.careers-profiles__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.careers-profiles__header {
  margin-bottom: 3rem;
}

.careers-profiles__header h2 {
  font-size: var(--text-2xl);
  margin-top: 0.5rem;
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-card {
  padding: var(--card-pad) 2.5rem;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.profile-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.profile-card:hover { background: var(--navy-800); }
.profile-card:hover::after { transform: scaleX(1); }
.profile-card:first-child { border-right: 1px solid var(--border); }

.profile-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(106,140,223,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-300);
  margin-bottom: 1.25rem;
}

.profile-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.profile-list__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-300);
  flex-shrink: 0;
  margin-top: 0.45em;
}

@media (max-width: 767px) {
  .profiles-grid { grid-template-columns: 1fr; }
  .profile-card:first-child { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ─── How We Work ─────────────────────────────────────── */
.careers-howwework {
  background: var(--navy-900);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-pad-v) var(--section-pad-h);
}

.careers-howwework__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.careers-howwework__header {
  margin-bottom: 3rem;
}

.careers-howwework__header h2 {
  font-size: var(--text-2xl);
  margin-top: 0.5rem;
}

.howwework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.howwework-card {
  padding: var(--card-pad);
  background: var(--navy-800);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.howwework-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.howwework-card:hover { background: var(--navy-700); }
.howwework-card:hover::after { transform: scaleX(1); }
.howwework-card:last-child { border-right: none; }

.howwework-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(106,140,223,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-300);
  margin-bottom: 1.25rem;
}

.howwework-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.howwework-card__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 767px) {
  .howwework-grid { grid-template-columns: 1fr; }
  .howwework-card { border-right: none; border-bottom: 1px solid var(--border); }
  .howwework-card:last-child { border-bottom: none; }
}

/* ─── Philosophy Quote ─────────────────────────────────── */
.careers-philosophy {
  background: var(--navy-800);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
  margin: 0;
  padding: 5rem var(--section-pad-h);
  text-align: center;
}

.careers-philosophy__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.careers-philosophy__mark {
  font-family: 'Syne', sans-serif;
  font-size: 6rem;
  font-weight: 800;
  color: var(--blue-300);
  opacity: 0.3;
  line-height: 0.7;
  margin-bottom: 1.5rem;
  user-select: none;
}

.careers-philosophy__quote {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  max-width: 680px;
}

/* ─── Join Us CTA (careers-specific bottom section) ───── */
.careers-join {
  background: #f5f6f8;
  max-width: none;
  margin: 0;
  padding: 5rem 0;
  border-top: 1px solid rgba(42,92,170,0.12);
}

.careers-join__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.careers-join__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1.25rem;
}

.careers-join__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.careers-join__heading {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0f2147;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.careers-join__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #4a5e78;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.careers-join__email {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-400);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 1rem;
}

.careers-join__email:hover {
  color: var(--blue-300);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.careers-join__note {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 767px) {
  .careers-join__heading { font-size: 1.9rem; }
  .careers-join__sub br { display: none; }
  .careers-join__email { font-size: 1.2rem; }
}

/* ─── Application Section ──────────────────────────────── */
.careers-apply {
  background: #f8faff;
  max-width: none;
  margin: 0;
  padding: var(--section-pad-v) var(--section-pad-h);
  border-bottom: 1px solid rgba(42,92,170,0.1);
}

.careers-apply__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.careers-apply__header {
  margin-bottom: 2.5rem;
}

.careers-apply__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.75rem;
}

.careers-apply__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.careers-apply__header h2 {
  font-family: 'Syne', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #0a1a3a;
  margin-bottom: 0.6rem;
}

.careers-apply__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: #4a5e78;
  line-height: 1.6;
}

/* ─── Application Form ─────────────────────────────────── */
.careers-form-wrap {
  max-width: 680px;
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(42,92,170,0.08);
}

.careers-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.careers-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.careers-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.careers-form__field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a1a3a;
}

.careers-form__req { color: #2a5caa; margin-left: 0.1em; }
.careers-form__opt { color: #9aadbe; font-weight: 400; font-size: 0.78rem; }

.careers-form__field input,
.careers-form__field select,
.careers-form__field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #0a1a3a;
  background: #f8faff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  resize: vertical;
}

.careers-form__field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.careers-form__field input::placeholder,
.careers-form__field textarea::placeholder {
  color: #a8bccf;
}

.careers-form__field input:focus,
.careers-form__field select:focus,
.careers-form__field textarea:focus {
  border-color: #2a5caa;
  background: #ffffff;
  outline: none;
}

.careers-form__field input.error,
.careers-form__field select.error,
.careers-form__field textarea.error {
  border-color: #e05555;
}

/* File upload area */
.careers-upload {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.careers-upload label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a1a3a;
}

.careers-upload__area {
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8faff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.careers-upload__area:hover {
  border-color: #2a5caa;
  background: #f0f4ff;
}

.careers-upload__area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
}

.careers-upload__icon {
  color: var(--blue-400);
}

.careers-upload__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: #0a1a3a;
  text-align: center;
}

.careers-upload__hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: #9aadbe;
  text-align: center;
}

.careers-upload__filename {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--blue-400);
  text-align: center;
  margin-top: 0.25rem;
}

/* Submit button */
.careers-form__submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #2a5caa, #5243d6);
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  margin-top: 0.25rem;
}

.careers-form__submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.careers-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Inline success state */
.careers-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1rem;
}

.careers-success__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.careers-success__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0a1a3a;
  margin: 0;
}

.careers-success__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #6b7a99;
  max-width: 360px;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .careers-hero { padding: 3.5rem var(--section-pad-h) 3rem; }
  .careers-form__row { grid-template-columns: 1fr; }
  .careers-form-wrap { padding: 1.75rem 1.25rem; }
}
